/* =========================================================
   Roofing Palmetto Bay — "175"
   The code is the brand. Near-black ground, bone text, one
   high-visibility yellow. Very large condensed display type.
   Wind arrows are the only ornament: they replace every
   decorative rule on the site. Figures are mono, always.
   Plain CSS, no build step.
   ========================================================= */

/* shortcut: Google Fonts via @import (one extra round trip). Self-host all three faces before the renting contractor goes live. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Archivo+Narrow:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  /* ground: near-black, four steps */
  --ink0:   #0d0e10;   /* page */
  --ink1:   #15171a;   /* raised surface: cards, panels, header */
  --ink2:   #1b1e22;   /* alternating sections */
  --ink3:   #23272c;   /* deepest wells: readouts, table heads */

  /* rules */
  --rule:        #262b31;   /* hairlines between cells */
  --rule-strong: #39404a;   /* panel borders */

  /* bone */
  --bone:       #f3f0e8;   /* 16.9:1 on ink0 */
  --bone-soft:  #cbc8c0;   /* 11.5:1 on ink0, 10.3:1 on ink2 */
  --bone-faint: #a7a49c;   /* 7.3:1 on ink0, 6.5:1 on ink2 */

  /* high-visibility yellow: the only saturated colour on the site */
  --hi:      #ffd400;   /* 14.4:1 on ink0. Button fills take ink0 text: 14.4:1 */
  --hi-deep: #e0b900;   /* pressed + borders */
  --hi-dim:  #8a7400;   /* yellow as a rule on the yellow band */

  /* legacy aliases so shared elements (the chat widget) resolve */
  --brand: var(--hi); --brand-dark: var(--ink0); --line: var(--rule-strong);
  --bg: var(--ink0); --bg-alt: var(--ink2); --bg-dark: var(--ink0);
  --surface: var(--ink1); --text: var(--bone); --muted: var(--bone-soft);
  --border: var(--rule-strong); --accent: var(--hi); --cta: var(--hi);

  --max: 1180px;
  --radius: 2px;
  --font-head: "Archivo Narrow", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* wind arrows: the one ornament. A row of chevrons pointing the way the
     wind comes from, drawn in CSS so it costs nothing and scales anywhere. */
  --arrows: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' viewBox='0 0 22 10'%3E%3Cpath d='M2 1l5 4-5 4M11 1l5 4-5 4' fill='none' stroke='%2339404a' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  --arrows-hi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' viewBox='0 0 22 10'%3E%3Cpath d='M2 1l5 4-5 4M11 1l5 4-5 4' fill='none' stroke='%23ffd400' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[id] { scroll-margin-top: 88px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bone);
  background: var(--ink0);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; color: var(--bone); }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); text-transform: uppercase; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.18; }
h4 { font-size: 1rem; }
p + p { margin-top: 1.05em; }
strong { font-weight: 700; color: var(--bone); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--bone-faint); font-size: .95rem; }
.lead { font-size: 1.17rem; color: var(--bone-soft); }

.sheet { background: var(--ink1); border: 1px solid var(--rule-strong); }

/* ---------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,14,16,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule-strong); }
.nav { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; min-height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 11px; color: var(--bone); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .01em; flex: 0 0 auto; }
/* logomark = favicon, reused: two stacked chevrons on high-vis yellow. A
   roofline and a wind direction at the same time. Same artwork as favicon.svg. */
