/* ============================================================
   Florida Tax & Accounting Solution — Design System
   Signature motif: the "ledger stamp" — a hairline-bordered tag
   set in mono type with corner ticks, used to present every
   verified fact (credential, phone, address, "Since 1999") the
   way a bookkeeper stamps a verified ledger entry.
   ============================================================ */

:root {
  --ink: #1C2B39;
  --ink-70: rgba(28,43,57,0.7);
  --paper: #F5F1E6;
  --paper-alt: #ECE5D3;
  --card: #FFFFFF;
  --brass: #A97A33;
  --brass-dark: #8A631F;
  --pine: #2B4735;
  --pine-light: #3E6249;
  --text: #2E2B24;
  --muted: #5C5648;
  --line: rgba(28,43,57,0.14);
  --line-soft: rgba(28,43,57,0.08);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--brass-dark); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

img, svg { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-alt { background: var(--paper-alt); }
.section-ink { background: var(--ink); color: #EDE9DD; }
.section-ink h2, .section-ink h3 { color: #FFFFFF; }
.section-ink p { color: rgba(237,233,221,0.86); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: block;
  margin-bottom: 0.9em;
}
.section-ink .eyebrow { color: #D9B067; }

/* ---------- Ledger rule (signature divider) ---------- */
.ledger-rule {
  height: 10px;
  width: 100%;
  max-width: 220px;
  margin: 22px 0 34px;
  background-image: repeating-linear-gradient(
    to right,
    var(--brass) 0, var(--brass) 1px,
    transparent 1px, transparent 12px
  );
  background-position: bottom;
  background-size: 100% 1px;
  position: relative;
}
.ledger-rule::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.ledger-rule::after {
  content: "";
  position: absolute;
  bottom: -9px; left: 0; right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(to right, var(--brass) 0 1px, transparent 1px 12px);
  opacity: 0.55;
}

/* ---------- Ledger stamp (signature badge) ---------- */
.stamp-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.stamp {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  padding: 10px 14px;
  position: relative;
  color: var(--ink);
  background: rgba(255,255,255,0.5);
}
.section-ink .stamp { border-color: rgba(237,233,221,0.35); color: #EDE9DD; background: rgba(255,255,255,0.04); }
.stamp::before, .stamp::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-top: 1.5px solid var(--brass);
  border-left: 1.5px solid var(--brass);
  top: -1px; left: -1px;
}
.stamp::after {
  top: auto; left: auto; bottom: -1px; right: -1px;
  border-top: none; border-left: none;
  border-bottom: 1.5px solid var(--brass);
  border-right: 1.5px solid var(--brass);
}
.stamp b { color: var(--brass-dark); font-weight: 600; }
.section-ink .stamp b { color: #D9B067; }

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus {
  left: 16px; top: 16px;
}

/* ---------- Icon badge (used in card headers, hero facts, etc.) ---------- */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  color: var(--brass-dark);
  background: rgba(169,122,51,0.06);
  margin-bottom: 4px;
}
.section-ink .icon-badge { border-color: rgba(237,233,221,0.3); color: #D9B067; background: rgba(255,255,255,0.04); }
.card .icon-badge { margin-bottom: 8px; }

.hero-card li svg { color: var(--brass-dark); flex-shrink: 0; margin-right: 8px; }
.hero-card li { align-items: center; }
.hero-card li .stat-label { display: flex; align-items: center; }
.stamp svg { color: var(--brass-dark); margin-right: 6px; vertical-align: -4px; }
.section-ink .stamp svg { color: #D9B067; }

.btn svg { flex-shrink: 0; }

/* ---------- Ledger sheet decorative graphic (hero) ---------- */
.ledger-graphic { width: 100%; max-width: 340px; }


.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,230,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.brand svg { color: var(--brass-dark); }
.brand small { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--brass-dark); text-transform: uppercase; display: block; margin-top: 2px; }

nav.primary-nav { display: flex; align-items: center; gap: 28px; }
nav.primary-nav > ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
nav.primary-nav a { color: var(--ink); font-size: 0.95rem; font-weight: 500; }
nav.primary-nav a:hover { color: var(--brass-dark); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -14px; margin-top: 10px;
  background: var(--card); border: 1px solid var(--line);
  min-width: 260px; padding: 10px; display: none;
  box-shadow: 0 10px 30px rgba(28,43,57,0.12);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 10px; font-size: 0.9rem; color: var(--text); }
.dropdown a:hover { background: var(--paper-alt); color: var(--brass-dark); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 12px 20px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--brass); color: #fff; box-shadow: 0 10px 24px -12px rgba(169,122,51,0.55); }
.btn-primary:hover { background: var(--brass-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(169,122,51,0.6); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brass-dark); color: var(--brass-dark); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #14202B; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: 0.85rem; }

.mobile-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; cursor: pointer; }
.mobile-call {
  display: none;
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background-image:
    linear-gradient(rgba(169,122,51,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,122,51,0.10) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9), transparent);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9), transparent);
  pointer-events: none; z-index: 0;
}
.hero .container, .hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card {
  background: var(--card); border: 1px solid var(--line); padding: 8px 28px;
  box-shadow: 0 24px 48px -28px rgba(28,43,57,0.35);
}
.hero-card h3 {
  margin: 22px 0 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.hero-card h3::before {
  content: ""; width: 8px; height: 8px; background: var(--brass); display: inline-block;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }

/* Stat rows: icon-circle + stacked label/value — the "at a glance" table */
.stat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.stat-row:last-child { border-bottom: none; }
.stat-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(169,122,51,0.12); color: var(--brass-dark);
  display: flex; align-items: center; justify-content: center;
}
.stat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.stat-text .stat-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
}
.stat-text .stat-value {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}

/* ---------- Photo placeholder (honest, labeled — no fake stock photo) ---------- */
.photo-frame {
  border: 1.5px dashed var(--line);
  background: repeating-linear-gradient(135deg, rgba(28,43,57,0.02) 0 10px, transparent 10px 20px);
  aspect-ratio: 4 / 5; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px; color: var(--muted);
}
.photo-frame .icon-circle-lg {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(169,122,51,0.1);
  color: var(--brass-dark); display: flex; align-items: center; justify-content: center;
}
.photo-frame span { font-family: var(--font-mono); font-size: 0.8rem; max-width: 22ch; line-height: 1.5; }

/* ---------- Real photo (once supplied) ---------- */
.photo-real {
  margin: 0 auto; border: 1px solid var(--line); background: var(--card);
  padding: 8px; box-shadow: 0 24px 48px -26px rgba(28,43,57,0.4);
  position: relative;
  max-width: 260px;
}
.photo-real::before, .photo-real::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-top: 2px solid var(--brass); border-left: 2px solid var(--brass);
  top: -1px; left: -1px;
}
.photo-real::after {
  top: auto; left: auto; bottom: -1px; right: -1px;
  border-top: none; border-left: none;
  border-bottom: 2px solid var(--brass); border-right: 2px solid var(--brass);
}
.photo-real img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.photo-real figcaption {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
  text-align: center; padding-top: 10px; letter-spacing: 0.02em;
}

