/* =========================================================
   Brand Zee — Clean corporate agency
   Palette: navy base, single blue accent, generous whitespace
   ========================================================= */

:root {
  /* Brand */
  --navy-900: #08192B;
  --navy-800: #0F2A47;
  --navy-700: #16395E;
  --blue-600: #1668C9;
  --blue-500: #2A82E4;
  --blue-300: #8CC0F7;
  --blue-100: #E6F0FC;

  /* Neutrals */
  --ink:      #16202B;
  --body:     #4A5A6B;
  --muted:    #7A8898;
  --line:     #E2E9F1;
  --soft:     #F5F8FC;
  --white:    #FFFFFF;

  /* Type */
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Scale */
  --container: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 10px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(15, 42, 71, .06), 0 2px 8px rgba(15, 42, 71, .05);
  --sh-md: 0 4px 12px rgba(15, 42, 71, .07), 0 12px 28px rgba(15, 42, 71, .07);
  --sh-lg: 0 18px 50px rgba(15, 42, 71, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy-800); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Every section header is centred, with a triangle accent tying them together */
.section__head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section__head::after {
  content: "";
  display: block;
  width: 0; height: 0;
  margin: 20px auto 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid var(--blue-600);
}
.section--dark .section__head::after { border-top-color: var(--blue-300); }
.section__sub { font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section__sub { color: rgba(255,255,255,.72); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 .8rem;
}
.eyebrow--light { color: var(--blue-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .01em;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease),
              box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(22,104,201,.28); }
.btn--primary:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,42,71,.26); }

.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { background: var(--white); border-color: var(--navy-800); color: var(--navy-800); transform: translateY(-2px); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: #fff; color: var(--navy-800); transform: translateY(-2px); }

.link-arrow {
  font-family: var(--font-head);
  font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4em;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}
/* Three tracks so the contact details stay optically centred in the bar,
   regardless of how wide the social icons are. */
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px; min-height: 42px;
}
.topbar__meta {
  grid-column: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
}
.topbar__item {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.72);
}
.topbar__item svg { width: 14px; height: 14px; fill: var(--blue-500); flex: none; }
a.topbar__item:hover { color: #fff; }
.topbar__social { grid-column: 3; justify-self: end; display: flex; gap: 6px; }
.topbar__social a {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.08);
  transition: background .25s var(--ease);
}
.topbar__social a:hover { background: var(--blue-600); }
.topbar__social svg { width: 13px; height: 13px; fill: #fff; }

/* ---------- Header ---------- */
/* Dark so the logo's white "Brand" wordmark stays legible */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,42,71,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck {
  background: rgba(11,32,56,.96);
  box-shadow: 0 6px 26px rgba(8,25,43,.28);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px;
}
.brand img { width: auto; height: 42px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--font-head);
  font-weight: 600; font-size: .92rem;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 8px;
  display: block;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--blue-600); background: var(--blue-100); }
.nav__link.is-active { color: var(--blue-600); }

/* The desktop bar sits on the dark header; the mobile drawer stays a light
   panel, so these light colours are scoped to the desktop breakpoint only. */
@media (min-width: 981px) {
  .nav__link { color: rgba(255,255,255,.82); }
  .nav__link:hover { color: #fff; background: rgba(255,255,255,.1); }
  .nav__link.is-active { color: var(--blue-300); background: rgba(255,255,255,.07); }
}

/* Compact quote button in the bar itself — on phones the nav CTA is hidden
   inside the drawer, so without this there is no visible call to action. */
.header__cta { display: none; }

.burger {
  display: none;
  flex: none;              /* never squeeze below the 44px touch target */
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,.24); border-radius: 10px;
  padding: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(8,25,43,.5);
  backdrop-filter: blur(2px);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  will-change: transform;
}

