/* ==========================================================================
   Merton Garage Door — design system
   Palette: Wisconsin ivory / stone / forest / sage / bronze
   Type: Fraunces (display) + Figtree (text)
   ========================================================================== */

:root {
  --ivory: #F7F5EF;
  --ivory-2: #F1EEE5;
  --white: #FFFFFF;
  --stone: #EAEBE6;
  --stone-2: #DFE1DA;
  --forest: #203A2E;
  --forest-2: #2B4B3C;
  --forest-3: #36594A;
  --sage: #87988A;
  --sage-soft: #C9D2C9;
  --bronze: #A68B65;
  --bronze-dark: #8A7150;
  --bronze-soft: #E7DCCB;
  --ink: #303632;
  --muted: #687069;
  --line: rgba(32, 58, 46, .12);
  --line-strong: rgba(32, 58, 46, .22);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(32, 58, 46, .06), 0 2px 8px rgba(32, 58, 46, .05);
  --shadow: 0 2px 6px rgba(32, 58, 46, .05), 0 18px 40px -18px rgba(32, 58, 46, .22);
  --shadow-lg: 0 30px 80px -30px rgba(32, 58, 46, .35);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 140px);
  --header-h: 84px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--forest);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .55em;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-variation-settings: "opsz" 36, "SOFT" 30; }
h4 { font-family: var(--f-text); font-weight: 650; font-size: 1.05rem; letter-spacing: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--bronze-dark); font-variation-settings: "opsz" 96, "SOFT" 100; }
strong { font-weight: 650; color: var(--forest); }
::selection { background: var(--bronze-soft); color: var(--forest); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--stone { background: var(--stone); }
.section--white { background: var(--white); }
.section--ivory2 { background: var(--ivory-2); }
.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
.split--top { align-items: start; }
@media (max-width: 960px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; } }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-text); font-size: .76rem; font-weight: 650;
  letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-dark);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--bronze-soft); }
.section-num {
  font-family: var(--f-display); font-style: italic; color: var(--sage); font-size: 1rem; margin-right: 4px;
}
.lead { font-size: clamp(1.08rem, 1.4vw, 1.24rem); line-height: 1.65; color: var(--ink); }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.section-head--row > div { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; min-height: 52px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--forest-3);
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(32, 58, 46, .55); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--bronze { --bg: var(--bronze); }
.btn--bronze::after { background: var(--bronze-dark); }
.btn--ghost { --bg: transparent; --fg: var(--forest); border-color: var(--line-strong); }
.btn--ghost::after { background: var(--forest); }
.btn--ghost:hover { --fg: #fff; border-color: var(--forest); }
.btn--light { --bg: #fff; --fg: var(--forest); }
.btn--light::after { background: var(--ivory-2); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light::after { background: rgba(255,255,255,.14); }
.btn--sm { padding: 10px 18px; min-height: 42px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest);
  text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: gap .3s var(--ease), border-color .3s, color .3s;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 14px; border-color: var(--bronze); color: var(--bronze-dark); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--forest); color: rgba(255,255,255,.82); font-size: .84rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--bronze-soft); }
