/* Dynasty Ice — "Cold Front" design direction. Contrast ratios are documented in STRATEGY.md. */
:root {
  --navy: #0A1C2E;
  --navy-2: #12304B;
  --ink: #0F2236;
  --muted: #4A5D70;
  --ice: #EEF6FB;
  --frost: #BFE0F0;
  --frost-2: #9FC3D9;
  --link: #1565A8;
  --amber: #F2A900;
  --amber-hover: #FFC23A;
  --white: #FFFFFF;
  --line: #D3E3EE;
  --radius: 0.5rem;
  --max: 72rem;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--link); }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

h1, h2, h3 { font-family: var(--head); line-height: 1.05; letter-spacing: 0.005em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--ice { background: var(--ice); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark a:not(.btn) { color: var(--frost); }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: 0.75rem; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--amber); }
.lede { font-size: 1.2rem; max-width: 40rem; }
.muted { color: var(--muted); }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--amber); color: var(--navy); padding: 0.75rem 1rem; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-hover); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--frost); }
.btn--ghost:hover { background: var(--navy-2); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--ice); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--navy-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--white); text-decoration: none; }
.brand svg { width: 2.25rem; height: 2.25rem; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-size: 0.7rem; letter-spacing: 0.22em; color: var(--frost); font-weight: 600; margin-top: 0.15rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 0.75rem; background: transparent; color: var(--white); border: 2px solid var(--frost-2); border-radius: var(--radius); font: 700 1rem var(--head); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid var(--navy-2); padding: 0.5rem 1rem 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 2.75rem; color: var(--white); text-decoration: none; font-family: var(--head); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--amber); }
.site-nav .lang a { color: var(--frost); }
.header-call { display: none; }
@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 1.5rem; align-items: center; }
  .site-nav a { font-size: 1.05rem; }
  .header-call { display: inline-flex; min-height: 2.75rem; font-size: 1.05rem; padding: 0.5rem 1rem; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5rem); align-items: center; }
.hero h1 span { color: var(--frost); display: block; }
.hero .lede { color: var(--white); }
.hero-art { max-width: 26rem; margin-inline: auto; width: 100%; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.trust { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.6rem; }
.trust li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--frost); font-weight: 600; }
.trust svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.15rem; color: var(--amber); }
@media (min-width: 40rem) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cards and grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 40rem) and (max-width: 55.99rem) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.5rem; }
.card h3 { margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 3rem; height: 3rem; color: var(--link); margin-bottom: 0.9rem; }
.section--dark .card { background: var(--navy-2); border-color: #23476A; color: var(--white); }
.section--dark .card .icon { color: var(--amber); }

/* Product cards */
.bag { display: flex; flex-direction: column; gap: 0.5rem; }
.bag-size { font-family: var(--head); font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--navy); min-width: 5.5rem; }
.bag-size small { display: block; font-size: 1.1rem; letter-spacing: 0.1em; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--navy-2); border-radius: 0.75rem; padding: 1.5rem; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--amber); color: var(--navy); font: 800 1.5rem var(--head); margin-bottom: 0.9rem; }
.steps h3 { color: var(--white); }
.steps p { color: var(--frost); margin: 0; }

/* Split section */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.promise { border-left: 6px solid var(--amber); padding: 0.75rem 0 0.75rem 1.25rem; font-family: var(--head); font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin: 1.5rem 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--link) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/0.8rem no-repeat; }

