/* ============================================================
   H&H TAX CONSULTANTS — STYLESHEET
   Premium corporate single-page site
   ============================================================ */

/* ----------  CSS VARIABLES  ---------- */
:root {
  /* Brand palette */
  --navy: #082B63;
  --navy-darker: #061F47;
  --blue: #0F4C9D;
  --blue-bright: #1673D1;
  --graphite: #3F4652;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --line: #E5E9F0;
  --line-soft: #EEF2F7;
  --text: #1B2230;
  --text-muted: #5A6478;

  /* Type */
  --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 10px rgba(8, 43, 99, 0.06);
  --shadow-md: 0 8px 30px rgba(8, 43, 99, 0.08);
  --shadow-lg: 0 20px 60px rgba(8, 43, 99, 0.12);
  --shadow-glow: 0 12px 40px rgba(22, 115, 209, 0.28);

  /* Motion */
  --ease: cubic-bezier(.22,.7,.32,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Layout */
  --container: 1240px;
  --header-h: 116px;   /* matches the real desktop header height */
}

/* ----------  RESET  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* The HTML `hidden` attribute must always win. Without this, .form-alert's
   display:flex overrode it and BOTH "Message sent" and "Something went
   wrong" showed on page load. */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--blue-bright); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.2vw + .6rem, 3.75rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 2.4vw + .8rem, 2.6rem); }
h3 { font-size: clamp(1.15rem, .6vw + .9rem, 1.4rem); }
p { margin: 0 0 1em; }

ul, ol { list-style: none; padding: 0; margin: 0; }

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 18px;
  z-index: 9999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----------  CONTAINER  ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  position: relative;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 76, 157, 0.28);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  transform: translateY(-2px);
}
.btn-block { width: 100%; padding: 16px 26px; }

/* ----------  HEADER / NAV  ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(8, 43, 99, 0.06);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 50px; width: auto; }

.primary-nav {
  display: flex; align-items: center; gap: 28px;
}
.primary-nav ul {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .94rem;
  color: var(--graphite);
  border-radius: 8px;
  position: relative;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--blue-bright);
  transition: width .3s var(--ease), left .3s var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
}
.nav-link:hover::after, .nav-link.active::after {
  width: calc(100% - 28px); left: 14px;
}
.nav-cta { padding: 11px 22px; font-size: .9rem; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------  HERO  ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 50px) 0 60px;
  background: linear-gradient(180deg, #fff 0%, #F4F7FC 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 76, 157, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 157, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.blob-1 {
  top: -120px; right: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, #1673D1 0%, transparent 70%);
}
.blob-2 {
  bottom: -150px; left: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, #082B63 0%, transparent 70%);
  opacity: .18;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
  padding: 8px 16px;
  background: rgba(22, 115, 209, 0.08);
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--blue-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22, 115, 209, 0.2);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 115, 209, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(22, 115, 209, 0); }
}

.text-accent {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--graphite);
  max-width: 580px;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--navy); font-weight: 600; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 38px;
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-trust li {
  font-size: .9rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.hero-trust strong {
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  margin-right: 6px;
}
.trust-logo-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.trust-logo-item span {
  font-size: .88rem;
}

/* Hero SVG */
.hero-art { position: relative; }
.iso-svg { width: 100%; height: auto; max-width: 580px; margin-left: auto; }
.iso-float { animation: float 5s var(--ease) infinite; transform-origin: center; }
.iso-float-delay { animation: float 5.5s var(--ease) infinite; animation-delay: -2.5s; transform-origin: center; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.particle { animation: particle 4s ease-in-out infinite; }
.particle:nth-child(2) { animation-delay: 1s; }
.particle:nth-child(3) { animation-delay: 2s; }
.particle:nth-child(4) { animation-delay: 3s; }
@keyframes particle {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(-18px); opacity: .8; }
}

/* Hero stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 70px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--r-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}
.hero-stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.05), transparent 40%);
  border-radius: inherit;
  pointer-events: none;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute; left: -12px; top: 10%;
  width: 1px; height: 80%;
  background: rgba(255,255,255,.15);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 2.4vw + .5rem, 2.6rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.78);
  letter-spacing: 0.04em;
}

/* ----------  SECTIONS  ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ----------  CPA PRACTICE STATEMENT (legal compliance strip)  ---------- */
.cpa-statement {
  background: var(--white);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
}
.cpa-statement::before,
.cpa-statement::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%; max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 20%, var(--line) 80%, transparent 100%);
}
.cpa-statement::before { top: 0; }
.cpa-statement::after  { bottom: 0; }
.cpa-statement-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.2vw + .8rem, 1.5rem);
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 36px;
  line-height: 1.4;
}
.cpa-statement-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cpa-statement-logo img {
  height: clamp(96px, 12vw, 140px);
  width: auto;
  max-width: 100%;
  /* CPA brand guidelines require minimum clear space around the logo
     equal to the height of the "C" — achieved by padding the container */
}

