/* ══════════════════════════════════════════
   CIVICNOW GLOBAL STYLESHEET v2
   Font: DM Serif Display (headings) + DM Sans (body)
   Palette: Navy #002147 · Green #3a7d44 · Gold #C9A227
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --navy:       #002147;
  --navy-mid:   #0a3260;
  --navy-lt:    #0d4080;
  --green:      #3a7d44;
  --green-lt:   #4e9e5a;
  --gold:       #C9A227;
  --gold-lt:    #e8c23a;
  --gold-dim:   rgba(201,162,39,.15);
  --bg:         #f4f6fb;
  --bg-alt:     #eef1f7;
  --white:      #ffffff;
  --border:     #dde3ed;
  --border-lt:  #eceff6;
  --muted:      #5a6478;
  --text:       #1a1a2e;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 2px 12px rgba(0,33,71,.08);
  --shadow-md:  0 4px 20px rgba(0,33,71,.12);
  --shadow-lg:  0 8px 36px rgba(0,33,71,.18);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; background: var(--bg); }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

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

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
header {
  background: var(--navy);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  gap: 16px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
  height: 100px;
  width: auto;
  transition: opacity .2s, transform .2s;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.25));
}

.logo-img:hover { opacity: .9; transform: scale(1.14); }

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav a { text-decoration: none; flex-shrink: 0; }

.nav-box {
  padding: 7px 14px;
  border-radius: 7px;
  color: rgba(255,255,255,.78);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background .16s, color .16s;
  white-space: nowrap;
}

.nav-box:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.main-nav a.active .nav-box {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

@media (min-width: 769px) {
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0,33,71,.97);
  }
  body { padding-top: 68px; }
}

@media (max-width: 768px) {
  header { height: auto; padding: 10px 14px; }
  .logo-img { height: 76px; }
  .main-nav { gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-box { padding: 5px 9px; font-size: 0.73rem; }
}

/* ══════════════════════════════════════════
   NEUTRALITY BANNER
══════════════════════════════════════════ */
.neutrality {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  letter-spacing: .01em;
}

.neutrality svg { flex-shrink: 0; color: #b45309; opacity: .8; }

@media (max-width: 600px) {
  .neutrality { padding: 6px 12px; font-size: 0.68rem; }
}

/* ══════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 28px 16px;
}

@media (min-width: 540px)  { .container { padding: 36px 24px; } }
@media (min-width: 769px)  { .container { padding: 52px 28px; } }

/* ══════════════════════════════════════════
   HOMEPAGE HERO
══════════════════════════════════════════ */
.home-hero {
  background: url('mass.jpeg') center top / cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 88px 28px 68px;
}

/* Dark gradient overlay — heavy at top for text legibility, lightens toward bottom */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      rgba(0,21,48,.90) 0%,
      rgba(0,33,71,.84) 38%,
      rgba(0,33,71,.68) 68%,
      rgba(0,20,50,.75) 100%
    ),
    radial-gradient(ellipse 600px 400px at 85% 15%, rgba(201,162,39,.11) 0%, transparent 55%);
  pointer-events: none;
}

/* Subtle grid texture */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.home-hero-inner {
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 5px 14px;
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 3px;
  background: rgba(201,162,39,.08);
}

.home-hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: #fff;
  line-height: 1.08;
  margin-bottom: 22px;
  font-weight: 400;
  letter-spacing: -.01em;
}

.home-hero-accent { color: var(--gold); font-style: italic; }

.home-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.7);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.home-search-wrap { max-width: 580px; }

.home-search-inner {
  display: flex;
  background: #fff;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  
}

.home-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.home-search-inner input {
  flex: 1;
  border: none;
  padding: 15px 15px 15px 46px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  background: transparent;
  min-width: 0;
  transition: box-shadow .2s;
}

.home-input-error {
  animation: home-shake .35s ease;
  box-shadow: 0 0 0 3px rgba(229,62,62,.5) inset !important;
}

@keyframes home-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.home-search-inner button {
  padding: 15px 26px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s;
  flex-shrink: 0;
}

.home-search-inner button:hover { background: var(--gold-lt); }

.home-search-hint {
  font-size: 0.73rem;
  color: rgba(255,255,255,.4);
  margin-top: 10px;
}

.home-hero-stats {
  display: flex;
  gap: 0;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}

.home-stat {
  padding: 0 36px 0 0;
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 36px;
}

.home-stat:last-child { border-right: none; margin-right: 0; }

