/* =========================================================
   Rakesh Baid & Company — Heritage Theme
   Warm cream, deep burgundy, brass gold.
   Playfair Display for headings, Lora for body,
   Cinzel for small-caps eyebrows.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:            #FAF4E8;
  --bg-alt:        #F5EDDD;
  --surface:       #FFFCF5;
  --surface-warm:  #FBF6E9;

  --border:        #C9A96150;
  --border-strong: #C9A961;
  --border-faint:  #C9A96125;
  --border-dark:   #6B273730;

  --ink:           #2C1810;
  --ink-secondary: #5C4633;
  --ink-muted:     #846446;
  --ink-inverse:   #FAF4E8;

  --burgundy:      #6B2737;
  --burgundy-dark: #4A1A26;
  --burgundy-hover:#8B3447;
  --brass:         #C9A961;
  --brass-hover:   #B08A48;
  --brass-dark:    #7D6731;
  --ink-blue:      #1F3A5C;

  --success:       #4A7C3E;
  --error:         #A3352A;

  --serif-display: "Playfair Display", "Times New Roman", serif;
  --serif-body:    "Lora", Georgia, serif;
  --serif-caps:    "Cinzel", "Playfair Display", serif;
  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:          "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm: 2px;
  --radius:    3px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px rgba(107, 39, 55, 0.04);
  --shadow:    0 2px 8px rgba(107, 39, 55, 0.06), 0 1px 2px rgba(107, 39, 55, 0.04);
  --shadow-lg: 0 8px 24px -8px rgba(107, 39, 55, 0.15), 0 2px 8px rgba(107, 39, 55, 0.06);

  --container:    1140px;
  --header-h:     78px;

  --t:    200ms cubic-bezier(.25,.7,.3,1);
  --t-md: 320ms cubic-bezier(.25,.7,.3,1);
}

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

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea, button { font: inherit; color: inherit; }
a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--brass); }
a:hover { color: var(--burgundy-hover); text-decoration-color: var(--burgundy-hover); }

body {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M70 0 L82 55 L140 70 L82 85 L70 140 L58 85 L0 70 L58 55 Z' fill='%236B2737' fill-opacity='0.015'/%3E%3C/svg%3E");
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: var(--space-3) var(--space-4);
  background: var(--burgundy); color: var(--ink-inverse);
  font-family: var(--serif-body); text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6);
}
.section { padding-top: var(--space-24); padding-bottom: var(--space-24); position: relative; }
.section-alt { background: var(--bg-alt); }
@media (max-width: 768px) {
  .section { padding-top: var(--space-16); padding-bottom: var(--space-16); }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif-display);
  font-weight: 700; color: var(--burgundy);
  line-height: 1.15; letter-spacing: -0.01em;
}
h1, .display {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
}
h1 em, .display em, h2 em, h3 em {
  font-family: var(--serif-body); font-style: italic; font-weight: 400; color: var(--ink);
}
/* Hero display: italic accent word ("Company") stays in the same burgundy as
   the rest of the wordmark, per client preference. Section headings retain
   the two-tone cocoa-on-burgundy Heritage treatment. */
.hero-text .display em { color: var(--burgundy); }
h2 { font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--serif-caps); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: var(--space-3);
}

.lede {
  font-family: var(--serif-body);
  font-size: 1.2rem; color: var(--ink);
  max-width: 60ch; line-height: 1.65;
}

.muted { color: var(--ink-muted); font-weight: 400; }
.mono { font-family: var(--serif-caps); font-size: 0.95em; letter-spacing: 0.06em; font-weight: 600; }
.hint { display: block; margin-top: var(--space-2); font-size: 0.875rem; color: var(--ink-muted); line-height: 1.5; font-style: italic; }