/* ----------  ABOUT  ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  color: var(--graphite);
  font-size: 1.02rem;
}
.about-points {
  margin: 28px 0 36px;
  display: grid;
  gap: 14px;
}
.about-points li {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--graphite);
  font-size: 0.97rem;
}
.about-points svg {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  color: var(--blue-bright);
  background: rgba(22, 115, 209, 0.1);
  border-radius: 50%;
  padding: 4px;
  margin-top: 2px;
}

.about-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 48px 40px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-card::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(22,115,209,.5), transparent 70%);
  border-radius: 50%;
}
.about-card::after {
  content: '';
  position: absolute; bottom: -100px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  border-radius: 50%;
}
.card-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.about-card h3 {
  color: #fff;
  font-size: clamp(1.5rem, 1.6vw + .8rem, 2rem);
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.about-card h3 .text-accent {
  background: linear-gradient(135deg, #7BB8F5 0%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-card p {
  color: rgba(255,255,255,.85);
  position: relative; z-index: 1;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative; z-index: 1;
}
.mini-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
}
.mini-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

/* ----------  SERVICES  ---------- */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  padding: 36px 30px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, #EEF3FB 0%, #DCE7F5 100%);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform .35s var(--ease);
}
.service-card:hover .service-icon {
  transform: rotate(-4deg) scale(1.05);
}
.service-icon svg { width: 48px; height: 48px; }
.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0;
}