.topbar__note { display: flex; align-items: center; gap: 8px; }
.topbar__note svg { width: 15px; height: 15px; color: var(--bronze-soft); }
.topbar__links { display: flex; gap: 22px; }
@media (max-width: 1060px) { .topbar__links { display: none; } .topbar .container { justify-content: center; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 245, 239, .86);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(32,58,46,.5); background: rgba(247, 245, 239, .94); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

/* Logo placeholder — replace inner markup with the client's logo file */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--forest); }
.logo__name { font-family: var(--f-display); font-size: 1.62rem; letter-spacing: -.02em; font-variation-settings: "opsz" 72, "SOFT" 50; }
.logo__sub { font-size: .64rem; font-weight: 650; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze-dark); margin-top: 6px; }
.logo:hover { color: var(--forest); }
.logo__img { height: 70px; width: auto; transition: transform .35s var(--ease); }
.logo:hover .logo__img { transform: scale(1.03); }
.logo--footer { flex-direction: row; align-items: center; gap: 14px; }
.logo--footer img { width: 64px; height: 64px; object-fit: contain; }
.logo--footer > span { display: flex; flex-direction: column; }
@media (max-width: 1060px) { .logo__img { height: 54px; } }
@media (max-width: 520px) { .logo__img { height: 48px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  font-size: .95rem; font-weight: 550; color: var(--ink); text-decoration: none;
  transition: color .25s, background-color .25s;
}
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { color: var(--forest); background: rgba(32,58,46,.06); }
.nav__link svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(760px, 92vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.mega__list li { margin: 0; }
.mega__list a {
  display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);
  font-size: .93rem; font-weight: 550; line-height: 1.35;
  transition: background-color .2s, color .2s;
}
.mega__list a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.mega__list a:hover { background: var(--ivory); color: var(--forest); }
.mega__feature {
  border-radius: var(--r); overflow: hidden; position: relative; min-height: 220px;
  display: flex; align-items: flex-end; padding: 20px; color: #fff; text-decoration: none;
}
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,58,46,0) 30%, rgba(24,40,32,.85)); }
.mega__feature span { position: relative; z-index: 1; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; }
.mega__feature span small { display: block; font-family: var(--f-text); font-size: .8rem; opacity: .85; margin-top: 6px; }
.mega__feature:hover { color: #fff; }
.mega__feature:hover img { transform: scale(1.05); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); line-height: 1.15; }
.header-phone__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background-color .3s, color .3s; }
.header-phone__icon svg { width: 17px; height: 17px; }
.header-phone:hover .header-phone__icon { background: var(--forest); color: #fff; }
.header-phone small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.header-phone b { font-weight: 650; font-size: .95rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--forest); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--forest); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) { .header-phone div { display: none; } }
@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; z-index: 80;
    background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px var(--gutter) 40px; overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: transform .45s var(--ease-out), opacity .3s var(--ease), visibility 0s .45s;
  }
  body.topbar-hidden .nav { inset: var(--header-h) 0 0 0; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.12rem; border-radius: 0; background: none !important; }
  .mega { position: static; transform: none; width: auto; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 14px; display: none; grid-template-columns: 1fr; background: transparent; }
  .mega.is-open { display: grid; transform: none; }
  .mega__list { grid-template-columns: 1fr; }
  .mega__feature { display: none; }
  .nav__mobile-cta { display: grid !important; gap: 12px; margin-top: 24px; }
  .header-actions .btn { display: none; }
}
@media (max-width: 520px) { .header-phone { display: none; } .logo__name { font-size: 1.38rem; } }
.nav__mobile-cta { display: none !important; }

