/* ==========================================================
   Nice Blinds — Edmonton, AB
   Brand: deep green (#004924) + gold, sampled from the business card.
   ========================================================== */

:root {
  /* Brand */
  --green-950: #00301a;
  --green-900: #003b1e;
  --green-700: #004924;      /* card green */
  --green-600: #0a5b32;
  --green-500: #1d7146;
  --gold-300: #efd77a;
  --gold-400: #e0c260;
  --gold-500: #c9a648;
  --gold-600: #a98a35;
  --gold-grad: linear-gradient(100deg, #f3dd55 0%, #d6b34f 45%, #b8964a 100%);

  /* Surfaces */
  --cream: #fbf8f1;
  --paper: #ffffff;
  --mist: #eef0ea;
  --sage-wash: #e8eee3;

  /* Card tints */
  --tint-gold: #f7efd9;
  --tint-sage: #e4ebdf;
  --tint-blush: #f5e6dd;
  --tint-stone: #e3e9e8;

  /* Text */
  --ink: #12261b;
  --ink-soft: #3c4c42;
  --on-dark: #f4f1e6;
  --on-dark-soft: #cfd8ce;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: 16px;
  --max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 68px;

  --shadow-sm: 0 1px 2px rgb(0 40 20 / .08), 0 2px 8px rgb(0 40 20 / .06);
  --shadow-md: 0 8px 24px rgb(0 40 20 / .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Green canvas: iPhone's status bar area and top/bottom overscroll show this instead of cream. */
html { background: var(--green-900); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold-500); color: var(--green-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 .95rem/1.1 var(--font-body); text-decoration: none; letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 10px; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: var(--green-950); box-shadow: 0 4px 14px rgb(201 166 72 / .3); }
.btn-gold:hover { box-shadow: 0 6px 20px rgb(201 166 72 / .5); transform: translateY(-1px); }
.btn-ghost { border-color: rgb(244 241 230 / .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold-400); background: rgb(255 255 255 / .06); }
.btn-green { background: var(--green-700); color: var(--on-dark); }
.btn-green:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--green-900); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--green-700); text-decoration: none;
  padding-block: 10px; border-bottom: 2px solid var(--green-500); line-height: 1.3;
  transition: gap .2s var(--ease), color .2s;
}
.text-link:hover { gap: 12px; color: var(--green-950); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(0 59 30 / .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(201 166 72 / .25);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: auto; }
.brand-word { width: 118px; height: auto; }
@media (min-width: 768px) { .brand-mark { width: 48px; } .brand-word { width: 150px; } }

.header-insta, .nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--gold-300); background: none; border: 0; border-radius: 10px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.header-insta:hover, .nav-toggle:hover { background: rgb(255 255 255 / .08); color: #fff; }
.header-insta .icon, .nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* mobile nav panel */
.primary-nav {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--green-900); border-bottom: 1px solid rgb(201 166 72 / .25);
  padding: 8px var(--gutter) 24px;
  display: none; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-md);
}
.primary-nav.is-open { display: flex; }
.primary-nav ul { display: flex; flex-direction: column; }
.primary-nav ul a {
  display: flex; align-items: center; min-height: 48px; padding-inline: 4px;
  color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 1.05rem;
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.nav-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; margin-top: 12px; padding: 12px 20px; border-radius: 10px;
  background: var(--gold-grad); color: var(--green-950); font-weight: 700; text-decoration: none;
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 28px;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .primary-nav ul { flex-direction: row; gap: 4px; }
  .primary-nav ul a { min-height: 44px; padding-inline: 12px; font-size: .95rem; border: 0; border-radius: 8px; color: var(--on-dark-soft); }
  .primary-nav ul a:hover { color: #fff; background: rgb(255 255 255 / .07); }
  .nav-phone { margin: 0; min-height: 44px; }
  .brand { margin-right: 12px; }
  .primary-nav { margin-left: auto; }
  .header-insta { order: 3; }
}

/* Brand-coloured scrollbar (desktop): gold thumb on deep green, no white track or arrow buttons. */
/* Chrome / Edge / Safari: the -webkit rules remove the arrow buttons (scrollbar-color would keep them). */
::-webkit-scrollbar { width: 14px; height: 14px; background: var(--green-950); }
::-webkit-scrollbar-track { background: var(--green-950); }
::-webkit-scrollbar-thumb { min-height: 48px; background: var(--gold-500); border: 3px solid var(--green-950); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--green-950); }
/* Firefox has no -webkit scrollbars, so it uses the standard property. */
@supports (-moz-appearance: none) { html { scrollbar-color: var(--gold-500) var(--green-950); } }