/* ----------  CREDENTIALS BAND  ---------- */
.credentials {
  background: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.credentials::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; max-width: 1100px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 20%, var(--line) 80%, transparent 100%);
}
.credentials-inner {
  background: linear-gradient(180deg, #FAFCFE 0%, #F4F7FC 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}
.credentials-inner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(22, 115, 209, .06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.credentials-inner::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(8, 43, 99, .05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.credentials-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
  position: relative; z-index: 1;
}
.credentials-head h2 {
  font-size: clamp(1.5rem, 1.6vw + .9rem, 2.1rem);
  margin: 10px 0 12px;
}
.credentials-head p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}
.credentials-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 28px;
  position: relative; z-index: 1;
}
.credential-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.credential-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-bright);
}
.credential-logo img {
  height: 76px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(8, 43, 99, .06));
}
.credential-tpb img { height: 90px; }
.credential-xero img { height: 70px; }
.credential-caption {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
  line-height: 1.45;
}
.credential-caption em {
  display: inline-block;
  font-style: normal;
  font-weight: 500;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ----------  WHY US  ---------- */
.why {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute; top: 0; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,115,209,.05), transparent 60%);
  pointer-events: none;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-card {
  padding: 36px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff 0%, #FCFDFE 100%);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-bright);
  box-shadow: var(--shadow-md);
}
.why-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.04em;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ----------  PROCESS  ---------- */
.process {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute; top: 28px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.process-steps li {
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0 12px;
}
.process .process-steps li { background: transparent; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue-bright);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(22,115,209,.18);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.process-steps li:hover .step-num {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  transform: scale(1.08);
}
.process-steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.process-steps p {
  color: var(--text-muted);
  font-size: .92rem;
  max-width: 220px;
  margin: 0 auto;
}

/* ----------  TESTIMONIALS  ---------- */
.testimonials {
  background: #fff;
  position: relative;
  overflow: hidden;
}
.testimonial-slider {
  position: relative;
  overflow: hidden;
  padding: 10px 0 20px;
}
.testimonial-track {
  display: flex;
  gap: 28px;
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 calc((100% - 56px) / 3);
  background: linear-gradient(180deg, #fff 0%, #FAFCFE 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 30px;
  position: relative;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.quote-mark {
  width: 36px; height: 36px;
  color: var(--blue-bright);
  opacity: .25;
  margin-bottom: 14px;
}
.testimonial-card p {
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
}
.testimonial-card footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testimonial-card footer strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.testimonial-card footer span {
  font-size: .85rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  margin-top: 36px;
}
.slider-btn {
  width: 48px; height: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: all .25s var(--ease);
}
.slider-btn svg { width: 20px; height: 20px; }
.slider-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.slider-dots {
  display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  background: var(--line);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), width .25s var(--ease);
}
.dot.active {
  background: var(--blue-bright);
  width: 24px;
  border-radius: 4px;
}

/* ----------  CONTACT  ---------- */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  margin-bottom: 50px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  margin-bottom: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.info-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.info-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { color: var(--graphite); font-size: .94rem; margin: 4px 0; }
.info-card a { color: var(--navy); font-weight: 500; }
.info-card a:hover { color: var(--blue-bright); }

.whatsapp-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 600;
  margin-top: 8px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
}
.whatsapp-cta svg { width: 22px; height: 22px; }

/* Form */
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-lede {
  color: var(--text-muted);
  font-size: .94rem;
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field label span {
  color: var(--blue-bright);
  margin-left: 2px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: #C9D3E2; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-bright);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(22, 115, 209, .12);
}
.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
  border-color: #E04A4A;
  box-shadow: 0 0 0 3px rgba(224, 74, 74, .12);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* Submit button states */
#submitBtn { margin-top: 6px; position: relative; }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#submitBtn.loading .btn-label { opacity: .6; }
#submitBtn.loading .btn-spinner { display: inline-block; }
#submitBtn.loading { pointer-events: none; opacity: .85; }

/* Alerts */
.form-alert {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .92rem;
  animation: slide-in .35s var(--ease);
}
.form-alert svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.form-alert strong {
  display: block;
  font-family: var(--font-head);
  margin-bottom: 2px;
}
.form-alert.success {
  background: rgba(34, 161, 95, .08);
  color: #14723F;
  border: 1px solid rgba(34, 161, 95, .25);
}
.form-alert.error {
  background: rgba(224, 74, 74, .08);
  color: #B53030;
  border: 1px solid rgba(224, 74, 74, .25);
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Map */
.map-wrap {
  height: 420px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { height: 100%; width: 100%; display: block; filter: saturate(.95); }

/* ----------  FOOTER  ---------- */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,.78);
  padding-top: 80px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 50%, var(--blue) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo {
  height: 50px; width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: .94rem;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 360px;
}
.tagline-line {
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .15em;
  color: #7BB8F5;
  font-weight: 600;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { font-size: .92rem; line-height: 1.55; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  margin: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.legal-links { color: rgba(255,255,255,.5)!important; }

.footer-credit {
  background: rgba(0, 0, 0, .25);
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-credit .container {
  text-align: center;
}
.footer-credit p {
  margin: 0;
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .02em;
}
.footer-credit a {
  color: #7BB8F5;
  font-weight: 600;
  transition: color .25s var(--ease);
}
.footer-credit a:hover {
  color: #fff;
}

/* ----------  FLOATING WHATSAPP  ---------- */
.wa-widget {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
}
.wa-bubble {
  width: 60px; height: 60px;
  background: #25D366;
  color: #fff;
  border: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .42);
  transition: transform .3s var(--ease);
  position: relative;
}
.wa-bubble svg { width: 30px; height: 30px; }
.wa-bubble:hover { transform: scale(1.08); }
.wa-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .5;
  animation: wa-pulse 2s var(--ease) infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wa-popup {
  position: absolute;
  bottom: 78px; right: 0;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  overflow: hidden;
  animation: pop-in .3s var(--ease);
  transform-origin: bottom right;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.wa-popup-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  color: #fff;
  position: relative;
}
.wa-avatar {
  width: 42px; height: 42px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wa-avatar img { width: 100%; height: auto; object-fit: contain; }
.wa-popup-head strong {
  display: block;
  font-family: var(--font-head);
  font-size: .94rem;
}
.wa-popup-head span {
  font-size: .76rem;
  color: rgba(255,255,255,.78);
}
.wa-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: .8;
}
.wa-close:hover { opacity: 1; }

.wa-popup-body {
  background: #ECE5DD url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='20' cy='20' r='1' fill='%23d4ccc1' opacity='.4'/></svg>");
  padding: 22px 16px;
  min-height: 120px;
  display: flex; align-items: flex-end;
}
.wa-message {
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px 10px 10px 2px;
  font-size: .9rem;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  max-width: 90%;
  line-height: 1.5;
}
.wa-start-btn {
  display: block;
  text-align: center;
  padding: 14px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  transition: background .25s var(--ease);
}
.wa-start-btn:hover { background: #1ebe57; color: #fff; }

/* ----------  SCROLL TO TOP  ---------- */
.scroll-top {
  position: fixed;
  bottom: 26px; left: 26px;
  width: 46px; height: 46px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .3s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 89;
}
.scroll-top svg { width: 18px; height: 18px; }
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--blue-bright);
  transform: translateY(-3px);
}

/* ----------  MOBILE STICKY CTA  ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  z-index: 88;
  box-shadow: 0 -6px 22px rgba(0,0,0,.06);
  gap: 8px;
}
.m-cta-call, .m-cta-book {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
}
.m-cta-call {
  flex: 0 0 36%;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.m-cta-call svg { width: 16px; height: 16px; }
.m-cta-book {
  flex: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 76, 157, .28);
}
.m-cta-book:hover, .m-cta-call:hover { color: var(--navy); }
.m-cta-book:hover { color: #fff; }

/* ----------  REVEAL ANIMATIONS  ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablet / small laptop */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
  .testimonial-card { flex: 0 0 calc((100% - 28px) / 2); }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --header-h: 88px; }   /* matches the real mobile header height */
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }

  /* Mobile nav */
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 16px 24px 24px;
    gap: 0;
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    box-shadow: 0 20px 30px rgba(0,0,0,.05);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 14px;
  }
  .primary-nav ul li { width: 100%; }
  .nav-link {
    display: block;
    width: 100%;
    padding: 13px 6px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; padding: 14px; }
  .menu-toggle { display: flex; }

  .hero { padding: calc(var(--header-h) + 30px) 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { order: 2; }
  .hero-art { order: 1; max-width: 460px; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 24px;
    margin-top: 50px;
    gap: 28px 16px;
  }
  .stat + .stat::before { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { padding: 36px 28px; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .process-steps::before { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }

  .testimonial-card { flex: 0 0 100%; }

  .credentials { padding: 60px 0; }
  .credentials-inner { padding: 40px 24px; }
  .credentials-logos { gap: 16px; }
  .credential-logo { padding: 20px 14px; gap: 14px; }
  .credential-logo img { height: 60px; }
  .credential-tpb img { height: 70px; }
  .credential-xero img { height: 56px; }
  .credential-caption { font-size: .85rem; }
  .credential-caption em { font-size: .76rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  body { font-size: 15.5px; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }

  .brand-logo { height: 40px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 26px 22px; display: flex; align-items: center; gap: 18px; }
  .why-num { margin-bottom: 0; font-size: 2rem; }
  .why-card > div { flex: 1; }

  .process-steps { grid-template-columns: 1fr; gap: 26px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 14px; font-size: .85rem; }

  .map-wrap { height: 320px; }

  /* Show mobile sticky CTA */
  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
  .wa-widget { bottom: 80px; right: 16px; }
  .wa-bubble { width: 54px; height: 54px; }
  .wa-bubble svg { width: 26px; height: 26px; }
  .wa-popup { width: calc(100vw - 32px); right: -8px; bottom: 70px; }
  .scroll-top { bottom: 80px; left: 16px; width: 42px; height: 42px; }

  .footer-bottom .container { flex-direction: column; text-align: center; }

  .credentials-logos { grid-template-columns: 1fr; gap: 14px; }
  .credentials-inner { padding: 32px 18px; }
  .credentials-head { margin-bottom: 32px; }
  .hero-trust { gap: 18px; }
  .trust-logo-item img { height: 32px; }

  .cpa-statement { padding: 56px 0 48px; }
  .cpa-statement-text { margin-bottom: 28px; }
}

/* Widescreen */
@media (min-width: 1600px) {
  :root { --container: 1380px; }
  h1 { font-size: 4rem; }
}

/* Print */
@media print {
  .site-header, .wa-widget, .scroll-top, .mobile-cta, .hero-bg { display: none; }
  .section { padding: 30px 0; }
  body { color: #000; }
}


/* ============================================================
   v2 — MOBILE POLISH & BUG FIXES  (SnipeCommerce)
   ============================================================ */

/* Anchor jumps (incl. from kyc.html → index.html#contact) clear the fixed header */
section[id], [id="main"] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Honeypot spam field — invisible to people and screen readers */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Disabled submit */
#submitBtn:disabled { cursor: progress; }

/* Hero stats strip: keep it inset from the screen edges on every width */
.hero-stats { width: calc(100% - 56px); max-width: calc(var(--container) - 56px); }

/* Header safe-area (notched phones in landscape) */
.site-header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

@media (max-width: 900px) {
  /* ---- Fix: blue shadow/glow at the top on mobile load ----
     1) The closed menu sat just above the header with its own shadow plus the
        blue glow of the "Book Free Consult" button bleeding into the header.
     2) The translucent/blurred header let the blue hero blob show through.
     3) backdrop-filter made the header the containing block for the fixed menu.
     Closed menu is now fully hidden (no shadows), header is solid white. */
  .site-header,
  .site-header.scrolled {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header.scrolled { box-shadow: 0 2px 12px rgba(16, 24, 40, 0.06); }

  .primary-nav {
    visibility: hidden;
    box-shadow: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    transition: transform .35s var(--ease), visibility 0s linear .35s;
  }
  .primary-nav.open {
    visibility: visible;
    box-shadow: 0 20px 30px rgba(16, 24, 40, 0.08);
    transition: transform .35s var(--ease), visibility 0s;
  }
  .primary-nav .nav-cta { box-shadow: none; }

  .hero-stats { width: calc(100% - 40px); }

  /* iOS zooms into inputs smaller than 16px — keep them at 16px */
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
}

@media (max-width: 600px) {
  /* Sticky CTA clears the iPhone home indicator */
  .mobile-cta { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

  .hero-stats { width: calc(100% - 32px); padding: 24px 16px; }
  .stat-label { font-size: .78rem; }
  .contact-form { padding: 26px 18px; }
  .info-card { padding: 22px 18px; }
  .credential-logo img { max-width: 100%; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-stats { width: calc(100% - 24px); }
  .stat-num { font-size: 1.6rem; }
  .btn { padding: 13px 20px; font-size: .9rem; }
  .why-card { padding: 22px 18px; gap: 14px; }
}

/* Touch screens: no "stuck" hover lifts after tapping a card */
@media (hover: none) {
  .service-card:hover, .why-card:hover, .credential-logo:hover, .testimonial-card:hover,
  .info-card:hover, .btn-primary:hover, .btn-ghost:hover, .slider-btn:hover,
  .scroll-top:hover, .whatsapp-cta:hover { transform: none; }
}

/* Laptop/tablet-landscape (901–1240px): compact the nav so the logo keeps its size */
@media (min-width: 901px) and (max-width: 1240px) {
  .primary-nav { gap: 14px; }
  .primary-nav ul { gap: 0; }
  .nav-link { padding: 10px 9px; font-size: .88rem; }
  .nav-link:hover::after, .nav-link.active::after { width: calc(100% - 18px); left: 9px; }
  .nav-cta { padding: 10px 16px; font-size: .84rem; }
  .site-header .brand-logo { height: 70px; }
  .site-header .brand { flex-shrink: 0; }
}
@media (min-width: 901px) and (max-width: 1080px) {
  .primary-nav li:first-child { display: none; }   /* "Home" — the logo already links home */
  .site-header .brand-logo { height: 60px; }
}

/* Grids never force horizontal scroll on very narrow phones */
@media (max-width: 600px) {
  .why-grid, .services-grid, .process-steps, .footer-grid, .credentials-logos { grid-template-columns: minmax(0, 1fr); }
  .why-card > div { min-width: 0; }
}

/* Mobile: keep the decorative blue hero glow away from the header edge */
@media (max-width: 900px) {
  .blob-1 { top: 25%; right: -180px; opacity: .14; filter: blur(90px); }
  .blob-2 { opacity: .1; }
}

/* v3 — closed mobile menu fully off-screen (see also inline copy in index.html) */

/* Closed mobile menu: pushed fully off-screen above the viewport, invisible,
   no shadow — nothing can peek over the header (the blue strip on phones). */
@media (max-width: 900px) {
  .site-header, .site-header.scrolled {
    background: #ffffff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header .primary-nav {
    top: var(--header-h);
    transform: translateY(calc(-100% - var(--header-h) - 60px));
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    transition: transform .35s cubic-bezier(.22,.7,.32,1), opacity .2s, visibility 0s linear .35s;
  }
  .site-header .primary-nav.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 20px 30px rgba(16, 24, 40, 0.08);
    transition: transform .35s cubic-bezier(.22,.7,.32,1), opacity .2s, visibility 0s;
  }
  .site-header .primary-nav .nav-cta { box-shadow: none; }
  .site-header .primary-nav:not(.open) * { box-shadow: none !important; }
}
