/* ==========================================================================
   Ethossolve Management — Design Tokens
   ========================================================================== */
:root {
  /* Brand colors (from logo) */
  --navy-950: #081326;
  --navy-900: #0a1b33;
  --navy-800: #0e2444;
  --navy-700: #16345f;
  --navy-600: #22467c;
  --gold-300: #e6cf9a;
  --gold-400: #d6b877;
  --gold-500: #c9a15a;
  --gold-600: #b0873f;
  --gold-700: #8f6c30;
  --cream: #f8f6f1;
  --cream-dark: #f0ebe0;
  --white: #ffffff;
  --ink-900: #14181f;
  --ink-700: #333944;
  --ink-600: #545b67;
  --ink-400: #8992a0;
  --line: #e4e1d8;
  --line-dark: #2a3550;
  --success: #2e7d4f;
  --error: #b3432b;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  /* Spacing (8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(10, 27, 51, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 27, 51, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 27, 51, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-700);
  background:
    radial-gradient(circle, rgba(10,27,51,0.05) 1px, transparent 1px) 0 0/26px 26px,
    var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: var(--text-base); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold-500);
}
.section { padding: var(--space-7) 0; }
.section--cream {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.section--cream::before {
  content: "";
  position: absolute; top: -18%; right: -8%;
  width: 46%; max-width: 620px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,161,90,0.4), rgba(201,161,90,0.08) 60%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}