/* ---------- Estimate drawer (header form) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(12px, 4vh, 48px) 16px; overflow-y: auto;
  visibility: hidden; pointer-events: none;
}
.drawer__scrim { position: fixed; inset: 0; background: rgba(24, 36, 30, .42); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s var(--ease); }
.drawer__panel {
  position: relative; width: min(980px, 100%); background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden;
  transform: translateY(-24px); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s var(--ease);
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; opacity: 1; }
.drawer__aside {
  position: relative; padding: clamp(28px, 4vw, 44px); color: #fff; background: var(--forest);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden;
}
.drawer__aside > * { position: relative; z-index: 1; }
.drawer__aside::before {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background: url("/assets/img/garage-door-track-and-panels-interior-800.webp") center/cover;
  mix-blend-mode: luminosity;
}
.drawer__title { font-family: var(--f-display); color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .55em; }
.drawer__aside p { color: rgba(255,255,255,.82); }
.drawer__aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.88); }
.drawer__aside li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.drawer__aside li svg { width: 18px; height: 18px; color: var(--bronze-soft); flex: none; margin-top: 4px; }
.drawer__body { padding: clamp(28px, 4vw, 44px); }
.drawer__close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer; display: grid; place-items: center;
  transition: transform .3s var(--ease), background-color .3s;
}
.drawer__close:hover { transform: rotate(90deg); background: var(--ivory); }
.drawer__close svg { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .drawer { padding: 0; }
  .drawer__panel { grid-template-columns: 1fr; border-radius: 0; min-height: 100%; }
  .drawer__aside { padding-top: 64px; }
  .drawer__aside ul { display: none; }
}
body.drawer-open { overflow: hidden; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.form .field--full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field label { font-size: .82rem; font-weight: 650; letter-spacing: .04em; color: var(--forest); }
.field label .req { color: var(--bronze-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--ivory); font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23203A2E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 42px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa19b; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-2); background: #fff; box-shadow: 0 0 0 4px rgba(135,152,138,.22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A2493B; background: #FDF7F5; }
.field__error { font-size: .8rem; color: #A2493B; min-height: 0; display: none; }
.field.has-error .field__error { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; justify-content: space-between; margin-top: 4px; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; max-width: 380px; line-height: 1.5; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form-status {
  grid-column: 1 / -1; display: none; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px; font-size: .95rem; line-height: 1.5;
}
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.form-status.is-success { display: flex; background: #EEF3EE; color: var(--forest); border: 1px solid var(--sage-soft); }
.form-status.is-error { display: flex; background: #FBF1EE; color: #84392D; border: 1px solid #EBCFC8; }
.form.is-sent .field, .form.is-sent .form__foot { display: none; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { margin-bottom: .3em; }
.form-card > p { color: var(--muted); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: min(900px, calc(100svh - var(--header-h) - 40px));
  display: flex; align-items: center; overflow: hidden; background: var(--stone);
  padding: clamp(60px, 9vh, 110px) 0 clamp(120px, 14vh, 160px);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 62% 60%; will-change: transform; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(247,245,239,.97) 0%, rgba(247,245,239,.9) 30%, rgba(247,245,239,.55) 50%, rgba(247,245,239,0) 70%),
    linear-gradient(0deg, rgba(247,245,239,.55) 0%, rgba(247,245,239,0) 30%);
}
/* door-lift intro: horizontal panels that roll up off the photo */
.door-lift { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: repeat(6, 1fr); pointer-events: none; }
.door-lift span { background: var(--ivory-2); border-bottom: 1px solid rgba(32,58,46,.08); transform-origin: top; }
.js .door-lift span { animation: lift 1.1s var(--ease-out) forwards; }
.door-lift span:nth-child(6) { animation-delay: .05s; } .door-lift span:nth-child(5) { animation-delay: .13s; }
.door-lift span:nth-child(4) { animation-delay: .21s; } .door-lift span:nth-child(3) { animation-delay: .29s; }
.door-lift span:nth-child(2) { animation-delay: .37s; } .door-lift span:nth-child(1) { animation-delay: .45s; }
@keyframes lift { to { transform: scaleY(0); } }
.no-js .door-lift { display: none; }

.hero__content { position: relative; z-index: 3; max-width: 640px; }
.hero h1 { margin-bottom: 24px; }
.hero__lead { font-size: clamp(1.08rem, 1.45vw, 1.25rem); color: var(--ink); max-width: 540px; margin-bottom: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: .9rem; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--sage); }

