/* ==========================================================================
   Christian Electric Blue Inc. — Design tokens & base styles
   ========================================================================== */

:root {
  /* Color — primary blue ramp (from logo mark) */
  --color-primary-900: #101c3f;
  --color-primary-800: #16264f;
  --color-primary-700: #1c3268;
  --color-primary-600: #223e85;
  --color-primary-500: #2848a0;
  --color-primary-400: #3f5fbe;
  --color-primary-300: #7590d6;
  --color-primary-200: #b3c2ea;
  --color-primary-100: #e2e8fa;

  /* Warm accent — spark gold, keeps the blue from reading cold */
  --color-accent-600: #b9770e;
  --color-accent-500: #e29416;
  --color-accent-400: #f0a930;
  --color-accent-100: #fdf0da;

  /* Neutrals — warm off-white, not stark white */
  --color-bg: #faf8f4;
  --color-surface: #ffffff;
  --color-surface-alt: #f3efe6;
  --color-border: #e5e0d4;
  --color-text: #1a1d24;
  --color-text-muted: #565b66;
  --color-text-on-primary: #ffffff;
  --color-text-on-primary-muted: #c3cdec;

  /* Semantic */
  --color-success: #2f7d4f;
  --color-danger: #c1381f;

  /* Typography */
  --font-heading: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.1vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.1vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 1.8vw, 3.5rem);
  --text-5xl: clamp(2.75rem, 2.1rem + 2.6vw, 4.5rem);

  /* Spacing — 4/8pt rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 28, 63, 0.06), 0 1px 1px rgba(16, 28, 63, 0.04);
  --shadow-md: 0 6px 20px rgba(16, 28, 63, 0.10), 0 2px 6px rgba(16, 28, 63, 0.06);
  --shadow-lg: 0 20px 45px rgba(16, 28, 63, 0.16), 0 6px 14px rgba(16, 28, 63, 0.08);
  --shadow-glow: 0 0 0 4px rgba(240, 169, 48, 0.25);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);
  --ease-accel: cubic-bezier(0.4, 0, 1, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;

  --container-max: 1200px;
  --header-h: 84px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100dvh;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--color-primary-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { color: var(--color-text-muted); }
p + p { margin-top: var(--space-4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-600);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 9px;
  background: var(--color-accent-500);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
  flex-shrink: 0;
}

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section { padding-block: var(--space-12); }
.section-tight { padding-block: var(--space-8); }
.section-alt { background: var(--color-surface-alt); }

.stack { display: flex; flex-direction: column; }
.grid { display: grid; gap: var(--space-6); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-primary-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  transition: top var(--dur-base) var(--ease-standard);
}
.skip-link:focus { top: var(--space-4); }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-accent-500);
  color: var(--color-primary-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-400); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-dark {
  background: var(--color-primary-900);
  color: #fff;
}
.btn-dark:hover { background: var(--color-primary-800); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: var(--color-primary-900);
  color: var(--color-text-on-primary-muted);
  font-size: var(--text-xs);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.topbar a { color: inherit; transition: color var(--dur-fast) var(--ease-standard); }
.topbar a:hover { color: var(--color-accent-400); }
.topbar-emergency {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-400);
  font-weight: 600;
}
.topbar-emergency .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent-400);
  animation: pulse-dot 2s var(--ease-standard) infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1c3168;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled {
  background: rgba(16, 28, 63, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.brand-logo-img { height: 46px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-brand .brand-logo-img { height: 52px; }

.nav-desktop {
  display: none;
}
.nav-desktop ul { display: flex; align-items: center; gap: var(--space-5); }
.nav-desktop a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding-block: var(--space-2);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-accent-500);
  transition: right var(--dur-base) var(--ease-standard);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { right: 0; }
.nav-desktop a[aria-current="page"] { color: #fff; }

.header-cta { display: none; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 26px; height: 26px; color: #fff; }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-6) var(--space-5);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-standard);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  text-transform: uppercase;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary-900);
}
.mobile-nav .btn-group { margin-top: var(--space-6); flex-direction: column; }
.mobile-nav .btn-group .btn-dark { color: #fff; }
.mobile-nav .btn-group .btn-primary { color: var(--color-primary-900); }

body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--color-primary-900) 0%, var(--color-primary-700) 55%, var(--color-primary-500) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: var(--space-12) var(--space-10);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(240, 169, 48, 0.18), transparent 55%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.hero-copy h1 { color: #fff; margin-top: var(--space-4); }
.hero-copy .eyebrow { color: var(--color-accent-400); }
.hero-copy .eyebrow::before { background: var(--color-accent-400); }
.hero-copy p.lead {
  color: var(--color-text-on-primary-muted);
  font-size: var(--text-lg);
  max-width: 46ch;
  margin-top: var(--space-5);
}
.hero-copy .btn-group { margin-top: var(--space-8); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.hero-badge svg { width: 26px; height: 26px; color: var(--color-accent-400); flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-bolt {
  width: min(320px, 60vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}
.hero-bolt .bolt-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-bolt 1.4s var(--ease-decel) 0.2s forwards;
}
.hero-bolt .bolt-fill {
  opacity: 0;
  animation: fade-in var(--dur-slow) var(--ease-standard) 1.1s forwards;
}

@keyframes draw-bolt { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 169, 48, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(240, 169, 48, 0); }
}

/* ==========================================================================
   Photo hero (full-bleed, parallax)
   ========================================================================== */