/* Slide-in animations start offset sideways; never let that create a horizontal scrollbar. */
main { overflow-x: clip; }

/* ---------- Section rhythm ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }
.section-head p a { color: var(--green-700); font-weight: 700; }
.section-head-light h2 { color: var(--on-dark); }
.section-head-light p { color: var(--on-dark-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 70% at 78% 30%, rgb(58 140 84 / .55) 0%, rgb(0 73 36 / 0) 70%),
    radial-gradient(40% 50% at 92% 8%, rgb(201 166 72 / .22) 0%, rgb(201 166 72 / 0) 70%),
    linear-gradient(160deg, var(--green-700) 0%, var(--green-950) 100%);
  color: var(--on-dark);
}
.hero::after {  /* faint venetian slats, a nod to blinds */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .035) 0 2px, transparent 2px 26px);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--gold-400); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); max-width: 14ch; }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--on-dark-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid rgb(201 166 72 / .3); }
.hero-facts dt { white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.1; }
.hero-facts dd { margin: 4px 0 0; font-size: .88rem; color: var(--on-dark-soft); line-height: 1.4; max-width: 16ch; }

.hero-photo { margin: 0; position: relative; max-width: 420px; justify-self: center; width: 100%; }
.arch { position: relative; border-radius: 999px 999px 20px 20px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 24px 60px rgb(0 0 0 / .35); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::before {  /* offset gold outline echoing the logo's arches */
  content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1;
  border: 2px solid rgb(201 166 72 / .55); border-radius: 999px 999px 20px 20px;
}
.arch-tag {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgb(0 48 26 / .88); backdrop-filter: blur(6px); color: var(--on-dark);
  border: 1px solid rgb(201 166 72 / .45); border-radius: 999px; padding: 8px 16px; font-size: .84rem; font-weight: 500;
}
.arch-tag .icon { color: var(--gold-400); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero-facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 40px; }
  .hero-photo { justify-self: end; }
}

/* ---------- Who we are ---------- */
.who { background: var(--paper); }
.who-grid { display: grid; gap: 40px; align-items: center; }
.seal { margin-bottom: 20px; }
.seal svg { filter: drop-shadow(0 6px 14px rgb(0 40 20 / .25)); }
.who-copy h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); margin-bottom: 16px; }
.who-copy p { color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; }
.who-copy p + p { margin-top: 12px; }
.who-copy .text-link { margin-top: 16px; }
.who-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.who-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% 50%; }
@media (min-width: 900px) { .who-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

/* ---------- Products ---------- */
.products { background: var(--cream); }
.card-grid { display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgb(0 59 30 / .07);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-gold { background: var(--tint-gold); }
.card-sage { background: var(--tint-sage); }
.card-blush { background: var(--tint-blush); }
.card-stone { background: var(--tint-stone); }
.card-icon { width: 48px; height: 48px; color: var(--green-700); margin-bottom: 4px; }
.card h3 { font-size: 1.5rem; }
.card > p { color: var(--ink-soft); font-size: .98rem; max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 4px 8px; }
.tags li { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--green-700); background: rgb(255 255 255 / .7); border: 1px solid rgb(0 73 36 / .15); padding: 4px 12px; border-radius: 999px; }
.card .text-link { margin-top: auto; }

.more-panel {
  margin-top: 16px; display: grid; gap: 24px;
  padding: 28px; background: var(--paper); border: 1px solid rgb(0 59 30 / .09); border-radius: var(--radius-lg);
}
.more-intro { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.more-intro h3 { font-size: 1.5rem; }
.more-intro p { color: var(--ink-soft); font-size: .98rem; max-width: 40ch; }
.more-list li + li { border-top: 1px solid rgb(0 59 30 / .12); }
.more-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 12px;
  font-family: var(--font-display); font-size: 1.15rem; text-decoration: none; color: var(--ink);
  transition: color .2s, padding-left .2s var(--ease);
}
.more-list a:hover { color: var(--green-500); padding-left: 6px; }
.more-list .icon { color: var(--green-700); }

@media (min-width: 720px) { .card-grid { grid-template-columns: 1fr 1fr; gap: 20px; } .card { padding: 32px; } }
@media (min-width: 900px) { .more-panel { grid-template-columns: .8fr 1.2fr; gap: 48px; padding: 36px 40px; align-items: center; } }

/* ---------- Process ---------- */
.process { background: linear-gradient(170deg, var(--green-700), var(--green-950)); color: var(--on-dark); }
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius-lg); background: rgb(255 255 255 / .05); border: 1px solid rgb(201 166 72 / .28); }
.step-num { display: block; font-family: var(--font-display); font-size: 2.75rem; line-height: 1; margin-bottom: 14px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--on-dark-soft); font-size: .98rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--mist); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot { margin: 0; }
.shot-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage-wash); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover .shot-img img { transform: scale(1.04); }
.shot figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-soft); line-height: 1.4; }
.shot figcaption span { display: block; font-weight: 700; color: var(--ink); font-size: .92rem; }
.gallery-cta { margin-top: 36px; text-align: center; }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 8px; }
.faq-list details { border-bottom: 1px solid rgb(0 59 30 / .14); }
.faq-list details:first-child { border-top: 1px solid rgb(0 59 30 / .14); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding-block: 16px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--green-700); transition: transform .3s var(--ease); }
.faq-list details p { padding: 0 40px 20px 0; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } .faq .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; } }

