/* ============================================
   SINOSPECT — DESIGN SYSTEM
   Clean Blue + Yellow Accent + Professional
   ============================================ */

/* --- FONTS --- */
/* Outfit (display) + DM Sans (body) — modern, clean, professional */

/* Outfit and DM Sans loaded via <link> in HTML */

:root {
  --font-display: 'Outfit', 'Helvetica Neue', 'Arial', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', 'Arial', 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);

  /* --- 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.25rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.375rem;
  --radius-xl: 0.5rem;
  --radius-full: 9999px;

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

  /* --- CONTENT WIDTHS --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================================
   LIGHT PALETTE (PRIMARY)
   Cool White + Sinospect Blue + Yellow Accent
   ============================================ */
:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:               #F5F7FA;
  --color-surface:          #FFFFFF;
  --color-surface-2:        #F8F9FC;
  --color-surface-offset:   #EDF0F5;
  --color-surface-offset-2: #E4E8EF;
  --color-surface-dynamic:  #DAE0E8;
  --color-divider:          #D0D6DE;
  --color-border:           #C4CAD4;

  /* Text */
  --color-text:             #1A1D23;
  --color-text-muted:       #5A6270;
  --color-text-faint:       #8A919E;
  --color-text-inverse:     #F5F7FA;

  /* Primary Accent — Sinospect Blue */
  --color-primary:          #1B5091;
  --color-primary-hover:    #144278;
  --color-primary-active:   #0F3460;
  --color-primary-highlight: #E0EAF5;

  /* Secondary — Dark Slate */
  --color-secondary:        #2A3040;
  --color-secondary-hover:  #1E2330;
  --color-secondary-active: #141820;

  /* Accent — Sinospect Yellow */
  --color-accent:           #D4C800;
  --color-accent-hover:     #BDB200;

  /* Success */
  --color-success:          #2E8540;
  --color-error:            #C53030;

  /* Shadows (cool-toned) */
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 250 / 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:               #0F1218;
  --color-surface:          #171B24;
  --color-surface-2:        #1E2330;
  --color-surface-offset:   #141820;
  --color-surface-offset-2: #1A2028;
  --color-surface-dynamic:  #2A3040;
  --color-divider:          #2A3040;
  --color-border:           #3A4050;

  --color-text:             #E0E4EA;
  --color-text-muted:       #8A919E;
  --color-text-faint:       #5A6270;
  --color-text-inverse:     #0F1218;

  --color-primary:          #5A9AD8;
  --color-primary-hover:    #72ADE4;
  --color-primary-active:   #4080C0;
  --color-primary-highlight: #1A2840;

  --color-secondary:        #8A919E;
  --color-secondary-hover:  #E0E4EA;
  --color-secondary-active: #F5F7FA;

  --color-accent:           #E8DC30;
  --color-accent-hover:     #D4C800;

  --color-success:          #4CAF50;
  --color-error:            #EF5350;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0F1218;
    --color-surface:          #171B24;
    --color-surface-2:        #1E2330;
    --color-surface-offset:   #141820;
    --color-surface-offset-2: #1A2028;
    --color-surface-dynamic:  #2A3040;
    --color-divider:          #2A3040;
    --color-border:           #3A4050;
    --color-text:             #E0E4EA;
    --color-text-muted:       #8A919E;
    --color-text-faint:       #5A6270;
    --color-text-inverse:     #0F1218;
    --color-primary:          #5A9AD8;
    --color-primary-hover:    #72ADE4;
    --color-primary-active:   #4080C0;
    --color-primary-highlight: #1A2840;
    --color-secondary:        #8A919E;
    --color-secondary-hover:  #E0E4EA;
    --color-secondary-active: #F5F7FA;
    --color-accent:           #E8DC30;
    --color-accent-hover:     #D4C800;
    --color-success:          #4CAF50;
    --color-error:            #EF5350;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* --- CONTAINER --- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

/* --- HEADER / NAV --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(224, 228, 234, 0.92);
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 29, 35, 0.08);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* .logo-mark class kept for other pages but not displayed here */
.logo .logo-mark {
  display: none;
}

.logo span {
  color: var(--color-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  white-space: nowrap;
}

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

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

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

/* Mobile hamburger */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  padding: var(--space-20) var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
}

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

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

.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.btn.btn-header-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .btn.btn-header-cta { display: none; }
}

@media (min-width: 1024px) {
  .nav-desktop { gap: var(--space-4); }
  .btn.btn-header-cta { display: inline-flex; }
}