.section--cream::after {
  content: "";
  position: absolute; bottom: -22%; left: -8%;
  width: 38%; max-width: 520px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(10,27,51,0.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.section--cream > .container { position: relative; z-index: 1; }
.section--navy { background: var(--navy-900); color: var(--gold-300); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .card h2, .section--navy .card h3 { color: var(--navy-900); }

.section--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.section--gold h2, .section--gold h3 { color: var(--navy-950); }
.section--gold .kicker { color: var(--navy-900); }
.section--gold .kicker::before { background: var(--navy-900); }
.section--gold .card .kicker { color: var(--gold-500); }
.section--gold .card .kicker::before { background: var(--gold-500); }

.section--glow { position: relative; }
.section--glow::before,
.section--glow::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.section--glow::before {
  top: -140px; right: -160px;
  background: radial-gradient(circle, rgba(201,161,90,0.14), transparent 70%);
}
.section--glow::after {
  bottom: -160px; left: -180px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(10,27,51,0.07), transparent 70%);
}
.section--glow > .container { position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow-gold { color: var(--gold-500); font-style: italic; }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-5); }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-600); box-shadow: var(--shadow-sm); }
.btn-outline-dark {
  background: rgba(10, 27, 51, 0.55);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-dark:hover { background: var(--navy-800); border-color: var(--navy-800); }
.btn-outline-gold { background: transparent; color: var(--gold-600); border-color: var(--gold-500); }
.btn-outline-gold:hover { background: var(--gold-500); color: var(--navy-950); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.link-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-600);
  font-weight: 600;
  font-size: var(--text-sm);
  border-bottom: 1.5px solid var(--gold-400);
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-gold:hover { gap: 0.65rem; color: var(--gold-700); }
.link-gold svg { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-2) 0;
  background: linear-gradient(180deg, rgba(8, 19, 38, 0.65) 0%, rgba(8, 19, 38, 0.35) 65%, rgba(8, 19, 38, 0) 100%);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  padding: var(--space-1) 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.brand img { height: 58px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  position: relative;
  opacity: 0.92;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transition: right var(--dur) var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

/* Services dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-services-trigger { display: flex; align-items: center; gap: 0.3rem; }
.nav-services-trigger svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav-item:hover .nav-services-trigger svg,
.nav-item:focus-within .nav-services-trigger svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 0.6rem;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 0.9rem;
  color: var(--navy-900) !important;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  opacity: 1 !important;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: var(--cream); color: var(--gold-700) !important; }

@media (max-width: 860px) {
  .nav-links.open .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-links.open .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; padding: 0.25rem 0 0 1rem; margin-top: 0.5rem;
    display: flex; flex-direction: column; gap: 0.6rem;
  }
  .nav-links.open .nav-dropdown a {
    color: rgba(255,255,255,0.75) !important;
    font-size: var(--text-base);
    padding: 0;
  }
  .nav-links.open .nav-dropdown a:hover { background: none; color: var(--gold-400) !important; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--white);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-header {
  position: relative;
  padding: 9.5rem 0 var(--space-6);
  background-color: var(--navy-950);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(8,19,38,0.94), rgba(14,36,68,0.88));
}
.page-header::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(201, 161, 90, 0.22), transparent 55%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header__portrait-wrap {
  position: absolute;
  right: 23%;
  bottom: 0;
  height: 78%;
  aspect-ratio: 449 / 556;
  max-width: 32%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}
.page-header__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.15);
  transform-origin: top center;
  display: block;
}
@media (max-width: 860px) {
  .page-header__portrait-wrap { display: none; }
}
.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-300); margin-bottom: var(--space-2);
}
.breadcrumb a { color: var(--gold-300); opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }
.page-header h1 { color: var(--white); font-size: var(--text-4xl); max-width: 720px; }
.page-header p.lede { margin-top: var(--space-2); max-width: 620px; color: rgba(255,255,255,0.78); font-size: var(--text-lg); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,19,38,0.92) 10%, rgba(8,19,38,0.68) 45%, rgba(8,19,38,0.4) 75%);
}
.hero__content { position: relative; max-width: 640px; padding-top: var(--space-6); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, var(--text-5xl));
  margin: var(--space-2) 0 var(--space-3);
}
.hero h1 em { color: var(--gold-400); font-style: italic; }
.hero p.lede { font-size: var(--text-lg); color: rgba(255,255,255,0.85); max-width: 520px; margin-bottom: var(--space-4); }
.hero .cta-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* stats strip */
.stats-strip {
  background: linear-gradient(115deg, var(--navy-950) 0%, var(--navy-800) 30%, var(--navy-600) 60%, var(--navy-800) 85%, var(--navy-950) 100%);
  color: var(--white);
  padding: var(--space-5) 0;
  position: relative;
  border-top: 3px solid var(--gold-500);
  border-bottom: 3px solid var(--gold-500);
}
.stats-strip .grid-3, .stats-strip .grid-4 { text-align: center; position: relative; z-index: 1; }
.stat {
  position: relative;
  padding: var(--space-2) var(--space-1);
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%; right: 0; bottom: 10%;
  width: 1px;
  background: rgba(201,161,90,0.25);
}
.stat b { display: block; font-family: var(--font-display); font-size: var(--text-3xl); color: var(--gold-400); }
.stat span { font-size: var(--text-sm); color: rgba(255,255,255,0.7); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(10, 27, 51, 0.05);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card { padding: var(--space-4); position: relative; }
.service-card::before {
  content: "";
  position: absolute; top: 0; left: var(--radius-md); right: var(--radius-md); height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 0 0 3px 3px;
}
.service-card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: var(--radius-sm);
  color: var(--navy-950);
  margin-bottom: var(--space-3);
  box-shadow: 0 6px 16px rgba(201,161,90,0.35);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: var(--text-xl); margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-600); font-size: var(--text-sm); }
.service-card .link-gold { margin-top: var(--space-2); }

.duty-item { text-align: left; }
.duty-icon { display: block; width: 44px; height: 44px; margin-bottom: var(--space-3); }
.duty-icon svg { width: 100%; height: 100%; display: block; }
.duty-q {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  cursor: pointer;
}
.duty-toggle {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  color: var(--gold-600);
}
.duty-toggle svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.duty-item[data-open="true"] .duty-toggle svg { transform: rotate(45deg); }
.duty-item h3 { margin-bottom: 0; padding-right: 2.4rem; }
.duty-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.duty-a p { padding-top: var(--space-2); color: var(--ink-600); font-size: var(--text-sm); }

.news-card__img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.news-card__body { padding: var(--space-3); }
.news-meta { display: flex; gap: 0.6rem; align-items: center; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-600); font-weight: 600; margin-bottom: 0.6rem; }
.news-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-400); }
.news-card h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; }
.news-card p { color: var(--ink-600); font-size: var(--text-sm); }

.team-card { text-align: left; padding: var(--space-3); }
.team-card__photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-3); background: var(--cream); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: var(--text-lg); margin-bottom: 0.15rem; }
.team-card .role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-600); font-weight: 600; margin-bottom: 0.6rem; display: block; }
.team-card p { color: var(--ink-600); font-size: var(--text-sm); }