/* ---------- Areas ---------- */
.areas { background: var(--sage-wash); padding-block: clamp(40px, 6vw, 64px); }
.areas-inner { display: grid; gap: 20px; align-items: center; }
.areas h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.areas p { margin-top: 6px; color: var(--ink-soft); }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips li { background: var(--paper); border: 1px solid rgb(0 73 36 / .18); color: var(--green-700); font-weight: 700; font-size: .88rem; padding: 8px 16px; border-radius: 999px; }
@media (min-width: 900px) { .areas-inner { grid-template-columns: .8fr 1.2fr; gap: 48px; } }

/* ---------- Contact ---------- */
.contact { background: var(--tint-gold); background: linear-gradient(180deg, #f1ecd8, #e9eedd); }
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); margin-bottom: 14px; }
.contact-copy > p { color: var(--ink-soft); font-size: 1.05rem; max-width: 44ch; }
.contact-list { margin-top: 28px; display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding-block: 10px; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--green-700); color: var(--gold-300); }
.contact-list small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.contact-list a { font-weight: 700; font-size: 1.1rem; color: var(--green-900); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.quote-form { background: var(--green-950); color: var(--on-dark); padding: 28px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: grid; gap: 16px; }
.quote-form h3 { font-size: 1.4rem; margin-bottom: 4px; }
.field-row { display: grid; gap: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; color: var(--on-dark-soft); }
.field label span { color: var(--gold-400); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #ff9d8f; }
.error { margin-top: 6px; font-size: .84rem; color: #ffc2b8; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-status.is-error { color: #ffc2b8; }
.form-status { min-height: 1.4em; font-size: .92rem; font-weight: 500; color: var(--gold-300); }
.form-status:empty { display: none; }
.form-note { font-size: .78rem; color: var(--on-dark-soft); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } .quote-form { padding: 36px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: var(--on-dark-soft); padding-top: clamp(48px, 7vw, 80px); border-top: 3px solid var(--gold-500); }
.footer-top { display: grid; gap: 40px; }
.footer-call p { font-size: 1.05rem; color: var(--on-dark-soft); }
.big-phone { display: inline-block; margin-top: 6px; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; color: var(--on-dark); text-decoration: none; }
.big-phone:hover { color: var(--gold-300); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.footer-cols h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 14px; }
.footer-cols a { display: inline-block; padding-block: 6px; color: var(--on-dark-soft); text-decoration: none; font-size: .95rem; overflow-wrap: break-word; }
.footer-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-brand img:first-child { width: 64px; }
.footer-brand img:nth-child(2) { width: 180px; }
.footer-brand p { font-size: .85rem; letter-spacing: .06em; }
.footer-bottom { margin-top: 48px; padding-block: 24px 96px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .82rem; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } .footer-bottom { padding-bottom: 28px; } }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1fr auto; grid-template-areas: "call brand" "cols cols"; align-items: center; gap: 48px 56px; }
  .footer-call { grid-area: call; }
  .footer-brand { grid-area: brand; align-items: flex-end; text-align: right; }
  .footer-cols { grid-area: cols; padding-top: 40px; border-top: 1px solid rgb(255 255 255 / .1); }
  .big-phone { white-space: nowrap; }
}

