/* ═══════════════════════════════════════════════════
   SINGHA TAX — site styles on the Singha Tax Design System (Brand Kit)
   ═══════════════════════════════════════════════════ */


/* ── TOKENS ── */
/* Brand Kit tokens, from the Singha Tax Design System (tokens.json). Names and values as defined
   there; contrast notes in its README ("Using the tokens"). Gradients are the Brand Kit's own. */
:root {
  --navy-900: #0a1e3f;          /* ink, dark buttons, 16.5:1 on white */
  --blue-700: #0d47a1;          /* brand: primary actions, links, active states, 8.6:1 */
  --cyan-500: #00b5e2;          /* gradient mid-stop; never small text on light grounds (2.4:1) */
  --teal-400: #22d3a6;          /* gradient end; never text on light grounds (1.9:1) */
  --mint-200: #a8fac9;          /* small highlight tints, focus ring on dark */
  --teal-ink: #0f766e;          /* teal for text on light grounds (5.5:1) */
  --slate-900: #121b2d;         /* Brand Kit secondary base, near-black ink alternative */
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-400: #64748b;
  --slate-100: #e2ebf0;         /* Brand Kit secondary accent, soft surfaces and low-emphasis hairlines */

  --color-success: #10b981;     --color-success-ink: #166534; --color-success-tint: #dcfce7;
  --color-warning: #d97706;     --color-warning-ink: #92400e; --color-warning-tint: #fef9c3;
  --color-danger: #ef4444;      --color-danger-ink: #991b1b;  --color-danger-tint: #fee2e2;
  --color-info-ink: var(--teal-ink); --color-info-tint: #f0fdfa;
  --color-brand: var(--blue-700);
  --color-brand-strong: var(--navy-900);
  --color-link: var(--blue-700);  /* Design System color-link: inline links on light grounds, 8.6:1 */
  --color-brand-tint: #ecf0f7;  /* active nav, accent badges and icon tiles */
  --cyan-tint: #e0f6fc;
  --teal-tint: #e4faf4;
  --color-border-control: #7c8da3;  /* form control boundaries, 3.4:1 */
  --focus-ring: var(--blue-700);
  --focus-ring-on-dark: var(--mint-200);

  --grad-primary: linear-gradient(135deg, var(--blue-700) 0%, var(--cyan-500) 55%, var(--teal-400) 100%);
  --grad-secondary: linear-gradient(135deg, var(--navy-900) 0%, #1e2938 50%, var(--slate-700) 100%);
  --grad-mint: linear-gradient(135deg, var(--teal-400) 0%, var(--mint-200) 100%);

  /* Site variables, used across every page (also inline): now the Brand Kit values. */
  --c-bg: #ffffff;
  --c-surface: #f8fafc;
  --c-surface-2: #f1f5f9;
  --c-border: #e2e8f0;
  --c-border-light: #f1f5f9;
  --c-text: var(--navy-900);
  --c-text-muted: #475569;
  --c-text-subtle: var(--slate-400);
  --c-accent: var(--color-brand);
  --c-accent-2: var(--color-brand);
  --c-gold: var(--teal-ink);        /* the Brand Kit has no gold: its second accent is teal */
  --c-gold-light: var(--teal-ink);
  --c-gold-dark: var(--teal-ink);
  --c-green: var(--color-success);
  --c-pink: var(--cyan-500);
  --c-white: #ffffff;

  --grad-accent: var(--grad-primary);
  --grad-gold: linear-gradient(135deg, var(--teal-ink) 0%, var(--teal-400) 100%);
  --grad-surface: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 999px;
  --r-card: 32px;   /* cards (warmer UI, Oct 2026): rounder than the Brand Kit's 20px card radius */
  --r-band: 40px;   /* CTA, newsletter and footer bands */
  --on-dark: var(--slate-100);                  /* text on navy-900: 14:1 */
  --on-dark-muted: rgba(226, 235, 240, 0.72);   /* secondary text on navy-900: ~9:1 */

  --shadow-glow-accent: 0 0 40px rgba(13, 71, 161, 0.20);
  --shadow-glow-gold: 0 0 40px rgba(0, 181, 226, 0.20);
  --shadow-card: 0 4px 24px rgba(10, 30, 63, 0.06);
  --shadow-card-hover: 0 16px 48px rgba(10, 30, 63, 0.12);

  /* Brand Kit type scale (Design System tokens.json, fontSize family). Every font-size on the site uses one of these. */
  --fs-h1: 3.375rem;      /* 54px */
  --fs-h2: 2rem;          /* 32px */
  --fs-h3: 1.5rem;        /* 24px */
  --fs-h4: 1.3125rem;     /* 21px */
  --fs-subtitle: 1.5rem;  /* 24px */
  --fs-body: 1rem;        /* 16px */
  --fs-button: 1rem;      /* 16px */
  --fs-overline: 0.875rem;/* 14px */
  --fs-caption: 0.75rem;  /* 12px */

  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-display: 'Poppins', system-ui, sans-serif;

  --nav-h: 80px;
  --container: 1200px;
  --section-pad: 120px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: var(--fs-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); }
/* Keyboard focus: 2px focus-ring, 2px offset, on every interactive part (Design System "Accessibility"). */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible { outline-offset: 1px; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section-pad { padding: var(--section-pad) 0; }

/* ── NAVIGATION ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 20px rgba(10,30,63,0.03);
  transition: all 0.3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,1);
  box-shadow: 0 8px 32px rgba(10,30,63,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--grad-accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-body); font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.logo-name { color: var(--c-text); }
.logo-name span { color: var(--c-accent-2); }
/* Brand wordmark (images/logo-wordmark.png): 32px+ tall, never stretched or recoloured. */
.logo-img { height: 36px; width: auto; display: block; }
.nav-logo picture { display: block; line-height: 0; }
/* Header: the brand logo ("SinghaTax / CONSULTANTS") at 48px; phones get the wordmark (<picture>). */
.logo-brand { height: 60px; }
@media (max-width: 768px) { .logo-brand { height: 36px; } }
/* Footer: the full logo with the tagline "Your Path to Tax Clarity". */
.footer-brand .logo-full { height: 56px; max-width: 100%; object-fit: contain; object-position: left center; }
/* Login and app screens: the S mark above the title. */
.login-mark { height: 48px; width: auto; display: block; margin: 0 auto 12px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  padding: 8px 8px;
  font-size: var(--fs-overline);
  font-weight: 600;
  color: var(--c-text-muted);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--c-accent); background: var(--c-surface-2); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--color-brand); font-weight: 700; background: var(--color-brand-tint); }