.photo-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.photo-hero .parallax-media {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  will-change: transform;
}
.photo-hero .parallax-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05);
}
.photo-hero .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(16, 28, 63, 0.94) 0%, rgba(16, 28, 63, 0.72) 32%, rgba(16, 28, 63, 0.38) 62%, rgba(16, 28, 63, 0.55) 100%);
}
.photo-hero .container {
  position: relative;
  padding-block: var(--space-12) var(--space-10);
  width: 100%;
}
.photo-hero .eyebrow { color: var(--color-accent-400); }
.photo-hero .eyebrow::before { background: var(--color-accent-400); }
.photo-hero h1 { color: #fff; margin-top: var(--space-4); max-width: 18ch; }
.photo-hero p.lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-lg);
  max-width: 50ch;
  margin-top: var(--space-5);
}
.photo-hero .btn-group { margin-top: var(--space-8); }
.photo-hero .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Lamp ignition hero (homepage only) */
.hero-lamp {
  position: relative;
  /* fills exactly what's left below the sticky header, so header + hero
     together cover the full screen and the content below can center in
     the space that's actually visible (--chrome-h is set by main.js) */
  min-height: calc(100vh - var(--chrome-h, 96px));
  min-height: calc(100dvh - var(--chrome-h, 96px));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: var(--space-12);
}
.hero-lamp .lamp-photo {
  position: absolute;
  inset: 0;
}
.hero-lamp .lamp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-lamp .lamp-hero-content { position: relative; z-index: 2; text-align: center; }
.lamp-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  flex-wrap: wrap;
  margin: 0;
}
.lamp-logo-glow {
  display: block;
  width: clamp(160px, 23vw, 300px);
  aspect-ratio: 929 / 1102;
  background: linear-gradient(180deg, #2b2b2b 0%, #0a0a0a 55%, #000000 100%);
  -webkit-mask-image: url('../img/logo-mark.png');
  mask-image: url('../img/logo-mark.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  /* a grounding shadow, not a glow -- dark mark against a bright photo
     needs contrast/lift, not a light halo. Layered: a tight contact
     shadow for definition plus a soft ambient one for depth, so the
     mark reads as lifted off the photo rather than flat. */
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
  opacity: 0;
  transform: translateY(36px);
  animation: lamp-text-in 1s var(--ease-decel) 0.6s forwards;
}
.lamp-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.28;
  /* sized so the 3-line block's top/bottom edges land close to the
     logo mark's own top/bottom edges at typical widths */
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 55%, #050505 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  opacity: 0;
  transform: translateY(36px);
  animation: lamp-text-in 1s var(--ease-decel) 0.72s forwards;
}
@keyframes lamp-text-in { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .lamp-logo-glow,
  .lamp-tagline {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Hero follow-up content (reveals on scroll below the lamp) */
.hero-followup { background: #1c3168; }
.hero-followup-inner { max-width: 640px; margin-inline: auto; text-align: center; }
.hero-followup-inner .eyebrow { justify-content: center; color: var(--color-accent-400); }
.hero-followup-inner .eyebrow::before { background: var(--color-accent-400); }
.hero-followup-inner .lead { margin-top: var(--space-4); font-size: var(--text-lg); color: rgba(255, 255, 255, 0.82); }
.hero-followup-inner .btn-group { justify-content: center; margin-top: var(--space-7); }

/* Smaller photo hero for interior pages */
.photo-hero.photo-hero-sm { min-height: 46vh; align-items: center; }
.photo-hero.photo-hero-sm .container { padding-block: var(--space-10); }
.photo-hero .breadcrumb { color: rgba(255, 255, 255, 0.7); margin-bottom: var(--space-3); }
.photo-hero .breadcrumb a:hover { color: var(--color-accent-400); }

@media (prefers-reduced-motion: reduce) {
  .photo-hero .parallax-media { transform: none !important; }
}

/* ==========================================================================
   Parallax banner (mid-page full-bleed photo section)
   ========================================================================== */

.parallax-banner {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.parallax-banner .parallax-media {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  will-change: transform;
}
.parallax-banner .parallax-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05);
}
.parallax-banner .banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 28, 63, 0.92) 0%, rgba(16, 28, 63, 0.62) 45%, rgba(16, 28, 63, 0.25) 100%);
}
.parallax-banner .container { position: relative; }
.parallax-banner .banner-copy { max-width: 46ch; }
.parallax-banner .eyebrow { color: var(--color-accent-400); }
.parallax-banner .eyebrow::before { background: var(--color-accent-400); }
.parallax-banner h2 { color: #fff; margin-top: var(--space-3); }
.parallax-banner p { color: rgba(255, 255, 255, 0.85); margin-top: var(--space-4); font-size: var(--text-lg); }
.parallax-banner .btn-group { margin-top: var(--space-7); }

@media (prefers-reduced-motion: reduce) {
  .parallax-banner .parallax-media { transform: none !important; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-6);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.trust-item svg { width: 30px; height: 30px; color: var(--color-primary-600); flex-shrink: 0; }
.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-primary-900);
}
.trust-item span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-head { max-width: 62ch; margin-bottom: var(--space-8); }
.section-head h2 { margin-top: var(--space-3); }
.section-head.text-center { margin-inline: auto; }
.section-head p { margin-top: var(--space-4); font-size: var(--text-lg); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid { grid-template-columns: repeat(1, 1fr); }

.grid.card-grid-balanced {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.card-grid-balanced > * { flex: 0 1 100%; }


.card-grid { counter-reset: svc; }
.service-card {
  position: relative;
  background: transparent;
  border: none;
  border-top: 3px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-6) 0 0;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.service-card::before {
  counter-increment: svc;
  content: counter(svc, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent-500);
  line-height: 1;
  margin-bottom: var(--space-4);
  transition: transform var(--dur-base) var(--ease-standard);
}
.service-card:hover { border-top-color: var(--color-accent-500); }
.service-card:hover::before { transform: translateX(8px); }
.service-card .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-500);
  margin-bottom: var(--space-3);
  transition: color var(--dur-base) var(--ease-standard);
}
.service-card:hover .icon-wrap { color: var(--color-accent-600); }
.service-card .icon-wrap svg { width: 26px; height: 26px; }
.service-card h3 { color: var(--color-primary-900); }
.service-card p { margin-top: var(--space-3); font-size: var(--text-sm); }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-600);
}
.service-card .card-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-standard); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* Process steps */
.process-grid { grid-template-columns: repeat(1, 1fr); counter-reset: step; }
.process-step { position: relative; padding-left: var(--space-10); }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent-500);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-primary-200);
  border-radius: 50%;
}
.process-step h3 { color: var(--color-primary-900); margin-bottom: var(--space-2); }
.process-step p { font-size: var(--text-sm); }