@media (min-width: 1280px) {
  .nav-desktop { gap: var(--space-6); }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { opacity: 0.92; }
.btn:active { opacity: 1; }

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-secondary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: var(--color-primary);
  color: #fff;
}
.btn-accent:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

/* --- SECTIONS --- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

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

.section--dark {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
}

.section--dark .color-muted {
  color: rgba(224, 228, 234, 0.7);
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
}

/* --- TAGLINE --- */
.tagline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section--dark .tagline {
  color: var(--color-primary);
}

[data-theme="dark"] .section--dark .tagline {
  color: var(--color-primary);
}

/* --- TYPOGRAPHY HELPERS --- */
.heading-xl {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.heading-md {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.section--dark .heading-xl,
.section--dark .heading-lg,
.section--dark .heading-md {
  color: var(--color-text-inverse);
}

.body-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

.section--dark .body-text {
  color: rgba(224, 228, 234, 0.75);
  color: oklch(from var(--color-text-inverse) l c h / 0.75);
}

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

/* --- HERO --- */
.hero {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-bottom: clamp(var(--space-10), 5vw, var(--space-16));
  position: relative;
}

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

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr 0.85fr;
    gap: var(--space-12);
  }
}

.hero-content {
  max-width: 720px;
}

.hero-image {
  display: none;
}

@media (min-width: 768px) {
  .hero-image {
    display: block;
    position: relative;
  }
  .hero-image img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(26, 29, 35, 0.12);
  }
  .hero-route-accent {
    position: absolute;
    left: -24px;
    top: 10%;
    width: 48px;
    height: 80%;
    pointer-events: none;
  }
}

.hero .heading-xl {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.hero .body-text {
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

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

/* Hero Images - New overlapping layout */
.hero-images {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-img-primary {
  width: 100%;
  height: auto;
}

.hero-img-primary img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.hero-img-secondary {
  position: absolute;
  bottom: -32px;
  right: var(--space-6);
  width: 35%;
  max-width: 280px;
  border: 3px solid var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-secondary img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 767px) {
  .hero-img-secondary {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-6);
    border-width: 2px;
  }
}

/* Hero Highlight - yellow underline on text */
.hero-highlight {
  position: relative;
  display: inline-block;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  right: -4px;
  height: 35%;
  background: var(--color-accent);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.4;
}

/* --- CARDS --- */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

a.card:hover,
.card[href]:hover {
  box-shadow: var(--shadow-md);
}

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

/* --- STEP CARDS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-6);
}

.step-card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}

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

.step-title {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

/* --- PILLAR / FEATURE LIST --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-6);
}

.pillar-card {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}

.pillar-card:last-child {
  border-bottom: none;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* --- SECTOR CARDS --- */
.sectors-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .sectors-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.sectors-header .heading-lg {
  flex: 1;
  margin: 0;
}

.sectors-header .btn {
  align-self: flex-start;
}

.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

.sector-card {
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}

/* Legacy sector cards with image+text side-by-side (sectors page) */
.sector-card--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .sector-card--split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.sector-points {
  list-style: none;
  padding: 0;
}

.sector-points li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.sector-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 2px;
  background: var(--color-primary);
}

/* --- OPPORTUNITY CARDS --- */
.opps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.opp-card {
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.opp-card:hover {

  box-shadow: var(--shadow-md);
}

.opp-card .heading-md {
  margin-bottom: 0;
}

.opp-card .body-text {
  flex: 1;
}

.opp-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.opp-link:hover {
  color: var(--color-primary-hover);
}

/* --- CTA BAND --- */
.cta-band {
  text-align: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section--primary {
  background: var(--color-primary);
  color: #fff;
}

.section--primary .heading-xl,
.section--primary .heading-lg {
  color: #fff;
}

.section--primary .body-text {
  color: rgba(255, 255, 255, 0.8);
}

.section--primary .btn-accent {
  background: #fff !important;
  color: var(--color-primary) !important;
}

.section--primary .btn-accent:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}

.section--primary .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.section--primary .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-band .heading-lg {
  margin-inline: auto;
}

.cta-band .body-text {
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* --- EQUIPMENT BAND --- */
.equipment-band {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  background: var(--color-surface);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .equipment-band {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    align-items: center;
  }
}

.equipment-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.equipment-intro .heading-md {
  margin: 0;
}

.equipment-intro .body-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.equipment-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .equipment-items {
    flex-direction: row;
    gap: var(--space-8);
  }
}

.equipment-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.equipment-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}

.equipment-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.equipment-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- FOOTER IMAGE BAND --- */
.footer-image-band {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
}

.footer-image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.6)
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-8);
}

