/*
  Blue Rose Custom – Global Styles
  Colors derived from logo: brand blue and silver/gray
*/
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400&display=swap');

:root {
  --brand-blue: #113c7a; /* deep blue inspired by logo */
  --brand-blue-2: #1e5bbf; /* accent blue */
  --brand-silver: #c8cbd1; /* silver */
  --text: #0b1020;
  --muted: #5d6471;
  --bg: #f7f8fb;
  --white: #fff;
  --shadow: 0 10px 30px rgba(17, 60, 122, 0.15);
  --radius: 16px;
  /* Default header height; overridden at runtime by JS for exact value */
  --header-h: 72px;
  /* Tail/linger distance for services scroller, reused for overlap */
  --services-tail: 240vh;
  --about-headline-size: clamp(48px, 12vw, 160px);
  --about-lead-size: clamp(18px, 2.2vw, 30px);
  /* How much of the footer should be visible while CTA is pinned */
  --footer-peek: clamp(120px, 16vh, 240px);
  /* Controls how "zoomed" the post-intro hero video appears (1 = original) */
  --hero-video-scale: 0.9;
  /* Corner radius for the final hero video (not the white intro) */
  --hero-radius: 20px;
}

/* Register scroll/transform related custom properties so they can transition smoothly.
   Browsers that do not support @property will simply ignore these registrations
   and fall back to the immediate updates (no breakage). */
