/* ==========================================================================
   Flywood Impressions — site styles
   Brand palette taken from the Flywood brochure: maroon, cream, wood tones.
   ========================================================================== */

:root {
  /* Brand */
  --maroon: #7f1622;
  --maroon-deep: #5e0f18;
  --maroon-soft: #a3283a;
  --gold: #c9a66b;
  --wood: #a0602f;
  --wood-light: #d9b88a;

  /* Neutrals */
  --cream: #faf6ec;
  --cream-2: #f3ead8;
  --paper: #ffffff;
  --ink: #2b1d16;
  --ink-2: #5b4a3f;
  --line: #e4d7bf;

  /* Type */
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(43, 29, 22, 0.06), 0 8px 24px rgba(43, 29, 22, 0.08);
  --shadow-lg: 0 2px 4px rgba(43, 29, 22, 0.06), 0 18px 48px rgba(43, 29, 22, 0.14);
  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-deep); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--maroon); color: #fff; padding: 0.75rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Brochure-style label tag ---------- */
.tag {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1.25rem;
}
.tag--light { background: rgba(255, 255, 255, 0.14); color: #fff; }

.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 0.75rem;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }

.rule {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ink-2); text-transform: uppercase;
  margin: 0.15em 0;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--gold); max-width: 120px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.04em;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--maroon); color: #fff; box-shadow: 0 6px 18px rgba(127, 22, 34, 0.25); }
