/* ==========================================================================
   Cardinal Notary Partners — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..900,0..100;1,9..144,300..900,0..100&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

:root {
  /* Palette */
  --ink:        #0E1B33;   /* deep navy — primary */
  --ink-soft:   #1F2C46;
  --cardinal:   #B8252F;   /* accent — used sparingly */
  --cardinal-deep: #8E1B23;
  --cream:      #F7F2E9;   /* paper background */
  --cream-deep: #EFE6D4;   /* alt sections */
  --gold:       #9C7F4F;   /* heraldic hairlines */
  --text:       #1B1B1B;
  --muted:      #5A5A5A;
  --rule:       #D9CFBC;
  --rule-soft:  #E8E0CF;
  --white:      #FFFFFF;

  /* Type */
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body:    "DM Sans", -apple-system, system-ui, sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --max:    1280px;
  --max-narrow: 760px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 350;
}
h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  line-height: 1.1;
  font-weight: 380;
}
h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  font-weight: 450;
}
h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 500;
}

p { margin: 0 0 1.1em; max-width: 70ch; }
strong { font-weight: 600; color: var(--ink); }

em.lede {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: 1.35em;
  line-height: 1.45;
  color: var(--ink);
  display: block;
  margin: 0.5em 0 1.5em;
  max-width: 30ch;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cardinal);
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--cardinal);
}
.eyebrow.muted { color: var(--muted); }
.eyebrow.muted::before { background: var(--gold); }

.numeral {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--cardinal);
  font-size: 1rem;
  letter-spacing: 0;
  margin-right: 0.6em;
}

/* ===== Layout primitives ===== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  width: 100%;
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}
.rule-gold {
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  border: 0;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand .mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--display);
  font-weight: 450;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.4rem 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--cardinal); }
.nav-links a.active { color: var(--cardinal); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cardinal);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--cardinal); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink);
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid var(--rule);
  }
  .site-header.open .nav-links a { padding: 0.6rem 0; font-size: 1.05rem; }
  .site-header.open .nav-cta {
    display: inline-flex;
    margin: 0.5rem 0 1.25rem;
  }
  .site-header.open .nav {
    flex-wrap: wrap;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--cardinal); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-cardinal {
  background: var(--cardinal);
  color: var(--cream);
}
.btn-cardinal:hover { background: var(--cardinal-deep); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero h1 {
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero h1 .ital {
  font-style: italic;
  font-weight: 320;
  color: var(--cardinal);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-meta {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}
.hero-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.hero-meta dd {
  margin: 0 0 1.2rem;
  color: var(--text);
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
}

/* Decorative seal in the corner of hero */
.hero-seal {
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 26rem;
  height: 26rem;
  opacity: 0.11;
  pointer-events: none;
  color: var(--cardinal);
}
@media (max-width: 880px) { .hero-seal { right: -9rem; top: -3rem; width: 18rem; height: 18rem; opacity: 0.09; } }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--ink);
  color: var(--cream);
  padding: 1.5rem 0;
  border-top: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,242,233,.85);
  font-weight: 400;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.trust-list li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--cardinal);
  transform: rotate(45deg);
}

/* ===== Section header ===== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .col-label .eyebrow { margin-bottom: 0; }
.section-head h2 { margin-bottom: 0.8em; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== Services list — editorial numbered list ===== */
.services-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr 1.5fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding .25s ease;
}
.service-item:hover { padding-left: 1rem; }
.service-item .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--cardinal);
  font-size: 1.15rem;
}
.service-item h3 { margin: 0; }
.service-item .summary { color: var(--muted); margin: 0; font-size: 0.97rem; }
.service-item .more {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.service-item .more:hover { color: var(--cardinal); border-color: var(--cardinal); }
@media (max-width: 760px) {
  .service-item {
    grid-template-columns: 3rem 1fr;
    grid-template-areas:
      "num title"
      ".   summary"
      ".   more";
    row-gap: 0.5rem;
  }
  .service-item .num { grid-area: num; }
  .service-item h3 { grid-area: title; }
  .service-item .summary { grid-area: summary; }
  .service-item .more { grid-area: more; justify-self: start; margin-top: 0.5rem; }
}

/* ===== Card grid (alternative) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.card h4 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 450;
  margin-bottom: 0.5em;
}
.card p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.card .marker {
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--cardinal);
}

/* ===== Pull quote / Mission ===== */
.pull {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}
.pull blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  font-style: italic;
  max-width: 28ch;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.pull blockquote::before {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: var(--cardinal);
  margin-bottom: 1.5rem;
}
.pull cite {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,242,233,.6);
  margin-top: 2rem;
}

/* ===== Two column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ===== Stats / credentials ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 2.5rem 0;
}
.stat {
  padding: 2rem 1.25rem 2rem 0;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat .figure {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.stat .figure .currency {
  font-size: 0.6em;
  vertical-align: 0.5em;
  color: var(--cardinal);
  font-style: italic;
  font-weight: 300;
  margin-right: 0.1em;
}
.stat .label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
  font-weight: 500;
}
@media (max-width: 760px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding: 1.5rem 0; }
  .stat:last-child { border-bottom: 0; }
}

/* ===== FAQ ===== */
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1.6rem 0;
  text-align: left;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 450;
  letter-spacing: -0.005em;
}
.faq-q:hover { color: var(--cardinal); }
.faq-q .plus {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--cardinal);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 1.8rem;
  color: var(--text);
  font-size: 0.97rem;
  max-width: 70ch;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 1.5rem 0 0.35rem;
}
.contact-meta dt:first-child { margin-top: 0; }
.contact-meta dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.contact-meta dd a { transition: color .2s ease; }
.contact-meta dd a:hover { color: var(--cardinal); }

form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
form label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.45rem;
}
form input, form select, form textarea {
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--body);
  transition: border-color .2s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
form textarea { resize: vertical; min-height: 140px; }
form button { margin-top: 0.5rem; }

/* ===== Service area / counties ===== */
.counties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}
.counties li {
  border: 1px solid var(--rule);
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--white);
}
.counties li .name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 450;
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}
.counties li .seat {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ===== Page header ===== */
.page-header {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0.5rem 0 0;
}
.page-header p.lede-line {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 55ch;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(247,242,233,.78);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h5 {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 1.25rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a:hover { color: var(--cream); }

.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { color: rgba(247,242,233,.6); font-size: 0.85rem; max-width: 32ch; margin-top: 1rem; }

.footer-disclaimer {
  border-top: 1px solid rgba(247,242,233,.15);
  padding-top: 1.75rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(247,242,233,.55);
  max-width: 60ch;
  font-variation-settings: "opsz" 24;
}

.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(247,242,233,.5);
  letter-spacing: 0.04em;
}
.footer-bottom a:hover { color: var(--cream); }

/* ===== Utility ===== */
.bg-cream-deep { background: var(--cream-deep); }
.bg-white { background: var(--white); }
.text-cardinal { color: var(--cardinal); }
.center { text-align: center; }
.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;
}

/* ===== Map placeholder ===== */
.map-embed {
  width: 100%;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9;
  background: var(--cream-deep);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Reveal animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ===== Subtle grain background ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.04 0 0 0 0 0.03 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
main, header, footer, section { position: relative; z-index: 2; }

/* ===== Print ===== */
@media print {
  body::before { display: none; }
  .site-header, .site-footer, .nav-cta { display: none; }
}
