/* Le Mars Drywall Repair: semantic, prefixed classes; grid + flex with container queries. */
:root {
  --rit-ink: #162428;
  --rit-paper: #F5FAFB;
  --rit-blue: #54717A;
  --rit-mist: #DEEDF3;
  --rit-moss: #687837;
  --rit-white: #FFFFFF;
  --rit-rule: rgba(84, 113, 122, .55);
  --rit-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --rit-body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --rit-max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--rit-paper); color: var(--rit-ink);
  font-family: var(--rit-body); font-size: 1.0625rem; line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--rit-blue); text-underline-offset: 3px; }
a:hover { color: var(--rit-ink); }
h1, h2, h3 { font-family: var(--rit-head); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }

.rit-shell { width: 100%; max-width: var(--rit-max); margin: 0 auto; padding: 0 20px; }

/* header */
.rit-top { border-bottom: 2px solid var(--rit-blue); background: var(--rit-paper); }
.rit-topinner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 20px; padding-top: 14px; padding-bottom: 12px; }
.rit-wordmark { font-family: var(--rit-head); font-weight: 700; font-size: 1.3rem; color: var(--rit-ink); text-decoration: none; letter-spacing: -.02em; }
.rit-callline { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.rit-toptel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.05rem; color: var(--rit-ink); text-decoration: none; white-space: nowrap; }
.rit-tophours { font-size: .82rem; color: var(--rit-blue); }
.rit-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; font-variant: small-caps; letter-spacing: .04em; font-size: 1.02rem; }
.rit-nav a { color: var(--rit-ink); text-decoration: none; text-transform: lowercase; }
.rit-nav a:hover { color: var(--rit-blue); text-decoration: underline; }
.rit-nav .rit-navlink-msg { color: var(--rit-moss); font-weight: 700; margin-left: auto; }
.rit-icon { width: 1.2em; height: 1.2em; flex: none; }

/* hero */
.rit-hero { border-bottom: 2px solid var(--rit-blue); padding: 40px 0 44px; container-type: inline-size; }
.rit-herogrid { display: grid; gap: 28px; }
@container (min-width: 860px) {
  .rit-herogrid { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 44px; }
}
.rit-pitch { font-size: 1.18rem; max-width: 36em; }
.rit-trust { display: flex; gap: 8px; align-items: flex-start; color: var(--rit-blue); font-weight: 500; }
.rit-trust .rit-icon { margin-top: 3px; color: var(--rit-moss); }
.rit-hours { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 14px 0 4px; }
.rit-micro { font-size: .92rem; color: #2f4349; margin: 6px 0 0; }
.rit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.rit-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 4px; font-weight: 700; font-family: var(--rit-body); font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid var(--rit-blue); line-height: 1.2; }
.rit-btn--solid { background: var(--rit-blue); color: var(--rit-white); }
.rit-btn--solid:hover { background: var(--rit-ink); border-color: var(--rit-ink); color: var(--rit-white); }
.rit-btn--line { background: transparent; color: var(--rit-ink); border-color: var(--rit-moss); }
.rit-btn--ghost { background: var(--rit-white); color: var(--rit-blue); }