.nav__logo::before {
  content: ""; width: 30px; height: 30px; flex: 0 0 auto;
  background-color: var(--hi); border-radius: var(--radius);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%230d0e10' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M6 15l10-7 10 7'/%3E%3Cpath d='M6 24l10-7 10 7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 30px 30px; background-repeat: no-repeat;
}
.nav__logo strong { font-weight: 700; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav__links a { color: var(--bone); text-decoration: none; font-size: .935rem; font-weight: 600; }
.nav__links a:hover { color: var(--hi); }
.nav__call { font-family: var(--font-mono); font-weight: 600; font-size: .9rem !important; letter-spacing: -.02em; color: var(--hi) !important; white-space: nowrap; }
.nav__end { display: none; align-items: center; gap: 14px; margin-left: auto; }
.nav__toggle { background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); width: 42px; height: 38px; color: var(--bone); display: grid; place-items: center; cursor: pointer; }
.nav__toggle svg { width: 21px; height: 21px; }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: -14px; min-width: 285px; background: var(--ink1); border: 1px solid var(--rule-strong); list-style: none; padding: 7px 0; opacity: 0; visibility: hidden; transition: opacity .15s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown a { display: block; padding: 9px 18px; font-weight: 500; font-size: .92rem; }
.dropdown a:hover { background: var(--ink3); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; text-transform: uppercase; letter-spacing: .02em;
  padding: 15px 28px; border: 1px solid var(--hi); border-radius: var(--radius);
  background: var(--hi); color: var(--ink0); text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease-out), background .12s;
}
.btn:hover { background: #ffe24d; color: var(--ink0); transform: translateY(-2px); }
.btn:active { transform: translateY(0); background: var(--hi-deep); }
.btn--lg { padding: 18px 32px; font-size: 1.1rem; }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--rule-strong); }
.btn--ghost:hover { background: transparent; color: var(--hi); border-color: var(--hi); transform: translateY(-2px); }

/* ---------------------------------------------------------- section marker: number, wind arrows, label */
.dim { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dim__no { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--hi); letter-spacing: .06em; flex: 0 0 auto; }
.dim__line { flex: 1 1 auto; height: 10px; background-image: var(--arrows); background-repeat: repeat-x; background-position: left center; background-size: 22px 10px; opacity: .95; }
.dim__label { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--bone-faint); flex: 0 0 auto; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; background: var(--ink0); color: var(--bone); overflow: hidden; border-bottom: 1px solid var(--rule-strong);
  /* the two crops of the same roof, 72 KB and 49 KB. Inner pages render no
     .hero__photo at all, so they never fetch either file. */
  --hero: url("/assets/hero.webp?v=20261124");
  --hero-m: url("/assets/hero-phone.webp?v=20261124"); }
/* the photograph, when there is one. Desktop crops to the right so the type
   column stays on near-black; the scrim is tuned per breakpoint below. */
.hero__photo { position: absolute; inset: 0; background: var(--ink0) var(--hero, none) center right / cover no-repeat; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,16,.97) 0%, rgba(13,14,16,.92) 38%, rgba(13,14,16,.6) 68%, rgba(13,14,16,.9) 100%); }
.hero__in { position: relative; max-width: var(--max); margin: 0 auto; padding: 76px 28px 82px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 52px; align-items: start; }
.hero h1 { color: var(--bone); max-width: 17ch; }
.hero__sub { margin-top: 22px; font-size: 1.2rem; color: var(--bone-soft); max-width: 44ch; }
.hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero__stats { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule-strong); max-width: 470px; background: rgba(13,14,16,.6); }
.hero__stat { padding: 14px 19px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.hero__stat:nth-child(2n) { border-right: 0; }
.hero__stat:nth-last-child(-n+2) { border-bottom: 0; }
.hero__stat b { display: block; font-family: var(--font-mono); font-size: 1.12rem; font-weight: 600; color: var(--hi); }
.hero__stat span { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--bone-faint); }

/* the gauge: the number the site is named after, and the three facts under it */
.hero__plan { position: relative; }
.gauge { border: 1px solid var(--rule-strong); background: rgba(13,14,16,.72); }
.gauge__read { padding: 22px 24px 16px; border-bottom: 1px solid var(--rule-strong); background: var(--ink3); }
.gauge__label { display: block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--bone-faint); }
.gauge__fig { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.gauge__fig b { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.6rem, 9vw, 5.6rem); line-height: .86; letter-spacing: -.045em; color: var(--hi); }
.gauge__fig span { font-family: var(--font-mono); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--bone-soft); }
.gauge__sub { margin-top: 10px; font-size: .9rem; line-height: 1.5; color: var(--bone-soft); }
.gauge__rows { list-style: none; }
.gauge__rows li { padding: 15px 24px; border-bottom: 1px solid var(--rule); }
.gauge__rows li:last-child { border-bottom: 0; }
.gauge__rows b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; text-transform: uppercase; letter-spacing: .01em; color: var(--bone); }
.gauge__rows span { display: block; margin-top: 3px; font-size: .89rem; line-height: 1.5; color: var(--bone-faint); }
.gauge__foot { padding: 14px 24px 16px; border-top: 1px solid var(--rule-strong); background: var(--ink1); font-size: .82rem; line-height: 1.5; color: var(--bone-faint); }

