/* ===========================================================
   AgPro Air & Ground - Design Tokens
   Light, spacious, SaaS-style layout (ecomflow-inspired)
   Centered single-column grid, dark full-bleed banner sections,
   pill buttons, restrained motion.
   =========================================================== */

:root {
  /* 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, 3rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4rem);
  --text-hero: clamp(2.25rem, 1rem + 3vw, 3.75rem);

  /* 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 */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

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

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'General Sans', 'Arial Narrow', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ---- LIGHT (default - clean white SaaS surface, navy text, orange accent) ---- */
:root,
[data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f7f6f4;
  --color-surface-offset: #f1efeb;
  --color-surface-offset-2: #e8e5df;
  --color-surface-dynamic: #efece6;
  --color-divider: #e7e4de;
  --color-border: #e0dcd4;

  --color-text: #0b1220;
  --color-text-muted: #565f6e;
  --color-text-faint: #8a919d;
  --color-text-inverse: #f7f5f1;

  /* Primary accent - AgPro brand orange, used sparingly */
  --color-primary: #f16200;
  --color-primary-hover: #d9560a;
  --color-primary-active: #b84e07;
  --color-primary-highlight: #fdece0;

  /* Brand navy - used for the dark full-bleed banner sections */
  --color-navy: #00204b;
  --color-navy-deep: #001330;
  --color-navy-hover: #0a2f66;

  /* Secondary accent - brand maroon (used sparingly, alerts/emphasis) */
  --color-signal: #82191a;
  --color-signal-hover: #6a1314;
  --color-signal-highlight: #f3d4cf;
  --color-signal-text: #82191a;

  --color-warning: #a5730a;
  --color-warning-hover: #86600a;
  --color-warning-highlight: #f0e0bd;

  --color-error: #82191a;
  --color-error-hover: #6a1314;
  --color-error-highlight: #f3d4cf;

  --color-success: #2f7a41;
  --color-success-hover: #256633;
  --color-success-highlight: #d7ecda;

  --color-notification: #82191a;
  --color-notification-highlight: #f3d4cf;

  --color-blue: #2a6d94;
  --color-blue-highlight: #cfe4ee;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 8px 24px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 24px 64px oklch(0.2 0.01 80 / 0.12);

  --grain-opacity: 0;
}

/* ---- DARK MODE (toggle) ---- */
[data-theme='dark'] {
  --color-bg: #0a1120;
  --color-surface: #0d1626;
  --color-surface-2: #10192b;
  --color-surface-offset: #142033;
  --color-surface-offset-2: #182539;
  --color-surface-dynamic: #142033;
  --color-divider: #1b2a41;
  --color-border: #253a56;

  --color-text: #f2f1ee;
  --color-text-muted: #a3aab8;
  --color-text-faint: #626c80;
  --color-text-inverse: #0b1220;

  --color-primary: #f16200;
  --color-primary-hover: #ff7d21;
  --color-primary-active: #cc5300;
  --color-primary-highlight: #3a2210;

  --color-navy: #00204b;
  --color-navy-deep: #00081a;
  --color-navy-hover: #0a2f66;

  --color-signal: #82191a;
  --color-signal-hover: #9c2325;
  --color-signal-highlight: #331113;
  --color-signal-text: #e35a5c;

  --color-warning: #d19900;
  --color-warning-hover: #e8ac10;
  --color-warning-highlight: #3a2f10;

  --color-error: #82191a;
  --color-error-hover: #9c2325;
  --color-error-highlight: #331113;

  --color-success: #4c9a5b;
  --color-success-hover: #5cb46d;
  --color-success-highlight: #16261a;

  --color-notification: #82191a;
  --color-notification-highlight: #331113;

  --color-blue: #3f7ea6;
  --color-blue-highlight: #1a2830;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 24px 64px oklch(0 0 0 / 0.55);

  --grain-opacity: 0;
}

/* ===========================================================
   Base layout helpers
   =========================================================== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.eyebrow--maroon {
  color: var(--color-signal-text);
}
.eyebrow--maroon::before {
  background: var(--color-signal-text);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h3,
.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
}

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

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

/* Grain overlay disabled in light SaaS theme */
.grain {
  display: none;
}

/* ===========================================================
   Buttons - pill-style, ecomflow-inspired
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 46px;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
button.btn {
  font: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-navy);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--color-navy-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: oklch(from var(--color-text) l c h / 0.04);
  color: var(--color-text);
  border-color: transparent;
}
.btn-outline:hover {
  background: oklch(from var(--color-text) l c h / 0.08);
  transform: translateY(-1px);
}
.btn-outline:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding-inline: var(--space-4);
}
.btn-ghost:hover {
  color: var(--color-primary);
}

/* On dark navy surfaces, invert outline button to read on dark bg */
.on-dark .btn-outline {
  background: oklch(1 0 0 / 0.08);
  color: #ffffff;
}
.on-dark .btn-outline:hover {
  background: oklch(1 0 0 / 0.14);
}
.on-dark .btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}
.on-dark .btn-primary:hover {
  background: var(--color-primary-hover);
}