/* Dropdown */
.nav-item { position: relative; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-card-hover);
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-overline);
  color: var(--c-text-muted);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-item:hover { color: var(--c-accent); background: var(--c-surface-2); }
.nav-dropdown-label {
  display: block;
  padding: 6px 14px 4px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}

/* First item of each dropdown: the section's own page, named in full. */
.nav-dropdown-head { font-weight: 600; color: var(--c-text); }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Secondary header action (Log in): brand-blue outline, one step below the solid "Contact now". */
.btn-outline { background: transparent; border: 2px solid var(--color-brand); color: var(--color-brand); }
.btn-outline:hover { background: var(--color-brand-tint); transform: translateY(-1px); }
/* Quiet text action (Install app): no border, so it never reads as a twin of Log in. */
.btn-link { background: none; border: 0; color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; padding-left: 8px; padding-right: 8px; }
.btn-link:hover { color: var(--color-brand-strong); }

/* Skip link: first stop for keyboard users, visible only on focus. */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 1100;
  padding: 12px 20px; border-radius: var(--r-full);
  background: var(--color-brand-strong); color: var(--c-white); font-weight: 600;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--focus-ring); outline-offset: 2px; }  /* the ring sits on the white page, so brand blue (8.6:1), not mint */
main:focus { outline: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--c-bg);
  z-index: 999;
  padding: 24px 32px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--c-border);
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--r-md);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-link:hover { color: var(--c-accent); background: var(--c-surface); }
.mobile-nav-label {
  padding: 16px 16px 4px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}
.mobile-nav-divider { height: 1px; background: var(--c-border); margin: 8px 0; }
/* Collapsible groups (GST, ITR, MCA, Free tools): same items as the desktop dropdowns. */
.mobile-group-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 14px 16px; font-size: var(--fs-body); font-weight: 500; color: var(--c-text-muted);
  border-radius: var(--r-md); text-align: left;
}
.mobile-group-toggle::after { content: '+'; font-weight: 600; color: var(--c-text-subtle); }
.mobile-group-toggle[aria-expanded="true"] { color: var(--c-text); }
.mobile-group-toggle[aria-expanded="true"]::after { content: '−'; }
.mobile-group-toggle:hover { color: var(--c-accent); background: var(--c-surface); }
.mobile-group-items { padding-left: 16px; border-left: 1px solid var(--c-border); margin: 0 0 8px 16px; }
.mobile-group-items .mobile-nav-link { padding: 12px 16px; font-size: var(--fs-body); }
.mobile-login { justify-content: center; margin-top: 16px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: var(--fs-button); font-weight: 600;
  border-radius: var(--r-full);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
/* .btn-primary is the Design System's `dark` button (solid navy); .btn-accent its `primary` (solid brand blue + glow). */
.btn-primary {
  background: var(--color-brand-strong);
  color: var(--c-white);
  box-shadow: 0 2px 8px rgba(10,30,63,0.12);
}
.btn-primary:hover { background: var(--color-brand); transform: translateY(-1px); box-shadow: var(--shadow-glow-accent); }
.btn-accent {
  background: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-accent);
}
.btn-accent:hover { background: var(--color-brand-strong); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(13,71,161,0.3); }
.btn-ghost {
  border: 1px solid var(--c-border);
  color: var(--c-text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--color-brand-tint); transform: translateY(-1px); }
.btn-gold {
  background: var(--grad-mint);
  color: var(--navy-900);
  font-weight: 700;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-gold); }
.btn-sm { padding: 8px 16px; font-size: var(--fs-overline); }
.btn-lg { padding: 16px 32px; font-size: var(--fs-body); }

/* ── BADGES & TAGS ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  font-size: var(--fs-caption); font-weight: 600;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}
.badge-accent { background: var(--color-brand-tint); color: var(--color-brand); border: 1px solid rgba(13,71,161,0.15); }
.badge-gold { background: var(--teal-tint); color: var(--teal-ink); border: 1px solid rgba(15,118,110,0.15); }
.badge-green { background: var(--color-success-tint); color: var(--color-success-ink); border: 1px solid rgba(22,101,52,0.15); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── SECTION LABELS ── */
.section-eyebrow {
  font-size: var(--fs-overline); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-text);
}
.section-title em { font-style: normal; background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title .gold { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub {
  font-size: var(--fs-body);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ── CARDS ── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-h3);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.card-icon-accent { background: var(--color-brand-tint); color: var(--color-brand); }
.card-icon-gold { background: var(--teal-tint); color: var(--teal-ink); }
.card-icon-green { background: var(--color-success-tint); color: var(--color-success-ink); }
.card-icon-pink { background: var(--cyan-tint); color: var(--c-text); }
.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4); font-weight: 700;
  color: var(--c-text); margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.card-text { font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: var(--fs-overline); font-weight: 600;
  color: var(--c-accent-2);
  transition: gap 0.2s, color 0.2s;
}
.card-link:hover { gap: 10px; color: var(--c-text); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--c-surface);
  background-image: 
    radial-gradient(circle at 15% 40%, rgba(13, 71, 161, 0.12), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(217, 119, 6, 0.08), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(0, 181, 226, 0.14), transparent 50%);
  animation: bgPulse 15s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,71,161,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,71,161,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 32px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-badge { display: inline-flex; margin-bottom: 28px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-h2), 6vw, var(--fs-h1));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--c-text);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(var(--fs-body), 1.6vw, var(--fs-h4));
  color: var(--c-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: var(--c-text-subtle);
  font-size: var(--fs-caption); font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-dot {
  width: 20px; height: 32px;
  border: 1.5px solid var(--c-text-subtle);
  border-radius: 10px;
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px;
  background: var(--c-text-subtle);
  border-radius: 2px;
  animation: scroll-bounce 1.5s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* ── STATS BAR ── */
.stats-bar {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.stats-bar-inner {
  display: flex; align-items: stretch;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.stat-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--c-border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-h2); font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num.gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: var(--fs-caption); color: var(--c-text-subtle); font-weight: 500; letter-spacing: 0.02em; }

/* ── MARQUEE ── */

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 0.03; }
.service-card > * { position: relative; z-index: 1; }
.service-num {
  font-family: var(--font-display);
  font-size: var(--fs-caption); font-weight: 700;
  color: var(--c-text-subtle); letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-h2);
  margin-bottom: 20px;
}
.service-name {
  font-family: var(--font-display);
  font-size: var(--fs-h4); font-weight: 700;
  color: var(--c-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.service-desc { font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.65; margin-bottom: 20px; }
.service-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 24px;
}
.service-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-body); color: var(--c-text-muted);
}
.service-list li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
  margin-top: calc(0.75em - 2.5px); /* centred on the first line when an item wraps */
}

