/* ============================================
   VITAL HEALTH v3 — Design Tokens & Styles
   Warm, premium, physician-facing
   ============================================ */

/* --- FONTS --- */
/* Instrument Serif for editorial headlines + DM Sans for clean body */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --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.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7rem);

  /* Spacing */
  --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;

  /* WARM COLOR PALETTE — Cream, Sand, Charcoal, Copper */
  --color-bg:          #FAF7F2;
  --color-surface:     #F5F0E8;
  --color-surface-2:   #EDE7DC;
  --color-border:      #D4CFC5;
  --color-divider:     #E2DDD4;

  --color-text:        #2C2A25;
  --color-text-muted:  #6B6860;
  --color-text-faint:  #A09D96;

  --color-accent:      #B77848;
  --color-accent-hover:#9A6038;
  --color-accent-light: rgba(183, 120, 72, 0.1);

  --color-teal:        #1A7F8F;
  --color-teal-hover:  #145F6B;
  --color-teal-light:  rgba(26, 127, 143, 0.08);

  --color-charcoal:    #363330;
  --color-cream:       #FFFCF7;
  --color-sand:        #F0E9DD;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 42, 37, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 42, 37, 0.08);
  --shadow-lg: 0 12px 40px rgba(44, 42, 37, 0.12);
  --shadow-xl: 0 24px 64px rgba(44, 42, 37, 0.16);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1200px;
  --content-full: 1400px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--content-full);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav-logo-text span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 450;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--color-charcoal);
  color: var(--color-cream) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 100px var(--space-8) var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px var(--space-6) var(--space-12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 247, 242, 0.92) 0%,
    rgba(250, 247, 242, 0.82) 40%,
    rgba(250, 247, 242, 0.55) 70%,
    rgba(250, 247, 242, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  max-width: 14ch;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.5;
  margin-bottom: var(--space-8);
  font-weight: 350;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: #fff;
  color: var(--color-charcoal);
}

.btn-white:hover {
  background: var(--color-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn svg {
  width: 16px;
  height: 16px;
}


/* ============================================
   METRICS BAR
   ============================================ */

.metrics-bar {
  background: var(--color-charcoal);
  padding: var(--space-10) var(--space-6);
}

.metrics-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-cream);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.metric-label {
  font-size: var(--text-xs);
  color: rgba(255,252,247,0.6);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}


/* ============================================
   SECTION LAYOUT
   ============================================ */

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}

.section-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.section-default {
  max-width: var(--content-default);
  margin: 0 auto;
}

.section-wide {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-full {
  max-width: var(--content-full);
  margin: 0 auto;
}

.section-dark {
  background: var(--color-charcoal);
  color: var(--color-cream);
}

.section-sand {
  background: var(--color-sand);
}

.section-surface {
  background: var(--color-surface);
}

.section-header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-top: var(--space-4);
  line-height: 1.6;
}


/* ============================================
   HOW IT WORKS STEPS
   ============================================ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.step-card {
  background: var(--color-cream);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-divider);
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent-light);
  color: rgba(183, 120, 72, 0.15);
  line-height: 1;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}


/* ============================================
   REVENUE CALCULATOR
   ============================================ */

.revenue-section {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2C3530 100%);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  margin-top: var(--space-12);
  color: var(--color-cream);
  overflow: hidden;
  position: relative;
}

.revenue-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(183,120,72,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.revenue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.revenue-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.revenue-subtitle {
  font-size: var(--text-base);
  color: rgba(255,252,247,0.7);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.revenue-display {
  text-align: center;
}

.revenue-patients-label {
  font-size: var(--text-sm);
  color: rgba(255,252,247,0.6);
  margin-bottom: var(--space-2);
}

.revenue-slider-container {
  margin-bottom: var(--space-6);
}

.revenue-patient-count {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-cream);
  margin-bottom: var(--space-4);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,252,247,0.2);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid var(--color-cream);
}

.revenue-amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.revenue-per-year {
  font-size: var(--text-sm);
  color: rgba(255,252,247,0.6);
}

.revenue-codes {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.revenue-code {
  background: rgba(255,252,247,0.08);
  border: 1px solid rgba(255,252,247,0.15);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(255,252,247,0.7);
}

@media (max-width: 768px) {
  .revenue-grid { grid-template-columns: 1fr; }
}


/* ============================================
   PATIENT SECTION
   ============================================ */

.patient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.patient-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.patient-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.patient-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.patient-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.patient-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.patient-feature h4 {
  font-size: var(--text-base);
  font-weight: 550;
  margin-bottom: var(--space-1);
}

.patient-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .patient-grid { grid-template-columns: 1fr; }
}


/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial-section {
  text-align: center;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
  background: var(--color-surface);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 auto var(--space-6);
  color: var(--color-text);
}

.testimonial-author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


/* ============================================
   OFFICE / SOCIAL PROOF
   ============================================ */

