/* ============================================================
   NOTARY NEAR ME — WOODBRIDGE, VA — STYLES
   1. Variables & reset   2. Base   3. Nav   4. Hero
   5. Services  6. Areas  7. About  8. Why/Docs  9. Contact
   10. Footer  11. Motion/reveal  12. Dark mode  13. Media
   Palette + fonts are also injected from config.js at runtime.
   ============================================================ */

/* 1. VARIABLES & RESET */
:root {
   --ink: #2b2b2b;
   --ink-soft: #5a564d;
   --paper: #f7f5f0;
   --card: #ffffff;
   --accent: #6f6238;
   --accent-dk: #5c5030;
   --gold: #b8894a;
   --gold-dk: #9c7239;
   --line: #e4e0d7;
   --band: #f2efe8;
   --radius: 14px;
   --radius-lg: 24px;
   --shadow:
      0 1px 2px rgb(43 43 43 / 0.04), 0 8px 24px -12px rgb(43 43 43 / 0.2);
   --shadow-lg:
      0 1px 2px rgb(43 43 43 / 0.05), 0 18px 40px -16px rgb(43 43 43 / 0.28);
   --font-heading: "Fraunces", Georgia, serif;
   --font-body: "Inter", system-ui, sans-serif;
   --nav-h: 104px;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}
html {
   scroll-behavior: smooth;
   /* Nav is position:sticky. On an anchor jump, align the section top just
      below the nav (≈ its height); the section's own top padding then supplies
      the breathing room. The previous value added an extra +12px on top of the
      nav height, nudging anchored sections down more than needed. */
   scroll-padding-top: var(--nav-h);
}

body {
   font-family: var(--font-body);
   background: var(--paper);
   color: var(--ink-soft);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
}

/* 2. BASE */
h1,
h2,
h3 {
   font-family: var(--font-heading);
   color: var(--ink);
   line-height: 1.1;
   font-weight: 600;
   letter-spacing: -0.01em;
}
h1 {
   font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}
h2 {
   font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
h3 {
   font-size: 1.25rem;
}
p {
   max-width: 64ch;
}
a {
   color: var(--accent);
   text-decoration: none;
}
a:hover {
   color: var(--accent-dk);
}
img {
   max-width: 100%;
   height: auto;
}

.container {
   max-width: 1120px;
   margin: 0 auto;
   padding: 0 1.5rem;
}
section {
   position: relative;
   padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
}

.eyebrow {
   font-family: var(--font-body);
   font-size: 0.78rem;
   font-weight: 600;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   color: var(--accent);
   margin-bottom: 1rem;
}
.eyebrow .dot {
   display: inline-block;
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: var(--accent);
   vertical-align: middle;
}

.skip-link {
   position: absolute;
   left: -999px;
   top: 0;
   z-index: 100;
   background: var(--ink);
   color: var(--paper);
   padding: 0.6rem 1rem;
   border-radius: 0 0 8px 0;
}
.skip-link:focus {
   left: 0;
}

.btn {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   font-family: var(--font-body);
   font-weight: 600;
   font-size: 0.95rem;
   padding: 0.7rem 1.25rem;
   border-radius: 999px;
   border: 0;
   cursor: pointer;
   transition:
      transform 0.15s ease,
      background 0.15s ease,
      border-color 0.15s ease;
}
.btn-primary {
   background: var(--gold);
   color: #241a0a;
}
.btn-primary:hover {
   background: var(--gold-dk);
   color: #241a0a;
   transform: translateY(-1px);
}
.btn-ghost {
   background: transparent;
   color: var(--ink);
   border: 1.5px solid var(--line);
}
.btn-ghost:hover {
   border-color: var(--ink-soft);
   color: var(--ink);
}

/* 3. NAV */
nav {
   position: sticky;
   top: 0;
   z-index: 50;
   background: rgba(247, 245, 240, 0.85);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   border-bottom: 1px solid var(--line);
}
.nav-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0.5rem 1.5rem;
}
.nav-logo {
   height: 88px;
   width: auto;
   display: block;
   mix-blend-mode: multiply;
}
.nav-links {
   display: flex;
   align-items: center;
   gap: 1.5rem;
   font-size: 0.92rem;
   font-weight: 500;
}
.nav-links a {
   color: var(--ink-soft);
}
.nav-links a:hover {
   color: var(--ink);
}
.nav-links a.nav-cta {
   color: #241a0a;
}
.nav-links a.nav-cta:hover {
   color: #241a0a;
}
.icon-btn {
   background: transparent;
   border: 0;
   color: var(--ink-soft);
   cursor: pointer;
   font-size: 1.1rem;
   padding: 0.4rem;
   line-height: 1;
}
.icon-btn:hover {
   color: var(--ink);
}
.hamburger {
   display: none;
   flex-direction: column;
   gap: 5px;
   background: none;
   border: 0;
   cursor: pointer;
   padding: 0.4rem;
}
.hamburger .bar {
   width: 24px;
   height: 2px;
   background: var(--ink);
   transition:
      transform 0.25s ease,
      opacity 0.25s ease;
   transform-origin: center;
}
/* Open state: morph the three bars into an X (acts as the close button) */
.hamburger[aria-expanded="true"] .bar:nth-child(1) {
   transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .bar:nth-child(2) {
   opacity: 0;
}
.hamburger[aria-expanded="true"] .bar:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg);
}