/* Copy-to-clipboard email button */
.copy-email-btn {
  position: relative;
}
.copy-email-btn .copy-email-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.copy-email-btn .copy-email-label::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.copy-email-btn.is-copied .copy-email-label::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.copy-email-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--color-navy);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.copy-email-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-navy);
}
.copy-email-btn.is-copied .copy-email-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.3s var(--ease-in-out),
    border-color 0.3s var(--ease-in-out);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
}
.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  display: block;
  margin-top: 1px;
}

.logo-img {
  width: auto;
  height: 44px;
  max-width: none;
  display: block;
}
.mobile-menu-header .logo-img,
.footer .logo-img {
  height: 36px;
}
.logo-img--light {
  display: none;
}
[data-theme='light'] .logo-img--dark {
  display: none;
}
[data-theme='light'] .logo-img--light {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--color-primary);
  transition: right 0.25s var(--ease-out);
}
.nav-links a:hover {
  color: var(--color-primary);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  right: 0;
}
.nav-links a.is-active {
  color: var(--color-primary);
}

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

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

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .header-actions .btn-primary {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 200;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
}
.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}
.mobile-menu-links a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}
.contact-channel a {
  text-decoration: none;
}
.mobile-menu-cta {
  margin-top: var(--space-8);
}

/* ===========================================================
   Hero - centered, text-first, plain white with soft dot texture
   =========================================================== */

.hero {
  position: relative;
  padding-block: clamp(var(--space-24), 14vw, 9rem) var(--space-20);
  overflow: hidden;
  background: var(--color-bg);
  text-align: center;
}

.hero-dotgrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 15% 10%, black 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, black 0%, transparent 60%);
  mask-image: radial-gradient(ellipse 60% 50% at 15% 10%, black 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, black 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  font-weight: 600;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.hero h1 {
  font-size: var(--text-hero);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  justify-content: center;
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-8);
  max-width: 720px;
  margin-inline: auto;
}
.hero-stats > div {
  min-width: 0;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  white-space: normal;
}

@media (max-width: 860px) {
  .hero {
    padding-block: var(--space-20) var(--space-12);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* ===========================================================
   Section headers
   =========================================================== */

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-16);
}
.section-head h2 {
  margin-top: var(--space-4);
}
.section-head p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ===========================================================
   Why Choose - feature grid (4-col icon+text, ecomflow style)
   =========================================================== */

.features-lede {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
  max-width: 62ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature-card {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.3s var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-3px);
}
.feature-card:hover .feature-icon {
  border-color: var(--color-primary);
  transform: scale(1.06);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: var(--text-base);
}
.feature-card p {
  font-size: var(--text-sm);
}

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

/* ===========================================================
   How We Work - simple prose section (replaces services grid)
   =========================================================== */

