/* ==========================================================================
   Yeswanth K P & Co — Chartered Accountants
   Shared stylesheet.

   :root holds the site's light theme — burgundy accent on a white/warm-gray
   neutral system. Used on every page; burgundy is deliberately reserved for
   text, buttons, borders, and small accent tags rather than large fills.
   Everything past the token block is the "Ledger" visual system: a running
   marginal rule + tick down every section (the account-book spine), and a
   Register (not a card grid) for the service catalogue — both extend the
   Ledger Timeline motif from the History page across the whole site instead
   of confining it to one page.
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAF8;
  --surface: #FFFFFF;

  /* Typography */
  --heading: #1F1F1F;
  --body: #5A5650;
  --muted: #8A8378;
  --disabled: #B8B1A7;

  /* Brand — burgundy accent. Use only for: links, primary buttons, active
     nav state, eyebrow labels, footer accent links. Never as a background
     fill/hero background. */
  --primary: #5B1F2A;
  --primary-hover: #491821;
  --primary-active: #3C131B;
  --primary-tint: #F7F2F3; /* very light burgundy/mauve wash — used for nav/footer backgrounds, paired with dark text */
  --primary-tint-border: #EADADD;

  /* Borders — 0.5px hairline throughout, never heavier */
  --border: #E5E2DC;
  --divider: #F0EDE9;
  --input-border: #E5E2DC;

  /* Interactive */
  --btn-primary-bg: #5B1F2A;
  --btn-primary-hover: #491821;
  --btn-primary-text: #FFFFFF;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-border: #E5E2DC;
  --btn-secondary-text: #1F1F1F;
  --btn-secondary-hover: #FAFAF8;

  /* Links */
  --link: #5B1F2A;
  --link-hover: #491821;

  /* Navigation */
  --nav-bg: #FFFFFF;
  --nav-text: #5A5650;
  --nav-active: #1F1F1F;
  --nav-underline: #5B1F2A;

  /* Forms */
  --input-bg: #FFFFFF;
  --input-text: #1F1F1F;
  --placeholder: #8A8378;
  --focus-ring: #5B1F2A;

  /* Cards */
  --card-bg: #FFFFFF;
  --card-border: #E5E2DC;

  /* Tables */
  --table-header-bg: #FAFAF8;
  --row-border: #E5E2DC;
  --row-hover: #FCFBFA;

  /* Status */
  --success: #2F6B4A;
  --warning: #A46C12;
  --error: #A63A3A;
  --info: #2F5F8B;

  /* Fonts */
  --font-heading: "Newsreader", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Derived — layout rhythm */
  --header-h: 92px;
  --spine-gap: 44px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Anchor targets must clear the sticky header — fixes links landing
   underneath the nav bar (e.g. Services page jump targets). */
[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body);
  background: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.25rem, 3.6vw + 1rem, 3.75rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 1.6vw + 1.1rem, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: var(--link);
  text-decoration: none;
}
a:hover { color: var(--link-hover); text-decoration: underline; }

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Visible keyboard focus states everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

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

section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}
.section-head.text-wide { max-width: 72ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1em;
}
@media (max-width: 620px) {
  .eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--primary);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 62ch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, letter-spacing 180ms ease;
}
.btn:hover { text-decoration: none; letter-spacing: 0.02em; }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.btn-primary:hover { background: var(--btn-primary-hover); color: var(--btn-primary-text); }
.btn-primary:active { background: var(--primary-active); }

.btn-secondary {
  background: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-border);
  color: var(--btn-secondary-text);
}
.btn-secondary:hover { background: var(--btn-secondary-hover); color: var(--btn-secondary-text); border-color: var(--primary); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.75em;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  background: rgba(247,242,243,0.75);
  border-bottom: 1px solid var(--primary-tint-border);
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: var(--heading);
  min-width: 0;
  overflow: hidden;
}
.brand:hover { color: var(--heading); text-decoration: none; }
.brand .brand-logo {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 480px) {
  .brand-tag { display: none; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 1.15rem; }
  .brand .brand-logo { height: 48px; }
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav-panel {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Direct-child combinator — must not also match the nested .dropdown <ul>,
   which needs to stay a plain stacked list, not a horizontal flex row. */
.panel-inner > ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--nav-text);
  font-size: 0.95rem;
  padding: 8px 1px;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}
