/* ===========================================================
   WaTo Consulting — design system
   Brand sampled from WaTo's own pages:
   cyan #37bdf2 · cyan-dark #1298cf · blue #0f6db3 · navy #12172a
   Bold uppercase headings (Poppins), clean white, pill buttons.

   Modern CSS: fluid type/spacing via clamp(), logical properties,
   CSS nesting, :is()/:where(), container queries, dvh units.
   =========================================================== */

:root {
  /* ---- Brand palette ---- */
  --cyan: #37bdf2;
  --cyan-dark: #1298cf; --cyan-text: #0b7aad;
  --cyan-light: #65cdf6;
  --blue: #0f6db3;
  --navy: #12172a;
  --ink: #080808;
  --text: #1f2933;
  --body: #2b3440;
  --muted: #5f6b7a;
  --line: #dce3ea;
  --soft: #f5f7fa;
  --soft-2: #edf3f9;
  --white: #ffffff;

  /* ---- Shadows ---- */
  --shadow-sm: 0 0.375rem 1.375rem rgba(17,24,39,.08);
  --shadow: 0 0.875rem 2.2rem rgba(17,24,39,.10);
  --shadow-cyan: 0 0.625rem 1.75rem rgba(55,189,242,.35);
  --offset: #46bdf5;

  /* ---- Radii ---- */
  --radius-lg: 1.375rem;
  --radius: 0.875rem;

  /* ---- Layout ---- */
  --maxw: 74rem;                        /* 1184px */
  --gutter: clamp(1rem, 3vw, 2rem);    /* fluid container padding */

  /* ---- Fluid spacing scale ---- */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.75rem);
  --space-xl: clamp(2.5rem, 5vw, 4.625rem);

  /* ---- Typography ---- */
  --head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --display: "Ethnocentric", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* WaTo brand headline font (the same Ethnocentric used on the Sitejet build & logo) */
@font-face {
  font-family: "Ethnocentric";
  src: url("../assets/fonts/ethnocentric.woff2") format("woff2"),
       url("../assets/fonts/ethnocentric.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--body);
  background: var(--white); line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);   /* fluid 16–17px */
  -webkit-font-smoothing: antialiased;
}