/* ---------- Ornamental ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); margin-bottom: var(--space-5);
}
.ornament-line { width: 60px; height: 1px; background: var(--brass); }
.ornament-diamond {
  width: 7px; height: 7px;
  background: var(--brass); transform: rotate(45deg); flex-shrink: 0;
}
.section-divider {
  text-align: center; padding: var(--space-8) 0;
  color: var(--brass); font-size: 1.5rem;
  letter-spacing: 1.5em; opacity: 0.6;
}
.section-divider::before { content: "❦ · ❦ · ❦"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: 46px; padding: 12px 28px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--serif-body); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.02em; text-decoration: none;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--burgundy); color: var(--ink-inverse); border-color: var(--burgundy); }
.btn-primary:hover { background: var(--burgundy-hover); border-color: var(--burgundy-hover); color: var(--ink-inverse); }

.btn-ghost { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-ghost:hover { background: var(--burgundy); color: var(--ink-inverse); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Header & Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 232, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 2px solid var(--burgundy);
}
.site-header::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--burgundy);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: inherit;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--serif-display); font-weight: 700;
  font-size: 1.25rem; color: var(--burgundy);
}
.brand-sub {
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.8125rem; color: var(--ink-muted); margin-top: 1px;
}
.brand--footer .brand-name { color: var(--ink-inverse); }
.brand--footer .brand-sub  { color: rgba(250, 244, 232, 0.75); }

.nav-menu { display: flex; align-items: center; gap: var(--space-6); }
@media (min-width: 1200px) {
  .nav-menu { gap: var(--space-8); }
}
.nav-menu a {
  font-family: var(--serif-body); font-size: 1rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  padding: var(--space-2) 0; border-bottom: 1px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.nav-menu a:hover { color: var(--burgundy); border-bottom-color: var(--brass); text-decoration: none; }

.nav-toggle {
  display: none; background: none;
  border: 2px solid var(--burgundy); border-radius: var(--radius);
  width: 46px; height: 46px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; color: var(--burgundy);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--burgundy); border-radius: 1px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--surface); border-bottom: 2px solid var(--burgundy);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-2) var(--space-4);
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform var(--t-md), opacity var(--t-md);
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: var(--space-4) var(--space-2); border-bottom: 1px dotted var(--border); }
  .nav-menu li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--space-20); padding-bottom: var(--space-24);
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 169, 97, 0.15), transparent 50%),
    var(--bg);
  border-bottom: 3px double var(--burgundy);
}
@media (max-width: 768px) {
  .hero { padding-top: var(--space-12); padding-bottom: var(--space-16); }
}
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: var(--space-16); align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

.hero-text .ornament { justify-content: flex-start; margin-bottom: var(--space-6); }
.hero-text .ornament .eyebrow {
  margin-bottom: 0; font-family: var(--serif-body); font-style: italic;
  font-size: 0.9375rem; color: var(--brass-dark);
  text-transform: none; letter-spacing: 0.02em; font-weight: 500;
}
.hero-text .display { margin-bottom: var(--space-6); }
.hero-text .lede { margin-bottom: var(--space-8); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center;
}

/* Particulars — stamp-paper card */
.particulars {
  background: var(--surface-warm);
  border: 1px solid var(--burgundy);
  padding: 0;
  box-shadow: 0 2px 0 var(--burgundy), 0 6px 24px -10px rgba(107, 39, 55, 0.25);
  position: relative; overflow: hidden;
}
.particulars::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--brass); pointer-events: none; opacity: 0.5;
}
.particulars-header {
  background: var(--burgundy); color: var(--ink-inverse);
  padding: var(--space-5) var(--space-8);
  text-align: center; position: relative; z-index: 1;
}
.particulars-header-eyebrow {
  font-family: var(--serif-caps); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 4px;
}
.particulars-title {
  font-family: var(--serif-display); font-weight: 700; font-size: 1.125rem;
  letter-spacing: 0.02em; color: var(--ink-inverse); margin: 0;
}
.particulars-body { padding: var(--space-6) var(--space-8); position: relative; z-index: 1; }
.particulars-list { display: grid; gap: 0; margin: 0; }
.particulars-list > div {
  display: grid; grid-template-columns: 130px 1fr;
  gap: var(--space-4); align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px dotted var(--border-strong);
}
.particulars-list > div:last-child { border-bottom: 0; }
.particulars-list dt {
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.875rem; color: var(--ink-blue); font-weight: 500;
}
.particulars-list dd {
  font-family: var(--serif-body); font-size: 0.9375rem;
  color: var(--ink); line-height: 1.4;
}
.particulars-list dd.mono-value {
  font-family: var(--serif-caps); font-weight: 600;
  letter-spacing: 0.08em; color: var(--burgundy); font-size: 0.875rem;
}
.particulars-footer {
  border-top: 1px solid var(--burgundy);
  padding: var(--space-3) var(--space-8); text-align: center;
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.75rem; color: var(--burgundy);
  position: relative; z-index: 1;
}
@media (max-width: 480px) {
  .particulars-list > div { grid-template-columns: 1fr; gap: var(--space-1); padding: var(--space-3) 0; }
  .particulars-list dt { font-size: 0.8125rem; }
}

