/* ==========================================================================
   Code Craft Innovations — Redesign
   Design System & Components
   Fonts: Poppins (display) + Inter (body)
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens
---------------------------------------------------------------------------- */
:root {
  /* Brand palette (sourced from original site) */
  --brand: #1a5fb4;
  --brand-600: #1a5fb4;
  --brand-500: #2570d4;
  --brand-400: #3b82f6;
  --brand-300: #7fb0ee;
  --teal: #20c997;
  --teal-600: #16a97e;
  --gold: #ffab1a;
  --gold-600: #f59300;

  /* Ink / neutrals */
  --ink: #0b1220;
  --navy-900: #080d1a;
  --navy-800: #0d1424;
  --navy-700: #121b30;
  --navy-600: #18233d;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-muted: #eef3fb;
  --surface: #ffffff;
  --border: #e5ecf6;
  --border-strong: #d3deec;

  /* Text */
  --text: #101828;
  --text-soft: #4a5a70;
  --text-mute: #7686a0;
  --text-invert: #ffffff;
  --text-invert-soft: rgba(255, 255, 255, 0.72);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #1a5fb4 0%, #2aa6c9 55%, #20c997 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(26, 95, 180, 0.12), rgba(32, 201, 151, 0.12));
  --grad-gold: linear-gradient(135deg, #ffab1a 0%, #ff8a3c 100%);
  --grad-text: linear-gradient(100deg, #7fb0ee 0%, #6fe3c4 60%, #ffce7a 100%);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.06);
  --sh-sm: 0 4px 14px rgba(16, 24, 40, 0.07);
  --sh: 0 14px 40px -12px rgba(16, 24, 40, 0.16);
  --sh-lg: 0 30px 70px -24px rgba(16, 24, 40, 0.28);
  --sh-brand: 0 18px 42px -14px rgba(26, 95, 180, 0.5);
  --sh-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 80px -30px rgba(42, 166, 201, 0.55);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.18s;
  --t: 0.32s;
  --t-slow: 0.6s;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 82px;

  /* Type */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Open Sans", "Segoe UI", system-ui, sans-serif;
}

/* ----------------------------------------------------------------------------
   2. Reset & base
---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(32, 201, 151, 0.28); color: var(--ink); }

/* ----------------------------------------------------------------------------
   3. Typography
---------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.eyebrow.center { justify-content: center; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.on-dark .grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-soft); line-height: 1.7; }

/* ----------------------------------------------------------------------------
   4. Layout helpers
---------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); position: relative; }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.bg-soft { background: var(--bg-soft); }
.bg-muted { background: var(--bg-muted); }

/* Dark section base */
.on-dark {
  background: var(--navy-900);
  color: var(--text-invert);
  position: relative;
  isolation: isolate;
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: var(--text-invert-soft); }
.on-dark .eyebrow { color: var(--teal); }

/* ----------------------------------------------------------------------------
   5. Buttons
---------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.55rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t);
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { box-shadow: 0 22px 50px -14px rgba(32, 201, 151, 0.6); }

.btn-gold { background: var(--grad-gold); color: #40260a; box-shadow: 0 16px 38px -14px rgba(255, 138, 60, 0.6); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-600); background: rgba(26, 95, 180, 0.05); }
.on-dark .btn-ghost, .btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.btn-light:hover { box-shadow: var(--sh); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--brand-600);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast);
}
.link-arrow svg { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { gap: 0.65rem; color: var(--teal-600); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ----------------------------------------------------------------------------
   6. Header / navigation
---------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), height var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 8px 30px -18px rgba(16, 24, 40, 0.4);
  border-bottom-color: var(--border);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; z-index: 2; }
.brand img { height: 56px; width: auto; transition: filter var(--t), height var(--t); }
.site-header.scrolled .brand img { height: 48px; }
/* At top (over dark hero) → white logo & light nav; after scroll → colored logo & dark nav */
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-header.scrolled .nav-link { color: var(--text-soft); }
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active { color: var(--brand-600); background: rgba(26, 95, 180, 0.08); }
.nav-link.active { color: #fff; }
.nav-link svg { width: 14px; height: 14px; opacity: 0.7; transition: transform var(--t-fast); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(620px, 80vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown a:hover { background: var(--bg-soft); color: var(--brand-600); }
.dropdown a .di {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--grad-brand-soft);
  color: var(--brand-600);
  flex-shrink: 0;
}
.dropdown a .di svg { width: 17px; height: 17px; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.site-header.scrolled .nav-toggle { color: var(--ink); border-color: var(--border); }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: background var(--t-fast); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ----------------------------------------------------------------------------
   7. Mobile drawer
---------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.mobile-nav__scrim {
  position: absolute; inset: 0;
  background: rgba(8, 13, 26, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t);
}
.mobile-nav__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 88vw);
  background: #fff;
  box-shadow: var(--sh-lg);
  padding: 1.5rem 1.4rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t) var(--ease);
  display: flex;
  flex-direction: column;
}
body.nav-open .mobile-nav { pointer-events: auto; }
body.nav-open .mobile-nav__scrim { opacity: 1; }
body.nav-open .mobile-nav__panel { transform: translateX(0); }
body.nav-open { overflow: hidden; }

.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mobile-nav__head img { height: 48px; }
.mobile-nav__close { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--ink); }
.mobile-nav a.m-link {
  display: block;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.m-accordion__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.m-accordion__toggle svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--t); }
