/* ==========================================================================
   MERICARE Home Services Inc. — Landing page stylesheet
   Palette: white base · light-blue accents · royal-blue actions
   ========================================================================== */

:root {
  --white: #ffffff;
  --bg: #f7fafd;
  --bg-2: #eef4fb;
  --ink: #0b1a33;
  --ink-2: #33415c;
  --muted: #6b7a90;
  --line: #e3eaf3;
  --sky: #e3f1ff;
  --sky-2: #b9dcff;
  --sky-3: #7cc0ff;
  --cyan: #23c6e2;
  --royal: #1e3fd6;
  --royal-2: #1633b0;
  --glow: rgba(30, 63, 214, 0.28);
  --star: #f5b301;
  --radius: 20px;
  --radius-lg: 28px;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --container: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky-2); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
/* Second-line title accent: plain Montserrat, slightly lighter weight (no italics by client request) */
.serif {
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--royal);
  box-shadow: 0 0 0 4px rgba(30, 63, 214, 0.12);
}
.sec-title { font-size: clamp(34px, 4.3vw, 54px); }
.sec-title .serif { display: block; font-size: 0.92em; color: var(--ink-2); }
.sec-text { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 440px; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
section { position: relative; }
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.sec-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}
.sec-head .sec-text { justify-self: end; }
.sec-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 22px; }
.sec-head.center .sec-text { justify-self: center; max-width: 680px; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn .ico { width: 16px; height: 16px; flex: none; transition: transform 0.5s var(--ease-out); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn-primary {
  background: var(--royal);
  color: #fff;
  box-shadow: 0 12px 30px -10px var(--glow);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
  z-index: -1;
}
.btn-primary:hover { background: var(--royal-2); transform: translateY(-2px); box-shadow: 0 20px 44px -14px var(--glow); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.92); color: var(--ink); transform: translateY(-2px); }
.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -16px rgba(11, 26, 51, 0.35);
}
.btn-light:hover { border-color: var(--sky-2); transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(11, 26, 51, 0.35); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Skip link (keyboard / screen-reader users) ---------- */
.skip-link {
  position: absolute; left: 16px; top: -80px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--royal);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; outline: 3px solid var(--sky-2); }

