/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  --clr-navy:          #0a1b3b;
  --clr-navy-mid:      #112248;
  --clr-navy-card:     #152d5c;
  --clr-navy-hover:    #0f2552;
  --clr-red:           #c8392d;
  --clr-red-light:     #e05045;
  --clr-surface:       #ffffff;
  --clr-bg:            #f4f7fb;
  --clr-bg-alt:        #eef2f9;
  --clr-text:          #0f1f3d;
  --clr-text-muted:    #4a5670;
  --clr-on-dark:       #dce6f4;
  --clr-on-dark-muted: #8a9bbf;
  --clr-border:        #dde4ef;
  --clr-border-dark:   #1d3460;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 4px rgba(10,27,59,.07);
  --shadow-md: 0 4px 18px rgba(10,27,59,.10);
  --shadow-lg: 0 12px 40px rgba(10,27,59,.14);

  --nav-h: 68px;
  --max-w: 1200px;
  --section-v: 88px;

  --transition: 200ms ease;
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-navy); /* fallback while parallax loads */
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── Typography Scale ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--clr-text);
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.on-dark .eyebrow, .on-dark p { color: var(--clr-on-dark); }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { max-width: 72ch; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 62ch;
}

.on-dark .lead { color: var(--clr-on-dark-muted); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: .75rem;
}

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

section { padding-block: var(--section-v); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding-block: 56px; }
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-red);
  color: #fff;
  border-color: var(--clr-red);
}
.btn-primary:hover {
  background: var(--clr-red-light);
  border-color: var(--clr-red-light);
  box-shadow: 0 6px 20px rgba(200,57,45,.32);
}

.btn-outline {
  background: transparent;
  color: var(--clr-on-dark);
  border-color: rgba(220,230,244,.35);
}
.btn-outline:hover {
  border-color: var(--clr-on-dark);
  background: rgba(220,230,244,.08);
}

.btn-outline-red {
  background: transparent;
  color: var(--clr-red);
  border-color: var(--clr-red);
}
.btn-outline-red:hover {
  background: var(--clr-red);
  color: #fff;
}

.btn-sm { padding: .55rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .9rem 2.25rem; font-size: 1rem; }

/* ─── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--clr-red);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ─── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--clr-navy);
  border-bottom: 1px solid var(--clr-border-dark);
  transition: box-shadow .3s;
}

.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-on-dark-muted);
  padding: .45rem .8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-on-dark);
  background: rgba(220,230,244,.08);
}

/* Dropdown */
.nav-item { position: relative; }

.nav-dropdown {
  position: absolute;
  top: 100%;           /* flush — no gap for the cursor to fall through */
  left: 50%;
  background: var(--clr-navy-mid);
  border: 1px solid var(--clr-border-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  /* top padding provides the visual spacing that was the gap */
  padding: .5rem .5rem .5rem;
  padding-top: .75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  /* delay hiding by 80 ms so a slow mouse crossing the seam doesn't close it */
  transition: opacity .18s .08s, transform .18s .08s;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* open immediately — no delay */
  transition: opacity .15s 0s, transform .15s 0s;
}

.nav-dropdown a {
  display: block;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  color: var(--clr-on-dark-muted);
  padding: .55rem .9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown a:hover {
  color: var(--clr-on-dark);
  background: rgba(220,230,244,.09);
}

.nav-actions { display: flex; align-items: center; gap: .75rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-on-dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--clr-navy);
  z-index: 850;
  overflow-y: auto;
  padding: 1.5rem;
  flex-direction: column;
  gap: .25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-on-dark-muted);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: color var(--transition), background var(--transition);
}

.mobile-drawer a:hover { color: var(--clr-on-dark); background: rgba(220,230,244,.08); }

.mobile-drawer .drawer-divider {
  height: 1px;
  background: var(--clr-border-dark);
  margin-block: .75rem;
}

.mobile-drawer .btn { width: 100%; justify-content: center; margin-top: .5rem; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-drawer { display: flex; }
}

/* ─── Page Padding Offset ───────────────────────────────────── */
main { padding-top: var(--nav-h); }

/* ─── Global Parallax Background ───────────────────────────── */
/* Single fixed element that scrolls slowly behind all dark sections.
   JS in main.js drives backgroundPositionY for the actual parallax motion.
   Light sections (white/gray) cover it naturally with their solid backgrounds.
   Dark sections use rgba() backgrounds to let the parallax show through.    */
