/* Hopatcong Drywall Repair Co. stylesheet.
   SMACSS order: base, layout (rur-l-), module (rur-m-), state (rur-is-).
   Layout mixes grid and flex; bands are query containers, so rows and grids
   respond to the width of their own band rather than the viewport alone. */

/* ===== BASE ===== */
:root {
  --ink: #0F2435;
  --paper: #F6FAFE;
  --deep: #016292;
  --wash: #DCECFD;
  --pine: #07695F;
  --on-deep: #FFFFFF;
  --rule: #b9cfe2;
  --muted: #3d5468;
  --measure: 1060px;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.28rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--pine); }
img, svg { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; }

/* ===== LAYOUT ===== */
.rur-l-shell { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.15rem; }
.rur-l-band { padding: 3.6rem 0; container-type: inline-size; container-name: band; }
.rur-l-band-tint { background: var(--wash); }
.rur-l-band-tight { padding: 2.4rem 0; }
.rur-l-frame { display: grid; gap: 2rem; }
.rur-l-rail { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.rur-l-inner { max-width: 44rem; }
.rur-l-slab { display: grid; gap: 1.6rem; }
.rur-l-top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.rur-l-top-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .9rem; padding-bottom: .7rem; }
.rur-l-foot { background: var(--ink); color: #dfe9f3; padding: 3rem 0 1.4rem; font-size: .9rem; container-type: inline-size; }
.rur-l-foot-grid { display: grid; gap: 2rem; }

@container band (min-width: 760px) {
  .rur-l-frame-split { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .rur-l-frame-wide { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .rur-l-slab-three { grid-template-columns: repeat(3, 1fr); }
  .rur-l-slab-two { grid-template-columns: repeat(2, 1fr); }
}

/* ===== MODULE ===== */
.rur-m-skip { position: absolute; left: -9999px; }
.rur-m-skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 50; }

/* brand + call box */
.rur-m-brand { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.rur-m-brand span { display: block; font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); }
.rur-m-callbox { text-align: right; line-height: 1.25; }
.rur-m-phone { font-weight: 700; font-size: 1.12rem; color: var(--deep); text-decoration: none; white-space: nowrap; }
.rur-m-callbox small { display: block; color: var(--muted); font-size: .78rem; }

/* pill navigation */
.rur-m-pillnav { padding-bottom: .9rem; display: flex; justify-content: center; }
.rur-m-pills { list-style: none; margin: 0; padding: .3rem; display: flex; gap: .15rem; border: 1px solid var(--rule); border-radius: 999px; background: #fff; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.rur-m-pills li { margin: 0; flex: 0 0 auto; }
.rur-m-pills a { display: block; padding: .42rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.rur-m-pills a:hover { background: var(--wash); color: var(--ink); }

/* hero: a wide diagonal band behind the headline */
.rur-m-hero { position: relative; padding: 4.2rem 0 5rem; isolation: isolate; overflow: hidden; }
.rur-m-hero::before { content: ""; position: absolute; inset: 0; background: var(--deep); clip-path: polygon(0 9%, 100% 0, 100% 84%, 0 100%); z-index: -1; }
.rur-m-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: var(--pine); clip-path: polygon(0 72%, 100% 4%, 100% 22%, 0 90%); z-index: -1; opacity: .9; }
.rur-m-hero-inner { color: var(--on-deep); max-width: var(--measure); }
.rur-m-hero h1 { color: var(--on-deep); max-width: 15ch; }
.rur-m-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; margin-bottom: .8rem; opacity: .92; }
.rur-m-hero-line { font-size: 1.22rem; max-width: 36rem; }
.rur-m-hero .rur-m-micro, .rur-m-hero .rur-m-hoursline { color: #e8f3fb; }
.rur-m-hero a.rur-m-smslink { color: #fff; }

/* buttons */
.rur-m-btn { display: inline-block; padding: .82rem 1.35rem; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; text-align: center; }
.rur-m-btn-solid { background: var(--on-deep); color: var(--deep); }
.rur-m-btn-solid:hover { background: var(--wash); color: var(--ink); }
.rur-m-btn-line { border-color: var(--on-deep); color: var(--on-deep); }
.rur-m-btn-line:hover { background: rgba(255,255,255,.14); color: #fff; }
.rur-m-btn-deep { background: var(--deep); color: var(--on-deep); }
.rur-m-btn-deep:hover { background: var(--ink); color: #fff; }
.rur-m-btn-pine { border-color: var(--pine); color: var(--pine); background: transparent; }
.rur-m-btn-pine:hover { background: var(--pine); color: #fff; }
.rur-m-micro { font-size: .9rem; margin: .7rem 0 0; color: var(--muted); }
.rur-m-hoursline { font-size: .9rem; margin: .5rem 0 0; font-weight: 600; }

/* numbered headings and lede */
.rur-m-num { display: inline-block; font-family: var(--sans); font-size: .5em; font-weight: 700; letter-spacing: .08em; color: var(--pine); border-bottom: 2px solid var(--pine); margin-right: .55em; vertical-align: .35em; }
.rur-m-lede { font-size: 1.28rem; line-height: 1.55; color: var(--ink); max-width: 46rem; font-weight: 400; }

/* definition rows */
.rur-m-rows { margin: 1.4rem 0 0; border-top: 1px solid var(--rule); }
.rur-m-row { display: grid; gap: .3rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.rur-m-row dt { font-weight: 700; }
.rur-m-row dd { margin: 0; }
.rur-m-row dd p:last-child { margin-bottom: 0; }
@container band (min-width: 620px) {
  .rur-m-row { grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 1.6rem; }
}
.rur-m-ico { width: 22px; height: 22px; stroke: var(--pine); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; margin-right: .4rem; flex: 0 0 auto; }

/* framed images */
.rur-m-frame { margin: 0; padding: 6px; border: 1px solid #8fb0c9; background: #fff; }
.rur-m-frame img { display: block; width: 100%; height: auto; }
.rur-m-frame figcaption { font-size: .86rem; color: var(--muted); padding: .55rem .25rem .2rem; }

/* checklists and steps */
.rur-m-checks { list-style: none; padding: 0; }
.rur-m-checks li { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px dashed var(--rule); }
.rur-m-steps { counter-reset: step; list-style: none; padding: 0; }
.rur-m-steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; }
.rur-m-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.rur-m-steps strong { display: block; }

/* note box for safety */
.rur-m-alert { border-left: 4px solid var(--pine); background: #fff; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.rur-m-alert p:last-child { margin-bottom: 0; }

/* inner page title slab */
.rur-m-title { background: linear-gradient(172deg, var(--wash) 0 62%, var(--paper) 62% 100%); padding: 3rem 0 2.4rem; }
.rur-m-title p { max-width: 44rem; font-size: 1.15rem; }

/* faq */
.rur-m-faq details { border-bottom: 1px solid var(--rule); padding: .9rem 0; }
.rur-m-faq summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 1.15rem; }
.rur-m-faq details p { margin: .6rem 0 0; }

/* diagram */
.rur-m-diagram { background: #fff; border: 1px solid var(--rule); padding: 1rem; margin: 1.6rem 0; }
.rur-m-diagram svg { display: block; width: 100%; height: auto; }
.rur-m-diagram figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* closing band */
.rur-m-closer { background: var(--ink); color: #eef4fa; padding: 3.4rem 0; container-type: inline-size; }
.rur-m-closer h2 { color: #fff; }
.rur-m-closer .rur-m-num { color: #9fd8cf; border-color: #9fd8cf; }
.rur-m-closer .rur-m-micro { color: #c9d7e4; }
.rur-m-closer a.rur-m-textlink { color: #bfe3ff; }

/* contact form */
.rur-m-form { display: grid; gap: .95rem; background: #fff; border: 1px solid var(--rule); padding: 1.4rem; }
.rur-m-form label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: .25rem; }
.rur-m-form input, .rur-m-form select, .rur-m-form textarea { width: 100%; font: inherit; padding: .7rem .75rem; border: 1px solid #8fa9bf; border-radius: 4px; background: var(--paper); color: var(--ink); }
.rur-m-form textarea { min-height: 8rem; resize: vertical; }
.rur-m-form button { font: inherit; font-weight: 700; cursor: pointer; border: 0; }
.rur-m-consent { font-size: .86rem; color: var(--muted); margin: .8rem 0 0; }
.rur-m-sidecall { border-top: 3px solid var(--deep); padding-top: 1rem; }

/* text links in a row */
.rur-m-textlink { font-weight: 700; }

/* footer */
.rur-m-foot-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .2rem; }
.rur-m-tagline { color: #9fd8cf; font-style: italic; }
.rur-l-foot a { color: #cfe6ff; }
.rur-m-foot-label { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: #9fd8cf; margin-bottom: .5rem; }
.rur-m-foot-list { list-style: none; padding: 0; columns: 2; column-gap: 1.6rem; }
.rur-m-foot-list li { break-inside: avoid; }
.rur-m-disclose { border-top: 1px solid #2c4256; margin-top: 2rem; padding-top: 1rem; font-size: .9rem; color: #c3d3e1; }
@container (min-width: 700px) {
  .rur-l-foot-grid { grid-template-columns: 1fr 1.2fr; }
}

/* mobile call bar */
.rur-m-callbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 4.2rem; }
  .rur-m-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--deep); box-shadow: 0 -2px 10px rgba(15,36,53,.25); }
  .rur-m-callbar a { flex: 1 1 50%; color: #fff; text-decoration: none; text-align: center; font-weight: 700; padding: .95rem .4rem; font-size: .98rem; }
  .rur-m-callbar a + a { border-left: 1px solid rgba(255,255,255,.35); background: var(--pine); }
  .rur-m-pillnav { justify-content: flex-start; }
  .rur-m-brand { font-size: 1.12rem; }
  .rur-m-phone { font-size: 1rem; }
  .rur-m-hero { padding: 3.2rem 0 6.4rem; }
  .rur-m-hero::before { clip-path: polygon(0 4%, 100% 0, 100% 90%, 0 100%); }
  .rur-m-lede { font-size: 1.14rem; }
}

/* ===== STATE ===== */
.rur-is-current { background: var(--deep) !important; color: var(--on-deep) !important; }
