/* =========================================================
   Total Tox, Design System
   Bronx, NY · Drug Testing & Occupational Health
   ========================================================= */

:root {
  /* Brand, deep navy + sky blue */
  --color-primary:        #06122a;
  --color-primary-dark:   #030914;
  --color-primary-mid:    #0b1f3d;
  --color-primary-soft:   #f0f5fb;
  --color-accent:         #0ea5e9;
  --color-accent-dark:    #0284c7;
  --color-accent-light:   #38bdf8;
  --color-accent-soft:    #e0f2fe;

  /* Neutrals */
  --color-bg:             #ffffff;
  --color-surface:        #ffffff;
  --color-surface-alt:    #f8fafc;
  --color-text:           #06122a;
  --color-text-muted:     #475569;
  --color-text-soft:      #64748b;
  --color-border:         #e2e8f0;
  --color-border-strong:  #cbd5e1;

  /* Semantic */
  --color-success:        #059669;
  --color-success-soft:   #d1fae5;
  --color-danger:         #b91c1c;

  /* Type */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Sizing */
  --container: 1200px;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-pill:  999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Effects */
  --shadow-sm:  0 1px 2px rgba(6,18,42,0.06);
  --shadow:     0 4px 20px -2px rgba(6,18,42,0.08);
  --shadow-lg:  0 24px 48px -12px rgba(6,18,42,0.18);
  --shadow-xl:  0 32px 64px -16px rgba(6,18,42,0.24);
  --transition: 220ms cubic-bezier(.2,.7,.3,1);
}

/* =========================================================
   Reset & Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--color-accent); color: white; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }

.section { padding: var(--space-9) 0; }
@media (min-width: 768px) { .section { padding: var(--space-10) 0; } }

.section-tight { padding: var(--space-8) 0; }

.dark-section { background: var(--color-primary); color: white; position: relative; overflow: hidden; }
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: white; }
.dark-section p { color: #cbd5e1; }

.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,0.18), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(14,165,233,0.12), transparent 50%);
  pointer-events: none;
}
.dark-section > * { position: relative; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-pill);
}

.dark-section .eyebrow {
  background: rgba(14,165,233,0.12);
  color: var(--color-accent-light);
  border: 1px solid rgba(56,189,248,0.3);
  backdrop-filter: blur(8px);
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent-light);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1, .h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2, .h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  line-height: 1.1;
}

h3, .h3 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
  line-height: 1.2;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.dark-section .lead { color: #cbd5e1; }

.accent { color: var(--color-accent); }
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn-ghost {
  background: white;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-ghost:hover {
  border-color: var(--color-text);
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.dark-section .btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.dark-section .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: white;
}

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

/* =========================================================
   Top Utility Bar + Navbar
   ========================================================= */

.topbar {
  background: var(--color-primary-dark);
  color: white;
  font-size: 12px;
}
.topbar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) { .topbar-inner { flex-direction: row; } }
.topbar a {
  color: var(--color-accent-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a:hover { color: var(--color-accent-soft); }
.topbar .info { color: #cbd5e1; }
.topbar .info strong { color: white; font-weight: 600; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.brand-name .accent { color: var(--color-accent); }
.brand-sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-soft);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.nav-links a:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}
.nav-links a.active { color: var(--color-text); font-weight: 600; }

.nav-cta {
  display: none;
  gap: 12px;
  align-items: center;
}
@media (min-width: 1024px) { .nav-cta { display: flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.nav-toggle:hover { background: var(--color-surface-alt); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: white;
  padding: 16px 0;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
}
.mobile-menu a:hover { background: var(--color-surface-alt); }
.mobile-menu .mobile-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

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

.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-9);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: var(--space-9) 0 var(--space-10); } }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,0.18), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(14,165,233,0.12), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  margin-top: var(--space-6);
}

.hero-lead {
  margin-top: var(--space-5);
  max-width: 540px;
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-7);
}

.hero-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: var(--space-8);
  max-width: 480px;
}
.hero-checks > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.hero-checks svg { width: 16px; height: 16px; color: var(--color-accent-light); flex-shrink: 0; }

/* Hero visual card */
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -32px;
  background: radial-gradient(circle, rgba(56,189,248,0.25), transparent 70%);
  filter: blur(40px);
  border-radius: 60px;
}
.hero-card {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #15315a, #06122a);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(56,189,248,0.35), transparent 55%),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  opacity: 0.6;
}
.hero-card > * { position: relative; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(16,185,129,0.2);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(110,231,183,0.3);
  border-radius: var(--radius-pill);
  align-self: flex-end;
}

