/* ==========================================================================
   Maa Gayatri Accounts & Taxation Services LLP — Premium Design System v9
   Direction: luxury advisory firm — deep navy, charcoal & warm metallic gold
   on a warm ivory ground. Motif: the "gold ledger rule" — a thin gold line
   used sitewide as the one recurring structural / signature device.
   ========================================================================== */

:root {
  /* ---- Color: premium navy / charcoal / gold / ivory system ---- */
  --ink: #0E1B2C;            /* deep navy-charcoal — headings, dark bg */
  --ink-soft: #2B3A4A;       /* softer navy — secondary text */
  --blue: #A9813F;           /* warm metallic gold — primary accent */
  --blue-deep: #83661F;      /* deep gold — hover / emphasis */
  --gold-pale: #E7D9B8;      /* pale gold — on-dark accents */
  --olive: #2E6F53;          /* deep advisory green — WhatsApp / secondary CTA */
  --olive-deep: #1F5039;     /* darker green hover */
  --paper: #FAF8F3;          /* warm ivory ground */
  --paper-alt: #F1EBDC;      /* warm ivory-alt for banded sections */
  --white: #FFFFFF;
  --slate: #5B6472;          /* body copy grey */
  --slate-light: #8891A0;
  --hairline: #E7E1D2;
  --hairline-strong: #D8CEB3;
  --navy-deep: #081221;      /* darkest navy for gradients/overlays */

  /* ---- Type ---- */
  --font-head: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* ---- Scale ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.6vw, 2.7rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 4.2rem);

  --measure: 68ch;
  --container: 1200px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--step-2); font-weight: 600; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1.1em; max-width: var(--measure); color: var(--ink-soft); }
p.lede { font-size: var(--step-1); color: var(--slate); font-weight: 400; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue); }

img { max-width: 100%; display: block; height: auto; }

ul, ol { padding-left: 1.3em; color: var(--ink-soft); }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 8vw, 116px) 0;
}
.section-alt { background: var(--paper-alt); }
.section-ink { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.section-ink::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 680px 460px at 88% -10%, rgba(169,129,63,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 560px 420px at 4% 110%, rgba(46,111,83,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.section-ink .container { position: relative; z-index: 1; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink p { color: #C3CCD8; }

/* ---- The gold ledger rule: the site's one recurring signature device ---- */
.ledger-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--gold-pale) 100%);
  width: 64px;
  margin: 0 0 24px;
  position: relative;
}
.ledger-rule.center { margin-inline: auto; }
.ledger-rule.long { width: 120px; }
.ledger-rule--ticks {
  height: 2px;
  background: var(--blue);
  width: 100%;
  margin: 10px 0 0;
  background-image: repeating-linear-gradient(
    90deg, var(--olive) 0, var(--olive) 1px, transparent 1px, transparent 48px
  );
  background-size: 100% 8px;
  background-position: 0 -3px;
  background-repeat: repeat-x;
}
.eyebrow {
  font-size: var(--step--1);
  color: var(--blue-deep);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.015em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white); box-shadow: 0 10px 26px rgba(169, 129, 63, 0.28); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(169, 129, 63, 0.36); }
.btn-whatsapp { background: var(--olive); color: var(--white); box-shadow: 0 10px 24px rgba(46, 111, 83, 0.28); }
.btn-whatsapp:hover { background: var(--olive-deep); color: var(--white); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(46, 111, 83, 0.34); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--gold-pale); }
.btn-outline-ink { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-outline-ink:hover { background: var(--paper-alt); border-color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(14, 27, 44, 0.09); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 72px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.brand-text strong { display: block; font-weight: 600; }
.brand-text span { font-family: var(--font-body); font-size: 0.7rem; color: var(--slate); letter-spacing: 0.03em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--blue-deep); }
.main-nav a[aria-current="page"] { color: var(--blue-deep); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue);
}
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 4px; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 18px; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink);
  border-radius: var(--radius);
}
.nav-toggle:hover { background: var(--paper-alt); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    180deg, rgba(169,129,63,0.05) 0, rgba(169,129,63,0.05) 1px, transparent 1px, transparent 64px
  );
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