/* 4. HERO */
.hero {
   padding-top: clamp(2.5rem, 6vw, 4.5rem);
   padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-grid {
   display: grid;
   grid-template-columns: 1.2fr 0.8fr;
   gap: 3rem;
   align-items: center;
}
.hero h1 {
   max-width: 16ch;
}
.hero h1 em {
   font-style: italic;
   color: var(--accent);
}
.hero-sub {
   font-size: 1.2rem;
   margin: 1.5rem 0 2rem;
   color: var(--ink-soft);
}
.hero-ctas {
   display: flex;
   gap: 0.9rem;
   flex-wrap: wrap;
   align-items: center;
}
.hero-ctas.center {
   justify-content: center;
}
.hero-note {
   margin-top: 1.4rem;
   font-size: 0.9rem;
   color: var(--ink-soft);
}
.trust-row {
   display: flex;
   gap: 2rem;
   flex-wrap: wrap;
   margin-top: 2.5rem;
   padding-top: 1.8rem;
   border-top: 1px solid var(--line);
}
.trust-row .item {
   display: flex;
   align-items: center;
   gap: 0.6rem;
   font-size: 0.9rem;
   font-weight: 500;
   color: var(--ink);
}
.trust-row .tick {
   color: var(--accent);
   font-weight: 700;
}

.hero-portrait {
   position: relative;
}
.hero-portrait img {
   width: 100%;
   border-radius: 20px;
   box-shadow: var(--shadow);
   display: block;
   aspect-ratio: 4 / 5;
   object-fit: cover;
   object-position: center 15%;
}
.portrait-badge {
   position: absolute;
   left: -14px;
   bottom: 20px;
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: 14px;
   padding: 0.7rem 1rem;
   box-shadow: var(--shadow);
   font-size: 0.85rem;
   max-width: 220px;
}
.portrait-badge strong {
   color: var(--ink);
   display: block;
   font-family: var(--font-heading);
}

/* 5. SERVICES */
.services {
   background: linear-gradient(
      180deg,
      transparent,
      var(--band) 40%,
      var(--band)
   );
}
.card-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1.25rem;
   margin-top: 1.75rem;
}
.card {
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: var(--radius);
   padding: 1.6rem;
   box-shadow: var(--shadow);
   transition:
      transform 0.18s ease,
      box-shadow 0.18s ease;
}
.card:hover {
   transform: translateY(-3px);
   box-shadow: var(--shadow-lg);
}
.card .ico {
   width: 44px;
   height: 44px;
   border-radius: 11px;
   background: #f0ebdf;
   color: var(--accent);
   display: grid;
   place-items: center;
   font-size: 1.2rem;
   margin-bottom: 1rem;
}
.card h3 {
   margin-bottom: 0.5rem;
}
.card p {
   font-size: 0.95rem;
}