/* ---------- Mobile quick bar ---------- */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgb(0 48 26 / .96); backdrop-filter: blur(8px); border-top: 1px solid rgb(201 166 72 / .35);
  transition: transform .35s var(--ease);
}
@media (min-width: 720px) { .mobile-bar { display: none; } }
/* Hidden over the green hero; JS slides it in once the hero has scrolled out of view. */
.js .mobile-bar { transform: translateY(120%); }
.js .mobile-bar.is-visible { transform: translateY(0); }

/* ---------- Motorized section ---------- */
.motor { background: var(--sage-wash); overflow: clip; }
.motor-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow-dark { color: var(--green-500); }
.motor-copy h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); margin-bottom: 16px; }
.motor-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 50ch; }
.check-list { display: grid; gap: 12px; margin: 24px 0 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; max-width: 46ch; }
.check-list .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green-700); color: var(--gold-300); margin-top: 1px; }

.motor-demo { position: relative; display: grid; justify-items: center; gap: 16px; }
.motor-demo::before { content: ""; position: absolute; width: 380px; max-width: 100%; aspect-ratio: 1; top: 8%; border-radius: 50%; background: radial-gradient(circle, rgb(201 166 72 / .35), rgb(201 166 72 / 0) 68%); z-index: 0; }
.phone { position: relative; z-index: 1; width: min(100%, 300px); padding: 10px; background: var(--green-950); border-radius: 40px; box-shadow: 0 30px 60px rgb(0 40 20 / .3), inset 0 0 0 2px rgb(201 166 72 / .55); }
.phone-notch { position: absolute; z-index: 2; top: 10px; left: 50%; width: 88px; height: 22px; transform: translateX(-50%); background: var(--green-950); border-radius: 0 0 14px 14px; }
.phone-screen { display: grid; gap: 14px; padding: 38px 18px 20px; background: var(--cream); border-radius: 30px; }
.app-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 1.1rem; }
.app-tag { font: 700 .68rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); background: var(--tint-gold); padding: 5px 10px; border-radius: 999px; }

.demo-window { position: relative; aspect-ratio: 5 / 6; overflow: hidden; border: 6px solid #fff; border-radius: 8px; outline: 1px solid rgb(0 59 30 / .18); background: #cfe3ea; }
.demo-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #9fd0e8 0%, #dcecf0 62%, #f4ead0 100%); }
.demo-sun { position: absolute; top: 16%; right: 18%; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #fff6c9, #f6d55c 62%, rgb(246 213 92 / 0) 72%); box-shadow: 0 0 40px 14px rgb(246 213 92 / .5); }
.demo-blind {
  position: absolute; inset: 0;
  transform: translateY(calc(var(--pos) * 1% - 100%));
  transition: transform var(--dur, 700ms) cubic-bezier(.65, 0, .35, 1);
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .35) 0 1px, transparent 1px 5px), linear-gradient(180deg, #f7f2e6, #ebe3cf);
  box-shadow: 0 10px 18px rgb(0 40 20 / .22);
}
/* While a finger or the mouse is actively moving the slider, the blind tracks it 1:1 with no lag. */
.motor-demo.is-dragging .demo-blind { transition: none; }
.demo-rail { position: absolute; inset: auto 0 0; height: 9px; background: var(--gold-grad); }
.demo-bead { position: absolute; left: 50%; bottom: 16px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--gold-600); }