/* ── PROCESS STEPS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.step-item {
  background: var(--c-surface);
  padding: 40px 32px;
  position: relative;
  transition: background 0.2s;
}
.step-item:hover { background: var(--c-surface-2); }
.step-num {
  font-family: var(--font-display);
  font-size: var(--fs-h1); font-weight: 900;
  color: rgba(10,30,63,0.05);
  position: absolute; top: 20px; right: 24px;
  line-height: 1;
}
.step-icon { font-size: var(--fs-h2); margin-bottom: 16px; color: var(--color-brand); }
.step-title { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 700; color: var(--c-text); margin-bottom: 8px; }
.step-text { font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial-card:hover { border-color: var(--color-brand); box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.testimonial-quote-icon {
  font-size: var(--fs-h1);
  font-family: Georgia, serif;
  line-height: 0.8;
  color: var(--c-accent);
  margin-bottom: 20px;
  opacity: 0.6;
}
.testimonial-text {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-overline); font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.author-name { font-size: var(--fs-overline); font-weight: 600; color: var(--c-text); }
.author-role { font-size: var(--fs-caption); color: var(--c-text-subtle); margin-top: 2px; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(13,71,161,0.08) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 100% 100%, rgba(34,211,166,0.08) 0%, transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-h2), 6vw, var(--fs-h1));
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: 16px;
}
.cta-sub { font-size: var(--fs-body); color: var(--c-text-muted); margin-bottom: 36px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 40px;
}
.form-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4); font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}
.form-sub { font-size: var(--fs-body); color: var(--c-text-muted); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: var(--fs-caption); font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-bg);
  border: 1px solid var(--color-border-control);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--fs-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-text-subtle); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(13,71,161,0.12);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c8da3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Contact info */
.contact-info-items { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-h4);
  flex-shrink: 0;
}
.contact-info-label { font-size: var(--fs-caption); font-weight: 600; color: var(--c-text-subtle); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-info-val { font-size: var(--fs-body); color: var(--c-text); font-weight: 500; }
.contact-info-val a { color: var(--c-text); transition: color 0.2s; }
.contact-info-val a:hover { color: var(--c-accent-2); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--c-border);
  margin-top: 0;
}
.footer-top {
  padding-top: 80px;
  padding-bottom: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { max-width: 280px; }
.footer-tagline { font-size: var(--fs-body); color: var(--c-text-subtle); line-height: 1.65; margin-top: 16px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted);
  font-size: var(--fs-overline); font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-btn:hover { color: var(--color-brand); border-color: var(--c-accent); background: var(--color-brand-tint); }
.footer-col-title {
  font-size: var(--fs-caption); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: var(--fs-overline); color: var(--c-text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-brand); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: var(--fs-overline); color: var(--c-text-muted); margin-bottom: 12px; }
.footer-contact-item span:first-child { color: var(--c-text-subtle); font-size: var(--fs-caption); }
.footer-contact { margin-bottom: 24px; }
.footer-contact .footer-contact-item { margin-bottom: 0; }
/* Phones: footer links get ~42px rows (WCAG 2.5.8 comfort size) instead of 22px. */
@media (max-width: 768px) {
  .footer-links { gap: 2px; }
  .footer-links a { padding: 10px 0; }
}
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copyright { font-size: var(--fs-caption); color: var(--c-text-subtle); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: var(--fs-caption); color: var(--c-text-subtle); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--c-text-muted); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background-color: var(--c-surface);
  background-image: 
    radial-gradient(circle at 20% 0%, rgba(13, 71, 161, 0.1), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0, 181, 226, 0.10), transparent 50%);
  text-align: center;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,71,161,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,71,161,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  z-index: 0;
}
.page-hero > * {
  position: relative;
  z-index: 1;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-h2), 6vw, var(--fs-h1));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 20px;
}
.page-hero-sub {
  font-size: clamp(var(--fs-body), 1.6vw, var(--fs-h4));
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── ACCORDION ── */
.accordion-item {
  border-bottom: 1px solid var(--c-border);
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  font-size: var(--fs-body); font-weight: 600;
  color: var(--c-text);
  transition: color 0.2s;
  text-align: left;
}
.accordion-trigger:hover { color: var(--c-accent); }
.accordion-trigger.open { color: var(--c-accent-2); }
.accordion-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--color-border-control);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-body); color: var(--c-text-muted);
  transition: transform 0.3s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.accordion-trigger.open .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--c-accent);
  background: var(--color-brand-tint);
  color: var(--c-accent-2);
}
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
/* Closed answers are hidden from keyboard and screen readers too; visibility waits for the collapse to finish. */
.accordion-body { visibility: hidden; transition: max-height 0.35s ease, padding 0.35s ease, visibility 0s linear 0.35s; }
.accordion-body.open { max-height: 500px; visibility: visible; transition-delay: 0s; }
.accordion-body-inner { padding: 0 0 24px; font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.75; }