/* About / split layout */
.split { grid-template-columns: 1fr; align-items: center; }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--color-primary-700), var(--color-primary-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}
.split-media .placeholder-note {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-6);
}
.split-media svg { width: 72px; height: 72px; opacity: 0.5; margin-bottom: var(--space-3); }
.split-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04) contrast(1.03); }
.split-media.photo-frame { background: var(--color-primary-900); box-shadow: var(--shadow-lg); }

/* ==========================================================================
   Gallery grid + lightbox
   ========================================================================== */

.gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--color-primary-900);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-standard);
  filter: saturate(1.04) contrast(1.03);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(16, 28, 63, 0.88), transparent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-item .zoom-hint {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(16, 28, 63, 0.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.gallery-item:hover .zoom-hint { opacity: 1; }
.gallery-item .zoom-hint svg { width: 16px; height: 16px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 14, 26, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(1100px, 92vw); max-height: 88vh; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.lightbox img { max-width: 100%; max-height: 76vh; width: auto; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); margin-inline: auto; }
.lightbox figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: var(--space-5); right: var(--space-5);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-prev { left: var(--space-5); }
.lightbox-next { right: var(--space-5); }

.badge-list { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) calc(var(--space-4) + 10px);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-pill svg { width: 16px; height: 16px; }

/* Testimonials */
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial-card .stars { display: flex; gap: 2px; color: var(--color-accent-500); margin-bottom: var(--space-4); }
.testimonial-card .stars svg { width: 18px; height: 18px; }
.testimonial-card p.quote { color: var(--color-text); font-size: var(--text-base); }
.testimonial-card footer {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.avatar-initial {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: var(--text-sm); color: var(--color-primary-900); display: block; }
.testimonial-role { font-size: var(--text-xs); color: var(--color-text-muted); }
.placeholder-flag {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-accent-600);
  font-style: italic;
}

/* Service area */
.area-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.area-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}
.area-pill svg { width: 16px; height: 16px; color: var(--color-accent-500); flex-shrink: 0; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
  background:
    linear-gradient(rgba(40,72,160,0.08), rgba(40,72,160,0.08)),
    repeating-linear-gradient(0deg, var(--color-primary-100) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--color-primary-100) 0 1px, transparent 1px 40px),
    var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.map-frame .pin {
  display: flex; flex-direction: column; align-items: center;
  color: var(--color-primary-600);
}
.map-frame .pin svg { width: 44px; height: 44px; }
.map-frame .pin span {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.map-frame-svg { padding: var(--space-5); }
.map-frame-svg svg { width: 100%; height: 100%; overflow: visible; }

.map-frame-img { padding: var(--space-3); }
.map-frame-img img { width: 100%; height: 100%; object-fit: contain; }
.map-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
}
.map-label-sm { font-size: 12px; }
.map-sublabel {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.area-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary-900);
}
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--color-primary-800), var(--color-primary-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(240,169,48,0.25), transparent 70%);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--color-text-on-primary-muted); margin-top: var(--space-3); }

/* Forms */
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-800);
}
.field .required { color: var(--color-danger); }
.field input,
.field select,
.field textarea {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
  outline: none;
}
.field-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.field-row { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }

.form-note {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-accent-100);
  border: 1px solid var(--color-accent-400);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-primary-900);
}
.form-note svg { width: 20px; height: 20px; color: var(--color-accent-600); flex-shrink: 0; }

.contact-info-card {
  background: var(--color-primary-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.contact-info-card h3 { color: #fff; }
.contact-row {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--color-accent-400); flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-size: var(--text-sm); }
.contact-row span, .contact-row a { font-size: var(--text-sm); color: var(--color-text-on-primary-muted); }
.contact-row a:hover { color: var(--color-accent-400); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary-900);
  color: var(--color-text-on-primary-muted);
  padding-block: var(--space-10) var(--space-6);
}
.footer-grid {
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word .l3 { color: var(--color-text-on-primary-muted); }
.footer-brand p { margin-top: var(--space-4); font-size: var(--text-sm); max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: var(--text-sm); margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); transition: color var(--dur-fast) var(--ease-standard); }
.footer-col a:hover { color: var(--color-accent-400); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background var(--dur-fast) var(--ease-standard);
}
.footer-social a:hover { background: var(--color-accent-500); color: var(--color-primary-900); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
}
.footer-bottom .footer-legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-decel), transform var(--dur-slow) var(--ease-decel);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(150deg, var(--color-primary-900), var(--color-primary-600));
  color: #fff;
  padding-block: var(--space-10) var(--space-8);
}
.page-hero h1 { color: #fff; margin-top: var(--space-3); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-on-primary-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.breadcrumb a:hover { color: var(--color-accent-400); }
.page-hero p.lead { color: var(--color-text-on-primary-muted); margin-top: var(--space-4); max-width: 60ch; }

/* Service detail list (services page) */
.service-detail {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail .icon-wrap {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.service-detail .icon-wrap svg { width: 32px; height: 32px; }
.service-detail h3 { color: var(--color-primary-900); }
.service-detail ul { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.service-detail li { display: flex; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.service-detail li svg { width: 16px; height: 16px; color: var(--color-success); flex-shrink: 0; margin-top: 3px; }
.service-photo {
  margin-top: var(--space-5);
  max-width: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04) contrast(1.03); }

/* FAQ (accordion) */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  text-transform: none;
  color: var(--color-primary-900);
}
.accordion-trigger svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--dur-base) var(--ease-standard); color: var(--color-primary-600); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-standard);
}
.accordion-panel p { padding-bottom: var(--space-5); font-size: var(--text-sm); }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

@media (min-width: 560px) {
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-balanced > * { flex-basis: calc(50% - 16px); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .hero-badges { flex-wrap: nowrap; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .mobile-nav { display: none; }

  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-balanced > * { flex-basis: calc(25% - 24px); max-width: 370px; }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .service-detail { grid-template-columns: 96px 1fr; }
  .cta-banner { grid-template-columns: 1.4fr auto; align-items: center; }
  .cta-banner .btn-group { margin: 0; }
  .contact-page-grid { grid-template-columns: 1fr 0.8fr; }
}

@media (min-width: 1440px) {
  .container { padding-inline: var(--space-10); }
}