.portfolio-card { overflow: hidden; }
.portfolio-card__img { aspect-ratio: 2.6/1; background-size: cover; background-position: center; }
.portfolio-card__body { padding: var(--space-3); }
.portfolio-card h3 { font-size: var(--text-lg); margin-bottom: 0.3rem; }
.portfolio-card .addr { font-size: var(--text-sm); color: var(--ink-600); margin-bottom: var(--space-2); }
.portfolio-card .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--space-2); }
.portfolio-card .tags span { font-size: var(--text-xs); font-weight: 600; background: rgba(201,161,90,0.16); color: var(--gold-700); padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); }
.portfolio-card .proj { font-size: var(--text-xs); color: var(--ink-600); line-height: 1.6; }
.portfolio-card .proj strong { color: var(--navy-900); }

.value-card { text-align: left; padding: var(--space-3); }
.value-card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--navy-700), var(--navy-950)); color: var(--gold-400); margin-bottom: var(--space-2); box-shadow: 0 0 0 4px rgba(201,161,90,0.14); }
.value-card__icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.value-card p { color: var(--ink-600); font-size: var(--text-sm); }

/* split section (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.split__media { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media.accent::before {
  content: "";
  position: absolute; inset: -16px auto auto -16px;
  width: 60%; height: 60%;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-md);
  z-index: -1;
}
.split ul.check-list { margin-top: var(--space-3); display: grid; gap: 0.75rem; }
.split ul.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-700); font-size: var(--text-sm); }
.split ul.check-list svg { flex: none; width: 20px; height: 20px; color: var(--gold-600); margin-top: 1px; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 8px, transparent 8px 18px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 var(--space-2); }
.step__badge {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  border: 3px solid var(--cream);
  box-shadow: 0 8px 20px rgba(10, 27, 51, 0.25);
}
.step h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.step p { color: var(--ink-600); font-size: var(--text-sm); }
@media (max-width: 860px) {
  .steps::before { display: none; }
}

/* Matrix advantage cards */
.matrix-card {
  text-align: left;
  padding: var(--space-4);
}
.matrix-card__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.matrix-card__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-950);
  box-shadow: 0 6px 14px rgba(201, 161, 90, 0.35);
}
.matrix-card__icon svg { width: 20px; height: 20px; }
.matrix-card h3 { font-size: var(--text-lg); margin-bottom: 0; }
.matrix-card .tag {
  display: block;
  color: var(--gold-600);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.matrix-card p { color: var(--ink-600); font-size: var(--text-sm); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,19,38,0.88), rgba(8,19,38,0.72));
  z-index: 1;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(201,161,90,0.25), transparent 60%);
  z-index: 1;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band > video.cta-band__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .cta-band > video.cta-band__video { display: none; }
}
.cta-band h2 { color: var(--white); font-size: var(--text-3xl); max-width: 480px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 0.5rem; max-width: 460px; }

/* testimonial */
.testimonial {
  max-width: 780px; margin: 0 auto; text-align: center;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -3.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 9rem;
  line-height: 1;
  color: rgba(201,161,90,0.18);
  pointer-events: none;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--navy-900);
  margin: 0 0 var(--space-3);
  line-height: 1.4;
  position: relative;
}
.testimonial cite { font-style: normal; font-size: var(--text-sm); color: var(--ink-600); font-weight: 600; }
.section--navy .testimonial::before { color: rgba(201,161,90,0.3); }
.section--navy .testimonial blockquote { color: var(--white); }
.section--navy .testimonial cite { color: rgba(255,255,255,0.65); }
.stars { display: flex; gap: 4px; justify-content: center; margin-bottom: var(--space-3); color: var(--gold-500); }
.stars svg { width: 18px; height: 18px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--navy-900); }
.field .required { color: var(--gold-600); }
.field input,
.field select,
.field textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  min-height: 48px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,161,90,0.2);
  outline: none;
}
.field .help { font-size: var(--text-xs); color: var(--ink-400); }
.field .error-msg { font-size: var(--text-xs); color: var(--error); display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field.has-error .error-msg { display: block; }

.form-status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}
.form-status.show { display: flex; }
.form-status.success { background: #e9f5ee; color: var(--success); border: 1px solid #bfe3cd; }
.form-status.error { background: #fbe9e5; color: var(--error); border: 1px solid #f1c3b6; }

/* Contact info card */
.info-card { background: var(--navy-900); color: var(--white); border-radius: var(--radius-md); padding: var(--space-4); }
.info-card h3 { color: var(--white); font-size: var(--text-lg); margin-bottom: var(--space-3); }
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: var(--space-3); }
.info-row svg { width: 22px; height: 22px; color: var(--gold-400); flex: none; margin-top: 2px; }
.info-row .label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-300); margin-bottom: 0.2rem; }
.info-row a, .info-row span { font-size: var(--text-sm); color: rgba(255,255,255,0.9); }
.social-row { display: flex; gap: 0.6rem; margin-top: var(--space-3); }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: var(--white);
  transition: background var(--dur) var(--ease);
}
.social-row a:hover { background: var(--gold-500); color: var(--navy-950); }
.social-row svg { width: 18px; height: 18px; }

