/* ==========================================================================
   A1 HILL COUNTRY v2.0 — "Limestone Ledger"
   Earth-tone design system: Desert Tan / Driftwood / Brownwood
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400&family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
  /* Earth-tone core */
  --limestone: #F4EFE4;
  --limestone-2: #EBE3D3;
  --limestone-3: #DED3BE;
  --desert-tan: #C8A87C;
  --desert-tan-dk: #A9884F;
  --driftwood: #8C8579;
  --driftwood-lt: #B4ADA0;
  --brownwood: #4A3B2C;
  --brownwood-2: #5F4C38;
  --bark: #2E241A;
  --bark-deep: #1F1810;

  /* Accents */
  --copper: #B4571F;
  --copper-lt: #D4763A;
  --hail: #6A7F8C;
  --sage: #6F7A52;
  --ok: #4E6B45;
  --warn: #B4741F;
  --alert: #9E3319;

  /* Ink */
  --ink: #2A2118;
  --ink-2: #574839;
  --ink-3: #7D6E5D;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', 'Helvetica Neue', sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --sh-1: 0 1px 2px rgba(46, 36, 26, .07);
  --sh-2: 0 4px 14px rgba(46, 36, 26, .10);
  --sh-3: 0 14px 38px rgba(46, 36, 26, .16);
  --sh-4: 0 28px 70px rgba(46, 36, 26, .24);

  --maxw: 1240px;
  --gut: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle limestone grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 780px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.018em; color: var(--bark); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.05rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.06rem; letter-spacing: -.005em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--copper); flex: none; }
.eyebrow.center { justify-content: center; }

