/* ==========================================================================
   KEDD Construction LLC — site styles
   Palette and type are defined once here as custom properties.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #12283f;        /* primary */
  --navy-deep: #0b1a2c;   /* footer, deep surfaces */
  --slate: #3b5876;       /* secondary, shingle blue */
  --slate-light: #6f87a3;
  --brass: #b8892e;       /* accent */
  --brass-light: #d4a84b; /* accent on dark backgrounds */
  --bone: #f4f3ee;        /* light section background */
  --mist: #e3e6ea;        /* borders, dividers */
  --ink: #1c2430;         /* body text */
  --ink-soft: #4e5865;    /* secondary text */
  --white: #ffffff;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Scale (Perfect fourth-ish, tuned by hand) */
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --display-sm: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --display-md: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  --display-lg: clamp(3.25rem, 2rem + 6vw, 6.75rem);

  /* Layout */
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 3vw + 1.5rem, 5.25rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(18, 40, 63, 0.08), 0 12px 32px -12px rgba(18, 40, 63, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 5.5rem; }
/* anchored sections carry their own top padding, so land the heading just under the sticky header */
.section[id] { scroll-margin-top: calc(4.75rem + 1.25rem - var(--section)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--brass); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: var(--navy);
  text-transform: uppercase;
}
h1 { font-size: var(--display-lg); font-weight: 900; }
h2 { font-size: var(--display-md); }
h3 { font-size: var(--display-sm); }
h4 { font-size: var(--text-xl); }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.visually-hidden {
  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: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--bone { background: var(--bone); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--white); }