/* ---------- Hero (centered) ---------- */
.hero {
  position: relative;
  padding: clamp(52px, 7vw, 88px) 0 0;
  overflow: hidden;
}
/* Deep navy so the logo's white wordmark reads, and the hero carries weight */
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 52% at 50% -8%, rgba(42,130,228,.36), transparent 68%),
    radial-gradient(42% 46% at 88% 22%, rgba(22,104,201,.24), transparent 66%),
    radial-gradient(38% 42% at 6% 32%, rgba(42,130,228,.18), transparent 64%),
    linear-gradient(180deg, #0F2A47 0%, #0B2038 58%, #08192B 100%);
}
/* Faint dot grid keeps the large empty area from reading as blank */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(62% 58% at 50% 22%, #000 0%, transparent 72%);
          mask-image: radial-gradient(62% 58% at 50% 22%, #000 0%, transparent 72%);
}

/* Floating triangle motif — echoes the accent under each section heading */
.tri-deco {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.tri {
  position: absolute;
  fill: none;
  stroke: rgba(255,255,255,.11);
  stroke-width: 2;
  stroke-linejoin: round;
  transform: rotate(var(--rot, 0deg));
  animation: floaty var(--dur, 14s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.tri--1 { width: 210px; top: 9%;  left: -52px;  --rot: 16deg;  --dur: 16s; }
.tri--2 { width: 128px; top: 46%; right: 3%;    --rot: -22deg; --dur: 13s; --delay: -3s;
          stroke: rgba(140,192,247,.2); }
.tri--3 { width: 74px;  top: 20%; right: 14%;   --rot: 7deg;   --dur: 11s; --delay: -6s; }
.tri--4 { width: 96px;  top: 62%; left: 7%;     --rot: -12deg; --dur: 18s; --delay: -9s;
          stroke: rgba(140,192,247,.14); }

@keyframes floaty {
  0%, 100% { transform: translateY(0)      rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-18px)  rotate(var(--rot, 0deg)); }
}

/* Hero type on the dark ground */
.hero .eyebrow { color: var(--blue-300); }
.hero h1 { color: #fff; }
.hero__lead { color: rgba(255,255,255,.76); }
/* Extra specificity: the base .hero__points rules are defined further down */
.hero .hero__points { color: rgba(255,255,255,.88); }
.hero .hero__points li::before {
  background: rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 900px;
}
.hero__logo {
  height: 56px; width: auto; object-fit: contain;
  margin-bottom: 22px;
}
.hero__inner h1 { max-width: 17ch; margin-bottom: .5em; }
@media (min-width: 981px) { .hero__inner h1 { max-width: none; } }

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  max-width: 62ch;
  margin-inline: auto;
}
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 30px;
}

.hero__points {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 26px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  margin-bottom: clamp(44px, 6vw, 70px);
}
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before {
  content: ""; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231668C9'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.br-lg { display: none; }
@media (min-width: 981px) { .br-lg { display: inline; } }

/* ---------- Scrolling marquee ---------- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee var(--marquee-duration, 46s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  /* The track is duplicated in JS, which also measures one full set of items
     and writes it to --marquee-shift, so the loop repeats with no seam. */
  to   { transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0); }
}

.marquee__item {
  position: relative; margin: 0;
  flex: none;
  width: clamp(230px, 26vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--soft);
}
.marquee__item img { width: 100%; height: 100%; object-fit: cover; }
.marquee__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 13px;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: #fff;
  background: linear-gradient(to top, rgba(8,25,43,.85), transparent);
}

/* Logo strip variant */
.marquee--logos { --marquee-duration: 38s; }
.marquee--logos .marquee__track { gap: 64px; align-items: center; }
.marquee--logos img {
  flex: none;
  width: 130px; height: auto;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.marquee--logos img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Collapsible grids ("show more") ----------
   Only ever active on small screens; JS adds .is-collapsed. */
.more-wrap { display: none; margin-top: 26px; text-align: center; }
.more-btn { min-width: 220px; }
.more-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform .25s var(--ease);
}
.more-btn[aria-expanded="true"]::after { transform: rotate(180deg); }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 26px 0 34px;
  color: rgba(255,255,255,.6); font-family: var(--font-head);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue__mouse {
  width: 22px; height: 34px;
  border: 2px solid currentColor; border-radius: 12px;
  display: grid; justify-items: center; padding-top: 6px;
}
.scroll-cue__mouse span {
  width: 3px; height: 6px; border-radius: 2px;
  background: currentColor;
  animation: cue 1.7s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55%      { transform: translateY(8px); opacity: .25; }
}

/* ---------- Stats ---------- */
/* Light, so it separates the dark hero from the white content below */
.stats {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 5vw, 52px) 0;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; padding: 4px 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--navy-800); line-height: 1.1; margin-bottom: 6px;
}
.stat__label {
  display: block; font-size: .87rem; line-height: 1.5;
  color: var(--body); max-width: 22ch; margin-inline: auto;
}

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about__media { position: relative; }
/* Clipping frame so the parallax drift stays inside the rounded box */
.about__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--soft);
}
.about__img {
  position: absolute; left: 0; top: -6%;
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.about__chip {
  position: absolute; right: -14px; bottom: 28px;
  background: #fff; border-radius: var(--radius-sm);
  box-shadow: var(--sh-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  max-width: 260px;
}
.about__chip svg { width: 26px; height: 26px; fill: var(--blue-600); flex: none; }
.about__chip strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.about__chip span { font-size: .8rem; color: var(--muted); }

.ticks { display: grid; gap: 12px; margin: 0 0 30px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231668C9'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { font-size: .94rem; flex: 1; }
.card__body h3 { color: var(--ink); }

/* ---------- Why ---------- */
.why__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.signs { display: grid; gap: 12px; margin: 0 0 30px; }
.signs li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--soft); border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  color: var(--ink); font-weight: 500; font-size: .95rem;
}
/* Warning triangle, matching the site's triangle motif */
.signs__no {
  flex: none; width: 22px; height: 20px;
  background: var(--blue-600); color: #fff;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 2px;
  font-size: .62rem; font-weight: 700; line-height: 1;
  margin-top: 4px;
}
.why__media { position: relative; }
.why__media > img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--sh-lg);
}
.why__quote {
  background: var(--navy-800); color: #fff;
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin: -44px 20px 0 20px;
  position: relative;
  box-shadow: var(--sh-md);
}
.why__quote p {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.02rem; line-height: 1.45; color: #fff; margin: 0 0 6px;
}
.why__quote span { font-size: .84rem; color: rgba(255,255,255,.66); }