.presence-locations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  align-items: center;
}

.presence-locations svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

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

.footer-brand p {
  color: rgba(224, 228, 234, 0.65);
  color: oklch(from var(--color-text-inverse) l c h / 0.65);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 40ch;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(224, 228, 234, 0.5);
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(224, 228, 234, 0.75);
  color: oklch(from var(--color-text-inverse) l c h / 0.75);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-interactive);
}

.footer-links a:hover {
  color: var(--color-text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(224, 228, 234, 0.1);
  border-top: 1px solid oklch(from var(--color-text-inverse) l c h / 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(224, 228, 234, 0.45);
  color: oklch(from var(--color-text-inverse) l c h / 0.45);
}

.footer-bottom a {
  color: rgba(224, 228, 234, 0.45);
  color: oklch(from var(--color-text-inverse) l c h / 0.45);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(224, 228, 234, 0.7);
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
}

/* --- CONTACT FORM --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.15);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.direct-access {
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  height: fit-content;
}

.direct-access-item {
  margin-bottom: var(--space-6);
}

.direct-access-item:last-child {
  margin-bottom: 0;
}

.direct-access-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.direct-access-value {
  font-size: var(--text-base);
  color: var(--color-text);
}

.direct-access-value a {
  color: var(--color-primary);
  text-decoration: none;
}

.direct-access-value a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* --- HORIZONTAL TIMELINE --- */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: var(--space-10) 0 var(--space-8);
  padding: var(--space-6) 0;
}

.timeline-track {
  position: absolute;
  top: calc(var(--space-6) + 28px);
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--color-primary);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  box-shadow: 0 0 0 3px var(--color-bg);
}

.timeline-circle--accent {
  background: var(--color-accent);
  color: #000;
}

.timeline-label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (max-width: 639px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-4);
  }
  .timeline-track {
    display: none;
  }
  .timeline-step {
    text-align: center;
  }
}

/* --- CHAIN EXECUTION VISUAL --- */
/* --- PROCESS FLOW --- */
.process-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: var(--space-10) 0 var(--space-8);
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-3);
  position: relative;
}

.process-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  box-shadow: 0 4px 16px rgba(139, 111, 71, 0.25);
  box-shadow: 0 4px 16px oklch(from var(--color-primary) l c h / 0.25);
}

.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.process-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.process-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 160px;
  margin-inline: auto;
}

.process-connector {
  width: 40px;
  min-width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(139, 111, 71, 0.3));
  background: linear-gradient(90deg, var(--color-primary), oklch(from var(--color-primary) l c h / 0.3));
  margin-top: 26px;
  flex-shrink: 0;
  border-radius: 1px;
}

/* Mobile: 2x2 grid */
@media (max-width: 639px) {
  .process-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-4);
  }
  .process-connector { display: none; }
  .process-step { padding: 0; }
}
/* Mobile: vertical route line on left of process steps */
@media (max-width: 639px) {
  .process-flow {
    position: relative;
    padding-left: var(--space-8);
  }
  .process-flow::before {
    content: '';
    position: absolute;
    left: 6px;
    top: var(--space-4);
    bottom: var(--space-4);
    width: 1px;
    border-left: 1px dashed var(--color-primary);
    opacity: 0.3;
  }
  .process-step {
    position: relative;
  }
  .process-step::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-8) + 3px);
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.4;
  }
}


/* --- VALUE PROPS (WHY SINOSPECT) --- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.value-grid--four {
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .value-grid--four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .value-grid--four {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.value-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}

.value-item--numbered {
  padding: var(--space-5) var(--space-5) var(--space-6);
  position: relative;
}

.value-marker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.25);
  border-radius: var(--radius-sm);
  line-height: 1;
}

.value-item--numbered .heading-md {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.value-item--numbered .body-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(26, 29, 35, 0.7);
  color: oklch(from var(--color-text) l c h / 0.7);
}

.value-item .heading-md {
  font-size: var(--text-base);
}

/* "Why Sinospect" Dark Section - 2-Column: Heading Left, Cards Right */
.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .why-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.why-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.why-left .heading-lg {
  margin-bottom: var(--space-6);
}

