/* ==========================================================================
   Inner-City Revitalization Corporation
   Rebuild 2026 — static HTML/CSS/JS
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Greens: deepened from the legacy #006600 */
  --green-950: #05170f;
  --green-900: #0a2818;
  --green-800: #10391f;
  --green-700: #1a5232;
  --green-600: #246b42;
  --green-500: #2f8654;
  --green-400: #4aa571;
  --green-300: #7cc79b;
  --green-100: #d8efe1;
  --green-50:  #eff8f3;

  /* Warm secondary, pulled from the logo's sun */
  --amber-600: #b26a12;
  --amber-500: #d98b1f;
  --amber-400: #edaa47;
  --amber-100: #fbeacd;

  /* Neutrals */
  --ink-900: #14181a;
  --ink-800: #232a2d;
  --ink-600: #4c565b;
  --ink-500: #6b767c;
  --ink-400: #939da3;
  --ink-300: #c3ccd0;
  --ink-200: #e2e8ea;
  --ink-100: #f1f5f6;
  --paper:   #ffffff;
  --shell:   #f7faf8;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
                  Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.25vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.7rem + 2vw, 3.5rem);
  --step-5:  clamp(2.5rem, 1.9rem + 3vw, 4.5rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 40, 24, 0.06),
               0 2px 8px rgba(10, 40, 24, 0.05);
  --shadow:    0 2px 6px rgba(10, 40, 24, 0.07),
               0 12px 28px -8px rgba(10, 40, 24, 0.14);
  --shadow-lg: 0 4px 12px rgba(10, 40, 24, 0.09),
               0 28px 56px -12px rgba(10, 40, 24, 0.2);

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-500); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--green-950);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, var(--sp-9)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-7)); }
.section--shell { background: var(--shell); }
.section--dark {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(47, 134, 84, 0.22), transparent 60%),
    linear-gradient(165deg, var(--green-900) 0%, var(--green-950) 100%);
  color: var(--green-100);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--green-300); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--green-800); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }

/* Section label — small caps eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--amber-500);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--amber-400); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 62ch;
}
.section--dark .lede { color: var(--green-100); opacity: 0.92; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 1.6em;
  font: inherit; font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-600); color: #fff; box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent; color: var(--green-800);
  border-color: var(--green-300);
}
.btn--ghost:hover { background: var(--green-50); border-color: var(--green-500); color: var(--green-800); }
.btn--onDark {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn--onDark:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn--amber { background: var(--amber-500); color: var(--green-950); }
.btn--amber:hover { background: var(--amber-400); color: var(--green-950); }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--ink-200);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  min-height: 76px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { height: 54px; width: auto; }
@media (max-width: 1040px) { .brand img { height: 46px; } }
@media (max-width: 400px) { .brand img { height: 38px; } }

.nav { display: flex; align-items: center; gap: var(--sp-1); }
.nav a:not(.btn) {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-800); text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--green-700); background: var(--green-50); }
.nav a[aria-current="page"]:not(.btn) { color: var(--green-700); font-weight: 600; }
.nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3);
  bottom: 2px; height: 2px; border-radius: 2px; background: var(--amber-500);
}
.nav .btn { margin-left: var(--sp-3); padding: 0.6em 1.3em; font-size: 0.95rem; }
.nav .btn:hover { background: var(--green-600); color: #fff; }
/* The CTA button keeps its own styling even as the current page */
.nav .btn[aria-current="page"] {
  background: var(--green-700); color: #fff;
  box-shadow: inset 0 0 0 2px var(--amber-500);
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 10px; cursor: pointer; color: var(--green-900);
  line-height: 0;
}
.nav-toggle:hover { background: var(--green-50); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow);
    padding: var(--sp-3) var(--sp-4) var(--sp-5);
    max-height: calc(100dvh - 76px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease),
                visibility 0.22s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: var(--sp-4) var(--sp-3); font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] {
    background: var(--green-50);
    box-shadow: inset 3px 0 0 var(--amber-500);
  }
  .nav .btn { margin: var(--sp-3) 0 0; padding: 0.85em 1.6em; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(5, 23, 15, 0.95) 0%,
      rgba(10, 40, 24, 0.88) 42%,
      rgba(10, 40, 24, 0.62) 70%,
      rgba(16, 57, 31, 0.5) 100%);
}
.hero__inner {
  padding-block: clamp(4.5rem, 13vw, 9.5rem);
  max-width: 46rem;
  color: #fff;
}
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero h1 em {
  font-style: normal; color: var(--amber-400);
  display: block;
}
.hero__lede {
  font-size: var(--step-1); line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem; margin-bottom: var(--sp-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__tag {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.4em 1em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: var(--sp-5);
}
.hero__tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-400);
}