.demo-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .86rem; font-weight: 700; }
.demo-readout output { font-variant-numeric: tabular-nums; color: var(--green-700); }
#blind-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: -6px 0; background: transparent; cursor: pointer; }
#blind-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--gold-500) calc(var(--pos) * 1%), rgb(0 73 36 / .18) calc(var(--pos) * 1%)); }
#blind-range::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--gold-500) calc(var(--pos) * 1%), rgb(0 73 36 / .18) calc(var(--pos) * 1%)); }
#blind-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--green-700); border: 3px solid var(--gold-400); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
#blind-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--green-700); border: 3px solid var(--gold-400); box-shadow: var(--shadow-sm); }
#blind-range:active::-webkit-slider-thumb, #blind-range.is-dragging::-webkit-slider-thumb { transform: scale(1.2); }
#blind-range:active::-moz-range-thumb, #blind-range.is-dragging::-moz-range-thumb { transform: scale(1.2); }
.demo-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-btns button { min-height: 44px; font: 700 .9rem/1 var(--font-body); color: var(--green-700); background: #fff; border: 2px solid rgb(0 73 36 / .22); border-radius: 10px; cursor: pointer; touch-action: manipulation; transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.demo-btns button:hover { border-color: var(--green-700); }
.demo-btns button:active { transform: scale(.96); }
.demo-btns button.is-on { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.demo-sched { font-size: .78rem; color: var(--ink-soft); text-align: center; }
.works-with { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.works-with li { font-size: .82rem; font-weight: 700; color: var(--green-700); background: #fff; border: 1px solid rgb(0 73 36 / .2); padding: 6px 14px; border-radius: 999px; }
.voice-list { position: relative; z-index: 1; display: grid; gap: 8px; width: min(100%, 300px); }
.voice { position: relative; padding: 10px 16px; font-size: .84rem; font-style: italic; color: var(--ink); background: #fff; border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow-sm); }
.voice-alt { justify-self: end; border-radius: 18px 18px 4px 18px; color: var(--on-dark); background: var(--green-700); }
.js .motor-demo.is-visible .voice { animation: pop .5s var(--ease) 1.4s backwards; }
.js .motor-demo.is-visible .voice-alt { animation-delay: 2s; }
.demo-note { position: relative; z-index: 1; font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 900px) { .motor-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

/* ==========================================================
   Motion
   ========================================================== */

/* Scroll reveals (animation-based so hover transitions stay untouched) */
@keyframes rise      { from { opacity: 0; transform: translateY(26px); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-32px); } }
@keyframes from-right{ from { opacity: 0; transform: translateX(32px) scale(.97); } }
@keyframes pop       { from { opacity: 0; transform: translateY(10px) scale(.86); } }
@keyframes settle    { from { opacity: 0; transform: translateY(30px) scale(.95); } }

.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: rise .8s var(--ease) var(--d, 0ms) backwards; }
.js .who-copy.is-visible, .js .motor-copy.is-visible { animation-name: from-left; }
.js .who-photo.is-visible { animation-name: from-right; animation-duration: 1s; }
.js .motor-demo.is-visible { animation-name: settle; animation-duration: 1s; }

.js .area-chips li, .js .contact-list li { opacity: 0; }
.js .areas-inner.is-visible .area-chips li { opacity: 1; animation: pop .5s var(--ease) calc(var(--i, 0) * 60ms + 250ms) backwards; }
.js .contact-copy.is-visible .contact-list li { opacity: 1; animation: from-left .6s var(--ease) calc(var(--i, 0) * 90ms + 300ms) backwards; }

/* Hero entrance */
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } }
.hero-copy > * { animation: hero-rise .85s var(--ease) backwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .28s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
.hero-copy > :nth-child(5) { animation-delay: .52s; }
.hero-copy > :nth-child(6) { animation-delay: .64s; }

@keyframes arch-in { from { clip-path: inset(100% 0 0 0 round 999px 999px 20px 20px); } to { clip-path: inset(0 0 0 0 round 999px 999px 20px 20px); } }
@keyframes arch-zoom { from { transform: scale(1.18); } }
@keyframes outline-in { from { opacity: 0; transform: translate(18px, -18px); } }
@keyframes tag-in { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes slats { to { background-position: 0 26px; } }
.arch { animation: arch-in 1.2s var(--ease) .15s backwards; }
.arch img { animation: arch-zoom 2.4s var(--ease) .15s backwards; }
.hero-photo::before { animation: outline-in 1.2s var(--ease) .6s backwards; }
.arch-tag { animation: tag-in .7s var(--ease) 1.2s backwards; }
.hero::after { animation: slats 9s linear infinite; }

/* Hero "new" pill */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 28px; padding: 8px 18px;
  color: var(--on-dark); font-size: .88rem; font-weight: 700; text-decoration: none;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(201 166 72 / .5); border-radius: 999px;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.hero-pill:hover { background: rgb(201 166 72 / .18); border-color: var(--gold-400); transform: translateY(-1px); }
.pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-300); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold-300); animation: ping 1.9s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }

/* Header: shadow once scrolled, gold progress line */
.site-header { padding-top: env(safe-area-inset-top, 0px); /* SAFE-AREA-TOP */ transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgb(0 0 0 / .28); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--gold-grad); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; }
@media (min-width: 960px) {
  .primary-nav ul a { position: relative; }
  .primary-nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--gold-400); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
  .primary-nav ul a:hover::after { transform: scaleX(1); }
}