.m-accordion.open .m-accordion__toggle svg { transform: rotate(180deg); }
.m-accordion__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.m-accordion.open .m-accordion__body { grid-template-rows: 1fr; }
.m-accordion__inner { overflow: hidden; }
.m-accordion__inner a {
  display: block;
  padding: 0.6rem 0.5rem 0.6rem 1.1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--bg-muted);
}
.mobile-nav .btn { margin-top: auto; }
.mobile-nav__contact { margin-top: 1.4rem; display: grid; gap: 0.4rem; font-size: 0.92rem; color: var(--text-soft); }
.mobile-nav__contact a { color: var(--brand-600); font-weight: 600; }

/* ----------------------------------------------------------------------------
   8. Hero
---------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  will-change: transform;
}
.hero__blob.b1 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(26,95,180,0.9), transparent 70%); top: -14vw; right: -8vw; animation: float1 16s ease-in-out infinite; }
.hero__blob.b2 { width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(32,201,151,0.75), transparent 70%); bottom: -16vw; left: -8vw; animation: float2 20s ease-in-out infinite; }
.hero__blob.b3 { width: 26vw; height: 26vw; background: radial-gradient(circle, rgba(255,171,26,0.5), transparent 70%); top: 30%; left: 40%; animation: float1 24s ease-in-out infinite reverse; }
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero.center .hero__inner { grid-template-columns: 1fr; text-align: center; max-width: 900px; margin-inline: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(32,201,151,0.25); }
.badge b { color: #fff; font-weight: 700; }

.hero h1 { color: #fff; margin-top: 1.5rem; }
.hero p.lead { color: rgba(255, 255, 255, 0.78); margin-top: 1.5rem; max-width: 40ch; }
.hero.center p.lead { margin-inline: auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero.center .hero__cta { justify-content: center; }
.hero__trust { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.8rem 2.4rem; }
.hero.center .hero__trust { justify-content: center; }
.hero__trust .t { display: flex; flex-direction: column; }
.hero__trust .t b { font-family: var(--font-display); font-size: 1.9rem; color: #fff; line-height: 1; }
.hero__trust .t span { font-size: 0.85rem; color: rgba(255,255,255,0.62); margin-top: 0.35rem; }

/* Hero visual (right) */
.hero__visual { position: relative; }
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  padding: 1.6rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-glow);
}
.hero-code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  border-radius: var(--r);
  padding: 1.2rem 1.3rem;
  overflow-x: auto;
}
.hero-code .kw { color: #6fe3c4; }
.hero-code .fn { color: #7fb0ee; }
.hero-code .st { color: #ffce7a; }
.hero-code .cm { color: rgba(255,255,255,0.4); }
.hero-dots { display: flex; gap: 6px; margin-bottom: 0.9rem; }
.hero-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.hero-dots i:nth-child(1){ background:#ff6058; } .hero-dots i:nth-child(2){ background:#ffbd2e; } .hero-dots i:nth-child(3){ background:#28c941; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.hero-chip { font-size: 0.78rem; font-weight: 600; padding: 0.45rem 0.8rem; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.9); }

.hero-float {
  position: absolute;
  background: #fff;
  border-radius: var(--r);
  padding: 0.85rem 1.05rem;
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: bob 5s ease-in-out infinite;
}
.hero-float .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.hero-float b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); line-height: 1; }
.hero-float span { font-size: 0.76rem; color: var(--text-mute); }
.hero-float.f1 { top: -22px; right: 8%; }
.hero-float.f2 { bottom: -24px; left: -4%; animation-delay: 1.5s; }

/* ----------------------------------------------------------------------------
   9. Marquee (logos / tech)
---------------------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3.2rem; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text-mute); white-space: nowrap; }
.marquee__item svg { width: 26px; height: 26px; }
.on-dark .marquee__item { color: rgba(255,255,255,0.72); }

/* ----------------------------------------------------------------------------
   10. Cards
---------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: transparent; }
.card:hover::after { opacity: 1; }

.card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-brand-soft);
  color: var(--brand-600);
  margin-bottom: 1.25rem;
  transition: transform var(--t) var(--ease);
}
.card__icon svg { width: 27px; height: 27px; }
.card:hover .card__icon { transform: scale(1.06) rotate(-4deg); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; }
.card__link { margin-top: 1.15rem; font-size: 0.92rem; }
.card.feature { padding-top: clamp(1.7rem, 3vw, 2.3rem); }

/* Service card colored variants */
.card.v-blue .card__icon { background: rgba(26,95,180,0.1); color: var(--brand-600); }
.card.v-teal .card__icon { background: rgba(32,201,151,0.12); color: var(--teal-600); }
.card.v-gold .card__icon { background: rgba(255,171,26,0.14); color: var(--gold-600); }
.card.v-violet .card__icon { background: rgba(124,92,252,0.12); color: #6d4bf0; }

/* Numbered / process */
.step {
  position: relative;
  padding: 1.8rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--t) var(--ease), box-shadow var(--t);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.9;
}
.step h3 { margin: 0.9rem 0 0.5rem; }
.step p { font-size: 0.94rem; }

/* Portfolio */
.portfolio-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-800);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border: 1px solid var(--border);
}
.portfolio-card__media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; transition: transform var(--t-slow) var(--ease); }
.portfolio-card:hover .portfolio-card__media { transform: scale(1.07); }
.portfolio-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0) 30%, rgba(8,13,26,0.92)); }
.portfolio-card__body { position: relative; padding: 1.5rem; color: #fff; width: 100%; }
.portfolio-card__tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2); padding: 0.32rem 0.7rem; border-radius: var(--r-pill); backdrop-filter: blur(6px); }
.portfolio-card__body h3 { color: #fff; margin: 0.8rem 0 0.2rem; font-size: 1.3rem; }
.portfolio-card__body .view { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--teal); margin-top: 0.6rem; opacity: 0; transform: translateY(6px); transition: opacity var(--t), transform var(--t); }
.portfolio-card:hover .view { opacity: 1; transform: translateY(0); }