.home-stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 5px;
}

.home-stat-label {
  font-size: 0.76rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

@media (max-width: 600px) {
  .home-hero { padding: 52px 16px 44px; }
  .home-hero-text { text-align: center; }
  .home-hero-eyebrow { margin-left: auto; margin-right: auto; }
  .home-hero-sub { margin-left: auto; margin-right: auto; }
  .home-search-wrap { margin-left: auto; margin-right: auto; }
  .home-stat { padding: 8px 16px 8px 0; border-right: none; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); width: 50%; }
  .home-stat-num { font-size: 2rem; }
  .home-search-inner { flex-wrap: wrap; }
  .home-search-inner button { width: 100%; padding: 13px; }
}

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.how-section { padding: 0 0 56px; }
.how-header { margin-bottom: 36px; }
.how-header-center { text-align: center; }

.how-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.how-header h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); color: var(--navy); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.how-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
  position: relative;
}

.how-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.how-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 4rem;
  color: var(--navy);
  opacity: .06;
  position: absolute;
  top: 8px; right: 16px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.how-icon-wrap {
  width: 100%;
  height: 248px;
  overflow: hidden;
  background: var(--bg-alt);
}

.how-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.how-card:hover .how-icon-wrap img { transform: scale(1.05); }

.how-card-text { padding: 20px 22px 24px; }

.how-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 7px; }

.how-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════
   LEVELS SECTION
══════════════════════════════════════════ */
.levels-section { padding: 0 0 56px; }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.level-card {
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.level-card-icon { font-size: 1.7rem; margin-bottom: 14px; line-height: 1; }
.level-card h3 { font-size: 1rem; margin-bottom: 8px; }
.level-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.58; margin: 0; }

.level-card--local::before   { background: linear-gradient(90deg, #b94a1d, #e0773b); }
.level-card--state::before   { background: linear-gradient(90deg, #2a8c5e, #43b58a); }
.level-card--statewide::before { background: linear-gradient(90deg, #4a306d, #7b52a8); }
.level-card--federal::before { background: linear-gradient(90deg, #1a5bac, #3b87d8); }

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3a70 60%, #1a5090 100%);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.12), transparent 65%);
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-text h2 { color: #fff; font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.6); font-size: 0.9rem; margin: 0; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s, transform .16s;
  flex-shrink: 0;
}

.cta-btn:hover { background: var(--gold-lt); transform: translateY(-2px); opacity: 1.9; transform: scale(1.14);}

@media (max-width: 600px) {
  .cta-banner { padding: 36px 22px; }
  .cta-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════
   INNER PAGE HERO
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  padding: 60px 36px;
  text-align: center;
  border-radius: var(--radius-lg);
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('mass.jpeg') center/cover no-repeat;
  opacity: .14;
  border-radius: var(--radius-lg);
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   LEGACY SEARCH BOX (index.html fallback)
══════════════════════════════════════════ */
.search-box { margin-top: 22px; position: relative; z-index: 1; }

.search-box input {
  padding: 12px 16px;
  width: 260px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}

.search-box button {
  padding: 12px 20px;
  border: none;
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  margin-left: 8px;
  transition: background .18s;
}

.search-box button:hover { background: var(--gold-lt); }

@media (max-width: 600px) {
  .search-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .search-box input { width: 100%; margin: 0; }
  .search-box button { width: 100%; margin: 0; }
}

/* ══════════════════════════════════════════
   INFO SECTION (legacy cards)
══════════════════════════════════════════ */
.info-section { margin-top: 48px; }
.info-section h2 { text-align: center; margin-bottom: 32px; font-size: 1.9rem; }

.info-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.info-box {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}

.info-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-box img { width: 100%; max-width: 180px; height: 130px; object-fit: cover; border-radius: 8px; }
.info-box h3 { font-size: 1.6rem; color: var(--gold); margin: 0; }
.info-box p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ══════════════════════════════════════════
   FEATURE SECTION
══════════════════════════════════════════ */
.feature { margin-top: 44px; }

.feature-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3572 100%);
  color: white;
  padding: 52px 44px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.14), transparent 70%);
  pointer-events: none;
}

.feature-box h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 14px; position: relative; }
.feature-box p { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto; font-size: 0.95rem; line-height: 1.65; position: relative; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: #011428;
  color: rgba(255,255,255,.65);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  padding: 60px 28px 44px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 56px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  margin-top: 16px;
  max-width: 240px;
}

.footer-logo { height: 62px; width: auto; opacity: .88; filter: brightness(1.08);   transition: opacity .2s, transform .2s; filter: drop-shadow(0 1px 4px rgba(0,0,0,.25));}
.footer-logo:hover { opacity: 1.9; transform: scale(1.24); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.84rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 9px;
  transition: color .15s;
}

.footer-col a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  max-width: 1100px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  color: rgba(255,255,255,.3);
}

.footer-bottom a { color: rgba(255,255,255,.4); transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }

footer:not(.site-footer) {
  background: #011428;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 32px 20px;
  margin-top: 64px;
  font-size: 0.82rem;
  line-height: 1.9;
  border-top: 1px solid rgba(255,255,255,.06);
}

footer:not(.site-footer) a { color: rgba(255,255,255,.5); }
footer:not(.site-footer) a:hover { color: #fff; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 44px 18px 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */
.values-section { text-align: center; margin-top: 52px; }
.values-section h2 { font-size: 2rem; margin-bottom: 32px; }

.values-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; }
.value-card p { font-size: 0.87rem; color: var(--muted); margin: 0; line-height: 1.6; }

.team-section { text-align: center; margin-top: 52px; }
.team-section h2 { font-size: 2rem; margin-bottom: 32px; }

.team-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-member {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  min-width: 160px;
  max-width: 200px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}

.team-member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-member h3 { font-size: 1rem; color: var(--navy); margin-bottom: 7px; }
.team-member p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.5; }

.contact-section { text-align: center; margin-top: 60px; }
.contact-section h2 { font-size: 2rem; margin-bottom: 12px; }
.contact-section > p { color: var(--muted); margin-bottom: 24px; }

.contact-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.contact-btn {
  padding: 12px 28px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.contact-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

@media (max-width: 600px) { .contact-btn { width: 100%; } }

/* ══════════════════════════════════════════
   FAQs PAGE
══════════════════════════════════════════ */
.faq-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  max-width: 1100px;
  margin: auto;
  padding: 52px 24px;
}

.faq-sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
}

.faq-sidebar h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.faq-sidebar ul { list-style: none; padding: 0; margin: 0; }
.faq-sidebar li { margin-bottom: 4px; }

.faq-sidebar a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all .15s;
}

.faq-sidebar a:hover { background: rgba(0,33,71,.06); color: var(--navy); }

.faq-content h1 { font-size: 2.2rem; margin-bottom: 10px; }
.faq-intro { margin-bottom: 28px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.faq-search {
  width: 100%;
  max-width: 420px;
  padding: 11px 16px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}

.faq-search:focus { border-color: #1a5bac; box-shadow: 0 0 0 3px rgba(26,91,172,.1); }

.faq-category {
  margin-top: 44px;
  margin-bottom: 18px;
  font-size: 1.25rem;
  color: var(--navy);
  padding-bottom: 9px;
  border-bottom: 2px solid var(--gold);
  display: block;
}

.faq-item {
  margin-bottom: 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}

.faq-item[open] { border-color: var(--border); background: var(--white); box-shadow: var(--shadow); }

.faq-content a { color: #1a5bac; text-decoration: underline; }
.faq-content a:hover { color: #0d3572; }

summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 16px;
  position: relative;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
  transition: color .15s;
  border-radius: 8px;
  user-select: none;
}

summary:hover { color: #1a5bac; }
summary::marker { display: none; }
summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
  font-family: 'DM Serif Display', serif;
}

details[open] summary::after { content: "−"; }

.faq-item p { padding: 0 16px 14px; margin: 0; line-height: 1.68; font-size: 0.91rem; color: #444; }
.faq-item ul { padding: 0 16px 14px 32px; line-height: 1.68; font-size: 0.91rem; }

.faq-contact {
  margin-top: 60px;
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.faq-contact h2 { margin-bottom: 10px; }
.faq-contact p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.faq-contact a { color: #1a5bac; text-decoration: underline; }

@media (max-width: 768px) {
  .faq-wrapper { grid-template-columns: 1fr; padding: 28px 16px; gap: 28px; }
  .faq-sidebar { position: static; }
}

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,33,71,.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .18s;
  pointer-events: none;
  z-index: 1000;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }
.back-to-top:active { transform: scale(.92); }

@media (max-width: 480px) {
  .back-to-top { bottom: 18px; right: 14px; width: 40px; height: 40px; }
}

/* ══════════════════════════════════════════
   FINDREPCSS TOKENS
══════════════════════════════════════════ */
:root {
  --fr-federal:   #1a5bac;
  --fr-state:     #2a8c5e;
  --fr-local:     #b94a1d;
  --fr-navy:      #002147;
  --fr-gold:      #C9A227;
  --fr-border:    #dde3ed;
  --fr-bg:        #f4f6fb;
  --fr-white:     #ffffff;
  --fr-muted:     #5a6478;
  --fr-radius:    12px;
  --fr-shadow:    0 2px 12px rgba(0,33,71,.08);
  --fr-shadow-lg: 0 8px 28px rgba(0,33,71,.16);
}

/* ── Homepage search error message ── */
.home-search-error {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffaaaa;
  margin: 6px 0 0;
  animation: home-shake .35s ease;
}

.home-search-error.visible { display: block; }


/* ══════════════════════════════════════════
   PRIVACY POLICY PAGE STYLES
══════════════════════════════════════════ */

body.privacy-policy {
  font-family: 'DM Sans', sans-serif;
  background-color: #fff;
  color: #333;
}

/* Wrapper layout */
.privacy-policy .faq-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Sidebar styling */
.privacy-policy .faq-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  border-right: 1px solid #e0e0e0;
  padding-right: 1.5rem;
}

.privacy-policy .faq-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.privacy-policy .faq-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-policy .faq-sidebar ul li {
  margin-bottom: 0.5rem;
}

.privacy-policy .faq-sidebar ul li a {
  text-decoration: none;
  color: #0057b7;
  font-weight: 500;
  transition: color 0.2s;
}

.privacy-policy .faq-sidebar ul li a:hover {
  text-decoration: underline;
  color: #003a8c;
}

/* Main content styling */
.privacy-policy .faq-content {
  flex: 1;
  max-width: 800px;
}

/* Page header */
.privacy-policy .faq-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.privacy-policy .faq-content .faq-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* FAQ / details styling */
.privacy-policy .faq-item {
  margin-bottom: 1.5rem;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}

.privacy-policy .faq-item[open] {
  border-left-color: #0057b7;
}

.privacy-policy .faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 1.05rem;
  list-style: none;
}

.privacy-policy .faq-item summary::-webkit-details-marker {
  display: none; /* Remove default arrow */
}

.privacy-policy .faq-item[open] summary::after {
  content: "▲";
  float: right;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.privacy-policy .faq-item summary::after {
  content: "▼";
  float: right;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.privacy-policy .faq-item p,
.privacy-policy .faq-item li {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.privacy-policy .faq-item ul {
  padding-left: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .privacy-policy .faq-wrapper {
    display: block;
  }

  .privacy-policy .faq-sidebar {
    position: static;
    border-right: none;
    padding: 0 0 2rem 0;
  }
}




/* for local, state, statewide, and federal on homescreen*/

.level-card {
  text-decoration: none;
  color: inherit;
  display: block;
}





/* Counter base on homepage */
.home-stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}

/* Pop animation trigger */
.counter-pop {
  animation: counterPop 0.4s ease;
}

/* Keyframes for pop */
@keyframes counterPop {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* blinking cursor on About page */
.typewriter::after {
  content:" ";
  margin-left: 4px;
  animation: blink 2s infinite;
  
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


/* survey on homepage */
.cta-button {
  display: inline-block;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  
  background: linear-gradient(45deg, #ff003c, #ff8c00, #ffd700);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  animation: gradientMove 3s ease infinite, glow 1.5s ease-in-out infinite alternate, shake 2s infinite;
}

.cta-button:hover {
  transform: scale(1.1);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow {
  from { text-shadow: 0 0 5px rgba(255,0,60,0.7); }
  to { text-shadow: 0 0 20px rgba(255,140,0,1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  50% { transform: translateX(1px); }
  75% { transform: translateX(-1px); }
}

/* ── Floating Feedback Button ── */
.feedback-fab {
  position: fixed;
  bottom: 84px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(201,162,39,.45);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .18s, box-shadow .18s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.feedback-fab--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.feedback-fab:hover {
  background: #e6b82a;
  box-shadow: 0 6px 24px rgba(201,162,39,.55);
  color: var(--navy);
}
.feedback-fab:active { transform: scale(.95); }

@media (max-width: 480px) {
  .feedback-fab {
    bottom: 72px;
    right: 14px;
    padding: 9px 13px;
    font-size: 0.78rem;
  }
}


/* ── Footer Social Links ── */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.footer-social-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .16s, color .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.footer-social-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