#parallax-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  will-change: background-position;
  pointer-events: none;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background-color: transparent; /* parallax shows through */
  position: relative;
  overflow: hidden;
  padding-block: 96px 80px;
}

/* Dark navy overlay — tints the parallax to keep text readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 27, 59, 0.86);
  z-index: 0;
  pointer-events: none;
}

/* Colour accent glow on top of the overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 75% 50%, rgba(200,57,45,.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 20% 20%, rgba(41,121,255,.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-red-light);
  margin-bottom: 1rem;
}

.hero h1 { color: var(--clr-on-dark); margin-bottom: 1.25rem; }
.hero .lead { color: var(--clr-on-dark-muted); margin-bottom: 2rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(29,52,96,.45);
  border: 1px solid rgba(29,52,96,.65);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.hero-stat {
  background: rgba(10,27,59,.60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background var(--transition);
}

.hero-stat:hover {
  background: rgba(15,37,82,.72);
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-on-dark);
  display: block;
  line-height: 1;
  margin-bottom: .4rem;
}

.hero-stat-num span { color: var(--clr-red-light); }
.hero-stat-label { font-size: .82rem; color: var(--clr-on-dark-muted); font-weight: 500; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-block: 72px 56px; }
}

/* ─── Proof Strip ───────────────────────────────────────────── */
.proof-strip {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}

.proof-strip-header {
  padding: 28px 0 20px;
  text-align: center;
}

.proof-label {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* Scrolling marquee wrapper — fades edges with mask */
.proof-marquee-wrapper {
  overflow: hidden;
  padding-bottom: 32px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

/* Single track: items duplicated inside for seamless loop */
.proof-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: proof-scroll 70s linear infinite;
}

.proof-marquee-track:hover { animation-play-state: paused; }

@keyframes proof-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .proof-marquee-track { animation: none; }
}

/* Brand badge */
.proof-logo-item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  padding: .7rem 1.1rem .7rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  filter: grayscale(100%) opacity(.5);
  transition: filter .3s ease, box-shadow .3s ease, transform .2s ease;
  cursor: default;
  user-select: none;
}

.proof-logo-item:hover {
  filter: grayscale(0%) opacity(1);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

.proof-favicon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: contain;
}

.proof-logo-name {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
}

.proof-logo-item:hover .proof-logo-name { color: var(--clr-text); }

/* ─── Section Header ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { margin-inline: auto; color: var(--clr-text-muted); margin-top: .75rem; }
.section-header.left { text-align: left; }
.section-header.left p { margin-inline: 0; }

/* ─── Service Cards ─────────────────────────────────────────── */

/* Explicit background prevents parallax from showing through this light section */
.services-section {
  background: var(--clr-bg);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* centers orphaned last-row items */
}

.service-card {
  flex: 1 1 260px;
  max-width: calc(33.33% - 1rem); /* cap at 3 per row; flex handles 1 & 2-col breakpoints */
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

@media (max-width: 900px) {
  .service-card { max-width: calc(50% - .75rem); }
}

@media (max-width: 560px) {
  .service-card { max-width: 100%; }
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--clr-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.service-card:hover {
  border-color: var(--clr-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--clr-red);
}

.service-card h3 { margin-bottom: .6rem; }
.service-card p { color: var(--clr-text-muted); font-size: .94rem; margin-bottom: 1.25rem; }

.service-link {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-red);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}

.service-link:hover { gap: .6rem; }

/* ─── How It Works ──────────────────────────────────────────── */
/* rgba lets the global parallax-bg show through */
.how-it-works { background: rgba(10,27,59,.90); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3.5rem;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.6% + 1rem);
  right: calc(16.6% + 1rem);
  height: 1px;
  background: var(--clr-border-dark);
  pointer-events: none;
}

.how-step { text-align: center; padding: 2rem 1.5rem; }

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-navy-card);
  border: 1px solid var(--clr-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-red-light);
}

.how-step h3 { color: var(--clr-on-dark); margin-bottom: .6rem; }
.how-step p { color: var(--clr-on-dark-muted); font-size: .94rem; margin-inline: auto; }