/* Testimonials */
.testi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}
.testi__stars { display: flex; gap: 3px; color: var(--gold); }
.testi__stars svg { width: 18px; height: 18px; }
.testi__quote { font-size: 1.02rem; color: var(--text); line-height: 1.65; }
.testi__who { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad-brand); flex-shrink: 0; }
.testi__who b { display: block; font-family: var(--font-display); font-size: 0.98rem; color: var(--ink); }
.testi__who span { font-size: 0.84rem; color: var(--text-mute); }

/* Testimonial slider */
.t-slider { position: relative; }
.t-viewport { overflow: hidden; padding: 6px; margin: -6px; }
.t-track { display: flex; gap: 0; transition: transform var(--t-slow) var(--ease); }
.t-slide { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 0.75rem; box-sizing: border-box; }
.t-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.t-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.t-arrow:hover { background: var(--brand-600); color: #fff; border-color: transparent; }
.on-dark .t-arrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }
.on-dark .t-arrow:hover { background: #fff; color: var(--ink); }
.t-dots { display: flex; gap: 8px; align-items: center; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); transition: width var(--t), background var(--t); }
.t-dot.active { width: 26px; border-radius: 6px; background: var(--grad-brand); }
.on-dark .t-dot { background: rgba(255,255,255,0.25); }
.on-dark .t-dot.active { background: var(--teal); }

/* Blog cards */
.post {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t);
  height: 100%;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.post__media { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.post__media .cat { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--brand-600); padding: 0.3rem 0.65rem; border-radius: var(--r-pill); }