/* ── ABOUT PAGE ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.team-card:hover { border-color: var(--c-accent); transform: translateY(-4px); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-h2);
  margin: 0 auto 20px;
  position: relative;
}
.team-avatar::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--grad-accent);
  z-index: -1;
}
/* Initials avatars (Design System: gradient-ringed initials, not photos): white Poppins on navy. */
.team-avatar { color: var(--c-white); font-family: var(--font-display); font-weight: 700; }
.founder-card .team-avatar { font-size: var(--fs-h4); }
.team-name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.team-position { font-size: var(--fs-overline); color: var(--c-accent-2); font-weight: 500; margin-bottom: 12px; }
.team-bio { font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.65; }

/* ── PRICING CARDS ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--c-accent);
  box-shadow: 0 0 40px rgba(13,71,161,0.1);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-brand);
  color: #fff;
  font-size: var(--fs-caption); font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-tier { font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-2); margin-bottom: 12px; }
.pricing-name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--fs-h2); font-weight: 900; color: var(--c-text);
  letter-spacing: -0.04em;
  margin: 20px 0 8px;
}
.pricing-price span { font-size: var(--fs-body); font-weight: 500; color: var(--c-text-muted); vertical-align: middle; }
.pricing-note { font-size: var(--fs-body); color: var(--c-text-subtle); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--c-border); margin: 24px 0; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-body); color: var(--c-text-muted);
  margin-bottom: 12px;
}
.pricing-feature-icon { color: var(--c-green); font-size: var(--fs-overline); flex-shrink: 0; }
/* /pricing groups set their own column count (--cols desktop, --cols-md tablet) so four plans sit 2x2
   and a lone plan stays card-sized, where auto-fit would leave an orphan or stretch one card full width. */
@media (min-width: 769px) {
  .pricing-grid-fit { grid-template-columns: repeat(var(--cols-md), minmax(0, 1fr)); max-width: calc(var(--cols-md) * 420px); margin-inline: auto; }
}
@media (min-width: 1025px) {
  .pricing-grid-fit { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); max-width: calc(var(--cols) * 420px); }
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-gradient, .gradient-text { background: var(--grad-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gold { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-h3);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,0.45); }

/* ── RESPONSIVE ── */

/* Tablet: 768px – 1024px */
/* Header: the full menu needs ~1220px to keep ≥16px between logo, menu and buttons; below that, the ☰ menu. */
@media (max-width: 1220px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right .btn-sm.btn-outline, .nav-right .pwa-install { display: none; }
}

@media (max-width: 1024px) {
  .nav-inner { padding: 0 20px; }

  /* Footer: brand full-width on top, 3 link cols below */
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;        /* spans all 3 cols */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--c-border);
  }
  .footer-top { padding-top: 60px; padding-bottom: 48px; }

  /* Misc layout */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
  :root { --section-pad: 72px; }

  .hero-title { font-size: clamp(var(--fs-h2), 8vw, var(--fs-h1)); }
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .stat-item + .stat-item::before { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  /* Footer: full single-column stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 24px;
  }
  .footer-top { padding-top: 48px; padding-bottom: 36px; }
}

/* Small mobile: < 480px */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .process-steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-socials { flex-wrap: wrap; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .stat-item { min-width: 100%; padding: 20px 16px; }
}

/* ── LAUNCH CHECKLIST ADDITIONS ───────────────────────────── */

/* Breadcrumbs (sit inside .page-hero, above the badge) */
.breadcrumbs { margin: 0 auto 20px; font-size: var(--fs-overline); color: var(--c-text-subtle); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '›'; color: var(--c-text-subtle); }
.breadcrumbs a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-text); font-weight: 600; }
.breadcrumbs.breadcrumbs-left ol { justify-content: flex-start; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-md);
  box-shadow: var(--shadow-card-hover);
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: var(--fs-overline); color: var(--c-text-muted); line-height: 1.6; }
.cookie-banner a { color: var(--c-accent); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forms */
.form-error {
  display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--r-sm);
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: var(--fs-overline);
}
.form-error a { color: #991b1b; font-weight: 600; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-overline); color: var(--c-text-muted); margin-bottom: 20px; line-height: 1.5; }
.form-consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.checkout-price { font-size: var(--fs-body); color: var(--c-text-muted); margin: -8px 0 16px; }
.form-consent a { color: var(--c-accent); }
.form-note { font-size: var(--fs-caption); color: var(--c-text-subtle); text-align: center; margin-top: 14px; }

/* Reviews */
.review-stars { color: var(--teal-ink); letter-spacing: 2px; margin-bottom: 10px; font-size: var(--fs-body); }
.testimonial-card blockquote { margin: 0; }
.testimonial-card .author-avatar { background: var(--c-accent); }

/* Related services (internal links on service pages) */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.related-card {
  display: block; padding: 20px 22px; border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-bg); text-decoration: none; color: var(--c-text); transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--c-accent-2); transform: translateY(-2px); }
.related-card strong { display: block; margin-bottom: 4px; font-family: var(--font-display); }
.related-card span { font-size: var(--fs-body); color: var(--c-text-muted); }

/* Founder strip (homepage) */
.founder-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.founder-card { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); }
.founder-card img, .founder-card .team-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin: 0; }
.founder-card .team-name { margin-bottom: 2px; font-size: var(--fs-h4); }

/* Legal / simple content pages */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-family: var(--font-display); font-size: var(--fs-h4); margin: 40px 0 12px; color: var(--c-text); }
.legal-content p, .legal-content li { color: var(--c-text-muted); line-height: 1.8; font-size: var(--fs-body); }
.legal-content ul { padding-left: 22px; margin: 0 0 16px; }
.legal-content a { color: var(--c-accent); }