@property --hero-parallax {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@property --tx { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ty { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --tz { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --scale { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --rotZ { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --tiltX { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --tiltY { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Utility: CSS-only scroll smoothing pattern (per https://stackoverflow.com/q/79101985)
   Apply .scroll-lerp to a wrapper and style descendants with var(--scroll-position-delayed). */
@property --scroll-position {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
@property --scroll-position-delayed {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}
@keyframes adjust-pos {
  to {
    --scroll-position: 1;
    --scroll-position-delayed: 1;
  }
}
.scroll-lerp {
  animation: adjust-pos linear both;
  animation-timeline: view(block);
}
.scroll-lerp > .lerp-content {
  transition: --scroll-position-delayed 0.15s linear;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Prevent browser auto text zoom from distorting layout on some mobile/tablets */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Default: reveal elements are visible when animations are disabled */
.no-animations .reveal { opacity: 1 !important; transform: none !important; }
.no-animations [data-animate] { opacity: 1 !important; transform: none !important; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
/* Prevent minor viewport math/transform differences from causing a horizontal scrollbar */
html, body { overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }

.container {
  /* Widen max width so About Us layout can be fully centered without overflow */
  width: min(1400px, 92vw);
  margin-inline: auto;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
/* Make header fully opaque once the page is scrolled to avoid seeing previous
   sections through the translucent backdrop */
.site-header.is-solid {
  background: #ffffff;
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand img { height: 48px; width: auto; }
.site-nav .menu { list-style: none; display: flex; gap: 24px; align-items: center; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--brand-blue-2); }
.site-nav .active { color: var(--brand-blue-2); }

/* Header: use Bebas Neue for nav options and header CTA */
.site-header .site-nav .menu > li > a,
.site-header .dropdown-toggle,
.site-header .site-nav .menu > li > .btn {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .02em;
  font-size: clamp(18px, 1.8vw, 22px);
}

/* Ensure header Get a Quote button is brand blue with white text in Bebas Neue */
.site-header .site-nav .menu > li > .btn.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: var(--white);
}

/* Match Services dropdown items to header font and size */
.site-header .dropdown a {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .02em;
  font-size: clamp(18px, 1.8vw, 22px);
}

.has-dropdown { position: relative; }
/* Make Services look like other header links */
.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  font-weight: 600; /* match nav link weight */
  color: var(--text);
  text-decoration: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}
.dropdown-toggle:hover { color: var(--brand-blue-2); }
/* Desktop dropdown indicator */
.dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s ease;
  color: var(--brand-blue-2);
}
.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg) translateY(1px); }
/* Desktop dropdown behavior - click only, no hover */
.has-dropdown.dropdown-open .dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; background: var(--white);
  border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 6px; min-width: 220px;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s ease;
  list-style: none; margin: 0;
}
.dropdown a { padding: 10px 12px; border-radius: 8px; display: block; }
.dropdown a:hover { background: #f0f3f9; }

.nav-toggle { display: none; position: relative; width: 40px; height: 40px; border: 1px solid rgba(0,0,0,.1); border-radius: 10px; background: var(--white); }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: #111; transition: .3s; }
.nav-toggle span:nth-child(1){ top: 12px; }
.nav-toggle span:nth-child(2){ top: 19px; }
.nav-toggle span:nth-child(3){ top: 26px; }
.nav-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 8px;
  margin-left: 16px;
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: 20px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .02em;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.lang-btn:hover {
  background: var(--brand-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--brand-blue);
  color: var(--white);
}

.lang-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.lang-btn:disabled:hover {
  background: var(--brand-blue);
  color: var(--white);
  transform: none;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .3s ease, background .3s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(30, 91, 191, 0.18); }
.btn-primary { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2)); color: var(--white); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { border: 2px solid var(--brand-blue); color: var(--brand-blue); background: transparent; }
.btn-outline:hover { background: var(--brand-blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand-blue); border: 2px solid var(--white); }
.btn-inline { color: var(--brand-blue-2); font-weight: 800; }

/* Inline form result message */
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-result { font-weight: 600; font-size: 14px; }
.form-result.is-pending { color: var(--muted); }
.form-result.is-success { color: #1a7f37; }
.form-result.is-error { color: #c62828; }

/* Hero */
.hero {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b0f1b;
  z-index: 0; /* keep under following sections so they scroll over */
  /* Prevent rare subpixel seams from child compositing by isolating stacking */
  isolation: isolate;
}

/* Stack hero elements in the same grid cell so they overlay and center */
.hero .hero-video-fg,
.hero .hero-content {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transform: translateZ(0) scale(var(--hero-video-scale, 1));
  transform-origin: center center;
  border-radius: var(--hero-radius, 0);
  will-change: auto;
  /* Match container to avoid any brief letterbox flash during metadata load */
  background-color: #0b0f1b;
}

/* Foreground vs background videos on desktop */
@media (min-width: 992px) {
  .hero-video-bg {
    z-index: 0;
    filter: blur(8px) saturate(0.9) contrast(1.02);
    transform: none; /* full bleed, no scaling */
  }
  .hero-video-fg {
    position: relative;
    z-index: 2;
    width: min(1100px, 78vw);
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--hero-radius, 20px);
    box-shadow: 0 28px 80px rgba(0,0,0,.45);
    /* Force stable GPU compositing to eliminate 1px hairline artifacts on some GPUs */
    transform: translateZ(0.1px);
    backface-visibility: hidden;
    outline: 1px solid transparent; /* nudge rasterization to avoid seams */
  }
  .hero-overlay { z-index: 1; }
  .hero-content { z-index: 3; }
}
.hero-overlay { 
  position: absolute; inset: 0; 
  background: radial-gradient(ellipse at center, rgba(17,60,122,.25), rgba(0,0,0,.55));
  border-radius: var(--hero-radius, 0);
}

/* Mobile/tablet: revert hero video to original (no zoom, square corners) */
@media (max-width: 991.98px) {
  .hero-video {
    transform: none !important;
    border-radius: 0 !important;
  }
  .hero-overlay {
    border-radius: 0 !important;
  }
  /* On mobile, show full-bleed background video and hide the smaller foreground */
  .hero-video-fg { display: none; }
}
.hero-content { position: relative; text-align: center; color: #fff; }
.hero-content { transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.headline { font-size: clamp(36px, 7vw, 72px); margin: 0 0 8px; letter-spacing: .02em; text-shadow: 0 6px 24px rgba(0,0,0,.35); }
.subhead { font-size: clamp(16px, 2.6vw, 22px); opacity: .9; margin-bottom: 24px; }
.cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Prepare hero to animate in after intro overlay */
.hero.hero-will-animate .hero-content { opacity: 0; transform: translateY(16px); }

/* Intro overlay container */
.hero-intro-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
}
.hero-intro-overlay.is-hidden { opacity: 0; visibility: hidden; }

/* Mobile: never show the intro overlay to avoid an initial loading feel */
@media (max-width: 760px) {
  .hero-intro-overlay { display: none !important; }
}

.hero-intro-inner {
  background: #fff;
  border-radius: 16px;
  box-shadow: none;
  padding: clamp(8px, 2vw, 16px);
  width: min(880px, 82vw);
}

.hero-intro-video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Above-the-fold wrapper to make hero + brands fill the viewport below header */
.above-fold {
  /* Estimate header height via CSS var for dynamic calc from JS if needed */
  --header-h: 72px;
  min-height: calc(100vh - var(--header-h));
  display: block; /* avoid sticky-in-flex edge cases */
}
/* Ensure hero keeps its full viewport height budget within above-fold */
.above-fold .hero { height: calc(100vh - var(--header-h)); }

/* Sections */
.section { padding: 84px 0; }
.section-title { font-size: clamp(28px, 4vw, 42px); margin: 0 0 28px; letter-spacing: .01em; }

/* Brands Marquee */
.brands { background: #0f1728; color: #fff; padding-top: 48px; padding-bottom: 48px; position: relative; z-index: 2; }
/* Ensure no visible gap between brands marquee and services section */
.brands + .services-scroller { margin-top: -32px; }
.marquee {
  /* single row with fade edges */
  --marquee-duration: 24s;
  --marquee-gap: clamp(52px, 7vw, 96px);
  --logo-size: clamp(56px, 7vw, 78px);
  position: relative;
  overflow: hidden;
  padding-block: 22px;
  min-height: calc(var(--logo-size) + 44px);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  cursor: grab;
  /* Allow vertical scrolling, reserve horizontal panning for JS */
  touch-action: pan-y;
}
.marquee.is-dragging { cursor: grabbing; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #0f1728 0%, rgba(15,23,40,0.85) 40%, rgba(15,23,40,0) 100%); }
.marquee::after  { right: 0; background: linear-gradient(270deg, #0f1728 0%, rgba(15,23,40,0.85) 40%, rgba(15,23,40,0) 100%); }

.marquee-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}
.marquee:hover .marquee-track { }
/* hide duplicate sibling until JS restructures for duplication inside one track */
.marquee-track + .marquee-track { display: none; }

.marquee img {
  height: var(--logo-size);
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
  transition: opacity .3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.marquee img:hover { opacity: 1; }
/* Slightly larger for logos with extra transparent padding in source files */
.marquee img[src*="brands15"],
.marquee img[src*="brands8"] {
  height: calc(var(--logo-size) * 1.25);
}
/* keyframes removed in favor of JS-driven, time-based transform for perfect seamlessness */

/* Services scroller */
.services-scroller {
  position: relative;
  z-index: 2; /* ensure this section scrolls over the sticky hero */
  --rows: 3; /* number of cards */
  --step: 90vh; /* scroll distance per card */
  --tail: var(--services-tail); /* linger after last center */
  /* Progress from first to last center across (rows-1) steps */
  height: calc((var(--rows) - 1) * var(--step) + (100vh - var(--header-h)) + var(--tail));
  margin: 0 0 calc(-1 * var(--tail)); /* remove tail from flow to avoid post-gap */
  /* Ensure no light background seam shows between brands and services */
  background: #0d1324;
}

.services-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-rows: 1fr;
  background: #0b1222; /* flat blue like Our Work section */
  overflow: hidden;
  z-index: 0; /* sit behind upcoming sections during overlap */
}

/* Services background video and overlay */
/* Remove unused services video styles */

/* OUR SERVICES diagonal background marquee inside Services sticky */
.services-bg-words {
  position: absolute;
  inset: 0;
  z-index: 0;            /* above flat background, below cards */
  overflow: hidden;
  pointer-events: none;
}
.services-bg-inner {
  position: absolute;
  top: 50%; left: 50%;
  width: 360vw;          /* very wide to avoid empty edges when rotated */
  height: 200vh;
  transform: translate(-50%, -50%) rotate(-18deg);
  transform-origin: center;
}
.services-bg-row {
  position: relative;
  white-space: nowrap;
  will-change: transform;
  line-height: 1;
  opacity: 0.12;         /* subtle background */
}
.services-bg-row-track { display: inline-flex; will-change: transform; min-width: 300vw; }
.services-bg-row span {
  display: inline-block;
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.services-bg-words {
  --bg-font: clamp(72px, 11vw, 180px);
  --row-gap: clamp(-100px, -5vw, -24px);
  --row-spacing-multiplier: 0.48;
}
.services-bg-row span { font-size: var(--bg-font); }
/* Remove unused overlay; flat background used instead */

/* Let About Us scroll over the fixed Services during the tail/linger */
.services-scroller + .showcase { position: relative; z-index: 2; }
/* Ensure every following .section also stacks above the sticky services */
.services-scroller ~ .section { position: relative; z-index: 2; }

/* Ensure sections after About stack above the pinned About during its tail */
.about-scroller ~ .section { position: relative; z-index: 3; }

/* Next section enters naturally; no extra transforms to match About's entry from Services */

/* Removed services header text */

/* Services entrance animation */
.services-scroller .services-header,
.services-scroller .services-track {
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.2,1.05);
}
.services-scroller:not(.is-entered) .services-header {
  opacity: 0;
  transform: translateY(10px);
}
.services-scroller:not(.is-entered) .services-track {
  opacity: 0;
  transform: translateY(24px) scale(.985);
}

.services-track {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 clamp(18px, 6vw, 60px) 40px;
  transform-style: preserve-3d;
  perspective: 1400px;
}

.service-card {
  position: absolute;
  left: 50%;
  top: 52%;
  display: block;
  width: min(576px, 62.4vw);
  aspect-ratio: 16/9;
  border-radius: 32px;
  overflow: hidden;
  text-decoration: none;
  transform-origin: center center;
  box-shadow: 0 32px 70px rgba(0,0,0,.4);
  will-change: transform, opacity, filter;
  background: #111;
  opacity: 1 !important; /* ensure fully opaque visually */
  /* Compose transform from CSS variables written by JS for smoothness */
  transform: translate(-50%, -50%)
             translate3d(var(--tx, 0px), var(--ty, 0px), var(--tz, 0px))
             rotateZ(var(--rotZ, 0deg))
             rotateX(var(--tiltX, 0deg))
             rotateY(var(--tiltY, 0deg))
             scale(var(--scale, 1));
  /* Additional micro-smoothing when scroll input is choppy */
  transition: 
    --tx 0.12s linear,
    --ty 0.12s linear,
    --tz 0.12s linear,
    --scale 0.12s linear,
    --rotZ 0.12s linear,
    --tiltX 0.10s linear,
    --tiltY 0.10s linear;
}

.service-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 0%, rgba(255,255,255,.2), rgba(0,0,0,0));
  pointer-events: none;
}

.service-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: clamp(12px, 2vw, 24px);
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  pointer-events: none; /* keep whole card clickable */
}
.service-meta h3 {
  margin: 0;
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .88;
  font-size: clamp(42px, 10vw, 160px);
  text-shadow: 0 10px 30px rgba(0,0,0,.55), 0 2px 12px rgba(0,0,0,.45);
}
.service-meta span { display: none; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(17,60,122,.25); }
.card img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; }
/* Brand-specific: revert these to cover to match prior look */
.card img[src*="ss-activewear.png"],
.card img[src*="alphabroder-image.webp"],
.card img[src*="sanmar-canada.webp"],
.card img[src*="private-agent-dnd.webp"],
.card img[src*="AJM-international.jpg"] { object-fit: cover; }
.card-body { padding: 18px; }
.card-body h3 { margin-top: 0; margin-bottom: 6px; }
.card-body p { color: var(--muted); margin-top: 0; margin-bottom: 12px; }

/* Showcase */
.showcase { position: relative; background: #ffffff; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.split .media video { border-radius: var(--radius); box-shadow: var(--shadow); }
.bullet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.bullet { background: #f1f4fa; padding: 16px; border-radius: 12px; }
.bullet strong { display: block; color: var(--brand-blue); }

/* Gallery */
.gallery { background: #0b1222; }
.gallery .section-title { color: #ffffff; }
.masonry { columns: 3 340px; column-gap: 16px; }
.tile { break-inside: avoid; margin-bottom: 16px; overflow: hidden; border-radius: 14px; box-shadow: var(--shadow); }
.tile img { width: 100%; height: auto; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.06); }

/* OUR WORK diagonal background marquee inside the sticky work scroller */
/* Remove Our Work background marquee */
.work-bg { display: none !important; }
.work-bg-inner {
  position: absolute;
  top: 50%; left: 50%;
  width: 360vw;           /* vastly exceed viewport to avoid any empty edges */
  height: 200vh;
  transform: translate(-50%, -50%) rotate(-18deg); /* center then rotate */
  transform-origin: center;
}
.work-bg-row {
  position: relative;
  white-space: nowrap;
  will-change: transform;
  line-height: 1;
  opacity: 0.12; /* subtle background */
}
.work-bg-row-track { display: inline-flex; will-change: transform; min-width: 300vw; }
.work-bg-row span {
  display: inline-block;
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,.12);
}
/* Larger, responsive font size so the words create a bold pattern */
.work-bg {
  --bg-font: clamp(96px, 14vw, 220px);  /* bigger */
  /* Aggressively reduce spacing so rows are nearly stacked */
  --row-gap: clamp(-120px, -6vw, -30px);
  --row-spacing-multiplier: 0.45;
}
.work-bg-row span { font-size: var(--bg-font); }

/* Desktop: Our Work as 3 auto-scrolling rows */
@media (min-width: 992px) {
  /* Show the section title for Our Work and match About headline size */
  .gallery > .container > .section-title {
    display: block !important;
    text-align: center;
    font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    letter-spacing: .04em;
    font-size: var(--about-headline-size);
    line-height: .95;
    margin: 0 0 10px;
  }
  .section.gallery { padding-top: 24px; padding-bottom: 0; }

  .work-scroller { position: relative; }
  .work-rows-marquee {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: repeat(2, auto);
    gap: 24px;
    padding: 32px 0 32px;
    /* Wide bleed like brands marquee edges */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    cursor: grab;
    touch-action: pan-y;
  }
  .work-row {
    position: relative;
    overflow: hidden;
    padding-block: 8px;
  }
  .work-row::before,
  .work-row::after {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 120px; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, #0b1222 0%, rgba(11,18,34,0.95) 25%, rgba(11,18,34,0.8) 50%, rgba(11,18,34,0) 100%);
  }
  .work-row::after { left: auto; right: 0; transform: scaleX(-1); }
  .work-row-track {
    position: relative;
    display: flex; align-items: center; gap: 20px; width: max-content; will-change: transform;
  }
  .work-row-track img {
    height: 280px; width: auto; border-radius: 16px; box-shadow: var(--shadow); object-fit: cover; user-select: none; -webkit-user-drag: none;
  }
  .work-rows-marquee.is-dragging { cursor: grabbing; }

  /* Hide legacy sticky columns container on desktop */
  .work-sticky { display: none !important; }
  .gallery .masonry { display: none; }
}

/* Keep mobile unchanged: hide the special scroller under 992px; use existing masonry */
/* Enable marquee rows layout on smaller desktop widths as well */
@media (min-width: 760px) and (max-width: 991.98px) {
  .gallery > .container > .section-title {
    display: block !important;
    text-align: center;
    font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    letter-spacing: .04em;
    font-size: var(--about-headline-size);
    line-height: .95;
    margin: 0 0 8px;
  }
  .work-scroller { display: block; }
  .section.gallery { padding-top: 24px; }
  .work-rows-marquee {
    display: grid; grid-template-rows: repeat(2, auto); gap: 16px; padding: 20px 0 20px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    cursor: grab;
    touch-action: pan-y;
  }
  /* Hide legacy masonry on small desktop so the carousel is the only variant */
  .gallery .masonry { display: none; }
  .work-row { position: relative; overflow: hidden; padding-block: 6px; }
  .work-row::before,
  .work-row::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 100px; z-index: 2; pointer-events: none; background: linear-gradient(90deg, #0b1222 0%, rgba(11,18,34,0.95) 25%, rgba(11,18,34,0.8) 50%, rgba(11,18,34,0) 100%); }
  .work-row::after { left: auto; right: 0; transform: scaleX(-1); }
  .work-row-track { position: relative; display: flex; align-items: center; gap: 16px; width: max-content; will-change: transform; padding-inline: 0; }
  .work-row-track img { height: 220px; width: auto; border-radius: 14px; box-shadow: var(--shadow); object-fit: cover; }
  .work-rows-marquee.is-dragging { cursor: grabbing; }
}

/* CTA */
.cta { position: relative; background: #0b1222; color: #fff; overflow: hidden; }
.cta .container { position: relative; z-index: 2; }
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Vars driven by JS */
  --cta-translate: 0px;
  --cta-rot-a: 0deg;
  --cta-rot-b: 0deg;
  --k: 0;
  /* Remove lined/striped overlays: keep CTA a solid color */
  background: none;
  opacity: 1;
}

/* Scroll-driven parallax bands inside CTA background */
.cta-bg::before,
.cta-bg::after { content: none; }

/* Big Bebas Neue headline and tight, bold layout */
.cta-headline {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .9;
  margin: 0 0 .08em 0;
  font-size: clamp(56px, 14vw, 164px);
  text-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.cta-subhead {
  font-size: clamp(18px, 2.2vw, 28px);
  color: #e8f0ff;
  margin: 6px 0 18px 0;
}

.cta-content { 
  text-align: center; 
  padding: clamp(12px, 3vw, 24px);
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0;
}

.btn.btn-light:hover { background: rgba(255,255,255,.9); }

/* Make CTA scroll up over the pinned Our Work and pin under the header. 
   Height leaves a footer peek so footer is visible simultaneously. */
@media (min-width: 992px) {
  .section.gallery + .cta,
  .clients + .cta {
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h) - var(--footer-peek));
      display: grid;
      /* Align CTA content toward the top to reduce space from Our Work */
      align-items: start;
    z-index: 5; /* above .work-sticky and its bg */
    margin-top: 0;
  }
    .section.gallery + .cta .container,
    .clients + .cta .container {
      height: 100%;
      display: grid;
      /* Keep content near the top with a modest breathing room */
      align-items: start;
      padding-top: clamp(12px, 2vw, 24px);
    }
}

/* Desktop: keep CTA background animated while pinned under header */
@media (min-width: 992px) {
  .section.gallery + .cta .cta-bg,
  .clients + .cta .cta-bg {
    position: sticky; /* remain visually aligned to the CTA while it is pinned */
    top: 0;           /* stick to the CTA box, not the viewport */
    height: 100%;
  }
}

/* About (video background with overlay content) */
.about-video-section {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  overflow: hidden;
}
/* Static About wrapper (no pinned/lingering timeline) */
.about-scroller {
  position: relative;
  z-index: 2;
  height: auto;
  margin: 0;
}

/* No sticky inner on desktop */
.about-sticky { position: static; top: auto; height: auto; }
.about-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}
.about-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(17,60,122,.35), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.65));
}
.about-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.about-content .about-grid { min-height: clamp(520px, 78vh, 1000px); display: grid; align-items: center; }
/* Simplified About layout: single wide centered card, no side photos */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(18px, 4vw, 36px);
}
.about-card.primary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  padding: clamp(18px, 4.5vw, 36px);
  width: min(1100px, 92vw);
}

/* Plain variant: no card treatments; text sits directly on video */
.about-card.about-plain {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  width: min(1400px, 96vw);
  padding: 0;
}
.about-card.about-plain .section-title { display: none; }
.about-card.about-plain .about-headline {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .95;
  margin: 0 0 .1em 0;
  font-size: var(--about-headline-size);
  color: #fff;
  text-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.about-card.about-plain .about-lead {
  font-size: var(--about-lead-size);
  color: #e8f0ff;
  max-width: 60ch;
  margin: 0 0 16px 0;
}

/* Increase contrast of video overlay to support large white text */
.about-overlay {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(17,60,122,.45), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
}
.about-card.primary .section-title { color: #fff; opacity: .95; margin-bottom: 6px; }
.about-card.primary h2 { margin: 6px 0 12px; font-size: clamp(28px, 4.6vw, 48px); letter-spacing: .01em; }
.about-card.primary p { color: #e7ebf5; opacity: .96; }
.bullet-grid.alt { margin-top: 18px; }
.bullet-grid.alt .bullet { background: rgba(255,255,255,.09); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.bullet-grid.alt .bullet strong { color: #fff; }

/* Scroll-reveal staging for bullets and CTA inside About card */
.about-scroller .about-card .bullet-grid,
.about-scroller .about-card .btn.btn-light { transition: none; }

/* Collapse layout space initially so only heading + paragraph are visible */
.about-scroller .about-card .bullet-grid { display: none !important; }
.about-scroller .about-card .btn.btn-light { pointer-events: auto; overflow: visible; max-height: none; margin-top: 20px; padding-top: 14px; padding-bottom: 14px; border-width: 1px; opacity: 1; transform: none; }

/* Class toggled by JS as user scrolls through pinned area */
/* Button always visible; no bullets timeline */
.about-scroller.bullets-done .about-card .btn.btn-light { opacity: 1; transform: none; }

/* Per-bullet progressive reveal during scroll */
/* Remove bullets entirely visually */
.about-card .bullet-grid { display: none !important; }

/* Word-by-word reveal for headline and paragraph */
.about-card.primary .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity .28s ease, transform .34s ease;
  will-change: opacity, transform;
}
.about-card.primary .reveal-word.is-visible {
  opacity: 1;
  transform: none;
}

/* Apply the same word-by-word reveal to the plain variant used on the homepage */
.about-card.about-plain .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity .28s ease, transform .34s ease;
  will-change: opacity, transform;
}
.about-card.about-plain .reveal-word.is-visible {
  opacity: 1;
  transform: none;
}

/* Prevent any flash of text before JS prepares the reveal spans */
/* No pre-wrap hidden state; text is always visible */
.about-scroller .about-card .about-headline,
.about-scroller .about-card .about-lead { visibility: visible; }

/* Linger: while active, ensure About remains visually above the next section */
.about-scroller.about-linger {
  z-index: 5;
}

/* Big CTA styled with Bebas Neue */
.btn-cta-big {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: clamp(28px, 4vw, 48px);
  padding: clamp(10px, 1.5vw, 16px) clamp(16px, 2.6vw, 28px);
  border-radius: 14px;
}

/* Remove photo columns and related styles */
.about-photos { display: none !important; }
.photo-card { display: none !important; }

/* Footer */
.site-footer {
  position: relative;
  background: radial-gradient(1000px 400px at 80% -10%, rgba(30,91,191,.18), rgba(0,0,0,0)),#0b1222;
  color: #d5d8df;
  padding-top: 48px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: -1px -1px auto -1px; height: 6px;
  background: linear-gradient(90deg, rgba(127,178,255,.0) 0%, rgba(127,178,255,.5) 20%, rgba(30,91,191,1) 50%, rgba(127,178,255,.5) 80%, rgba(127,178,255,.0) 100%);
  opacity: .6;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 28px; align-items: start; }
.footer-logo { height: 54px; margin-bottom: 12px; filter: brightness(0) invert(1) saturate(0) contrast(100); }
.footer-tagline { margin: 6px 0 12px; color: #b9c3d3; }
.site-footer a { color: #e3e7ef; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }

/* Remove bullets and tighten spacing */
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }

/* Headings with accent underline */
.site-footer h4 { margin: 0 0 10px; color: #ffffff; letter-spacing: .02em; }
.site-footer h4::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue-2), #7fb2ff);
  opacity: .9;
}

/* Footer nav links */
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 10px;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.footer-links a:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }

/* Contact list with decorative dots */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list .contact-item { display: flex; align-items: center; gap: 10px; }
.contact-icon {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px rgba(0,0,0,.22);
  flex: 0 0 auto;
}
.contact-icon svg { width: 18px; height: 18px; display: block; }
.contact-list a { text-decoration: none; }

/* Social icons */
.footer-social { display: flex; gap: 10px; margin-top: 10px; }
.social-link {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #e3e7ef;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 6px 18px rgba(0,0,0,.18);
}
.social-link:hover { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2)); color: #fff; transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; display: block; }

.subfooter {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0; margin-top: 28px;
  color: #9aa3b2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left;
}
.subfooter a { color: inherit; text-decoration: none; }
.subfooter a:hover { color: #e3e7ef; }

/* Forms */
form { display: grid; gap: 16px; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #d7dbe5; border-radius: 12px; background: #fff; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-blue-2); box-shadow: 0 0 0 4px rgba(30, 91, 191, .12); }
label { font-weight: 700; font-size: 14px; }

/* Utilities */
.reveal { opacity: 0; transform: translateY(16px); }
.in-view { opacity: 1 !important; transform: none !important; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.2,1.1); }
.no-animations .in-view { transition: none !important; }

[data-animate="fade-up"] { transform: translateY(18px); }
[data-animate="fade-in"] { transform: none; opacity: 0; }
[data-animate="scale-in"] { transform: scale(.95); }

/* Responsive */
@media (max-width: 992px) {
  .services-scroller { --step: 80vh; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .bullet-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop-only: enlarge service cards by ~50% without changing section height */
@media (min-width: 992px) {
  .service-card { width: min(864px, 70.4vw); }
  /* Ensure side photo stacks have equal, consistent widths and image sizes on desktop */
  .about-grid { grid-template-columns: 1fr; }

  /* Desktop: reduce About typography and button by ~20% (no transforms) */
  .about-card.about-plain {
    margin-inline: auto;
    /* Override About-only type scales 20% smaller */
    --about-headline-size: clamp(38px, 9.6vw, 128px);
    --about-lead-size: clamp(14px, 1.76vw, 24px);
  }
  .about-card.about-plain .btn-cta-big {
    font-size: clamp(22px, 3.2vw, 38px);
    padding: clamp(8px, 1.2vw, 13px) clamp(13px, 2.08vw, 22px);
  }
}

/* Desktop-only: Services as a static 2x2 grid (no sticky, no scroll-driven transforms) */
@media (min-width: 992px) {
  /* Cancel the overlap from Brands on desktop */
  .brands + .services-scroller { margin-top: 0; }

  .services-scroller {
    height: auto;
    margin: 0;
    padding: 64px 0;
    background: #0b1222; /* match site dark section */
  }

  .services-sticky {
    position: relative;
    top: auto;
    height: auto;
    display: block;
    overflow: visible;
    z-index: 0;
  }

  .services-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: auto;
    padding: 0;
    transform: none !important;
    perspective: none !important;
    place-items: stretch;
    z-index: 2; /* ensure above background marquee */
    /* Force visible; bypass entrance hidden state */
    opacity: 1 !important;
    transition: none !important;
    /* Constrain grid width so cards are smaller and centered */
    width: min(1320px, 98vw);
    margin-inline: auto;
  }

  .services-track .service-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100% !important;
    aspect-ratio: 16 / 10;
    transform: none !important;
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 3 !important;
    filter: none !important;
    transition: transform .25s ease, box-shadow .3s ease, filter .3s ease;
    will-change: transform;
  }

  .services-track .service-card::after { content: none; }

  /* Desktop hover effects */
  .services-track .service-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(800px 400px at 80% 0%, rgba(255,255,255,.18), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    border-radius: inherit;
  }
  .services-track .service-card img { transition: transform .45s ease, filter .3s ease; }
  .services-track .service-card:hover {
    transform: translateZ(0) scale(1.03) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
  }
  .services-track .service-card:hover::before { opacity: 1; }
  .services-track .service-card:hover img { transform: scale(1.06); filter: saturate(1.05) contrast(1.08); }
  .services-track .service-meta h3 { transition: transform .25s ease, text-shadow .3s ease; }
  .services-track .service-card:hover .service-meta h3 { transform: scale(1.02); text-shadow: 0 14px 40px rgba(0,0,0,.6); }

  .services-track .service-meta {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    background: none;
    padding: 12px;
  }

  .services-track .service-meta h3 {
    font-size: clamp(36px, 6vw, 72px);
    line-height: .9;
    letter-spacing: .02em;
    text-shadow: 0 10px 30px rgba(0,0,0,.55), 0 2px 12px rgba(0,0,0,.45);
  }
}
@media (max-width: 760px) {
  /* Make hero non-sticky on mobile; scrolls naturally */
  .hero { position: static; top: auto; height: auto; }
  .site-nav .menu { 
    position: fixed !important; 
    top: 80px !important;
    left: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    background: #ffffff !important; 
    border: 1px solid rgba(0,0,0,.08); 
    border-radius: 18px; 
    padding: 20px !important; 
    display: flex !important; 
    flex-direction: column !important;
    gap: 8px; 
    transform: translateY(-20px); 
    opacity: 0; 
    pointer-events: none; 
    transition: .3s ease;
    box-shadow: 0 10px 30px rgba(17, 60, 122, 0.15) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    list-style: none !important;
    margin: 0 !important;
  }
  .nav-open .menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-block; }
  
  /* Mobile menu items styling */
  .site-nav .menu li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
  }
  
  .site-nav .menu > li > a,
  .site-nav .menu > li > .btn {
    display: block !important;
    padding: 14px 16px !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
    font-size: clamp(20px, 5.2vw, 24px) !important;
    transition: background-color 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
  
  .site-nav .menu > li > a:hover,
  .site-nav .menu > li > a.active {
    background: #f0f3f9 !important;
    color: var(--brand-blue-2) !important;
  }
  
  .site-nav .menu .btn.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2)) !important;
    color: var(--white) !important;
    margin: 4px 0 !important;
    text-align: center !important;
  }
  
  .site-nav .menu .btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-blue-2), var(--brand-blue)) !important;
  }
  
  /* Mobile dropdown styling */
  .has-dropdown { position: relative; }
  .dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    font-weight: 400 !important;
    font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
    font-size: clamp(20px, 5.2vw, 24px) !important;
    letter-spacing: .02em !important;
    color: var(--text);
    padding: 10px 12px;
    text-align: left;
    width: 100%;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dropdown-toggle:hover {
    background: #f0f3f9;
    color: var(--brand-blue-2);
  }
  
  /* Add arrow indicator for mobile dropdowns */
  .dropdown-toggle::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--brand-blue-2);
  }
  .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
  
  .dropdown { 
    position: static; 
    background: #f8f9fb;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 12px;
    padding: 12px; 
    margin-top: 6px;
    opacity: 1; 
    transform: none; 
    pointer-events: auto;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
    display: none; /* Hidden by default, controlled by JavaScript */
    width: 100%;
    box-sizing: border-box;
    list-style: none;
    margin: 6px 0 0 0;
  }
  
  .dropdown li {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
  }
  
  .dropdown a {
    padding: 10px 12px;
    border-radius: 6px;
    display: block;
    color: var(--text);
    text-decoration: none;
    font-weight: 400 !important;
    font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
    font-size: clamp(20px, 5.2vw, 24px) !important;
    letter-spacing: .02em !important;
    width: 100%;
    box-sizing: border-box;
    margin: 2px 0;
  }
  
  .dropdown a:hover {
    background: var(--white);
    color: var(--brand-blue-2);
  }
  
  /* Mobile Language Switcher */
  .lang-switcher {
    margin-left: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
    padding: 20px 0 10px 0 !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
    justify-content: center !important;
    margin-top: 16px !important;
  }
  
  .lang-btn {
    font-size: 18px !important;
    padding: 10px 16px !important;
    flex: 1 !important;
    text-align: center !important;
  }
  
  .services-scroller { --step: 78vh; }
  :root { --services-tail: 240vh; }
  /* Mobile: keep width, increase height to fill most of the screen */
  .service-card {
    width: 65.6vw;
    /* Reduce card height on short screens so full content is visible */
    height: 56vh;
    height: 56svh;
    aspect-ratio: auto;
    border-radius: 24px;
  }
  .showcase::before { border-radius: 18px; top: 8px; bottom: 8px; }
  /* Center service text overlay vertically and horizontally on mobile */
  .service-card .service-meta {
    inset: 0;
    transform: none;
    gap: 8px;
  }
  /* Mobile: present Our Services as a simple stacked list (no sticky/3D) */
  .services-scroller { height: auto; margin: 0; }
  .services-sticky { position: static; height: auto; overflow: visible; }
  .services-bg-words { display: none !important; }
  .services-track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
    transform: none;
    perspective: none;
  }
  .service-card {
    position: relative;
    left: auto; top: auto;
    transform: none !important;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 18px;
    margin: 0;
    box-shadow: var(--shadow);
    z-index: auto;
  }
  .card-grid { grid-template-columns: 1fr; }
  .bullet-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Let hero grow within above-fold on mobile too */
  .hero { height: auto; }
  .above-fold { --header-h: 72px; min-height: calc(100svh - var(--header-h)); }

  /* About: stack and simplify for mobile */
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card.primary { padding: 18px; border-radius: 18px; }
  .about-photos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-photos .photo-card { transform: none !important; }
  .about-photos.left, .about-photos.right { padding: 0; transform: none; }
  /* About: static on mobile (unchanged) */
  .about-scroller { height: auto; margin: 0; }
  .about-sticky { position: static; top: auto; height: auto; }
  .about-video-section { min-height: auto; }

  /* Our Work (Gallery) – mobile adjustments */
  .section.gallery { padding-top: 36px; padding-bottom: 24px; }
  .gallery .container { width: 96vw; }
  .gallery .section-title {
    font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    font-weight: 400;
    letter-spacing: .02em;
    text-align: center;
    font-size: var(--about-headline-size);
    line-height: .95;
    margin-bottom: 18px;
  }
  .gallery .masonry { columns: 1; column-gap: 12px; }
  /* Show only first 5 Our Work images on mobile */
  .gallery .masonry .tile:nth-child(n+6) { display: none; }
  /* Hide desktop/tablet Our Work scroller on mobile so only masonry shows */
  .work-scroller,
  .work-rows-marquee { display: none !important; }
  .gallery .masonry { display: block !important; }
  .cta.section { padding-top: 28px; }

  /* Footer subfooter: center and stack lines on mobile */
  .subfooter {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  /* Footer: center all content on mobile */
  .site-footer .footer-grid { text-align: center; }
  .site-footer .footer-brand,
  .site-footer nav,
  .site-footer .footer-contact { justify-self: center; }
  .site-footer h4 { text-align: center; }
  .site-footer h4::after { margin-left: auto; margin-right: auto; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-links { display: grid; justify-content: center; }
  .footer-links a { justify-content: center; }
  .contact-list .contact-item { justify-content: center; }
}


/* Low-height landscape safeguards: disable sticky/pinned sections to avoid cropping */
@media (max-height: 800px) and (orientation: landscape) {
  /* Hero */
  .hero { position: relative; top: auto; height: auto; }
  .above-fold { min-height: auto; }

  /* Services: fall back to simple stacked cards */
  .services-scroller { height: auto; margin: 0; }
  .services-sticky { position: static; height: auto; overflow: visible; }
  .services-track { padding: 28px 16px; perspective: none; }
  .service-card {
    position: relative; left: auto; top: auto; transform: none;
    width: min(560px, 90vw); aspect-ratio: 16/9; margin: 12px auto; z-index: auto;
  }

  /* About */
  .about-scroller { height: auto; margin: 0; }
  .about-sticky { position: static; height: auto; }
  .about-video-section { min-height: auto; }

  /* Gallery/work: keep marquee carousel active even on low-height landscape */
  .work-scroller { display: block !important; }
  .gallery .masonry { display: none !important; }

  /* CTA: unstick */
  .section.gallery + .cta, .clients + .cta { position: static; top: auto; height: auto; display: block; }
}

/* Ensure mobile landscape also hides the scroller and shows only masonry (first 5) */
@media (max-width: 760px) and (max-height: 800px) and (orientation: landscape) {
  .work-scroller,
  .work-rows-marquee { display: none !important; }
  .gallery .masonry { display: block !important; }
}

/* Clients/Reviews */
.clients { 
  background: linear-gradient(135deg, #0b1222 0%, #1a2747 100%);
  color: #fff;
  padding: 80px 0 120px;
}

.clients .section-title {
  color: #ffffff;
  text-align: center;
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing: .04em;
  font-size: var(--about-headline-size);
  line-height: .95;
  margin-bottom: 32px;
}

/* Review Action Buttons */
.reviews-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-reviews {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-reviews svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-reviews:hover svg {
  transform: scale(1.1);
}

.btn-reviews.btn-outline {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn-reviews.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

.btn-reviews.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);
  border: 1px solid var(--brand-blue-2);
  color: #ffffff;
}

.btn-reviews.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-blue-2) 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 91, 191, 0.3);
}