.section--navy a:hover { color: var(--brass-light); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* Section heading device: brass rule that echoes the logo's "KEDD HOMES" line */
.section-head { margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem); max-width: 48rem; }
.section-head h2 { margin-bottom: 0.35em; }
.section-head p { font-size: var(--text-lg); color: var(--ink-soft); margin: 0; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.78); }
.rule {
  display: block; width: 3.5rem; height: 4px; background: var(--brass); margin: 0 0 1.25rem;
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .rule { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1fr; } .split--wide-right { grid-template-columns: 5fr 7fr; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  line-height: 1; padding: 0.95rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brass); color: var(--navy-deep); border-color: var(--brass); }
.btn--primary:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy-deep); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.section--navy .btn--outline { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.section--navy .btn--outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sm { padding: 0.65rem 1rem; font-size: var(--text-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--mist);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.site-header__logo img { height: 3.4rem; width: auto; }
.site-nav { display: none; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: 0.5rem 0.9rem; border-radius: var(--radius); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__phone { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: 0; background: none; border: 1px solid var(--mist); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; width: 1.25rem; height: 2px; background: var(--navy); margin-inline: auto; transition: transform 0.2s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--mist); background: var(--white); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem var(--gutter) 1rem; }
.mobile-nav a { display: block; padding: 0.8rem 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--mist); }
.mobile-nav .btn { display: flex; margin-top: 1rem; width: 100%; border-bottom: 0; }
@media (min-width: 60em) {
  .site-nav { display: flex; gap: 0.25rem; }
  .site-header__phone { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero: navy panel with an angled edge over a full-bleed photo
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero__media { position: relative; aspect-ratio: 16 / 10; background: var(--slate); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__tag {
  position: absolute; left: 1rem; bottom: 1rem; display: grid; gap: 0.1rem; text-decoration: none;
  padding: 0.7rem 0.95rem; border-radius: var(--radius); background: rgba(11, 26, 44, 0.78); color: var(--white);
  backdrop-filter: blur(6px); font-size: var(--text-sm); border-left: 3px solid var(--brass);
}
.hero__tag strong { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__tag span { color: rgba(255, 255, 255, 0.75); }
.hero__tag:hover { color: var(--white); background: rgba(11, 26, 44, 0.92); }
.hero__panel { position: relative; }
.hero__content { padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); max-width: var(--container); margin-inline: auto; }
.hero__kicker { font-weight: 600; color: var(--brass-light); margin-bottom: 1rem; letter-spacing: 0.01em; }
.hero h1 { color: var(--white); font-size: clamp(3rem, 2rem + 4.5vw, 5.75rem); margin-bottom: 0.35em; }
.hero__lead { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.82); max-width: 34rem; }
.hero__actions { margin-top: 1.75rem; }
.hero__call { margin-top: 1.5rem; font-size: var(--text-sm); color: rgba(255, 255, 255, 0.65); }
.hero__call a { color: var(--white); font-weight: 600; }
.hero__call a:hover { color: var(--brass-light); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
@media (max-width: 59.99em) {
  .hero__tag span { display: none; }
  .hero__tag { padding: 0.5rem 0.8rem; }
}
@media (min-width: 60em) {
  .hero { min-height: clamp(540px, 74vh, 740px); display: grid; }
  /* photo occupies the right 58%; the panel's angled edge overlaps it */
  .hero__media { position: absolute; top: 0; bottom: 0; right: 0; left: 42%; aspect-ratio: auto; }
  .hero__media img { object-position: 0 55%; }
  .hero__media::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(18, 40, 63, 0.35), rgba(18, 40, 63, 0) 45%);
  }
  .hero__tag { left: auto; right: 1.5rem; bottom: 1.5rem; }
  .hero__panel {
    display: grid; align-items: center; width: 58%;
    background: var(--navy);
    clip-path: polygon(0 0, 100% 0, calc(100% - 8rem) 100%, 0 100%);
  }
  .hero__content {
    margin: 0; max-width: none; padding-block: 4rem; padding-right: 10rem;
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  }
  .hero__lead { max-width: 32rem; }
}
/* small laptops and landscape tablets: give the photo more room */
@media (min-width: 60em) and (max-width: 84em) {
  .hero__media { left: 36%; }
  .hero__panel { width: 52%; clip-path: polygon(0 0, 100% 0, calc(100% - 6rem) 100%, 0 100%); }
  .hero__content { padding-right: 7rem; padding-block: 3rem; }
  .hero h1 { font-size: 4rem; }
  .hero__lead { font-size: var(--text-base); }
}

/* Before / after figure in the project section */
.compare-figure { margin: 0; }
.compare-figure figcaption { margin-top: 0.75rem; font-size: var(--text-sm); color: var(--ink-soft); }
.project-layout { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (min-width: 60em) { .project-layout { grid-template-columns: 6fr 5fr; } }
.timeline { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.25rem; }
.timeline li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.1rem; align-items: center; }
.timeline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.timeline strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: 0.15rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.timeline span { color: var(--ink-soft); font-size: var(--text-base); line-height: 1.45; }

/* Before / after comparison */
.compare {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); background: var(--slate); user-select: none; touch-action: pan-y;
  --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 2; pointer-events: none;
}
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--white); box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.compare__grip {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--white); color: var(--navy);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.compare__label {
  position: absolute; top: 0.9rem; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: var(--radius);
  background: rgba(11, 26, 44, 0.72); color: var(--white); backdrop-filter: blur(4px);
}
.compare__label--before { left: 0.9rem; }
.compare__label--after { right: 0.9rem; background: var(--brass); color: var(--navy-deep); }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none;
}
.compare__range:focus-visible + .compare__handle .compare__grip { outline: 3px solid var(--brass); outline-offset: 2px; }
@keyframes compare-nudge { 0%, 100% { --pos: 50%; } 50% { --pos: 60%; } }
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.compare[data-nudge="true"] { animation: compare-nudge 2.2s var(--ease) 0.6s 1; }

/* Fact strip under the hero */
.facts { border-bottom: 1px solid var(--mist); background: var(--white); }
.facts__list {
  list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem;
  justify-content: center;
}
.facts__list li { display: flex; gap: 0.6rem; align-items: center; font-weight: 600; font-size: var(--text-sm); color: var(--navy); white-space: nowrap; }
.facts__list li::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--brass); flex: none; transform: rotate(45deg); }
@media (min-width: 60em) {
  .facts__list { justify-content: space-between; padding: 1.25rem 0; }
  .facts__list li { font-size: var(--text-base); }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.service-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.service { display: block; color: inherit; text-decoration: none; }
.service__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); position: relative; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service:hover .service__media img { transform: scale(1.03); }
.service__media--placeholder { display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), var(--slate)); }
.service__media--placeholder img { width: 46%; height: auto; opacity: 0.85; }
.service h3 { margin: 1rem 0 0.3rem; font-size: 1.6rem; }
.service p { color: var(--ink-soft); margin: 0; font-size: var(--text-base); }