/* inner-page hero: shorter, no photo */
.hero--inner .hero__in { grid-template-columns: 1fr; padding: 58px 28px 62px; max-width: 900px; }
.hero--inner h1 { max-width: 24ch; font-size: clamp(2.1rem, 5vw, 3.6rem); }

/* ---------------------------------------------------------- sections */
.sec { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.sec--alt { background: var(--ink2); }
/* the 58ch measure belongs to running text only; tables, the widgets and the
   card grids use the full column. */
.sec__body > p, .sec__body > ul, .sec__body > h3, .sec__body > .muted { max-width: 58ch; }
.sec__body h3 { margin-top: 2.1em; margin-bottom: .55em; }
.sec__body > :first-child { margin-top: 0; }
.sec__body p { color: var(--bone-soft); }
.sec__body ul { margin: 18px 0 0; padding-left: 0; list-style: none; }
.sec__body li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--bone-soft); }
.sec__body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 22px; height: 10px; background-image: var(--arrows-hi); background-repeat: no-repeat; background-size: 22px 10px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 0; margin-top: 32px; border: 1px solid var(--rule-strong); background: var(--ink1); }
.card { padding: 27px 24px 29px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card__no { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--hi); letter-spacing: .08em; display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; text-transform: uppercase; font-size: 1.16rem; }
.card h3 a { color: var(--bone); text-decoration: none; }
.card h3 a:hover { color: var(--hi); text-decoration: underline; }
.card p { font-size: .97rem; color: var(--bone-faint); }

/* link list */
.linklist { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.wrap > h3 { margin-top: 2.1em; }
.wrap > h2 + h3 { margin-top: 1.1em; }
.linklist a { display: inline-block; padding: 9px 15px; background: var(--ink1); border: 1px solid var(--rule-strong); color: var(--bone); text-decoration: none; font-size: .93rem; font-weight: 600; }
.linklist a:hover { border-color: var(--hi); color: var(--hi); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--rule-strong); }
.step { counter-increment: step; display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--rule); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 1.04rem; font-weight: 600; color: var(--hi); }
.step h3 { margin-bottom: 5px; text-transform: uppercase; font-size: 1.14rem; }
.step p { color: var(--bone-soft); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); background: var(--ink1); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
th { font-family: var(--font-mono); font-size: .77rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--hi); background: var(--ink3); }
td { color: var(--bone-soft); }
td:last-child { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; color: var(--bone); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin-top: 30px; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; text-transform: uppercase; letter-spacing: -.005em; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--font-mono); font-size: 1.3rem; color: var(--hi); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 40px 19px 0; color: var(--bone-soft); }

/* CTA band: the one yellow flood on the site */
.cta { background: var(--hi); color: var(--ink0); padding: 78px 0; border-bottom: 1px solid var(--hi-deep); }
.cta h2 { color: var(--ink0); font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; max-width: 17ch; }
.cta p { margin-top: 14px; color: #2a2300; max-width: 52ch; }
.cta__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 13px; }
.cta .btn { background: var(--ink0); color: var(--hi); border-color: var(--ink0); }
.cta .btn:hover { background: #000; color: var(--hi); }
.cta .btn--ghost { background: transparent; color: var(--ink0); border-color: var(--hi-dim); }
.cta .btn--ghost:hover { background: var(--ink0); color: var(--hi); border-color: var(--ink0); }

/* split heading */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 38px; align-items: end; }
.split p { color: var(--bone-soft); }