.btn--primary:hover { background: var(--maroon-deep); color: #fff; transform: translateY(-1px); }
.btn--outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn--outline:hover { background: var(--maroon); color: #fff; }
.btn--light { background: #fff; color: var(--maroon); }
.btn--light:hover { background: var(--cream-2); color: var(--maroon-deep); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--maroon); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(43, 29, 22, 0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 60px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav__link {
  position: relative; display: block; padding: 0.6rem 0.9rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem; height: 2px;
  background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--maroon); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--maroon); }
.nav__cta { margin-left: 0.75rem; min-height: 42px; padding: 0.55rem 1.25rem; }

.nav__toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: 0 20px 40px rgba(43, 29, 22, 0.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s, visibility 0.25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 0.95rem 0.25rem; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1.25rem 0 0; width: 100%; }
  .brand img { height: 50px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(250, 246, 236, 0.97) 0%, rgba(250, 246, 236, 0.9) 38%, rgba(250, 246, 236, 0.35) 62%, rgba(250, 246, 236, 0) 80%);
}
/* maroon swoosh, echoing the brochure cover */
.hero__swoosh {
  position: absolute; z-index: -1; top: 0; left: 0; width: min(46vw, 560px); height: 120px;
  background: var(--maroon);
  clip-path: path("M0 0 H560 C 470 60, 300 120, 0 120 Z");
  opacity: 0.95;
}
.hero__content { max-width: 620px; }
.hero__kicker { font-size: var(--fs-lg); font-weight: 500; color: var(--ink); margin: 0; }
.hero__title { font-size: var(--fs-2xl); font-weight: 800; color: var(--maroon); text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.hero__title span { display: block; }
.hero__tagline { margin: 1.1rem 0 1.25rem; font-size: var(--fs-md); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.hero__lead { color: var(--ink-2); max-width: 520px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

@media (max-width: 760px) {
  .hero { min-height: auto; align-items: flex-end; padding-top: 52vw; }
  .hero__media img { object-position: 80% 30%; }
  .hero::before { background: linear-gradient(180deg, rgba(250, 246, 236, 0) 0%, rgba(250, 246, 236, 0.6) 30%, rgba(250, 246, 236, 0.97) 52%); }
  .hero__swoosh { width: 70vw; height: 70px; clip-path: path("M0 0 H300 C 250 34, 160 70, 0 70 Z"); }
  .hero__tagline { letter-spacing: 0.16em; font-size: var(--fs-sm); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--maroon); color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: center / cover no-repeat;
  opacity: 0.22; mix-blend-mode: luminosity;
}
.page-hero--about::before { background-image: url("../assets/images/warehouse.jpg"); }
.page-hero--products::before { background-image: url("../assets/images/block-board-core.jpg"); }
.page-hero--contact::before { background-image: url("../assets/images/flush-door-interior.jpg"); }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: -1;
  background: var(--cream);
  clip-path: path("M0 60 C 400 0, 900 70, 2400 10 V60 Z");
}
.page-hero h1 { font-size: var(--fs-2xl); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.page-hero p { max-width: 640px; color: rgba(255, 255, 255, 0.86); margin: 0; }
.breadcrumb { display: flex; gap: 0.5rem; list-style: none; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--cream-2); }
.section--maroon { background: var(--maroon); color: #fff; }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--gold); }
.section-title { font-size: var(--fs-xl); color: var(--ink); }
.section-title em { font-style: normal; color: var(--maroon); }
.section--maroon .section-title, .section--maroon .eyebrow { color: #fff; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); font-weight: 400; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4 / 3.4; }
.split__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%;
  border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: -1;
}
.split__badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--maroon); color: #fff; border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-lg); max-width: 220px;
  font-size: var(--fs-sm); line-height: 1.4;
}
.split__badge strong { display: block; font-size: 1.35rem; letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split__badge { left: 12px; }
  .split__media::before { inset: auto -8px -8px auto; }
}

.check-list { list-style: none; display: grid; gap: 0.7rem; margin: 1.5rem 0 2rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.2rem; color: var(--maroon); }

/* ---------- Trust strip ---------- */
.trust { background: var(--maroon); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.25rem; }
.trust__item + .trust__item { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.trust__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.trust__icon svg { width: 24px; height: 24px; }
.trust__item p { margin: 0; font-size: var(--fs-sm); line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.trust__item strong { display: block; color: #fff; font-size: var(--fs-md); }
@media (max-width: 960px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .trust__item { padding-inline: 0; }
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid, .product-grid--3 { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 900px) { .product-grid--3 { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card[hidden] { display: none; }
.product-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.94); color: var(--maroon);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.6rem; }
.product-card__num { font-size: var(--fs-xs); font-weight: 700; color: var(--gold); letter-spacing: 0.15em; }
.product-card h3 { font-size: 1.25rem; margin: 0.25rem 0 0.6rem; }
.product-card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }
.product-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; }
.product-card__meta li { font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); }
.product-card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--maroon); text-decoration: none;
  min-height: 44px;
}
.product-card__link svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.product-card__link:hover svg { transform: translateX(4px); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-btn {
  min-height: 44px; padding: 0.55rem 1.2rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.filter-btn[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.filter-status { font-size: var(--fs-sm); color: var(--ink-2); margin: -1rem 0 1.5rem; }

/* ---------- Feature cards (why choose us) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.feature:hover { border-color: var(--wood-light); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); color: var(--maroon); margin-bottom: 1.25rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.15rem; }
.feature p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

.cert-line {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem;
  margin: 0.5rem 0 0; padding: 0.6rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--maroon);
  border-radius: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--maroon); letter-spacing: 0.02em;
}
.cert-line svg { width: 20px; height: 20px; flex-shrink: 0; }
.cert-line__sep { color: var(--gold); font-weight: 400; }

/* ---------- Grades ---------- */
.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .grade-grid { grid-template-columns: 1fr; } }
.grade {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--maroon); box-shadow: var(--shadow);
}
.grade__code { font-size: 1.6rem; font-weight: 800; color: var(--maroon); min-width: 70px; letter-spacing: 0.02em; }
.grade h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.grade p { margin: 0; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }
.note { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 1.5rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.06); }
.gallery__btn:focus-visible { outline-offset: -3px; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 2rem 1rem 0.85rem; color: #fff; font-size: var(--fs-sm); font-weight: 600;
  background: linear-gradient(transparent, rgba(43, 29, 22, 0.75));
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 480px) {
  .gallery { grid-auto-rows: 140px; gap: 0.6rem; }
  .gallery__item--wide { grid-column: span 2; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; padding: 4.5rem 1rem 2rem;
  background: rgba(24, 14, 10, 0.92);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox__img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.lightbox__caption { color: #f3ead8; margin-top: 1rem; font-size: var(--fs-sm); }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background-color 0.2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}
body.no-scroll { overflow: hidden; }

/* ---------- Timeline / people (about) ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 800px) { .people { grid-template-columns: 1fr; } }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.person__initials {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--maroon); color: #fff; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.04em;
}
.person h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.person p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }

.mission {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (max-width: 760px) { .mission { grid-template-columns: 1fr; } }
.mission__card {
  border-radius: var(--radius-lg); padding: 2.25rem 2rem;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
}
.mission__card h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.2rem; }
.mission__card h3 svg { width: 28px; height: 28px; color: var(--gold); }
.mission__card p { color: rgba(255, 255, 255, 0.86); margin: 0; }

.banner-strip { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.banner-strip img { width: 100%; height: clamp(120px, 18vw, 200px); object-fit: cover; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--maroon); color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 166, 107, 0.28), rgba(201, 166, 107, 0) 65%);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--wood), var(--gold));
}
.cta h2 { font-size: var(--fs-xl); margin-bottom: 0.4rem; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--maroon); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem); position: relative; overflow: hidden;
}
.contact-card h2 { font-size: 1.4rem; }
.contact-card__company { font-weight: 700; letter-spacing: 0.04em; color: var(--gold); text-transform: uppercase; font-size: var(--fs-sm); margin-bottom: 1.5rem; }
.contact-list { list-style: none; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list h3 { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin: 0 0 0.2rem; font-weight: 600; }
.contact-list p, .contact-list a { margin: 0; color: #fff; font-size: var(--fs-md); line-height: 1.55; }
.contact-list a { text-decoration: none; display: inline-block; padding-block: 0.15rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-card .btn { margin-top: 2rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }
.form-notice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--cream-2); border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1.5rem;
  font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55;
}
.form-notice svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--maroon); margin-top: 0.15rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 0.4rem; }
.field label .req { color: var(--maroon); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream);
  font-size: 16px; /* avoids iOS zoom on focus */
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f1622' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); background: #fff; box-shadow: 0 0 0 4px rgba(127, 22, 34, 0.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; background: #fff7f6; }
.field__error { display: block; min-height: 1.2em; margin-top: 0.3rem; font-size: var(--fs-xs); color: #b3261e; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-result {
  display: none; margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 10px;
  background: #eef6ee; border: 1px solid #b9d8bb; color: #1f4d24; font-size: var(--fs-sm);
}
.form-result.is-visible { display: block; }
.form-result--error { background: #fff4f2; border-color: #f0c4bd; color: #8a1c12; }
.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }
.form-result p:last-child { margin-bottom: 0; }
.form-result .btn { margin-top: 0.5rem; }

.map-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.map-link:hover { border-color: var(--maroon); box-shadow: var(--shadow); color: var(--ink); }
.map-link strong { display: block; color: var(--maroon); }
.map-link span { font-size: var(--fs-sm); color: var(--ink-2); }
.map-link svg { width: 22px; height: 22px; color: var(--maroon); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1f1410; color: rgba(255, 255, 255, 0.78); padding-top: clamp(3rem, 7vw, 4.5rem); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 54px; width: auto; margin-bottom: 1.1rem; }
.footer-about p { max-width: 380px; }
.footer-tagline { display: block; letter-spacing: 0.22em; font-size: var(--fs-xs); color: var(--gold); text-transform: uppercase; margin-bottom: 0.75rem; }
.site-footer h2 { font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-links { list-style: none; display: grid; gap: 0.35rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, 0.78); text-decoration: none; display: inline-block; padding-block: 0.2rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; display: grid; gap: 0.75rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.25rem; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.6);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--maroon); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease), background-color 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--maroon-deep); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3.5rem); }
.text-center { text-align: center; }