/* --------------------------------------------------------------------------
   Packages
   -------------------------------------------------------------------------- */
.package-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 46em) { .package-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); } }
.package {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--mist);
}
.package__media { aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.package__media img { width: 100%; height: 100%; object-fit: cover; }
.package__media--placeholder { display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), var(--slate)); }
.package__media--placeholder img { width: 38%; height: auto; opacity: 0.85; }
.package__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.package__body h3 { font-size: 1.85rem; margin-bottom: 0.25rem; }
.package__tagline { color: var(--ink-soft); margin-bottom: 1rem; }
.package__price { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--mist); }
.package__price-label { font-size: var(--text-sm); color: var(--ink-soft); }
.package__price-amount { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--navy); line-height: 1; }
.package__price-amount--tbd { font-size: 1.4rem; color: var(--slate); }
.package__includes { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.4rem; }
.package__includes li { display: flex; gap: 0.6rem; align-items: flex-start; }
.package__includes li::before { content: ""; flex: none; width: 0.9rem; height: 0.9rem; margin-top: 0.3rem; background: var(--brass); clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 22%, 86% 8%, 40% 66%); }
.package__more { font-size: var(--text-sm); color: var(--ink-soft); margin: -1rem 0 1.5rem; }
.package__actions { margin-top: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pill {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--bone); color: var(--slate); border: 1px solid var(--mist); margin-bottom: 0.75rem; align-self: flex-start;
}
.pill--brass { background: rgba(184, 137, 46, 0.14); color: #7a5a17; border-color: rgba(184, 137, 46, 0.3); }

/* Package detail sections (packages.html) */
.package-nav { position: sticky; top: 4.75rem; z-index: 10; background: var(--white); border-bottom: 1px solid var(--mist); }
.package-nav .container { position: relative; }
.package-nav .container::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3.5rem; background: linear-gradient(to right, rgba(255,255,255,0), var(--white) 70%); pointer-events: none; }
@media (min-width: 60em) { .package-nav .container::after { display: none; } }
.package-nav ul { list-style: none; margin: 0; padding: 0 2.5rem 0 0; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.package-nav ul::-webkit-scrollbar { display: none; }
.package-nav a { display: block; padding: 0.9rem 0.9rem; white-space: nowrap; text-decoration: none; font-weight: 600; color: var(--ink-soft); border-bottom: 3px solid transparent; }
.package-nav a:hover, .package-nav a[aria-current="true"] { color: var(--navy); border-color: var(--brass); }
.package-detail { padding-block: clamp(2.5rem, 4vw, 3.75rem); border-bottom: 1px solid var(--mist); }
/* sticky header (4.75rem) + package nav (~3.4rem) minus the section's own top padding, plus breathing room */
.package-detail[id] { scroll-margin-top: calc(8.25rem + 1.5rem - clamp(2.5rem, 4vw, 3.75rem)); }
.package-detail .split { align-items: start; }
.package-detail__media { position: sticky; top: 9.75rem; }
.package-detail:last-child { border-bottom: 0; }
.package-detail__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.package-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.package-detail__media--placeholder { display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), var(--slate)); }
.package-detail__media--placeholder img { width: 38%; height: auto; opacity: 0.85; }
.package-detail h2 { margin-bottom: 0.2em; }
.package-detail__price { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.5rem 0 1.25rem; }
.package-detail__price .package__price-amount { font-size: 2.1rem; }
.package-detail__price .package__price-amount--tbd { font-size: 1.5rem; }
.package-detail__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-bottom: 1.5rem; }
.package-detail h4 { text-transform: none; font-family: var(--font-body); font-weight: 600; font-size: var(--text-base); color: var(--ink); margin-bottom: 0.5rem; letter-spacing: 0; }
.package-detail__note { font-size: var(--text-sm); color: var(--ink-soft); border-left: 3px solid var(--brass); padding-left: 1rem; }