.main-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--nav-underline);
  text-decoration: none;
}
.main-nav a[aria-current="page"],
.main-nav .has-dropdown.is-active > a {
  color: var(--primary);
  border-bottom-color: var(--nav-underline);
  text-decoration: none;
}

.has-dropdown {
  position: relative;
}
.dropdown {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 200px;
  box-shadow: 0 10px 28px rgba(91,31,42,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 600;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 3px;
  border-bottom: none;
  color: var(--nav-text);
  font-size: 0.92rem;
}
.dropdown a:hover,
.dropdown a[aria-current="page"] {
  background: var(--bg-secondary);
  color: var(--primary);
  text-decoration: none;
}

.header-call {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}
.header-call:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--heading);
  margin: 4px 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-tint);
    border-bottom: 1px solid var(--primary-tint-border);
  }

  /* Animated open/close via max-height — replaces the old instant
     display:none/block toggle, which is the "no smoothness" the mobile
     menu used to have. (A grid-template-rows 0fr/1fr collapse was tried
     first, but since this panel's height is intrinsic/auto, "fr" tracks
     resolve against max-content instead of 0 — it never actually
     collapsed. max-height is the reliable cross-browser approach here.) */
  .main-nav-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
  }
  .main-nav.open .main-nav-panel {
    max-height: 70vh;
    overflow-y: auto;
  }

  .panel-inner {
    padding: 8px 24px 28px;
  }

  .panel-inner > ul {
    flex-direction: column;
    gap: 2px;
  }
  .main-nav a { display: block; padding: 11px 2px; border-bottom-color: var(--primary-tint-border); }

  /* Closed by default — a tap on the parent link toggles .is-open (see
     js/main.js). Tinted/left-accented instead of fully transparent so the
     expanded state reads as a distinct block, not a flat undifferentiated
     list. */
  .has-dropdown .dropdown {
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary-tint-border);
    background: var(--bg-secondary);
    border-radius: 4px;
    padding: 0 0 0 14px;
    transition: max-height 240ms ease, opacity 200ms ease;
  }
  .has-dropdown.is-open .dropdown {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    margin: 4px 0 8px 8px;
    padding: 6px 0 6px 14px;
  }
  .dropdown a,
  .dropdown a:hover,
  .dropdown a[aria-current="page"] {
    background: transparent;
  }

  .header-call { margin-top: 14px; display: inline-block; }
}

@media (max-width: 480px) {
  /* The fixed .mobile-call-bar sits below this breakpoint too — give the
     open nav panel room to scroll past it instead of letting the bar
     render over the last item(s). */
  .main-nav.open .main-nav-panel { padding-bottom: 64px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 64px 0 56px;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 620ms ease forwards;
  overflow: hidden;
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { opacity: 1; transform: none; animation: none; }
}

.hero-inner { position: relative; max-width: 46rem; }

/* ==========================================================================
   Homepage full-bleed photo hero
   The stock photograph fills the entire hero band edge-to-edge; the firm's
   branding sits on top of it, left-aligned, over a burgundy-tinted scrim
   that darkens toward the text side for legibility and fades out toward
   the right so the photograph still reads clearly.
   ========================================================================== */

.hero-photo {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(15%) sepia(8%) contrast(1.03);
}
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23,8,14,0.92) 0%, rgba(23,8,14,0.72) 38%, rgba(23,8,14,0.32) 65%, rgba(23,8,14,0.08) 100%);
}
.hero-photo .container {
  position: relative;
  z-index: 1;
}
.hero-photo .hero-inner {
  max-width: 36rem;
}
.hero-photo .eyebrow {
  color: #E7C88C;
}
.hero-photo .eyebrow::before {
  background: #E7C88C;
}
.hero-photo h1 {
  color: #FBF6F0;
}
.hero.hero-photo .subhead {
  color: #E6A9BE;
}
.hero-photo .lede {
  color: rgba(251,246,240,0.86);
}
.hero-photo .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #FBF6F0;
}
.hero-photo .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}
@media (max-width: 720px) {
  .hero-photo { min-height: 72vh; padding: 90px 0; }
  .hero-photo-bg::after {
    background: linear-gradient(180deg, rgba(23,8,14,0.55) 0%, rgba(23,8,14,0.88) 55%, rgba(23,8,14,0.94) 100%);
  }
}

/* ==========================================================================
   Compact service-page hero (the 6 service detail pages)
   Light burgundy-tinted band — a title band, not a full dark section: same
   mauve wash already used for the nav/footer (--primary-tint), oversized
   serif headline, a breadcrumb trail, and a small monogram badge above it.
   Layered on top of the base .hero rules above (position/overflow/entrance-
   animation) rather than replacing them.
   ========================================================================== */

.hero-glass {
  background: var(--primary-tint);
  border-bottom: 1px solid var(--primary-tint-border);
}

.hero-glass .hero-grid {
  grid-template-columns: 1fr;
}
.hero-glass .hero-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-glass {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--primary-tint-border);
  color: var(--primary);
  margin-bottom: 1.5em;
}

.hero-glass h1 {
  color: var(--heading);
}
.hero-glass .hero-rule {
  width: 120px;
  height: 1px;
  margin: 0.9em auto 1.1em;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border: none;
}
.hero.hero-glass .subhead,
.hero.hero-glass .lede {
  color: var(--body);
}

/* Orchestrated entrance stagger — breadcrumb, badge, headline, subtext */
.hero-glass .breadcrumb-glass,
.hero-glass .hero-badge-glass,
.hero-glass h1,
.hero-glass .hero-rule,
.hero-glass .subhead,
.hero-glass .lede {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 560ms ease forwards;
}
.hero-glass .breadcrumb-glass  { animation-delay: 0ms; }
.hero-glass .hero-badge-glass { animation-delay: 60ms; }
.hero-glass h1               { animation-delay: 130ms; }
.hero-glass .hero-rule        { animation-delay: 190ms; }
.hero-glass .subhead          { animation-delay: 220ms; }
.hero-glass .lede             { animation-delay: 250ms; }
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glass .breadcrumb-glass,
  .hero-glass .hero-badge-glass,
  .hero-glass h1,
  .hero-glass .hero-rule,
  .hero-glass .subhead,
  .hero-glass .lede {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ==========================================================================
   Compact hero size modifier (the 6 service detail pages)
   Layers on top of .hero-glass rather than forking a new hero system.
   Padding-based sizing (not a literal min-height:30vh, which breaks on both
   very short and very tall viewports) — reads as "compact" by scaling with
   content and viewport width instead. No photo, no btn-row: conversion now
   happens at the CTA band below the sub-service grid, not in the hero.
   ========================================================================== */

.hero-glass--compact {
  padding: clamp(40px, 7vh, 72px) 0 clamp(32px, 5vh, 56px);
}
.hero-glass--compact .hero-inner {
  max-width: 40rem;
}
.hero-glass--compact h1 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.75rem);
  line-height: 1.15;
}
.hero-glass--compact .lede {
  font-size: 1rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-glass--compact .breadcrumb-glass {
  margin-bottom: 1.1em;
}
.hero-glass--compact .hero-badge-glass {
  padding: 5px 14px;
  font-size: 0.7rem;
  margin-bottom: 0.9em;
}

/* Breadcrumb — "Home / Services / [Category]" as a small pill trail */
.breadcrumb-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--primary-tint-border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}
.breadcrumb-glass a { color: var(--body); }
.breadcrumb-glass a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb-glass [aria-current="page"] { color: var(--primary); }
.breadcrumb-sep { color: var(--muted); opacity: 0.6; }

/* Hero split layout — text + a single quiet photograph, used on Home */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero-grid .hero-inner { max-width: none; }
}

/* Photography treatment — a single burgundy-tinted duotone wash unifies
   photos pulled from different sources into one quiet, consistent system,
   rather than reading as assorted stock images. */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(35%) sepia(8%) contrast(1.02);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(91,31,42,0.28), rgba(31,31,31,0.12) 60%, transparent 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
}

.hero-media {
  aspect-ratio: 4 / 3;
  max-height: 62vh;
}
@media (max-width: 959px) {
  .hero-media { aspect-ratio: 16 / 9; max-height: 46vh; }
}

/* Smaller accent photo used alongside a text block within a section */
.section-media {
  aspect-ratio: 4 / 3;
}

.media-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .media-split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .media-split.media-left { grid-template-columns: 1fr 1fr; }
  .media-split.media-left .media-frame { order: -1; }
}

.hero h1 { margin-bottom: 0.3em; }
.hero .subhead {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 0.6em;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* Content is visible by default — JS opts IN to the hidden pre-reveal
   state (via the .has-js class set by an inline script in <head>) so that
   if JS is blocked, slow, or fails for any reason, every section is still
   fully visible rather than permanently stuck at opacity:0. */
.reveal {
  opacity: 1;
  transform: none;
}
html.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 550ms ease, transform 550ms ease;
}
html.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.has-js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   The Spine — a running ledger-margin rule down every content section,
   tying the whole site back to the account-book motif (not just History).
   Purely structural: one tick per section boundary, nothing implies a
   sequence/process that isn't real.
   ========================================================================== */

.spine-section {
  position: relative;
}

@media (min-width: 860px) {
  .spine-section {
    padding-left: var(--spine-gap);
  }
  .spine-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    bottom: 0;
    width: 1px;
    background: var(--divider);
  }
  .spine-section::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 0.35em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
  }
}

/* ==========================================================================
   Service cards — plain 3-column grid, hairline border, no shadow
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px 24px;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.card:hover {
  border-color: var(--primary);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(91,31,42,0.08);
}
.card-icon {
  width: 30px;
  height: 30px;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ==========================================================================
   Service detail pages
   ========================================================================== */

.cta-banner {
  background: var(--primary-tint);
  border-top: 1px solid var(--primary-tint-border);
  border-bottom: 1px solid var(--primary-tint-border);
  text-align: center;
}
.cta-banner h2 { margin-bottom: 0.4em; }
.cta-banner p { color: var(--body); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-banner .btn-row { justify-content: center; }

.card .eyebrow { margin-bottom: 0.75em; }
.card h3 { margin-bottom: 0.5em; font-size: 1.15rem; }
.card p { color: var(--body); margin-bottom: 0; }
.card p + p { margin-top: 0.75em; }
.card .card-link {
  display: inline-block;
  margin-top: 0.85em;
  font-size: 0.9rem;
  color: var(--primary);
}
.card:hover .card-link { text-decoration: underline; }

/* ==========================================================================
   Service-page section wrapper + cards
   .section-glass is now a soft burgundy-tinted gradient band (was flat
   bg-secondary) so the cards below have something worth floating over.
   .card-glass/.card-glass--sub get a restrained frosted-glass treatment —
   translucent + backdrop-blur — rather than the flat opaque card. Bento
   (mixed tile sizes) was considered and skipped here: these pages list
   7-16 roughly equal-weight entries, and forcing size variation onto a
   dense reference list reads as chaotic rather than premium. Bento stays
   reserved for the homepage's small, genuinely asymmetric stat section.
   ========================================================================== */

.section-glass {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--primary-tint) 100%);
  padding-top: 64px;
  padding-bottom: 64px;
}

.card-glass {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .card-glass {
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
  }
}
.card-glass:hover {
  border-color: var(--primary);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 20px rgba(91,31,42,0.08);
}
.card-glass .eyebrow.mono,
.card-glass .card-icon {
  color: var(--primary);
}
.card-glass h3 {
  color: var(--heading);
}
.card-glass p {
  color: var(--body);
}
.card-glass .card-link {
  color: var(--primary);
}

/* Sub-service grid card — lighter, denser: smaller padding, no icon or
   eyebrow monogram, just a name, a 1-2 line description, and an optional
   "Applicable to" tag. */
.card-glass--sub {
  padding: 22px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(31,31,31,0.04);
}
.card-glass--sub:hover {
  transform: translateY(-3px);
}
.card-glass--sub h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4em;
}
.card-glass--sub p {
  font-size: 0.9rem;
}
.card-glass--sub .register-code {
  display: block;
  margin-bottom: 10px;
}

.tag-glass {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85em;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.85em;
}
.tag-row .tag-glass {
  margin-top: 0;
}

/* ==========================================================================
   Register code — the small mono index numeral (01, 02...) used inside
   the sub-service cards on the 6 service-detail pages.
   ========================================================================== */

.register-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ==========================================================================
   Practice list (Home) — editorial alternative to the card grid: a plain
   vertical register with a large ghost numeral per row instead of six
   identical icon boxes. Reuses the spine-section marginal rule.
   ========================================================================== */

.practice-list {
  border-top: 1px solid var(--divider);
  margin-top: 8px;
}

.practice-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 32px 0;
  border-bottom: 1px solid var(--divider);
  align-items: start;
}
.practice-row:nth-child(odd) {
  background: var(--bg-secondary);
}
@media (min-width: 760px) {
  .practice-row {
    grid-template-columns: 96px 1fr 150px;
    align-items: center;
    gap: 32px;
  }
}

.practice-index {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.32;
}

.practice-row h3 { margin-bottom: 0.3em; }
.practice-row p { margin-bottom: 0; color: var(--body); max-width: 58ch; }
.practice-row .card-link {
  white-space: nowrap;
  font-size: 0.9rem;
}
@media (min-width: 760px) {
  .practice-row .card-link { justify-self: end; }
}

/* ==========================================================================
   Stat row (Home — trust section) — a small bento grid: mixed tile sizes
   with depth, instead of a flat row. Selective use of the "tile" language
   rather than a site-wide treatment.
   ========================================================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 620px) {
  .stat-row { grid-template-columns: 1fr; }
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(31,31,31,0.05);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.stat-item:hover {
  box-shadow: 0 8px 24px rgba(31,31,31,0.09);
  transform: translateY(-2px);
}
.stat-item.bento-lg {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.stat-item.bento-lg .stat-number { margin-bottom: 0; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.8vw + 1rem, 2.4rem);
  color: var(--primary);
  margin-bottom: 0.15em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTA contact row — phone / email / address at real-world-readable size */
.cta-contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--heading);
}
.cta-contact-row .contact-link { color: var(--heading); }
.cta-contact-row .contact-link:hover { color: var(--primary); }

/* ==========================================================================
   Process steps (Home — "How We Work"). Deliberately distinct from
   .ledger-timeline below: numbered circle badges (not ghost serif numerals),
   a static divider-color connector (not an animated SVG draw), horizontal
   on desktop / vertical on mobile. Ledger Timeline stays reserved for the
   real 1938→present history on about-legacy.html.
   ========================================================================== */

.process-steps {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
@media (min-width: 860px) {
  .process-steps { flex-direction: row; align-items: flex-start; }
}

.process-step {
  position: relative;
  padding: 0 0 40px 56px;
}
.process-step:last-child { padding-bottom: 0; }
@media (min-width: 860px) {
  .process-step {
    flex: 1;
    padding: 56px 20px 0;
    text-align: center;
  }
}

.process-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
@media (min-width: 860px) {
  .process-badge { left: 50%; transform: translateX(-50%); }
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--divider);
}
@media (min-width: 860px) {
  .process-step:not(:last-child)::after {
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    top: 19px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

.process-step h3 { margin-bottom: 0.3em; font-size: 1.05rem; }
.process-step p { margin-bottom: 0; color: var(--body); font-size: 0.92rem; }
@media (min-width: 860px) {
  .process-step p { max-width: 26ch; margin-left: auto; margin-right: auto; }
}

/* Responsive Google Maps embed (Contact page) — same aspect-ratio wrapper
   pattern as .media-frame/.hero-media, so the iframe scales with viewport
   width instead of using the embed's fixed 600x450. */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
@media (min-width: 760px) {
  .map-frame { aspect-ratio: 16 / 9; }
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Proprietor profile card (About — The Proprietor)
   Photo + name/role/credential tags together as one header block, instead
   of a bare photo beside an unbroken wall of bio text.
   ========================================================================== */

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .profile-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}
.profile-role {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.6em;
}

/* ==========================================================================
   Lineage Ladder (About — Our Legacy)
   Four generation medallions connected by a horizontal rule on desktop,
   stacking vertically on mobile. A generation without a CA qualification
   (e.g. a Tax Consultant who kept the practice running) gets a muted
   medallion instead of the primary-colour one — the absence of colour
   carries the fact, no separate label needed.
   ========================================================================== */

.ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 0;
  position: relative;
  padding-top: 8px;
}
@media (min-width: 760px) {
  .ladder::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 56px;
    right: 56px;
    height: 1px;
    background: var(--divider);
  }
}
@media (max-width: 759px) {
  .ladder { grid-template-columns: 1fr; }
}

.rung { padding: 0 16px; position: relative; text-align: center; }
.rung .medallion {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.rung.no-ca .medallion { background: var(--muted); }
.rung h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.rung .era {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.rung p { font-size: 0.88rem; color: var(--body); }
.rung .ca-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--primary);
  border: 1px solid var(--primary-tint-border);
  background: var(--primary-tint);
}

/* ==========================================================================
   Pull quote (Legacy page opening line)
   ========================================================================== */

.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.2vw + 1rem, 1.6rem);
  font-style: italic;
  color: var(--heading);
  line-height: 1.5;
  max-width: 52ch;
  border-left: 2px solid var(--primary);
  padding-left: 24px;
  margin: 0 0 1.5em;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--input-text);
  transition: border-color 150ms ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--placeholder);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}
.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
}
.form-field.has-error .form-error { display: block; }

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* ==========================================================================
   Placeholder blocks (photo / map — until real assets supplied)
   ========================================================================== */

.placeholder-block {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px dashed var(--input-border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  padding: 24px;
}

.photo-placeholder {
  width: 220px;
  height: 260px;
  margin-bottom: 24px;
}

.proprietor-photo {
  width: 260px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 24px;
}
.proprietor-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.map-placeholder {
  width: 100%;
  min-height: 260px;
  margin: 20px 0 10px;
}

/* ==========================================================================
   Resources page
   ========================================================================== */

.resource-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--divider);
}
.resource-list li {
  border-bottom: 1px solid var(--row-border);
}
.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 1.05rem;
  color: var(--heading);
  transition: color 150ms ease, padding-left 150ms ease;
}
.resource-list a:hover {
  color: var(--primary);
  text-decoration: none;
  padding-left: 8px;
}
.resource-list a::after {
  content: "↗";
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 5fr 6fr; }
}

.contact-details p {
  margin-bottom: 0.5em;
}
.contact-details .mono {
  font-size: 1.05rem;
}

.contact-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 32px;
}
/* Stacked quick-contact list (Contact page, beside the enquiry form) —
   full-width icon+label rows, each its own tinted rounded box. */
.quick-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quick-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.quick-contact-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25em;
}
.quick-contact-item p { margin-bottom: 0; color: var(--body); }

/* Info card (map page) — white elevated card, matching the map-frame--card
   beside it: bold serif business name, hairline divider, then icon-circle
   rows for each contact fact. */
.contact-panel--info {
  background: var(--surface);
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(31,31,31,0.08);
  padding: 36px;
}
.contact-panel--info h2 {
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.info-block:last-of-type {
  margin-bottom: 0;
}
.info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, background-color 150ms ease;
}
a.info-icon:hover {
  transform: scale(1.05);
  background-color: var(--primary-tint-border);
}
.info-icon svg { width: 18px; height: 18px; }
.info-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35em;
}
.contact-panel .btn-row {
  margin-top: 28px;
}
.contact-panel .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.map-frame--card {
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(31,31,31,0.08);
  border: none;
}

/* Combined Contact Box (Unified Map + Info Card) */
.combined-contact-box {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(31,31,31,0.08);
  overflow: hidden;
}