/* Hero quick-pick (form access element) */
.quickpick {
  position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(28px, 5vh, 56px);
  width: min(420px, calc(100% - 2 * var(--gutter)));
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-lg); padding: 22px 22px 20px; box-shadow: var(--shadow-lg);
}
.quickpick__title { font-family: var(--f-display); font-size: 1.25rem; color: var(--forest); margin: 0 0 4px; line-height: 1.2; }
.quickpick p { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  font-size: .86rem; font-weight: 550; color: var(--forest); cursor: pointer; text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { background: var(--forest); color: #fff; border-color: var(--forest); transform: translateY(-1px); }
@media (max-width: 1100px) {
  .hero { padding-bottom: 40px; flex-direction: column; align-items: stretch; }
  .hero__overlay { background: linear-gradient(180deg, rgba(247,245,239,.95) 0%, rgba(247,245,239,.86) 55%, rgba(247,245,239,.5) 100%); }
  .quickpick { position: relative; right: auto; bottom: auto; margin: 40px var(--gutter) 0; width: auto; max-width: 560px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(166,139,101,.12), transparent 70%), radial-gradient(ellipse 50% 60% at 10% 90%, rgba(135,152,138,.14), transparent 70%);
}
.page-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 4.8vw, 4.1rem); }
.page-hero__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 4.4; box-shadow: var(--shadow-lg); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media .door-lift span { background: var(--ivory); }
.page-hero__badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 14px; padding: 12px 16px; font-size: .85rem; line-height: 1.4; color: var(--forest); max-width: 260px; box-shadow: var(--shadow-sm);
}
.page-hero__badge b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; }
@media (max-width: 960px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__media { aspect-ratio: 4 / 3; } }

.page-hero--simple { text-align: left; }
.page-hero--simple .container > div { max-width: 820px; }

.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--sage); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--forest); }

/* ---------- Intro composition ---------- */
.compose { position: relative; min-height: 560px; }
.compose__a, .compose__b { position: absolute; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.compose__a { inset: 0 18% 14% 0; }
.compose__b { right: 0; bottom: 0; width: 46%; aspect-ratio: 4/5; border: 8px solid var(--ivory); }
.compose img { width: 100%; height: 100%; object-fit: cover; }
.compose__frame { position: absolute; left: -18px; top: -18px; width: 40%; height: 46%; border: 1px solid var(--bronze); border-radius: var(--r-lg); z-index: -1; }
.compose__tag {
  position: absolute; left: 22px; bottom: calc(14% + 22px); z-index: 2; background: var(--forest); color: #fff;
  padding: 14px 18px; border-radius: 14px; font-size: .85rem; max-width: 230px; line-height: 1.45;
}
.compose__tag b { display: block; color: var(--bronze-soft); font-family: var(--f-display); font-weight: 400; font-size: 1.08rem; margin-bottom: 2px; }
@media (max-width: 960px) { .compose { min-height: 440px; } .compose__b { width: 36%; } }
@media (max-width: 560px) { .compose { min-height: 360px; } .compose__tag { display: none; } }

/* ---------- Principles bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento__item {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.bento__item--a { grid-column: span 3; }
.bento__item--b { grid-column: span 3; }
.bento__item--c { grid-column: span 2; }
.bento__item--d { grid-column: span 2; }
.bento__item--e { grid-column: span 2; }
.bento__item--image { padding: 0; min-height: 260px; }
.bento__item--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__item--forest { background: var(--forest); color: rgba(255,255,255,.85); border-color: var(--forest); }
.bento__item--forest h3 { color: #fff; }
.bento__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ivory); color: var(--forest); margin-bottom: 20px; }
.bento__item--forest .bento__icon { background: rgba(255,255,255,.1); color: var(--bronze-soft); }
.bento__icon svg { width: 22px; height: 22px; }
.bento__item h3 { font-size: 1.4rem; margin-bottom: .4em; }
.bento__item p { margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .bento__item { grid-column: span 1 !important; } .bento__item--a { grid-column: span 2 !important; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento__item, .bento__item--a { grid-column: span 1 !important; } }

/* ---------- Service index (interactive list) ---------- */
.svc-index { display: grid; grid-template-columns: 1fr 420px; gap: clamp(30px, 5vw, 70px); align-items: start; }
.svc-index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: svc; }
.svc-index__list li { margin: 0; border-bottom: 1px solid var(--line-strong); counter-increment: svc; }
.svc-index__link {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center;
  padding: 24px 6px; text-decoration: none; color: var(--ink); position: relative;
}
.svc-index__link::before { content: counter(svc, decimal-leading-zero); font-family: var(--f-display); font-style: italic; color: var(--sage); font-size: 1rem; }
.svc-index__name { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--forest); line-height: 1.15; transition: transform .45s var(--ease), color .3s; display: block; }
.svc-index__desc { display: block; font-size: .93rem; color: var(--muted); margin-top: 6px; max-width: 520px; }
.svc-index__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--forest); transition: background-color .35s, color .35s, transform .35s var(--ease), border-color .35s; }
.svc-index__arrow svg { width: 18px; height: 18px; }
.svc-index__link:hover .svc-index__name, .svc-index__link:focus-visible .svc-index__name { transform: translateX(10px); color: var(--bronze-dark); }
.svc-index__link:hover .svc-index__arrow { background: var(--forest); color: #fff; border-color: var(--forest); transform: rotate(-45deg); }
.svc-index__preview { position: sticky; top: calc(var(--header-h) + 30px); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); background: var(--stone); }
.svc-index__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.svc-index__preview img.is-active { opacity: 1; transform: scale(1); }
.svc-index__caption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 12px; padding: 12px 16px; font-size: .86rem; color: var(--forest); }
@media (max-width: 960px) { .svc-index { grid-template-columns: 1fr; } .svc-index__preview { display: none; } .svc-index__link { grid-template-columns: 40px 1fr auto; } }

