/* Straitview Windows & Doors design system: "Coastal navy, ocean blue, sea glass, warm white"
   Two rooms: dark navy bands (hero, header, brand moments) and fog-light bands for reading.
   One warm accent (arbutus bark) is reserved for actions. Full spec in DESIGN.md. */
:root {
  /* Greens: forest floor to canopy */
  --bog: #122a38;          /* deepest: top bar, footer */
  --rainforest: #1b3a4b;   /* dark canvas: header, hero, dark bands */
  --fern: #244b5f;         /* raised surface on dark */
  --lichen: #5f8699;       /* hairlines on dark, muted marks */
  --sage: #9fbac6;         /* secondary text on dark */
  /* Browns: bark and driftwood */
  --bark: #22333d;         /* body text on light */
  --cedar: #4b7d93;        /* eyebrows and labels on light */
  --driftwood: #b5c9c6;    /* warm hairline on light */
  /* Accent: arbutus bark, actions only */
  --arbutus: #5a8ba3;
  --arbutus-deep: #4a7890;
  --ochre: #b5c9c6;        /* links and labels on dark */
  /* Fog: light reading surfaces */
  --fog: #f1ede4;
  --fog-light: #f8f6f1;
  --fog-line: #ddd6c8;
  --mist: #d9e4e8;         /* body text on dark */
  --snow: #f6f8f7;         /* headings on dark */

  /* Fontshare faces (free for commercial use) */
  --font-display: "Satoshi", "General Sans", "Segoe UI", system-ui, sans-serif;  /* matches the logo's geometric sans */
  --font-body: "General Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-label: var(--font-body);

  --step--1: .85rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 3.8vw, 2.9rem);
  --step-4: clamp(2.5rem, 5.6vw, 4.2rem);

  --radius: 2px;
  --max: 1160px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--bark);
  background: var(--fog);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cedar); text-underline-offset: 3px; }
a:hover { color: var(--arbutus); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; color: var(--rainforest); text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); letter-spacing: -0.02em; max-width: 22ch; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 600; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: .95rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(48px, 6vw, 72px); background: var(--fog); }
.eyebrow { font-family: var(--font-body); font-weight: 500; font-size: .95rem; color: var(--cedar); margin: 0 0 1.4em; }
/* Field note: serif italic, like a caption in a local paper */
.coord { font-family: var(--font-body); font-weight: 500; font-size: .92rem; color: var(--sage); margin: 0 0 .9em; }
.lead { font-size: clamp(1.25rem, 1rem + .7vw, 1.5rem); line-height: 1.4; color: #44535c; max-width: 40ch; margin-top: 1.2em; }
.todo { background: #f3e2b8; color: #5c4400; border-bottom: 2px dashed #b88a1c; padding: 0 3px; font-size: .9em; }

/* Dark room: any band on the rainforest canvas */
.dark, .section.alt, .page-head, .hero, header.site, .cta-band { background: var(--rainforest); color: var(--mist); }
.dark h1, .dark h2, .dark h3, .section.alt h2, .section.alt h3, .page-head h1, .hero h1, .cta-band h2 { color: var(--snow); }
.section.alt .eyebrow, .page-head .eyebrow, .hero .eyebrow { color: var(--ochre); }
.section.alt a:not(.btn), .page-head a:not(.btn), .hero a:not(.btn) { color: var(--ochre); }
.section.alt .lead, .page-head .lead, .hero .lead { color: var(--sage); }
.section.alt strong { color: var(--snow); }

/* Top bar & header */
.topbar { background: var(--bog); color: var(--sage); font-size: .9rem; font-family: var(--font-body); }
.topbar .hide-sm { color: var(--sage); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: var(--snow); text-decoration: none; font-weight: 500; }
header.site { border-bottom: 1px solid #2b4a5c; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--snow); }
.brand svg { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--snow); }
.brand-name small { display: block; font-family: var(--font-display); font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ochre); margin-top: 5px; }
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a { text-decoration: none; color: var(--mist); font-weight: 500; font-size: .96rem; white-space: nowrap; }
nav.main a:hover { color: var(--ochre); }
.menu-toggle { display: none; background: transparent; color: var(--snow); border: 1px solid var(--lichen); border-radius: var(--radius); padding: 8px 14px; font: 500 .95rem var(--font-body); cursor: pointer; }

/* Buttons: arbutus is the only filled colour on the site */
.btn { display: inline-block; background: var(--arbutus); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 15px 26px; border-radius: var(--radius); border: 0; cursor: pointer; letter-spacing: .01em; transition: background .15s ease; }
.btn:hover { background: var(--arbutus-deep); }
.btn.ghost { background: transparent; border: 1px solid currentColor; color: var(--rainforest) !important; }
.hero .btn.ghost, .page-head .btn.ghost, .section.alt .btn.ghost { color: var(--snow) !important; }
.btn.ghost:hover { background: rgba(241, 237, 228, .08); }
.btn.small { padding: 11px 18px; font-size: .95rem; }
.more { font-weight: 700; text-decoration: none; }

/* Hero: layered ridgelines under a dusk sky */
.hero { position: relative; overflow: hidden; }
/* Photo hero: the mountain sits behind a rainforest-green wash so the type stays legible and the palette holds */
.hero.has-photo .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; z-index: 0; filter: saturate(.85) brightness(.8) contrast(1.05); }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(90deg, rgba(27, 58, 75, .92) 0%, rgba(27, 58, 75, .78) 45%, rgba(27, 58, 75, .35) 70%, rgba(27, 58, 75, .1) 100%),
  linear-gradient(180deg, rgba(18, 42, 56, .5) 0%, rgba(18, 42, 56, .05) 35%, rgba(18, 42, 56, .85) 100%); }