.why-left .body-text {
  font-size: var(--text-base);
  line-height: 1.7;
}

.why-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.why-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.05em;
  padding-top: var(--space-1);
}

.why-card-content {
  flex: 1;
}

.why-card-title {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.why-card-desc {
  font-size: var(--text-sm);
  color: rgba(224, 228, 234, 0.65);
  line-height: 1.6;
}

/* --- DIFFERENTIATORS --- */
.differentiators {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

@media (min-width: 640px) {
  .differentiators {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.diff-item > svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}

.diff-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.diff-item span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Differentiators Layout - Cards + Image Side by Side */
.diff-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .diff-layout {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-12);
  }
}

.diff-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.diff-card {
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.diff-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.diff-icon svg {
  width: 100%;
  height: 100%;
}

.diff-title {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}

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

.diff-image {
  height: 100%;
  min-height: 400px;
}

.diff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* --- ROUTE MOTIF (brand connector element) --- */
.route-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-2);
  overflow: hidden;
}

.route-divider svg {
  width: 100%;
  max-width: 480px;
  height: 24px;
}

/* Accent line on section borders — subtle brass line with nodes */
.section--route-top {
  border-top: none;
}

/* --- ABOUT --- */
.about-content {
  max-width: 720px;
}

.about-content p {
  margin-bottom: var(--space-6);
}

/* --- DARK MODE TOGGLE --- */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: rgba(26, 29, 35, 0.06);
  background: oklch(from var(--color-text) l c h / 0.06);
}

/* --- SCROLL REVEAL (JS-powered) --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* --- BULLET LIST (Pourquoi Sinospect) --- */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
}

/* --- FRICTION POINTS LIST --- */
.friction-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
}

.friction-item {
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- PRESENCE BAR --- */
.presence-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.presence-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.presence-tag::after {
  content: ' ·';
  color: var(--color-primary);
}

.presence-tag:last-child::after {
  content: '';
}


/* --- POSITIONING HEADER --- */
.positioning-header {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.positioning-header .heading-xl {
  margin-bottom: var(--space-4);
}

.positioning-header .body-text {
  font-size: var(--text-base);
}

/* Hero headline — specific size */
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* --- STATS BAND --- */
.stats-band {
  padding-block: var(--space-10) !important;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

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

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

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '\00ab';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-slides {
  position: relative;
  width: 100%;
}

.testimonial-slide {
  display: none;
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-12);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote-mark {
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-slide .testimonial-text {
  margin-bottom: var(--space-8);
  margin-top: var(--space-6);
}

.testimonial-slide .testimonial-footer {
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial-info {
  text-align: left;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-divider);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.carousel-dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

/* --- SECTOR ICONS --- */
.sector-icon {
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.sector-icon svg {
  width: 48px;
  height: 48px;
}

/* --- TIMELINE (Solutions) --- */
.timeline-container {
  position: relative;
  padding-left: var(--space-10);
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10) + 4px);
  top: var(--space-8);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  z-index: 1;
}

.timeline-item:last-child::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10) + 8px);
  top: calc(var(--space-8) + 12px);
  bottom: 0;
  width: 2px;
  background: var(--color-bg);
  z-index: 1;
}

.timeline-item .pillar-card {
  border-bottom: none;
  background: var(--color-surface);
  border: 1px solid rgba(26, 29, 35, 0.08);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}

/* --- MISSION GRID (About) --- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.values-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.value-pill {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 29, 35, 0.06);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.value-pill-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.value-pill strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.value-pill p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- MILESTONES --- */
.milestone-list {
  margin-top: var(--space-8);
}

.milestone-item {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
  align-items: flex-start;
}

.milestone-item:last-child {
  border-bottom: none;
}

.milestone-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 80px;
  line-height: 1.2;
}

.milestone-item strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.milestone-item .body-text {
  font-size: var(--text-sm);
  margin: 0;
}

/* --- FORM SUCCESS STATE --- */
.form-success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.form-success svg {
  color: var(--color-success);
  margin-bottom: var(--space-4);
}

.form-success .heading-md {
  margin-bottom: var(--space-2);
}

/* --- OPP CARD WITH IMAGE --- */
.opp-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(-1 * var(--space-8));
  margin-bottom: var(--space-4);
  width: calc(100% + var(--space-8) * 2);
}

/* Blue contrast fix for small text (<16px) */
.presence-tag,
.stat-label,
.tagline {
  color: var(--color-primary);
}