/* 404 + thank-you */
.status-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 60px) 20px 80px; }
.status-code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.next-steps { text-align: left; max-width: 520px; margin: 28px auto 0; padding: 0; list-style: none; counter-reset: step; }
.next-steps li { counter-increment: step; position: relative; padding: 0 0 18px 44px; color: var(--c-text-muted); line-height: 1.6; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: var(--fs-overline); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* Blog articles */
.article-meta { color: var(--c-text-subtle); font-size: var(--fs-overline); margin: 0; }
.article-content { font-size: var(--fs-body); }
.article-content .article-lead { font-size: var(--fs-body); color: var(--c-text); line-height: 1.75; margin-bottom: 8px; }
.article-content .article-note { font-size: var(--fs-body); color: var(--c-text-muted); line-height: 1.75; margin-bottom: 8px; }
.article-content ol { padding-left: 22px; margin: 0 0 16px; }
.article-hero-img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--c-border); margin-bottom: 32px; }
/* Blog comments (moderated; see app.js and admin.html) */
.comments { max-width: 780px; }
.comments-title { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: 12px; }
.comment-list { margin-bottom: 24px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.comment-name { font-weight: 700; font-size: var(--fs-body); }
.comment-date { font-size: var(--fs-caption); color: var(--c-text-subtle); margin-left: 8px; }
.comment-body { margin-top: 6px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 24px; }
.comments-form-title { font-family: var(--font-display); font-size: var(--fs-body); margin-bottom: 16px; }
.comments-note { font-size: var(--fs-overline); color: var(--c-text-subtle); margin-top: 12px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.article-disclaimer { margin-top: 40px; padding: 16px 20px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-border); font-size: var(--fs-overline) !important; }

/* ── Mobile QA fixes ── */
.split-hero > * { min-width: 0; }
.contact-info-val, .footer-contact-item { overflow-wrap: anywhere; }
.card-link { padding: 10px 0; margin-top: 10px; }
.form-consent input { width: 20px; height: 20px; }
@media (max-width: 480px) {
  .split-left, .split-right { padding-left: 20px; padding-right: 20px; }
  .page-hero-title { overflow-wrap: break-word; }
}
@media (max-width: 400px) {
  /* Very small phones: keep logo + menu button; Contact lives in the menu, hero and WhatsApp button */
  .nav-right .btn-primary { display: none; }
  .nav-inner { padding-left: 16px; padding-right: 16px; }
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 6px; }
.legal-content li::marker { color: var(--c-accent); }
.review-note { font-size: var(--fs-overline); margin-top: 8px; }
.company-note { font-size: var(--fs-overline); margin-top: 16px; }
.company-note a { color: var(--c-accent); }
.section-eyebrow.eyebrow-gold { color: var(--c-gold-dark); }

/* ── Web app (pwa.js) ── */
/* Install buttons are added by pwa.js only when the browser offers installation. */
.pwa-install-mobile { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 600; color: var(--c-accent); cursor: pointer; }
/* Installed app: no browser bar above the header, so respect the phone's status bar / notch. */
.is-app .site-header { padding-top: env(safe-area-inset-top); }

/* ── Reduced motion (Design System "Accessibility") ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══ DESIGN SYSTEM COMPONENTS ════════════════════════════════════════════
   The Singha Tax Design System's components (components/*.jsx) as CSS classes,
   applied to the site's existing markup. Values are its tokens. */

/* DeadlineCard: navy ground; hierarchy date -> filing -> who/what -> one CTA.
   Built by compliance-dates.js into #nextDeadline from real calendar rules only
   (no penalty line: the rules carry none, and figures are never invented). */
.deadline-card {
  background: var(--navy-900); color: #fff; border-radius: var(--r-lg);
  padding: 32px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end;
  box-shadow: var(--shadow-card-hover);
}
.deadline-card::after {   /* the brand gradient as a thin rule, never under text */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-primary);
}
.deadline-eyebrow { grid-column: 1 / -1; font-size: var(--fs-overline); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-500); }
.deadline-date { font-family: var(--font-display); font-size: clamp(var(--fs-h2), 6vw, var(--fs-h1)); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.deadline-filing { font-family: var(--font-display); font-size: clamp(var(--fs-h4), 2.4vw, var(--fs-h3)); font-weight: 600; line-height: 1.3; margin: 4px 0 12px; color: #fff; }
.deadline-meta { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--c-border); }
.deadline-meta strong { color: #fff; }
.deadline-chip { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: var(--r-full); font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(168, 250, 201, 0.14); color: var(--mint-200); }
.deadline-cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: end; white-space: nowrap;
  background: var(--teal-400); color: var(--navy-900); border-radius: var(--r-full);
  padding: 12px 24px; font-family: var(--font-display); font-size: var(--fs-button); font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.deadline-cta:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(34, 211, 166, 0.35); }
.deadline-cta:focus-visible { outline: 2px solid var(--focus-ring-on-dark); outline-offset: 2px; }
.deadline-wrap { max-width: 900px; margin: 0 auto 24px; }
@media (max-width: 640px) {
  .deadline-card { grid-template-columns: 1fr; padding: 24px; }
  .deadline-cta { justify-self: start; margin-top: 12px; }
}

/* Checklist: done rows show a success-ink tick on a success-tint circle. */
.pricing-feature { align-items: flex-start; color: var(--c-text); }
.pricing-feature-icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-caption); font-weight: 700;
  background: var(--color-success-tint); border: 1.5px solid var(--color-success-ink); color: var(--color-success-ink);
}

/* StepProgress: a brand track over each step and a numbered brand circle. */
.step-item { padding-top: 44px; }
.step-item::before {
  content: ''; position: absolute; top: 24px; left: 32px; right: 32px; height: 4px;
  border-radius: var(--r-full); background: var(--color-brand);
}
.step-num {
  position: static; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
  border: 2px solid var(--color-brand); background: var(--c-bg); color: var(--color-brand);
  font-size: var(--fs-caption); font-weight: 700; line-height: 1;
}
.step-item:last-child .step-num { background: var(--color-brand); color: #fff; }

/* ComparisonCard: article tables (e.g. old vs new regime) read as the brand's comparison:
   hairline frame, display-type header, the second option's column on the brand tint. */
.article-content table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0;
  border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; font-size: var(--fs-body);
}
.article-content th, .article-content td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--c-border); }
.article-content thead th, .article-content tr:first-child > th, .article-content tr:first-child > td { border-top: 0; }
.article-content thead th { font-family: var(--font-display); font-weight: 600; color: var(--c-text); background: var(--c-bg); }
.article-content tbody th, .article-content td:first-child { color: var(--c-text-muted); font-weight: 600; }
.article-content tr > :nth-child(3) { background: var(--color-brand-tint); }
.article-content thead tr > :nth-child(3) { color: var(--color-brand); }
@media (max-width: 640px) { .article-content table { display: block; overflow-x: auto; } }