/* ---------- Section header ---------- */
.section-head {
  max-width: 780px; margin: 0 auto var(--space-16); text-align: center;
}
.section-head .ornament { justify-content: center; margin-bottom: var(--space-3); }
.section-head .eyebrow { margin-bottom: var(--space-4); }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head .section-lede {
  color: var(--ink-secondary); max-width: 68ch;
  margin-left: auto; margin-right: auto; font-style: italic;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-8);
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.svc-card::before {
  content: ""; position: absolute; top: 0;
  left: var(--space-6); right: var(--space-6);
  height: 2px; background: var(--brass);
}
.svc-card:hover {
  border-color: var(--burgundy); box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.svc-card h3 {
  font-family: var(--serif-display); color: var(--burgundy);
  font-weight: 700; margin-bottom: var(--space-3); padding-top: var(--space-2);
}
.svc-card > p {
  font-family: var(--serif-body); color: var(--ink-secondary);
  font-size: 1rem; margin-bottom: var(--space-5); line-height: 1.6;
}
.svc-card ul {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px dotted var(--brass);
  margin-bottom: var(--space-6); flex-grow: 1;
}
.svc-card li {
  font-family: var(--serif-body); font-size: 0.9375rem;
  color: var(--ink-secondary); padding-left: var(--space-5);
  position: relative; line-height: 1.5;
}
.svc-card li::before {
  content: "❦"; position: absolute; left: 0; top: 0;
  color: var(--brass); font-size: 0.75rem;
}
.svc-link {
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.9375rem; font-weight: 600;
  color: var(--burgundy); text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid var(--brass); padding-bottom: 2px;
  transition: color var(--t), border-color var(--t);
}
.svc-link:hover { color: var(--burgundy-hover); border-bottom-color: var(--burgundy); }
.svc-link::before { content: "☞ "; color: var(--brass); font-style: normal; }

.svc-card--audit { background: var(--surface-warm); }
.svc-card--audit::before { background: var(--burgundy); }

/* ---------- Calculators ---------- */
.calc {
  background: var(--surface);
  border: 1px solid var(--burgundy);
  max-width: 1000px; margin: 0 auto;
  overflow: hidden; box-shadow: var(--shadow);
  position: relative;
}
.calc::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid var(--brass);
  pointer-events: none; opacity: 0.4; z-index: 1;
}
.calc-tabs {
  display: flex; border-bottom: 2px solid var(--burgundy);
  background: var(--burgundy); position: relative; z-index: 2;
}
.calc-tab {
  flex: 1; background: transparent; border: none;
  padding: var(--space-5) var(--space-4);
  font-family: var(--serif-display); font-size: 1.125rem; font-weight: 600;
  color: rgba(250, 244, 232, 0.7);
  position: relative; transition: color var(--t), background var(--t);
}
.calc-tab:hover { color: var(--brass); }
.calc-tab.is-active { color: var(--brass); background: var(--burgundy-dark); }
.calc-tab.is-active::after {
  content: ""; position: absolute; bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px; background: var(--brass);
}