.byline { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.byline img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(28,43,57,0.3);
}
.byline .byline-text b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.byline .byline-text span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

/* ---------- Chip links (e.g. "Areas of Focus") ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card);
  padding: 10px 16px; font-family: var(--font-body); font-weight: 500; font-size: 0.92rem;
  color: var(--ink); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.chip svg { color: var(--brass-dark); flex-shrink: 0; }
.chip:hover { border-color: var(--brass); color: var(--brass-dark); transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(28,43,57,0.3); }

/* ---------- LinkedIn reference link ---------- */
.linkedin-link {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card);
  padding: 10px 16px; font-family: var(--font-body); font-weight: 500; font-size: 0.92rem;
  color: var(--ink); text-decoration: none; margin: 20px 0 26px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.linkedin-link svg { color: #0A66C2; flex-shrink: 0; }
.linkedin-link:hover { border-color: #0A66C2; color: #0A66C2; }

/* ---------- Contextual page photo (landscape, framed) ---------- */
.photo-banner {
  margin: 0; position: relative; max-width: 100%; width: 100%;
  box-shadow: 0 18px 40px -22px rgba(28,43,57,0.35);
  overflow: hidden; line-height: 0;
}
.photo-banner img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.photo-banner-wrap { display: flex; justify-content: center; }


.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 2px rgba(28,43,57,0.04);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.card h3 { margin-bottom: 4px; }
.card .card-link { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.03em; color: var(--pine); margin-top: auto; }
.card:hover { border-color: var(--brass); box-shadow: 0 16px 32px -18px rgba(28,43,57,0.35); transform: translateY(-3px); }
.card:hover .card-link { color: var(--brass-dark); }

.service-index { list-style: none; padding: 0; margin: 0; }
.service-index li { border-top: 1px solid var(--line); }
.service-index li:last-child { border-bottom: 1px solid var(--line); }
.service-index a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; color: var(--ink); font-family: var(--font-display); font-size: 1.15rem;
  gap: 14px;
}
.service-index a svg { color: var(--brass-dark); flex-shrink: 0; }
.service-index a span.arrow { font-family: var(--font-mono); font-size: 0.85rem; color: var(--brass-dark); }
.service-index a:hover { color: var(--brass-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { border-top: 3px solid var(--brass); padding-top: 16px; }
.step .num { font-family: var(--font-mono); color: var(--brass-dark); font-size: 0.85rem; display: block; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brass-dark); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Disclaimer box ---------- */
.disclaimer {
  border-left: 3px solid var(--brass); background: var(--paper-alt);
  padding: 16px 20px; font-size: 0.92rem; color: var(--muted); margin: 28px 0;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: rgba(237,233,221,0.85); padding: 56px 0 28px; }
footer.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
footer.site-footer a { color: rgba(237,233,221,0.8); }
footer.site-footer a:hover { color: #D9B067; }
/* Address/contact block: forced to solid white for guaranteed contrast
   against the dark footer background (WCAG AA — #FFFFFF on #1C2B39 is
   well over 12:1). */
footer.site-footer .footer-address { color: #FFFFFF; line-height: 1.9; }
footer.site-footer .footer-address a {
  color: #FFFFFF; display: inline-flex; align-items: center; gap: 6px;
}
footer.site-footer .footer-address a svg { color: #D9B067; flex-shrink: 0; }
footer.site-footer .footer-address a:hover { color: #D9B067; }
footer.site-footer .footer-address a:hover svg { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(237,233,221,0.15); margin-top: 40px; padding-top: 20px; font-size: 0.8rem; color: rgba(237,233,221,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--ink); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px;
}
.mobile-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brass); color: #fff; font-weight: 700; padding: 13px; font-size: 0.98rem;
}

/* ---------- Article / resources ---------- */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-top: 1px solid var(--line); padding: 20px 0; }
.article-list li:last-child { border-bottom: 1px solid var(--line); }
.tag-soon { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass-dark); border: 1px solid var(--line); padding: 2px 8px; margin-left: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  nav.primary-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-cta .btn-outline-text { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  body { padding-bottom: 64px; }
  .mobile-call-bar { display: block; }
}

nav.primary-nav.open {
  display: flex; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  flex-direction: column; padding: 10px 24px 20px; gap: 4px;
}
nav.primary-nav.open > ul { flex-direction: column; gap: 0; width: 100%; }
nav.primary-nav.open .dropdown { position: static; display: block; box-shadow: none; border: none; margin-top: 4px; padding-left: 10px; }
nav.primary-nav.open .has-dropdown:hover .dropdown { display: block; }

/* ---------- Auto-balancing two-column list (reflows cleanly at any item count) ---------- */
.two-col-list ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 48px; }
.two-col-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid var(--line);
  break-inside: avoid;
}
@media (max-width: 680px) {
  .two-col-list ul { columns: 1; }
}