.result-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5);
  backdrop-filter: blur(8px);
}
.result-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.result-card-meta .label { color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.result-card-meta .status { background: rgba(16,185,129,0.2); color: #6ee7b7; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }
.result-card-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
.result-card-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12px;
}
.result-card-grid > div {
  display: flex; align-items: center; gap: 6px;
  color: #cbd5e1;
}
.result-card-grid svg { width: 12px; height: 12px; color: #6ee7b7; }

.hero-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat {
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  backdrop-filter: blur(8px);
}
.hero-stat svg { width: 20px; height: 20px; color: var(--color-accent-light); }
.hero-stat-value { margin-top: 8px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: white; }
.hero-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; }

.hero-floater {
  position: absolute;
  display: none;
  background: white;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}
@media (min-width: 768px) { .hero-floater { display: block; } }
.hero-floater.left { top: 25%; left: -24px; transform: rotate(-6deg); }
.hero-floater.right { bottom: 30%; right: -16px; transform: rotate(5deg); background: var(--color-accent); color: white; border-color: var(--color-accent); }
.hero-floater .meta { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent-dark); }
.hero-floater.right .meta { color: #bae6fd; }
.hero-floater .title { margin-top: 4px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--color-text); }
.hero-floater.right .title { color: white; }

/* =========================================================
   Trust bar
   ========================================================= */

.trust-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: white;
  padding: var(--space-6) 0;
}
.trust-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-text-soft);
}
.trust-badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
}
.trust-badges span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-soft);
  transition: color var(--transition);
}
.trust-badges span:hover { color: var(--color-text); }

/* =========================================================
   Stats Grid
   ========================================================= */

.stats-grid {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: white;
  padding: var(--space-6);
  transition: background var(--transition);
}
.stat:hover { background: var(--color-surface-alt); }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}
.stat-label { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.stat-sub { margin-top: 4px; font-size: 12px; color: var(--color-text-soft); }

/* =========================================================
   Section Headers
   ========================================================= */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: var(--space-7);
}
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head .col { max-width: 640px; }

.head-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.head-link:hover { color: var(--color-accent); }
.head-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.head-link:hover svg { transform: translate(2px, -2px); }

/* =========================================================
   Service Grid
   ========================================================= */

.service-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
}

.service-featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #15315a, #06122a);
  color: white;
  padding: var(--space-7);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .service-featured { grid-column: span 2; grid-row: span 2; padding: var(--space-8); }
}
.service-featured:hover { box-shadow: var(--shadow-xl); color: white; }
.service-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(56,189,248,0.25), transparent 50%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  opacity: 0.5;
}
.service-featured > * { position: relative; }
.service-featured-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  background: rgba(14,165,233,0.12);
  color: var(--color-accent-light);
  border: 1px solid rgba(56,189,248,0.3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
}
.service-featured-body { margin-top: auto; padding-top: var(--space-7); }
.service-featured-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius);
  color: white;
}
.service-featured-icon svg { width: 32px; height: 32px; }
.service-featured h3 { margin-top: 24px; font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); color: white; }
.service-featured p { margin-top: 12px; max-width: 480px; color: #cbd5e1; line-height: 1.6; }
.service-featured-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-size: 14px; font-weight: 600;
  color: var(--color-accent-light);
}
.service-featured-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.service-featured:hover .service-featured-link svg { transform: translateX(4px); }

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.5);
  box-shadow: var(--shadow);
  color: inherit;
}
.service-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-card:hover .service-card-icon {
  background: var(--color-primary);
  color: var(--color-accent-light);
}
.service-card-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  margin-top: 20px;
  font-size: 1.125rem;
  font-weight: 700;
}
.service-card p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  flex: 1;
}
.service-card-arrow {
  margin-top: 16px;
  width: 16px; height: 16px;
  color: var(--color-text-soft);
  transition: color var(--transition);
}
.service-card:hover .service-card-arrow { color: var(--color-accent); }

.service-list-row {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 640px) { .service-list-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .service-list-row { grid-template-columns: repeat(3, 1fr); } }

.service-list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.service-list-card:hover {
  border-color: rgba(56,189,248,0.5);
  box-shadow: var(--shadow);
  color: inherit;
}
.service-list-card-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-alt);
  color: var(--color-text);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-list-card:hover .service-list-card-icon {
  background: var(--color-accent);
  color: white;
}
.service-list-card-icon svg { width: 24px; height: 24px; }
.service-list-card-text { min-width: 0; flex: 1; }
.service-list-card-text h3 { font-size: 1rem; font-weight: 700; }
.service-list-card-text p { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   Why Us
   ========================================================= */

.why-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 1024px) { .why-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); } }

