/* ============================================================
   Locate Cyprus — Design Tokens & Components
   ============================================================ */

:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.3rem;
  --radius-md: 0.55rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.4rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* ---------- LIGHT MODE (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #fbf7ee;
  --color-surface: #ffffff;
  --color-surface-2: #fdfbf5;
  --color-surface-offset: #f2ebda;
  --color-surface-offset-2: #ece0c8;
  --color-surface-dynamic: #e7dabd;
  --color-divider: #e2d5b8;
  --color-border: #d8c8a4;

  --color-text: #1c2731;
  --color-text-muted: #5c6a64;
  --color-text-faint: #97a196;
  --color-text-inverse: #fbf7ee;

  /* Primary — Harbour Navy (from logo) */
  --color-primary: #163e72;
  --color-primary-hover: #0f2c52;
  --color-primary-active: #0a1f3b;
  --color-primary-highlight: #dbe5ef;

  /* Accent — Aegean Gold (CTA color, from logo) */
  --color-accent: #cd973d;
  --color-accent-hover: #b37f2c;
  --color-accent-active: #8f6520;
  --color-accent-highlight: #f5e8cc;

  /* Secondary — Olive Sage (from logo) */
  --color-secondary: #707d69;
  --color-secondary-hover: #5b6656;
  --color-secondary-active: #454e42;
  --color-secondary-highlight: #e6e9df;

  --color-success: #3f6f3c;
  --color-success-highlight: #dde7da;
  --color-warning: #a15b21;
  --color-warning-highlight: #ecdac6;
  --color-error: #9c3b3b;
  --color-error-highlight: #ecd7d5;

  --shadow-sm: 0 1px 2px oklch(0.3 0.03 60 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.3 0.03 60 / 0.10);
  --shadow-lg: 0 18px 42px oklch(0.3 0.03 60 / 0.16);
}

/* ---------- DARK MODE ---------- */
[data-theme='dark'] {
  --color-bg: #0c1a28;
  --color-surface: #12233590;
  --color-surface: #122335;
  --color-surface-2: #152a40;
  --color-surface-offset: #1a3350;
  --color-surface-offset-2: #1f3d5e;
  --color-surface-dynamic: #24466b;
  --color-divider: #24435f;
  --color-border: #2c4d6c;

  --color-text: #ece6d6;
  --color-text-muted: #a7b6c0;
  --color-text-faint: #6d8294;
  --color-text-inverse: #0c1a28;

  --color-primary: #86b3e3;
  --color-primary-hover: #a5c7ea;
  --color-primary-active: #c3daf1;
  --color-primary-highlight: #1c3550;

  --color-accent: #e6b262;
  --color-accent-hover: #eec284;
  --color-accent-active: #f5d5a5;
  --color-accent-highlight: #3a2e1a;

  --color-secondary: #a2b199;
  --color-secondary-hover: #b6c3ae;
  --color-secondary-active: #cad4c4;
  --color-secondary-highlight: #26301f;

  --color-success: #7fb37a;
  --color-success-highlight: #223626;
  --color-warning: #d99a5c;
  --color-warning-highlight: #3a2c1c;
  --color-error: #d38080;
  --color-error-highlight: #3a2323;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 42px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0c1a28;
    --color-surface: #122335;
    --color-surface-2: #152a40;
    --color-surface-offset: #1a3350;
    --color-surface-offset-2: #1f3d5e;
    --color-surface-dynamic: #24466b;
    --color-divider: #24435f;
    --color-border: #2c4d6c;
    --color-text: #ece6d6;
    --color-text-muted: #a7b6c0;
    --color-text-faint: #6d8294;
    --color-text-inverse: #0c1a28;
    --color-primary: #86b3e3;
    --color-primary-hover: #a5c7ea;
    --color-primary-active: #c3daf1;
    --color-primary-highlight: #1c3550;
    --color-accent: #e6b262;
    --color-accent-hover: #eec284;
    --color-accent-active: #f5d5a5;
    --color-accent-highlight: #3a2e1a;
    --color-secondary: #a2b199;
    --color-secondary-hover: #b6c3ae;
    --color-secondary-active: #cad4c4;
    --color-secondary-highlight: #26301f;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 18px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 18px 42px oklch(0 0 0 / 0.5);
  }
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.wrap--narrow {
  max-width: var(--content-default);
}
.wrap--prose {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
section.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 999;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ============================================================
   Typography
   ============================================================ */

h1, .h1 {
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-size: var(--text-xl);
  font-weight: 500;
}
h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
}
p {
  color: var(--color-text);
}
.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-active);
}
[data-theme='dark'] .eyebrow { color: var(--color-accent); }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-hover); }