/* Alert: tint ground, 4px status edge, ink text (form errors). */
.form-error {
  background: var(--color-danger-tint); border: 1px solid var(--c-border); border-left: 4px solid var(--color-danger);
  color: var(--color-danger-ink); border-radius: var(--r-sm); font-weight: 500;
}
.form-error a { color: var(--color-danger-ink); }


/* ── UX audit fixes (Oct 2026) ── */
/* Links inside running text look like links: brand blue + underline (contact details looked like plain text). */
main p a:not(.btn):not(.card-link), .contact-info-val a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
main p a:not(.btn):not(.card-link):hover, .contact-info-val a:hover { color: var(--color-brand-strong); }
/* A badge at the top of a flex column keeps its own width instead of stretching like an input. */
.split-left > .badge { align-self: flex-start; }
select, .form-select { cursor: pointer; }
/* Service pages: "The basics" cards, section spacing and full-width card buttons (were inline styles). */
.section-surface { background: var(--c-surface); }
.pt-0 { padding-top: 0; } .pt-40 { padding-top: 40px; } .pt-64 { padding-top: 64px; } .pb-40 { padding-bottom: 40px; }
.btn-block { width: 100%; justify-content: center; }
.info-card { background: var(--c-bg); border: 1px solid var(--c-border); padding: 32px; border-radius: var(--r-lg); }
.info-card-warn { border-top: 4px solid var(--color-danger); }
.info-card-title { font-size: var(--fs-h4); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-card-text { color: var(--c-text-muted); line-height: 1.6; }
.container-narrow { max-width: 860px; }
@media (min-width: 1025px) { .pricing-card.popular { transform: translateY(-16px); } }
.text-left { text-align: left; }
.service-card-cta { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--c-surface-2); }
.service-card-cta .service-name { margin-bottom: 12px; } .service-card-cta .service-desc { margin-bottom: 24px; }
/* Services page: side panels and alternating layout (were inline styles and a direction:rtl trick). */
.service-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 40px; text-align: center; }
.service-panel-icon { font-size: var(--fs-h2); margin-bottom: 20px; color: var(--color-brand); }
.service-panel h3 { font-size: var(--fs-h3); font-weight: 700; color: var(--c-text); }
.service-panel p { color: var(--c-text-muted); margin-top: 10px; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Service cards can be one bento column wide (~230px of text at 1024px): long button labels wrap there. */
.service-actions .btn { white-space: normal; text-align: center; }
@media (min-width: 769px) { .grid-reverse > :first-child { order: 2; } }
/* Contact page (were inline styles) */
.contact-title { text-align: left; line-height: 1.1; }
.contact-form-card { width: 100%; max-width: 500px; }
.contact-extra-link { display: inline-block; margin-top: 4px; }
.contact-extra-note { color: var(--c-text-muted); font-size: var(--fs-overline); }
.form-required-note { font-size: var(--fs-overline); color: var(--c-text-muted); margin: -8px 0 20px; }
.select-wrap { position: relative; }
.calc-big-value.calc-value-success { color: var(--color-success-ink); }  /* 7.1:1; the bright success green was 2.42:1 */
.calc-radio-row { display: flex; gap: 10px; }
.calc-radio { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.calc-radio input { width: 20px; height: 20px; }
.calc-big-value.calc-value-teal { color: var(--teal-ink); }
.calc-sub-value { font-size: var(--fs-overline); color: var(--c-text-muted); margin-top: 8px; }
/* Blog cards (blogs.html, blog posts' related list; built by blog.js). Classes, so .featured-blog's flex layout applies. */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 32px; }  /* 400px: two cards fill a desktop row; the featured card spans it */
.blog-card { display: block; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--color-border-control); }
.blog-card-img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 28px; }
.blog-card-tag { background: var(--c-surface-2); color: var(--c-text-muted); }
.blog-card-title { font-size: var(--fs-h4); margin-bottom: 12px; line-height: 1.3; }
.featured-blog-title { font-size: var(--fs-h2); margin-bottom: 16px; line-height: 1.2; }
.blog-card-text { color: var(--c-text-muted); margin-bottom: 20px; }
.blog-card-more { font-weight: 700; color: var(--color-link); }
.checkout-container { max-width: 640px; }
.checkout-intro { margin-bottom: 32px; }
/* A button that reads as an inline link (login: create account, resend, change email). */
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; color: var(--color-link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-button:hover { color: var(--color-brand-strong); }
.link-button-quiet { font-weight: 500; color: var(--c-text-muted); margin-top: 8px; }
/* About page (were inline styles) */
.page-hero-overlap { border-bottom: none; padding-bottom: 120px; }
.about-mission { background: var(--c-surface); border-top: 1px solid var(--c-border); margin-top: -60px; position: relative; z-index: 2; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.team-avatar { background: var(--navy-900); }
.team-avatar-more { background: var(--c-surface-2); color: var(--c-text-muted); }
.waitlist-card { max-width: 520px; margin: 0 auto; }
/* Very small phones: long button labels wrap instead of pushing the page sideways. */
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }

/* ═══ WARMER UI (Oct 2026) ═══════════════════════════════════════════════
   Structure taken from the reference the owner chose (alliancepartner.in), colours and type
   unchanged: rounder cards, dark CTA and footer bands, menu arrows, line icons. */

/* Line icons (images/icons.svg, Lucide). Styles live here: a <use> clone inherits from this <svg>. */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .icon, .service-icon-wrap .icon, .contact-info-icon .icon { width: 26px; height: 26px; }

/* Rounder, softer cards */
.card, .service-card, .info-card, .pricing-card, .team-card, .testimonial-card, .contact-form-card,
.blog-card, .service-panel, .founder-card, .related-card, .deadline-card, .specimen { border-radius: var(--r-card); }
.card, .service-card, .info-card, .pricing-card, .team-card, .related-card { background: var(--c-bg); box-shadow: 0 10px 40px rgba(10, 30, 63, 0.06); }
.related-card { padding: 24px 28px; }

/* Menu: an arrow on items with a dropdown; the active page is underlined, not boxed */
.nav-item > .nav-link::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}
.nav-item:hover > .nav-link::after, .nav-item:focus-within > .nav-link::after { transform: rotate(-135deg); vertical-align: -1px; }
.nav-links .nav-link.active, .nav-links .nav-link[aria-current="page"] {
  background: none; border-radius: 0; box-shadow: inset 0 -2px 0 var(--color-brand);
}