/* ---------------------------------------------------------- the cost estimator: an instrument */
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--rule-strong); background: var(--ink1); margin-top: 32px; }
.est__controls { padding: 28px 26px; border-right: 1px solid var(--rule-strong); }
.est__out { padding: 28px 26px; background: var(--ink3); }
.est__legend { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--bone-faint); margin-bottom: 7px; display: block; }
.est__row { margin-bottom: 24px; }
.est__row:last-child { margin-bottom: 0; }
.est__val { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 600; color: var(--bone); }
.est__val small { font-size: .82rem; font-weight: 500; color: var(--bone-faint); margin-left: 5px; }
input[type=range] { width: 100%; margin-top: 11px; accent-color: var(--hi); height: 28px; }
.est__hint { font-size: .86rem; color: var(--bone-faint); margin-top: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.chip { font-family: var(--font-body); font-size: .9rem; font-weight: 600; padding: 9px 14px; background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--bone-soft); cursor: pointer; }
.chip:hover { border-color: var(--hi); color: var(--bone); }
.chip[aria-pressed=true] { background: var(--hi); border-color: var(--hi); color: var(--ink0); }
/* the readout: a yellow figure on the darkest well, with a tick scale over it */
.est__range { font-family: var(--font-mono); font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 600; color: var(--hi); letter-spacing: -.02em; line-height: 1.15; padding-top: 10px; border-top: 2px solid var(--hi); margin-top: 2px; }
.est__note { font-size: .88rem; color: var(--bone-faint); margin-top: 13px; }
.est__drivers { list-style: none; margin-top: 18px; font-size: .92rem; }
.est__drivers li { padding-left: 30px; position: relative; margin-bottom: 8px; color: var(--bone-soft); }
.est__drivers li::before { content: ""; position: absolute; left: 0; top: .6em; width: 22px; height: 10px; background-image: var(--arrows-hi); background-repeat: no-repeat; background-size: 22px 10px; }

/* ---------------------------------------------------------- the insurance check */
.hoa { border: 1px solid var(--rule-strong); background: var(--ink1); margin-top: 32px; padding: 28px 26px; }
.hoa__q { margin-bottom: 22px; border: 0; }
.hoa__q legend { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 8px; color: var(--bone); }
.hoa__q label { color: var(--bone-soft); display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; }
.hoa__q input { accent-color: var(--hi); width: 18px; height: 18px; }
.hoa__out { margin-top: 24px; padding: 24px; background: var(--ink3); border: 1px solid var(--hi); border-left-width: 4px; }
.hoa__out h3 { color: var(--bone); margin-bottom: 10px; text-transform: uppercase; }
.hoa__out p { color: var(--bone-soft); font-size: .98rem; }
.hoa__out ul { list-style: none; margin-top: 14px; font-size: .95rem; }
.hoa__out li { padding-left: 30px; position: relative; margin-bottom: 8px; color: var(--bone-soft); }
.hoa__out li::before { content: ""; position: absolute; left: 0; top: .58em; width: 22px; height: 10px; background-image: var(--arrows-hi); background-repeat: no-repeat; background-size: 22px 10px; }
.hoa__law { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--hi); text-transform: uppercase; display: block; margin-bottom: 8px; }

/* ---------------------------------------------------------- form */
.form-card { background: var(--ink1); border: 1px solid var(--rule-strong); padding: 27px 24px; }
.form-card h2 { font-size: 1.45rem; }
.form-card p { color: var(--bone-soft); }
.field { margin-bottom: 15px; }
.field label { display: block; font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--bone-faint); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--bone);
  padding: 13px; background: var(--ink0); border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.field input::placeholder, .field textarea::placeholder { color: #7e7b74; }
.field input:focus, .field textarea:focus { border-color: var(--hi); outline: 2px solid rgba(255,212,0,.3); outline-offset: 0; }
.form-error { color: var(--hi); font-weight: 600; font-size: .94rem; margin-bottom: 12px; }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--ink0); color: var(--bone-soft); padding: 58px 0 0; font-size: .95rem; border-top: 1px solid var(--rule-strong); }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: var(--hi); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 0; border: 1px solid var(--rule-strong); }
.footer-grid > div { padding: 25px 22px; border-right: 1px solid var(--rule-strong); }
.footer-grid > div:last-child { border-right: 0; }
.site-footer h3 { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--hi); margin-bottom: 14px; line-height: 1.4; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer p { color: var(--bone-faint); }
.titleblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule-strong); border-bottom: 0; }
.titleblock div { padding: 12px 22px; border-right: 1px solid var(--rule-strong); }
.titleblock div:last-child { border-right: 0; }
.titleblock dt { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--bone-faint); }
.titleblock dd { font-family: var(--font-mono); font-size: .74rem; color: var(--bone); margin-top: 3px; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid var(--rule-strong); margin-top: 0; padding: 21px 0 94px; font-family: var(--font-mono); font-size: .8rem; color: var(--bone-faint); letter-spacing: .02em; }

