/* ==========================================================================
   Direct Windows & Doors — Design System
   Newsreader (serif display) + Hanken Grotesk (sans body)
   Forest green / cream / sage premium palette
   ========================================================================== */

/* ==========================================================================
   Window-replacement page components (VinylPro catalogue layout)
   ========================================================================== */
/* product/window-style cards (white product render on a card) */
.style-card { text-align: center; padding: 1.7rem 1.2rem; }
.style-ico { height: 104px; margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center; }
.style-ico img { max-height: 104px; width: auto; }
.style-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.style-card p { font-size: .92rem; }
/* 5-up process (overrides the 4-up grid on desktop only) */
@media (min-width: 901px) { .steps.steps--5 { grid-template-columns: repeat(5, 1fr); } }
/* customization option cards (image header) */
.opt-card { overflow: hidden; padding: 0; }
.opt-card > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.opt-card .opt-body { padding: 1.4rem 1.6rem; }
.opt-card .opt-body h3 { margin-bottom: .45rem; font-size: 1.15rem; }
.opt-card .opt-body p { font-size: .94rem; }
/* certifications logo strip */
.cert-strip { display: flex; justify-content: center; padding: 1.4rem clamp(1rem,4vw,2.5rem); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cert-strip img { width: 100%; max-width: 1040px; height: auto; }
/* compact inline quote form row */
.quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: center; }
@media (max-width: 860px) { .quote-row { grid-template-columns: 1fr; } }

/* ---- Tokens ---- */
:root {
  /* Color */
  --forest:        #2E4034;
  --forest-deep:   #233028;
  --forest-darker: #1F2C24;
  --cream:         #FBFAF8;
  --cream-2:       #F4F1EA;
  --cream-3:       #F2F0EA;
  --sage:          #587560; /* AA 4.9:1 on cream — text-safe */
  --sage-light:    #A9B5A6;
  --sage-lighter:  #C7D2C5;
  --ink:           #1A1916;
  --ink-2:         #1F1E1A;
  --taupe:         #57544C;
  --taupe-light:   #6F6C63; /* AA 5:1 on cream — text-safe */
  --border:        #E4E1D8;
  --border-2:      #E2DDD0;
  --white:         #ffffff;

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing / shape */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(26,25,22,.04), 0 2px 6px rgba(26,25,22,.05);
  --shadow-md: 0 8px 30px rgba(26,25,22,.08);
  --shadow-lg: 0 24px 60px rgba(26,25,22,.12);
  --section-y: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.07;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.45rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }
.h3-style { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; } /* h2 rendered at h3 scale */
h4 { font-size: 1.12rem; line-height: 1.25; }
p { color: var(--taupe); }
strong { color: var(--ink); font-weight: 700; }

.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }

.bg-cream  { background: var(--cream); }
.bg-cream2 { background: var(--cream-2); }
.bg-forest { background: var(--forest-deep); }
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4 { color: var(--cream); }
.bg-forest p { color: var(--sage-lighter); }
.bg-forest .eyebrow { color: var(--sage-light); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .98rem; letter-spacing: .005em;
  padding: .92rem 1.6rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--border); }
.btn-outline:hover { border-color: var(--forest); background: var(--white); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: var(--cream); border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,250,248,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.32rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 500; }
.brand span { color: var(--sage); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-size: .96rem; font-weight: 600; color: var(--taupe); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .96rem; color: var(--forest); }
.nav-phone svg { width: 16px; height: 16px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* mobile menu */
.mobile-menu { display: none; }
@media (max-width: 980px) {
  .nav-links, .nav-actions .btn, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 76px 0 auto 0; z-index: 55;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 1.2rem clamp(20px,5vw,40px) 2rem; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .28s var(--ease);
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: .85rem 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 1.2rem; }
  .mobile-menu .nav-phone { display: inline-flex; margin-top: 1rem; font-size: 1.1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { margin-bottom: 1.4rem; }
.hero-lede { font-size: 1.18rem; line-height: 1.6; max-width: 30ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5/6; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--white);
  border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1.1rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .7rem;
}
.hero-badge .stars { color: #E0A93B; font-size: .95rem; letter-spacing: 1px; }
.hero-badge b { display: block; font-family: var(--sans); font-size: .95rem; }
.hero-badge small { color: var(--taupe-light); font-size: .8rem; }

.trust-inline { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.trust-inline div { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--taupe); }
.trust-inline svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4/3; }
  .hero-lede { max-width: none; }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .98rem; }

/* service routing card (image header) */
.choice-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.choice-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.choice-card-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.choice-card-body p { flex: 1; margin-bottom: 1.2rem; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--forest); font-size: .95rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* feature card w/ icon */
.feature { padding: 1.9rem; }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.feature-ico svg { width: 24px; height: 24px; color: var(--forest); }
.bg-forest .feature { background: var(--forest); border-color: rgba(255,255,255,.1); }
.bg-forest .feature-ico { background: rgba(255,255,255,.08); }
.bg-forest .feature-ico svg { color: var(--sage-light); }