/* ---- Dark hero variant — full-bleed premium photographic hero ---- */
.hero-dark {
  background:
    linear-gradient(100deg, rgba(8,18,33,0.94) 0%, rgba(8,18,33,0.86) 42%, rgba(8,18,33,0.62) 100%),
    url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=1800&auto=format&fit=crop') center 32% / cover no-repeat;
  border-bottom: none;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-dark::before {
  z-index: 1;
  background-image:
    radial-gradient(ellipse 760px 520px at 92% -15%, rgba(169,129,63,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 620px 460px at 0% 115%, rgba(46,111,83,0.24) 0%, transparent 60%);
}
.hero-eyebrow-dash {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-pale); margin: 0 0 20px;
}
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(169,129,63,0.16); border: 1px solid rgba(231,217,184,0.4);
  color: var(--gold-pale); font-size: 0.85rem; font-weight: 600;
  padding: 9px 18px; border-radius: 2px; margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.hero-dark h1 { color: var(--white); max-width: 15ch; font-weight: 600; }
.hero-highlight { color: var(--gold-pale); font-style: italic; }
.hero-lede-dark { color: #CBD2DC; max-width: 46ch; }
.hero-welcome-dark {
  font-family: var(--font-head); font-style: italic;
  color: var(--gold-pale); font-size: 1.05rem; margin: 0 0 12px; letter-spacing: 0.01em;
}
.hero-team-strip {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px;
}
.hero-team-strip .avatars { display: flex; }
.hero-team-strip .avatars img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--ink); margin-left: -12px;
}
.hero-team-strip .avatars img:first-child { margin-left: 0; }
.hero-team-strip a {
  font-size: 0.83rem; font-weight: 600; color: var(--white); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.hero-team-strip a:hover { color: var(--gold-pale); border-color: var(--gold-pale); }
.team-strip-light .avatars img { border-color: var(--paper); }
.team-strip-light a { color: var(--blue-deep); border-color: var(--hairline-strong); }
.team-strip-light a:hover { color: var(--blue); border-color: var(--blue); }
.hero-team-strip.center { justify-content: center; margin-inline: auto; }
.hero-dark .btn-primary { box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.hero-disclaimer {
  font-size: 0.8rem; color: #8C97A6; margin: 28px 0 0;
}
.hero-dark .hero-panel {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 34px 80px rgba(0,0,0,0.42);
  border: none;
}

/* ---- Centered hero variant ---- */
.hero-centered::before {
  background-image:
    radial-gradient(ellipse 700px 420px at 50% -10%, rgba(169,129,63,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 600px 380px at 85% 100%, rgba(46,111,83,0.10) 0%, transparent 60%),
    repeating-linear-gradient(180deg, rgba(169,129,63,0.05) 0, rgba(169,129,63,0.05) 1px, transparent 1px, transparent 64px);
}
.hero-center-content { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-big-logo { height: clamp(72px, 9vw, 108px); width: auto; margin: 0 auto 22px; filter: drop-shadow(0 10px 24px rgba(14,27,44,0.12)); }
.hero-welcome { font-family: var(--font-head); font-style: italic; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--blue-deep); margin: 0 0 16px; }
.hero-centered h1 { max-width: none; }
.hero-centered .ledger-rule.center { margin-top: 4px; margin-bottom: 22px; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero-eyebrow-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-eyebrow-row .eyebrow { margin: 0; }
.hero-chip { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 600; color: var(--olive-deep); background: rgba(46,111,83,0.1); padding: 4px 11px; border-radius: 20px; letter-spacing: 0.02em; }
.hero h1 { max-width: 12.5em; }
.hero .lede { max-width: 46ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--hairline-strong); }
.hero-badges span { font-size: var(--step--1); color: var(--slate); font-weight: 500; }
.hero-panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 26px 64px rgba(14, 27, 44, 0.08);
  margin-top: clamp(8px, 7vw, 76px);
}
.hero-panel .ledger-rule--ticks { margin-bottom: 20px; }
.hero-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.hero-panel dt { font-size: var(--step--1); color: var(--slate); align-self: center; padding: 13px 0; border-top: 1px solid var(--hairline); }
.hero-panel dt:first-of-type { border-top: none; padding-top: 4px; }
.hero-panel dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; padding: 13px 0; border-top: 1px solid var(--hairline); color: var(--ink); }
.hero-panel dd:first-of-type { border-top: none; padding-top: 4px; }

/* ---- Page header (interior pages) — now a full photographic banner ---- */
.page-header {
  position: relative;
  background:
    linear-gradient(100deg, rgba(8,18,33,0.93) 0%, rgba(8,18,33,0.88) 55%, rgba(8,18,33,0.68) 100%),
    url('https://images.unsplash.com/photo-1431540015161-0bf868a2d407?q=80&w=1800&auto=format&fit=crop') center 40% / cover no-repeat;
  color: var(--paper);
  padding: 78px 0 68px;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 640px 420px at 88% -10%, rgba(169,129,63,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 520px 380px at 8% 120%, rgba(46,111,83,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  top: 50%; right: -60px;
  transform: translateY(-50%);
  width: 380px; height: 380px;
  background: url('/assets/images/logo-icon-white.webp') center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--gold-pale); }
.page-header h1 { color: var(--white); max-width: 22ch; }
.page-header p.lede { color: #C9D1DA; max-width: 58ch; }
.breadcrumbs { font-size: var(--step--1); color: #9AA6B3; margin-bottom: 16px; }
.breadcrumbs a { color: #C9D1DA; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-current] { color: var(--white); }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.service-card-icon {
  width: 46px; height: 46px; border-radius: 2px;
  background: rgba(169, 129, 63, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card-icon svg { width: 22px; height: 22px; stroke: var(--blue-deep); }
.service-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid transparent;
  padding: 30px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-top-color: var(--blue);
  box-shadow: 0 18px 40px rgba(14, 27, 44, 0.09);
  transform: translateY(-4px);
}
.service-card .card-icon {
  width: 46px; height: 46px; border-radius: 2px;
  background: var(--paper-alt); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--blue-deep);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.service-card .card-icon svg { width: 22px; height: 22px; }
.service-card:hover .card-icon { background: var(--ink); color: var(--gold-pale); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { font-size: var(--step--1); color: var(--slate); margin-bottom: 16px; }
.service-card .card-link {
  font-size: var(--step--1); font-weight: 600; color: var(--blue-deep);
  display: inline-flex; align-items: center; transition: gap 0.15s ease;
}

.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; margin-top: 34px; }
.reason-item { padding-top: 16px; border-top: 2px solid var(--blue); }
.reason-item .reason-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(46,111,83,0.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--olive-deep);
}
.reason-item .reason-icon svg { width: 20px; height: 20px; }
.reason-item h4 { font-size: 1.04rem; margin-bottom: 8px; }
.reason-item p { font-size: var(--step--1); color: var(--slate); margin-bottom: 0; }

/* ---- Stats band ---- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.stat-item { background: var(--white); padding: 34px 22px; text-align: center; }
.stat-item .stat-icon { width: 26px; height: 26px; stroke: var(--blue); margin: 0 auto 14px; display: block; }
.stat-item .stat-number {
  font-family: var(--font-head); font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem);
  color: var(--ink); font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-label { font-size: var(--step--1); color: var(--slate); margin-top: 10px; letter-spacing: 0.01em; }
.stats-band.on-dark { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.stats-band.on-dark .stat-item { background: transparent; }
.stats-band.on-dark .stat-item .stat-number { color: var(--white); }
.stats-band.on-dark .stat-item .stat-label { color: #B7C0CC; }
.stats-band.on-dark .stat-item .stat-icon { stroke: var(--gold-pale); }

/* ---- Testimonials ---- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover { box-shadow: 0 20px 46px rgba(14, 27, 44, 0.1); transform: translateY(-4px); }
.testimonial-card::before {
  content: "\201C"; position: absolute; top: -20px; right: 8px;
  font-family: var(--font-head); font-size: 6.8rem; line-height: 1;
  color: var(--paper-alt); z-index: 0; pointer-events: none;
}
.testimonial-card p.quote {
  font-family: var(--font-head); font-style: italic; font-size: 1.03rem; line-height: 1.58;
  color: var(--ink-soft); flex-grow: 1; margin: 0 0 24px; position: relative; z-index: 1;
}
.testimonial-attribution { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 18px; position: relative; z-index: 1; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--olive) 100%);
  color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-attribution .name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.testimonial-attribution .role { font-size: 0.8rem; color: var(--slate); }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 34px; }
.team-grid.consultants { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.team-grid.management { grid-template-columns: repeat(3, 1fr); margin-top: 40px; max-width: none; }
.team-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.team-card:hover { box-shadow: 0 20px 46px rgba(14, 27, 44, 0.1); transform: translateY(-4px); }
.team-grid { max-width: 720px; margin-left: auto; margin-right: auto; }
.team-photo { height: 340px; overflow: hidden; background: var(--paper-alt); position: relative; }
.team-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -50px 60px -30px rgba(14,27,44,0.25); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-body { padding: 22px 24px 26px; border-top: 2px solid var(--blue); }
.team-body .role { color: var(--blue-deep); font-weight: 600; font-size: var(--step--1); margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.team-body h3 { font-size: 1.22rem; margin-bottom: 4px; }
.team-body .qualification { font-size: var(--step--1); color: var(--slate); margin: 0 0 10px; }
.team-body .qualification + .qualification { margin-top: -6px; }
.team-body .expertise-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.team-body .expertise-tags span { font-size: 0.72rem; font-weight: 500; color: var(--blue-deep); background: var(--paper-alt); padding: 4px 9px; border-radius: 20px; }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; margin-top: 34px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  padding: 20px 0; cursor: pointer; font-weight: 600; font-family: var(--font-head);
  font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; transition: color 0.15s ease;
}
.faq-item summary:hover { color: var(--blue-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-body); font-size: 1.4rem; color: var(--blue); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding-bottom: 22px; color: var(--slate); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---- Final CTA band (solid) ---- */
.cta-band { background: var(--ink); color: var(--white); text-align: left; position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 640px 420px at 90% 0%, rgba(169,129,63,0.24) 0%, transparent 60%),
    radial-gradient(ellipse 520px 380px at 0% 100%, rgba(46,111,83,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C9D1DA; }
.cta-band .btn-row { margin-top: 28px; }

/* ---- Image-led CTA band ---- */
.cta-image-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cta-image-band .cta-image {
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1400&auto=format&fit=crop') center / cover no-repeat;
  min-height: 280px;
}
.cta-image-band .cta-copy {
  background: var(--ink);
  color: var(--white);
  padding: clamp(40px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cta-image-band .cta-copy::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 520px 380px at 100% 0%, rgba(169,129,63,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.cta-image-band .cta-copy > * { position: relative; z-index: 1; }
.cta-image-band .eyebrow { color: var(--gold-pale); }
.cta-image-band h2 { color: var(--white); max-width: 16ch; }
.cta-image-band p { color: #C9D1DA; max-width: 44ch; }

/* ---- Editorial split (image + copy) block ---- */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-block.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(14,27,44,0.14); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.split-media-badge {
  position: absolute; left: 24px; bottom: 24px;
  background: rgba(8,18,33,0.88); color: var(--white);
  padding: 16px 22px; border-left: 3px solid var(--blue);
  backdrop-filter: blur(2px);
}
.split-media-badge .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; color: var(--gold-pale); line-height: 1; }
.split-media-badge .label { font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: #C9D1DA; margin-top: 4px; }

/* ---- Editorial services (image-led, numbered) ---- */
.editorial-services { margin-top: 46px; display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.editorial-service-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--white);
  padding: 34px 32px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}
.editorial-service-row:hover { background: var(--paper-alt); }
.editorial-service-row .es-num { font-family: var(--font-head); font-size: 2.2rem; color: var(--hairline-strong); font-weight: 600; transition: color 0.2s ease; }
.editorial-service-row:hover .es-num { color: var(--blue); }
.editorial-service-row h3 { font-size: 1.22rem; margin-bottom: 8px; }
.editorial-service-row p { font-size: var(--step--1); color: var(--slate); margin-bottom: 10px; }
.editorial-service-row .card-link { font-size: var(--step--1); font-weight: 600; color: var(--blue-deep); }
.editorial-service-row .es-media { height: 100%; min-height: 110px; border-radius: var(--radius); overflow: hidden; }
.editorial-service-row .es-media img { width: 100%; height: 100%; object-fit: cover; min-height: 110px; }

/* ---- Location section ---- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 32px; }
.location-list { list-style: none; padding: 0; }
.location-list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--hairline); position: relative; color: var(--ink-soft); }
.location-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; background: var(--blue); }
.map-embed { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-alt); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---- Forms ---- */
.enquiry-form { background: var(--white); border: 1px solid var(--hairline); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 36px; box-shadow: 0 24px 56px rgba(14, 27, 44, 0.07); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--paper); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--slate-light); margin-top: 4px; }
.form-status { margin-top: 14px; font-size: var(--step--1); font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--olive-deep); }
.form-status.err { color: #B5442A; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #C3CCD8; padding: 60px 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--gold-pale) 50%, var(--blue) 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 1; }
.footer-brand .logo-chip { display: inline-flex; align-items: center; justify-content: center; background: var(--white); padding: 10px 16px; border-radius: 2px; margin-bottom: 18px; }
.footer-brand .logo-chip img { height: 48px; width: auto; display: block; }
.footer-brand p { color: #97A1AE; font-size: var(--step--1); max-width: 34ch; }
.footer-col h5 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-pale); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C3CCD8; text-decoration: none; font-size: var(--step--1); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.8rem; color: #7B8593; position: relative; z-index: 1; }
.footer-bottom a { color: #97A1AE; }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: var(--olive); color: var(--white); text-decoration: none;
  padding: 13px 18px; border-radius: 40px; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.wa-float:hover { background: var(--olive-deep); color: var(--white); }
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- Content page layout (service pages) ---- */
.content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.content-main h2 { margin-top: 2em; }
.content-main h2:first-child { margin-top: 0; }
.sidebar-card { background: var(--white); border: 1px solid var(--hairline); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.sidebar-card h4 { font-size: 1rem; margin-bottom: 14px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.sidebar-card li { border-bottom: 1px solid var(--hairline); padding: 10px 0; margin: 0; }
.sidebar-card a { text-decoration: none; font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); }
.sidebar-card a:hover { color: var(--blue-deep); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border: 2px solid var(--blue); border-radius: 1px; }

.process-steps { counter-reset: step; list-style: none; padding: 0; margin-top: 28px; }
.process-steps li { counter-increment: step; position: relative; padding: 0 0 28px 54px; border-left: 2px solid var(--hairline); margin-left: 14px; }
.process-steps li:last-child { border-color: transparent; padding-bottom: 0; }
.process-steps li::before {
  content: counter(step); position: absolute; left: -16px; top: -2px;
  width: 32px; height: 32px; background: var(--ink); color: var(--gold-pale);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; border: 2px solid var(--blue);
}
.process-steps h4 { margin-bottom: 4px; font-size: 1.02rem; }
.process-steps p { margin-bottom: 0; font-size: var(--step--1); color: var(--slate); }

/* ---- Scroll-reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 10px; }
.section-head.wide { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 300; transition: top 0.15s ease; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
}

@media (max-width: 1040px) {
  .main-nav {
    display: flex; position: fixed; top: var(--header-h, 72px); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 8px 24px 32px; gap: 0; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.25s ease; z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 17px 2px; border-bottom: 1px solid var(--hairline); font-size: 1.05rem; font-family: var(--font-head); white-space: normal; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--blue-deep); }
  .nav-cta { flex-direction: row; gap: 12px; margin: 22px 0 0; width: 100%; }
  .nav-cta .btn { flex: 1; justify-content: center; }
}

@media (max-width: 460px) { .nav-cta { flex-direction: column; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid.management { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .location-grid { grid-template-columns: 1fr; }
  .split-block { grid-template-columns: 1fr; gap: 32px; }
  .split-block.reverse .split-media { order: 0; }
  .cta-image-band { grid-template-columns: 1fr; }
  .cta-image-band .cta-image { min-height: 220px; }
  .editorial-service-row { grid-template-columns: 60px 1fr; }
  .editorial-service-row .es-media { display: none; }
}

@media (max-width: 760px) {
  .team-grid, .team-grid.consultants, .team-grid.management, .card-grid, .reason-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: var(--step-3); }
  .hero-panel { padding: 26px; }
  .wa-float { padding: 12px 16px; font-size: 0.82rem; right: 16px; bottom: 16px; }
  .hero-dark { min-height: 0; }
  .editorial-service-row { grid-template-columns: 1fr; gap: 10px; padding: 26px 24px; }
  .editorial-service-row .es-num { font-size: 1.6rem; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .btn { padding: 12px 20px; font-size: 0.85rem; }
}