.why-intro { position: sticky; top: 120px; }

.why-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-card {
  display: flex;
  gap: 24px;
  padding: var(--space-6);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.why-card-number {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.why-card-number span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-border-strong);
}
.why-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: var(--color-accent-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.why-card:hover .why-card-icon {
  background: var(--color-accent);
  color: white;
}
.why-card-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.25rem; }
.why-card p { margin-top: 8px; color: var(--color-text-muted); line-height: 1.65; }

/* =========================================================
   How It Works
   ========================================================= */

.steps {
  display: grid;
  gap: var(--space-7);
  margin-top: var(--space-8);
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(14,165,233,0.4);
}
.step h3 { color: white; margin-top: 16px; font-size: 1.5rem; }
.step p { color: #cbd5e1; margin-top: 12px; line-height: 1.65; }

/* =========================================================
   Industries Grid (home)
   ========================================================= */

.industry-list {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .industry-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .industry-list { grid-template-columns: repeat(3, 1fr); } }

.industry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--space-5);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.industry-row:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.industry-row-left { display: flex; align-items: center; gap: 16px; }
.industry-row-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-border-strong);
  transition: color var(--transition);
}
.industry-row:hover .industry-row-num { color: var(--color-accent-light); }
.industry-row h3 { font-size: 1.125rem; }
.industry-row:hover h3 { color: white; }
.industry-row p { font-size: 12px; color: var(--color-text-soft); }
.industry-row:hover p { color: #94a3b8; }
.industry-row-arrow { width: 18px; height: 18px; color: var(--color-border-strong); transition: color var(--transition); }
.industry-row:hover .industry-row-arrow { color: var(--color-accent-light); }

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

.testimonial-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  position: relative;
  padding: var(--space-7);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-dark { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.testimonial-quote { width: 32px; height: 32px; color: rgba(14,165,233,0.4); }
.testimonial-dark .testimonial-quote { color: var(--color-accent-light); }
.testimonial-stars {
  display: flex; gap: 2px; margin-top: 16px;
  color: #f59e0b;
}
.testimonial-dark .testimonial-stars { color: var(--color-accent-light); }
.testimonial-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial blockquote {
  margin: 20px 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text);
}
.testimonial-dark blockquote { color: white; }
.testimonial figcaption {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.testimonial-dark figcaption { border-color: rgba(255,255,255,0.1); }
.testimonial-author { font-family: var(--font-display); font-weight: 700; color: var(--color-text); }
.testimonial-dark .testimonial-author { color: white; }
.testimonial-role { font-size: 14px; color: var(--color-text-soft); }
.testimonial-dark .testimonial-role { color: #94a3b8; }

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

.faq-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); } }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  transition: all var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.125rem; }
.faq-item-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-alt);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: all var(--transition);
}
.faq-item[open] .faq-item-icon {
  background: var(--color-accent);
  color: white;
  transform: rotate(45deg);
}
.faq-item p { margin-top: 16px; color: var(--color-text-muted); line-height: 1.65; }

/* =========================================================
   CTA Section
   ========================================================= */

.cta-section {
  position: relative;
  padding: var(--space-9) 0;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  text-align: center;
  color: white;
}
.cta-section .center { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-section .lead { margin-top: 24px; text-align: center; font-size: 1.125rem; }
.cta-section .buttons {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: var(--space-7);
}

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

footer {
  background: var(--color-primary);
  color: #cbd5e1;
  padding: var(--space-8) 0 var(--space-6);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } }

footer .brand-name { color: white; }
footer .brand-sub { color: #94a3b8; }

footer h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
}
footer ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: #cbd5e1; font-size: 14px; }
footer ul a:hover { color: var(--color-accent-light); }

.footer-about p { font-size: 14px; line-height: 1.7; color: #cbd5e1; margin-top: 16px; }
.footer-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags span {
  padding: 4px 12px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-accent-light);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
}

.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #cbd5e1; }
.footer-contact svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--color-accent-light); margin-top: 2px; }
.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: var(--color-accent-light); }
.footer-contact .footer-walkin { color: var(--color-accent-light); }

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* =========================================================
   Sub-Page Hero (services, about, etc.)
   ========================================================= */

.subhero {
  position: relative;
  padding: var(--space-8) 0;
  overflow: hidden;
}
@media (min-width: 768px) { .subhero { padding: var(--space-9) 0; } }
.subhero .center { text-align: center; max-width: 800px; margin: 0 auto; }
.subhero h1 { margin-top: var(--space-5); }
.subhero p.lead { margin-top: 20px; }

/* =========================================================
   Service Detail Sections (services.html)
   ========================================================= */