/* 6. AREAS */
.chips {
   display: flex;
   flex-wrap: wrap;
   gap: 0.6rem;
   margin-top: 1.5rem;
}
.areas .section-lede { max-width: 60ch; margin-top: 0.75rem; color: var(--ink-soft); font-size: 1.02rem; }
.chip {
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: 999px;
   padding: 0.55rem 1.1rem;
   font-size: 0.92rem;
   font-weight: 500;
   color: var(--ink);
   font-family: inherit;
   line-height: 1.2;
}
/* interactive pills (have a map marker) look and behave like buttons */
.chip-interactive {
   cursor: pointer;
   transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip-interactive:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip-interactive:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* selected pill (its marker is highlighted on the map) */
.chip-interactive[aria-pressed="true"] {
   background: var(--ink);
   color: var(--paper);
   border-color: var(--ink);
}
/* non-interactive pills are plain labels (no false affordance) */
.chip-static { cursor: default; }
.areas-map {
   margin-top: 2rem;
   height: 360px;
   width: 100%;
   border-radius: var(--radius);
   border: 1px solid var(--line);
   box-shadow: var(--shadow);
   overflow: hidden;
   z-index: 0;
}
.areas-map .leaflet-container {
   background: var(--band);
   font-family: var(--font-body);
}

/* 7. ABOUT */
.about {
   background: var(--band);
}
.cred-list { list-style: none; margin: 0.5rem 0 0; display: grid; gap: 0.75rem; }
.cred-label { margin-top: 1.75rem; margin-bottom: 0; }
.cred-item { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.cred-item i { color: var(--accent); font-size: 1.05rem; margin-top: 0.15rem; flex: none; width: 1.2rem; text-align: center; }
.cred-item strong { color: var(--ink); }
.about-grid {
   display: grid;
   grid-template-columns: 0.7fr 1.3fr;
   gap: 3rem;
   align-items: center;
}
.about-grid img {
   width: 100%;
   border-radius: 20px;
   box-shadow: var(--shadow);
   aspect-ratio: 4 / 5;
   object-fit: cover;
   object-position: center 12%;
}
.about-grid p {
   margin-top: 1rem;
}
.about-grid p:first-child {
   margin-top: 0;
}
.sig {
   font-family: var(--font-heading);
   font-style: italic;
   color: var(--accent);
   margin-top: 1.25rem !important;
   font-size: 1.1rem;
}

/* 8. WHY / DOCS */
.split {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2.5rem;
}
.checklist {
   list-style: none;
   display: grid;
   gap: 0.85rem;
   margin-top: 1.5rem;
}
.checklist li {
   display: flex;
   gap: 0.7rem;
   font-size: 0.98rem;
}
.checklist .tick {
   color: var(--accent);
   font-weight: 700;
   flex: none;
}
.doc-cols {
   columns: 2;
   column-gap: 2rem;
   margin-top: 1.5rem;
   list-style: none;
}
.doc-cols li {
   padding: 0.35rem 0;
   font-size: 0.95rem;
   border-bottom: 1px solid var(--line);
   break-inside: avoid;
}

/* 9. CONTACT */
.cta-band {
   background: var(--ink);
   color: #f4f1ea;
   border-radius: var(--radius-lg);
   padding: clamp(2.5rem, 5vw, 4rem);
   text-align: center;
}
.cta-band .eyebrow {
   color: #cbb98a;
}
.cta-band h2 {
   color: #f4f1ea;
}
.cta-lede {
   margin: 1rem auto 1.5rem;
   color: #c7c1b6;
}
.cta-band .phone {
   font-family: var(--font-heading);
   font-size: clamp(1.8rem, 4vw, 2.6rem);
   color: #fff;
   display: block;
   margin: 0.4rem 0 1.5rem;
}
.cta-band .phone:hover {
   color: #fff;
}
.cta-band .btn-ghost {
   color: #fff;
   border-color: #5a564d;
}
.cta-band .btn-ghost:hover {
   border-color: var(--paper);
   color: #fff;
}

/* 10. FOOTER (structured) */
footer {
   border-top: 1px solid var(--line);
   background: var(--band);
   font-size: 0.88rem;
}
.footer-grid {
   display: grid;
   grid-template-columns: 1.4fr 1fr 1fr;
   gap: 2.5rem;
   padding: 2.75rem 1.5rem 2rem;
}
.foot-brand {
   font-family: var(--font-heading);
   color: var(--ink);
   font-size: 1.15rem;
}
.foot-sub {
   margin: 0.35rem 0 0;
   color: var(--ink-soft);
   max-width: 34ch;
}
.footer-nav, .footer-connect {
   display: flex;
   flex-direction: column;
   gap: 0.6rem;
   padding-left: 1.5rem;
}
.footer-nav h4, .footer-connect h4 {
   font-family: var(--font-body);
   font-size: 0.78rem; font-weight: 600;
   letter-spacing: 0.12em; text-transform: uppercase;
   color: var(--accent); margin-bottom: 0.35rem;
}
.footer-nav a, .footer-contact-line {
   color: var(--ink-soft);
   font-size: 0.95rem;
   line-height: 1.5;
}
.footer-nav a:hover, .footer-contact-line:hover { color: var(--accent); }
.footer-bar { border-top: 1px solid var(--line); }
.footer-bar .container { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.disclaimer {
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: var(--radius);
   padding: 0.9rem 1.15rem;
   font-size: 0.82rem;
   line-height: 1.5;
   color: var(--ink);
   margin: 0 0 1rem;
   max-width: none;
}
.footer-bar-inner {
   display: flex; align-items: center; justify-content: space-between;
   gap: 1rem; flex-wrap: wrap;
}
.copyright { font-size: 0.82rem; color: var(--ink-soft); }
.powered { font-size: 0.82rem; color: var(--ink-soft); }

/* 11. MOTION / SCROLL-REVEAL */
.reveal {
   opacity: 0;
   transform: translateY(16px);
   transition:
      opacity 0.6s ease,
      transform 0.6s ease;
}
.reveal.in {
   opacity: 1;
   transform: none;
}

/* 12. DARK MODE */
[data-theme="dark"] {
   --ink: #f2ede3;
   --ink-soft: #c3bcae;
   --paper: #1c1a17;
   --card: #26231f;
   --accent: #cdb787;
   --accent-dk: #ddc99e;
   --gold: #c99a5b;
   --gold-dk: #d7ad74;
   --line: #3a352e;
   --band: #221f1b;
   --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
   --shadow-lg: 0 1px 2px rgb(0 0 0 / 0.35), 0 18px 40px -16px rgb(0 0 0 / 0.7);
}
[data-theme="dark"] nav {
   background: rgba(28, 26, 23, 0.85);
}
[data-theme="dark"] .nav-logo {
   mix-blend-mode: normal;
}
[data-theme="dark"] .btn-primary {
   color: #1c1a17;
}
[data-theme="dark"] .btn-primary:hover {
   color: #1c1a17;
}
[data-theme="dark"] .chip-interactive[aria-pressed="true"] {
   background: var(--accent);
   color: #1c1a17;
   border-color: var(--accent);
}
[data-theme="dark"] .cta-band {
   background: #100f0d;
}
[data-theme="dark"] .card .ico {
   background: #322d25;
}

/* 13. MEDIA + REDUCED MOTION */
@media (max-width: 820px) {
   .hero-grid {
      grid-template-columns: 1fr;
   }
   .hero-portrait {
      max-width: 360px;
      order: -1;
   }
   .about-grid {
      grid-template-columns: 1fr;
   }
   .about-grid img {
      max-width: 320px;
   }
   .split {
      grid-template-columns: 1fr;
      gap: 2rem;
   }
}
@media (max-width: 720px) {
   .doc-cols {
      columns: 1;
   }
   .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
   .footer-nav, .footer-connect { padding-left: 0; align-items: center; }
   .foot-sub { max-width: none; }
   .footer-bar-inner { flex-direction: column; text-align: center; }
   .nav-logo {
      height: 70px;
   }
   .hamburger {
      display: flex;
   }
   .nav-links {
      position: fixed;
      left: 0;
      right: 0;
      top: var(--nav-h);
      z-index: 40;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
      background: var(--paper);
      border-bottom: 1px solid var(--line);
      padding: 1rem 1.5rem 1.5rem;
      /* hidden by default; nav bar (logo + hamburger/X) stays visible above */
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition:
         opacity 0.22s ease,
         transform 0.22s ease,
         visibility 0.22s;
      box-shadow: var(--shadow);
   }
   .nav-links.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
   }
   .nav-links a {
      padding: 0.5rem 0;
      width: 100%;
   }
   .nav-links a.nav-cta {
      width: auto;
      align-self: flex-start;
      padding: 0.6rem 1.25rem;
   }
   .nav-cta {
      margin-top: 0.5rem;
   }
}
@media (prefers-reduced-motion: reduce) {
   html {
      scroll-behavior: auto;
   }
   *,
   *::before,
   *::after {
      animation-duration: 0.001ms !important;
      transition-duration: 0.001ms !important;
   }
   .reveal {
      opacity: 1;
      transform: none;
   }
}

/* ============================================================
   PRICING (travel-first)
   Built from theme tokens (--card/--paper/--line/--ink/--accent)
   so dark mode is inherited automatically.
   ============================================================ */

/* Screen-reader-only utility (used by the rate-table caption) */
.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;
}

.pricing .pricing-intro {
   color: var(--ink-soft);
   max-width: 62ch;
   margin-bottom: 1.1rem;
}

.pricing h3 {
   margin-top: 2rem;
   margin-bottom: 0.4rem;
}

/* Travel tiers — the lead-with figure, shown as compact cards */
.travel-tiers {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
   gap: 0.9rem;
   margin: 1.25rem 0 1rem;
}
.travel-tier {
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: var(--radius);
   padding: 1.1rem 1.25rem;
   box-shadow: var(--shadow);
   display: flex;
   flex-direction: column;
   gap: 0.35rem;
}
.travel-tier .tier-label {
   font-size: 0.9rem;
   color: var(--ink-soft);
}
.travel-tier .tier-price {
   font-family: var(--font-heading, inherit);
   font-size: 1.35rem;
   font-weight: 600;
   color: var(--accent);
}

/* Fine-print disclaimer blocks */
.pricing-notes {
   margin-top: 1rem;
}
.pricing-notes p {
   font-size: 0.82rem;
   line-height: 1.55;
   color: var(--ink-soft);
   margin-bottom: 0.6rem;
}

/* Full rate table */
.pricing-table-wrap {
   margin-top: 2.25rem;
}
.rate-table {
   width: 100%;
   border-collapse: collapse;
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: var(--radius);
   overflow: hidden;
   box-shadow: var(--shadow);
   margin-top: 1rem;
}
.rate-table thead th {
   text-align: left;
   font-size: 0.78rem;
   letter-spacing: 0.05em;
   text-transform: uppercase;
   color: var(--ink-soft);
   padding: 0.75rem 1.1rem;
   border-bottom: 1px solid var(--line);
}
.rate-table tbody th,
.rate-table tbody td {
   text-align: left;
   font-weight: 400;
   padding: 0.7rem 1.1rem;
   border-bottom: 1px solid var(--line);
   vertical-align: top;
}
.rate-table tbody th {
   color: var(--ink);
}
.rate-table tbody td {
   color: var(--ink-soft);
   white-space: normal;
}
.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td {
   border-bottom: 0;
}
/* Group header rows */
.rate-table .rate-group-row th {
   background: var(--band, var(--paper));
   font-size: 0.72rem;
   letter-spacing: 0.06em;
   text-transform: uppercase;
   color: var(--accent);
   font-weight: 600;
   padding: 0.6rem 1.1rem;
}

/* Mobile: stack the table into label/value rows */
@media (max-width: 620px) {
   .rate-table,
   .rate-table tbody,
   .rate-table tbody tr {
      display: block;
      width: 100%;
   }
   .rate-table thead {
      display: none;
   }
   .rate-table .rate-group-row th {
      display: block;
   }
   .rate-table tbody tr:not(.rate-group-row) {
      padding: 0.65rem 1.1rem;
      border-bottom: 1px solid var(--line);
   }
   .rate-table tbody tr:not(.rate-group-row) th,
   .rate-table tbody tr:not(.rate-group-row) td {
      display: block;
      border: 0;
      padding: 0.1rem 0;
   }
   .rate-table tbody tr:not(.rate-group-row) th {
      font-weight: 600;
   }
   .rate-table tbody tr:not(.rate-group-row) td {
      font-size: 0.92rem;
   }
}

/* ============================================================
   FAQ (accordion)
   Native <details>/<summary> for keyboard accessibility;
   styled from theme tokens so dark mode is inherited.
   ============================================================ */
.faq-list {
   margin-top: 1.75rem;
   display: flex;
   flex-direction: column;
   gap: 0.75rem;
   max-width: 820px;
}
.faq-item {
   background: var(--card);
   border: 1px solid var(--line);
   border-radius: var(--radius);
   box-shadow: var(--shadow);
   overflow: hidden;
}
.faq-item summary {
   list-style: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 1rem;
   padding: 1.05rem 1.25rem;
   font-weight: 600;
   color: var(--ink);
}
/* remove default marker (Safari/Chrome/Firefox) */
.faq-item summary::-webkit-details-marker {
   display: none;
}
.faq-item summary:focus-visible {
   outline: 2px solid var(--accent);
   outline-offset: -2px;
}
.faq-q {
   font-size: 1rem;
}
.faq-chevron {
   flex: 0 0 auto;
   font-size: 0.85rem;
   color: var(--accent);
   transition: transform 0.2s ease;
}
.faq-item[open] .faq-chevron {
   transform: rotate(180deg);
}
.faq-a {
   padding: 0 1.25rem 1.15rem;
}
.faq-a p {
   margin: 0;
   color: var(--ink-soft);
   font-size: 0.95rem;
   line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
   .faq-chevron {
      transition: none;
   }
}
