/* ═══════════════════════════════════════════════
   Notary Public 94118 — Shared Stylesheet
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Navy palette */
  --navy:       #0f1f3d;   /* deepest navy – replaces black */
  --navy-mid:   #162a52;   /* mid navy – cards, nav bg */
  --navy-light: #1e3a6e;   /* lighter navy – hover states, strips */
  --navy-faint: #e8edf5;   /* very faint navy tint – page bg */

  /* Gold accents (kept from original) */
  --gold:       #b8902a;
  --gold-lt:    #d4ac50;

  /* Neutrals */
  --paper:      #f5f4ef;   /* warm off-white page background */
  --stone:      #dde3ef;   /* light blue-tinted stone */
  --muted:      #4a5568;   /* blue-grey text */
  --white:      #ffffff;

  --radius: 4px;
  --max: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--navy);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--gold); }

/* ── NAVIGATION ─────────────────────────────── */
nav.topnav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  height: 62px;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 16px rgba(15,31,61,.4);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--gold);
  text-decoration: none; letter-spacing: .03em; white-space: nowrap;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #b0bdd4; text-decoration: none;
  font-size: .88rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--gold);
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 62px 0 0;
  background: var(--navy); z-index: 99;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 2.2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--gold); text-decoration: none;
  font-size: 1.4rem; font-family: 'Playfair Display', serif;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}

/* ── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(184,144,42,.12);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; right: 40px; top: 40px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(184,144,42,.08);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--max); margin-inline: auto; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.1; color: var(--white); margin-top: .6rem;
}
.page-hero p { color: #9aaac4; margin-top: .8rem; max-width: 640px; font-size: .97rem; }

/* ── HERO (home) ────────────────────────────── */
.hero {
  position: relative; min-height: 88vh;
  display: grid; place-items: center; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 4vw, 3rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--stone) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .5;
}
.hero::after {
  content: '';
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: .2;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero-badge {
  display: inline-block;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
  padding: .35rem 1rem; margin-bottom: 2rem;
  animation: fadeUp .7s ease both;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900; line-height: 1.08;
  color: var(--navy);
  animation: fadeUp .7s .1s ease both;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--muted);
  max-width: 520px; margin-inline: auto;
  animation: fadeUp .7s .2s ease both;
}
.hero-ctas {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
  animation: fadeUp .7s .3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--gold); color: #fff;
  text-decoration: none; padding: .85rem 2.2rem;
  font-weight: 500; font-size: .95rem; letter-spacing: .04em;
  border-radius: var(--radius); transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

.btn-outline {
  display: inline-block; border: 1.5px solid var(--navy); color: var(--navy);
  text-decoration: none; padding: .85rem 2.2rem;
  font-weight: 500; font-size: .95rem; letter-spacing: .04em;
  border-radius: var(--radius); transition: background .2s, color .2s, transform .15s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-white {
  display: inline-block; background: var(--white); color: var(--navy-mid);
  text-decoration: none; padding: .85rem 2.2rem;
  font-weight: 700; border-radius: var(--radius);
  transition: transform .15s, box-shadow .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* ── STRIP ───────────────────────────────────── */
.strip {
  background: var(--navy-mid);
  color: var(--white);
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .6rem 2.5rem;
  font-size: .88rem; font-weight: 300; letter-spacing: .04em;
  border-top: 1px solid var(--navy-light);
  border-bottom: 1px solid var(--navy-light);
}
.strip strong { color: var(--gold-lt); font-weight: 500; }

/* ── LAYOUT UTILITIES ────────────────────────── */
.padded { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3rem); }
.container { max-width: var(--max); margin-inline: auto; }

.section-label {
  display: block; font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.2; color: var(--navy);
}

.gold-rule { border: none; border-top: 1px solid var(--gold); opacity: .25; margin: 3rem 0; }

/* ── DARK SECTION (services) ─────────────────── */
.section-dark {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3rem);
}
.section-dark .section-title { color: var(--white); }

/* ── TINTED SECTION ──────────────────────────── */
.section-tint {
  background: var(--stone);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3rem);
}

/* ── FEE CARDS ───────────────────────────────── */
.fees-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.fee-card {
  background: var(--white); border-left: 3px solid var(--gold);
  padding: 1.6rem 1.8rem; border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(15,31,61,.07);
}
.fee-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  margin-bottom: .5rem; color: var(--navy);
}
.fee-card .amount { font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.fee-card p { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

/* ── REQUIREMENTS BOX ────────────────────────── */
.requirements-box {
  margin-top: 2rem; background: var(--white);
  border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 2px 12px rgba(15,31,61,.06);
}
.requirements-box h3 {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  margin-bottom: 1rem; color: var(--navy);
}
.req-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.req-list li {
  padding-left: 1.4rem; position: relative;
  font-size: .95rem; color: var(--muted);
}
.req-list li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }
.req-list a { color: var(--gold); }

/* ── SERVICES GRID ───────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1px; margin-top: 2.5rem;
  border: 1px solid var(--navy-light); border-radius: var(--radius); overflow: hidden;
}
.service-item {
  padding: 1.2rem 1.4rem;
  background: var(--navy-mid);
  font-size: .93rem; font-weight: 300; letter-spacing: .02em;
  border-left: 3px solid transparent;
  transition: border-color .2s, background .2s;
  color: #c8d4e8;
}
.service-item:hover { border-color: var(--gold); background: var(--navy-light); color: var(--white); }

/* ── HIGHLIGHTS ──────────────────────────────── */
.highlights-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2.5rem; margin-top: 2.5rem;
}
.highlight-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.highlight-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.highlight-list .icon { color: var(--gold); line-height: 1.65; flex-shrink: 0; }