/* Photo placeholder */
.photo-slot { aspect-ratio: 4 / 3; border: 3px dashed var(--frost-2); border-radius: 0.75rem; background: repeating-linear-gradient(135deg, var(--ice), var(--ice) 14px, #E3F0F8 14px, #E3F0F8 28px); display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--muted); font-weight: 600; margin: 0; }
.photo-slot strong { display: block; font-family: var(--head); font-size: 1.3rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }

/* Service area */
.area-map { background: var(--navy); color: var(--white); border-radius: 0.75rem; padding: 1rem; }
.area-list { columns: 2; column-gap: 1.5rem; padding-left: 1.2rem; }
.area-list li { margin-bottom: 0.4rem; break-inside: avoid; }
.note { font-size: 0.95rem; color: var(--muted); }

/* Quote helper */
.quote-box { background: var(--white); color: var(--ink); border-radius: 0.75rem; padding: clamp(1.25rem, 4vw, 2rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .hint { display: block; font-size: 0.92rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.75rem; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid #7C93A8; border-radius: var(--radius);
}
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.form-grid { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.preview { background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; white-space: pre-wrap; font-size: 0.97rem; margin: 0 0 1rem; }
.status { min-height: 1.5em; font-weight: 600; color: var(--link); }
.fineprint { font-size: 0.93rem; color: var(--muted); margin-top: 1rem; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding-block: 0.75rem; font-family: var(--head); font-size: 1.4rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 2rem; line-height: 1; color: var(--link); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-bottom: 1rem; }

/* Placeholder marker (draft only — remove before launch) */
.tbd { background: #FFF3C4; color: #5C4300; padding: 0 0.25em; border-radius: 3px; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--amber); color: var(--navy); }
.cta-band h2 { margin-bottom: 0.25em; }
.cta-band .btn--primary { background: var(--navy); color: var(--white); }
.cta-band .btn--primary:hover { background: var(--navy-2); }
.cta-band .btn--outline { background: transparent; border-color: var(--navy); }
.cta-band .btn--outline:hover { background: var(--amber-hover); }
.cta-band :focus-visible { outline-color: var(--navy); }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) { .cta-inner { grid-template-columns: 1.4fr 1fr; } .cta-inner .btn-row { justify-content: flex-end; } }

/* Footer */
.site-footer { background: var(--navy); color: var(--frost); padding-block: 3rem 6.5rem; font-size: 0.98rem; }
@media (min-width: 60rem) { .site-footer { padding-bottom: 3rem; } }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.25rem; color: var(--white); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer li a { display: inline-block; padding-block: 0.2rem; }
.legal { border-top: 1px solid var(--navy-2); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.9rem; }

/* Sticky mobile call bar */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--navy); border-top: 1px solid #23476A; }
.callbar .btn { min-height: 3rem; font-size: 1.1rem; padding-inline: 0.5rem; }
@media (min-width: 60rem) { .callbar { display: none; } }

/* Long-form pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero .lede { color: var(--frost); }
.draft-banner { background: #FFF3C4; color: #5C4300; border: 2px solid #E0B400; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

.section--dark .quote-box a:not(.btn) { color: var(--link); }
.page-hero .eyebrow { color: var(--amber); }
@media (min-width: 56rem) { #area .split { grid-template-columns: 1fr 1.3fr; } }

/* Hero photo (AI-generated atmosphere, see ASSET-LOG.md). Overlay keeps text contrast >= 10:1 */
.hero {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(10,28,46,.88), rgba(10,28,46,.82)), url("../img/hero-ice-900.jpg");
  background-size: cover; background-position: 65% 60%;
}
@media (min-width: 56rem) {
  .hero { background-image: linear-gradient(90deg, #0A1C2E 0%, #0A1C2E 52%, rgba(10,28,46,.6) 70%, rgba(10,28,46,.15) 100%), url("../img/hero-ice-1600.jpg"); background-position: right center; background-size: auto 100%; background-repeat: no-repeat; }
  .hero-grid { min-height: 34rem; }
}

/* ---- Draft review mode (build.py DRAFT = True). Removed automatically when DRAFT = False ---- */
.tbd { background: #FFE14D; color: #2B2100; padding: 0.05em 0.35em; border-radius: 3px; font-weight: 700; box-shadow: 0 0 0 2px #E0B400; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.photo-slot { background: #FFF6BF; border-color: #E0B400; color: #4A3B00; }
.photo-slot strong { background: #FFE14D; color: #2B2100; padding: 0.1em 0.4em; border-radius: 3px; margin-bottom: 0.4rem; }
.ph-logo { display: inline-flex; background: #FFE14D; border-radius: 4px; padding: 2px; box-shadow: 0 0 0 2px #E0B400; }
.draft-bar { background: #FFE14D; color: #2B2100; text-align: center; padding: 0.5rem 1rem; font-size: 0.95rem; line-height: 1.4; border-bottom: 2px solid #E0B400; }
.draft-bar mark { background: #2B2100; color: #FFE14D; padding: 0 0.3em; border-radius: 2px; }

/* ---- Desert touches (AI images: see ASSET-LOG.md; ridge drawn in code) ---- */
/* About page header: desert road at sunrise, darkened so text stays >= 7:1 */
.page-hero--road {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(10,28,46,.88), rgba(10,28,46,.8)), url("../img/lease-road-900.jpg");
  background-size: cover; background-position: center 65%;
}
@media (min-width: 56rem) {
  .page-hero--road {
    background-image: linear-gradient(90deg, #0A1C2E 0%, #0A1C2E 44%, rgba(10,28,46,.55) 66%, rgba(10,28,46,.3) 100%), url("../img/lease-road-1600.jpg");
    background-size: auto, auto 100%; background-position: 0 0, right center; background-repeat: no-repeat;
    padding-block: 6rem;
  }
}
/* "How it works": dusk horizon rises behind the step cards */
#how {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, #0A1C2E 0%, #0A1C2E 30%, rgba(10,28,46,0) 70%), url("../img/desert-dusk-900.jpg");
  background-repeat: no-repeat; background-position: center bottom; background-size: 100% auto, 100% auto;
  background-size: cover, 100% auto;
  padding-bottom: clamp(7rem, 22vw, 15rem);
}
@media (min-width: 56rem) {
  #how { background-image: linear-gradient(180deg, #0A1C2E 0%, #0A1C2E 30%, rgba(10,28,46,0) 70%), url("../img/desert-dusk-1600.jpg"); }
}
/* Mesa horizon edge at the bottom of the home hero */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(28px, 5vw, 64px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 64V44l90-4 40-14h150l26 16 190 6 70-6 34-20h210l30 22 170 4 60-10h180l40 14 150 4V64z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hero-grid { position: relative; z-index: 1; padding-bottom: clamp(4rem, 9vw, 7rem); }
@media (min-width: 56rem) { .page-hero--road h1, .page-hero--road .lede { max-width: 34rem; } }
.live-temp[hidden] { display: none !important; }
.topo-wrap { -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 72%); mask-image: linear-gradient(90deg, transparent 30%, #000 72%); }