/* --- Page header (interior pages) --------------------------------------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(47, 134, 84, 0.28), transparent 65%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
/* Rooflines echoing the logo, anchored bottom-right */
.page-head::after {
  content: "";
  position: absolute; z-index: -1;
  right: -4%; bottom: -35%;
  width: min(46%, 520px); aspect-ratio: 1;
  background-image:
    linear-gradient(45deg, transparent 49.4%, rgba(122, 199, 155, 0.16) 49.4% 50.6%, transparent 50.6%),
    linear-gradient(-45deg, transparent 49.4%, rgba(122, 199, 155, 0.16) 49.4% 50.6%, transparent 50.6%);
  background-size: 42% 42%;
  background-repeat: repeat-x;
  background-position: 0 42%, 0 42%;
  pointer-events: none;
}
@media (max-width: 780px) { .page-head::after { display: none; } }
.page-head h1 { color: #fff; font-size: var(--step-4); margin-bottom: var(--sp-4); max-width: 20ch; }
.page-head .lede { color: rgba(255, 255, 255, 0.88); }
.page-head .eyebrow { color: var(--amber-400); }

/* Split: copy beside a supporting image */
.split {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
  .split--flip .split__media { order: -1; }
}
.split__media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__copy > *:last-child { margin-bottom: 0; }

/* Pull-quote style caption anchored to an image */
.split__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-4);
  background: linear-gradient(to top, rgba(5, 23, 15, 0.88), transparent);
  color: #fff; font-size: var(--step--1); font-weight: 500;
}

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
}
.stat {
  padding: var(--sp-5) var(--sp-4);
  border-left: 3px solid var(--amber-500);
  background: var(--paper);
}
.section--dark .stat { background: transparent; border-left-color: var(--amber-400); }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--step-4); font-weight: 600; line-height: 1;
  color: var(--green-700); letter-spacing: -0.03em;
  display: block; margin-bottom: var(--sp-2);
}
.section--dark .stat__num { color: var(--amber-400); }
.stat__label {
  font-size: var(--step--1); color: var(--ink-600);
  letter-spacing: 0.04em; line-height: 1.4;
}
.section--dark .stat__label { color: var(--green-100); opacity: 0.85; }

/* --- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-300); }
.card h3 { margin-bottom: var(--sp-3); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 24px; height: 24px; }

/* Goal cards get a numeral above the heading */
.card--numbered { position: relative; }
.card--numbered::before {
  content: attr(data-num);
  display: block;
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--green-300); font-weight: 600; line-height: 1;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}
.section--dark .card--numbered::before { color: var(--amber-400); opacity: 0.75; }

/* --- Team --------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-5) var(--sp-4);
}
.person { text-align: center; }
.person__photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; background: var(--green-50);
  margin-bottom: var(--sp-4); position: relative;
  border: 1px solid var(--ink-200);
}
.person__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.4s var(--ease);
}
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo--placeholder {
  display: grid; place-items: center;
  color: var(--green-400);
  font-family: var(--font-display); font-size: var(--step-3); font-weight: 600;
}
.person__name {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600;
  color: var(--green-950); margin-bottom: 2px; line-height: 1.25;
}
.person__role {
  font-size: var(--step--1); color: var(--green-700); font-weight: 600;
  line-height: 1.4;
}
.person__meta {
  font-size: var(--step--1); color: var(--ink-500); font-style: italic;
  line-height: 1.4;
}

/* --- Projects ----------------------------------------------------------- */
.project {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1fr;
  padding-block: var(--sp-7);
  border-top: 1px solid var(--ink-200);
}
.project:first-of-type { border-top: 0; padding-top: var(--sp-4); }
@media (min-width: 800px) {
  .project { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
  .project--flip .project__media { order: 2; }
}
.project__media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative;
}
.project__media img { width: 100%; }
.project__badge {
  display: inline-block;
  padding: 0.3em 0.9em; border-radius: 999px;
  background: var(--green-50); color: var(--green-700);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.project__stat {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--green-700); font-weight: 600; line-height: 1.1;
  margin-bottom: var(--sp-2);
}

/* Before/after pair */
.ba {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.ba figure { margin: 0; }
.ba img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); width: 100%; }
.ba figcaption {
  margin-top: var(--sp-2);
  font-size: var(--step--1); font-weight: 600;
  color: var(--ink-600); text-align: center;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* Compact project list */
.proj-list { display: grid; gap: var(--sp-3); }
.proj-list__item {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper); border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.proj-list__item:hover { border-color: var(--green-300); transform: translateX(3px); }
.proj-list__name {
  font-family: var(--font-display); font-size: var(--step-1);
  font-weight: 600; color: var(--green-950);
}
.proj-list__desc { color: var(--ink-600); font-size: 0.97rem; }

/* --- Program / detail sections ------------------------------------------ */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative; padding-left: 2rem; margin-bottom: var(--sp-3);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--green-500);
  border-bottom: 2.5px solid var(--green-500);
  transform: rotate(-45deg);
}
.section--dark .checklist li::before {
  border-color: var(--amber-400);
}