:is(h1, h2, h3, h4) { font-family: var(--head); color: var(--ink); line-height: 1.06; margin: 0 0 .5em; font-weight: 800; }
h1 { font-family: var(--display); font-size: clamp(1.8rem, 3.9vw, 3rem); letter-spacing: .01em; line-height: 1.05; text-transform: uppercase; }
/* long section headings read better in Poppins, title case (Ethnocentric stays on the hero + short statement lines) */
h2 { font-family: var(--head); font-size: clamp(1.5rem, 2.9vw, 2.2rem); letter-spacing: -.01em; line-height: 1.14; text-transform: none; font-weight: 800; }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--cyan-text); text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; height: auto; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 51.25rem; }
.cyan { color: var(--cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; font-weight: 700; color: var(--cyan-text); margin-block-end: 1rem;

  &::before { content: ""; width: 2.125rem; height: 3px; border-radius: 3px; background: var(--cyan); }
  &.center { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  font-family: var(--head); font-weight: 700; font-size: 1rem; min-height: 3.25rem;
  padding: 0.8125rem 1.75rem; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;

  &:active { transform: translateY(0) scale(.985); }
}
.btn-primary {
  background: var(--blue); color: #fff; box-shadow: 0 0.625rem 1.75rem rgba(15,109,179,.30);

  &:hover { background: var(--cyan-dark); color: #fff; transform: translateY(-2px); }
  &:active { background: var(--blue); }
}
.btn-secondary {
  background: #fff; border-color: var(--line); color: var(--ink);

  &:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  &:active { border-color: var(--cyan-dark); background: var(--soft); }
}
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.55);

  &:hover { background: rgba(255,255,255,.12); color: #fff; }
}

/* ---------- Top strip ---------- */
.topbar {
  background: var(--navy); color: #c7d4ea; font-size: .84rem; position: relative; overflow: hidden;

  &::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      repeating-linear-gradient(45deg, rgba(55,189,242,.07) 0 1px, transparent 1px 1.375rem),
      repeating-linear-gradient(-45deg, rgba(55,189,242,.07) 0 1px, transparent 1px 1.375rem); }

  & .container {
    position: relative; display: flex; justify-content: space-between; align-items: center;
    min-height: 2.625rem; gap: 1rem; flex-wrap: wrap;

    /* three-part balance: credential line | centred promo | utility links */
    & > .tb-cred { flex: 0 1 auto; min-width: 0; }
    & > .promo { flex: 1 1 auto; text-align: center; }
    & > .right { flex: 0 0 auto; justify-content: flex-end; }
  }

  & a { color: #dbe6f7; display: inline-flex; align-items: center; gap: 0.375rem; }
  & a:hover { color: #fff; }
  & a svg { width: 0.875rem; height: 0.875rem; opacity: .85; }

  & .promo {
    font-weight: 600; color: #eaf1fb; text-decoration: none;
    transition: opacity .35s ease;

    & .au-badge { background: var(--cyan); color: #0a0a0a; font-family: var(--head); font-weight: 800; font-size: .72rem; letter-spacing: .03em; padding: 3px 0.5rem; border-radius: 6px; margin-inline-end: 0.5rem; }
    & .arrow { color: var(--cyan); margin-inline-start: 0.375rem; transition: transform .15s ease; display: inline-block; }

    &:hover { color: #fff; }
    &:hover .au-badge { background: var(--cyan-light); }
    &:hover .arrow { transform: translateX(4px); }
  }
  & .promo-txt { white-space: nowrap; }

  & .right { display: flex; gap: 0.875rem; align-items: center; }
  & .right .sep { color: rgba(255,255,255,.22); }
  & .topbar-help { color: var(--cyan); font-weight: 700; }
  & .topbar-help:hover { color: var(--cyan-light); }
}
.tb-cred { color: #9fb4d4; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-cred strong { color: #dbe6f7; font-weight: 700; }
.topbar .tb-phone-mob { display: none; }
@media (max-width: 820px) { .topbar .tb-phone-pc { display: none; } .topbar .tb-phone-mob { display: inline-flex; } }

/* ---------- Floating help — separate buttons (no enclosing box) ---------- */
.float-help {
  position: fixed; right: 0; bottom: 1.25rem; z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.625rem;
  opacity: 0; transform: translateY(1.125rem); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, right .3s ease;

  &.show { opacity: 1; transform: none; pointer-events: auto; }
  &.dismissed { right: -0.625rem; }   /* tuck the shooed column closer to the edge */
  &.dismissed .float-actions { display: none; }
  &.dismissed .float-icons { flex-direction: column; }
  &.dismissed .fi-name { display: none; }
  &.dismissed .float-icons .fi-q,
  &.dismissed .float-icons .fi-help { display: flex; }
  &.dismissed .float-icons { flex-direction: column; align-items: flex-end; }
}
.float-icons {
  display: flex; gap: 0.75rem; align-items: flex-start;

  & :is(a, button) { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; background: none; border: 0; padding: 0; cursor: pointer; }
  & .fi-q, & .fi-help { display: none; }
}
.fi-circle {
  width: 3.125rem; height: 3.125rem; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: background .15s ease, transform .15s ease;

  & svg { width: 1.3125rem; height: 1.3125rem; }
}
.float-icons :is(a, button):hover .fi-circle { background: var(--cyan-dark); transform: translateY(-3px); }
.fi-name { font-family: var(--head); font-weight: 700; font-size: .66rem; color: var(--ink); background: #fff; padding: 3px 0.5rem; border-radius: 0.4375rem; box-shadow: 0 2px 0.375rem rgba(17,24,39,.14); white-space: nowrap; }
.fi-phone svg { animation: ringwiggle 2.6s ease-in-out infinite; transform-origin: 50% 15%; }
.fi-contact svg { animation: bob 3.2s ease-in-out infinite; }
.fi-im svg { animation: zoompop 3s ease-in-out infinite; }
.fi-login svg { animation: tilt 3.6s ease-in-out infinite; }
@keyframes tilt { 0%, 60%, 100% { transform: rotate(0); } 72% { transform: rotate(-9deg); } 84% { transform: rotate(6deg); } }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(-4px); } 88% { transform: translateY(0); } }
.float-help-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; position: relative;
  background: var(--blue); color: #fff; border-radius: 999px; padding: 0.75rem 1.25rem;
  font-family: var(--head); font-weight: 800; font-size: .9rem; box-shadow: var(--shadow);
  transition: background .15s ease, transform .15s ease;

  &:hover { background: var(--cyan-dark); transform: translateY(-2px); }
  & svg { width: 1.125rem; height: 1.125rem; }
  & .fh-txt { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
  & .fh-now { font-size: .74em; font-weight: 700; opacity: .9; margin-block-start: 1px; }
  &::after { content: ""; position: absolute; inset: 0; border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(15,109,179,.5); animation: fabpulse 2.4s ease-out infinite; pointer-events: none; }
}
@keyframes fabpulse { 0% { box-shadow: 0 0 0 0 rgba(15,109,179,.5); } 70% { box-shadow: 0 0 0 1rem rgba(15,109,179,0); } 100% { box-shadow: 0 0 0 0 rgba(15,109,179,0); } }
.float-actions { display: flex; gap: 0.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.float-dismiss {
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: .78rem; color: var(--muted);
  border-radius: 999px; padding: 0.6875rem 1rem; box-shadow: var(--shadow-sm); white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;

  &:hover { color: var(--ink); border-color: var(--muted); }
}
/* Smallchat: hidden on load via CSS; JS adds .sc-active to <body> to reveal it.
   The embed script injects #Smallchat at <body> level (NOT inside #sc-jail),
   so we hide it with CSS and toggle a body class instead of moving DOM nodes
   (moving an iframe via appendChild wipes its contentDocument). */
#Smallchat { display: none !important; }
body.sc-active #Smallchat { display: block !important; }
@keyframes ringwiggle { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(14deg); } 66% { transform: rotate(-12deg); } 72% { transform: rotate(9deg); } 78% { transform: rotate(-6deg); } 84% { transform: rotate(0); } }
@keyframes zoompop { 0%, 65%, 100% { transform: scale(1); } 78% { transform: scale(1.28); } 88% { transform: scale(.92); } }
@keyframes keyturn { 0%, 55%, 100% { transform: rotate(0); } 70% { transform: rotate(-32deg); } 85% { transform: rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .float-help-btn::after, .float-icons a svg { animation: none; } }
@media (max-width: 600px) {
  .float-help {
    right: 0.875rem; bottom: 0.875rem;

    /* frosted glass panel behind the widget */
    &::before { content: ""; position: absolute; inset: -0.625rem -0.75rem;
      background: rgba(255, 255, 255, .28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
      border-radius: var(--radius-lg); z-index: -1; pointer-events: none; }

    /* shooed: tuck close to / just off the edge */
    &.dismissed { right: -1.125rem; transform: none; }
    &.dismissed::before { display: none; }
  }
  .fi-circle { width: 2.875rem; height: 2.875rem; }
  .fi-circle svg { width: 1.1875rem; height: 1.1875rem; }
}

/* ---------- Easter-egg characters (idle phone peeker + help peeker) ---------- */
.wato-egg {
  position: fixed; z-index: 75; pointer-events: none; opacity: 0; will-change: transform, opacity;

  & img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0.75rem 1.625rem rgba(8,8,8,.30)); }
  & .egg-bubble {
    position: absolute; left: -0.625rem; top: 0.25rem; transform: translateX(-100%);
    background: rgba(255,255,255,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    color: var(--ink); font-family: var(--head); font-weight: 700; font-size: .82rem; line-height: 1.25;
    padding: 0.5625rem 0.8125rem; border-radius: 0.875rem 0.875rem 0.25rem 0.875rem;
    box-shadow: var(--shadow); white-space: nowrap; opacity: 0; transition: opacity .3s ease .3s;
  }
}
/* faint frosted halo behind the character */
:is(.egg-phone, .egg-q)::before { content: ""; position: absolute; left: 50%; top: 46%; width: 94%; height: 80%;
  transform: translate(-50%, -50%); border-radius: 1.625rem; background: rgba(255,255,255,.5); filter: blur(1.125rem); z-index: -1; pointer-events: none; }
/* Phone peeker — rises from behind the floating widget, bottom-right */
.egg-phone {
  right: 0.375rem; bottom: 0; width: 10.5rem; transform: translateY(112%);

  &.in { opacity: 1; transform: translateY(-22%); pointer-events: auto; cursor: pointer; transition: transform .75s cubic-bezier(.2,.9,.28,1.15), opacity .4s ease; }
  &.in .egg-bubble { opacity: 1; }
  &.out { opacity: 0; transform: translateY(112%); transition: transform .6s ease, opacity .5s ease; }
}
/* Help peeker — pops up beside the help control */
.egg-q {
  right: 18.625rem; bottom: 0.375rem; width: 5.625rem; transform: translateY(125%) scale(.92); transform-origin: bottom center;

  &.eq-min { right: 5.125rem; bottom: 0.75rem; width: 5.75rem; }
  &.in { opacity: 1; transform: translateY(0) scale(1); transition: transform .5s cubic-bezier(.2,.9,.3,1.3), opacity .3s ease; }
}
/* Idle countdown — faint dots under the shoo button */
.egg-countdown {
  flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: flex-end; margin-block-start: 0.4375rem; min-height: 5px;

  & i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .2; transition: opacity .35s ease, transform .35s ease; }
  & i.gone { opacity: 0; transform: scale(.3); }
}
@media (prefers-reduced-motion: reduce) { .egg-countdown { display: none !important; } }
/* Phone icon "rings" while the peeker points at it */
.fi-phone.egg-ring .fi-circle { background: var(--cyan-dark); animation: eggring .55s ease-in-out 6; transform-origin: 50% 18%; }
@keyframes eggring { 0%,100% { transform: rotate(0); } 22% { transform: rotate(16deg); } 48% { transform: rotate(-13deg); } 72% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .wato-egg { display: none !important; } }
@media (max-width: 820px) { .wato-egg, .egg-countdown { display: none !important; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  box-shadow: 0 0.5rem 1.125rem rgba(17,24,39,.06);

  & .container { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 4.875rem; gap: var(--space-md); }
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 3.125rem; width: auto; }
.nav {
  display: flex; gap: 1.125rem; align-items: center;

  & .nav-cta { margin-inline-start: 0.375rem; }
}
.nav-item { position: static; }
.nav-link {
  font-family: var(--head); color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; padding-block: 0.5rem; border-bottom: 3px solid transparent;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;

  & i { font-style: normal; font-size: .62em; transition: transform .2s ease; }

  &:hover, &.active { color: var(--cyan-dark); border-bottom-color: var(--cyan); }
}
.nav-item.has-mega:hover .nav-link i { transform: rotate(180deg); }
/* Help is the prominent action — we help, we don't sell */
.nav-link.help-cta {
  background: var(--blue); color: #fff; border-radius: 999px; padding: 0.5625rem 1.25rem; border-bottom: 0; margin-inline-start: 0.5rem;

  &:hover { background: var(--cyan-dark); color: #fff; border-bottom-color: transparent; transform: translateY(-1px); }
  & svg { width: 1rem; height: 1rem; }
}
.nav-item.has-mega:hover .nav-link.help-cta i { transform: rotate(180deg); }

/* mega panel */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 0;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--cyan);
  border-radius: 0 0 1rem 1rem; box-shadow: var(--shadow);
  padding: 1.625rem 2.125rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2.125rem;
  opacity: 0; visibility: hidden; transform: translateY(0.5rem);
  transition: opacity .18s ease, transform .18s ease; z-index: 60;

  /* invisible bridge so the panel doesn't close as you move the mouse into it */
  &::before { content: ""; position: absolute; left: 0; right: 0; top: -1.625rem; height: 1.75rem; }
}
.nav-item.has-mega:is(:hover, :focus-within) > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-col {
  & h4 { font-family: var(--head); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-dark); margin: 0 0 0.625rem; padding-block-end: 0.5rem; border-bottom: 1px solid var(--line); }
  & a { display: block; font-family: var(--font); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .92rem; color: var(--ink); padding-block: 0.375rem; border: 0; transition: color .15s, padding-inline-start .15s; }
  & a:hover { color: var(--cyan-dark); padding-inline-start: 5px; }
  /* discovery rotation: held-back pool links */
  & a[hidden] { display: none; }
  & a[data-nav="pool"].reveal { animation: poolin .25s ease both; }
}
.mega-col-wide a { font-size: 1rem; }
@keyframes poolin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mega-foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  gap: 0.875rem; flex-wrap: wrap; margin-block-start: 0.25rem;
  padding-block-start: 0.75rem; border-top: 1px solid var(--line);
}
.mega-cta {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  background: var(--blue); color: #fff; font-family: var(--head); font-weight: 700; font-size: .8rem;
  padding: 0.5rem 0.9375rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;

  &:is(:hover, :focus-visible) { background: var(--cyan-dark); color: #fff; transform: translateY(-1px); }
  & svg { width: 0.9375rem; height: 0.9375rem; }
}
.mega-all {
  width: max-content; font-family: var(--head); font-weight: 800; font-size: .82rem; color: var(--blue);
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.4375rem 0.9375rem; border: 1.5px solid var(--blue); border-radius: 999px;
  transition: background .15s ease, color .15s ease;

  & span { transition: transform .15s ease; }
  &:is(:hover, :focus-visible) { background: var(--blue); color: #fff; }
  &:hover span, &[aria-expanded="true"] span { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .mega-col a[data-nav="pool"].reveal { animation: none; } }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--navy); cursor: pointer; }
.mob-explore { display: none !important; }
.help-mobile { display: none; }

/* ---------- Hero / logo band / hero motion → moved to home.css ---------- */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(1.375rem); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
section { padding-block: var(--space-xl); }
section.soft {
  position: relative; background-color: var(--soft);
  background-image:
    repeating-linear-gradient(45deg, rgba(55,189,242,.10) 0 1px, transparent 1px 1.625rem),
    repeating-linear-gradient(-45deg, rgba(55,189,242,.10) 0 1px, transparent 1px 1.625rem);

  /* fade edges so soft sections blend into neighbours */
  &::before, &::after { content: ""; position: absolute; left: 0; right: 0; height: 5rem; pointer-events: none; z-index: 0; }
  &::before { top: 0; background: linear-gradient(180deg, #fff, transparent); }
  &::after { bottom: 0; background: linear-gradient(0deg, #fff, transparent); }
  & > .container { position: relative; z-index: 1; }
}
.section-head {
  max-width: 47.5rem; margin: 0 auto var(--space-lg); text-align: center;

  & h2 span { color: var(--cyan-text); }
  & p { color: var(--muted); font-size: 1.08rem; }
}

/* ---------- Branch / service cards ---------- */
.branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.375rem; }
.branch {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 0 1.625rem 1.625rem; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden;

  &::before { content: ""; display: block; height: 5px; margin: 0 -1.625rem 1.5rem; background: var(--cyan); }
  &:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(55,189,242,.55); }

  & h3 { text-transform: uppercase; letter-spacing: -.01em; }
  & p { font-size: .95rem; color: var(--muted); margin-block-end: 1em; }
  & a.more { font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--cyan-text); text-transform: uppercase; letter-spacing: .04em; }
  & .bico { width: 3rem; height: 3rem; border-radius: 0.75rem; display: grid; place-items: center; background: rgba(55,189,242,.12); color: var(--cyan-text); margin-block-end: 0.875rem; }
  & .bico svg { width: 1.625rem; height: 1.625rem; }
}

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.svc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.625rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column;

  &:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(55,189,242,.55); }
  & h3 { font-size: 1.1rem; text-transform: uppercase; }
  & p { font-size: .94rem; color: var(--muted); flex: 1; }
  & .more { font-family: var(--head); font-weight: 700; font-size: .82rem; color: var(--cyan-text); margin-block-start: 0.625rem; text-transform: uppercase; letter-spacing: .04em; }
  & .tag { font-family: var(--head); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--cyan-dark); align-self: flex-start; padding: 0.25rem 0.625rem; border-radius: 999px; margin-block-end: 0.75rem; }
}

.svc-group-title {
  font-family: var(--head); font-size: 1rem; color: var(--ink); text-transform: uppercase;
  letter-spacing: .06em; font-weight: 800; margin: var(--space-lg) 0 1.125rem;
  padding-block-end: 0.75rem; border-bottom: 2px solid var(--line);

  &::before { content: ""; display: inline-block; width: 1.625rem; height: 3px; background: var(--cyan); vertical-align: middle; margin-inline-end: 0.75rem; }
  &:first-of-type { margin-block-start: 0; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 12% 10%, rgba(55,189,242,.16), transparent 34%), linear-gradient(180deg, #fff 0%, #f4fbff 100%);
  padding-block: 3.125rem 3.625rem;

  &::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(55,189,242,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(55,189,242,.12) 1px, transparent 1px);
    background-size: 2.75rem 2.75rem; mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 75%); }
  & .container { position: relative; }
  & h1 { color: #050505; }
  & p { color: #2b3440; font-size: 1.12rem; max-width: 64ch; margin-block-end: 0; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-block-end: 1rem; }
.crumbs a { color: var(--cyan-text); }
.crumbs span { color: var(--ink); font-weight: 600; }

/* ---------- Content layout (service detail) ---------- */
.content-wrap { display: grid; grid-template-columns: 1fr 20rem; gap: 3rem; align-items: start; }
.prose {
  & h2 { margin-block-start: 1.7em; }
  & h2:first-child { margin-block-start: 0; }
  & ul { padding-inline-start: 1.2em; margin: 0 0 1.3em; }
  & li { margin-block-end: .5em; }
  & .check { list-style: none; padding-inline-start: 0; }
  & .check li { position: relative; padding-inline-start: 2rem; margin-block-end: .7em; }
  & .check li::before { content: ""; position: absolute; left: 0; top: 0.5625rem; width: 1.125rem; height: 1.125rem; border-radius: 999px; background: rgba(55,189,242,.18); }
  & .check li::after { content: "✓"; position: absolute; left: 0.25rem; top: 0; color: var(--cyan-text); font-weight: 800; }
}

.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.125rem; margin: 1.5rem 0 0.5rem; }
.feature {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.375rem; position: relative;

  &::before { content: ""; position: absolute; left: 0; top: 1.125rem; bottom: 1.125rem; width: 4px; border-radius: 4px; background: var(--cyan); }
  & h4 { font-family: var(--head); margin: 0 0 .3em; font-size: 1rem; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; padding-inline-start: 0.625rem; }
  & p { margin: 0; font-size: .92rem; color: var(--muted); padding-inline-start: 0.625rem; }
}

/* sidebar */
.sidebar { position: sticky; top: 6.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);

  & h3 { font-size: 1.05rem; text-transform: uppercase; }
  & ul { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
  & ul li { padding-block: 0.5625rem; border-bottom: 1px solid var(--line); font-size: .94rem; }
  & ul li:last-child { border-bottom: 0; }

  &.accent {
    background: var(--ink); color: #eef3f9; border: 0; position: relative; overflow: hidden;

    &::after { content: ""; position: absolute; right: -3.75rem; top: -3.75rem; width: 9.375rem; height: 9.375rem; border-radius: 999px; background: rgba(55,189,242,.28); }
    & h3 { color: #fff; position: relative; z-index: 1; }
    & p { color: #c7d4e6; font-size: .95rem; position: relative; z-index: 1; }
    & a { color: #fff; }
    & ul li { border-color: rgba(255,255,255,.14); }
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 51.25rem; margin-inline: auto;

  & details {
    border: 1px solid var(--line); border-radius: var(--radius); padding: 0.25rem 1.375rem;
    margin-block-end: 0.875rem; background: #fff;
  }
  & summary {
    font-family: var(--head); cursor: pointer; font-weight: 700; color: var(--ink);
    padding-block: 1rem; list-style: none; position: relative;

    &::-webkit-details-marker { display: none; }
    &::after { content: "+"; position: absolute; right: 0; top: 0.75rem; font-size: 1.5rem; color: var(--cyan-text); font-weight: 400; }
  }
  & details[open] summary::after { content: "−"; }
  & details p { margin: 0 0 1rem; color: var(--body); }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden;

  &::after { content: ""; position: absolute; width: 17.5rem; height: 17.5rem; right: -5.625rem; top: -6.875rem; border-radius: 999px; background: rgba(55,189,242,.26); }
  & h2 { color: #fff; position: relative; z-index: 1; }
  & p { color: rgba(255,255,255,.82); max-width: 56ch; margin: 0 auto 1.625rem; font-size: 1.1rem; position: relative; z-index: 1; }
  & .btn { position: relative; z-index: 1; }
  & .section-head { margin-block-end: 1.75rem; }
  & .section-head p { color: rgba(255,255,255,.82); }
}
.cta-char { position: relative; z-index: 1; width: 9.375rem; height: auto; margin: 0 auto 0.5rem; display: block; filter: drop-shadow(0 0.75rem 1.375rem rgba(0,0,0,.35)); }
.cta-close { margin-block-start: 3rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #aebfda; padding: 3.5rem 0 1.75rem; font-size: .92rem; border-top: 4px solid var(--cyan);

  & h4 { font-family: var(--head); color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-block-end: 1rem; }
  & a { color: #aebfda; display: block; padding-block: 0.25rem; }
  & a:hover { color: var(--cyan); }
  & .foot-brand img { height: 2.625rem; margin-block-end: 0.875rem; }
  & .foot-brand-text { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: #fff; margin-block-end: 0.625rem; text-transform: uppercase; }
}

/* mega footer */
.footer-top { display: grid; grid-template-columns: minmax(14.375rem, .9fr) 2.6fr; gap: 2.75rem; }
.footer-brand {
  & .foot-logo { height: 2.875rem; width: auto; margin-block-end: 1rem; filter: brightness(0) invert(1); opacity: .95; }
  & p { color: #aebfda; font-size: .9rem; margin: 0 0 0.875rem; max-width: 36ch; }
  & .fcontact a { display: block; color: #fff; font-weight: 600; padding-block: 3px; }
  & .fcontact a:hover { color: var(--cyan); }
  & .fcontact a svg { vertical-align: -2px; margin-inline-end: 5px; }
}
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); gap: 1.625rem 1.5rem; }
.footer-col {
  & h4 { font-family: var(--head); color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 0.75rem; padding-block-end: 0.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  & h4 a { display: inline; color: inherit; text-decoration: none; padding: 0; font: inherit; letter-spacing: inherit; }
  & h4 a:hover { color: var(--cyan); padding-inline-start: 0; }
  & a { display: block; color: #aebfda; font-size: .88rem; padding-block: 0.25rem; }
  & a:hover { color: var(--cyan); padding-inline-start: 3px; }
}
.story p { margin: 0 0 1rem; line-height: 1.75; color: var(--ink); }
.story-sign { text-align: center; font-family: var(--head); font-weight: 700; color: var(--cyan-text); font-size: 1.12rem; margin-block-start: 1.5rem; }

/* ===== Inner / service-page styles → moved to assets/css/pages.css ===== */
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.25rem; }
.footer-areas { text-align: center; padding: 1rem 0 0.125rem; border-top: 1px solid rgba(255,255,255,.10); font-size: .84rem; color: #8ea3c4; }
.footer-areas a { display: inline; color: #aebfda; padding-inline: 5px; }
.footer-areas a:hover { color: var(--cyan); }
.footer-bottom { margin-block-start: 2.5rem; padding-block-start: 1.375rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: .82rem; color: #8499bd; }

/* ---------- Social proof band (pre-footer) ---------- */
.proof {
  position: relative; background-color: var(--soft); border-top: 1px solid var(--line);
  padding-block: 4rem 3.5rem;
  background-image:
    repeating-linear-gradient(45deg, rgba(55,189,242,.10) 0 1px, transparent 1px 1.625rem),
    repeating-linear-gradient(-45deg, rgba(55,189,242,.10) 0 1px, transparent 1px 1.625rem);

  & > .container { position: relative; z-index: 1; }
  & .section-head { margin-block-end: 1.75rem; }
}
.quotes { position: relative; max-width: 47.5rem; margin-inline: auto; min-height: 10.625rem; }
.quote {
  position: absolute; inset: 0; opacity: 0; transform: translateY(0.625rem);
  transition: opacity .5s ease, transform .5s ease; text-align: center; pointer-events: none; margin: 0;

  &.is-active { opacity: 1; transform: none; pointer-events: auto; }
  & .stars { color: var(--cyan); letter-spacing: 3px; font-size: .95rem; margin-block-end: 0.75rem; }
  & p { font-size: 1.2rem; color: var(--ink); line-height: 1.5; margin: 0 0 0.875rem; }
  & cite { font-family: var(--head); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--cyan-text); }
}
.quotes-dots { display: flex; gap: 0.5rem; justify-content: center; margin-block-start: 1rem; }
.quotes-dots button { width: 0.5625rem; height: 0.5625rem; padding: 0; border-radius: 999px; border: 0; background: rgba(18,23,42,.2); cursor: pointer; transition: background .2s; }
.quotes-dots button.on { background: var(--cyan); }

.logos {
  margin-block-start: 3rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex; align-items: center; gap: 3.5rem; width: max-content;
  animation: marquee 48s linear infinite;

  & img { height: 2.75rem; width: auto; border-radius: 0.5rem; opacity: .6; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
  & img:hover { opacity: 1; filter: none; }
}
.logos:hover .logos-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 1.75rem; } }
@media (max-width: 600px) { .quotes { min-height: 13.75rem; } .quote p { font-size: 1.05rem; } }

/* ---------- Web portfolio gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr)); gap: 0.875rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 0.75rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.gallery a:hover img { transform: scale(1.07); }

/* ---------- Statement band ---------- */
.statement {
  background: var(--cyan); color: #0a0a0a; text-align: center; position: relative; overflow: hidden;
  background-image:
    repeating-linear-gradient(45deg, rgba(6,34,43,.06) 0 1px, transparent 1px 1.625rem),
    repeating-linear-gradient(-45deg, rgba(6,34,43,.06) 0 1px, transparent 1px 1.625rem);
}
.statement-line {
  font-family: var(--display); font-size: clamp(1.35rem, 2.8vw, 2.1rem); text-transform: uppercase; line-height: 1.2;
  margin-inline: auto; max-width: 24ch; position: relative; z-index: 1;

  & span { display: block; color: #fff; margin-block-start: 0.5rem; }
}

/* ---------- Industry card icons ---------- */
.svc-ico { width: 2.625rem; height: 2.625rem; border-radius: 0.6875rem; background: rgba(55,189,242,.12); color: var(--cyan-text); display: grid; place-items: center; margin-block-end: 0.875rem; }
.svc-ico svg { width: 1.375rem; height: 1.375rem; }

/* ---------- Comparison (why different) ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 57.5rem; margin-inline: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);

  & > div { padding: 0.9375rem 1.375rem; border-bottom: 1px solid var(--line); font-size: .95rem; text-align: left; }
  & .them { background: #fff; color: var(--muted); }
  & .us { background: #0b2545; color: #eaf1fb; border-color: rgba(255,255,255,.12); }
  & .chead { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; color: var(--ink); }
  & .chead.us { color: #fff; }
  & .chead.us b { color: var(--cyan); font-weight: 800; }
  & .row { display: flex; gap: 0.625rem; align-items: flex-start; }
  & .them.row::before { content: "✕"; color: #cf5630; font-weight: 800; }
  & .us.row::before { content: "✓"; color: var(--cyan); font-weight: 800; }
  & > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } .compare > div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: 2; margin-block-start: 0.5rem; }
  .hero-photo .disc { width: min(72%, 20rem); }
  .branches { grid-template-columns: repeat(2, 1fr); }
  :is(.svc-grid, .svc-grid.cols-2) { grid-template-columns: repeat(2, 1fr); }
  .logo-band .grid { grid-template-columns: 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.375rem 1.375rem 1rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - 7.375rem); overflow-y: auto;

    &.open { display: flex; }
    & .nav-cta { margin: 0.875rem 0 0; text-align: center; justify-content: center; }
    & > .nav-link { border-bottom: 1px solid var(--line); }
  }
  .nav-item {
    width: 100%; border-bottom: 1px solid var(--line);

    &.has-mega { background: var(--ice); border-radius: 0.625rem; padding-inline: 0.875rem; margin-block-end: 0.5rem; }
    &.open > .mega { display: grid; padding: 0 0 0.625rem; }
    &.open > .mob-explore span { transform: rotate(90deg); }
    &.open > .mob-explore { color: var(--navy); }
  }
  .nav-link {
    width: 100%; padding-block: 0.875rem; justify-content: space-between; font-size: .95rem; border-bottom: 0;

    & i { display: inline-block !important; font-style: normal; font-size: .8em; color: var(--mid); transition: transform .2s; margin-inline-start: auto; }
    & i::after { content: "\203A"; }
    & i::before { content: ""; }
  }
  .mega {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    grid-template-columns: 1fr; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0; gap: 0; background: transparent;

    &::before { display: none; }
  }
  .mega-col { margin-block-end: 0.5rem; }
  .mega-col h4 { margin-block-end: 0.375rem; font-size: .68rem; }
  .mega-col a { font-size: .88rem; padding-block: 0.4375rem; }
  .menu-toggle { display: block; }
  .site-header .container { justify-content: center; min-height: 3.75rem; gap: 0; }
  .brand img { height: 2.5rem; }
  .menu-toggle { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
  .mob-explore {
    display: flex !important; position: relative; z-index: 2; align-items: center; gap: 0.375rem;
    width: 100%; padding-block: 0.625rem; min-height: 2.75rem; background: none; border: 0;
    border-top: 1px solid var(--line); color: var(--cyan-dark); font-size: .82rem; font-weight: 600;
    cursor: pointer; font-family: inherit; letter-spacing: .02em;
    -webkit-appearance: none; appearance: none; outline: none; -webkit-tap-highlight-color: transparent; margin: 0;

    & span { transition: transform .2s; font-size: 1.1em; }
  }
  .mega-foot {
    & .mega-all { display: none; }
    & :is(.mega-cta[href*="guide"], .mega-cta[href*="resource"]) { display: none; }

    display: flex; flex-direction: column; gap: 0; padding: 0.25rem 0 0.125rem;
    border-top: 1px solid var(--line); margin-block-start: 0.25rem;

    & .mega-cta { background: none; color: var(--cyan-dark); font-size: .82rem; font-weight: 600; padding: 0.625rem 0; min-height: 2.75rem; border: 0; border-radius: 0; display: flex; align-items: center; gap: 0.375rem; width: 100%; }
    & .mega-cta:hover { color: var(--navy); }
  }
  .topbar {
    & .container { flex-wrap: nowrap; gap: 0.75rem; }
    font-size: .8rem;
    & .promo-pre { display: none; }
    & .promo { white-space: nowrap; }
    & .tb-cred { display: none; }
    & .container > .right { flex: none; }
    & .right { gap: 0.75rem; flex: none; }
  }
  .help-mobile { display: block; }
}
@media (max-width: 600px) {
  :is(.branches, .svc-grid, .svc-grid.cols-2, .feature-row) { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar {
    font-size: .76rem;
    & .promo { display: none; }
    & .right .sep { display: none; }
    & .right { gap: 0.875rem; }
  }
  .hero-photo { display: none; }
  .hero-call { display: inline-flex !important; }
  .hero-inner { padding-block-start: 1.375rem; }
}


/* ---------- Accessibility & interaction foundation ---------- */
:is(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 3px solid var(--cyan-text); outline-offset: 2px; border-radius: 6px;
}
/* bright cyan ring on dark surfaces */
:is(.topbar, .site-footer, .cta-band, .statement) :focus-visible {
  outline-color: var(--cyan);
}
/* enlarge carousel-dot hit areas to >=24px without changing the visual dot */
:is(.rot-dots, .quotes-dots) button {
  position: relative;
  &::after { content: ""; position: absolute; inset: -0.75rem; }
}
/* respect reduced-motion for in-page smooth scrolling */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
