/* Sasso Plumbing & Heating - static rebuild of rocklandplumbing.com
   Desktop (1000px and up) matches the original 980px Wix layout exactly.
   Below 1000px the same content stacks for phones and tablets. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: #000; font: 10px/normal Arial, Helvetica, sans-serif; min-width: 0; }
img, svg { display: block; }
a { color: inherit; }

/* ---------- rich text (styles copied from the original pages) ---------- */
.tx { font: 400 10px/normal Arial, Helvetica, sans-serif; color: #000; overflow-wrap: break-word; }
:where(.tx) :where(p, h1, h2, h3, h4, h5, h6) { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
:where(.tx) :where(ul, ol) { margin: 0; padding: 0; }
:where(.tx) :where(a) { color: inherit; text-decoration: inherit; }
.tx a:not(.tel):hover { text-decoration: underline; }
.tx a.tel { color: inherit; text-decoration: inherit; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 20;
  background: #ffa500 url(/images/header-bg.webp) repeat-x 0 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), inset 0 -1px 1px rgba(0,0,0,.6), 0 0 5px rgba(0,0,0,.6);
}
.hdr { position: relative; }
.logo img { width: 100%; height: auto; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; text-decoration: none; text-align: center; white-space: nowrap;
  font: 700 18px/26px 'Open Sans', 'Arial Narrow', sans-serif; font-stretch: 75%; color: #ffc125;
  background: #131313; transition: background-color .4s ease, color .4s ease;
}
.menu a:hover, .menu a:focus-visible { background: #fff; color: #000; }

/* ---------- page stage ---------- */
.stage { position: relative; }
.c img { width: 100%; height: 100%; }
.fit-cover { object-fit: cover; }
.fit-contain { object-fit: contain; }
.abs { position: absolute; }
.abs > img, .abs > a > img, .abs > svg { width: 100%; height: 100%; }
.c svg { width: 100%; height: 100%; overflow: visible; }
.k-vector, .c-vector { pointer-events: none; }
.boxw { position: relative; width: 100%; height: 100%; }
.box { position: absolute; inset: 0; }
.divider { height: 3px; margin-top: 1px; background: url(/images/divider.webp) repeat-x 0 0; }
.ico { position: absolute; display: block; }
.ico img { width: 100%; height: 100%; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: #131313; color: #ffc125; text-decoration: none;
  font: 700 19px/22.8px 'Open Sans', 'Arial Narrow', sans-serif; font-stretch: 75%;
  box-shadow: 0 1px 4px rgba(0,0,0,.6); transition: background-color .4s ease, color .4s ease;
}
.btn:hover, .btn:focus-visible { background: #fff; color: #000; }

/* ---------- footer ---------- */
.site-footer { background: #ffa500; }
.ftr { position: relative; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.social img { width: 25px; height: 25px; }

/* ================= desktop: exact original layout ================= */
@media (min-width: 1000px) {
  .hdr, .stage, .ftr { width: 980px; margin: 0 auto; }
  .hdr { height: 349px; }
  .logo, .hdr-text, .menu, .ftr-text { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
  .logo { height: var(--h); }
  .nav-btn { display: none; }
  .menu > ul { display: flex; height: 26px; }
  .menu > ul > li { position: relative; width: 143px; margin: 0 3px; }
  .menu > ul > li:nth-child(n+5) { width: 142px; }
  .menu > ul > li > a { height: 26px; box-shadow: 0 1px 4px rgba(0,0,0,.6); }
  .menu .sub {
    position: absolute; left: 0; top: 100%; margin-top: 7px; min-width: 100%;
    background: #131313; box-shadow: 0 1px 4px rgba(0,0,0,.6);
    visibility: hidden; opacity: 0; transition: visibility .2s, opacity .2s;
  }
  .menu .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 7px; }
  .menu .has-sub:hover .sub, .menu .has-sub:focus-within .sub { visibility: visible; opacity: 1; }
  .menu .sub a { background: transparent; padding: 0 10px; }
  .menu .sub a:hover, .menu .sub a:focus-visible { background: #fff; color: #000; }

  .stage { height: var(--ph); margin-bottom: 14px; }
  .c { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
  .c-image, .c-vector, .c-box, .c-group, .c-line, .c-button { height: var(--h); }
  .icons { position: absolute; left: 0; top: 0; }
  .pair-text { position: absolute; left: var(--tx); top: 0; width: var(--tw); }
  .fl { position: absolute; }

  .ftr { height: 116px; }
  .social { position: absolute; left: 455px; top: 24px; }
}

/* ================= tablet and phone ================= */
@media (max-width: 999px) {
  .hdr { padding: 14px 16px 0; text-align: center; }
  .logo { display: block; width: min(300px, 78%); margin: 0 auto; }
  .hdr-text { margin: 10px 0 14px; }
  .nav-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 -16px; padding: 10px 16px;
    background: #131313; color: #ffc125; cursor: pointer; user-select: none;
    font: 700 20px/26px 'Open Sans', 'Arial Narrow', sans-serif; font-stretch: 75%; letter-spacing: .5px;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 3px; background: #ffc125; border-radius: 1px; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle:focus-visible + .nav-btn { outline: 2px solid #fff; outline-offset: -4px; }
  .menu { display: none; margin: 0 -16px; background: #131313; text-align: left; }
  .nav-toggle:checked ~ .menu { display: block; }
  .menu a { line-height: 46px; border-top: 1px solid #2a2a2a; }
  .menu .sub a { font-size: 16px; line-height: 40px; background: #1d1d1d; }

  .stage { padding: 26px 16px 10px; }
  .c { position: relative; width: auto; max-width: 100%; margin: 0 auto 26px; }
  .c-image, .c-group, .c-box, .c-vector { width: min(var(--w), 100%); aspect-ratio: var(--ar); }
  .c-image img { height: 100%; }
  .c-pair { display: flex; gap: 9px; align-items: flex-start; }
  .icons { position: relative; flex: none; }
  .pair-text { flex: 1; min-width: 0; }
  .fl { position: static; }
  .fl-text { width: auto !important; }
  .fl-line { max-width: 100%; margin-top: 8px; }

  .ftr { padding: 22px 16px; text-align: center; }
  .social { justify-content: center; margin-bottom: 14px; }
}

/* text styles copied from the original pages */
.s1{color:#323232;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;text-align:center}
.s2{font-family:'Open Sans',Arial,sans-serif;font-stretch:100%}
.s3{color:#000000}
.s4{font-weight:700}
.s5{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:45px;line-height:49.5px}
.s6{text-shadow:rgba(0,0,0,0.4) 0px 4px 5px}
.s7{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:24px;text-align:center}
.s8{color:#ffffff}
.s9{color:#323232;font-family:'Open Sans',Arial,sans-serif;font-stretch:100%;font-size:13px;margin-left:6.5px}
.s10{margin-left:16.9px}
.s11{font-size:11px;line-height:19.8px}
.s12{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:16px;text-align:center}
.s13{color:#323232;font-family:'Open Sans',Arial,sans-serif;font-stretch:100%;font-size:16px}
.s14{font-size:24px}
.s15{color:#323232;font-family:'Open Sans',Arial,sans-serif;font-stretch:100%;font-size:14px}
.s16{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:48px;text-align:center}
.s17{color:#1b1b1b}
.s18{font-style:italic}
.s19{text-decoration:underline}
.s20{text-decoration:none}
.s21{color:#323232;font-family:'Open Sans',Arial,sans-serif;font-stretch:100%;font-size:13px}
.s22{font-size:24px;font-weight:700}
.s23{color:#323232;font-family:'Open Sans',Arial,sans-serif;font-stretch:100%;font-size:24px}
.s24{color:#dcdcdc;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:30px;text-align:right}
.s25{text-shadow:rgba(255,255,255,0.6) 1px 1px 1px, rgba(0,0,0,0.6) -1px -1px 1px}
.s26{color:#dcdcdc;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:30px}
.s27{color:#dcdcdc;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:28px;text-align:right}
.s28{color:#dcdcdc;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:28px}
.s29{font-size:14px;line-height:28px}
.s30{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:14px}
.s31{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:36px;text-align:right}
.s32{color:#323232}
.s33{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:16px}
.s34{color:#ffa500;font-family:'Open Sans',Arial,sans-serif;font-stretch:100%;font-size:20px;font-weight:700}
.s35{font-size:14px}
.s36{font-size:20px}
.s37{color:#ffa500}
.s38{color:#b77231;font-family:'Open Sans','Arial Narrow',sans-serif;font-stretch:75%;font-size:20px}
.s39{font-size:16px}
/* boxes */
.box-Cntnr2-tut{background-color:#ffa500;border:2px solid #131313;border-radius:12px;box-shadow:rgba(0,0,0,0.6) 0px 1px 4px 0px;}
.box-Cntnrm-g5j{background-color:#ffa500;border:4px solid #ffffff;}
.box-Cntnrj-utk{background-color:#ffa500;border:4px solid #ffffff;}
.box-Cntnrp-i4k{background-color:#ffa500;border:4px solid #ffffff;}
.box-Cntnro-1m2{background-color:#ffa500;border:4px solid #ffffff;}
.box-i2flazgt{background-color:rgba(255,193,37,0.5);}
.box-ircq0n15{background-color:#ffc125;}
.box-ircq1x4n{background-color:rgba(255,193,37,0.5);}