[data-theme="dark"] .presence-tag,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .tagline {
  color: var(--color-primary);
}


/* ============================================================
   UI INTERACTIONS v6
   Card hover, image zoom, button sweep,
   mobile nav stagger, nav underline slide
   ============================================================ */

/* --- 1. NAV UNDERLINE SLIDE ---
   Replaces static border-bottom on .active with an animated
   underline that slides in from left on hover for all links */

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Remove the old static active::after (override) */
.nav-desktop a.active::after {
  width: 100%;
}


/* --- 2. CARD HOVER — lift + border glow ---
   Applies to .card, .sector-card, .opp-card, .step-card */

.card,
.sector-card,
.opps-grid .card,
.step-card,
.timeline-item {
  transition:
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease;
}

.card:hover,
.opps-grid .card:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border-color: var(--color-primary);
}

.sector-card:hover {
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.04);
  border-color: oklch(from var(--color-primary) l c h / 0.45);
}

/* Dark theme adjustment */
[data-theme="dark"] .card:hover,
[data-theme="dark"] .opps-grid .card:hover {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px oklch(from var(--color-primary) l c h / 0.3);
}


/* --- 3. IMAGE CONTAINERS --- */
.sector-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
}


/* --- 4. CTA BUTTON HOVER --- */
.btn-accent,
.btn-primary {
  position: relative;
  overflow: hidden;
}


/* --- 5. MOBILE NAV --- */
.mobile-nav {
  transition: opacity 0.2s ease;
}

.mobile-nav:not(.open) {
  opacity: 0;
  pointer-events: none;
  display: flex !important;
  visibility: hidden;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  transition: color 0.2s ease;
}

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

.mobile-nav .mobile-nav-close {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .nav-desktop a::after,
  .mobile-nav,
  .mobile-nav a {
    transition: none !important;
  }
}

/* ============================================
   YELLOW ACCENT SYSTEM
   Dashes of brand yellow throughout the design
   ============================================ */

/* Yellow underline accent on taglines */
.tagline::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--space-2);
  border-radius: 2px;
}

/* Yellow left border on testimonial cards */
.testimonial-card {
  border-left: 3px solid var(--color-accent) !important;
}

/* Yellow accent on stat numbers */
.stat-number::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  margin-top: var(--space-2);
  margin-inline: auto;
}

/* Yellow dot on pillar numbers */
.pillar-number::after {
  content: '.';
  color: var(--color-accent);
}

/* Route divider dots → yellow */
.route-divider circle {
  fill: var(--color-accent);
}
.route-divider line {
  stroke: var(--color-accent);
}

/* Yellow accent on check-list bullets */
.check-list li::before {
  background: var(--color-accent) !important;
}

/* Process step connector lines → yellow */
.process-connector {
  border-color: var(--color-accent) !important;
}
.process-connector::before {
  background: var(--color-accent) !important;
}


/* CTA accent buttons */
.btn-accent {
  background: var(--color-primary);
}
.btn-accent:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 16px oklch(from var(--color-accent) l c h / 0.25);
}

/* Yellow focus ring */
:focus-visible {
  outline-color: var(--color-accent);
}

/* ============================================
   GOLDEN RATIO SPACING & BALANCE
   φ = 1.618 — reducing text density,
   increasing breathing room
   ============================================ */

/* Section padding — balanced breathing room */
.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

/* Space between hero heading and body text */
.hero .heading-xl {
  margin-bottom: var(--space-6);
}

/* Wider container--narrow for better line lengths (golden ratio of 960px ≈ 593px → 620px) */
.container--narrow {
  max-width: 680px;
}

/* More generous card padding */
.card, .pillar-card {
  padding: var(--space-8);
}

/* Testimonial grid: more gap */
.testimonial-grid {
  gap: var(--space-10);
}

/* Stats section: more vertical breathing room */
.stat-number {
  margin-bottom: var(--space-4);
}

/* Heading bottom margin increased */
.heading-lg {
  margin-bottom: var(--space-6);
}

/* Body text after headings: more line height */
.body-text {
  line-height: 1.75;
}

/* Hero body text */
.hero .body-text {
  font-size: var(--text-base);
  line-height: 1.7;
}

/* Footer: more padding */
.site-footer {
  padding-block: var(--space-16);
}

/* Visual break images: add margin for breathing room */
section[style*="padding: 0"] {
  margin-block: var(--space-8);
}

/* Process flow: more spacing between steps */
.process-flow {
  gap: var(--space-6);
}