.text-muted { color: var(--color-text-muted); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-full);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #2a1c05;
}
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--primary:active { background: var(--color-accent-active); }

.btn--ghost {
  background: transparent;
  border-color: color-mix(in oklab, var(--color-text) 25%, transparent);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-text);
  background: color-mix(in oklab, var(--color-text) 6%, transparent);
}

.btn--on-dark {
  background: var(--color-accent);
  color: #241a04;
}
.btn--on-dark.btn--outline {
  background: transparent;
  border-color: color-mix(in oklab, #fff 45%, transparent);
  color: #fff;
}
.btn--outline:hover { background: color-mix(in oklab, #fff 12%, transparent); }

.btn--sm { padding: 0.6em 1.2em; font-size: var(--text-xs); min-height: 36px; }
.btn--block { width: 100%; }

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--color-border) 60%, transparent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.site-header--hidden { transform: translateY(-100%); }
.site-header--scrolled { box-shadow: var(--shadow-sm); }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.brand img { height: 42px; width: auto; }
.site-header .brand img {
  width: clamp(150px, 16vw, 190px);
  height: auto;
}
@media (max-width: 620px) {
  .site-header .brand img { width: 150px; }
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
}
.brand-name em {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-top: 3px;
}

.main-nav { display: none; }
.nav-actions { display: none; }

@media (min-width: 1000px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
  }
  .nav-actions { display: flex; align-items: center; gap: var(--space-3); }
  .mobile-toggle { display: none; }
}

.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
}
.nav-link:hover { color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 7%, transparent); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition-interactive); }
.nav-item:hover .nav-link svg,
.nav-item.open .nav-link svg { transform: rotate(180deg); }
.nav-link[aria-current="page"] { color: var(--color-primary); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-interactive), transform var(--transition-interactive), visibility var(--transition-interactive);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
}
.dropdown a:hover { background: var(--color-surface-offset); color: var(--color-primary); }
.dropdown a span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.mobile-toggle:hover { background: var(--color-surface-offset); }
@media (min-width: 1000px) { .mobile-toggle { display: none; } }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { background: var(--color-surface-offset); }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--color-bg);
  z-index: 200;
  overflow-y: auto;
  padding: var(--space-6) var(--space-5) var(--space-16);
}
.mobile-nav.open { display: block; }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.mobile-nav ul { list-style: none; }
.mobile-nav > .wrap > ul > li { border-bottom: 1px solid var(--color-divider); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.mobile-sub {
  display: none;
  padding-bottom: var(--space-4);
}
.mobile-sub.open { display: block; }
.mobile-sub a {
  display: block;
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.mobile-nav-cta { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
@media (min-width: 1000px) { .mobile-nav { display: none !important; } }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.12 0.04 250 / 0.35) 0%, oklch(0.1 0.04 250 / 0.55) 55%, oklch(0.08 0.03 250 / 0.88) 100%);
}
.hero-content { padding-block: clamp(var(--space-16), 12vw, var(--space-32)) clamp(var(--space-10), 6vw, var(--space-16)); }
.hero .eyebrow { color: var(--color-accent); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: color-mix(in oklab, #fff 88%, transparent); max-width: 58ch; margin-top: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
  padding-block: clamp(var(--space-24), 16vw, var(--space-32)) clamp(var(--space-10), 6vw, var(--space-14));
}
.page-hero .hero-bg::after {
  background: linear-gradient(140deg, oklch(0.14 0.05 250 / 0.82) 10%, oklch(0.16 0.03 250 / 0.55) 100%);
}
.page-hero .eyebrow { color: var(--color-accent); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lede { color: color-mix(in oklab, #fff 88%, transparent); margin-top: var(--space-4); max-width: 60ch; }
.breadcrumb { font-size: var(--text-xs); color: color-mix(in oklab, #fff 75%, transparent); margin-bottom: var(--space-4); }
.breadcrumb a { color: color-mix(in oklab, #fff 75%, transparent); }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   No-fee banner
   ============================================================ */

.pledge-band {
  background: var(--color-primary);
  color: #fff;
}
[data-theme='dark'] .pledge-band { background: var(--color-surface-offset); }
.pledge-band .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-8);
}
.pledge-icon {
  width: 56px;
  height: 56px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.pledge-band h2, .pledge-band p { color: #fff; }
.pledge-band .lede { color: color-mix(in oklab, #fff 85%, transparent); margin: var(--space-2) 0 0; }
@media (max-width: 780px) {
  .pledge-band .wrap { grid-template-columns: auto 1fr; }
  .pledge-band .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ============================================================
   Cards & grids
   ============================================================ */

.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}
.icon { width: 40px; height: 40px; color: var(--color-primary); flex-shrink: 0; }
[data-theme='dark'] .icon { color: var(--color-accent); }
.service-card .icon { width: 34px; height: 34px; }
.service-card h3 { font-size: var(--text-lg); }
.service-card p { color: var(--color-text-muted); font-size: var(--text-sm); flex-grow: 1; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.service-card ul li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-left: var(--space-5);
  position: relative;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.service-card .card-link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
}
[data-theme='dark'] .service-card .card-link { color: var(--color-accent); }

.stat-card {
  border-left: none;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-divider);
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  display: block;
}
[data-theme='dark'] .stat-card .num { color: var(--color-accent); }
.stat-card p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-1); }

/* Location cards */
.location-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.location-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.location-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, oklch(0.1 0.04 250 / 0.85) 100%);
  z-index: -1;
}
.location-card .loc-body { padding: var(--space-6); }
.location-card h3 { color: #fff; font-size: var(--text-lg); }
.location-card p { color: color-mix(in oklab, #fff 85%, transparent); font-size: var(--text-sm); margin-top: var(--space-1); }

/* Process steps */
.steps { list-style: none; display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.steps li:last-child { border-bottom: 1px solid var(--color-divider); }
.step-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent-active);
  background: var(--color-accent-highlight);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
[data-theme='dark'] .step-num { color: var(--color-accent); }
.step h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-1); }

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media { border-radius: var(--radius-xl); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Callout / quote */
.callout {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.callout blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 60ch;
}
.callout cite { display: block; margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); font-style: normal; }

/* Accordion (FAQ) */
.accordion-item {
  border-bottom: 1px solid var(--color-divider);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: left;
  padding-block: var(--space-5);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}
.accordion-trigger svg { flex-shrink: 0; width: 18px; height: 18px; transition: transform var(--transition-interactive); color: var(--color-primary); }
[data-theme='dark'] .accordion-trigger svg { color: var(--color-accent); }
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-panel > div { padding-bottom: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); max-width: 68ch; }

/* Badges / tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--color-secondary-highlight);
  color: var(--color-secondary-active);
}
[data-theme='dark'] .tag { color: var(--color-secondary); }

/* Table */
.data-table { border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; }
.data-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.data-table th, .data-table td { text-align: left; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-divider); }
.data-table th { background: var(--color-surface-offset); font-weight: 700; font-family: var(--font-body); }
.data-table tr:last-child td { border-bottom: none; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.contact-layout { grid-template-columns: 1.4fr 1fr; }
.contact-layout > * { min-width: 0; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.field input, .field select, .field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.checkbox-row { display: flex; align-items: flex-start; gap: var(--space-3); }
.checkbox-row input { min-height: auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--color-primary); }
.checkbox-row label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; }
.honeypot { position: absolute; left: -9999px; }

.form-status {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-top: var(--space-5);
}
.form-status.show { display: block; }
.form-status.success { background: var(--color-success-highlight); color: var(--color-success); }
.form-status.error { background: var(--color-error-highlight); color: var(--color-error); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-primary-active);
  color: color-mix(in oklab, #fff 82%, transparent);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-8);
}
[data-theme='dark'] .site-footer { background: #081422; }
.site-footer a { color: color-mix(in oklab, #fff 88%, transparent); }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom p { color: inherit; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; margin-bottom: var(--space-4); filter: brightness(0) invert(1); }
.footer-brand p { color: color-mix(in oklab, #fff 65%, transparent); font-size: var(--text-sm); max-width: 32ch; }
.footer-col h4 { font-family: var(--font-body); color: #fff; font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul li { font-size: var(--text-sm); }
.footer-legal-lines { font-size: var(--text-xs); color: color-mix(in oklab, #fff 55%, transparent); line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid color-mix(in oklab, #fff 14%, transparent);
  font-size: var(--text-xs);
  color: color-mix(in oklab, #fff 55%, transparent);
}
.footer-bottom nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.social-row { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in oklab, #fff 22%, transparent);
  border-radius: 50%;
}
.social-row a:hover { border-color: var(--color-accent); }
.social-row svg { width: 16px; height: 16px; }

/* ============================================================
   Utility
   ============================================================ */

.center { text-align: center; margin-inline: auto; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(var(--space-8), 5vw, var(--space-14)); }
.section-head.center { max-width: 46ch; }
.bg-offset { background: var(--color-surface-offset); }
.bg-surface { background: var(--color-surface); }
.divider { border: none; border-top: 1px solid var(--color-divider); margin-block: var(--space-8); }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in-view { opacity: 1; transform: none; }
}