.calc-panel { display: none; padding: var(--space-10); position: relative; z-index: 2; }
.calc-panel.is-active { display: block; }
@media (max-width: 600px) { .calc-panel { padding: var(--space-6); } }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.calc-form { display: flex; flex-direction: column; gap: var(--space-5); }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-family: var(--serif-body); font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%; background: var(--surface-warm);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 12px var(--space-4);
  font-family: var(--serif-body); font-size: 1rem; color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--burgundy);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(107, 39, 55, 0.15);
}
.field input:invalid:not(:placeholder-shown),
.field select:invalid { border-color: var(--error); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: var(--space-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B2737' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-3) center;
  background-size: 16px;
}

.field .check {
  display: grid; grid-template-columns: 20px 1fr;
  gap: var(--space-3); align-items: start;
  font-family: var(--serif-body); font-size: 0.9375rem; font-weight: 400;
  color: var(--ink-secondary); cursor: pointer; line-height: 1.55;
}
.field .check input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0 0; accent-color: var(--burgundy);
}
.field .check a { color: var(--burgundy); font-weight: 500; }

.calc-result {
  background: var(--surface-warm);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: var(--space-8); position: relative;
}
.calc-result::before {
  content: ""; position: absolute; top: 0;
  left: var(--space-4); right: var(--space-4);
  height: 2px; background: var(--brass);
}
.calc-result-title {
  font-family: var(--serif-display); font-weight: 700; font-size: 1.25rem;
  color: var(--burgundy); margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px dotted var(--brass); text-align: center;
}
.calc-rows { display: flex; flex-direction: column; gap: 0; margin-bottom: var(--space-4); }
.calc-rows > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-4); padding: var(--space-3) 0;
  border-bottom: 1px dotted var(--border-strong);
}
.calc-rows > div:last-child { border-bottom: 0; }
.calc-rows dt {
  font-family: var(--serif-body); font-style: italic; font-size: 0.9375rem;
  color: var(--ink-secondary);
}
.calc-rows dd {
  font-family: var(--serif-caps); font-size: 1rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.04em;
}
.calc-rows .calc-total {
  border-top: 2px solid var(--burgundy); border-bottom: 0;
  padding-top: var(--space-4); margin-top: var(--space-3);
}
.calc-rows .calc-total dt {
  font-family: var(--serif-display); font-style: normal;
  font-weight: 700; color: var(--burgundy); font-size: 1.0625rem;
}
.calc-rows .calc-total dd {
  font-family: var(--serif-display); font-size: 1.5rem; font-weight: 700;
  color: var(--burgundy); letter-spacing: 0;
}

.calc-fieldset {
  border: none; padding: 0; margin: 0 0 var(--space-6) 0;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.calc-fieldset:last-of-type { margin-bottom: 0; }
.calc-fieldset legend {
  font-family: var(--serif-display); font-weight: 600;
  color: var(--burgundy); font-size: 1.0625rem;
  padding: 0 0 var(--space-3) 0; margin-bottom: var(--space-2);
  border-bottom: 1px dotted var(--brass); width: 100%;
}
.calc-fieldset .legend-note {
  font-family: var(--serif-body); font-style: italic; font-weight: 400;
  font-size: 0.875rem; color: var(--ink-muted); letter-spacing: 0;
  text-transform: none; margin-left: var(--space-2);
}
.calc-breakdown-label {
  font-family: var(--serif-display); font-weight: 500;
  color: var(--brass-dark); font-size: 0.8125rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin: var(--space-6) 0 var(--space-3) 0;
  padding-bottom: var(--space-2); border-bottom: 1px dotted var(--brass);
}

.calc-note {
  font-family: var(--serif-body); font-style: italic; font-size: 0.8125rem;
  color: var(--ink-muted); line-height: 1.6;
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: 1px dashed var(--border-strong);
}

.regime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.regime {
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: var(--space-5); text-align: center; position: relative;
  transition: border-color var(--t), background var(--t);
}
.regime.is-better { border-color: var(--burgundy); background: var(--bg); }
.regime.is-better::before {
  content: ""; position: absolute; top: 0; left: 8px; right: 8px;
  height: 2px; background: var(--burgundy);
}
.regime-label {
  font-family: var(--serif-caps); font-size: 0.6875rem;
  color: var(--ink-secondary); text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: var(--space-2); font-weight: 500;
}
.regime-default {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--ink-muted); font-style: italic;
  font-family: var(--serif-body); font-size: 0.75rem;
}
.regime-tax {
  font-family: var(--serif-display); font-size: 1.75rem; font-weight: 700;
  color: var(--burgundy);
}
.regime-badge {
  display: inline-block; margin-top: var(--space-2);
  padding: 3px 12px; border-radius: 0;
  font-family: var(--serif-caps); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--burgundy); color: var(--ink-inverse);
}

/* ---------- Compliance calendar ---------- */
.updates-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6); margin-bottom: var(--space-8);
}
.update-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: var(--space-8); position: relative;
}
.update-card::before {
  content: ""; position: absolute; top: 0;
  left: var(--space-6); right: var(--space-6);
  height: 2px; background: var(--brass);
}
.update-card h3 {
  font-family: var(--serif-display); color: var(--burgundy);
  font-weight: 700; margin-bottom: var(--space-3); padding-top: var(--space-2);
}
.update-card > p {
  font-family: var(--serif-body); color: var(--ink-secondary);
  font-size: 0.9375rem; margin-bottom: var(--space-5); line-height: 1.6;
}
.update-card ul {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding-top: var(--space-4); border-top: 1px dotted var(--brass);
  margin-bottom: var(--space-4);
}
.update-card li {
  font-family: var(--serif-body); font-size: 0.9375rem;
  color: var(--ink-secondary); padding-left: var(--space-5);
  position: relative; line-height: 1.5;
}
.update-card li::before {
  content: "❦"; position: absolute; left: 0; top: 0;
  color: var(--brass); font-size: 0.75rem;
}
.update-note {
  font-family: var(--serif-body); font-size: 0.8125rem; font-style: italic;
  color: var(--ink-muted); line-height: 1.5; margin: 0;
}
.updates-links-row {
  text-align: center; font-family: var(--serif-body); font-size: 0.9375rem;
  color: var(--ink-secondary);
}
.updates-links-row a {
  color: var(--burgundy); text-decoration: none;
  border-bottom: 1px dotted var(--brass); padding-bottom: 1px;
}
.updates-links-row a:hover { border-bottom-style: solid; border-bottom-color: var(--burgundy); }

/* Empty-state panel used in Updates and Articles sections before real content is added.
   Stamp-paper feel: cream background, brass double-border ornament, italic serif text. */
.empty-panel {
  background: var(--surface-warm);
  border: 1px solid var(--brass);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
  position: relative;
}
.empty-panel::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid var(--brass); opacity: 0.4; pointer-events: none;
}
.empty-panel-eyebrow {
  font-family: var(--serif-caps); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: var(--space-3);
  position: relative;
}
.empty-panel-title {
  font-family: var(--serif-display); font-weight: 600;
  color: var(--burgundy); font-size: 1.25rem;
  margin-bottom: var(--space-4); line-height: 1.35;
  position: relative;
}
.empty-panel-body {
  font-family: var(--serif-body); font-style: italic;
  color: var(--ink-secondary); font-size: 0.9375rem;
  line-height: 1.65; max-width: 55ch; margin: 0 auto;
  position: relative;
}

/* Dated update-card variant (Notifications & Circulars entries) — sits on the
   same .updates-grid; the firm adds these to the Updates section by hand. */
.update-card--dated .update-meta {
  font-family: var(--serif-caps); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: var(--space-2);
  padding-top: 0;
}
.update-card--dated h3 { padding-top: 0; }
.update-source {
  font-family: var(--serif-body); font-size: 0.875rem;
  color: var(--ink-secondary); margin: var(--space-4) 0 0 0;
  padding-top: var(--space-3); border-top: 1px dotted var(--brass);
}
.update-source a {
  color: var(--burgundy); text-decoration: none;
  border-bottom: 1px dotted var(--brass); padding-bottom: 1px;
}
.update-source a:hover { border-bottom-style: solid; border-bottom-color: var(--burgundy); }

/* Article card — used inside the Articles section when the firm adds real posts.
   Sits on a grid; visually lighter than update-card but same Heritage vocabulary. */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6); margin-bottom: var(--space-6);
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-7);
  position: relative;
}
.article-card::before {
  content: ""; position: absolute; top: 0;
  left: var(--space-6); right: var(--space-6);
  height: 1px; background: var(--brass);
}
.article-meta {
  font-family: var(--serif-caps); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: var(--space-3);
  padding-top: var(--space-2);
}
.article-card h3 {
  font-family: var(--serif-display); font-weight: 700;
  color: var(--burgundy); font-size: 1.25rem;
  line-height: 1.3; margin-bottom: var(--space-3);
}
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { color: var(--burgundy-hover); text-decoration: underline; text-decoration-color: var(--brass); }
.article-excerpt {
  font-family: var(--serif-body); color: var(--ink-secondary);
  font-size: 0.9375rem; line-height: 1.6; margin-bottom: var(--space-4);
}
.article-read {
  font-family: var(--serif-body); font-size: 0.9375rem; margin: 0;
  padding-top: var(--space-3); border-top: 1px dotted var(--brass);
}
.article-read a {
  color: var(--burgundy); text-decoration: none;
  border-bottom: 1px dotted var(--brass); padding-bottom: 1px;
}
.article-read a:hover { border-bottom-style: solid; border-bottom-color: var(--burgundy); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-10); } }

.about-text h3 {
  margin-bottom: var(--space-4); color: var(--burgundy);
  font-family: var(--serif-display);
  padding-bottom: var(--space-3);
  border-bottom: 1px dotted var(--brass);
}
.about-text p {
  color: var(--ink); margin-bottom: var(--space-4);
  max-width: 56ch; line-height: 1.7;
}
.about-text p:first-of-type::first-letter {
  font-family: var(--serif-display); font-size: 3.5rem; line-height: 0.85;
  float: left; margin: 6px 12px 0 0; color: var(--burgundy); font-weight: 700;
}

.info-list {
  display: grid; gap: 0;
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px dotted var(--brass);
}
.info-list > div {
  display: grid; grid-template-columns: 160px 1fr;
  gap: var(--space-4); align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px dotted var(--border-strong);
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt {
  font-family: var(--serif-body); font-style: italic; font-size: 0.9375rem;
  color: var(--ink-blue); font-weight: 500;
}
.info-list dd {
  font-family: var(--serif-body); font-size: 0.9375rem; color: var(--ink);
}
.info-list--compact > div { grid-template-columns: 140px 1fr; padding: var(--space-2) 0; }
.info-list--compact dt, .info-list--compact dd { font-size: 0.875rem; }
@media (max-width: 520px) {
  .info-list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Founder card */
.founder-card {
  background: var(--surface-warm);
  border: 1px solid var(--burgundy);
  padding: 0; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.founder-card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--brass); pointer-events: none; opacity: 0.5; z-index: 0;
}
.founder-inner { position: relative; z-index: 1; padding: var(--space-8); }
.founder-card picture, .founder-card img {
  width: 100%; max-width: 280px; height: auto;
  margin: 0 auto var(--space-5);
  border: 1px solid var(--brass); display: block;
}
.founder-name {
  font-family: var(--serif-display); font-weight: 700; font-size: 1.75rem;
  text-align: center; margin-bottom: var(--space-1); color: var(--burgundy);
}
.founder-title {
  text-align: center; font-family: var(--serif-body); font-style: italic;
  font-size: 1rem; color: var(--brass-dark); margin-bottom: var(--space-5);
}
.founder-note {
  margin-top: var(--space-5); padding-top: var(--space-5);
  border-top: 1px dotted var(--brass);
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.contact-info { display: grid; gap: var(--space-4); }
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--burgundy);
  padding: var(--space-6); transition: box-shadow var(--t);
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card h3 {
  font-family: var(--serif-caps); font-size: 0.6875rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-dark); font-weight: 600; margin-bottom: var(--space-3);
}
.info-card address {
  font-style: normal; font-family: var(--serif-body);
  color: var(--ink); font-size: 1rem; line-height: 1.6;
}
.info-card .info-link {
  font-family: var(--serif-body); font-size: 1.125rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--brass); padding-bottom: 1px;
  transition: color var(--t);
}
.info-card .info-link:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.info-meta {
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.875rem; color: var(--ink-muted); margin-top: var(--space-2);
}
.info-card--map { padding: 0; overflow: hidden; height: 260px; border-left: 3px solid var(--brass); }
.info-card--map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(0.1); }