/* ---------- Navigation (sits on the page background above the hero card, not sticky) ---------- */
.nav {
  position: relative;
  z-index: 20;
  width: min(var(--container), calc(100% - 24px)); /* aligned with the hero card below it */
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: var(--bg);
}
.nav-logo { display: inline-flex; align-items: center; justify-self: start; }
.nav-logo img { height: 36px; width: auto; }
.nav-menu {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.nav-item { position: relative; }
.nav-menu .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.4s var(--ease-out), color 0.4s;
}
.nav-menu .nav-link::before {
  content: "";
  width: 0; height: 6px;
  border-radius: 50%;
  background: var(--royal);
  opacity: 0;
  transition: width 0.4s var(--ease-out), opacity 0.3s;
}
.nav-menu .nav-link:hover { background: rgba(30, 63, 214, 0.08); color: var(--ink); }
.nav-menu .nav-link.is-active { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(11, 26, 51, 0.35); }
.nav-menu .nav-link.is-active::before { width: 6px; opacity: 1; }
.nav-link .caret { width: 12px; height: 12px; margin-left: -2px; transition: transform 0.35s var(--ease-out); }
.nav-item:hover .caret, .nav-item.is-open .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.nav-drop {
  position: absolute;
  top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 300px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(11, 26, 51, 0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 30;
  transition: opacity 0.35s, transform 0.5s var(--ease-out), visibility 0s linear 0.35s;
}
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.nav-item:hover .nav-drop, .nav-item.is-open .nav-drop, .nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-drop a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.nav-drop a:hover { background: var(--bg-2); color: var(--ink); }
.nav-drop a .acc-ico { width: 32px; height: 32px; border-radius: 9px; }
.nav-drop a .acc-ico svg { width: 14px; height: 14px; }
.nav-drop a small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.nav-drop .drop-all { justify-content: center; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0; color: var(--royal); }
.nav-drop .drop-all:hover { background: transparent; color: var(--royal-2); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.btn-outline {
  background: #fff;
  color: #111111;
  border: 1.5px solid #111111;
}
.btn-outline:hover { background: #111111; color: #fff; transform: translateY(-2px); }
.nav-phone { letter-spacing: 0.01em; }
.nav-cta { box-shadow: none; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 10px 30px -18px rgba(11, 26, 51, 0.45);
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transform-origin: center; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 55;
  width: 100vw;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 92px 28px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mm-list { display: flex; flex-direction: column; }
.mm-item { border-bottom: 1px solid var(--line); }
.mobile-menu .mm-item .mm-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; border-bottom: 0; }
.mm-toggle .caret { width: 24px; height: 24px; flex: none; transition: transform 0.35s var(--ease-out); }
.mm-item.is-open .mm-toggle .caret { transform: rotate(180deg); }
.mm-sub { height: 0; overflow: hidden; }
.mm-sub-in { display: grid; gap: 2px; padding: 4px 0 16px 6px; }
.mm-sub-in a { display: block; padding: 11px 14px; border-radius: 12px; font-size: 17px; font-weight: 600; color: var(--ink-2); }
.mm-sub-in a:hover, .mm-sub-in a:active { background: #fff; color: var(--ink); }
.mm-head { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; }
.mm-head img { height: 30px; width: auto; }
.mm-close {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -18px rgba(11, 26, 51, 0.6);
  transition: background 0.3s, transform 0.5s var(--ease-out);
}
.mm-close svg { width: 18px; height: 18px; }
.mm-close:hover { background: var(--royal); transform: rotate(90deg); }
.mobile-menu .mm-link {
  display: block;
  font-family: inherit;
  font-size: clamp(30px, 7.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu .mm-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - 88px); /* viewport minus the nav above the card */
  min-height: 640px;
  width: min(var(--container), calc(100% - 24px)); /* content width, like the sections below */
  margin: 0 auto 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
}
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.is-ready { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  /* light veil at the top so the dark nav reads, navy veil at the bottom for the white headline */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 16%,
    rgba(8, 22, 48, 0.04) 32%,
    rgba(8, 22, 48, 0.42) 62%,
    rgba(8, 22, 48, 0.74) 100%);
}
.hero-inner {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 40px;
  color: #fff;
}
/* Rating prefix above the home hero title (all screen sizes) */
.hero-prefix {
  display: block;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
}
#home .hero-inner { padding-bottom: 56px; }
/* Home hero on desktop: a little shorter than the full viewport card */
#home.hero { height: calc(100svh - 168px); min-height: 600px; }
/* Slightly deeper navy in the middle band so the rating badge reads over the bright corridor */
#home .hero-media::after {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 14%,
    rgba(8, 22, 48, 0.12) 26%,
    rgba(8, 22, 48, 0.5) 54%,
    rgba(8, 22, 48, 0.76) 100%);
}
.hero-prefix .rating-line, .hero-prefix .stars { text-shadow: 0 1px 14px rgba(8, 22, 48, 0.5); }
/* Google-style rating badge: 4 avatars, 5 stars, "G 5.0 average rating" */
.rating-badge { display: inline-flex; align-items: center; gap: 14px; text-transform: none; letter-spacing: 0; }
.rating-badge .avatars img { width: 36px; height: 36px; border: 2px solid #fff; margin-left: -10px; }
.rating-badge .avatars img:first-child { margin-left: 0; }
.rating-text { display: flex; flex-direction: column; gap: 4px; }
.rating-text .stars { display: inline-flex; gap: 2px; color: var(--star); }
.rating-text .stars svg { width: 14px; height: 14px; }
.rating-line { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #fff; line-height: 1; white-space: nowrap; }
.rating-line .g-logo { width: 16px; height: 16px; flex: none; }
.hero-title {
  font-size: clamp(44px, 5.4vw, 74px);
  max-width: none;
  line-height: 1.04;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .w > span { display: inline-block; transform: translateY(112%); will-change: transform; }
.hero-title .serif { font-size: 1em; color: rgba(255, 255, 255, 0.92); }
.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  max-width: 470px;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 22px 0 30px;
  opacity: 0;
  transform: translateY(18px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transform: translateY(18px); }
.hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
}
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero-scroll svg { width: 14px; height: 14px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero-rating { display: inline-flex; align-items: center; gap: 14px; letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
.hero-rating .stars { display: inline-flex; align-items: center; gap: 6px; color: var(--star); font-weight: 700; }
.hero-rating .stars svg { width: 14px; height: 14px; }
.avatars { display: inline-flex; }
.avatars img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  margin-left: -10px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.avatars img:first-child { margin-left: 0; }

/* Compact hero used on inner pages — grows with its content */
.hero-sm { height: auto; min-height: 520px; display: flex; flex-direction: column; }
.hero-sm .hero-inner { position: relative; inset: auto; flex: 1; padding-top: 88px; padding-bottom: 48px; }
.hero-sm .hero-title { font-size: clamp(38px, 5vw, 66px); max-width: 22ch; }
.hero-sm .hero-sub { max-width: 560px; }
.hero-sm .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.hero-sm .hero-eyebrow::before { content: ""; width: 22px; height: 1px; background: rgba(255, 255, 255, 0.7); }
.hero-sm .hero-bar { margin-top: 44px; }

/* ---------- Trusted marquee ---------- */
.trusted { padding: 30px 0; border-bottom: 1px solid var(--line); }
.trusted-inner { display: flex; align-items: center; gap: 40px; }
.trusted-label { flex: 0 0 220px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.trusted-label strong { color: var(--ink); font-weight: 700; }
.marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0.78;
  transition: opacity 0.3s, color 0.3s;
}
.marquee-item:hover { opacity: 1; color: var(--royal); }
.marquee-item svg { width: 18px; height: 18px; color: var(--royal); opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding: 120px 0 96px; text-align: center; }
.statement .eyebrow { justify-content: center; }
.statement p {
  font-size: clamp(26px, 3.3vw, 42px);
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 1040px;
  margin: 0 auto;
}
.statement .sw { display: inline-block; opacity: 0.16; will-change: opacity; }
.statement .dim .sw { color: var(--muted); }
.inline-pill {
  display: inline-block;
  width: 2.6em; height: 1.12em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.18em;
  margin: 0 0.12em;
  box-shadow: 0 10px 24px -12px rgba(11, 26, 51, 0.45);
  border: 2px solid #fff;
}
.inline-pill img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: stretch; }
.accordion { display: grid; gap: 10px; align-content: start; }
.acc-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.acc-item.is-open { border-color: var(--sky-2); box-shadow: 0 24px 44px -30px rgba(30, 63, 214, 0.35); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
}
.acc-ico {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--royal);
  display: grid; place-items: center;
  transition: background 0.4s, color 0.4s;
}
.acc-ico svg { width: 16px; height: 16px; }
.acc-item.is-open .acc-ico { background: var(--royal); color: #fff; }
.plus {
  position: relative;
  width: 22px; height: 22px;
  margin-left: auto;
  flex: none;
  border-radius: 7px;
  border: 1px solid var(--line);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background 0.3s, transform 0.5s var(--ease-out);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-open > .acc-btn .plus, .is-open > .faq-btn .plus { background: var(--royal); border-color: var(--royal); transform: rotate(45deg); }
.is-open > .acc-btn .plus::before, .is-open > .acc-btn .plus::after,
.is-open > .faq-btn .plus::before, .is-open > .faq-btn .plus::after { background: #fff; }
.acc-panel { height: 0; overflow: hidden; }
.acc-body { padding: 0 20px 20px 70px; color: var(--ink-2); font-size: 14.5px; line-height: 1.72; }
.acc-body cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink); }
.acc-body cite span { font-weight: 500; color: var(--muted); }
.about-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  background: var(--sky);
}
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.float-card {
  position: absolute;
  left: 20px; bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 44px -24px rgba(11, 26, 51, 0.45);
  font-size: 13px;
  line-height: 1.3;
}
.float-card b { display: block; font-size: 13.5px; }
.float-card span { color: var(--muted); font-size: 12px; }
.float-card i {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--royal);
  color: #fff;
  display: grid; place-items: center;
}
.float-card i svg { width: 18px; height: 18px; }

/* ---------- How it works ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.tab h4 { line-height: 1.3; }
.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.4s, box-shadow 0.5s, transform 0.5s var(--ease-out), background 0.4s;
}
.tab:hover { transform: translateY(-2px); border-color: var(--sky-2); }
.tab.is-active {
  border-color: var(--sky-2);
  background: linear-gradient(180deg, #fff, #f2f8ff);
  box-shadow: 0 20px 40px -26px rgba(30, 63, 214, 0.45);
}
.tab-ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--royal);
  display: grid; place-items: center;
  transition: background 0.4s, color 0.4s;
}
.tab-ico svg { width: 17px; height: 17px; }
.tab.is-active .tab-ico { background: var(--royal); color: #fff; }
.tab h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.tab small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 7.4;
  background: var(--sky);
  box-shadow: 0 40px 80px -50px rgba(11, 26, 51, 0.45);
}
.stage-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.stage-img.is-active { opacity: 1; }
.stage-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.stage-img.is-active img { transform: scale(1); }
.stage::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 48, 0) 50%, rgba(8, 22, 48, 0.35) 100%);
  pointer-events: none;
}
.stage-loc {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 700;
}
.stage-loc svg { width: 14px; height: 14px; color: var(--royal); }
.widget {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(11, 26, 51, 0.5);
}
.widget-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.widget-head i { width: 26px; height: 26px; border-radius: 8px; background: var(--sky); color: var(--royal); display: grid; place-items: center; }
.widget-head i svg { width: 14px; height: 14px; }
.widget-main { text-align: center; padding: 6px 0 2px; }
.widget-main b { display: block; font-size: 30px; letter-spacing: -0.03em; font-weight: 700; line-height: 1; }
.widget-main span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.widget-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.widget-row div { background: var(--bg-2); border-radius: 10px; padding: 8px 6px; text-align: center; }
.widget-row b { display: block; font-size: 12.5px; font-weight: 700; }
.widget-row span { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.widget-bar { margin-top: 4px; }
.widget-bar label { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.widget-bar .bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--sky-2), var(--sky-3), var(--royal)); overflow: visible; }
.widget-bar .bar i {
  position: absolute; top: 50%; left: 74%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--royal);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.4);
}
.widget-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--sky);
  line-height: 1.35;
}
.widget-note i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--royal); color: #fff; display: grid; place-items: center; }
.widget-note i svg { width: 10px; height: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px 24px;
  text-align: center;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--sky-2); box-shadow: 0 24px 40px -30px rgba(30, 63, 214, 0.4); }
.stat b { display: block; font-size: 42px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---------- Services (full-bleed image cards with overlaid content) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
  position: relative;
  display: block;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 44px 70px -40px rgba(11, 26, 51, 0.55); }
.svc-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease-out); }
.svc:hover .svc-media img { transform: scale(1.09); }
.svc::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 22, 48, 0.05) 30%, rgba(8, 22, 48, 0.5) 60%, rgba(8, 22, 48, 0.92) 100%);
  transition: opacity 0.6s;
}
.svc-num {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 3;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.svc-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 28px 28px 30px;
  transition: transform 0.7s var(--ease-out);
}
.svc:hover .svc-body { transform: translateY(-4px); }
.svc h3 { font-size: 24px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; color: #fff; }
.svc p { font-size: 14.5px; color: rgba(255, 255, 255, 0.84); line-height: 1.7; }
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.svc-link i {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid; place-items: center;
  transition: background 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}
.svc-link i svg { width: 14px; height: 14px; }
.svc:hover .svc-link i { background: var(--royal); color: #fff; transform: translate(2px, -2px); }
.svc-foot { text-align: center; margin-top: 36px; }
.svc-compact { min-height: 440px; }

/* ---------- Testimonials ---------- */
.tst-wrap { overflow: hidden; }
.tst-track { display: flex; gap: 20px; will-change: transform; }
.tst {
  flex: 0 0 calc(50% - 10px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  transition: border-color 0.4s, box-shadow 0.6s var(--ease-out);
}
.tst:hover { border-color: var(--sky-2); box-shadow: 0 30px 60px -40px rgba(11, 26, 51, 0.35); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tst-grid .tst { flex: none; min-height: 0; }
.tst-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tst-google { display: flex; align-items: center; gap: 10px; }
.g-logo { width: 30px; height: 30px; flex: none; }
.tst-google b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.tst-google span { display: block; font-size: 11.5px; color: var(--muted); }
.tst-rating { display: inline-flex; align-items: center; gap: 8px; }
.tst-rating b { font-size: 14px; font-weight: 800; }
.tst-stars { display: inline-flex; gap: 2px; color: var(--star); }
.tst-stars svg { width: 14px; height: 14px; }
.tst-text { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.tst-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 18px;
  background: var(--av-bg, var(--sky));
  color: var(--av-ink, var(--royal));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.tst-name { font-weight: 700; font-size: 14px; }
.tst-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tst-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.tst-brand { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.tst-brand b { color: var(--ink); font-weight: 800; letter-spacing: 0.06em; }
.tst-brand span::before { content: "•"; margin-right: 18px; color: var(--sky-2); }
.tst-nav { display: flex; align-items: center; gap: 10px; }
.tst-count { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; margin-right: 6px; }
.ctrl {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out);
}
.ctrl svg { width: 16px; height: 16px; }
.ctrl:hover { background: var(--royal); color: #fff; border-color: var(--royal); }
.ctrl.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.ctrl.dark:hover { background: var(--royal); border-color: var(--royal); }

/* ---------- Service pages ---------- */
.service-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.service-content h2 { font-size: clamp(28px, 3.1vw, 40px); margin: 6px 0 16px; }
.service-content h3 { font-size: 20px; margin: 36px 0 12px; letter-spacing: -0.02em; }
.service-content p { color: var(--ink-2); font-size: 15px; line-height: 1.78; }
.service-content p + p { margin-top: 12px; }
.check-list { display: grid; gap: 12px; margin: 22px 0 6px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.check-list li i {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--royal);
  display: grid; place-items: center;
  margin-top: 1px;
}
.check-list li i svg { width: 12px; height: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; }
.step b { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); line-height: 1; margin-bottom: 12px; }
.step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.service-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, #e9f3ff, #fff);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}
.service-note .acc-ico { background: #fff; box-shadow: 0 8px 20px -12px rgba(11, 26, 51, 0.35); }
.service-content .faq { max-width: none; margin-top: 14px; }
.service-aside { position: sticky; top: 24px; }
.form-card h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.form-card .form-intro { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.field select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field select:focus { outline: 0; border-color: var(--royal); background-color: #fff; box-shadow: 0 0 0 4px rgba(30, 63, 214, 0.12); }
.aside-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, #e9f3ff, #fff);
  border: 1px solid var(--line);
}
.aside-phone small { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.aside-phone a { font-size: 16px; font-weight: 700; }
.aside-phone a:hover { color: var(--royal); }
.other-services .sec-head { margin-bottom: 40px; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.benefit .acc-ico { flex: none; }
.benefit h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.benefit p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.timeline { display: grid; gap: 0; margin-top: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 12px 0; position: relative; }
.tl-item i { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--royal); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.tl-item i svg { width: 15px; height: 15px; }
.service-content .check-list { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin-top: 16px; }
.benefit-list li { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.benefit-list li b { display: block; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sky-3); transition: color 0.3s; }
.text-link:hover { color: var(--royal); }
.tl-item h4 { font-size: 14.5px; font-weight: 700; margin: 8px 0 4px; }
.tl-item p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.info-cards .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.info-cards h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.info-cards p { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.info-cards ul { margin-top: 8px; display: grid; gap: 6px; }
.info-cards li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.info-cards li::before { content: "•"; color: var(--royal); font-weight: 800; }

/* ---------- Generic inner-page blocks (About / Careers / Blog / Contact) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .sec-text { max-width: none; }
.split p + p { margin-top: 12px; }
.split-media { position: relative; border-radius: 22px; overflow: hidden; min-height: 420px; background: var(--sky); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.split-media.portrait img { transform: none; object-position: center 18%; }
.split-media.story img { object-position: center 30%; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s; }
.mv-card:hover { transform: translateY(-4px); border-color: var(--sky-2); box-shadow: 0 30px 50px -36px rgba(30, 63, 214, 0.4); }
.mv-card .acc-ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; }
.mv-card .acc-ico svg { width: 20px; height: 20px; }
.mv-card h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.02em; }
.mv-card p { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.quote-card {
  background: linear-gradient(160deg, #e9f3ff, #fff);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}
.quote-card .tst-q { width: 34px; height: 34px; color: var(--sky-3); margin-bottom: 16px; }
.quote-card blockquote { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.quote-card cite { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-style: normal; }
.quote-card cite b { display: block; font-size: 14px; }
.quote-card cite span { font-size: 12.5px; color: var(--muted); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s; }
.icard:hover { transform: translateY(-4px); border-color: var(--sky-2); box-shadow: 0 30px 50px -36px rgba(30, 63, 214, 0.4); }
.icard .num { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.icard .acc-ico { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px; }
.icard .acc-ico svg { width: 19px; height: 19px; }
.icard h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.icard p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.icard ul { margin-top: 12px; display: grid; gap: 7px; }
.icard li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.icard li svg { width: 14px; height: 14px; flex: none; color: var(--royal); margin-top: 3px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}
.chip svg { width: 14px; height: 14px; color: var(--royal); }
.chip.soft { background: var(--sky); border-color: transparent; color: var(--royal); font-size: 11.5px; padding: 5px 11px; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; }
.role-card h3 { font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.role-card > div > p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.role-card h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.role-card .check-list { margin: 0; gap: 9px; }
.role-card .check-list li { font-size: 14px; }
.role-side { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; align-self: start; }
.role-side dl { display: grid; gap: 14px; margin-bottom: 20px; }
.role-side dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.role-side dd { font-size: 14px; font-weight: 600; margin-top: 3px; }
.roles-stack { display: grid; gap: 20px; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; gap: 16px; align-items: flex-start; }
.area h3 { font-size: 18px; margin-bottom: 6px; }
.area p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.map-wide { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; background: var(--sky); margin-top: 20px; filter: saturate(0.85); }
.map-wide iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Legal pages (Privacy Policy, Service Agreement) ---------- */
.legal-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.03em; }
.legal-head .meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.legal-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; padding: 56px 0 96px; }
.legal-toc { position: sticky; top: 24px; }
.legal-toc h5 { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.legal-toc a { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 6px 0 6px 12px; border-left: 2px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.legal-toc a:hover { color: var(--royal); border-color: var(--royal); }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.02em; scroll-margin-top: 24px; }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul, .legal-body ol { margin: 10px 0 14px 22px; display: grid; gap: 6px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body .notice { padding: 16px 18px; border-radius: 14px; background: var(--sky); border: 1px solid var(--sky-2); font-size: 14px; margin: 0 0 28px; color: var(--ink-2); }
.legal-body a { color: var(--royal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-body address { font-style: normal; }
@media (max-width: 960px) { .legal-wrap { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 72px; } .legal-toc { position: static; } .legal-head { padding: 44px 0 28px; } }

/* ---------- Blog ---------- */
.post-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-bottom: 28px; transition: box-shadow 0.6s var(--ease-out), border-color 0.4s; }
.post-featured:hover { border-color: var(--sky-2); box-shadow: 0 40px 70px -44px rgba(11, 26, 51, 0.35); }
.post-featured .post-media { position: relative; aspect-ratio: auto; min-height: 380px; }
.post-featured .post-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-featured .post-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-featured h3 { font-size: clamp(22px, 2.2vw, 30px); }
.post-featured p { font-size: 15px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out), border-color 0.4s;
}
.post:hover { transform: translateY(-6px); border-color: var(--sky-2); box-shadow: 0 34px 60px -40px rgba(11, 26, 51, 0.35); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.post:hover .post-media img, .post-featured:hover .post-media img { transform: scale(1.07); }
.post-body { padding: 20px 22px 22px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.post-meta span::before { content: "•"; margin-right: 10px; color: var(--sky-2); }
.post h3 { font-size: 16.5px; font-weight: 700; margin: 10px 0 8px; line-height: 1.35; letter-spacing: -0.01em; }
.post p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--royal); }
.post-more svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.post:hover .post-more svg, .post-featured:hover .post-more svg { transform: translateX(4px); }
.blog-foot { text-align: center; margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; margin: 0 auto; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; max-width: none; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.5s;
}
.faq-item.is-open { background: #f3f8ff; border-color: var(--sky-2); box-shadow: 0 20px 40px -32px rgba(30, 63, 214, 0.4); }
.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 19px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
}
.faq-panel { height: 0; overflow: hidden; }
.faq-body { padding: 0 20px 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.72; max-width: 640px; }
.faq-cta { text-align: center; margin-top: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: stretch; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  position: relative;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(30, 63, 214, 0.12); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #e05252; box-shadow: 0 0 0 4px rgba(224, 82, 82, 0.12); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.form-foot small { font-size: 12px; color: var(--muted); }
.form-msg { margin-top: 14px; font-size: 13.5px; font-weight: 600; display: none; padding: 12px 14px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; } /* honeypot field for bots */
.form-msg.ok { display: block; background: #e8f8ef; color: #187a45; }
.form-msg.err { display: block; background: #fdecec; color: #b23b3b; }
.info-card {
  background: linear-gradient(165deg, #e9f3ff 0%, #ffffff 70%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .acc-ico { background: #fff; box-shadow: 0 8px 20px -12px rgba(11, 26, 51, 0.35); }
.info-row small { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-row a, .info-row p { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.info-row a:hover { color: var(--royal); }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--sky); margin-top: auto; filter: saturate(0.85); }
.map iframe { width: 100%; height: 100%; border: 0; }
.socials { display: flex; gap: 8px; }
.social {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out);
}
.social svg { width: 16px; height: 16px; }
.social:hover { background: var(--royal); color: #fff; border-color: var(--royal); transform: translateY(-2px); }

/* ---------- CTA + Footer ---------- */
.cta {
  position: relative;
  width: min(var(--container), calc(100% - 24px)); /* content width, like the hero */
  margin: 0 auto 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 120px 24px 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  isolation: isolate;
}
.cta-bg { position: absolute; left: 0; right: 0; bottom: 0; height: 76%; z-index: -1; overflow: hidden; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.1); }
.cta-bg::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1; /* must sit above the transformed image */
  background: linear-gradient(180deg,
    #f3f8ff 0%,
    rgba(243, 248, 255, 0.96) 14%,
    rgba(243, 248, 255, 0.72) 30%,
    rgba(243, 248, 255, 0.28) 48%,
    rgba(8, 22, 48, 0.06) 66%,
    rgba(8, 22, 48, 0.46) 100%);
}
.cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(36px, 4.8vw, 60px); }
.cta h2 .serif { display: block; font-size: 0.9em; color: var(--ink-2); }
.cta p { color: var(--muted); margin: 16px auto 28px; max-width: 460px; font-size: 15px; line-height: 1.7; }
.footer-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 44px;
  margin: 110px auto 0;
  width: min(1100px, 100%);
  box-shadow: 0 50px 90px -50px rgba(11, 26, 51, 0.5);
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 36px;
  text-align: left;
}
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 16px 0 18px; max-width: 320px; }
.footer-contact { display: grid; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: var(--royal); }
.footer-contact svg { width: 14px; height: 14px; color: var(--royal); }
.footer-col h5 { font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13.5px; color: var(--muted); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--royal); padding-left: 4px; }
.footer-areas { grid-column: 1 / -1; margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.footer-areas b { color: var(--ink); font-weight: 700; }
.footer-areas a { color: var(--royal); font-weight: 600; }
.footer-areas a:hover { text-decoration: underline; }
.footer-bottom {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 22px 8px 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.footer-bottom a { margin-left: 16px; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Floating call widget ---------- */
.call-widget {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -20px rgba(11, 26, 51, 0.45);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.call-widget:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -22px rgba(11, 26, 51, 0.5); }
.call-ico {
  position: relative;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #25d366; /* WhatsApp green */
  color: #fff;
  display: grid; place-items: center;
}
.call-ico svg { width: 20px; height: 20px; }
.call-ico::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0;
  animation: callpulse 2.4s ease-out infinite;
}
.call-ico::after {
  content: "";
  position: absolute; right: 1px; top: 1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ef4444; /* red indicator */
  border: 2px solid #fff;
}
@keyframes callpulse { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.45); opacity: 0; } }
.call-label { display: flex; flex-direction: column; line-height: 1.15; }
.call-label small { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.call-label b { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }

/* ---------- Reveal helpers (only when JS is active) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(6px); will-change: transform, opacity, filter; }
html.js [data-reveal-group] > * { opacity: 0; transform: translateY(30px); filter: blur(6px); }
html.js .nav { opacity: 0; transform: translateY(-16px); }
html.js .statement .sw { opacity: 0.16; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html.js [data-reveal], html.js [data-reveal-group] > *, html.js .nav { opacity: 1; transform: none; filter: none; }
  .hero-title .w > span { transform: none; }
  .hero-sub, .hero-actions, .hero-bar, .hero-prefix { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .stage { aspect-ratio: 16 / 9; }
  .widget { width: 260px; }
  .footer-card { grid-template-columns: 1.4fr 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .cards-3, .area-grid, .tst-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .section { padding: 84px 0; }
  .nav { width: 100%; padding: 14px 18px; grid-template-columns: auto 1fr; position: sticky; top: 0; z-index: 40; box-shadow: 0 10px 30px -26px rgba(11, 26, 51, 0.4); } /* sticky, full width on phones/tablets only */
  .nav-menu, .nav-cta, .nav-phone { display: none; }
  .nav-logo img { height: 30px; }
  .nav-burger { display: flex; }
  .hero { height: calc(100svh - 80px); }
  /* Home hero on phones: same outer spacing as before, but the card grows so there is more room above the title */
  #home.hero { margin: 12px auto 20px; height: auto; min-height: calc(100svh - 164px); display: flex; flex-direction: column; }
  .hero-prefix .rating-badge { gap: 12px; }
  .hero-prefix .avatars img { width: 34px; height: 34px; margin-left: -9px; }
  .hero-prefix .avatars img:first-child { margin-left: 0; }
  #home .hero-inner { position: relative; inset: auto; flex: 1; justify-content: flex-start; padding-top: 124px; padding-bottom: 28px; } /* content pinned to the top at the approved spacing */
  #home .hero-actions .btn-ghost { display: none; } /* no Call Us Now button in the hero on phones */
  #home .hero-media video, #home .hero-media img { object-position: 40% center; } /* nudge the subjects to the right on phones */
  .sec-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .sec-head .sec-text { justify-self: start; }
  .hero { width: calc(100% - 16px); margin: 0 auto 8px; min-height: 600px; }
  .hero-inner { padding: 0 28px 28px; }
  .hero-bar { margin-top: 40px; }
  .trusted-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .trusted-label { flex: none; }
  .marquee { width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc { min-height: 440px; }
  .tst { flex: 0 0 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-sm { min-height: 480px; }
  .hero-sm .hero-inner { padding-top: 72px; }
  .footer-card { grid-template-columns: 1fr 1fr; padding: 34px; }
  .cta { width: calc(100% - 16px); margin: 0 auto 8px; padding-top: 90px; }
  .faq-grid { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-media { min-height: 340px; }
  .mv-grid, .benefit-grid, .info-cards { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .service-content .check-list { grid-template-columns: 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-media { min-height: 260px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero-inner { padding: 0 20px 22px; }
  .hero-title { font-size: clamp(40px, 11.5vw, 54px); }
  #home .hero-title br { display: none; } /* let the title wrap naturally on phones */
  .hero-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stage { aspect-ratio: 4 / 5; }
  .widget { left: 14px; right: 14px; top: auto; bottom: 62px; transform: none; width: auto; padding: 14px; gap: 10px; }
  .tst-controls { flex-wrap: wrap; gap: 14px; }
  .tst-brand { flex-wrap: wrap; gap: 8px 12px; }
  .tst-brand span::before { margin-right: 12px; }
  .widget-main b { font-size: 24px; }
  .stage-loc { bottom: 14px; left: 14px; }
  .tabs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 34px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc { min-height: 540px; }
  .tst { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .cards-3, .area-grid, .tst-grid, .blog-grid { grid-template-columns: 1fr; }
  .quote-card, .mv-card, .role-card, .post-featured .post-body { padding: 24px; }
  .call-widget { right: 16px; bottom: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .info-card { padding: 24px; }
  .footer-card { grid-template-columns: 1fr; gap: 26px; padding: 28px 22px; margin-top: 80px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom a { margin: 0 8px; }
  .statement { padding: 90px 0 70px; }
  .acc-body { padding-left: 20px; }
}