/* ---------- Editorial feature block ---------- */
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.feature--rev { grid-template-columns: 6fr 5fr; }
.feature--rev .feature__media { order: 2; }
.feature__media { margin: 0; position: sticky; top: calc(var(--header-h) + 30px); }
.feature__media .frame { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.feature__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.feature__media figcaption { font-size: .84rem; color: var(--muted); margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--bronze); }
.feature__body h3 { margin-top: 1.6em; }
.feature__body h3:first-of-type { margin-top: .4em; }
@media (max-width: 960px) { .feature, .feature--rev { grid-template-columns: 1fr; } .feature__media { position: relative; top: 0; order: 0 !important; } .feature__media .frame { aspect-ratio: 16/10; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; margin: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.4L12 5.2' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ticks--2 { grid-template-columns: 1fr 1fr; gap: 10px 28px; }
@media (max-width: 640px) { .ticks--2 { grid-template-columns: 1fr; } }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs__btn { padding: 11px 20px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--muted); transition: background-color .3s, color .3s; }
.tabs__btn[aria-selected="true"] { background: var(--forest); color: #fff; }
.tabs__btn:hover:not([aria-selected="true"]) { color: var(--forest); background: var(--ivory); }
.tabs__panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-entering { animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tabs__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow); }
.tabs__media img { width: 100%; height: 100%; object-fit: cover; }
.symptoms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.symptoms li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .93rem; line-height: 1.5; }
.symptoms li b { display: block; color: var(--forest); font-weight: 650; margin-bottom: 2px; }
@media (max-width: 960px) { .tabs__panel { grid-template-columns: 1fr; } .tabs__media { order: -1; aspect-ratio: 16/10; } }
@media (max-width: 560px) { .symptoms { grid-template-columns: 1fr; } .tabs__list { border-radius: 18px; } }

/* ---------- Full-bleed image band ---------- */
.band { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 200px) 0; color: #fff; isolation: isolate; }
.band__bg { position: absolute; inset: -12% 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,34,27,.78) 0%, rgba(20,34,27,.55) 45%, rgba(20,34,27,.18) 100%); }
.band--center { text-align: center; }
.band--center::after { background: radial-gradient(ellipse at center, rgba(20,34,27,.62), rgba(20,34,27,.42)); }
.band__content { max-width: 680px; }
.band--center .band__content { margin: 0 auto; }
.band--center .eyebrow { justify-content: center; }
.band--center .btn-row { justify-content: center; }
.band h2 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.band h2 em { color: var(--bronze-soft); }
.band p { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 600px; }
.band--center p { margin-left: auto; margin-right: auto; }