.post__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post__meta { font-size: 0.8rem; color: var(--text-mute); display: flex; gap: 0.6rem; align-items: center; }
.post__body h3 { font-size: 1.18rem; margin: 0.7rem 0 0.6rem; line-height: 1.25; }
.post__body p { font-size: 0.92rem; flex: 1; }
.post__body .link-arrow { margin-top: 1rem; font-size: 0.9rem; }

/* Feature list (checks) */
.checks { display: grid; gap: 0.8rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-soft); }
.checks li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--teal-600); margin-top: 1px; }
.on-dark .checks li { color: rgba(255,255,255,0.8); }
.on-dark .checks li svg { color: var(--teal); }

/* ----------------------------------------------------------------------------
   11. Stats band
---------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .stat b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.stat span { display: block; margin-top: 0.6rem; font-size: 0.92rem; color: var(--text-soft); font-weight: 500; }
.on-dark .stat span { color: rgba(255,255,255,0.7); }

/* ----------------------------------------------------------------------------
   12. CTA band
---------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(20px, 4vw, 34px); padding: clamp(2.6rem, 6vw, 4.5rem); background: var(--navy-900); isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; background: var(--grad-brand); opacity: 0.9; }
.cta-band__bg::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25), transparent 40%), radial-gradient(circle at 85% 80%, rgba(255,171,26,0.35), transparent 45%); }
.cta-band { color: #fff; text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 1rem auto 0; }
.cta-band .hero__cta { justify-content: center; margin-top: 2rem; }

/* ----------------------------------------------------------------------------
   13. Inner page hero
---------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.6rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.6rem, 6vw, 4.5rem);
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg .hero__blob { opacity: 0.5; }
.page-hero .breadcrumb { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-bottom: 1.1rem; justify-content: center; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { opacity: 0.5; }
.page-hero h1 { color: #fff; max-width: 16ch; margin-inline: auto; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 60ch; margin: 1.2rem auto 0; }
.page-hero.left { text-align: left; }
.page-hero.left .breadcrumb, .page-hero.left h1, .page-hero.left p { margin-inline: 0; justify-content: flex-start; }

/* ----------------------------------------------------------------------------
   14. Split / feature rows
---------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.media-frame { position: relative; border-radius: var(--r-xl); padding: 0; background: var(--grad-brand); }
.media-frame img { border-radius: var(--r-xl); display: block; }
.media-badge { position: absolute; background: #fff; border-radius: var(--r); padding: 0.85rem 1.1rem; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 0.7rem; }

/* ----------------------------------------------------------------------------
   15. FAQ accordion
---------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.faq__item.open { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq__q .ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-brand-soft); color: var(--brand-600); transition: transform var(--t), background var(--t); }
.faq__item.open .faq__q .ic { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.faq__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.faq__item.open .faq__body { grid-template-rows: 1fr; }
.faq__body-inner { overflow: hidden; }
.faq__body p { padding: 0 1.4rem 1.3rem; margin: 0; font-size: 0.98rem; }

/* ----------------------------------------------------------------------------
   16. Contact form
---------------------------------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--sh); }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.15rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field label .req { color: #e5484d; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  font-size: 0.98rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-400); background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 95, 180, 0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.82rem; color: var(--text-mute); margin-top: 0.4rem; }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: rgba(32,201,151,0.12); border: 1px solid rgba(32,201,151,0.4); color: var(--teal-600); font-weight: 600; margin-bottom: 1rem; }
.form-success.show { display: block; }
.form-error { display: none; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: rgba(214,63,63,0.08); border: 1px solid rgba(214,63,63,0.35); color: #b32d2e; font-weight: 600; margin-bottom: 1rem; }
.form-error.show { display: block; }
.field-error { display: block; margin-top: 0.35rem; font-size: 0.82rem; font-weight: 600; color: #b32d2e; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(214,63,63,0.55); }
/* Honeypot — hidden from people, visible to bots. */
.cc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Locations */
.loc-hero__region { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; opacity: 0.9; }
.loc-hero__region svg { flex-shrink: 0; }

.loc-body { max-width: 860px; }

/* Answer-first block — sits directly under the H1. */
.loc-answer {
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.2rem, 3vw, 1.9rem);
  border-radius: var(--r);
  background: var(--grad-brand-soft);
  border: 1px solid var(--brand-200, rgba(26,95,180,0.18));
  border-left: 4px solid var(--brand-600);
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.loc-answer p { margin: 0; font-size: clamp(1.02rem, 1.6vw, 1.14rem); line-height: 1.7; color: var(--ink); }
.loc-answer p + p { margin-top: 0.8rem; }
.loc-answer strong { font-weight: 700; }