.lede { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--ink-2); line-height: 1.62; }
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: .875rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 14px 24px; border: 1.5px solid transparent; border-radius: var(--r-md);
  text-decoration: none; cursor: pointer; transition: all .22s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.btn-primary { background: var(--copper); color: #fff; box-shadow: 0 3px 0 #7E3A11, var(--sh-2); }
.btn-primary:hover { background: var(--copper-lt); transform: translateY(-2px); box-shadow: 0 5px 0 #7E3A11, var(--sh-3); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #7E3A11; }
.btn-dark { background: var(--bark); color: var(--limestone); }
.btn-dark:hover { background: var(--brownwood); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--bark); border-color: rgba(74,59,44,.32); }
.btn-ghost:hover { background: rgba(74,59,44,.06); border-color: var(--bark); }
.btn-onlight { background: var(--limestone); color: var(--bark); }
.btn-onlight:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: .78rem; }
.btn-lg { padding: 17px 32px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Storm ticker ---------- */
.storm-bar {
  background: linear-gradient(100deg, var(--warn), #8E5A17);
  color: #fff; font-size: .8rem; font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.2);
  position: relative; z-index: 60;
}
.storm-bar.is-severe { background: linear-gradient(100deg, var(--alert), #77240F); }
.storm-bar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.storm-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; animation: throb 1.4s infinite; }
@keyframes throb { 0%,100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.15); } }
.storm-label { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.storm-text { flex: 1; min-width: 200px; }
.storm-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.storm-close { background: none; border: 0; color: rgba(255,255,255,.75); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 2px; }
.storm-close:hover { color: #fff; }

/* ---------- Utility header ---------- */
.util {
  background: var(--bark-deep); color: var(--driftwood-lt);
  font-size: .78rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.util-facts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.util-facts span { display: inline-flex; align-items: center; gap: 6px; }
.util a { color: var(--limestone-3); text-decoration: none; }
.util a:hover { color: #fff; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,239,228,.93);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--limestone-3);
  transition: box-shadow .25s ease;
}
.hdr.stuck { box-shadow: var(--sh-2); }
.hdr .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 3px; flex: none; position: relative;
  background: linear-gradient(150deg, var(--brownwood), var(--bark));
  display: grid; place-items: center; color: var(--desert-tan);
  font-family: var(--font-display); font-weight: 900; font-size: 1.16rem;
  box-shadow: inset 0 0 0 1px rgba(200,168,124,.4), var(--sh-1);
}
.logo-mark::after {
  content: ''; position: absolute; inset: 4px; border: 1px solid rgba(200,168,124,.25);
}
.logo-name { font-family: var(--font-display); font-weight: 900; font-size: 1.11rem; letter-spacing: -.02em; color: var(--bark); line-height: 1.05; }
.logo-sub { font-size: .615rem; letter-spacing: .155em; text-transform: uppercase; color: var(--copper); font-weight: 700; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 13px; font-size: .855rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; border-radius: var(--r-sm); transition: all .18s ease; cursor: pointer;
  background: none; border: 0; font-family: var(--font-body);
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-current="page"] { color: var(--bark); background: rgba(74,59,44,.06); }
.nav-link .caret { font-size: .55rem; opacity: .55; transition: transform .2s ease; }
.nav-item:hover .caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 640px; background: #FFFDF8; border: 1px solid var(--limestone-3);
  border-radius: var(--r-lg); box-shadow: var(--sh-4); padding: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 22px;
  opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 70;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col-head {
  font-size: .66rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--copper); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--limestone-2);
}
.mega-col p.mega-blurb { font-size: .74rem; color: var(--ink-3); line-height: 1.45; margin-bottom: 10px; }
.mega-link { display: block; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; transition: background .16s ease; }
.mega-link:hover { background: var(--limestone); }
.mega-link strong { display: block; font-size: .875rem; font-weight: 700; color: var(--bark); }
.mega-link span { font-size: .755rem; color: var(--ink-3); line-height: 1.35; display: block; margin-top: 1px; }

.hdr-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-phone { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.hdr-phone small { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.hdr-phone strong { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: var(--bark); }
.hdr-phone:hover strong { color: var(--copper); }

.burger { display: none; background: none; border: 1.5px solid rgba(74,59,44,.25); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; }
.burger span { display: block; width: 19px; height: 2px; background: var(--bark); border-radius: 2px; }
.burger span + span { margin-top: 4px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: #FFFDF8;
  z-index: 120; transform: translateX(101%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 20px; box-shadow: var(--sh-4);
}
.drawer.open { transform: translateX(0); }
.drawer-scrim { position: fixed; inset: 0; background: rgba(31,24,16,.55); backdrop-filter: blur(3px); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink-2); }
.drawer-group { margin-bottom: 18px; }
.drawer-group > p { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 7px; }
.drawer a.d-link { display: block; padding: 9px 0; font-size: .95rem; font-weight: 600; color: var(--bark); text-decoration: none; border-bottom: 1px solid var(--limestone-2); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bark-deep); color: var(--limestone); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31,24,16,.95) 0%, rgba(31,24,16,.82) 42%, rgba(31,24,16,.42) 72%, rgba(31,24,16,.55) 100%),
    linear-gradient(0deg, rgba(31,24,16,.9), transparent 55%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(52px, 8vw, 92px); padding-bottom: clamp(52px, 8vw, 92px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.hero h1 { color: var(--limestone); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--desert-tan); }
.hero-sub { color: var(--limestone-3); font-size: clamp(1rem, 1.5vw, 1.16rem); margin-top: 18px; max-width: 54ch; }
.hero .eyebrow { color: var(--desert-tan); }
.hero .eyebrow::before { background: var(--desert-tan); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(244,239,228,.16); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.72rem; font-weight: 900; color: var(--desert-tan); line-height: 1; }
.hero-stat span { font-size: .705rem; letter-spacing: .11em; text-transform: uppercase; color: var(--driftwood-lt); font-weight: 600; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-badges .chip { border-color: rgba(244,239,228,.22); color: var(--limestone-3); background: rgba(244,239,228,.06); }

/* Reveal on load */
.rise { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; } .d5 { animation-delay: .41s; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Quote engine card ---------- */
.quote-card {
  background: #FFFDF8; border-radius: var(--r-lg); box-shadow: var(--sh-4);
  color: var(--ink); overflow: hidden; border: 1px solid rgba(244,239,228,.3);
}
.quote-head { padding: 22px 24px 18px; background: linear-gradient(150deg, var(--limestone-2), var(--limestone)); border-bottom: 1px solid var(--limestone-3); }
.quote-head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.quote-head p { font-size: .82rem; color: var(--ink-3); }
.quote-body { padding: 22px 24px 24px; }
.quote-steps { display: flex; gap: 5px; margin-bottom: 16px; }
.qstep { flex: 1; height: 3px; border-radius: 3px; background: var(--limestone-3); overflow: hidden; }
.qstep.on { background: var(--copper); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .705rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: .72rem; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--limestone-3); border-radius: var(--r-md); transition: all .18s ease;
}
.input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(180,87,31,.13); }
textarea.input { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: block; text-align: center; padding: 9px 6px; font-size: .74rem; font-weight: 700;
  border: 1.5px solid var(--limestone-3); border-radius: var(--r-md); cursor: pointer;
  transition: all .16s ease; text-transform: none; letter-spacing: 0; color: var(--ink-2); margin: 0;
}
.seg input:checked + label { background: var(--bark); color: var(--limestone); border-color: var(--bark); }
.seg label:hover { border-color: var(--driftwood); }

.quote-note { font-size: .715rem; color: var(--ink-3); text-align: center; margin-top: 11px; line-height: 1.5; }

.qspin { display: none; padding: 26px 0; text-align: center; }
.qspin.on { display: block; }
.qspin-ring { width: 38px; height: 38px; margin: 0 auto 14px; border: 3px solid var(--limestone-3); border-top-color: var(--copper); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qspin p { font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.qspin small { display: block; font-size: .74rem; color: var(--ink-3); margin-top: 4px; }

/* Quote result */
.qres { display: none; }
.qres.on { display: block; }
.qres-addr { font-size: .74rem; color: var(--ink-3); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--limestone-2); line-height: 1.45; }
.qres-band { text-align: center; padding: 18px; background: var(--bark); border-radius: var(--r-md); color: var(--limestone); margin-bottom: 14px; }
.qres-band .k { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--driftwood-lt); font-weight: 700; }
.qres-band .v { font-family: var(--font-display); font-size: clamp(1.7rem, 4.6vw, 2.35rem); font-weight: 900; color: var(--desert-tan); line-height: 1.1; margin: 4px 0 2px; }
.qres-band .s { font-size: .73rem; color: var(--driftwood-lt); }
.qres-rows { display: grid; gap: 1px; background: var(--limestone-2); border: 1px solid var(--limestone-2); border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; }
.qres-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; background: #fff; font-size: .82rem; }
.qres-row dt { color: var(--ink-3); }
.qres-row dd { font-weight: 700; color: var(--bark); text-align: right; }
.qmap { width: 100%; height: 150px; border: 0; border-radius: var(--r-md); margin-bottom: 14px; background: var(--limestone-2); }
.qflag { font-size: .74rem; padding: 10px 12px; border-radius: var(--r-md); line-height: 1.5; margin-bottom: 13px; }
.qflag.warn { background: #FBF0DE; border: 1px solid #E7CE9E; color: #6C4A12; }
.qflag.info { background: #EDF1F3; border: 1px solid #C9D6DC; color: #3B4E58; }
.qflag.good { background: #EDF2E9; border: 1px solid #C6D6BC; color: #3B4E33; }

/* ---------- Sections ---------- */
.sec { padding: clamp(58px, 8vw, 100px) 0; }
.sec-tight { padding: clamp(40px, 5vw, 64px) 0; }
.sec-limestone { background: var(--limestone-2); }
.sec-dark { background: var(--bark); color: var(--limestone-3); }
.sec-dark h2, .sec-dark h3, .sec-dark h4 { color: var(--limestone); }
.sec-dark .lede { color: var(--driftwood-lt); }
.sec-dark .eyebrow { color: var(--desert-tan); }
.sec-dark .eyebrow::before { background: var(--desert-tan); }
.sec-brown { background: var(--brownwood); color: var(--limestone-2); }
.sec-brown h2, .sec-brown h3, .sec-brown h4 { color: var(--limestone); }
.sec-brown .lede { color: var(--limestone-3); }
.sec-brown .eyebrow { color: var(--desert-tan); }
.sec-brown .eyebrow::before { background: var(--desert-tan); }
.sec-brown .speclist li { color: var(--limestone-3); }
.sec-brown .speclist li::before { box-shadow: inset 0 0 0 2px var(--brownwood); background: var(--desert-tan); }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 12px 0 14px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border: 1px solid var(--limestone-3); border-radius: 100px; background: #FFFDF8;
  font-size: .715rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.chip-copper { border-color: rgba(180,87,31,.3); background: rgba(180,87,31,.07); color: var(--copper); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #FFFDF8; border: 1px solid var(--limestone-3); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--desert-tan); }
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--limestone-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.card:hover .card-img img { transform: scale(1.045); }
.card-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(31,24,16,.82);
  backdrop-filter: blur(4px); color: var(--desert-tan); padding: 4px 10px; border-radius: 100px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body h4 { margin-bottom: 7px; }
.card-body p { font-size: .875rem; color: var(--ink-2); margin-bottom: 14px; }
.card-foot { margin-top: auto; padding-top: 12px; }
.card-link { font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--copper); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { gap: 11px; }
.card-link .ar { transition: transform .2s ease; }

.speclist { list-style: none; margin-bottom: 16px; }
.speclist li { font-size: .825rem; color: var(--ink-2); padding: 5px 0 5px 22px; position: relative; line-height: 1.45; }
.speclist li::before {
  content: ''; position: absolute; left: 0; top: 11px; width: 11px; height: 11px;
  border-radius: 2px; background: var(--sage); box-shadow: inset 0 0 0 2px #FFFDF8;
}
.sec-dark .speclist li { color: var(--limestone-3); }
.sec-dark .speclist li::before { box-shadow: inset 0 0 0 2px var(--bark); background: var(--desert-tan); }

/* ---------- The A1 Standard ---------- */
.std-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(244,239,228,.16); border-radius: var(--r-lg); overflow: hidden; }
.std-cell { padding: 26px 24px; border-right: 1px solid rgba(244,239,228,.14); }
.std-cell:last-child { border-right: 0; }
.std-cell .n { font-family: var(--font-display); font-size: .8rem; font-weight: 900; color: var(--copper-lt); letter-spacing: .1em; }
.std-cell h4 { margin: 10px 0 8px; }
.std-cell p { font-size: .855rem; color: var(--driftwood-lt); }
.std-vs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.std-vs div { font-size: .68rem; padding: 4px 9px; border-radius: 4px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.std-vs .them { background: rgba(158,51,25,.18); color: #E8A38F; }
.std-vs .us { background: rgba(111,122,82,.24); color: #C3CEA4; }

/* ---------- Before / After slider ---------- */
.ba-shell { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); background: var(--limestone-2); user-select: none; touch-action: pan-y; }
.ba-shell img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; pointer-events: none; }
.ba-after { position: absolute; inset: 0; }
.ba-after img { width: 100%; height: 100%; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--limestone); box-shadow: 0 0 14px rgba(31,24,16,.5); cursor: ew-resize; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--limestone); color: var(--bark);
  display: grid; place-items: center; box-shadow: var(--sh-3); font-size: .85rem; font-weight: 800;
}
.ba-tag { position: absolute; bottom: 14px; padding: 5px 12px; border-radius: 100px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(31,24,16,.8); backdrop-filter: blur(4px); color: var(--limestone); }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Map ---------- */
.map-shell { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: stretch; }
.map-canvas {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--limestone-3);
  background: #E4DCC8; min-height: 470px;
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { cursor: pointer; transition: transform .2s ease; transform-box: fill-box; transform-origin: center; }
.map-pin:hover { transform: scale(1.25); }
.map-pin.on circle.hd { fill: var(--copper); }
.map-legend { position: absolute; left: 14px; bottom: 14px; background: rgba(255,253,248,.92); border: 1px solid var(--limestone-3); border-radius: var(--r-md); padding: 10px 12px; font-size: .7rem; }
.map-legend b { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.map-legend div { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--ink-2); }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.map-side { display: flex; flex-direction: column; gap: 12px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.proj {
  border: 1px solid var(--limestone-3); border-radius: var(--r-md); padding: 13px 14px; background: #FFFDF8;
  cursor: pointer; transition: all .2s ease;
}
.proj:hover, .proj.on { border-color: var(--copper); background: #fff; box-shadow: var(--sh-2); }
.proj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.proj-top strong { font-family: var(--font-display); font-size: 1rem; color: var(--bark); }
.proj-top span { font-size: .68rem; color: var(--ink-3); font-weight: 600; }
.proj-meta { font-size: .715rem; color: var(--copper); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 4px 0 5px; }
.proj p { font-size: .795rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Comparison / scorecard ---------- */
.score-table { width: 100%; border-collapse: collapse; font-size: .875rem; background: #FFFDF8; border: 1px solid var(--limestone-3); border-radius: var(--r-lg); overflow: hidden; }
.score-table th, .score-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--limestone-2); vertical-align: top; }
.score-table thead th { background: var(--bark); color: var(--limestone); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.score-table tbody tr:last-child td { border-bottom: 0; }
.score-table tbody tr:hover { background: var(--limestone); }
.score-table td.pts { font-family: var(--font-display); font-weight: 900; color: var(--copper); font-size: 1.05rem; white-space: nowrap; }
.score-table .crit { font-weight: 700; color: var(--bark); }
.score-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.flagbox { border-left: 3px solid var(--alert); background: #FBEDE9; padding: 14px 16px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.flagbox h4 { color: #7A2812; margin-bottom: 6px; font-size: .95rem; }
.flagbox p { font-size: .835rem; color: #6B3324; }
.okbox { border-left: 3px solid var(--ok); background: #EDF2E9; padding: 14px 16px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.okbox h4 { color: #33482C; margin-bottom: 6px; font-size: .95rem; }
.okbox p { font-size: .835rem; color: #435039; }

/* ---------- Reviews ---------- */
.rev { background: #FFFDF8; border: 1px solid var(--limestone-3); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; }
.rev-stars { color: var(--desert-tan-dk); letter-spacing: 2px; font-size: .95rem; }
.rev blockquote { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.5; color: var(--bark); margin: 11px 0 14px; }
.rev-who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--limestone-2); font-size: .78rem; }
.rev-who strong { display: block; color: var(--bark); }
.rev-who span { color: var(--ink-3); }
.rev-themes { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Answer blocks (GEO/AEO) ---------- */
.answer {
  background: #FFFDF8; border: 1px solid var(--limestone-3); border-left: 3px solid var(--copper);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 18px 20px; margin-bottom: 14px;
}
.answer h3 { font-size: 1.06rem; margin-bottom: 7px; }
.answer p { font-size: .9rem; color: var(--ink-2); }
.answer p strong { color: var(--bark); }

details.faq { border: 1px solid var(--limestone-3); border-radius: var(--r-md); background: #FFFDF8; margin-bottom: 9px; overflow: hidden; }
details.faq summary {
  padding: 15px 18px; cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--bark);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 1.3rem; color: var(--copper); flex: none; line-height: 1; }
details.faq[open] summary::after { content: '−'; }
details.faq[open] summary { border-bottom: 1px solid var(--limestone-2); }
details.faq .faq-body { padding: 15px 18px; font-size: .89rem; color: var(--ink-2); }
details.faq .faq-body p + p { margin-top: 9px; }

/* ---------- Financing calculator ---------- */
.fin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 52px); align-items: center; }
.fin-panel { background: rgba(244,239,228,.06); border: 1px solid rgba(244,239,228,.16); border-radius: var(--r-lg); padding: 26px; }
.fin-out { text-align: center; padding-bottom: 18px; border-bottom: 1px solid rgba(244,239,228,.14); margin-bottom: 18px; }
.fin-out .k { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--driftwood-lt); font-weight: 700; }
.fin-out .v { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 900; color: var(--desert-tan); line-height: 1.05; margin-top: 4px; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px;
  background: rgba(244,239,228,.22); outline: none; margin: 16px 0 8px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--copper);
  border: 3px solid var(--limestone); cursor: grab; box-shadow: var(--sh-2);
}
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--copper); border: 3px solid var(--limestone); cursor: grab; }
.fin-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--driftwood-lt); }
.fin-terms { display: grid; gap: 1px; background: rgba(244,239,228,.14); border-radius: var(--r-md); overflow: hidden; margin-top: 18px; }
.fin-term { display: flex; justify-content: space-between; padding: 10px 13px; background: rgba(31,24,16,.5); font-size: .82rem; }
.fin-term span { color: var(--driftwood-lt); }
.fin-term strong { color: var(--limestone); }

/* ---------- Steps / roadmap ---------- */
.road { counter-reset: rd; display: grid; gap: 0; }
.road-step { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
.road-step::before {
  counter-increment: rd; content: counter(rd, decimal-leading-zero);
  grid-column: 1; width: 46px; height: 46px; border-radius: 50%; background: #FFFDF8;
  border: 1.5px solid var(--desert-tan); color: var(--copper); font-family: var(--font-display);
  font-weight: 900; font-size: .92rem; display: grid; place-items: center; z-index: 2;
}
.road-step::after { content: ''; position: absolute; left: 23px; top: 46px; bottom: 0; width: 1.5px; background: var(--limestone-3); }
.road-step:last-child { padding-bottom: 0; }
.road-step:last-child::after { display: none; }
.road-step h4 { margin-bottom: 5px; }
.road-step p { font-size: .875rem; color: var(--ink-2); }
.sec-dark .road-step::before { background: var(--bark); border-color: var(--desert-tan); color: var(--desert-tan); }
.sec-dark .road-step::after { background: rgba(244,239,228,.18); }
.sec-dark .road-step p { color: var(--driftwood-lt); }

/* ---------- Prose (guides) ---------- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 1.9em; }
.prose h3 { font-size: 1.16rem; margin-top: 1.6em; }
.prose p { font-size: 1.035rem; line-height: 1.72; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li { font-size: 1.01rem; line-height: 1.66; color: var(--ink-2); margin-top: .4em; }
.prose strong { color: var(--bark); }
.prose blockquote {
  border-left: 3px solid var(--desert-tan); padding: 4px 0 4px 20px; margin-left: 0;
  font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: var(--brownwood);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--limestone-3); text-align: left; }
.prose th { background: var(--limestone-2); font-weight: 700; color: var(--bark); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--r-md); }
.prose figcaption { font-size: .765rem; color: var(--ink-3); margin-top: 8px; font-style: italic; }
.toc { background: var(--limestone-2); border: 1px solid var(--limestone-3); border-radius: var(--r-md); padding: 18px 20px; }
.toc b { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--copper); display: block; margin-bottom: 9px; }
.toc ol { padding-left: 1.1em; }
.toc li { font-size: .875rem; margin-top: 5px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--copper); text-decoration: underline; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .755rem; color: var(--ink-3); padding: 14px 0; }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--copper); }
.crumb span { margin: 0 7px; opacity: .5; }

/* ---------- Page hero (interior) ---------- */
.phero { background: var(--bark); color: var(--limestone); position: relative; overflow: hidden; }
.phero-media { position: absolute; inset: 0; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.phero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(46,36,26,.94), rgba(46,36,26,.66) 60%, rgba(46,36,26,.34)); }
.phero .wrap { position: relative; z-index: 2; padding-top: clamp(38px, 5vw, 62px); padding-bottom: clamp(38px, 5vw, 62px); }
.phero h1 { color: var(--limestone); max-width: 22ch; }
.phero .lede { color: var(--limestone-3); max-width: 58ch; margin-top: 14px; }
.phero .crumb, .phero .crumb a { color: var(--driftwood-lt); }

/* ---------- CTA band ---------- */
.ctaband { background: var(--copper); color: #fff; }
.ctaband .wrap { padding: clamp(34px, 5vw, 56px) var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.ctaband h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.ctaband p { color: rgba(255,255,255,.86); margin-top: 7px; font-size: .95rem; }
.ctaband-btns { display: flex; gap: 11px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.ftr { background: var(--bark-deep); color: var(--driftwood-lt); padding: clamp(44px, 6vw, 68px) 0 26px; font-size: .855rem; }
.ftr-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(244,239,228,.1); }
.ftr h4 { color: var(--limestone); font-size: .705rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); font-weight: 800; }
.ftr ul { list-style: none; }
.ftr li { margin-bottom: 8px; }
.ftr a { color: var(--driftwood-lt); text-decoration: none; }
.ftr a:hover { color: var(--desert-tan); }
.ftr .logo-name { color: var(--limestone); }
.ftr-addr { margin: 16px 0; line-height: 1.7; }
.ftr-addr strong { color: var(--limestone); display: block; font-size: .95rem; }
.ftr-owner { border: 1px solid rgba(200,168,124,.32); background: rgba(200,168,124,.07); border-radius: var(--r-md); padding: 14px; margin-top: 16px; }
.ftr-owner b { color: var(--desert-tan); font-size: .705rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 5px; }
.ftr-owner a { color: var(--limestone); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.ftr-creds { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ftr-cred { border: 1px solid rgba(244,239,228,.18); border-radius: var(--r-sm); padding: 7px 11px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--limestone-3); }
.ftr-bot { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .755rem; color: var(--driftwood); }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--bark); border-top: 1px solid rgba(244,239,228,.14); padding: 9px 12px; gap: 9px; }
.callbar .btn { flex: 1; padding: 12px 8px; font-size: .78rem; }

/* ---------- Dev portal (WP assets) ---------- */
.portal { background: #17110B; border: 1px solid rgba(244,239,228,.13); border-radius: var(--r-lg); overflow: hidden; }
.portal-tabs { display: flex; overflow-x: auto; background: rgba(0,0,0,.35); border-bottom: 1px solid rgba(244,239,228,.1); }
.portal-tab { padding: 13px 18px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--driftwood-lt); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.portal-tab:hover { color: var(--limestone); }
.portal-tab.on { color: var(--desert-tan); border-bottom-color: var(--desert-tan); background: rgba(244,239,228,.05); }
.portal-body { padding: 20px; }
.portal-pane { display: none; }
.portal-pane.on { display: block; }
.portal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 11px; flex-wrap: wrap; }
.portal-bar span { font-size: .78rem; font-weight: 700; color: var(--limestone-3); font-family: monospace; }
.code {
  background: #0C0906; border: 1px solid rgba(244,239,228,.1); border-radius: var(--r-md);
  padding: 16px; overflow-x: auto; font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .755rem; line-height: 1.6; color: #C8B79E; white-space: pre; max-height: 440px; overflow-y: auto;
}
.copy { background: rgba(244,239,228,.1); border: 1px solid rgba(244,239,228,.2); color: var(--limestone); padding: 6px 13px; border-radius: var(--r-sm); font-size: .72rem; font-weight: 700; cursor: pointer; font-family: var(--font-body); }
.copy:hover { background: var(--copper); border-color: var(--copper); }

/* ---------- Alerts / flash ---------- */
.flash { padding: 13px 15px; border-radius: var(--r-md); font-size: .875rem; margin-top: 14px; display: none; }
.flash.on { display: block; }
.flash.good { background: #EDF2E9; border: 1px solid #C6D6BC; color: #3B4E33; }
.flash.bad { background: #FBEDE9; border: 1px solid #EBC6BB; color: #7A2812; }

/* ---------- Disclosure note ---------- */
.disclose { font-size: .715rem; color: var(--ink-3); line-height: 1.55; border-top: 1px solid var(--limestone-3); padding-top: 12px; margin-top: 18px; }
.sec-dark .disclose, .sec-brown .disclose { color: var(--driftwood); border-color: rgba(244,239,228,.14); }

/* ---------- Admin ---------- */
.adm { max-width: 1400px; margin: 0 auto; padding: 30px var(--gut) 60px; }
.adm table { width: 100%; border-collapse: collapse; font-size: .8rem; background: #FFFDF8; }
.adm th, .adm td { padding: 9px 11px; border: 1px solid var(--limestone-3); text-align: left; vertical-align: top; }
.adm th { background: var(--bark); color: var(--limestone); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.adm-wrap { overflow-x: auto; margin-bottom: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .map-shell { grid-template-columns: 1fr; }
  .map-side { max-height: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; margin-left: auto; }
  .hdr-cta .btn { display: none; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .std-grid { grid-template-columns: 1fr; }
  .std-cell { border-right: 0; border-bottom: 1px solid rgba(244,239,228,.14); }
  .fin { grid-template-columns: 1fr; }
  .util-facts span.hide-sm { display: none; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .callbar { display: flex; }
  body { padding-bottom: 62px; }
  .ftr-top { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { gap: 18px; }
  .hero-stat strong { font-size: 1.45rem; }
  .ctaband .wrap { flex-direction: column; align-items: flex-start; }
  .seg { grid-template-columns: 1fr; }
  .util .wrap { justify-content: center; }
  .util-facts { display: none; }
}

@media print {
  .hdr, .storm-bar, .util, .callbar, .ctaband, .portal { display: none; }
}