/* ---- Stats strip ---- */
.stats { display: flex; flex-wrap: wrap; gap: clamp(24px,5vw,64px); justify-content: center; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem,4vw,2.9rem); color: var(--forest); line-height: 1; }
.bg-forest .stat b { color: var(--cream); }
.stat span { font-size: .9rem; font-weight: 600; color: var(--taupe-light); letter-spacing: .02em; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step-num { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: var(--sage-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.step h3 { color: var(--cream); margin-bottom: .5rem; font-size: 1.2rem; }
.step p { font-size: .95rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quote-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote-card .stars { color: #E0A93B; letter-spacing: 2px; margin-bottom: 1rem; font-size: .95rem; }
.quote-card blockquote { font-size: 1.04rem; line-height: 1.6; color: var(--ink); flex: 1; }
.quote-card cite { display: block; margin-top: 1.4rem; font-style: normal; font-weight: 700; font-size: .95rem; color: var(--ink); }
.quote-card cite span { display: block; font-weight: 500; color: var(--taupe-light); font-size: .85rem; margin-top: .15rem; }

/* ==========================================================================
   Gallery / project grid
   ========================================================================== */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }
.proj { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: var(--cream-2); }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover img { transform: scale(1.05); }
.proj figcaption { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.1rem .9rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(31,44,36,.82)); opacity: 0; transition: opacity .3s; }
.proj:hover figcaption { opacity: 1; }

/* ==========================================================================
   Before / After slider
   ========================================================================== */
.ba { position: relative; width: 100%; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: none; box-shadow: var(--shadow-sm); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%,-50%); background: #fff; border-radius: 50%; box-shadow: var(--shadow-md); }
.ba-handle::before { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1; font-size: 16px; font-weight: 700; color: var(--forest); letter-spacing: 2px; }
.ba-tag { position: absolute; top: 12px; padding: .25rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius-pill); color: #fff; background: rgba(31,44,36,.7); backdrop-filter: blur(4px); }
.ba-tag.before { left: 12px; }
.ba-tag.after { right: 12px; }

/* ==========================================================================
   Pills / chips (window & door types)
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--white); font-weight: 600; font-size: .95rem; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--sage); background: var(--cream-2); }
.chip svg { width: 16px; height: 16px; color: var(--sage); }

/* checklist */
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; color: var(--taupe); }
.checklist li strong { color: var(--ink); }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-2); color: var(--forest); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.checklist .tick svg { width: 14px; height: 14px; }
.bg-forest .checklist li { color: var(--sage-lighter); }
.bg-forest .checklist .tick { background: rgba(255,255,255,.1); color: var(--sage-light); }

/* split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-md); }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-ico { flex: none; width: 26px; height: 26px; position: relative; transition: transform .3s; }
.faq summary .faq-ico::before, .faq summary .faq-ico::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px; background: var(--forest); transform: translate(-50%,-50%); transition: transform .3s; }
.faq summary .faq-ico::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq details[open] summary .faq-ico::after { transform: translate(-50%,-50%) rotate(0); }
.faq-body { padding: 0 0 1.5rem; max-width: 70ch; }
.faq-body p { font-size: 1rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-band p { margin-bottom: 2rem; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
.field label .req { color: #b4533f; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--border); border-radius: 10px; padding: .82rem .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(126,154,130,.18); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-note { font-size: .82rem; color: var(--taupe-light); margin-top: .4rem; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.show { display: block; }
.form-success .ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--cream-2); color: var(--forest); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; }
.form-success .ok-ico svg { width: 28px; height: 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--forest-darker); color: var(--sage-lighter); padding-block: clamp(56px, 7vw, 88px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--cream); margin-bottom: 1rem; }
.footer-about p { font-size: .95rem; color: var(--sage-light); max-width: 32ch; }
.footer-col .foot-title { color: var(--cream); font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; font-size: .95rem; color: var(--sage-light); padding: .28rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-contact a { font-weight: 600; color: var(--cream); }
.footer-bottom { margin-top: clamp(40px,5vw,64px); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: var(--sage-light); }
.footer-bottom a { color: var(--sage-light); }
.footer-bottom a:hover { color: var(--cream); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.crumbs { font-size: .85rem; color: var(--taupe-light); padding-top: 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--taupe); font-weight: 600; }
.crumbs a:hover { color: var(--forest); }
.crumbs span { color: var(--border-2); }

/* ==========================================================================
   Legal / prose
   ========================================================================== */
.prose { max-width: var(--maxw-narrow); margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: var(--taupe); margin-bottom: 1rem; line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: .9rem; color: var(--taupe-light); }

/* ==========================================================================
   Map
   ========================================================================== */
.map-embed { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Scroll animation
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .08s; }
.fade-up.d2 { transition-delay: .16s; }
.fade-up.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   404
   ========================================================================== */
.err { text-align: center; padding-block: clamp(80px,12vw,160px); }
.err .big { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); font-weight: 500; color: var(--sage-light); line-height: 1; }
.err h1 { margin: .5rem 0 1rem; }
.err p { max-width: 44ch; margin: 0 auto 2rem; }

/* utilities */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--taupe-light); }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: .8rem 1.4rem; background: var(--forest); color: #fff;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Form error (AJAX failure fallback)
   ========================================================================== */
.form-error {
  display: none; margin-top: 1rem; padding: .9rem 1.15rem;
  border: 1px solid #D8B3AC; border-radius: var(--radius);
  background: #FAF0EE; color: #7A2E22; font-size: .95rem; font-weight: 600;
}
.form-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ==========================================================================
   Lightbox (project photos expand on click)
   ========================================================================== */
.proj { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 3vh 4vw; background: rgba(26,25,22,.9); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.lightbox img {
  max-width: 100%; max-height: 84vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); cursor: default;
}
.lightbox figcaption { margin-top: .9rem; color: var(--sage-lighter); font-size: .95rem; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.18); }

/* ==========================================================================
   Sticky mobile call bar
   ========================================================================== */
.mobile-callbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: none; grid-template-columns: 1.5fr 1fr; gap: 1px;
  background: var(--border); box-shadow: 0 -4px 18px rgba(26,25,22,.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; font-weight: 700; font-size: 1rem;
}
.mobile-callbar svg { width: 18px; height: 18px; flex: none; }
.callbar-call { background: var(--forest); color: #fff; }
.callbar-quote { background: var(--white); color: var(--forest); }
@media (max-width: 980px) {
  .mobile-callbar { display: grid; }
  body { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
}