/* Reviews Slider */
.reviews-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.reviews-viewport { 
  overflow: hidden; 
  border-radius: 16px;
}

.reviews-track {
  list-style: none;
  margin: 0; 
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card {
  background: linear-gradient(135deg, #101a33 0%, #1a2747 100%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  box-shadow: 
    0 10px 40px rgba(0,0,0,.3),
    0 4px 16px rgba(17,60,122,.2),
    inset 0 1px 0 rgba(255,255,255,.1);
  padding: 24px;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);
  opacity: 0.8;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 60px rgba(0,0,0,.4),
    0 8px 32px rgba(17,60,122,.3),
    inset 0 1px 0 rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
}

.review-head { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 12px;
}

.review-avatar { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);
  display: grid; 
  place-items: center; 
  color: #ffffff; 
  font-weight: 800; 
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(17,60,122,.3);
}

.review-name { 
  margin: 0; 
  font-weight: 700; 
  color: #ffffff;
  font-size: 15px;
}

.review-date { 
  color: #b9c3d3; 
  font-size: 12px; 
  margin-top: 2px;
}

.review-stars { 
  color: #fbbf24; 
  display: inline-flex; 
  gap: 2px; 
  margin: 8px 0 12px; 
  font-size: 16px;
}

.review-text { 
  color: #e8f0ff; 
  margin: 0; 
  line-height: 1.5;
  font-size: 14px;
}

