/*
 * global.css — Design system tokens and base styles
 * No frameworks. Pure CSS custom properties.
 * Extend this file to build your design; do not add inline or component-scoped
 * styles until truly necessary.
 */

/* ═══════════════════════════════════════════════
   1. TOKENS — Edit here to theme the whole site
   ═══════════════════════════════════════════════ */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-navy: #0f1f2e;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --color-surface: #f9fafb;

  /* Typography */
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* Layout */
  --container-max: 72rem;
  --container-padding: 1.5rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ═══════════════════════════════════════════════
   2. RESET
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-base);
  min-height: 100dvh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   3. LAYOUT UTILITIES
   ═══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* ═══════════════════════════════════════════════
   4. COMPONENTS
   ═══════════════════════════════════════════════ */

/* ── Shared: header + footer inner row ── */
.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* ── Logo ── */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-icon {
  color: var(--color-navy);
  flex-shrink: 0;
}

/* ── Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: 0;
  transition: opacity 140ms ease;
}

.site-nav a:hover {
  opacity: 0.6;
}

/* ── Header ── */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding-block: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Header right (CTA area) ── */
.header-right {
  flex-shrink: 0;
}

/* ── CTA pill button ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 150ms ease;
}

.btn-cta:hover {
  background: color-mix(in srgb, var(--color-navy) 85%, white);
}

/* ── Footer (mirrors header exactly) ── */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: 1rem;
}

.site-footer-right {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ── Hero Section ── */
.hero-section {
  background: #edf1f5;
  padding-block: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 540px;
}

/* Left text column */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-right: 1rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-navy);
}

.hero-body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475569;
  max-width: 44ch;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-cta--secondary {
  background: white;
  color: var(--color-navy);
  border: 1px solid #d1d5db;
}

.btn-cta--secondary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Right image */
.hero-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 540px;
}

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

/* Translucent pill overlay */
.hero-pill-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 1.5rem 3rem;
  border-radius: 99px;
  display: flex;
  gap: 4rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.pill-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 80px;
}

.pill-title {
  font-weight: 800;
  color: var(--color-navy);
  font-size: 0.875rem;
}

.pill-sub {
  color: #64748b;
  font-size: 0.75rem;
}

/* ── Essence Hero Section ── */
.essence-section {
  background: #edf1f5;
  padding-block: 4rem;
  overflow: hidden;
}

.essence-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
  min-height: 480px;
}

/* Left text column */
.essence-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-right: 1rem;
}

.essence-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.essence-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

.essence-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3d4f62;
  max-width: 38ch;
}

/* Center image */
.essence-img-main {
  border-radius: 1.25rem;
  overflow: hidden;
}

/* Right column */
.essence-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Dark navy mood card */
.essence-mood-card {
  background: #0f1f2e;
  border-radius: 1.25rem;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

.essence-mood-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a9eff;
}

.essence-mood-headline {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.essence-mood-body {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* Small image bottom-right */
.essence-img-small {
  border-radius: 1.25rem;
  overflow: hidden;
  flex: 0 0 38%;
}

.essence-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section */
.section {
  padding-block: var(--space-xl);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

/* Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-body {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Footer — mirrors .site-header layout */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-md);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer-right {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 150ms ease;
}

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

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

/* ── Why Page ── */
.why-section {
  background: #edf1f5;
  padding-block: 3rem;
}

.why-panel {
  background: var(--color-navy);
  border-radius: 1.5rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.why-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a9eff;
}

.why-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 18ch;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.why-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.why-card-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* Active nav link */
.site-nav a[aria-current="page"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ══════════════════════════════════════
   Services Page
   ══════════════════════════════════════ */

/* ── Section 1: split hero ── */
.svc-hero {
  background: #ffffff;
  padding-block: 3rem;
}

.svc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.svc-hero-img {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.svc-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.svc-hero-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

.svc-hero-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3d4f62;
}

/* Numbered step cards row */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.svc-step {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.svc-step-num {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.svc-step-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
}

.svc-step-body {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* ── Section 2: service cards ── */
.svc-cards-section {
  background: #edf1f5;
  padding-block: 3.5rem;
}

.svc-cards-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.svc-cards-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  max-width: 24ch;
  margin-bottom: 2rem;
}

.svc-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.svc-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Blue radial glow at bottom of card */
.svc-card-glow {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.svc-card-num {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.svc-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.svc-card-body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════
   Contact Page
   ══════════════════════════════════════ */

.contact-section {
  background: #edf1f5;
  padding-block: 3rem 4rem;
}

.contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.contact-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-navy);
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  align-items: stretch;
  min-height: 480px;
}

/* Left: stacked cards */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.contact-card-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.contact-address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-navy);
  font-weight: 500;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.125rem;
}

.contact-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  transition: color 150ms;
}

.contact-link:hover {
  color: #2563eb;
}

/* CTA card */
.contact-card--cta {
  background: var(--color-navy);
  border-color: var(--color-navy);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.contact-cta-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.contact-btn {
  align-self: flex-start;
}

/* Right: map */
.contact-map {
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 400px;
  filter: saturate(0.8) brightness(1.05);
}

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVENESS
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Typography */
  .hero-headline {
    font-size: 2.25rem;
  }

  .essence-headline {
    font-size: 2.25rem;
  }

  .why-headline {
    font-size: 2.25rem;
  }

  .svc-hero-headline {
    font-size: 2.25rem;
  }

  .svc-cards-headline {
    font-size: 2.25rem;
  }

  .contact-headline {
    font-size: 2.5rem;
  }

  /* Navigation & Footer */
  .header-inner,
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Homepage Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-text {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .hero-visual {
    height: 380px;
  }

  .hero-pill-overlay {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    width: 90%;
    bottom: -4rem;
  }

  .hero-section {
    padding-bottom: 7rem;
  }

  .pill-stat {
    text-align: center;
  }

  /* Essence Hero (/why Top) */
  .essence-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .essence-text {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .essence-img-main {
    height: 300px;
  }

  .essence-img-small {
    display: none;
  }

  /* WhyHero (Bottom panels) */
  .why-cards {
    grid-template-columns: 1fr;
  }

  .why-panel {
    padding: 2.5rem 1.5rem;
  }

  /* Services Hero */
  .svc-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .svc-hero-content {
    align-items: center;
    text-align: center;
  }

  .svc-steps {
    grid-template-columns: 1fr;
  }

  /* Services Cards */
  .svc-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}