/* form */
.rit-formcard { background: var(--rit-white); border: 2px solid var(--rit-blue); border-radius: 6px; padding: 22px; container-type: inline-size; }
.rit-formtitle { font-family: var(--rit-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 12px; }
.rit-form { margin: 0; }
.rit-formgrid { display: grid; gap: 12px; }
@container (min-width: 420px) {
  .rit-formgrid { grid-template-columns: 1fr 1fr; }
  .rit-field--wide { grid-column: 1 / -1; }
}
.rit-field { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; font-weight: 500; }
.rit-field em { font-style: normal; font-weight: 400; color: var(--rit-blue); }
.rit-field input, .rit-field select, .rit-field textarea {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1.5px solid var(--rit-rule); border-radius: 4px; background: var(--rit-paper); color: var(--rit-ink); width: 100%; min-width: 0;
}
.rit-field input:focus, .rit-field select:focus, .rit-field textarea:focus { outline: 2px solid var(--rit-moss); outline-offset: 1px; }
.rit-form .rit-btn { margin-top: 16px; width: 100%; justify-content: center; }
.rit-consent { font-size: .86rem; margin: 12px 0 0; }

/* bordered panels */
.rit-main { padding-bottom: 32px; }
.rit-band { margin: 28px 0; border: 1.5px solid var(--rit-rule); border-radius: 6px; background: var(--rit-paper); }
.rit-slab { padding: 30px 28px; container-type: inline-size; }
.rit-pagehead { border-color: var(--rit-blue); border-width: 2px; }
.rit-pagehead h1 { margin-bottom: .35em; }
.rit-lead { font-size: 1.15rem; max-width: 46em; }
.rit-prose { max-width: 100%; }
.rit-prose > p, .rit-prose > ul, .rit-prose > ol { max-width: 48em; }
.rit-numhead { display: flex; gap: 14px; align-items: baseline; border-bottom: 1.5px solid var(--rit-rule); padding-bottom: 10px; margin-top: 1.4em; }
.rit-slab > .rit-numhead:first-child, .rit-prose > .rit-numhead:first-child { margin-top: 0; }
.rit-num { font-size: .8em; color: var(--rit-moss); font-weight: 700; font-variant-numeric: tabular-nums; }

/* cards: left accent, tinted, no shadow */
.rit-cardset { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 18px 0; }
.rit-cardset > * { min-width: 0; }
.rit-card { background: var(--rit-mist); border-left: 6px solid var(--rit-moss); padding: 18px 20px; border-radius: 0 4px 4px 0; }
.rit-card h3 { margin-bottom: .4em; font-weight: 700; }
.rit-card p:last-child { margin-bottom: 0; }
.rit-card > .rit-icon { width: 28px; height: 28px; color: var(--rit-moss); display: block; margin-bottom: 8px; }
.rit-more { font-weight: 700; display: inline-block; margin-top: 4px; }

/* figures */
.rit-photo { margin: 20px 0; max-width: 880px; }
.rit-photo img { display: block; width: 100%; border-radius: 4px; border: 1.5px solid var(--rit-rule); }
.rit-photo figcaption, .rit-figure figcaption { font-size: .9rem; color: #2f4349; margin-top: 8px; }
.rit-figure { margin: 18px 0 22px; }
.rit-svg { display: block; width: 100%; max-width: 760px; }
.rit-map { max-width: 680px; }

/* lists */
.rit-signlist { margin: 0; display: grid; gap: 0; border-top: 1.5px solid var(--rit-rule); }
.rit-signlist > div { padding: 14px 0; border-bottom: 1.5px solid var(--rit-rule); display: grid; gap: 4px; }
.rit-signlist dt { font-weight: 700; font-family: var(--rit-head); }
.rit-signlist dd { margin: 0; }
.rit-ticks, .rit-checklist { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
.rit-ticks li, .rit-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.rit-ticks .rit-icon, .rit-checklist .rit-icon { color: var(--rit-moss); margin-top: 4px; }
.rit-steps { padding-left: 1.3em; margin: 12px 0 18px; display: grid; gap: 10px; }
.rit-steps li::marker { font-family: var(--rit-head); font-weight: 700; color: var(--rit-moss); }

/* timeline */
.rit-timeline { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: rit-stage; }
.rit-timeline li { position: relative; padding: 0 0 22px 54px; counter-increment: rit-stage; }
.rit-timeline li::before { content: counter(rit-stage); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--rit-blue); color: var(--rit-white); font-family: var(--rit-head); font-weight: 700; display: grid; place-items: center; }
.rit-timeline li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--rit-rule); }
.rit-timeline li:last-child::after { display: none; }
.rit-timeline h3 { margin: 5px 0 4px; font-weight: 700; }
.rit-timeline p { margin: 0; }