/* Opps grid / card grids: larger gap */
.opps-grid {
  gap: var(--space-8);
}

/* Timeline items: more space between */
.timeline-item + .timeline-item {
  margin-top: var(--space-6);
}

/* ============================================
   TESTIMONIAL READ MORE
   ============================================ */
.testimonial-grid {
  display: grid;
  gap: var(--space-8);
}

.testimonial-card {
  position: relative;
}

.testimonial-preview {
  display: block;
}

.testimonial-full {
  display: none;
  margin-top: var(--space-4);
}

.testimonial-card.expanded .testimonial-full,
.testimonial-slide.expanded .testimonial-full {
  display: block;
}

.testimonial-card.expanded .testimonial-preview .testimonial-ellipsis,
.testimonial-slide.expanded .testimonial-preview .testimonial-ellipsis {
  display: none;
}

.testimonial-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: var(--space-4);
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-interactive);
}

.testimonial-toggle:hover {
  color: var(--color-primary-hover);
}

.testimonial-toggle svg {
  transition: transform var(--transition-interactive);
}

.testimonial-card.expanded .testimonial-toggle svg,
.testimonial-slide.expanded .testimonial-toggle svg {
  transform: rotate(180deg);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.2rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
  line-height: 1;
}

.lang-switch .lang-active {
  background: var(--color-primary);
  color: #fff;
}

.lang-switch a:hover {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .mobile-nav .lang-switch {
    margin-top: var(--space-6);
    align-self: center;
  }
}

/* ============================================
   UTILITY CLASSES — replacing inline styles
   ============================================ */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-2xl { font-size: var(--text-2xl); }
.p-0 { padding: 0; }
.section--flush { padding: 0; }
.section--flush-top { padding-top: 0; }
.media-band-inner { max-width: 1400px; margin-inline: auto; padding-inline: var(--space-6); }
.card-padding { padding: var(--space-8); }
.cta-subtext { color: rgba(224, 228, 234, 0.75); margin-inline: auto; margin-bottom: var(--space-8); }
.btn-outline--inverse { border-color: rgba(224, 228, 234, 0.4); color: var(--color-text-inverse); }
.hero-actions--spaced { margin-top: var(--space-8); }
.opp-card--visual { padding: 0; cursor: default; text-decoration: none; overflow: hidden; }
.opp-card-thumb { width: 100%; height: 220px; object-fit: cover; }
.hero-img--contained { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; max-height: 480px; }
.w-full { width: 100%; }
.hero--compact { padding-bottom: var(--space-8) !important; }
.direct-access-title { font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-faint); font-weight: 600; margin-bottom: var(--space-8); }

/* =========================================
   Header gem logo
   ========================================= */
.header-gem {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 768px) {
  .header-gem {
    display: block;
  }
}

/* =========================================
   Premium width + reading measure patch
   ========================================= */

/* Tighter containers on smaller laptops */
@media (max-width: 1024px) {
  .container {
    width: min(1100px, calc(100% - 40px));
  }
}

/* Comfortable mobile gutters */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 28px);
  }
}

/* Paragraph reading width — 70ch max */
main p,
section p {
  text-wrap: pretty;
}

.body-text {
  max-width: 70ch;
}

/* Hero copy width discipline */
.homev0-hero-copy,
.hero-content {
  max-width: 680px;
}

/* Section intro text discipline */
.section-intro {
  max-width: 760px;
  margin-inline: auto;
}

/* Header logo breathing room */
.site-header .header-inner {
  padding-block: 1.125rem;
}

.logo .logo-mark {
  height: 42px;
  width: auto;
}

.footer-gem {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
  position: relative;
  top: -1px;
}

/* Additional utilities */
.text-inverse { color: var(--color-text-inverse); }
.text-faint-inverse { color: rgba(224, 228, 234, 0.5); }
.hero-img--cover { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }
.hero-img--480 { max-height: 480px; }
.hero-img--420 { max-height: 420px; }
.hero-img--400 { max-height: 400px; }
.hero-img--380 { max-height: 380px; }
.mt-4-inline { margin-top: var(--space-4); display: inline-flex; }
.mb-6 { margin-bottom: var(--space-6); }
.presence-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.gap-8 { gap: var(--space-8); }
.emoji-icon { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.footer-legal { font-size: var(--text-xs); color: rgba(224, 228, 234, 0.45); margin-top: var(--space-4); line-height: 1.5; }