/* Seal ring turns slowly */
@keyframes spin { to { transform: rotate(360deg); } }
.seal-ring { transform-box: view-box; transform-origin: 70px 70px; animation: spin 40s linear infinite; }

/* Buttons: shine sweep and arrow nudge */
.btn { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .5), transparent); transform: translateX(-140%) skewX(-18deg); pointer-events: none; }
.btn-gold:hover::after { transform: translateX(280%) skewX(-18deg); transition: transform .8s var(--ease); }
.btn .arrow, .hero-pill .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .hero-pill:hover .arrow { transform: translateX(4px); }

/* Cards, steps, gallery, contact */
.card-icon { transition: transform .4s var(--ease); }
.card:hover .card-icon { transform: translateY(-3px) rotate(-7deg) scale(1.1); }
.tags li { transition: background-color .2s, transform .2s var(--ease); }
.card:hover .tags li { background: #fff; }
.step { transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.step:hover { transform: translateY(-5px); border-color: var(--gold-400); background: rgb(255 255 255 / .09); }
.shot-img { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.shot:hover .shot-img { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.area-chips li { transition: background-color .2s, color .2s, transform .2s var(--ease); }
.area-chips li:hover { background: var(--green-700); color: var(--on-dark); transform: translateY(-2px); }
.contact-list .icon { transition: transform .3s var(--ease); }
.contact-list li:hover .icon { transform: scale(1.1) rotate(-8deg); }
.big-phone { background: linear-gradient(var(--gold-400), var(--gold-400)) 0 100% / 0 2px no-repeat; transition: color .2s, background-size .4s var(--ease); }
.big-phone:hover { background-size: 100% 2px; }
.brand-mark { transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }

/* Form focus */
.field label { transition: color .2s; }
.field:focus-within label { color: var(--gold-300); }
.field input, .field select, .field textarea { transition: box-shadow .2s, border-color .2s; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 0 0 6px rgb(224 194 96 / .25); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }
.field input[aria-invalid="true"] { animation: shake .4s; }
.error:not([hidden]), .form-status:not(:empty) { animation: fade-in .3s var(--ease); }

/* FAQ */
.faq-list summary { transition: color .2s, padding-left .25s var(--ease); }
.faq-list summary:hover { color: var(--green-500); padding-left: 6px; }
.faq-list details[open]:not(.is-closing) summary .icon { transform: rotate(45deg); }

/* Mobile bar's entrance/exit is handled by the .is-visible transform transition above. */

/* IOS-FIXED-START
   Solid green bars fixed to the top and bottom edges. Safari (iOS 26+) tints its own
   toolbars from these; older iOS uses the theme-color meta. Kept opaque on purpose. */
.site-header { position: fixed; inset: 0 0 auto 0; background: var(--green-900); -webkit-backdrop-filter: none; backdrop-filter: none; }
body { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1px); background: var(--green-900); }
.mobile-bar { background: var(--green-950); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* IOS-FIXED-END */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal, .js .area-chips li, .js .contact-list li { opacity: 1; }
  .card:hover, .btn:hover, .step:hover, .shot:hover .shot-img, .shot:hover .shot-img img, .area-chips li:hover, .card:hover .card-icon { transform: none; }
}