.service-jump {
  position: sticky;
  top: 80px;
  z-index: 30;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}
.service-jump-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.service-jump-row a {
  flex-shrink: 0;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.service-jump-row a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.service-detail {
  display: grid;
  gap: var(--space-7);
  align-items: center;
  scroll-margin-top: 160px;
}
@media (min-width: 1024px) { .service-detail { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.service-detail-icon-wrap {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-radius: var(--radius-lg);
}
.service-detail-icon-wrap svg { width: 28px; height: 28px; }
.service-detail h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); margin-top: 16px; }
.service-detail .tagline { margin-top: 16px; }
.service-detail p.lead { margin-top: 16px; }
.service-detail-buttons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.feature-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary-soft), white);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.feature-card-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-text-soft);
}
.feature-card ul {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .feature-card ul { grid-template-columns: 1fr 1fr; } }
.feature-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--color-text); }
.feature-card li svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--color-accent); margin-top: 3px; }

.alt-row .service-detail { direction: rtl; }
.alt-row .service-detail > * { direction: ltr; }

/* =========================================================
   Industries detail page
   ========================================================= */

.industry-card {
  position: relative;
  padding: var(--space-6);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.5);
  box-shadow: var(--shadow);
}
.industry-card-head { display: flex; align-items: center; gap: 16px; }
.industry-card-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.industry-card:hover .industry-card-icon { background: var(--color-accent); color: white; }
.industry-card-icon svg { width: 28px; height: 28px; }
.industry-card h2 { font-size: 1.25rem; }
.industry-card p { margin-top: 16px; color: var(--color-text-muted); line-height: 1.65; }
.industry-card-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.industry-card-tags span {
  padding: 4px 12px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 11px; font-weight: 600;
  border-radius: var(--radius-pill);
}

.industries-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) { .industries-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   About page
   ========================================================= */

.about-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }

.about-body p {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.about-body p:first-child { margin-top: 0; }

.values-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: 1fr 1fr; } }

.value-card {
  padding: var(--space-6);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.value-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: var(--color-accent-light);
  border-radius: var(--radius);
}
.value-card-icon svg { width: 22px; height: 22px; }
.value-card h3 { margin-top: 20px; font-size: 1.25rem; }
.value-card p { margin-top: 12px; color: var(--color-text-muted); line-height: 1.65; }

.certs-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) { .certs-grid { grid-template-columns: 1fr 1fr; } }
.cert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cert svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-accent); margin-top: 2px; }
.cert span { font-size: 14px; font-weight: 600; color: var(--color-text); }

.about-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.about-stat {
  padding: var(--space-5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.about-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1;
}
.about-stat-label { margin-top: 8px; font-size: 14px; color: #cbd5e1; }

/* =========================================================
   Contact page
   ========================================================= */

.contact-grid {
  display: grid;
  gap: var(--space-7);
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }

.contact-form-wrap {
  padding: var(--space-7);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.contact-form { display: grid; gap: 20px; margin-top: var(--space-6); }
.contact-form .row { display: grid; gap: 20px; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.contact-form label .req { color: var(--color-accent); margin-left: 2px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: white;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  outline: none;
  transition: all var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form-fine { font-size: 12px; color: var(--color-text-soft); margin-top: 4px; }

.contact-info {
  padding: var(--space-7);
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  color: white;
  box-shadow: var(--shadow-lg);
}
.contact-info h2 { color: white; font-size: 1.5rem; }
.contact-info > p { color: #cbd5e1; margin-top: 8px; }
.contact-info ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 20px; }
.contact-info li { display: flex; gap: 12px; font-size: 14px; color: #cbd5e1; line-height: 1.6; }
.contact-info svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-accent-light); margin-top: 2px; }
.contact-info strong { color: white; font-weight: 600; }
.contact-info a { color: white; }
.contact-info a:hover { color: var(--color-accent-light); }
.contact-info .walkin { color: var(--color-accent-light); }

.contact-map {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* =========================================================
   Blog
   ========================================================= */

.blog-featured {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.blog-featured:hover { box-shadow: var(--shadow); color: inherit; }
.blog-featured-grid {
  display: grid;
}
@media (min-width: 1024px) { .blog-featured-grid { grid-template-columns: 1fr 1fr; } }

.blog-featured-art {
  position: relative;
  aspect-ratio: 5/4;
  background: linear-gradient(160deg, #15315a, #06122a);
  overflow: hidden;
}
@media (min-width: 1024px) { .blog-featured-art { aspect-ratio: auto; } }
.blog-featured-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(56,189,248,0.4), transparent 55%),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  opacity: 0.7;
}
.blog-featured-art-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: rgba(255,255,255,0.1);
  letter-spacing: -0.04em;
}
.blog-featured-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 6px 12px;
  background: var(--color-accent);
  color: white;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
}
.blog-featured-body { padding: var(--space-7); display: flex; flex-direction: column; }
.blog-featured-cat {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-accent-dark);
}
.blog-featured-body h2 { margin-top: 12px; font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
.blog-featured-body p { margin-top: 16px; color: var(--color-text-muted); line-height: 1.65; }
.blog-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 20px;
  font-size: 13px; color: var(--color-text-soft);
}
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta svg { width: 14px; height: 14px; }
.blog-featured-link { margin-top: auto; padding-top: 28px; }
.blog-featured-link a {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--color-accent-dark);
}
.blog-featured-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.blog-featured:hover .blog-featured-link svg { transform: translateX(4px); }

.blog-grid {
  display: grid;
  gap: 24px;
  margin-top: var(--space-6);
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-7);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.5);
  box-shadow: var(--shadow);
  color: inherit;
}
.blog-card-top { display: flex; align-items: center; justify-content: space-between; }
.blog-card-top span {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-accent-dark);
}
.blog-card-top svg { width: 16px; height: 16px; color: var(--color-border-strong); transition: color var(--transition); }
.blog-card:hover .blog-card-top svg { color: var(--color-accent); }
.blog-card h3 { margin-top: 12px; font-size: 1.375rem; }
.blog-card p { margin-top: 12px; flex: 1; color: var(--color-text-muted); line-height: 1.65; font-size: 14px; }