/* Dark CTA band with faint outline circles */
.cta-band { background: var(--navy-900); border: 0; border-radius: var(--r-band); box-shadow: 0 24px 60px rgba(10, 30, 63, 0.18); }
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); background: none; pointer-events: none;
}
.cta-band::before { inset: auto; width: 360px; height: 360px; left: -120px; top: -160px; }
.cta-band::after { width: 420px; height: 420px; right: -140px; bottom: -220px; }
.cta-band .cta-title { color: var(--c-white); }
.cta-band .cta-sub { color: var(--on-dark-muted); }
.cta-band .text-gradient, .cta-band .gradient-text { background: linear-gradient(135deg, var(--cyan-500), var(--teal-400) 55%, var(--mint-200)); -webkit-background-clip: text; background-clip: text; }
.cta-band .btn-primary { background: var(--c-white); color: var(--navy-900); }
.cta-band .btn-primary:hover { background: var(--mint-200); color: var(--navy-900); box-shadow: none; }
.cta-band .btn-ghost { color: var(--c-white); border-color: rgba(255, 255, 255, 0.4); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-white); border-color: var(--c-white); }
.cta-band a:focus-visible, .cta-band button:focus-visible { outline-color: var(--focus-ring-on-dark); }

/* Dark footer, set in from the page edges */
.site-footer { background: var(--navy-900); color: var(--on-dark); border-top: 0; border-radius: var(--r-band); margin: 0 24px 24px; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: var(--focus-ring-on-dark); }
/* No reversed logo exists and the logo is never recoloured: it sits on a white tile. */
.footer-brand .nav-logo { display: inline-flex; background: var(--c-white); padding: 12px 18px; border-radius: var(--r-md); }
.footer-tagline { color: var(--on-dark-muted); }
.footer-col-title { color: var(--c-white); }
.footer-links a, .footer-contact-item { color: var(--on-dark); }
.footer-links a:hover, .footer-contact-item:hover { color: var(--mint-200); }
.footer-contact-item .icon { color: var(--cyan-500); }
.social-btn { border-color: rgba(255, 255, 255, 0.25); color: var(--on-dark); }
.social-btn:hover { color: var(--navy-900); background: var(--mint-200); border-color: var(--mint-200); }
.site-footer .btn-ghost { color: var(--c-white); border-color: rgba(255, 255, 255, 0.4); }
.site-footer .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-white); border-color: var(--c-white); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); }
.footer-copyright, .footer-bottom-links a { color: var(--on-dark-muted); }
.footer-bottom-links a:hover { color: var(--c-white); }
@media (max-width: 768px) { .site-footer { margin: 0 12px 12px; border-radius: var(--r-card); } }

/* ── Home: video hero ── */
.hero-video { min-height: 100vh; min-height: 100svh; background: var(--navy-900) url('/images/hero-office-1280x720.webp') center / cover no-repeat; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Navy overlay, heaviest behind the text (white text stays above 10:1 even over a white frame). */
.hero-overlay { background: linear-gradient(180deg, rgba(10, 30, 63, 0.8) 0, rgba(10, 30, 63, 0.55) 80px, rgba(10, 30, 63, 0) 200px),
  linear-gradient(90deg, rgba(10, 30, 63, 0.9) 0%, rgba(10, 30, 63, 0.72) 50%, rgba(10, 30, 63, 0.38) 100%); } /* top fade keeps the white menu readable */
.hero-left { text-align: left; }
.hero-left > * { max-width: 680px; }
.hero-video .hero-title { color: var(--c-white); }
.hero-video .hero-title .gradient-text { background: linear-gradient(135deg, var(--cyan-500), var(--teal-400) 55%, var(--mint-200)); -webkit-background-clip: text; background-clip: text; }
.hero-video .hero-sub { color: var(--on-dark); margin-left: 0; }
.hero-left .hero-actions { justify-content: flex-start; }
.hero-video a:focus-visible, .hero-video button:focus-visible { outline-color: var(--focus-ring-on-dark); }
.badge-on-dark { background: rgba(255, 255, 255, 0.12); color: var(--c-white); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-light { background: var(--c-white); color: var(--navy-900); }
.btn-light:hover { background: var(--mint-200); color: var(--navy-900); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: var(--c-white); border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--c-white); transform: translateY(-1px); }
.hero-video-toggle {
  position: absolute; right: 24px; bottom: 32px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 30, 63, 0.6); color: var(--c-white); border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-video-toggle:hover { background: rgba(10, 30, 63, 0.85); }
@media (max-width: 768px) {
  .hero-video { background-image: url('/images/hero-office-768x432.webp'); }
  .hero-overlay { background: rgba(10, 30, 63, 0.78); }
}

/* ── Home: services panel overlapping the hero ── */
.svc-panel-section { position: relative; z-index: 2; margin-top: 64px; }
.svc-panel {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--c-bg);
  border-radius: var(--r-band); box-shadow: 0 30px 80px rgba(10, 30, 63, 0.16); overflow: hidden;
}
.svc-tabs-col { background: var(--c-surface); padding: 28px 20px; border-right: 1px solid var(--c-border); }
.svc-panel-label { font-size: var(--fs-overline); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-muted); margin: 0 8px 16px; }
.svc-tabs { display: flex; flex-direction: column; gap: 8px; }
.svc-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 16px;
  border-radius: 16px; border: 1px solid var(--c-border); background: var(--c-bg);
  font-size: var(--fs-overline); font-weight: 500; color: var(--c-text); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.svc-tab:hover { border-color: var(--color-brand); }