.office-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.office-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.office-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-image-large {
  aspect-ratio: 16/10;
}

.office-image-small {
  aspect-ratio: 3/4;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.credential-card {
  background: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
}

.credential-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.credential-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.credential-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .office-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; }
}


/* ============================================
   VISION EXPANSION
   ============================================ */

.vision-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.vision-node {
  background: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 450;
  white-space: nowrap;
}

.vision-node.active {
  background: var(--color-accent);
  color: var(--color-cream);
  border-color: var(--color-accent);
}

.vision-arrow {
  color: var(--color-text-faint);
  font-size: var(--text-lg);
}


/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.two-col-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
}


/* ============================================
   CARDS GRID
   ============================================ */

.cards-grid {
  display: grid;
  gap: var(--space-6);
}

.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

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


/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.comparison-col {
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.comparison-col.changes {
  background: var(--color-teal-light);
  border: 1px solid rgba(42, 111, 111, 0.15);
}

.comparison-col.stays {
  background: var(--color-cream);
  border: 1px solid var(--color-divider);
}

.comparison-col h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.comparison-item svg {
  min-width: 20px;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr; }
}


/* ============================================
   FAQ SECTION
   ============================================ */

.faq-list {
  max-width: var(--content-default);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-6) 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  gap: var(--space-4);
}

.faq-question svg {
  min-width: 20px;
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ============================================
   CONTACT FORM
   ============================================ */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--color-cream);
  color: var(--color-text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.form-tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 450;
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-tab.active {
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-color: var(--color-charcoal);
}

.form-tab:hover:not(.active) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


/* ============================================
   CAREER CARDS
   ============================================ */

.career-card {
  background: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  text-decoration: none;
  color: inherit;
}

.career-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.career-info h3 {
  font-size: var(--text-base);
  font-weight: 550;
  margin-bottom: var(--space-1);
}

.career-meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.career-arrow {
  color: var(--color-accent);
  min-width: 24px;
}


/* ============================================
   TEAM GRID
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: var(--text-base);
  font-weight: 550;
  margin-bottom: var(--space-1);
}

.team-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

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


/* ============================================
   PILLAR CARDS (Platform)
   ============================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.pillar-card {
  background: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
}

.pillar-number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  margin-bottom: var(--space-3);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.pillar-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr; }
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,252,247,0.6);
  margin-top: var(--space-4);
  max-width: 32ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,252,247,0.4);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,252,247,0.7);
  text-decoration: none;
  margin-bottom: var(--space-3);
}

.footer-col a:hover {
  color: var(--color-cream);
}

.footer-bottom {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,252,247,0.1);
  font-size: var(--text-xs);
  color: rgba(255,252,247,0.4);
}

.footer-address {
  font-size: var(--text-xs);
  color: rgba(255,252,247,0.5);
  font-style: normal;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Founder card */
.founder-card {
  background: var(--color-cream);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  display: block;
}

@media (max-width: 768px) {
  .founder-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-8);
  }
  .founder-card .team-avatar {
    margin: 0 auto var(--space-4);
    width: 140px !important;
    height: 140px !important;
  }
}

/* Regional Offices */
.regional-offices {
  margin-top: var(--space-8);
}

.regional-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.regional-office-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.regional-office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.regional-office-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.regional-office-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.regional-office-card:hover .regional-office-img img {
  transform: scale(1.05);
}

.regional-office-info {
  padding: var(--space-5) var(--space-6);
}

.regional-office-city {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.regional-office-addr {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .regional-offices-grid {
    grid-template-columns: 1fr;
  }
  .regional-office-img {
    height: 180px;
  }
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}


/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  text-align: center;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
  background: var(--color-surface);
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================
   PAGE HERO (Interior pages)
   ============================================ */

.page-hero {
  padding: 160px var(--space-6) var(--space-16);
  text-align: center;
  background: var(--color-surface);
}

.page-hero .section-eyebrow {
  justify-content: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  max-width: 20ch;
  margin: 0 auto;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin: var(--space-4) auto 0;
  line-height: 1.6;
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}


/* ============================================
   CONTACT SEGMENTS
   ============================================ */

.contact-segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.contact-segment {
  background: var(--color-cream);
  border: 1.5px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.contact-segment:hover,
.contact-segment.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact-segment.active {
  background: var(--color-accent-light);
}

.contact-segment h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
}

.contact-segment p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .contact-segments { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================
   FULL-BLEED IMAGE
   ============================================ */

.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
}

.full-bleed img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}


/* ============================================
   STAT HIGHLIGHT
   ============================================ */

.stat-highlight {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-accent);
  line-height: 1;
}


/* ============================================
   HIDDEN PAGES (SPA routing)
   ============================================ */

.page {
  display: none;
}

.page.active {
  display: block;
}


/* ============================================
   MISC UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-serif { font-family: var(--font-display); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }
.gap-4 { gap: var(--space-4); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Divider line */
.divider {
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-12) 0;
}
