/* ============================================================
   Meridian Paralegal Group | Shared styles
   ============================================================ */
:root {
  --navy: #13233f;
  --navy-2: #1e3459;
  --navy-3: #2a4573;
  --gold: #b8964f;
  --gold-2: #cfb47a;
  --gold-soft: #efe6d2;
  --paper: #fbf9f4;
  --paper-2: #f4efe4;
  --ink: #1f2430;
  --muted: #5b6272;
  --rule: #e2dccd;
  --white: #ffffff;
  --serif: "Libre Baskerville", "GFS Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(19, 35, 63, 0.35);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy); color: #dfe4ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 8px 24px -20px rgba(19,35,63,0.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-size: 0.9rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav-links .btn { padding: 0.65rem 1.2rem; border-bottom: 0; color: var(--white); }
.nav-links .btn:hover, .nav-links .btn[aria-current="page"] { color: var(--white); border-bottom: 0; }
.nav-links .btn[aria-current="page"] { background: var(--navy-2); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); content: ""; transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--white);
  background: var(--navy) center / cover no-repeat;
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(19,35,63,0.96) 0%, rgba(19,35,63,0.82) 48%, rgba(19,35,63,0.45) 100%);
}
.page-hero h1 { color: var(--white); max-width: 40rem; }
.page-hero .lead { color: #d6dcea; }
.breadcrumb { font-size: 0.8rem; color: #b9c2d6; margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--gold-2); text-decoration: none; }

/* Cards */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.8rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card .num {
  font-family: var(--serif); color: var(--gold); font-size: 1.05rem; letter-spacing: 0.08em; margin-bottom: 0.6rem; display: block;
}
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: 0.7rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* CTA band */
.cta-band {
  position: relative; color: var(--white); text-align: center;
  background: var(--navy) center / cover no-repeat;
  padding: clamp(4rem, 9vw, 6rem) 0; isolation: isolate;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(19,35,63,0.82); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d6dcea; max-width: 38rem; margin: 0 auto 1.8rem; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: #0e1a30; color: #aab4c8; font-size: 0.9rem; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--sans); color: var(--white); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #aab4c8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand span { font-family: var(--serif); color: var(--white); font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8rem;
}
.footer-disclaimer { font-size: 0.78rem; color: #8590a6; max-width: 46rem; margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 0; }
  .nav-links .btn { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

/* ---------- Page styles ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  background: var(--navy) center right / cover no-repeat;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  padding: 5rem 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(14,26,48,0.97) 0%, rgba(19,35,63,0.88) 42%, rgba(19,35,63,0.35) 78%, rgba(19,35,63,0.15) 100%);
}
.hero-inner { max-width: var(--max); }
.hero h1 { color: var(--white); max-width: 38rem; }
.hero .lead { color: #d6dcea; max-width: 34rem; margin-bottom: 2rem; }

.trust { background: var(--white); border-bottom: 1px solid var(--rule); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div {
  padding: 1.7rem 1.4rem; border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.trust-grid > div:first-child { border-left: 0; padding-left: 0; }
.trust-grid strong { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 1.05rem; }
.trust-grid span { font-size: 0.86rem; color: var(--muted); }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.8rem; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }

.service-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.service-img { aspect-ratio: 4 / 3; background: var(--navy-2) center / cover no-repeat; transition: transform 0.6s; }
.service-card:hover .service-img { transform: scale(1.04); }
.service-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; background: var(--white); position: relative; }
.service-body .num { font-family: var(--serif); color: var(--gold); letter-spacing: 0.08em; }
.service-body h3 { margin: 0.3rem 0 0.5rem; }
.service-body p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.service-from { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); border-top: 1px solid var(--rule); padding-top: 0.9rem; margin-top: 0.4rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-img { aspect-ratio: 4 / 5; background: var(--navy) center / cover no-repeat; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.split-img::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(207,180,122,0.65); border-radius: 2px; }
.price-tag { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.4rem 0 1.6rem; }
.price-tag .amount { font-family: var(--serif); font-size: 2.6rem; color: var(--navy); line-height: 1; }
.price-tag .per { color: var(--muted); font-size: 0.9rem; }

.steps { margin-top: 2.8rem; }
.step { border-top: 2px solid var(--navy); padding-top: 1.4rem; }
.step-num { font-family: var(--serif); color: var(--gold); font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

.volume { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.volume-lead p { color: #c4ccdc; margin: 0; }
.volume-tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(184,150,79,0.5); }
.tier { padding: 2rem 1rem; text-align: center; border-left: 1px solid rgba(184,150,79,0.35); }
.tier:first-child { border-left: 0; }
.tier .pct { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--gold-2); line-height: 1; }
.tier .lbl { display: block; margin-top: 0.6rem; font-size: 0.85rem; color: #dfe4ee; }

@media (max-width: 1020px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-grid > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .section-head, .split, .volume { grid-template-columns: 1fr; gap: 1.6rem; }
  .split-img { aspect-ratio: 16 / 10; }
  .hero { min-height: 0; padding: 4.5rem 0; }
  .hero::before { background: linear-gradient(180deg, rgba(14,26,48,0.9) 0%, rgba(19,35,63,0.85) 100%); }
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .trust-grid > div:first-child { border-top: 0; }
  .volume-tiers { grid-template-columns: 1fr; }
  .tier { border-left: 0; border-top: 1px solid rgba(184,150,79,0.35); }
  .tier:first-child { border-top: 0; }
}
