/* =========================================================
   COMMUNITY BIRTH CERTIFICATE ASSISTANCE SERVICE
   Design system — navy / gold / ivory, document & registry motif
   ========================================================= */

:root{
  /* Color */
  --navy-deep:  #0B1F3D;
  --navy-mid:   #173863;
  --gold:       #B98F2C;
  --gold-light: #E4C76C;
  --paper:      #F8F6F0;
  --paper-dim:  #EFEAE0;
  --ink:        #1E2430;
  --slate:      #5C6878;
  --white:      #FFFFFF;

  /* Type */
  --font-display: "Source Serif 4", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 3px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 .5em;
}
p{ margin: 0 0 1em; color: var(--ink); }
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Eyebrow / utility label ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display:inline-block;
}
.eyebrow.on-dark{ color: var(--gold-light); }

h2{ font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
h3{ font-size: 1.3rem; }

.section-head{
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.section-head p{ color: var(--slate); font-size: 1.05rem; }

.lede{
  font-size: 1.15rem;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding: .85em 1.7em;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-gold{ background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover{ background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-light{ border-color: rgba(228,199,108,.55); color: var(--paper); }
.btn-outline-light:hover{ border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline-navy{ border-color: var(--navy-mid); color: var(--navy-deep); }
.btn-outline-navy:hover{ border-color: var(--gold); color: var(--navy-deep); background: rgba(185,143,44,.08); }
.btn-row{ display:flex; flex-wrap:wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: var(--navy-deep);
  border-bottom: 2px solid var(--gold);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height: var(--header-h);
}
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand .seal-mini{ width:42px; height:42px; flex-shrink:0; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text .name{
  font-family: var(--font-display);
  color: var(--paper);
  font-weight:700;
  font-size: 1rem;
  letter-spacing:.01em;
}
.brand-text .sub{
  font-size: .66rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}

.main-nav ul{ display:flex; gap: 2rem; }
.main-nav a{
  font-size: .92rem;
  font-weight:500;
  color: rgba(248,246,240,.85);
  position:relative;
  padding: 6px 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background: var(--gold); transition: right .2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after{ right:0; }
.main-nav a[aria-current="page"]{ color: var(--gold-light); }

.nav-toggle{
  display:none;
  background:none; border:none; padding: 8px;
  width:40px; height:40px;
  flex-direction:column; justify-content:center; gap:5px;
}
.nav-toggle span{ display:block; width:100%; height:2px; background: var(--paper); }

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  align-items:center;
  gap: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero h1{
  color: var(--paper);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  margin-bottom: .6em;
}
.hero .tagline{
  color: rgba(248,246,240,.82);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-seal-wrap{ display:flex; justify-content:center; }
.hero-seal-wrap .seal{ width: min(280px, 90%); }

.page-banner{
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--paper);
  padding: 3.2rem 0;
}
.page-banner h1{ color: var(--paper); margin-bottom:.4em; }
.page-banner p{ color: rgba(248,246,240,.8); max-width: 60ch; }

/* ---------- Seal (signature element) ---------- */
.seal{ display:block; }
.seal .ring-outer{ fill:none; stroke: var(--gold); stroke-width: 1.4; }
.seal .ring-dash{ fill:none; stroke: var(--gold-light); stroke-width: 1; stroke-dasharray: 2 4; opacity:.8; }
.seal .ring-inner{ fill:none; stroke: var(--gold); stroke-width: 1; }
.seal .seal-text{
  font-family: var(--font-body);
  font-size: 7.5px;
  fill: var(--gold-light);
  text-transform: uppercase;
  text-anchor: middle;
}
.seal .seal-glyph rect{ fill:none; stroke: var(--gold); stroke-width:2.2; }
.seal .seal-glyph line{ stroke: var(--gold); stroke-width:2; stroke-linecap:round; }
.seal .seal-glyph path{ fill:none; stroke: var(--gold-light); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.seal.on-paper .ring-outer,
.seal.on-paper .ring-inner,
.seal.on-paper .seal-glyph rect,
.seal.on-paper .seal-glyph line{ stroke: var(--navy-mid); }
.seal.on-paper .seal-text{ fill: var(--navy-mid); }
.seal.on-paper .ring-dash{ stroke: var(--gold); }
.seal.on-paper .seal-glyph path{ stroke: var(--gold); }

/* ---------- Disclaimer banner ---------- */
.disclaimer{
  background: var(--paper-dim);
  border-top: 1px solid #DFD8C5;
  border-bottom: 1px solid #DFD8C5;
  padding: 1.4rem 0;
}
.disclaimer .container{
  display:flex; align-items:flex-start; gap: 1rem;
}
.disclaimer-icon{ flex-shrink:0; width:30px; height:30px; margin-top:2px; }
.disclaimer-icon path,.disclaimer-icon circle{ stroke: var(--navy-mid); stroke-width:1.6; fill:none; }
.disclaimer strong{ color: var(--navy-deep); }
.disclaimer p{ margin:0; color: var(--ink); font-size: .96rem; }

.disclaimer-block{
  background: var(--navy-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.2rem;
  display:flex; gap:1.6rem; align-items:flex-start;
  border-left: 4px solid var(--gold);
}
.disclaimer-block .seal{ width:74px; flex-shrink:0; }
.disclaimer-block p{ color: rgba(248,246,240,.85); margin-bottom:0; }
.disclaimer-block strong{ color: var(--gold-light); }

/* ---------- Sections ---------- */
.section{ padding: 5rem 0; }
.section-alt{ background: var(--white); }
.section-navy{ background: var(--navy-deep); color: var(--paper); }
.section-navy h2{ color: var(--paper); }
.section-navy .section-head p{ color: rgba(248,246,240,.75); }

.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); }

/* ---------- Dossier card (folded-corner) ---------- */
.dossier{
  position:relative;
  background: var(--white);
  border: 1px solid #E4DFD2;
  padding: 2rem 1.8rem 1.8rem;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.dossier::before{
  content:"";
  position:absolute; top:0; right:0;
  width:0; height:0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent var(--paper-dim) transparent transparent;
}
.dossier .icon{ width:40px; height:40px; margin-bottom:1.1rem; }
.dossier .icon path,.dossier .icon circle,.dossier .icon line,.dossier .icon rect,.dossier .icon polyline{
  stroke: var(--gold); stroke-width: 1.6; fill:none; stroke-linecap:round; stroke-linejoin:round;
}
.dossier h3{ margin-bottom:.6rem; }
.dossier ul{ margin-top: .8rem; }
.dossier li{
  position:relative; padding-left: 1.2em; margin-bottom:.5em;
  color: var(--slate); font-size: .96rem;
}
.dossier li::before{
  content:""; position:absolute; left:0; top:.55em;
  width:6px; height:6px; background: var(--gold); border-radius:50%;
}

/* ---------- Charter / values list ---------- */
.charter-list{ border-top: 1px solid #DFD8C5; }
.charter-item{
  display:grid; grid-template-columns: 70px 1fr;
  gap: 1.4rem; align-items:start;
  padding: 1.6rem 0;
  border-bottom: 1px solid #DFD8C5;
}
.charter-num{
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
  font-weight:600;
}
.charter-item h3{ margin-bottom:.3rem; font-size:1.1rem; }
.charter-item p{ color: var(--slate); margin:0; font-size:.95rem; }

/* ---------- Vision / Mission panels ---------- */
.vm-panel{
  background: var(--navy-deep);
  color: var(--paper);
  padding: 3rem 2.4rem;
  border-radius: var(--radius);
  position: relative;
}
.vm-panel + .vm-panel{ background: var(--navy-mid); }
.vm-panel .quote-mark{
  font-family: var(--font-display);
  font-size: 4rem; color: var(--gold); line-height:0; display:block; margin-bottom: .4rem;
}
.vm-panel p{ font-size: 1.2rem; color: var(--paper); font-family: var(--font-display); line-height:1.5; margin:0; }
.vm-panel .eyebrow{ color: var(--gold-light); }

/* ---------- Counties ---------- */
.county-toolbar{
  display:flex; flex-wrap:wrap; gap: .9rem 1rem; align-items:center;
  margin-bottom: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #DFD8C5;
}
.county-search{
  position:relative; flex: 1 1 260px;
}
.county-search input{
  width:100%; padding: .8em 1em .8em 2.6em;
  border: 1.5px solid #D9D2C0; border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body); font-size: .95rem;
  color: var(--ink);
}
.county-search input:focus{ border-color: var(--gold); outline:none; }
.county-search svg{
  position:absolute; left: .85em; top:50%; transform: translateY(-50%);
  width:16px; height:16px; stroke: var(--slate); fill:none; stroke-width:1.8;
}
.region-pills{ display:flex; flex-wrap:wrap; gap:.5rem; }
.region-pill{
  font-size: .82rem; font-weight:600;
  padding: .5em 1em;
  border: 1.4px solid #D9D2C0;
  border-radius: 999px;
  background: var(--white); color: var(--slate);
  transition: all .15s ease;
}
.region-pill:hover{ border-color: var(--gold); color: var(--navy-deep); }
.region-pill.active{ background: var(--navy-deep); border-color: var(--navy-deep); color: var(--paper); }

.region-group{ margin-bottom: 2.6rem; }
.region-group-title{
  display:flex; align-items:baseline; gap:.7em;
  font-family: var(--font-display); font-weight:600;
  color: var(--navy-deep); font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom:.5rem; border-bottom: 1px solid #DFD8C5;
}
.region-count{ font-family: var(--font-body); font-size:.78rem; color: var(--slate); font-weight:500; text-transform:uppercase; letter-spacing:.06em; }

.county-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.county-chip{
  display:flex; align-items:center; gap: .7rem;
  background: var(--white);
  border: 1px solid #E4DFD2;
  border-radius: var(--radius);
  padding: .7em .9em;
  transition: border-color .15s ease, transform .15s ease;
}
.county-chip:hover{ border-color: var(--gold); transform: translateY(-1px); }
.county-chip .code{
  font-family: var(--font-display); font-weight:600;
  color: var(--gold); font-size: .82rem;
  background: var(--paper-dim);
  padding: .25em .5em; border-radius: 2px; flex-shrink:0;
}
.county-chip .cname{ font-size: .92rem; color: var(--ink); }
.no-results{ display:none; color: var(--slate); padding: 2rem 0; text-align:center; }
.no-results.show{ display:block; }

/* ---------- FAQ ---------- */
.faq-list{ border-top: 1px solid #DFD8C5; }
.faq-item{ border-bottom: 1px solid #DFD8C5; }
.faq-q{
  width:100%; background:none; border:none; text-align:left;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding: 1.4rem 0; font-family: var(--font-display); font-size: 1.05rem; font-weight:600;
  color: var(--navy-deep);
}
.faq-q .indicator{
  flex-shrink:0; width:24px; height:24px; position:relative;
}
.faq-q .indicator::before,.faq-q .indicator::after{
  content:""; position:absolute; background: var(--gold);
  top:50%; left:50%; transform:translate(-50%,-50%);
}
.faq-q .indicator::before{ width:14px; height:2px; }
.faq-q .indicator::after{ width:2px; height:14px; transition: transform .2s ease; }
.faq-item.open .indicator::after{ transform: translate(-50%,-50%) rotate(90deg) scale(0); }
.faq-a{
  max-height:0; overflow:hidden; transition: max-height .25s ease;
}
.faq-a-inner{ padding-bottom: 1.5rem; color: var(--slate); max-width: 65ch; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items:start; }
.info-card{
  background: var(--navy-deep); color: var(--paper);
  border-radius: var(--radius); padding: 2.4rem;
}
.info-row{ display:flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(228,199,108,.2); }
.info-row:last-child{ border-bottom:none; }
.info-row .icon{ width:22px; height:22px; flex-shrink:0; margin-top:2px; }
.info-row .icon path,.info-row .icon circle,.info-row .icon line,.info-row .icon rect{ stroke: var(--gold-light); stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.info-row .label{ font-size:.74rem; text-transform:uppercase; letter-spacing:.1em; color: var(--gold-light); margin-bottom:.25em; }
.info-row .value{ color: var(--paper); font-size:.98rem; }
.info-row a{ border-bottom: 1px solid rgba(248,246,240,.3); }
.info-row a:hover{ border-color: var(--gold-light); }

.form-card{ background: var(--white); border: 1px solid #E4DFD2; padding: 2.4rem; border-radius: var(--radius); }
.field{ margin-bottom: 1.4rem; }
.field label{ display:block; font-size:.82rem; font-weight:600; color: var(--navy-deep); margin-bottom:.45em; }
.field input,.field select,.field textarea{
  width:100%; padding:.8em 1em; border:1.5px solid #D9D2C0; border-radius: var(--radius);
  font-family: var(--font-body); font-size:.96rem; color: var(--ink); background: var(--paper);
}
.field input:focus,.field select:focus,.field textarea:focus{ border-color: var(--gold); outline:none; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-note{ font-size:.85rem; color: var(--slate); margin-top: 1rem; }
.form-success{
  display:none; background: #F1F6EC; border:1px solid #C9DDB0; color:#3A5A28;
  padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom:1.4rem; font-size:.92rem;
}
.form-success.show{ display:block; }
.form-error{
  display:none; background: #FDE8E8; border:1px solid #F5AAAA; color:#8B1A1A;
  padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom:1.4rem; font-size:.92rem;
}
.form-error.show{ display:block; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: rgba(248,246,240,.78); border-top: 3px solid var(--gold); }
.footer-top{ padding: 3.5rem 0 2.5rem; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; }
.footer-brand{ display:flex; gap:.8rem; margin-bottom: 1rem; }
.footer-brand .seal-mini{ width:48px; height:48px; flex-shrink:0; }
.footer-brand .name{ font-family: var(--font-display); color: var(--paper); font-weight:700; font-size:1.05rem; }
.footer-brand .sub{ font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-light); margin-top:3px; }
.site-footer .col-title{ font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; color: var(--gold-light); margin-bottom:1rem; font-weight:700; }
.site-footer .col-list li{ margin-bottom:.65rem; font-size:.92rem; }
.site-footer .col-list a:hover{ color: var(--gold-light); }
.site-footer p{ color: rgba(248,246,240,.7); font-size:.92rem; }
.footer-bottom{
  border-top: 1px solid rgba(228,199,108,.18);
  padding: 1.6rem 0; font-size:.82rem; color: rgba(248,246,240,.55);
}
.footer-bottom .container{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; }
.footer-disclaimer{ max-width: 760px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s 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: 980px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .county-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .hero .container{ grid-template-columns: 1fr; padding-top:3.5rem; padding-bottom:3.5rem; }
  .hero-seal-wrap{ order:-1; }
  .hero-seal-wrap .seal{ width:160px; }
}
@media (max-width: 760px){
  .main-nav{
    position:fixed; inset: var(--header-h) 0 0 auto;
    width:78%; max-width:320px; height:calc(100vh - var(--header-h));
    background: var(--navy-deep); border-left:1px solid rgba(228,199,108,.2);
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y:auto;
  }
  .main-nav.open{ transform:none; }
  .main-nav ul{ flex-direction:column; gap:0; padding: 1.5rem 1.8rem; }
  .main-nav a{ display:block; padding: .9rem 0; border-bottom:1px solid rgba(228,199,108,.12); }
  .main-nav a::after{ display:none; }
  .nav-toggle{ display:flex; }
  .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; }
  .county-grid{ grid-template-columns: 1fr; }
  .charter-item{ grid-template-columns: 44px 1fr; }
  .field-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .disclaimer-block{ flex-direction:column; }
}
@media (min-width: 1440px){
  :root{ --container: 1320px; }
  body{ font-size: 17px; }
}