/* ---------- Style gallery (horizontal) ---------- */
.styles-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 26px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
.style-card { scroll-snap-align: start; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.style-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.style-card__img { aspect-ratio: 4/3; overflow: hidden; }
.style-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.style-card:hover .style-card__img img { transform: scale(1.06); }
.style-card__body { padding: 22px 22px 26px; }
.style-card__body h3 { font-size: 1.35rem; margin-bottom: .35em; }
.style-card__body p { font-size: .94rem; margin: 0; color: var(--muted); }
.style-card__tag { display: inline-block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; color: var(--bronze-dark); margin-bottom: 10px; }
.rail-controls { display: flex; gap: 10px; }
.rail-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--forest); transition: background-color .3s, color .3s; }
.rail-btn:hover { background: var(--forest); color: #fff; }
.rail-btn svg { width: 18px; height: 18px; }

/* ---------- Materials ---------- */
.materials { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.material { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.material h3 { font-size: 1.35rem; margin: 0; }
.material h3 small { display: block; font-family: var(--f-text); font-size: .78rem; color: var(--muted); letter-spacing: .06em; margin-top: 6px; }
.material p { margin: 0; }
@media (max-width: 700px) { .material { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Seasons ---------- */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.season { background: var(--white); border-radius: var(--r-lg); padding: 28px 24px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.season::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--sage)); }
.season__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 650; color: var(--muted); }
.season h3 { font-size: 1.3rem; margin: 10px 0 12px; }
.season p { font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .seasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .seasons { grid-template-columns: 1fr; } }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.counter { padding: 36px 28px; border-left: 1px solid var(--line-strong); }
.counter:first-child { border-left: 0; padding-left: 0; }
.counter__num { font-family: var(--f-display); font-size: clamp(2.6rem, 4.4vw, 3.8rem); color: var(--forest); line-height: 1; letter-spacing: -.03em; display: block; margin-bottom: 14px; }
.counter__num sup { font-size: .45em; color: var(--bronze-dark); vertical-align: top; margin-left: 2px; }
.counter p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .counters { grid-template-columns: 1fr 1fr; } .counter:nth-child(3) { border-left: 0; padding-left: 0; } .counter:nth-child(n+3) { border-top: 1px solid var(--line-strong); } }
@media (max-width: 520px) { .counters { grid-template-columns: 1fr; } .counter { border-left: 0 !important; padding-left: 0; } .counter + .counter { border-top: 1px solid var(--line-strong); } }

/* ---------- Two-column care list ---------- */
.care { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.care__col { border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); }
.care__col--yes { background: var(--white); border: 1px solid var(--line); }
.care__col--no { background: var(--forest); color: rgba(255,255,255,.86); }
.care__col--no h3 { color: #fff; }
.care__col--no .ticks li::before { background-color: var(--bronze); }
.care__col h3 { font-size: 1.45rem; }
@media (max-width: 860px) { .care { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line-strong); }
.process li { margin: 0; padding: 0 22px 0 0; counter-increment: step; position: relative; }
.process__dot { width: 56px; height: 56px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.2rem; color: var(--forest); margin-bottom: 24px; position: relative; transition: background-color .4s, color .4s; }
.process li:hover .process__dot { background: var(--forest); color: #fff; }
.process h3 { font-size: 1.22rem; margin-bottom: .45em; }
.process p { font-size: .94rem; margin: 0; color: var(--ink); }
.section--stone .process__dot { background: var(--stone); }
.section--white .process__dot { background: #fff; }
@media (max-width: 1000px) {
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process li { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding: 0; }
  .process__dot { margin: 0; grid-row: span 2; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 2; color: #fff; font-size: .84rem; font-weight: 550; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,34,27,.7)); opacity: 0; transition: opacity .4s; }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }
.gallery figure:hover::after, .gallery figure:focus-within::after { opacity: 1; }
.gallery button { all: unset; position: absolute; inset: 0; z-index: 3; cursor: zoom-in; }
.gallery button:focus-visible { outline: 2px solid var(--bronze); outline-offset: -4px; }
.g-a { grid-column: span 5; grid-row: span 4; } .g-b { grid-column: span 4; grid-row: span 2; } .g-c { grid-column: span 3; grid-row: span 2; }
.g-d { grid-column: span 3; grid-row: span 2; } .g-e { grid-column: span 4; grid-row: span 2; } .g-f { grid-column: span 4; grid-row: span 3; }
.g-g { grid-column: span 4; grid-row: span 3; } .g-h { grid-column: span 4; grid-row: span 3; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } .gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; } .gallery figure:first-child { grid-column: span 2 !important; grid-row: span 2 !important; } .gallery figcaption { opacity: 1; transform: none; } .gallery figure::after { opacity: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(16,26,21,.92); display: none; align-items: center; justify-content: center; padding: 40px 20px; }
.lightbox.is-open { display: flex; animation: fadeIn .35s var(--ease); }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox p { color: rgba(255,255,255,.85); text-align: center; margin-top: 14px; font-size: .95rem; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__close svg { width: 18px; height: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.areas li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; transition: border-color .3s, transform .3s var(--ease); }
.areas li:hover { border-color: var(--sage); transform: translateY(-2px); }
.areas li svg { width: 18px; height: 18px; color: var(--bronze); flex: none; margin-top: 4px; }
.areas b { display: block; color: var(--forest); font-weight: 650; line-height: 1.3; }
.areas small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 4px; font-family: var(--f-display); font-size: clamp(1.12rem, 1.6vw, 1.32rem); color: var(--forest); line-height: 1.35;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--bronze-dark); }
.faq__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--forest); transform: translate(-50%, -50%); transition: transform .4s var(--ease), background-color .3s; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq__icon { background: var(--forest); border-color: var(--forest); transform: rotate(180deg); }
.faq[open] .faq__icon::before, .faq[open] .faq__icon::after { background: #fff; }
.faq[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { padding: 0 60px 24px 4px; color: var(--ink); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-layout > div:first-child { position: sticky; top: calc(var(--header-h) + 30px); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout > div:first-child { position: static; } .faq__answer { padding-right: 4px; } }

/* ---------- Contact section ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact__info { display: grid; gap: 14px; margin-top: 30px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.65); border: 1px solid var(--line); }
.info-row__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; }
.info-row__icon svg { width: 18px; height: 18px; }
.info-row b { display: block; color: var(--forest); font-weight: 650; }
.info-row span, .info-row a { font-size: .95rem; color: var(--muted); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Service page article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 5vw, 80px); align-items: start; }
.article { max-width: 760px; }
.article > h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.article > h2:first-child { margin-top: 0; }
.article > h3 { margin-top: 1.5em; }
.article .lead:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 4.1em; line-height: .82; padding: 6px 12px 0 0; color: var(--forest); }
.article figure { margin: 2.2em 0; }
.article figure .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; }
.article figure img { width: 100%; height: 100%; object-fit: cover; }
.article figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 18px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.toc__title { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 650; color: var(--bronze-dark); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.4; transition: background-color .2s, color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-display); font-style: italic; color: var(--sage); font-size: .85rem; }
.toc a:hover, .toc a.is-active { background: var(--ivory); color: var(--forest); }
.side-cta { background: var(--forest); color: rgba(255,255,255,.85); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.side-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(166,139,101,.5); }
.side-cta h3 { color: #fff; font-size: 1.4rem; }
.side-cta p { font-size: .93rem; }
.side-cta .btn { width: 100%; margin-top: 6px; }
@media (max-width: 1060px) { .article-layout { grid-template-columns: 1fr; } .sidebar { position: static; } .toc { display: none; } }

.callout { display: flex; gap: 18px; padding: 24px 26px; border-radius: var(--r-lg); margin: 2em 0; background: var(--bronze-soft); border: 1px solid rgba(166,139,101,.4); color: var(--ink); }
.callout svg { width: 26px; height: 26px; flex: none; color: var(--bronze-dark); margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout strong { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.callout--green { background: #E9EEE9; border-color: var(--sage-soft); }
.callout--green svg { color: var(--forest-2); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.5em 0 2em; }
.mini-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.mini-card h4 { margin: 0 0 6px; color: var(--forest); }
.mini-card p { margin: 0; font-size: .95rem; }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 1.5em 0 2em; counter-reset: s; display: grid; gap: 4px; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bronze); display: grid; place-items: center; font-family: var(--f-display); color: var(--forest); }
.steps li b { display: block; color: var(--forest); font-weight: 650; margin-bottom: 2px; }

.wi-box { position: relative; border-radius: var(--r-xl); overflow: hidden; margin: 2.4em 0; color: #fff; padding: clamp(28px, 4vw, 44px); isolation: isolate; }
.wi-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.wi-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,34,27,.9), rgba(20,34,27,.66)); z-index: -1; }
.wi-box h2, .wi-box h3 { color: #fff; margin-top: 0 !important; }
.wi-box p { color: rgba(255,255,255,.88); }
.wi-box p:last-child { margin-bottom: 0; }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.rel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.rel-card__img { aspect-ratio: 16/10; overflow: hidden; }
.rel-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rel-card:hover .rel-card__img img { transform: scale(1.06); }
.rel-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rel-card__body h3 { font-size: 1.3rem; margin-bottom: .35em; }
.rel-card__body p { font-size: .93rem; color: var(--muted); margin-bottom: 16px; }
.rel-card__body .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

/* ---------- CTA panel ---------- */
.cta-panel { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--forest); color: rgba(255,255,255,.86); display: grid; grid-template-columns: 1fr 1.1fr; isolation: isolate; }
.cta-panel__text { padding: clamp(32px, 5vw, 64px); position: relative; }
.cta-panel__text::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-linear-gradient(180deg, transparent 0 58px, rgba(255,255,255,.05) 58px 59px); }
.cta-panel h2 { color: #fff; }
.cta-panel h2 em { color: var(--bronze-soft); }
.cta-panel__form { background: var(--white); padding: clamp(28px, 4vw, 48px); color: var(--ink); }
@media (max-width: 960px) { .cta-panel { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1B3127; color: rgba(255,255,255,.72); padding: clamp(70px, 8vw, 110px) 0 0; font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 88px, rgba(255,255,255,.028) 88px 89px); }
.site-footer .container { position: relative; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--bronze-soft); }
.footer-top { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.4fr; gap: clamp(30px, 4vw, 56px); padding-bottom: 60px; }
.footer-top h4 { color: #fff; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top li { margin: 0; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo__sub { color: var(--bronze-soft); }
.footer-brand p { margin-top: 20px; max-width: 320px; }
.footer-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.12); aspect-ratio: 4/3; background: #22392e; position: relative; }
.footer-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.75) contrast(.95); }
.footer-map__note { font-size: .82rem; margin-top: 12px; color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom nav { display: flex; gap: 22px; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 85; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-radius: 999px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: translateY(140%); transition: transform .5s var(--ease-out); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding: 10px 14px; font-size: .92rem; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 80px; }
}

/* ---------- Prose helpers ---------- */
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.two-col-text { columns: 2; column-gap: 56px; }
.two-col-text p { break-inside: avoid; }
@media (max-width: 860px) { .two-col-text { columns: 1; } }
.divider { height: 1px; background: var(--line-strong); border: 0; margin: clamp(48px, 6vw, 80px) 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--forest); }
.pill svg { width: 14px; height: 14px; color: var(--bronze); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-0 { margin-bottom: 0 !important; }

/* Subtle layered background texture for alternate sections */
.layered { position: relative; isolation: isolate; }
.layered::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 40% at 100% 0%, rgba(166,139,101,.10), transparent 70%), radial-gradient(ellipse 45% 50% at 0% 100%, rgba(135,152,138,.16), transparent 70%); }
.ghost-img { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none; }
.ghost-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--r-xl)); transition: clip-path 1.3s var(--ease-out); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.js [data-reveal="img"] img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.js [data-reveal="img"].is-in img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="img"] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="img"] img { transform: none !important; }
  .door-lift { display: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.notfound__num { font-family: var(--f-display); font-size: clamp(6rem, 18vw, 12rem); color: var(--stone-2); line-height: 1; }