@media (max-width: 700px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
}

/* ─── Value Props ───────────────────────────────────────────── */
.value-props { background: var(--clr-bg); }

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center; /* centers orphaned last-row items */
}

.value-item {
  flex: 1 1 220px;
  max-width: calc(33.33% - 1rem); /* max 3 per row; 2 rows of 3 = perfectly even */
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

@media (max-width: 700px) {
  .value-item { max-width: calc(50% - .75rem); }
}

@media (max-width: 480px) {
  .value-item { max-width: 100%; }
}

.value-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.value-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,57,45,.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-red);
  margin-bottom: 1rem;
}

.value-item h4 { margin-bottom: .4rem; }
.value-item p { color: var(--clr-text-muted); font-size: .9rem; max-width: 100%; }

/* ─── Case Studies Teaser ───────────────────────────────────── */
.case-teaser {
  background: var(--clr-surface);
}

.case-teaser-card {
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}

.case-teaser-card h3 { margin-bottom: .75rem; }
.case-teaser-card p { color: var(--clr-text-muted); margin-inline: auto; margin-bottom: 2rem; }

/* ─── CTA Banner ────────────────────────────────────────────── */
/* rgba lets the global parallax-bg show through */
.cta-banner {
  background: rgba(10,27,59,.88);
  text-align: center;
  padding-block: 80px;
}

.cta-banner h2 { color: var(--clr-on-dark); margin-bottom: 1rem; }
.cta-banner p { color: var(--clr-on-dark-muted); margin-inline: auto; margin-bottom: 2rem; }
.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

/* ─── Blog Cards ────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.blog-card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }

.blog-card-meta {
  font-size: .8rem;
  color: var(--clr-text-muted);
  margin-bottom: .6rem;
  display: flex;
  gap: .75rem;
  align-items: center;
}

.blog-card-cat {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-red);
}

.blog-card h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.blog-card h3 a { transition: color var(--transition); }
.blog-card h3 a:hover { color: var(--clr-red); }
.blog-card p { color: var(--clr-text-muted); font-size: .9rem; flex: 1; }

.blog-card-footer {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--clr-border);
  font-size: .83rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-read-more {
  font-family: var(--font-head);
  font-size: .83rem;
  font-weight: 600;
  color: var(--clr-red);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition);
}

.blog-read-more:hover { gap: .55rem; }

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 3rem;
}

.page-btn {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--clr-navy);
  color: var(--clr-on-dark);
  border-color: var(--clr-navy);
}

/* ─── About / Bio ────────────────────────────────────────────── */
.bio-section { background: var(--clr-bg); }

.bio-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  box-shadow: var(--shadow-md);
}

.bio-photo {
  background: var(--clr-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
}

.bio-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(220,230,244,.2);
}

.bio-content { padding: 2.5rem; }
.bio-content h2 { margin-bottom: .25rem; }
.bio-title {
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-red);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}

.bio-content p { color: var(--clr-text-muted); margin-bottom: 1rem; max-width: 68ch; }

@media (max-width: 760px) {
  .bio-card { grid-template-columns: 1fr; }
  .bio-photo { padding: 2rem; }
  .bio-photo img { width: 140px; height: 140px; }
}

/* ─── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--clr-text-muted); margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--clr-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-red);
  flex-shrink: 0;
}

.contact-detail-text { font-size: .9rem; }
.contact-detail-text strong { display: block; font-family: var(--font-head); margin-bottom: .15rem; }
.contact-detail-text a { color: var(--clr-text-muted); transition: color var(--transition); }
.contact-detail-text a:hover { color: var(--clr-red); }

.contact-form-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

/* Form */
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: .4rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--clr-navy);
  background: var(--clr-surface);
  box-shadow: 0 0 0 3px rgba(10,27,59,.1);
}

textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-hint { font-size: .8rem; color: var(--clr-text-muted); margin-top: .3rem; }

.form-notice {
  font-size: .8rem;
  color: var(--clr-text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.form-success, .form-error {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-top: 1rem;
  display: none;
}

.form-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.form-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

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

/* ─── Persona Headlines ─────────────────────────────────────── */
.persona-section { background: var(--clr-bg); }

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

.persona-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 3px solid var(--clr-red);
}

.persona-card .persona-role {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: .75rem;
}

.persona-card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.persona-card p { font-size: .875rem; color: var(--clr-text-muted); max-width: 100%; }

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

/* ─── Services Detail ───────────────────────────────────────── */
.service-detail { padding-block: 72px 56px; border-bottom: 1px solid var(--clr-border); }
.service-detail:last-child { border-bottom: none; }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }

.service-detail-visual {
  background: var(--clr-navy);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.service-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-on-dark-muted);
  background: var(--clr-navy-card);
  border: 1px solid var(--clr-border-dark);
  border-radius: 999px;
  padding: .3rem .85rem;
}

.service-detail h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: .75rem; }
.service-detail p { color: var(--clr-text); margin-bottom: 1rem; max-width: 60ch; }

.service-detail ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.service-detail li {
  font-size: .9rem;
  color: var(--clr-text);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.service-detail li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-red);
  margin-top: .55em;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .service-detail-inner, .service-detail-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ─── Case Studies ──────────────────────────────────────────── */
.coming-soon-hero {
  background: var(--clr-navy);
  padding-block: 96px;
  text-align: center;
}

.coming-soon-hero h1 { color: var(--clr-on-dark); margin-bottom: 1rem; }
.coming-soon-hero p { color: var(--clr-on-dark-muted); margin-inline: auto; margin-bottom: 2rem; }

.coming-soon-notify {
  max-width: 480px;
  margin-inline: auto;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.coming-soon-notify input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: rgba(220,230,244,.08);
  border-color: var(--clr-border-dark);
  color: var(--clr-on-dark);
}

.coming-soon-notify input::placeholder { color: var(--clr-on-dark-muted); }

/* ─── Legal Pages ───────────────────────────────────────────── */
.legal-page { background: var(--clr-surface); }

.legal-content {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 72px;
}

.legal-content h1 { margin-bottom: .5rem; }
.legal-content .legal-date {
  font-size: .875rem;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--clr-border);
}

.legal-content p, .legal-content li { color: var(--clr-text-muted); margin-bottom: .9rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content ul li { margin-bottom: .4rem; }
.legal-content a { color: var(--clr-navy); text-decoration: underline; }
.legal-content a:hover { color: var(--clr-red); }

/* ─── FAQ Section ───────────────────────────────────────────── */
.faq-section {
  padding: var(--section-py) 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-top: 1px solid rgba(15, 31, 61, 0.08);
  border-bottom: 1px solid rgba(15, 31, 61, 0.08);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] { border-color: var(--clr-navy); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s;
}

.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-item[open] .faq-question { color: var(--clr-navy); }

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  color: var(--clr-text);
  line-height: 1.7;
  font-size: .95rem;
}

.faq-answer p { margin: 0; }
.faq-answer a { color: var(--clr-navy); text-decoration: underline; }
.faq-answer a:hover { color: var(--clr-red); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-navy);
  border-top: 1px solid var(--clr-border-dark);
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 36px; margin-bottom: 1rem; }

.footer-tagline {
  font-size: .875rem;
  color: var(--clr-on-dark-muted);
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-on-dark-muted);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }

.footer-col a {
  font-size: .875rem;
  color: var(--clr-on-dark-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--clr-on-dark); }

.footer-bottom {
  border-top: 1px solid var(--clr-border-dark);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: .82rem;
  color: var(--clr-on-dark-muted);
  max-width: 100%;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: .82rem;
  color: var(--clr-on-dark-muted);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--clr-on-dark); }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--clr-navy);
  padding-block: 72px 64px;
  text-align: center;
}

.page-hero h1 { color: var(--clr-on-dark); margin-bottom: .75rem; }
.page-hero p { color: var(--clr-on-dark-muted); margin-inline: auto; max-width: 58ch; }
.page-hero .eyebrow { color: var(--clr-red-light); }

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--clr-text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--clr-text); }
.breadcrumb .sep { opacity: .4; }

/* ─── Scroll Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--clr-text-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.on-dark { }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--clr-navy-mid);
  border-top: 1px solid var(--clr-border-dark);
  padding: 1.25rem 2rem;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p { font-size: .875rem; color: var(--clr-on-dark-muted); max-width: 60ch; margin: 0; }
.cookie-banner a { color: var(--clr-on-dark); text-decoration: underline; }

.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }
