/* ==========================================================================
   Bharat Mago & Co., Chartered Accountants — bmcca.in
   Navy & gold. Written mobile-first: base rules are for phones; the
   min-width queries at the end add columns as the screen widens.
   Pages carry no inline styles — every layout lives here so it can respond.
   ========================================================================== */

:root {
  --navy-950: #040d1c;
  --navy-900: #071326;
  --navy-800: #0b1e3b;
  --navy-700: #102a52;
  --navy-600: #1a3e74;

  --gold-500: #c5a059;
  --gold-400: #dfba73;
  --gold-300: #f1d399;
  --gold-100: #fcf8f0;
  --gold-text: #86621f;        /* gold dark enough for text on white (4.9:1) */

  --text: #1e293b;
  --text-muted: #4b5a6e;       /* 7:1 on white */
  --text-soft: #5b6b80;        /* 5.3:1 on white — the old #94a3b8 was 2.6:1 */
  --on-dark: #e2e8f0;
  --on-dark-muted: #b8c4d4;

  --bg: #ffffff;
  --bg-tint: #f6f8fb;
  --line: #e2e8f0;
  --line-gold: rgba(197, 160, 89, 0.4);

  --ok: #166534;
  --ok-bg: #f0fdf4;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --error: #b91c1c;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(7, 19, 38, 0.06), 0 4px 16px -6px rgba(7, 19, 38, 0.12);
  --gutter: 1rem;
  --serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
main:focus { outline: none; } /* focused by script after a page swap, not by the visitor */
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-600); }
a:hover { color: var(--navy-800); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy-900); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p + p { margin-top: 0.75rem; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0.5rem; top: -3rem; z-index: 2000; background: var(--navy-900); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 0.5rem; }
.center { text-align: center; }
.lead { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1rem; }
.fine-print { font-size: 0.85rem; color: var(--text-soft); margin-top: 1.5rem; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 0.5rem; }
.eyebrow-dark { color: var(--gold-text); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 2.25rem; height: 2.25rem; color: var(--gold-text); margin-bottom: 0.75rem; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.65rem 1.25rem;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-sm { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn-gold { background: var(--gold-400); color: var(--navy-950); border-color: var(--gold-400); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-950); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-950); color: #fff; }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-disabled { background: var(--bg-tint); color: var(--text-soft); border-color: var(--line); cursor: default; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn-row.center { justify-content: center; }
.btn-row > .btn { flex: 1 1 auto; }

/* Header ----------------------------------------------------------------- */
.top-bar { display: none; background: var(--navy-950); color: var(--on-dark-muted); font-size: 0.82rem; padding: 0.45rem 0; }
.top-bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.top-bar-right { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.top-bar a { color: var(--on-dark); text-decoration: none; }
.top-bar a:hover { color: var(--gold-400); }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; min-width: 0; }
.brand-seal { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--navy-900); white-space: nowrap; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }

.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Phone menu: a panel under the header. */
.nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0.5rem var(--gutter) 1rem; max-height: calc(100vh - 64px); overflow-y: auto; }
.nav-menu.open { display: block; }
.nav-links { list-style: none; padding: 0; }
.nav-links a { display: block; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); color: var(--navy-900); font-weight: 600; text-decoration: none; }
.nav-links a.active { color: var(--gold-text); }
.nav-quick { display: flex; gap: 0.75rem; margin-top: 1rem; }
.nav-quick .btn { flex: 1; }

/* Disclaimer dialog ------------------------------------------------------ */
.disclaimer { margin: auto; /* the reset above removes the browser's centring */ width: min(560px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow-x: hidden; overflow-y: auto; border: 0; border-top: 4px solid var(--gold-500); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.disclaimer::backdrop { background: rgba(4, 13, 28, 0.72); }
.disclaimer h2 { font-size: 1.35rem; }
.disclaimer p, .disclaimer li { font-size: 0.95rem; color: var(--text-muted); }
.disclaimer ul { margin: 0.75rem 0 0.75rem 1.2rem; }
.disclaimer li + li { margin-top: 0.35rem; }
.disclaimer-small { font-size: 0.85rem !important; }
.disclaimer form { margin-top: 1.25rem; }
.disclaimer .btn { width: 100%; }

/* Hero and banners ------------------------------------------------------- */
.hero, .page-banner { position: relative; color: #fff; background: radial-gradient(circle at 85% 15%, #173868 0%, var(--navy-900) 55%, var(--navy-950) 100%); overflow: hidden; }
.hero::before, .page-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(197,160,89,0.14) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.hero > .container, .page-banner > .container { position: relative; }
.hero { padding: 3rem 0; }
.hero h1 { color: #fff; margin-bottom: 0.75rem; }
.hero-lead { font-size: 1.1rem; color: var(--on-dark); max-width: 36rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
/* The large seal shows on desktop only. On phones and tablets the seal is
   already in the menu bar, and a second one pushed the buttons off-screen;
   address, hours and phone are in the menu, the contact strip and the footer. */
.hero-visual { display: none; }
.hero-seal { width: 170px; height: 170px; margin: 0 auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); }

.page-banner { padding: 2.5rem 0 2.25rem; }
.page-banner h1 { color: #fff; margin-bottom: 0.5rem; }
.page-banner p { color: var(--on-dark); max-width: 44rem; }
.breadcrumbs { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* Sections and cards ----------------------------------------------------- */
.section { padding: 3rem 0; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.75rem; max-width: 44rem; }
.split { display: grid; gap: 2rem; align-items: start; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel-gold-edge { border-left: 4px solid var(--gold-500); background: var(--bg-tint); }
.panel-title { font-size: 1.15rem; margin-bottom: 1rem; }
.note-panel { margin: 2.5rem 0; background: var(--bg-tint); }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; color: var(--text); text-decoration: none; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card-link { transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-link:hover { border-color: var(--line-gold); box-shadow: var(--shadow); color: var(--text); transform: translateY(-2px); }
.card-feature { display: flex; gap: 1rem; align-items: flex-start; }
.card-feature .icon-lg { margin: 0; }
.card-grid.compact .card { padding: 1rem 1.1rem; }
.section-tint .card { background: #fff; }
.center .btn, p.center { margin-top: 1.75rem; }

.tick-list, .plain-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.tick-list li { position: relative; padding-left: 1.6rem; color: var(--text-muted); font-size: 0.95rem; }
.tick-list li::before { content: ''; position: absolute; left: 0.2rem; top: 0.45rem; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg); }
.tick-list strong { color: var(--navy-900); }
.plain-list li { position: relative; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.95rem; }
.plain-list li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }

.link-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.link-list a { display: flex; flex-direction: column; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy-900); }
.link-list a:hover { border-color: var(--line-gold); box-shadow: var(--shadow); }
.link-list span { color: var(--text-muted); font-size: 0.9rem; }

/* About ------------------------------------------------------------------ */
.about-grid { display: grid; gap: 2rem; align-items: start; }
.about-copy p { color: var(--text-muted); }
.fact-list { display: grid; gap: 0.85rem; }
.fact-list dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); font-weight: 600; }
.fact-list dd { margin: 0; color: var(--navy-900); font-weight: 600; }
.people-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.person-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.person-initials { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-300); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.person-meta { color: var(--gold-text); font-weight: 600; font-size: 0.92rem; }
.person-extra { color: var(--text-soft); font-size: 0.88rem; margin-top: 0.2rem !important; }
.person-card p:not(.person-meta):not(.person-extra) { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* Practice areas --------------------------------------------------------- */
.chip-nav { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 2rem; scrollbar-width: thin; }
.chip-nav a { flex: none; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--navy-800); text-decoration: none; background: #fff; }
.chip-nav a:hover { border-color: var(--gold-500); }
.service-list { display: grid; gap: 1rem; }
.service { display: grid; gap: 0.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.service > div > p { color: var(--text-muted); margin-bottom: 1rem; }
.tick-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 1.5rem; }

.service .text-link { display: inline-block; margin-top: 1rem; }

/* DPDP band on Home: sits directly under the hero */
.dpdp-band { background: var(--gold-100); border-bottom: 1px solid var(--line-gold); padding: 1.5rem 0; }
.dpdp-band-inner { display: grid; gap: 1rem; }
.dpdp-band-icon { width: 2.5rem; height: 2.5rem; color: var(--gold-text); }
.dpdp-band h2 { font-size: clamp(1.2rem, 3vw, 1.45rem); margin-bottom: 0.35rem; }
.dpdp-band p:not(.eyebrow) { color: var(--text-muted); font-size: 0.95rem; max-width: 46rem; }
.dpdp-band .eyebrow { margin-bottom: 0.25rem; }
.dpdp-band .btn { justify-self: start; }
@media (min-width: 900px) {
  .dpdp-band-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
}

/* Data protection page --------------------------------------------------- */
.timeline { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; font-size: 0.93rem; color: var(--text-muted); position: relative; }
.tl-date { font-weight: 700; color: var(--navy-800); }
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); font-weight: 700; margin-bottom: 0.75rem; }
.steps p { color: var(--text-muted); font-size: 0.95rem; }

/* Software --------------------------------------------------------------- */
.app-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.app-card { display: flex; flex-direction: column; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.app-card > p { color: var(--text-muted); font-size: 0.95rem; }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.app-card-top h3 { margin: 0; font-size: 1.2rem; }
.app-subtitle { color: var(--gold-text) !important; font-weight: 600; font-size: 0.9rem !important; }
.app-card .tick-list { margin: 0.25rem 0 0.5rem; }
.app-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.app-host { font-size: 0.82rem; color: var(--text-soft); }
.status { flex: none; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid; }
.status-available { color: var(--ok); background: var(--ok-bg); border-color: #bbf7d0; }
.status-preview { color: var(--warn); background: var(--warn-bg); border-color: #fde68a; }
.status-coming-soon { color: var(--text-muted); background: var(--bg-tint); border-color: var(--line); }

/* Due dates -------------------------------------------------------------- */
.announcements { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.announcement { background: var(--warn-bg); border: 1px solid #fde68a; border-left: 4px solid #d97706; border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.announcement h2 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: 0.35rem; }
.announcement p { font-size: 0.93rem; color: #4a3410; }
.announcement-tag { font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn) !important; margin-bottom: 0.35rem; }

.due-toolbar { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.due-meta { font-size: 0.88rem; color: var(--text-soft); }
.due-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.due-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.due-card.cat-gst { border-top-color: #d97706; }
.due-card.cat-it { border-top-color: #2563eb; }
.due-card.cat-tds { border-top-color: #0d9488; }
.due-card.cat-roc { border-top-color: #7c3aed; }
.due-card h3 { font-family: var(--sans); font-size: 1rem; margin: 0.6rem 0 0.35rem; }
.due-card p { font-size: 0.9rem; color: var(--text-muted); }
.due-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.due-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.due-when { font-weight: 700; color: var(--navy-900); font-size: 0.95rem; }
.due-when s { color: var(--text-soft); font-weight: 500; margin-right: 0.25rem; }
.due-card-foot { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.85rem; font-size: 0.8rem; }
.due-basis { color: var(--text-soft); }
.due-left { font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.due-card.is-soon .due-left { color: #b45309; }
.due-card.is-extended { background: #fbfefc; }
.due-card.is-extended .due-basis { color: var(--ok); font-weight: 600; }

/* Segmented buttons (filters, calculator options) ------------------------ */
.segmented { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seg-btn { min-height: 40px; padding: 0.4rem 0.9rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--navy-800); cursor: pointer; }
.seg-btn:hover { border-color: var(--gold-500); }
.seg-btn[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Calculators ------------------------------------------------------------ */
.calc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.calc + .calc { margin-top: 2rem; }
.calc-head { padding: 1.25rem 1.25rem 0; }
.calc-head h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.calc-head p { color: var(--text-soft); font-size: 0.92rem; }
.calc-body { display: grid; gap: 1.5rem; padding: 1.25rem; }
.calc-inputs { display: grid; gap: 1rem; align-content: start; }
.calc-results { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; align-self: start; }
.regime-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.regime { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem; }
.regime.is-lower { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(197,160,89,0.18); }
.regime-name { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.regime-total { font-size: clamp(1.25rem, 5vw, 1.6rem); font-weight: 700; color: var(--navy-900); margin-top: 0.25rem !important; }
.tag { font-size: 0.68rem; background: var(--navy-800); color: #fff; padding: 0.1rem 0.4rem; border-radius: 4px; vertical-align: middle; }
.verdict { margin: 0.85rem 0 !important; font-weight: 600; color: var(--navy-900); }
.table-wrap { overflow-x: auto; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.breakdown th, .breakdown td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); }
.breakdown th { text-align: left; font-weight: 500; color: var(--text-muted); }
.breakdown thead th { font-weight: 700; color: var(--navy-900); text-align: right; }
.breakdown thead th:first-child { text-align: left; }
.breakdown td { text-align: right; white-space: nowrap; }
.breakdown .row-sub th, .breakdown .row-sub td { font-weight: 700; color: var(--navy-900); }
.breakdown .row-total th, .breakdown .row-total td { font-weight: 700; color: var(--navy-900); border-bottom: 0; border-top: 2px solid var(--navy-800); }
.calc-notes { margin: 0 1.25rem 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.calc-notes summary { cursor: pointer; font-weight: 600; color: var(--navy-800); }
.calc-notes ul { margin-top: 0.75rem; }
.gst-out { display: grid; gap: 0.1rem; font-variant-numeric: tabular-nums; }
.gst-out div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.gst-out dt { color: var(--text-muted); }
.gst-out dd { margin: 0; font-weight: 600; color: var(--navy-900); }
.gst-out .row-total { border-bottom: 0; border-top: 2px solid var(--navy-800); }
.gst-out .row-total dt, .gst-out .row-total dd { font-weight: 700; color: var(--navy-900); font-size: 1.05rem; }

/* Forms ------------------------------------------------------------------ */
.field { display: grid; gap: 0.35rem; }
.field label, .field .label { font-weight: 600; font-size: 0.92rem; color: var(--navy-900); }
.field small { color: var(--text-soft); font-size: 0.82rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0.8rem;
  border: 1.5px solid #cbd5e1; border-radius: var(--radius-sm); background: #fff;
  font-size: 1rem; /* 16px stops iOS zooming into the field */
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-600); outline: none; box-shadow: 0 0 0 3px rgba(26,62,116,0.15); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.inline-field { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.9rem !important; font-weight: 500 !important; color: var(--text-muted) !important; }
.inline-field input { width: 6rem; min-height: 40px; }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--navy-800); }
.field.check label { font-weight: 400; font-size: 0.9rem; color: var(--text-muted); }
.form-row { display: grid; gap: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-weight: 600; font-size: 0.92rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-actions .btn { flex: 1 1 12rem; }
.form-result { background: var(--ok-bg); border: 1px solid #bbf7d0; color: #14532d; border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.93rem; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; gap: 1.5rem; align-items: start; }
.contact-card { background: var(--navy-800); color: var(--on-dark); border-radius: var(--radius); padding: 1.5rem; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 0.85rem; }
.contact-list .icon { color: var(--gold-400); margin-top: 0.2rem; }
.contact-list h2 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-300); margin-bottom: 0.2rem; }
.contact-list a { color: #fff; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form-card h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.form-card form { display: grid; gap: 1rem; }
.map-grid { display: grid; gap: 1.5rem; align-items: center; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.map-placeholder { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; min-height: 160px; border-radius: var(--radius); border: 1px dashed var(--line-gold); background: #fff; text-decoration: none; color: var(--text-muted); }
.map-placeholder strong { color: var(--navy-800); }
.map-pin { flex: none; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold-500); position: relative; }
.map-pin::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: #fff; }
.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy-900); }
.faq details p { margin-top: 0.5rem; color: var(--text-muted); }

/* Contact strip ---------------------------------------------------------- */
.contact-strip { background: var(--navy-900); color: var(--on-dark); padding: 2.5rem 0; }
.contact-strip h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.35rem; }
.contact-strip p { color: var(--on-dark-muted); font-size: 0.95rem; }
.contact-strip-inner { display: grid; gap: 0.5rem; }
.contact-strip .btn-row { margin-top: 1rem; }

/* Prose pages ------------------------------------------------------------ */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 2.75rem 0 1.5rem; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-name { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.2rem; }
.footer-sub { color: var(--gold-400); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.25rem !important; }
.footer-frn, .footer-addr { margin-top: 0.6rem !important; }
.footer-head { font-family: var(--sans); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--gold-400); }
.footer-notice { margin-top: 2rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); font-size: 0.82rem; line-height: 1.55; }
.footer-notice strong { color: var(--gold-300); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; }

/* ==========================================================================
   Wider screens
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 1.5rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .btn-row > .btn { flex: 0 0 auto; }
  .due-toolbar { grid-template-columns: 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .contact-strip-inner { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
  .contact-strip .btn-row { margin-top: 0; }
  .service { grid-template-columns: auto 1fr; gap: 1.25rem; }
  .service .icon-lg { margin: 0.25rem 0 0; }
  .disclaimer { padding: 2rem; }
}

@media (min-width: 900px) {
  .top-bar { display: block; }
  .menu-btn { display: none; }
  .nav { min-height: 76px; }
  .brand-seal { width: 52px; height: 52px; }
  .brand-name { font-size: 1.2rem; }
  .nav-menu { display: flex !important; position: static; align-items: center; gap: 1.25rem; padding: 0; border: 0; box-shadow: none; background: transparent; max-height: none; overflow: visible; }
  .nav-links { display: flex; gap: 0.15rem; }
  .nav-links a { border: 0; padding: 0.5rem 0.6rem; font-size: 0.92rem; border-radius: var(--radius-sm); }
  .nav-links a:hover { background: var(--bg-tint); }
  .nav-links a.active { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }
  .nav-quick { margin: 0; }
  .nav-quick .btn-outline-navy { display: none; }   /* the phone number is already in the top bar */

  .section { padding: 4.5rem 0; }
  /* Desktop hero is kept short so the next section shows on a laptop screen. */
  .hero { padding: 2.5rem 0; }
  .hero-grid { grid-template-columns: 1.6fr 1fr; gap: 3rem; }
  .hero-visual { display: block; }
  .page-banner { padding: 3.5rem 0 3rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1.6fr 1fr; gap: 3rem; }
  .calc-body { grid-template-columns: 1fr 1.15fr; gap: 2rem; padding: 1.75rem; }
  .calc-head { padding: 1.75rem 1.75rem 0; }
  .calc-notes { margin: 0 1.75rem 1.75rem; }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .map-grid { grid-template-columns: 1fr 1.5fr; gap: 2.5rem; }
}

@media (min-width: 1100px) {
  .nav-links a { padding: 0.5rem 0.75rem; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .top-bar, .site-header, .contact-strip, .footer-notice, .disclaimer, .btn, .btn-row { display: none !important; }
  .hero, .page-banner { background: none; color: #000; }
  .hero h1, .page-banner h1, .page-banner p { color: #000; }
}