.review-source { 
  color: #b9c3d3; 
  font-size: 12px; 
  margin-top: 16px; 
  font-weight: 500;
  opacity: 0.8;
}

.reviews-arrow {
  appearance: none; 
  border: none; 
  background: rgba(255,255,255,.1); 
  color: #fff;
  width: 48px; 
  height: 48px; 
  border-radius: 12px; 
  display: inline-grid; 
  place-items: center;
  cursor: pointer; 
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
}

.reviews-arrow:hover { 
  background: rgba(255,255,255,.2); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
}

.reviews-arrow:disabled { 
  opacity: .4; 
  cursor: default; 
  transform: none; 
  box-shadow: none;
}

.reviews-arrow svg {
  transition: transform 0.3s ease;
}

.reviews-arrow:hover:not(:disabled) svg {
  transform: scale(1.1);
}

/* Desktop specific */
@media (min-width: 992px) {
  .reviews-track { 
    grid-auto-columns: calc((100% - 40px) / 3); 
  }
  
  .reviews-slider {
    gap: 24px;
  }
}

/* Mobile responsive */
@media (max-width: 991.98px) {
  .clients {
    padding: 60px 0 80px;
  }
  
  .reviews-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-reviews {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .reviews-slider { 
    grid-template-columns: 1fr; 
    gap: 0;
  }
  
  .reviews-arrow { 
    display: none; 
  }
  
  .reviews-viewport { 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .reviews-viewport::-webkit-scrollbar {
    display: none;
  }
  
  .reviews-track { 
    grid-auto-columns: 86%; 
    padding-bottom: 8px; 
    gap: 16px;
  }
  
  .review-card { 
    scroll-snap-align: start; 
    min-height: 200px;
  }
}

/* About card – enhanced visual redesign (maintaining exact dimensions) */
.about-card.primary {
  /* keep existing padding/width; only enhance visuals */
  position: relative;
  height: 100%; /* fill the grid cell height to use the full card space */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1400px 700px at 80% -15%, rgba(30,91,191,0.42), rgba(17,60,122,0.15)),
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 50%, rgba(200,203,209,0.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 28px 80px rgba(0,0,0,.45),
    0 8px 32px rgba(17,60,122,.25),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(17,60,122,.15);
  backdrop-filter: blur(12px) saturate(1.2);
}

/* Enhanced corner accents with multiple decorative layers */
.about-card.primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(220px 220px at 12% 12%, rgba(255,255,255,0.45), transparent 65%),
    radial-gradient(180px 180px at 88% 88%, rgba(30,91,191,0.35), transparent 65%),
    radial-gradient(120px 120px at 50% 0%, rgba(200,203,209,0.2), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

.about-card.primary::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  background: 
    linear-gradient(135deg, 
      rgba(255,255,255,0.12) 0%, 
      rgba(255,255,255,0.06) 25%, 
      transparent 50%, 
      rgba(17,60,122,0.08) 75%, 
      rgba(30,91,191,0.15) 100%),
    conic-gradient(from 45deg at 20% 20%, 
      rgba(255,255,255,0.08) 0deg, 
      transparent 90deg, 
      rgba(30,91,191,0.06) 270deg, 
      rgba(255,255,255,0.08) 360deg);
  border-radius: 22px;
  pointer-events: none;
  opacity: 0.8;
}

/* Enhanced typography hierarchy with improved visual treatment */
.about-card.primary .section-title {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 8px 32px rgba(0,0,0,.4), 0 2px 8px rgba(17,60,122,.3);
  position: relative;
  z-index: 2;
}

.about-card.primary .section-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue-2) 0%, #7fb2ff 50%, var(--brand-silver) 100%);
  opacity: .92;
  box-shadow: 0 4px 12px rgba(30,91,191,.4);
}