/* ---------- Digital marketing grid ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.svc {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.svc:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); transform: translateY(-4px); }
.svc__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-600);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.svc__icon svg { width: 24px; height: 24px; fill: #fff; }
.svc p { font-size: .93rem; color: rgba(255,255,255,.72); margin: 0; }
.svc--cta {
  background: var(--blue-600); border-color: var(--blue-600);
  display: flex; flex-direction: column; align-items: flex-start;
}
.svc--cta:hover { background: var(--blue-500); border-color: var(--blue-500); }
.svc--cta p { color: rgba(255,255,255,.9); margin-bottom: 20px; }
.svc--cta .btn--primary { background: #fff; color: var(--navy-800); box-shadow: none; }
.svc--cta .btn--primary:hover { background: var(--navy-900); color: #fff; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery__item {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--sh-sm);
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 18px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: #fff;
  background: linear-gradient(to top, rgba(8,25,43,.82), transparent);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700));
  color: rgba(255,255,255,.8);
  padding: clamp(48px, 6vw, 72px) 0;
}
.cta-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: .3em; }
.cta-banner p { margin: 0; max-width: 56ch; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.contact__list { display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-100); display: grid; place-items: center;
}
.contact__ico svg { width: 20px; height: 20px; fill: var(--blue-600); }
.contact__list strong {
  display: block; font-family: var(--font-head);
  color: var(--ink); font-size: .95rem; margin-bottom: 2px;
}
.contact__list a { color: var(--body); }
.contact__list a:hover { color: var(--blue-600); }

.contact__form-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--sh-md);
  padding: clamp(24px, 3.5vw, 36px);
}
.form__title { margin-bottom: .3em; }
.form__note { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .85rem; color: var(--ink); margin-bottom: 6px;
}
.req { color: var(--blue-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .94rem; color: var(--ink);
  background: var(--soft);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237A8898'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(42,130,228,.16);
}
.field.has-error input, .field.has-error textarea { border-color: #D3455B; background: #FFF6F7; }
.field__err { display: none; color: #D3455B; font-size: .8rem; margin-top: 5px; }
.field.has-error .field__err { display: block; }
.form__alt { font-size: .84rem; color: var(--muted); text-align: center; margin: 16px 0 0; }

.map { margin-top: clamp(48px, 6vw, 72px); }
.map iframe {
  width: 100%; height: 380px; border: 0;
  filter: grayscale(.35) contrast(1.03);
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.62); font-size: .92rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) var(--gutter);
}
.footer h4 {
  color: #fff; font-size: .9rem; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.62); }
.footer a:hover { color: #fff; }
.footer__col--brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer__col--brand p { max-width: 40ch; margin-bottom: 20px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background .25s var(--ease);
}
.footer__social a:hover { background: var(--blue-600); }
.footer__social svg { width: 15px; height: 15px; fill: #fff; }
.footer__contact li { line-height: 1.6; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-block: 20px;
  font-size: .84rem; color: rgba(255,255,255,.45);
}
.footer__bar p { margin: 0; }

/* ---------- Floating actions ---------- */
.wa-float, .to-top {
  position: fixed; z-index: 90;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--sh-lg);
  transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s;
}
.wa-float {
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: #25D366;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }

.to-top {
  right: 22px; bottom: 90px;
  width: 44px; height: 44px;
  background: var(--navy-800); color: #fff;
  border: 0; cursor: pointer;
  opacity: 0; visibility: hidden;
}
.to-top svg { width: 20px; height: 20px; fill: #fff; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-600); transform: translateY(-3px); }

/* ---------- Reveal on scroll ----------
   Scoped to .js so the page stays fully visible if scripting is blocked
   or the observer never fires. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .cards, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 980px) {
  /* Mobile nav */
  .burger { display: flex; }
  .header__cta {
    display: inline-flex; flex: none;
    margin-left: auto; padding: 10px 18px; font-size: .85rem;
  }
  .header__inner { gap: 12px; }
  .nav {
    position: fixed; top: 0; right: 0; z-index: 99;
    width: min(320px, 86vw); height: 100dvh;
    background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
    padding: 88px 24px 32px;
    box-shadow: -12px 0 40px rgba(8,25,43,.18);
    transform: translateX(105%);
    /* Hidden once the slide-out finishes, so the off-screen drawer can never
       add to the document width. Delay is what makes the close animate. */
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform .35s var(--ease), visibility 0s 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav__cta { margin-top: 20px; width: 100%; }

  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .about__chip { right: 8px; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }

  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .topbar__item--hours { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .map iframe { height: 300px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }

  /* ---- Density: tighten vertical rhythm so less scrolling is needed ---- */
  body { line-height: 1.6; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem; }
  p  { margin-bottom: .9em; }

  .section { padding: 44px 0; }
  .section__head { margin-bottom: 24px; }
  .section__head::after { margin-top: 12px; border-top-width: 10px; }
  .section__sub { font-size: .97rem; }

  .hero { padding-top: 30px; }
  .hero__lead { font-size: .97rem; }
  .hero__actions { gap: 10px; margin-bottom: 20px; }
  .hero__points { margin-bottom: 30px; }
  .scroll-cue { padding: 16px 0 22px; }
  .scroll-cue__mouse { width: 19px; height: 29px; }

  .stats { padding: 26px 0; }
  .stats__grid { gap: 20px 14px; }
  .stat__label { font-size: .8rem; }

  .marquee__item { width: 210px; }
  .marquee__track { gap: 12px; }

  .cards { gap: 14px; }
  .card__body { padding: 18px 18px 20px; }
  .card__body p { font-size: .9rem; }
  .card__media { aspect-ratio: 16 / 9; }

  .svc { padding: 22px 20px; }
  .svc__icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .svc p { font-size: .9rem; }

  .ticks { gap: 9px; margin-bottom: 22px; }
  .signs { gap: 9px; margin-bottom: 22px; }
  .signs li { padding: 10px 13px; font-size: .9rem; }

  .about__frame { aspect-ratio: 4 / 3; }
  .about__media { margin-bottom: 30px; }
  .why__quote { padding: 18px 20px; margin: -36px 14px 0; }
  .why__quote p { font-size: .95rem; }

  .gallery { gap: 12px; }
  .contact__form-wrap { padding: 20px 18px; }
  .contact__list { gap: 15px; }
  .contact__ico { width: 38px; height: 38px; }
  .map { margin-top: 34px; }
  .map iframe { height: 240px; }

  .cta-banner { padding: 38px 0; }
  .footer__grid { padding-block: 34px; }
  .more-wrap { margin-top: 18px; }
  .topbar__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 8px; }
  .topbar__meta { grid-column: 1; gap: 16px; }
  .topbar__social { display: none; }

  .header__inner { min-height: 64px; }
  .brand img { height: 36px; }

  .cards, .services-grid { grid-template-columns: 1fr; }

  /* Show a short list first; the button reveals the rest */
  .more-wrap { display: block; }
  .is-collapsed > :nth-child(n + 4) { display: none; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta-banner__actions .btn { flex: 1 1 100%; }

  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--wide { grid-column: span 1; aspect-ratio: 4 / 3; }

  .hero__logo { height: 44px; margin-bottom: 18px; }
  .hero__points { gap: 8px 18px; font-size: .85rem; }
  .marquee--logos .marquee__track { gap: 44px; }
  .marquee--logos img { width: 108px; }

  .about__chip { right: 0; left: 0; max-width: none; bottom: -18px; }
  .about__media { margin-bottom: 34px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bar-inner { justify-content: center; text-align: center; }

  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .to-top { right: 16px; bottom: 78px; }
}

/* Only the narrowest phones (~320px) need this; 360px and up fit the full label */
@media (max-width: 349px) {
  /* Shorten the CTA to "Quote" so the logo and the 44px burger both keep room */
  .header__cta-long { display: none; }
  .header__cta { padding: 10px 15px; }
  .brand img { height: 32px; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  /* Stop the endless marquees, but let them stay readable and swipeable */
  .marquee__track { animation: none; transform: none; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .scroll-cue__mouse span { animation: none; }
  .tri { animation: none; }
}

@media print {
  .topbar, .header, .wa-float, .to-top, .map,
  .cta-banner__actions, .scroll-cue, .scroll-progress { display: none !important; }
  body { color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}