/* map + towns */
.rit-mapframe { display: grid; gap: 20px; align-items: center; }
.rit-townlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rit-townlist li { border-left: 4px solid var(--rit-moss); padding-left: 10px; }
.rit-townnotes { margin: 0 0 20px; display: grid; gap: 12px; }
.rit-townnotes > div { border-left: 6px solid var(--rit-moss); background: var(--rit-mist); padding: 10px 14px; }
.rit-townnotes dt { font-weight: 700; font-family: var(--rit-head); }
.rit-townnotes dd { margin: 0; }
.rit-textlink { font-weight: 700; }

/* table */
.rit-tablewrap { overflow-x: auto; margin: 14px 0 18px; }
.rit-table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: .97rem; }
.rit-table th, .rit-table td { text-align: left; padding: 10px 12px; border: 1.5px solid var(--rit-rule); vertical-align: top; }
.rit-table th { background: var(--rit-mist); font-family: var(--rit-head); font-weight: 700; }

/* faq */
.rit-faq { border-top: 1.5px solid var(--rit-rule); margin: 12px 0 20px; }
.rit-faqitem { border-bottom: 1.5px solid var(--rit-rule); padding: 12px 0; }
.rit-faqitem summary { cursor: pointer; font-weight: 700; font-family: var(--rit-head); }
.rit-faqitem p { margin: 8px 0 0; }
.rit-related { border-top: 1.5px dashed var(--rit-rule); padding-top: 14px; margin-top: 24px; }

/* contact */
.rit-contactgrid { display: grid; gap: 24px; }
.rit-sideline { display: flex; gap: 8px; align-items: center; }

/* closing band */
.rit-close { border-color: var(--rit-blue); border-width: 2px; background: var(--rit-mist); }
.rit-closehead { font-family: var(--rit-head); font-weight: 700; font-size: 1.4rem; margin-bottom: .4em; }

/* footer: centered stack */
.rit-foot { border-top: 2px solid var(--rit-blue); padding: 34px 0 28px; text-align: center; }
.rit-footstack { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rit-footmark { font-family: var(--rit-head); font-weight: 700; font-size: 1.2rem; margin: 0; }
.rit-footcall { font-weight: 500; margin: 0 0 6px; }
.rit-footlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-variant: small-caps; text-transform: lowercase; margin-bottom: 8px; }
.rit-footlinks a { color: var(--rit-ink); text-decoration: none; }
.rit-small { font-size: .85rem; margin: 0; max-width: 46em; color: #2f4349; }

/* mobile call bar */
.rit-callbar { display: none; }

@container (min-width: 620px) {
  .rit-cardset { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .rit-cardset--two { grid-template-columns: 1fr 1fr; }
}
@container (min-width: 820px) {
  .rit-mapframe { grid-template-columns: 1.4fr 1fr; }
  .rit-contactgrid { grid-template-columns: .8fr 1.2fr; align-items: start; }
}

@media (max-width: 767px) {
  body { padding-bottom: 66px; }
  .rit-shell { padding: 0 16px; }
  .rit-slab { padding: 22px 16px; }
  .rit-topinner { grid-template-columns: 1fr; gap: 6px; }
  .rit-callline { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
  .rit-nav { gap: 2px 14px; font-size: .98rem; }
  .rit-nav .rit-navlink-msg { margin-left: 0; }
  .rit-hero { padding: 26px 0 30px; }
  .rit-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--rit-ink); border-top: 2px solid var(--rit-moss); }
  .rit-callbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; color: var(--rit-white); font-weight: 700; text-decoration: none; font-size: .9rem; white-space: nowrap; }
  .rit-callbar-sms { border-left: 1px solid rgba(255,255,255,.3); }
  .rit-btn { width: 100%; justify-content: center; }
}