.about-card.primary h2 {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  color: #f0f6ff;
  margin: 10px 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  position: relative;
  z-index: 2;
}

.about-card.primary p {
  color: #e8f0ff;
  opacity: .96;
  margin: 0 0 18px;
  line-height: 1.7;
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 18px);
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
  position: relative;
  z-index: 2;
}

/* Enhanced bullet list with modern design treatment */
.about-card.primary .bullet-grid.alt {
  margin-top: 16px;
  gap: 14px;
  flex: 0 0 auto;              /* don't consume remaining space, size to content */
  align-items: stretch;         /* make all bullets equal height */
  /* Turn into three horizontal rows inside the card */
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, auto);  /* auto height instead of equal height */
}

.about-card.primary .bullet-grid.alt .bullet {
  position: relative;
  display: grid;                 /* icon left, text right */
  grid-template-columns: 42px 1fr;
  grid-auto-rows: min-content;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%),
    radial-gradient(200px 100px at 20% 20%, rgba(30,91,191,0.15), transparent 70%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  box-shadow: 
    0 8px 24px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(17,60,122,0.1);
  min-height: 80px;               /* minimum height with content-based sizing */
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card.primary .bullet-grid.alt .bullet:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 12px 32px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(17,60,122,0.12);
}

.about-card.primary .bullet-grid.alt .bullet::before {
  content: "\2713"; /* checkmark */
  display: grid; place-items: center;
  width: 32px; height: 32px;
  margin-top: 1px;
  border-radius: 12px;
  background: 
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 
    0 8px 20px rgba(30,91,191,0.4),
    0 2px 8px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,0.3);
  grid-column: 1;
  grid-row: 1 / span 2;          /* span title + description */
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.about-card.primary .bullet-grid.alt .bullet strong {
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
  font-weight: 700;
  font-size: clamp(16px, 1.2vw, 18px);
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
  position: relative;
  z-index: 2;
}

