/* =========================================================
   The Fiscal Star — shared stylesheet
   Palette: ink navy / brass gold / warm paper
   Display: Playfair Display · Body & Data: Inter
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0B1E3B;
  --ink-2: #132A4E;
  --gold: #B18A34;
  --gold-light: #D7B96B;
  --paper: #FAF7F1;
  --paper-2: #F1ECE1;
  --white: #FFFFFF;
  --slate: #45505F;
  --slate-light: #7A8494;
  --line: #E4DECE;
  --line-dark: rgba(255,255,255,0.14);
  --shadow: 0 20px 50px -25px rgba(11, 30, 59, 0.35);
  --radius: 2px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-weight: 500; }
h2 { font-weight: 500; }
h3 { font-weight: 600; }

p { margin: 0 0 1em; color: var(--slate); }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- ledger rule — signature divider ---------- */
.ledger {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  height: 14px;
}
.ledger span {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.ledger.on-dark span { background: var(--line-dark); }
.ledger::before, .ledger::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  background: transparent;
  border-color: rgba(11,30,59,0.25);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost.on-dark:hover { border-color: var(--white); }

/* ---------- header / nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .dot { color: var(--gold); }
.brand-logo { height: 40px; width: auto; display: block; }

.foot-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-logo-icon { height: 26px; width: auto; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
nav.primary-nav a.active { color: var(--gold); }
nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.2s ease;
}
nav.primary-nav a:hover::after,
nav.primary-nav a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 22px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed;
  top: 73px;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--ink);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-panel.open { display: block; }
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 18px 28px 40px;
}
.mobile-panel li { border-bottom: 1px solid var(--line-dark); }
.mobile-panel a {
  display: block;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  padding: 20px 0;
}
.mobile-panel a.active { color: var(--gold-light); }
.mobile-panel .mp-cta { padding: 30px 0 0; }
.mobile-panel .mp-contact {
  padding: 0 28px 20px;
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}

body.menu-open { overflow: hidden; }

@media (max-width: 860px) {
  nav.primary-nav { display: none; }
  .nav-cta .btn-ghost.desktop-only { display: none; }
  .hamburger { display: flex; }
}

/* ---------- page hero ---------- */
.page-hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 46px); max-width: 780px; }
.page-hero .lede { font-size: 17.5px; max-width: 620px; }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 26px;
  margin-top: 110px;
}
footer .foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 34px;
}
footer nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
footer nav a { font-size: 14px; }
footer nav a:hover { color: var(--gold-light); }
footer .foot-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer .foot-bottom a:hover { color: var(--gold-light); }

/* ---------- new client offer banner ---------- */
.offer-banner {
  background: var(--ink);
  color: var(--white);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-radius: var(--radius);
  margin-bottom: 44px;
}
.offer-banner .offer-text .offer-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 6px;
}
.offer-banner .offer-text h3 {
  color: var(--white);
  font-size: 21px;
  margin: 0 0 4px;
}
.offer-banner .offer-text p {
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-size: 14px;
}
@media (max-width: 640px) {
  .offer-banner { padding: 22px; }
}

/* ---------- fee tables ---------- */
.fee-category { margin-bottom: 54px; }
.fee-category h3 {
  font-size: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.fee-category .cat-tag {
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
table.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14.5px;
}
table.fee-table tr { border-bottom: 1px solid var(--line); }
table.fee-table td { padding: 13px 6px; vertical-align: top; }
table.fee-table td.fee-price {
  text-align: right;
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding-left: 18px;
}
table.fee-table td.fee-name strong { color: var(--ink); }
table.fee-table td.fee-name span { color: var(--slate-light); font-size: 13px; }

@media (max-width: 640px) {
  table.fee-table td.fee-price { font-size: 13.5px; }
}

/* ---------- resource links ---------- */
.res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.res-card {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-card .res-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.res-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.res-card .res-arrow {
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.res-card:hover .res-arrow { transform: translate(3px, -3px); }
.res-card p { font-size: 14px; margin: 0; }
.res-card .res-tag {
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
}
a.res-link { display: block; height: 100%; }

@media (max-width: 700px) {
  .res-grid { grid-template-columns: 1fr; }
}

/* ---------- contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-item .dot-marker {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- floating whatsapp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(11,30,59,0.35);
  z-index: 500;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 29px; height: 29px; fill: #ffffff; }
@media (max-width: 640px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- social links ---------- */
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s ease;
}
.social-links a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- map embed ---------- */
.map-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  filter: grayscale(15%);
}

/* ---------- generic section spacing ---------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
  footer.site-footer { margin-top: 70px; }
}

/* ---------- responsive layout utilities ---------- */
.split          { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.split-even     { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-sidebar  { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.split-form     { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 60px; align-items: start; }
.split-dark     { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid-3 > div, .grid-3 > a { background: var(--white); }

@media (max-width: 860px) {
  .split, .split-even, .split-dark { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .split-sidebar, .split-form { grid-template-columns: 1fr; gap: 30px; }
  .split-sidebar > div:first-child { position: static !important; width: 100% !important; max-width: 260px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 22px; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
}