@media (min-width: 860px) {
  .combined-contact-box {
    grid-template-columns: 1.15fr 1fr;
  }
}

.combined-contact-box .map-section {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: #e5e3df;
}

.combined-contact-box .map-section iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.combined-contact-box .info-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.combined-contact-box .info-section h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
  color: var(--primary);
}

.combined-contact-box .info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.combined-contact-box .info-block:last-of-type {
  margin-bottom: 0;
}

.combined-contact-box .info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.combined-contact-box .info-icon svg {
  width: 18px;
  height: 18px;
}

.combined-contact-box .info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35em;
  font-weight: 500;
}

.combined-contact-box .info-value {
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.combined-contact-box .info-value a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.combined-contact-box .info-value a:hover {
  border-color: var(--primary);
}

.combined-contact-box .btn-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.combined-contact-box .btn-row .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.combined-contact-box .btn-row .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .combined-contact-box .info-section {
    padding: 36px 24px;
  }
  .combined-contact-box .btn-row {
    flex-direction: column;
    gap: 8px;
  }
  .combined-contact-box .map-section {
    min-height: 300px;
  }
}

/* Contact Page Restructuring Styles */
.contact-main {
  background: var(--bg-secondary);
}
.contact-header {
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--primary-tint-border);
  padding: 56px 0;
  margin-top: 0;
  margin-bottom: 48px;
}
.contact-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--heading);
  margin-top: 8px;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.contact-form-section {
  margin-top: 56px;
  margin-bottom: 80px;
}

.contact-form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(31,31,31,0.05);
  padding: 48px;
}

.contact-form-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-form-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 32px;
}

@media (max-width: 760px) {
  .contact-header {
    margin-top: 40px;
    margin-bottom: 28px;
  }
  .contact-header h1 {
    font-size: 2.2rem;
  }
  .contact-form-card {
    padding: 32px 20px;
  }
  .contact-form-section {
    margin-top: 40px;
    margin-bottom: 56px;
  }
}

/* ========================================================================== */

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-tint);
  border-top: 1px solid var(--primary-tint-border);
  color: var(--body);
  padding: 56px 0 100px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1em;
  font-weight: 400;
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 14px;
}

.footer-grid p { color: var(--body); }
.footer-grid a { color: var(--primary); }
.footer-grid a:hover { color: var(--primary-hover); }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.contact-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: 9px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--primary-tint-border);
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .site-footer { padding-bottom: 124px; }
}

/* ==========================================================================
   WhatsApp floating button (Section 8 — exact spec, brand-green exception)
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 150ms ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 28px; height: 28px; }

@media (max-width: 480px) {
  /* WhatsApp now lives as a tab in .mobile-call-bar at this breakpoint —
     hide the floating circle so there isn't a duplicate WhatsApp entry
     point competing with it on small screens. */
  .whatsapp-fab { display: none; }
}

/* ==========================================================================
   Sticky mobile click-to-call bar (Section 7.7)
   ========================================================================== */

.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: var(--bg-primary);
  border-top: 1px solid var(--divider);
  padding: 8px;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
}
.mobile-bar-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  color: var(--body);
  text-decoration: none;
}
.mobile-bar-tab:hover { color: var(--primary); text-decoration: none; }
.mobile-bar-tab svg { width: 20px; height: 20px; color: var(--primary); }

/* WhatsApp gets the primary-action emphasis on the mobile bar: solid
   fill, same treatment as the floating WhatsApp button's brand green,
   so it reads as the one highlighted action next to two plain tabs. */
.mobile-bar-tab.mobile-bar-whatsapp {
  flex: 1.15;
  background: #25D366;
  color: #FFFFFF;
}
.mobile-bar-tab.mobile-bar-whatsapp svg { color: #FFFFFF; }
.mobile-bar-tab.mobile-bar-whatsapp span { font-weight: 500; }
.mobile-bar-tab.mobile-bar-whatsapp:hover { color: #FFFFFF; }

@media (max-width: 480px) {
  .mobile-call-bar { display: flex; }
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