.about-card.primary .bullet-grid.alt .bullet span {
  color: #e8f0ff;
  opacity: .94;
  line-height: 1.55;
  font-size: clamp(14px, 1.05vw, 16px);
  text-shadow: 0 1px 3px rgba(0,0,0,.15);
  position: relative;
  z-index: 2;
}

/* Enhanced button treatment within card */
.about-card.primary .btn.btn-light {
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%),
    radial-gradient(circle at 20% 20%, rgba(30,91,191,0.08), transparent 60%);
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--brand-blue);
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 
    0 12px 28px rgba(255,255,255,0.15),
    0 4px 12px rgba(0,0,0,.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  margin-top: 20px;         /* separate from grid */
  align-self: flex-start;   /* keep aligned with text column */
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 3;
}

.about-card.primary .btn.btn-light:hover {
  transform: translateY(-2px);
  background: 
    linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.92) 100%),
    radial-gradient(circle at 20% 20%, rgba(30,91,191,0.12), transparent 60%);
  box-shadow: 
    0 16px 40px rgba(255,255,255,0.22),
    0 6px 16px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
  color: var(--brand-blue-2);
}

/* Responsive: revert rows to auto on narrow screens */
@media (max-width: 760px) {
  .about-card.primary .bullet-grid.alt {
    grid-template-rows: auto;
  }
}