/* ── MISSION BOX ─────────────────────────────── */
.mission-box {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; font-size: .97rem; line-height: 1.75;
  color: var(--muted); border-top: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(15,31,61,.07);
}
.mission-box strong { color: var(--navy); }

/* ── ABOUT PREVIEW (index) ───────────────────── */
.about-preview {
  display: grid; grid-template-columns: auto 1fr;
  gap: 3rem; align-items: center; margin-top: 2.5rem;
}
.about-preview img {
  width: 180px; height: 180px; object-fit: cover;
  border-radius: 50%; border: 4px solid var(--gold); flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(15,31,61,.2);
}
.about-preview-text h3 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  margin-bottom: .3rem; color: var(--navy);
}
.about-preview-text .title {
  color: var(--gold); font-size: .85rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  background: var(--stone); border-radius: 50px;
  padding: .3rem .9rem; font-size: .82rem; font-weight: 500; color: var(--navy-mid);
}
@media (max-width: 560px) {
  .about-preview { grid-template-columns: 1fr; text-align: center; }
  .about-preview img { margin-inline: auto; }
  .about-tags { justify-content: center; }
}

/* ── CTA BANNER ──────────────────────────────── */
.cta-banner {
  background: var(--gold);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem);
  text-align: center;
}
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--white); margin-bottom: .6rem;
}
.cta-banner p { color: rgba(255,255,255,.88); margin-bottom: 1.6rem; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--navy);
  color: #8a9bbf;
  padding: 2.5rem clamp(1.2rem, 4vw, 3rem);
  font-size: .85rem;
  border-top: 2px solid var(--navy-light);
}
.footer-inner {
  max-width: var(--max); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
}
.footer-brand {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  color: var(--gold); margin-bottom: .4rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: #8a9bbf; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  width: 100%; max-width: var(--max); margin: 1.5rem auto 0;
  padding-top: 1rem; border-top: 1px solid var(--navy-light);
  color: #4a5a7a; font-size: .8rem;
}

/* ── ABOUT PAGE ──────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 4rem; align-items: start;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.about-photo-col { text-align: center; }
.about-photo-col img {
  width: 220px; height: 220px; object-fit: cover;
  border-radius: 50%; border: 5px solid var(--gold);
  display: block; margin-inline: auto;
  box-shadow: 0 6px 28px rgba(15,31,61,.25);
}
.photo-caption { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.photo-caption strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--navy); margin-bottom: .15rem;
}
.about-cta { margin-top: 1.5rem; }

.credentials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.cred-card {
  background: var(--stone); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; border-top: 3px solid var(--gold);
}
.cred-card .cred-label {
  font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem;
}
.cred-card .cred-value {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-weight: 700; color: var(--navy);
}

.languages { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.lang-tag {
  background: var(--navy); color: var(--gold); border-radius: 50px;
  padding: .4rem 1.1rem; font-size: .85rem; font-weight: 500; letter-spacing: .04em;
}

.about-prose { margin-top: 1.8rem; color: var(--muted); line-height: 1.8; }
.about-prose p + p { margin-top: 1rem; }
.about-prose strong { color: var(--navy); }

/* ── RESOURCES PAGE ──────────────────────────── */
.disclaimer {
  background: #eef2fb; border-left: 3px solid var(--navy-light);
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  font-size: .88rem; color: var(--muted); margin-bottom: 3rem; line-height: 1.7;
}
.disclaimer strong { color: var(--navy); }

.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 2rem; margin-top: 1rem;
}
.cert-card {
  background: var(--white); border: 1px solid var(--stone);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 16px rgba(15,31,61,.08);
}
.cert-card-header {
  background: var(--navy); color: var(--white);
  padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: .8rem;
}
.cert-card-header .cert-icon { font-size: 1.4rem; }
.cert-card-header h2 { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.cert-card-header p { font-size: .8rem; color: #9aaac4; margin-top: .15rem; }
.cert-body { padding: 1.5rem; }

.cert-text-block {
  background: var(--stone); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; font-size: .87rem; line-height: 1.85;
  font-family: Georgia, 'Times New Roman', serif; color: #1a2a40;
  border-top: 2px solid var(--gold);
}
.cert-text-block .fill-line {
  display: inline-block; border-bottom: 1px solid #6b7fa0;
  min-width: 120px; height: 1em; vertical-align: bottom;
}
.cert-text-block .fill-line.long { min-width: 220px; }
.cert-text-block .fill-line.date { min-width: 80px; }
.cert-seal-area {
  margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.cert-seal-area .sig-line {
  border-top: 1px solid #6b7fa0; padding-top: .4rem;
  font-size: .8rem; color: var(--muted); text-align: center;
}

.explain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.explain-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; border-top: 3px solid var(--navy-light);
  box-shadow: 0 2px 10px rgba(15,31,61,.07);
}
.explain-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  margin-bottom: .5rem; color: var(--navy);
}
.explain-card p { font-size: .9rem; color: var(--muted); }

.tips-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.tips-list li {
  padding-left: 1.5rem; position: relative;
  font-size: .95rem; color: var(--muted);
}
.tips-list li::before {
  content: '◆'; position: absolute; left: 0;
  color: var(--gold); font-size: .7rem; top: .35rem;
}
.tips-list strong { color: var(--navy); }

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── PRINT ───────────────────────────────────── */
@media print {
  nav, .page-hero, .cta-banner, footer, .disclaimer, .hero { display: none !important; }
  .cert-card { break-inside: avoid; border: 1px solid #ccc; }
  .cert-text-block { background: #f8f8f8; }
}