@media (max-width: 900px) { .hero.has-photo::before { background: linear-gradient(180deg, rgba(27, 58, 75, .55) 0%, rgba(27, 58, 75, .9) 55%, rgba(27, 58, 75, .98) 100%); } }
.hero.has-photo .wrap { z-index: 1; }

/* Full-bleed photo bands between sections */
.band-photo { margin: 0; position: relative; background: var(--bog); }
.band-photo img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: center 40%; display: block; filter: saturate(.8); }
.band-photo.thin img { height: clamp(200px, 26vw, 360px); object-position: center 30%; }
.band-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px max(var(--gutter), env(safe-area-inset-left, 0px)); font-family: var(--font-display); font-size: .95rem; color: var(--mist); background: linear-gradient(180deg, rgba(18, 42, 56, 0), rgba(18, 42, 56, .85)); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: clamp(120px, 18vw, 220px) clamp(64px, 8vw, 104px); min-height: min(88vh, 860px); align-content: end; }
.hero > .ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; z-index: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 36px 0 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: var(--mist); }
.trust li::before { content: "▲ "; color: var(--ochre); font-size: .7em; vertical-align: 1px; }
.hero-art { border: 1px solid #2f5265; padding: 18px; background: rgba(18, 42, 56, .35); }
.hero-art svg { width: 100%; height: auto; }
.hero-art p { margin: 14px 2px 0; font-size: .9rem; color: var(--sage); }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }
.card { background: var(--fog-light); border: 1px solid var(--fog-line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.section.alt .card { background: var(--fern); border-color: #2f5265; color: var(--mist); }
.step-num { font-family: var(--font-body); font-weight: 600; font-size: .92rem; color: var(--cedar); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--fog-line); }
.area-list { columns: 2; padding-left: 1.1em; }
.area-list li { margin-bottom: .35em; }

/* CTA band */
.cta-band { background: var(--fern); border-top: 1px solid #2f5265; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; color: var(--sage); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--fog-line); padding: 20px 0; }
.faq summary { font-family: var(--font-display); font-weight: 700; cursor: pointer; font-size: 1.1rem; color: var(--rainforest); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cedar); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: #44535c; max-width: 62ch; }

/* Page head */
.page-head { padding-block: 56px 52px; border-bottom: 1px solid #2b4a5c; }
.crumbs { font-size: .88rem; color: var(--sage); margin-bottom: 18px; }
.crumbs a { color: var(--sage) !important; }

/* Long-form content */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.split > * { min-width: 0; }
.aside-box { background: var(--rainforest); color: var(--mist); border-radius: var(--radius); padding: 28px; position: sticky; top: 104px; }
.aside-box h3 { margin-top: 0; color: var(--snow); }
.aside-box a:not(.btn) { color: var(--ochre); }
.aside-box ul, .aside-box ol { padding-left: 1.1em; }
.section.alt .aside-box { background: var(--bog); border: 1px solid #2f5265; }

/* Form */
form.quote { display: grid; gap: 16px; }
form.quote .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.quote label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; color: var(--bark); }
form.quote input, form.quote select, form.quote textarea {
  font: inherit; padding: 13px 14px; border: 1px solid #c2bfb3; border-radius: var(--radius); background: var(--fog-light); color: var(--bark); width: 100%;
}
form.quote input:focus, form.quote select:focus, form.quote textarea:focus { outline: 2px solid var(--arbutus); outline-offset: 0; border-color: transparent; }
.fine { font-size: .86rem; color: #5a6a73; }

/* Footer */
footer.site { background: var(--bog); color: var(--sage); font-size: .94rem; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 56px 32px; }
footer.site h4 { color: var(--ochre); margin: 0 0 14px; }
footer.site a { color: var(--mist); text-decoration: none; }
footer.site a:hover { color: var(--ochre); }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; }
footer.site .legal { display: block; border-top: 1px solid #203c4c; padding-block: 18px 26px; font-size: .82rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Tablet */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 64px 130px; gap: 40px; }
  .grid.three, .grid.four { grid-template-columns: 1fr 1fr; }
  /* Three items don't split evenly into two columns: stack them with top rules instead */
  .grid.three.plain { grid-template-columns: 1fr; }
  .grid.three.plain > .card { border-left: 0; border-top: 1px solid var(--fog-line); padding: 22px 0 10px; }
  .grid.three.plain > .card:first-child { border-top: 0; padding-top: 0; }
  .grid.four.plain { row-gap: 28px; }
  .grid.four.plain > .card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .grid.two { grid-template-columns: 1fr; gap: 36px; }
  footer.site .wrap { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--rainforest); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 22px; border-bottom: 1px solid #2b4a5c; gap: 2px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 11px 0; border-bottom: 1px solid #27465a; }
  nav.main a.btn { text-align: center; padding: 13px 18px; margin-top: 10px; border: 0; }
  .menu-toggle { display: block; }
}
/* Phone */
@media (max-width: 720px) {
  .grid.three, .grid.four, form.quote .row { grid-template-columns: 1fr; }
  .grid.plain > .card { border-left: 0; border-top: 1px solid var(--fog-line); padding: 22px 0 10px; }
  .grid.plain > .card:first-child { border-top: 0; padding-top: 0; }
  .section { padding-block: 56px; }
  .area-list { columns: 1; }
  .topbar .hide-sm { display: none; }
  .hero > .ridges { height: 120px; }
  .proof-strip ul { flex-direction: column; gap: 8px; }
}

/* Typographic hero: one column, the headline carries the page */
.hero .wrap { grid-template-columns: 1fr; }
.hero h1.display { font-size: clamp(2.6rem, 6.6vw, 5rem); letter-spacing: -0.03em; line-height: .98; max-width: 15ch; font-weight: 500; }
.hero .lead { max-width: 34em; color: var(--mist); }
.hero.has-photo h1, .hero.has-photo .lead, .hero.has-photo .trust, .hero.has-photo .coord, .hero.has-photo .eyebrow { text-shadow: 0 1px 2px rgba(18, 42, 56, .6), 0 0 18px rgba(18, 42, 56, .5); }
.hero.has-photo .trust { color: var(--snow); }
.hero .eyebrow { color: var(--ochre); }
.hero .coord { margin-bottom: 0; }

/* Box-free grids: hairline dividers instead of cards */
.grid.plain { gap: 0; }
.grid.plain > .card { background: transparent; border: 0; border-left: 1px solid var(--fog-line); border-radius: 0; padding: 4px 28px 8px 24px; }
.grid.plain > .card:first-child { border-left: 0; padding-left: 0; }
.section.alt .grid.plain > .card { border-left-color: #2f5265; }

/* Two light bands in a row get a hairline between them */
.section:not(.alt) + .section:not(.alt) { border-top: 1px solid var(--fog-line); }

footer.site .legal p { margin: 0 0 6px; }
footer.site a.credits { color: var(--lichen); margin-left: 14px; }

/* Proof strip: the five promises as a quiet hairline row under the hero */
.proof-strip { background: var(--fog); border-bottom: 1px solid var(--fog-line); }
.proof-strip ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: .95rem; color: var(--bark); }
.proof-strip li { display: flex; align-items: center; gap: 10px; }
.proof-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--arbutus); flex: none; }
.proof-strip + .section { border-top: 0; }

/* Motion: content rises in as it enters the viewport. Off for reduced motion and without JS. */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .48s cubic-bezier(.33, 1, .68, 1), transform .48s cubic-bezier(.33, 1, .68, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .06s; } .js .reveal:nth-child(3) { transition-delay: .12s; } .js .reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.btn { transition: background .2s ease; }
.more { position: relative; }
.more::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.more:hover::after { transform: scaleX(1); }
nav.main a:not(.btn) { transition: color .2s ease; }