/* Contact Page Styles */
.contact-info-section {
  background: linear-gradient(135deg, #f7f8fb 0%, #ffffff 100%);
  padding: 84px 0 64px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: 
    radial-gradient(1200px 600px at 20% 10%, rgba(30,91,191,0.08), rgba(17,60,122,0.02)),
    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 
    0 24px 64px rgba(17,60,122,0.12),
    0 8px 24px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(20px) saturate(1.1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(600px 300px at 80% 20%, rgba(30,91,191,0.06), transparent 70%),
    radial-gradient(400px 200px at 20% 80%, rgba(200,203,209,0.08), transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

.contact-card-header {
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}

.contact-card-header h2 {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .95;
  margin: 0 0 12px;
  color: var(--brand-blue);
  text-shadow: 0 2px 8px rgba(17,60,122,0.1);
}

.contact-card-header p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: clamp(16px, 1.2vw, 18px);
}

.contact-details {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-details .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 100%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  box-shadow: 
    0 8px 24px rgba(17,60,122,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-details .contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(17,60,122,0.1),
    inset 0 1px 0 rgba(255,255,255,0.9);
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.5) 100%);
}

.contact-details .contact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  box-shadow: 
    0 8px 20px rgba(30,91,191,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.contact-details .contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-content {
  flex: 1;
  min-width: 0;
}

.contact-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-blue);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.contact-value {
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: var(--brand-blue-2);
}

.contact-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.map-card {
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 
    0 24px 64px rgba(17,60,122,0.12),
    0 8px 24px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.map-header {
  margin-bottom: 24px;
}

.map-header h3 {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .95;
  margin: 0 0 8px;
  color: var(--brand-blue);
}

.map-header p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: clamp(14px, 1.1vw, 16px);
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 16px 40px rgba(17,60,122,0.15),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.services-cta-section {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);
  color: #fff;
  padding: 84px 0;
}

.services-cta-card {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.services-cta-card h2 {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .95;
  margin: 0 0 16px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.services-cta-card p {
  font-size: clamp(18px, 2vw, 22px);
  color: #e8f0ff;
  margin: 0 0 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-item {
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(300px 150px at 50% 0%, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

.service-item:hover {
  transform: translateY(-4px);
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.10) 100%);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  z-index: 2;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-item h4 {
  font-family: 'Bebas Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: .02em;
  margin: 0 0 12px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.service-item p {
  color: #e8f0ff;
  opacity: 0.9;
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: clamp(14px, 1.1vw, 16px);
  position: relative;
  z-index: 2;
}

.service-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.service-link:hover {
  color: #7fb2ff;
  transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-card,
  .map-card {
    padding: 28px;
  }
  
  .contact-actions {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .contact-info-section {
    padding: 64px 0 48px;
  }
  
  .contact-card,
  .map-card {
    padding: 24px;
    border-radius: 20px;
  }
  
  .contact-details {
    gap: 20px;
  }
  
  .contact-details .contact-item {
    padding: 16px;
    border-radius: 14px;
  }
  
  .contact-details .contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  
  .contact-details .contact-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .map-container {
    height: 300px;
  }
  
  .services-cta-section {
    padding: 64px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .service-item {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