.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Residents portal
   ========================================================================== */
.portal-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.resource-list { display: grid; gap: 0.75rem; }
.resource-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.resource-item:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.resource-item .left { display: flex; gap: 0.9rem; align-items: center; }
.resource-item .left svg { width: 24px; height: 24px; color: var(--gold-600); flex: none; }
.resource-item h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 600; color: var(--navy-900); }
.resource-item p { font-size: var(--text-xs); color: var(--ink-600); }

.emergency-banner {
  display: flex; align-items: center; gap: var(--space-3);
  background: linear-gradient(135deg, #7a2c1c, #b3432b);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  flex-wrap: wrap;
}
.emergency-banner svg { width: 32px; height: 32px; flex: none; }
.emergency-banner strong { display: block; font-size: var(--text-lg); }
.emergency-banner span { font-size: var(--text-sm); color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Newsletter hero
   ========================================================================== */
.newsletter-hero {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: linear-gradient(115deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}
.newsletter-hero__icon {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-hero__icon svg { width: 44px; height: 44px; color: var(--navy-950); }
.newsletter-hero__content h2 { font-size: var(--text-2xl); margin: 0.4rem 0 0.7rem; color: var(--white); }
.newsletter-hero__content p { color: rgba(255, 255, 255, 0.78); margin-bottom: var(--space-3); max-width: 60ch; }
@media (max-width: 720px) {
  .newsletter-hero { flex-direction: column; text-align: center; padding: var(--space-4); }
  .newsletter-hero__content p { max-width: none; }
}

/* ==========================================================================
   Upcoming events
   ========================================================================== */
.event-list { display: flex; flex-direction: column; gap: var(--space-3); }
.event-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.event-item:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.event-date {
  flex: none;
  width: 68px;
  text-align: center;
  background: var(--navy-950);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.4rem;
}
.event-date .day { display: block; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1; color: var(--gold-400); }
.event-date .month { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; color: var(--white); }
.event-item__body { flex: 1; }
.event-item__body h3 { font-size: var(--text-lg); margin-bottom: 0.3rem; }
.event-item__body p { color: var(--ink-600); font-size: var(--text-sm); }
.event-item__meta { font-size: var(--text-xs); color: var(--gold-600); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.5rem; display: flex; gap: 0.5rem; align-items: center; }
.event-item__meta svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .event-item { flex-wrap: wrap; }
  .event-item .btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-3) 0;
  background: none; border: none;
  font-family: var(--font-body); font-weight: 600; color: var(--navy-900); font-size: var(--text-base);
  min-height: 44px;
}
.faq-q svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; transition: transform var(--dur) var(--ease); }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-a p { padding-bottom: var(--space-3); color: var(--ink-600); font-size: var(--text-sm); max-width: 680px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: var(--space-6) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 44px; margin-bottom: var(--space-2); }
.footer-brand p { font-size: var(--text-sm); max-width: 280px; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-2); }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: var(--text-sm); color: rgba(255,255,255,0.65); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-3); font-size: var(--text-xs); color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: var(--space-2); }
.footer-bottom .social-row a { width: 36px; height: 36px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

.nav-cta-mobile { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-gold { padding: 0.7rem 1.1rem; font-size: var(--text-xs); }

  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 6.5rem var(--space-4) var(--space-4);
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav-links.open a { font-size: var(--text-lg); }
  .nav-links.open .nav-cta-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-2);
    width: 100%;
    background: var(--gold-500);
    color: var(--navy-950);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-sm) !important;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 520px) {
  .header-actions .btn-gold { display: none; }
}

@media (max-width: 768px) {
  .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split__media { order: -1; }

  .cta-band { flex-direction: column; align-items: flex-start; }

  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --space-7: 3.5rem; --space-8: 5rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero__content { padding-top: var(--space-7); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-header { padding: 7.5rem 0 var(--space-4); }
  .page-header h1 { font-size: var(--text-3xl); }
}

/* nav-overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(8,19,38,0.5);
  z-index: 90;
}
.nav-overlay.show { display: block; }