.svc-tab[aria-selected="true"] { background: var(--color-brand-tint); color: var(--color-brand); border-color: var(--color-brand); font-weight: 600; }
.svc-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; }
.svc-pane[hidden] { display: none; }
.svc-detail { padding: 48px 40px; }
.svc-title { font-size: var(--fs-h3); line-height: 1.3; margin-bottom: 12px; color: var(--c-text); }
.svc-text { color: var(--c-text-muted); margin-bottom: 8px; }
.svc-cta { background: var(--navy-900); color: var(--on-dark); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; position: relative; overflow: hidden; }
.svc-cta::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.svc-cta-title { font-size: var(--fs-h3); line-height: 1.3; color: var(--c-white); }
.svc-cta-text { color: var(--on-dark-muted); }
.svc-cta a:focus-visible { outline-color: var(--focus-ring-on-dark); }
@media (max-width: 1024px) {
  .svc-panel { grid-template-columns: minmax(0, 1fr); }
  .svc-tabs-col { border-right: 0; border-bottom: 1px solid var(--c-border); padding: 20px 16px; }
  .svc-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .svc-tab { width: auto; flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 768px) {
  .svc-panel-section { margin-top: 40px; }
  .svc-panel { border-radius: var(--r-card); }
  .svc-pane { grid-template-columns: 1fr; }
  .svc-detail, .svc-cta { padding: 28px 24px; }
}

/* ── Home: "Why Singha Tax" bento ── */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bento-card { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 32px; box-shadow: 0 10px 40px rgba(10, 30, 63, 0.06); }
.bento-wide { grid-column: span 2; }
.bento-has-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.bento-photo { width: 100%; height: 100%; min-height: 200px; object-fit: cover; border-radius: 20px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .bento-has-photo { grid-template-columns: 1fr; }
}

/* ── Home: photo tiles ── */
.tiles-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.pill-eyebrow { display: inline-block; padding: 4px 14px; border-radius: var(--r-full); background: var(--teal-tint); color: var(--teal-ink); font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 12px; }
.photo-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.photo-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; background: var(--navy-900); box-shadow: 0 10px 40px rgba(10, 30, 63, 0.1); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 30, 63, 0.9) 0%, rgba(10, 30, 63, 0.35) 45%, transparent 70%); }
.photo-tile span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: var(--c-white); font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile:focus-visible { outline-offset: 3px; }
@media (max-width: 900px) {
  .photo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-tile:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}

/* ── Newsletter band (home and Blog) ── */
.newsletter-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--navy-900); color: var(--on-dark); border-radius: var(--r-band); padding: 56px; position: relative; overflow: hidden; }
.newsletter-band::before { content: ''; position: absolute; width: 320px; height: 320px; left: -140px; bottom: -180px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.newsletter-title { font-size: var(--fs-h3); line-height: 1.3; color: var(--c-white); margin-bottom: 12px; }
.newsletter-copy p { color: var(--on-dark-muted); }
.newsletter-label { display: block; font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-white); margin-bottom: 10px; }
.newsletter-row { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-row .form-input { flex: 1 1 220px; background: var(--c-white); }
.newsletter-msg:empty { display: none; }
.newsletter-msg { margin-top: 12px; font-weight: 600; color: var(--mint-200); }
.newsletter-band a:focus-visible, .newsletter-band button:focus-visible, .newsletter-band input:focus-visible { outline-color: var(--focus-ring-on-dark); }
@media (max-width: 768px) { .newsletter-band { grid-template-columns: 1fr; padding: 32px 24px; border-radius: var(--r-card); } }
.hero-video .hero-content { padding-bottom: 80px; }
@media (max-width: 768px) { .hero-video .hero-content { padding-bottom: 72px; } }
.nav-link { white-space: nowrap; }
.svc-panel-section { margin-bottom: 48px; }
/* The header row is full with the dropdown arrows: Install app stays in the phone menu only. */
.nav-right .pwa-install { display: none; }
.nav-item > .nav-link::after { margin-left: 5px; }

/* ── Services page: the four service areas as a bento (wide/narrow, then narrow/wide with a photo) ── */
.svc-card { display: flex; flex-direction: column; gap: 28px; }
.svc-card-body { flex: 1; }
.svc-card-promise { display: flex; gap: 16px; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--c-border); }
.svc-card-promise .card-icon { flex-shrink: 0; margin: 0; }
.svc-card-promise h3 { font-size: var(--fs-h4); line-height: 1.4; color: var(--c-text); }
.svc-card-promise p { color: var(--c-text-muted); margin-top: 4px; }
.svc-card-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); column-gap: 32px; }
.svc-card-photo .svc-card-body { grid-column: 1; grid-row: 1; }
.svc-card-photo .svc-card-promise { grid-column: 1; grid-row: 2; }
/* contain: size keeps the portrait photo from setting the row height; it fills whatever the copy needs. */
.svc-card-img { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 20px; contain: size; }
@media (max-width: 900px) {
  .svc-card-photo { display: flex; }
  .svc-card-img { order: 2; height: auto; min-height: 0; aspect-ratio: 16 / 9; contain: none; }
  .svc-card-photo .svc-card-promise { order: 3; }
}
@media (max-width: 480px) { .svc-card-promise { flex-direction: column; gap: 12px; } }

/* ── Home: header over the full-screen video until the page scrolls (app.js adds .scrolled after 20px) or the phone menu opens.
   The logo sits on a white tile (brand rule: no recolouring, no low-contrast ground). Browsers without :has() keep the white header. ── */
.header-on-hero .nav-logo { background: var(--c-white); border-radius: 12px; padding: 6px 12px; }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) { background: transparent; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .nav-links > .nav-link,
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .nav-item > .nav-link { color: var(--c-white); }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .nav-links > .nav-link:hover,
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .nav-item > .nav-link:hover { background: rgba(255, 255, 255, 0.12); color: var(--c-white); }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .nav-links .nav-link.active { background: transparent; box-shadow: inset 0 -2px 0 var(--mint-200); }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .btn-outline { border-color: rgba(255, 255, 255, 0.7); color: var(--c-white); }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .btn-primary { background: var(--c-white); color: var(--navy-900); box-shadow: none; }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) .hamburger span { background: var(--c-white); }
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) a:focus-visible,
.header-on-hero:not(.scrolled):not(:has(.hamburger.open)) button:focus-visible { outline-color: var(--focus-ring-on-dark); }