.how-we-work {
  max-width: 720px;
}
.how-we-work p {
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}
.services-note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  margin-top: var(--space-8);
}
.services-note svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.services-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Mission band - dark full-bleed navy (ecomflow "feature banner" analog) */
.mission {
  position: relative;
  color: #f7f5f1;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, var(--color-navy-hover) 0%, var(--color-navy-deep) 55%, #00081a 100%);
  border-radius: var(--radius-xl);
  margin-inline: var(--space-5);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
.mission-dotgrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(oklch(1 0 0 / 0.35) 1px, transparent 1.5px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 90% 10%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 90% 10%, black 0%, transparent 70%);
}
.mission-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.mission .eyebrow {
  color: #ffb27a;
  justify-content: center;
}
.mission .eyebrow::before {
  background: #ffb27a;
}
.mission h2 {
  font-size: var(--text-2xl);
  color: #f7f5f1;
  margin-bottom: var(--space-6);
}
.mission p {
  color: oklch(0.92 0.005 90 / 0.82);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.mission p:last-of-type {
  margin-bottom: 0;
}

/* ===========================================================
   Process steps
   =========================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
}
.process-number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}
.process-step h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}
.process-step p {
  font-size: var(--text-sm);
}

@media (max-width: 860px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .process-grid::before {
    display: none;
  }
}

/* ===========================================================
   Testimonials / Trust
   =========================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.trust-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.trust-quote-mark {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 0.6;
}
.trust-card h3 {
  font-size: var(--text-base);
}
.trust-card p {
  font-size: var(--text-sm);
}

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

/* ===========================================================
   Split content sections (no imagery - two-column text emphasis)
   =========================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-body .eyebrow {
  margin-bottom: var(--space-4);
}
.split-body h2 {
  margin-bottom: var(--space-5);
}
.split-body p {
  margin-bottom: var(--space-5);
}
.split-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  list-style: none;
}
.split-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.split-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Panel replaces image slot when no imagery is used */
.split-panel {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  justify-content: center;
  min-height: 320px;
}
.split-panel-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.split-panel-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}
.split-panel-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}
.split-panel-divider {
  height: 1px;
  background: var(--color-divider);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ===========================================================
   CTA band
   =========================================================== */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-inline: var(--space-5);
  background: radial-gradient(circle at 30% 20%, var(--color-navy-hover) 0%, var(--color-navy-deep) 60%, #00081a 100%);
  color: #f7f5f1;
  text-align: center;
  padding: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-6);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
}
.cta h2 {
  color: #f7f5f1;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.cta p {
  color: oklch(0.92 0.005 90 / 0.78);
  margin-bottom: var(--space-8);
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
}
.contact-info h2 {
  margin-bottom: var(--space-5);
}
.contact-info p {
  margin-bottom: var(--space-8);
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel-icon svg {
  width: 20px;
  height: 20px;
}
.contact-channel-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}
.contact-channel-value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
}
.contact-channel a {
  color: var(--color-text);
  text-decoration: none;
}
.contact-channel a:hover {
  color: var(--color-primary);
}

.contact-form {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-field {
  margin-bottom: var(--space-5);
}
.form-field label {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  min-height: 44px;
}
.form-field textarea {
  min-height: 100px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.form-submit {
  width: 100%;
  margin-top: var(--space-2);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  text-align: center;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--color-primary);
}
.footer-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===========================================================
   Scroll reveal (opacity/clip-path only - no CLS)
   =========================================================== */

.reveal {
  opacity: 1;
}
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
  @keyframes reveal-fade {
    to {
      opacity: 1;
    }
  }
}

/* Staggered card reveal, driven by IntersectionObserver (app.js) toggling .is-visible */
.reveal-stagger {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile section spacing */
@media (max-width: 640px) {
  section {
    padding-block: var(--space-16);
  }
  .cta,
  .mission {
    margin-inline: var(--space-4);
  }
  .copy-email-tooltip {
    bottom: auto;
    top: calc(100% + 10px);
  }
  .copy-email-tooltip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--color-navy);
  }
}