/* ---------------------------------------------------------- sticky phone bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; border-top: 1px solid var(--hi-deep); }
.sticky-cta a { flex: 1 1 0; text-align: center; padding: 16px 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; text-transform: uppercase; text-decoration: none; }
.sticky-cta__call { background: var(--hi); color: var(--ink0); }
.sticky-cta__est { background: var(--ink1); color: var(--bone); border-left: 1px solid var(--hi-deep); }

/* ---------------------------------------------------------- responsive
   The hero photograph gets its own treatment at every breakpoint, because a
   16:9 crop pinned to the right edge is wrong the moment the column stacks. */
@media (max-width: 1140px) {
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock div:nth-child(2n) { border-right: 0; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink1); border-bottom: 1px solid var(--rule-strong); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; display: none; }
  .nav__links.open { display: flex; }
  .nav__links > li > a { display: block; padding: 12px 28px; }
  .nav__links .nav__call { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; border: 0; padding: 0 0 6px 14px; min-width: 0; background: none; }
  .nav__end { display: flex; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  /* one column now: the art sits behind the whole block, cropped to its
     centre-right so the roofline stays in frame, with a heavier scrim. */
  .hero__photo { background-position: 72% center; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(13,14,16,.94) 0%, rgba(13,14,16,.86) 42%, rgba(13,14,16,.78) 70%, rgba(13,14,16,.96) 100%); }
  .hero h1 { max-width: 20ch; }
  .gauge { max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .est { grid-template-columns: 1fr; }
  .est__controls { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(2n) { border-right: 0; }
  .footer-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-strong); }
}
@media (max-width: 700px) {
  .wrap, .nav, .hero__in { padding-left: 18px; padding-right: 18px; }
  .sec { padding: 50px 0; }
  .hero__in { padding: 48px 18px 54px; }
  /* On a phone the hero column is far taller than any photograph's aspect
     ratio, so covering the whole block would zoom the 9:16 crop until only
     sky is left. Instead the art is a fixed masthead band at the top, holding
     the roofline, fading to solid ground before the buttons. Fixed height
     means it is the same composition on a 320px phone and a 690px tablet. */
  .hero__photo { bottom: auto; height: 440px; background-image: var(--hero-m, var(--hero, none)); background-position: center 82%; background-size: cover; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(13,14,16,.76) 0%, rgba(13,14,16,.84) 46%, rgba(13,14,16,.97) 84%, rgba(13,14,16,1) 100%); }
  .hero h1 { max-width: 100%; }
  .hero__sub { max-width: 100%; }
  .hero__stats { max-width: 100%; }
  .gauge { max-width: 100%; }
  .gauge__read, .gauge__rows li, .gauge__foot { padding-left: 20px; padding-right: 20px; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .footer-grid > div:last-child { border-bottom: 0; }
  .sticky-cta { display: flex; }
}
@media (max-width: 560px) {
  /* the header keeps the mark, the name and the menu; the sticky bottom bar
     already carries Call now. */
  .nav__end .nav__call { display: none; }
  .nav { gap: 12px; }
}
@media (max-width: 480px) {
  .nav__logo { font-size: .95rem; }
  .nav__logo::before { width: 26px; height: 26px; }
  .hero__btns .btn { width: 100%; }
}