/* --------------------------------------------------------------------------
   Project story / gallery
   -------------------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.gallery-filters button {
  font: inherit; font-weight: 600; padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer;
  background: var(--white); border: 1px solid var(--mist); color: var(--ink-soft);
}
.gallery-filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.gallery__item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem 0.9rem; color: var(--white); font-size: var(--text-sm);
  background: linear-gradient(to top, rgba(11, 26, 44, 0.85), rgba(11, 26, 44, 0)); pointer-events: none;
}
.gallery__item figcaption strong { display: block; font-weight: 600; }
.gallery__item[hidden] { display: none; }
.gallery__tag { position: absolute; top: 0.75rem; left: 0.75rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; padding: 0.3rem 0.6rem; border-radius: var(--radius); background: var(--white); color: var(--navy); pointer-events: none; }
.gallery__tag--after { background: var(--brass); color: var(--navy-deep); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 80rem); max-height: 96vh; }
.lightbox::backdrop { background: rgba(11, 26, 44, 0.92); }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--white); text-align: center; padding: 0.9rem; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; } .lightbox__nav--next { right: 1rem; }
.lightbox button { background: var(--white); color: var(--navy); border: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }

/* --------------------------------------------------------------------------
   Mission & values
   -------------------------------------------------------------------------- */
.mission { position: relative; overflow: hidden; }
.mission__mark {
  position: absolute; right: -6%; bottom: -12%; width: min(52vw, 640px); height: auto;
  opacity: 0.05; pointer-events: none;
}
.mission__grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 60em) { .mission__grid { grid-template-columns: 6fr 6fr; } }
.mission__statement h2 { margin-bottom: 1rem; }
.mission__quote { margin: 0; }
.mission__quote p {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.15rem); line-height: 1.15; color: var(--white); max-width: 26ch; margin: 0 0 0.9em;
}
.mission__quote p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, 0.82); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.values li {
  padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 3px 0 var(--brass);
}
.values h3 { font-size: 1.7rem; color: var(--white); margin-bottom: 0.45rem; }
.values p { color: rgba(255, 255, 255, 0.76); margin: 0; font-size: var(--text-base); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.people { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.people li { border-left: 3px solid var(--brass); padding-left: 1rem; }
.people strong { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.04em; color: var(--navy); }
.people span { color: var(--ink-soft); display: block; }
.people a { font-weight: 600; text-decoration: none; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60em) { .contact { grid-template-columns: 7fr 5fr; align-items: start; } }
.contact-card { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.section--navy .contact-card { border-color: transparent; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--text-sm); color: var(--navy); }
.field small { color: var(--ink-soft); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--radius);
  border: 1px solid #c9cfd6; background: var(--white); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(59, 88, 118, 0.2); }
.field textarea { min-height: 8rem; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.85rem; }
.form__consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-soft); }
.form__consent input { margin-top: 0.3rem; }
.form__hp { position: absolute; left: -9999px; }
.form__status { padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 600; display: none; }
.form__status[data-state="success"] { display: block; background: #e8f3e8; color: #1f5a2a; }
.form__status[data-state="error"] { display: block; background: #fbe9e7; color: #8a1c14; }
.form__status a { color: inherit; }

.contact-info h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-info dl { margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.contact-info dt { font-size: var(--text-sm); color: var(--ink-soft); }
.contact-info dd { margin: 0; font-weight: 600; font-size: var(--text-lg); }
.contact-info dd a { text-decoration: none; }
.contact-info dd span { font-weight: 400; color: var(--ink-soft); font-size: var(--text-base); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--mist); aspect-ratio: 4 / 3; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 2.25rem; }
.cta-band h2 { color: var(--white); margin: 0; font-size: var(--display-sm); }
.cta-band p { margin: 0.25rem 0 0; color: rgba(255,255,255,0.78); }

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head { background: var(--bone); padding-block: clamp(2rem, 3.5vw, 3rem); border-bottom: 1px solid var(--mist); }
.page-head h1 { font-size: var(--display-md); font-weight: 900; margin-bottom: 0.25em; }
.page-head p { font-size: var(--text-lg); color: var(--ink-soft); margin: 0; }
.breadcrumb { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: 0.6rem; }
.breadcrumb a { text-decoration: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); font-size: var(--text-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.site-footer__brand img { height: 7rem; width: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 32ch; }
.site-footer h3 { color: var(--white); font-size: 1.15rem; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; color: rgba(255,255,255,0.55); }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-soft { color: var(--ink-soft); }
.mt-2 { margin-top: 2rem; }
.lead { font-size: var(--text-lg); }