/* Blog post page */
.post-hero { padding-bottom: var(--space-6); }
.post-hero .crumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}
.post-hero .crumbs a { color: #cbd5e1; }
.post-hero .crumbs a:hover { color: var(--color-accent-light); }
.post-hero .crumbs span.sep { color: #475569; }
.post-hero .crumbs span.current { color: #cbd5e1; }
.post-hero .eyebrow { margin-top: 28px; }
.post-hero h1 { margin-top: 24px; font-size: clamp(2.25rem, 3vw + 1.5rem, 3.5rem); }
.post-hero .desc { margin-top: 24px; font-size: 1.125rem; line-height: 1.6; max-width: 800px; }
.post-hero .meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 28px;
  font-size: 14px;
  color: #cbd5e1;
}
.post-hero .meta strong { color: white; }
.post-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero .meta svg { width: 16px; height: 16px; }

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.article-body p {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.article-body p:first-child { margin-top: 0; }
.article-body p strong { color: var(--color-text); font-weight: 600; }
.article-body p em { font-style: italic; }

.article-body h2 {
  margin-top: var(--space-7);
  font-size: 1.75rem;
}
.article-body h3 {
  margin-top: var(--space-6);
  font-size: 1.375rem;
}

.article-body ul, .article-body ol {
  margin-top: 20px;
  padding-left: 24px;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}
.article-body ul li, .article-body ol li {
  margin-top: 8px;
}
.article-body ul li strong, .article-body ol li strong { color: var(--color-text); font-weight: 600; }
.article-body ul ul { margin-top: 8px; }

.callout {
  margin: var(--space-7) 0;
  padding: var(--space-6);
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}
.callout-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-accent-dark);
}
.callout p {
  margin-top: 10px !important;
  font-size: 1rem !important;
  color: var(--color-text) !important;
  line-height: 1.65 !important;
}

.post-cta {
  margin-top: var(--space-8);
  padding: var(--space-7);
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  color: white;
}
.post-cta h2 { color: white; font-size: 1.75rem; }
.post-cta p { margin-top: 12px; color: #cbd5e1; }
.post-cta .buttons { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.back-link {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.back-link a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--color-text-muted);
}
.back-link a:hover { color: var(--color-accent); }
.back-link svg { width: 16px; height: 16px; }

.related {
  margin-top: 0;
  padding: var(--space-8) 0;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}
.related h2 { font-size: 1.75rem; }
.related-grid {
  display: grid;
  gap: 24px;
  margin-top: var(--space-6);
}
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Thanks page
   ========================================================= */

.thanks {
  padding: var(--space-9) 0;
  text-align: center;
}
.thanks-icon {
  width: 80px; height: 80px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-success-soft);
  color: var(--color-success);
  border-radius: 50%;
}
.thanks-icon svg { width: 40px; height: 40px; }
.thanks h1 { margin-top: 28px; }
.thanks p { margin-top: 20px; max-width: 540px; margin-left: auto; margin-right: auto; }
.thanks .buttons { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

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

.center-block { display: flex; align-items: center; justify-content: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