.loc-content h2 { margin-top: clamp(2rem, 4vw, 2.8rem); }
.loc-content h2:first-child { margin-top: 0; }

/* Service / area link chips. */
.loc-services { margin-top: clamp(2.4rem, 5vw, 3.2rem); }
.loc-services h2 { margin-bottom: 1.4rem; }
.loc-services__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.loc-service {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.loc-service:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.loc-service > span:nth-child(2) { flex: 1; }
.loc-service__ic { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--grad-brand-soft); color: var(--brand-600); }
.loc-service svg:last-child { flex-shrink: 0; color: var(--brand-600); }

.loc-card__region { font-size: 0.82rem !important; font-weight: 600; color: var(--brand-600) !important; margin-bottom: 0.4rem !important; }

@media (max-width: 640px) {
  .loc-services__grid { grid-template-columns: 1fr; }
}

.contact-info { display: grid; gap: 1.2rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item .ic { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand-soft); color: var(--brand-600); }
.contact-info__item h4 { margin-bottom: 0.2rem; }
.contact-info__item a, .contact-info__item p { color: var(--text-soft); font-size: 0.96rem; }
.contact-info__item a:hover { color: var(--brand-600); }

/* ----------------------------------------------------------------------------
   17. Footer
---------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); position: relative; overflow: hidden; }
.site-footer::before { content:""; position:absolute; top:-40%; right:-10%; width:50vw; height:50vw; background: radial-gradient(circle, rgba(26,95,180,0.25), transparent 65%); filter: blur(40px); }
.site-footer__top { position: relative; padding-block: clamp(3.2rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); }
.footer-brand img { height: 62px; filter: brightness(0) invert(1); margin-bottom: 1.1rem; }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.94rem; max-width: 34ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast); }
.footer-social a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-3px); border-color: transparent; }
.footer-social a svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.66); font-size: 0.94rem; transition: color var(--t-fast), padding var(--t-fast); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; margin-bottom: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-contact li svg { flex-shrink: 0; width: 19px; height: 19px; color: var(--teal); margin-top: 2px; }
.footer-contact a:hover { color: #fff; }
/* Areas we serve — a strip rather than a 5th column, so the four columns above
   keep their width and the list can grow as more markets are added. */