.contact-form-card {
  background: var(--surface); border: 1px solid var(--burgundy);
  padding: 0; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.contact-form-card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid var(--brass); pointer-events: none; opacity: 0.5; z-index: 0;
}
.contact-form-header {
  background: var(--burgundy); color: var(--ink-inverse);
  padding: var(--space-5) var(--space-8); text-align: center;
  position: relative; z-index: 1;
}
.contact-form-eyebrow {
  font-family: var(--serif-caps); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 4px;
}
.contact-form-card h3 {
  font-family: var(--serif-display); color: var(--ink-inverse);
  margin: 0; font-size: 1.5rem;
}
.contact-form-body { padding: var(--space-8); position: relative; z-index: 1; }
@media (max-width: 600px) { .contact-form-body { padding: var(--space-6); } }
.form-intro {
  color: var(--ink-secondary); margin-bottom: var(--space-6);
  font-family: var(--serif-body); font-style: italic; font-size: 1rem;
  text-align: center; padding-bottom: var(--space-4);
  border-bottom: 1px dotted var(--brass);
}

.form { display: flex; flex-direction: column; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin-top: var(--space-3); font-family: var(--serif-body); font-style: italic;
  font-size: 0.9375rem; min-height: 1.25rem;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--burgundy); color: rgba(250, 244, 232, 0.9);
  padding-top: var(--space-16); padding-bottom: var(--space-6);
  margin-top: var(--space-20);
  font-family: var(--serif-body); font-size: 0.9375rem;
  position: relative; border-top: 4px double var(--brass);
}
.site-footer::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0;
  height: 1px; background: var(--brass); opacity: 0.4;
}
.site-footer a {
  color: rgba(250, 244, 232, 0.9); text-decoration: none;
  border-bottom: 1px dotted var(--brass);
  transition: color var(--t), border-bottom-color var(--t); padding-bottom: 1px;
}
.site-footer a:hover { color: var(--brass); border-bottom-color: var(--brass); }
.site-footer h3 {
  font-family: var(--serif-caps); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass); margin-bottom: var(--space-4);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(250, 244, 232, 0.15);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-particulars { margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.footer-particulars > div {
  display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px dotted rgba(201, 169, 97, 0.3);
}
.footer-particulars > div:last-child { border-bottom: 0; }
.footer-particulars dt {
  font-family: var(--serif-caps); font-size: 0.6875rem; color: var(--brass);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500;
}
.footer-particulars dd { font-size: 0.9375rem; color: rgba(250, 244, 232, 0.95); }

.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a { border-bottom: 0; }
.footer-links a:hover { color: var(--brass); }
.footer-address { font-style: normal; line-height: 1.7; margin-bottom: var(--space-3); }
.footer-meta { line-height: 1.7; color: rgba(250, 244, 232, 0.85); font-size: 0.875rem; }
.footer-meta a { display: inline-block; border-bottom: 1px dotted rgba(201, 169, 97, 0.4); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-5);
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.875rem; color: rgba(250, 244, 232, 0.7);
}
.footer-legal {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center;
}
.footer-legal a { color: rgba(250, 244, 232, 0.85); border-bottom: 0; }
.footer-legal a:hover { color: var(--brass); }

.footer-disclaimer {
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.8125rem; color: rgba(250, 244, 232, 0.65);
  line-height: 1.65; padding-top: var(--space-6);
  max-width: 78ch;
  border-top: 1px dotted rgba(201, 169, 97, 0.25);
  margin-top: var(--space-4);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.25,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .nav-menu,
  .hero-actions, .form-actions, .contact-form-card,
  .calc-tabs, .updates-grid, .site-footer,
  .skip-link { display: none !important; }
  body { background: #fff; color: #000; background-image: none; }
  .section, .hero { padding: 24px 0; }
  a { color: #000; text-decoration: underline; }
  .particulars, .founder-card, .info-card, .svc-card {
    box-shadow: none; border: 1px solid #ccc; break-inside: avoid;
  }
  h1, h2, h3 { color: #000; }
}