.panel {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.panel--amber { background: var(--amber-100); border-color: #f3d9a8; }
.panel h3 { margin-bottom: var(--sp-3); }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.note {
  font-size: var(--step--1); color: var(--ink-500);
  border-left: 2px solid var(--ink-300); padding-left: var(--sp-4);
}

/* --- Partners ----------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-3);
}
.partner {
  padding: var(--sp-4) var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: flex; align-items: center; gap: var(--sp-3);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.partner:hover { border-color: var(--green-300); background: var(--green-50); }
.partner::before {
  content: ""; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber-500);
}

/* --- Gallery ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.gallery__item {
  margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery__item:hover img { transform: scale(1.05); }

/* Lightbox
   The closed dialog must be completely inert. Belt and braces, because a
   single `display` rule going astray leaves the nav buttons floating over the
   page and swallowing clicks:
     1. `display: none` unless [open]
     2. visibility/pointer-events cleared as a backstop
     3. children hidden too, so they cannot paint even if the dialog is shown
   Do not collapse these into one rule. */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 23, 15, 0.94);
  backdrop-filter: blur(8px);
  place-items: center;
  padding: var(--sp-5);
  border: 0;
  max-width: none; max-height: none;   /* override UA dialog sizing */
  width: 100%; height: 100%;
}
.lightbox:not([open]) {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
.lightbox:not([open]) > * { display: none !important; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(5, 23, 15, 0.9); }
.lightbox img {
  max-width: 100%; max-height: 85dvh;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s var(--ease);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__nav--prev { left: var(--sp-5); }
.lightbox__nav--next { right: var(--sp-5); }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: var(--sp-2); }
  .lightbox__nav--next { right: var(--sp-2); }
}

/* --- Contact / form ----------------------------------------------------- */
.contact-grid {
  display: grid; gap: var(--sp-7);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.contact-item {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  margin-bottom: var(--sp-5);
}
.contact-item__icon {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label {
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500); margin-bottom: 2px;
}
.contact-item__value { font-weight: 500; color: var(--ink-900); }
.contact-item__value a { color: var(--green-700); }

.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink-900); }
.field .req { color: var(--amber-600); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink-900);
  padding: 0.8em 1em;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form__status {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm);
  font-weight: 500; display: none;
}
.form__status.is-ok {
  display: block; background: var(--green-50);
  border: 1px solid var(--green-300); color: var(--green-800);
}
.form__status.is-err {
  display: block; background: #fdeceb;
  border: 1px solid #f3b8b4; color: #8f2a23;
}

.map-embed {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--ink-200); box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9; background: var(--green-50);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- CTA band ----------------------------------------------------------- */
.cta {
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(217, 139, 31, 0.18), transparent 60%),
    linear-gradient(135deg, var(--green-800), var(--green-950));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, var(--sp-8));
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.88); max-width: 52ch; margin-inline: auto; }
.cta__actions {
  display: flex; gap: var(--sp-3); justify-content: center;
  flex-wrap: wrap; margin-top: var(--sp-6);
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--green-950); color: rgba(255, 255, 255, 0.72);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: 0.95rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--amber-400); text-decoration: underline; }
.footer-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom: var(--sp-7);
}
.footer-grid h4 {
  color: #fff; font-family: var(--font-body);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--sp-3); }
.footer__brand img {
  height: 52px; width: auto; margin-bottom: var(--sp-4);
  filter: brightness(0) invert(1); opacity: 0.92;
}
.footer__tagline { max-width: 30ch; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between; align-items: center;
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.55);
}
/* Build credit — subordinate to the copyright it sits beside */
.footer-credit {
  display: inline-block;
  margin-left: var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.42);
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer-credit a:hover { color: var(--amber-400); text-decoration: underline; }
@media (max-width: 560px) {
  /* Stack rather than crowd the copyright on narrow screens */
  .footer-credit {
    display: block;
    margin-left: 0; padding-left: 0;
    border-left: 0;
    margin-top: var(--sp-2);
  }
}

.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { background: var(--green-700); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* --- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--sp-6); }
.stack > * + * { margin-top: var(--sp-5); }
.section-head { max-width: 60ch; margin-bottom: var(--sp-7); }
.section-head.text-center { margin-inline: auto; }

/* Two-column head: title left, supporting lede right */
.section-head--wide {
  max-width: none;
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--wide {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--sp-8);
  }
}

@media print {
  .site-header, .nav-toggle, .cta, .hero__actions, .footer-social { display: none; }
  body { color: #000; }
}