.footer-areas { position: relative; border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.6rem; }
.footer-areas__label { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; flex-shrink: 0; }
.footer-areas ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-areas a { color: rgba(255,255,255,0.66); font-size: 0.92rem; transition: color var(--t-fast); }
.footer-areas a:hover { color: #fff; }
.footer-areas__all { color: var(--teal) !important; font-weight: 600; white-space: nowrap; }
.site-footer__bottom { position: relative; border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.86rem; color: rgba(255,255,255,0.55); }
.site-footer__bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------------------
   18. Reveal animations
---------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-delay="5"] { transition-delay: 0.4s; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: var(--sh); z-index: 90; opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; transition: opacity var(--t), transform var(--t); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.max-60 { max-width: 60ch; } .max-40 { max-width: 40ch; }
.divider { height: 1px; background: var(--border); border: 0; }

/* ----------------------------------------------------------------------------
   19. Keyframes
---------------------------------------------------------------------------- */
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4%, 6%) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5%, -5%) scale(1.1); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scrollx { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------------------
   20. Responsive
---------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero p.lead { max-width: 52ch; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split__media { order: 0; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero__trust { gap: 1.4rem 1.8rem; }
  .hero__cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   21. Premium motion, 3D depth & scroll effects
   ========================================================================== */

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 200; background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(32, 201, 151, 0.6);
  transition: width 0.08s linear;
}

/* --- Richer reveals (upgrades the base) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 0.85s var(--ease-out), filter 0.8s var(--ease-out);
  will-change: opacity, transform, filter;
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="left"]  { transform: translateX(-48px) scale(0.99); }
[data-reveal="right"] { transform: translateX(48px) scale(0.99); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="zoom"]  { transform: scale(1.06); filter: blur(8px); }
[data-reveal="flip"]  { transform: perspective(900px) rotateX(14deg) translateY(30px); transform-origin: top; }

/* --- 3D tilt + cursor spotlight on cards --- */
.card, .portfolio-card, .step, .testi, .hero-card, .form-card { transform-style: preserve-3d; }
.fx-tilt { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card > *, .step > * { position: relative; z-index: 1; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(42, 166, 201, 0.14), transparent 62%);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card.fx-tilt:hover { box-shadow: var(--sh-lg); }

/* --- Button shine sweep --- */
.btn-primary, .btn-gold, .btn-light { position: relative; overflow: hidden; }
.btn-primary::before, .btn-gold::before, .btn-light::before {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); transition: left 0.65s var(--ease); pointer-events: none;
}
.btn-primary:hover::before, .btn-gold:hover::before, .btn-light:hover::before { left: 140%; }

/* --- Gradient text shimmer --- */
.grad-text.shimmer {
  background-size: 220% auto;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* --- Aurora glow layer (dark heroes/sections) --- */
.aurora {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 0deg at 30% 30%, rgba(26,95,180,0.35), transparent 30%, rgba(32,201,151,0.32) 55%, transparent 75%, rgba(255,171,26,0.22) 92%, rgba(26,95,180,0.35));
  filter: blur(80px); opacity: 0.55;
  animation: aurora-spin 26s linear infinite;
  mix-blend-mode: screen;
}
@keyframes aurora-spin { to { transform: rotate(360deg); } }

/* --- Floating 3D shapes --- */
.scene-3d { position: absolute; z-index: 0; pointer-events: none; transform-style: preserve-3d; perspective: 900px; }
.cube { position: relative; width: 90px; height: 90px; transform-style: preserve-3d; animation: cube-spin 16s linear infinite; }
.cube .face {
  position: absolute; width: 90px; height: 90px;
  border: 1.5px solid rgba(127, 176, 238, 0.4);
  background: linear-gradient(135deg, rgba(26,95,180,0.12), rgba(32,201,151,0.06));
  box-shadow: inset 0 0 30px rgba(42,166,201,0.15);
}
.cube .f1 { transform: rotateY(0deg)   translateZ(45px); }
.cube .f2 { transform: rotateY(90deg)  translateZ(45px); }
.cube .f3 { transform: rotateY(180deg) translateZ(45px); }
.cube .f4 { transform: rotateY(-90deg) translateZ(45px); }
.cube .f5 { transform: rotateX(90deg)  translateZ(45px); }
.cube .f6 { transform: rotateX(-90deg) translateZ(45px); }
@keyframes cube-spin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}
.ring3d {
  display: block; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid rgba(32, 201, 151, 0.4);
  box-shadow: 0 0 40px rgba(32,201,151,0.25), inset 0 0 30px rgba(32,201,151,0.12);
  animation: ring-tilt 12s ease-in-out infinite;
}
@keyframes ring-tilt {
  0%,100% { transform: rotateX(66deg) rotateZ(0deg); }
  50%     { transform: rotateX(72deg) rotateZ(180deg); }
}
.dot-float {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 18px 4px rgba(32,201,151,0.5);
  animation: bob 6s ease-in-out infinite;
}

/* --- Parallax hint --- */
[data-parallax] { will-change: transform; }

/* --- Magnetic hover lift for portfolio media (works with tilt) --- */
.portfolio-card { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .aurora, .cube, .ring3d, .dot-float, .grad-text.shimmer { animation: none !important; }
  .scroll-progress { display: none; }
}
@media (max-width: 900px) {
  .scene-3d { display: none; }
  .aurora { opacity: 0.4; }
}

/* ----------------------------------------------------------------------------
   WordPress admin-bar offset (logged-in users)
---------------------------------------------------------------------------- */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-nav__panel { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-nav__panel { top: 46px; }
}

/* WordPress core alignment & caption helpers */
.entry-content img { height: auto; }
.entry-content .alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.entry-content .alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.8rem; margin-bottom: .6rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--brand-600); text-decoration: underline; }
.entry-content blockquote { border-left: 4px solid var(--brand-400); padding-left: 1.2rem; margin: 1.5rem 0; color: var(--text-soft); font-style: italic; }
.wp-caption-text, .entry-content figcaption { font-size: .85rem; color: var(--text-mute); text-align: center; margin-top: .5rem; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.widget-title { font-family: var(--font-display); margin-bottom: .8rem; }
