/* The Center of Balance — Static Site Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

:root {
  --background: #f5f0e8;
  --foreground: #2d3748;
  --card: #ffffff;
  --primary: #4a6741;
  --primary-hover: #3d5636;
  --primary-foreground: #faf8f3;
  --muted: #ebe4d6;
  --muted-foreground: #5a6b5d;
  --warm: #ede4d0;
  --sage: #c8d6c0;
  --sage-foreground: #2d3748;
  --accent: #d4c9a8;
  --border: #d9d2c2;
  --radius: 0.625rem;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===== Top Info Bar ===== */
.topbar { background: var(--foreground); color: var(--primary-foreground); font-size: 0.8125rem; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; gap: 0.5rem; }
.topbar-info { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 0.375rem; color: inherit; transition: opacity 0.2s; }
.topbar-info a:hover { opacity: 0.8; }
.topbar-sep { opacity: 0.3; }
.topbar-social { display: flex; gap: 0.75rem; }
.topbar-social a { transition: opacity 0.2s; }
.topbar-social a:hover { opacity: 0.75; }
.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-lg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 640px) { .topbar-sep, .topbar-address { display: none; } }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 253, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 1024px) { .header .container { height: 5rem; } }
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 3rem; width: auto; }
@media (min-width: 1024px) { .header-logo img { height: 3.5rem; } }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(26, 34, 56, 0.7); border-radius: 0.375rem; transition: all 0.2s;
}
.nav-link:hover { color: var(--foreground); background: var(--muted); }
.nav-link.active { color: var(--primary); background: rgba(30, 58, 138, 0.06); }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: block; } }

.mobile-toggle {
  display: inline-flex; padding: 0.5rem; border-radius: 0.375rem;
  background: transparent; border: none; color: var(--foreground);
}
.mobile-toggle:hover { background: var(--muted); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--background); padding: 1rem; }
.nav-mobile.open { display: block; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile a {
  display: block; padding: 0.625rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(26, 34, 56, 0.7); border-radius: 0.375rem; margin-bottom: 0.25rem;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--primary); background: rgba(30, 58, 138, 0.06); }
.nav-mobile .btn { margin-top: 0.75rem; width: 100%; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 600; border: 1px solid transparent; transition: all 0.2s;
  text-align: center; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(30, 58, 138, 0.05); }
.btn-light { background: var(--primary-foreground); color: var(--foreground); }
.btn-light:hover { background: rgba(255, 255, 255, 0.9); }
.btn-light-outline { background: transparent; color: var(--primary-foreground); border-color: var(--primary-foreground); }
.btn-light-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 0.9rem 2.25rem; font-size: 1.0625rem; }

/* ===== Page Hero ===== */
.page-hero { background: var(--muted); padding: 4rem 0; text-align: center; }
@media (min-width: 768px) { .page-hero { padding: 5rem 0; } }
.page-hero h1 { font-size: 2.25rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-foreground); max-width: 42rem; margin-left: auto; margin-right: auto; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section.bg-muted { background: var(--muted); }
.section.bg-warm { background: var(--warm); }
.section.bg-sage { background: var(--sage); color: var(--sage-foreground); }
.section.bg-primary { background: var(--primary); color: var(--primary-foreground); }
.narrow { max-width: 56rem; margin: 0 auto; }
.text-center { text-align: center; }
.muted-text { color: var(--muted-foreground); }
.section.bg-sage .muted-text { color: var(--sage-foreground); }

.section h2 { font-size: 1.875rem; }
@media (min-width: 768px) { .section h2 { font-size: 2.25rem; } }
.section h3 { font-size: 1.25rem; }
.lead { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted-foreground); }

/* ===== Home Hero ===== */
.home-hero { background: var(--muted); padding: 4rem 0; overflow: hidden; }
@media (min-width: 768px) { .home-hero { padding: 6rem 0; } }
.home-hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .home-hero-grid { grid-template-columns: 1fr 1fr; } }
.home-hero h1 { font-size: 2.5rem; line-height: 1.05; }
@media (min-width: 768px) { .home-hero h1 { font-size: 3.25rem; } }
@media (min-width: 1024px) { .home-hero h1 { font-size: 3.75rem; } }
.home-hero img { border-radius: 1.25rem; box-shadow: var(--shadow-xl); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.fine-print { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 1rem; }

/* ===== Cards & Grids ===== */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-5 { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.5rem; box-shadow: var(--shadow-sm); color: var(--foreground);
}
.card-tall { padding: 2rem; }
.card-feature { text-align: center; padding: 2rem; }
.card-feature .emoji { font-size: 2rem; margin-bottom: 0.75rem; }
.card-feature h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.card-feature p { font-size: 0.875rem; color: var(--muted-foreground); }

.check-item, .bullet-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: var(--card); border-radius: 0.75rem; padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm); font-size: 0.875rem; font-weight: 500;
}
.check-item .check, .bullet-item .check {
  flex-shrink: 0; width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: rgba(30, 58, 138, 0.1); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem;
}

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.375rem 0; font-size: 0.9375rem; }
.list-clean li::before { content: "✓"; color: var(--primary); font-weight: 700; }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: 1.25rem; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.numbered-item {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--muted);
  border-radius: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
.numbered-item .num {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 999px;
  background: rgba(30, 58, 138, 0.1); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem;
}

.pill-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  padding: 1.25rem; text-align: center; font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.acronym-line { color: var(--primary); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.02em; text-align: center; }
.acronym-line strong { font-weight: 800; }

.testimonial {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.testimonial .quote-icon { width: 2rem; height: 2rem; color: rgba(30, 58, 138, 0.2); margin-bottom: 1rem; }
.testimonial p { font-style: italic; line-height: 1.65; }

.kicker { color: var(--muted-foreground); font-size: 1.125rem; margin-top: 1rem; line-height: 1.65; max-width: 48rem; margin-left: auto; margin-right: auto; }

/* ===== Contact Form ===== */
.form-grid { display: grid; gap: 3rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 1024px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }
.form-field label { font-size: 0.875rem; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.625rem 0.75rem; font-size: 0.875rem; font-family: inherit;
  background: var(--background); color: var(--foreground);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.info-box { background: var(--muted); border-radius: 1rem; padding: 2rem; }
.info-box h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.info-box p { margin-bottom: 0.75rem; display: flex; gap: 0.75rem; align-items: flex-start; color: var(--muted-foreground); }
.info-box svg { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.info-box a { color: var(--primary); }
.info-box a:hover { text-decoration: underline; }

.map-frame { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-top: 2rem; }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ===== Resources cards ===== */
.article-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: var(--shadow); }
.article-card .accent { height: 0.75rem; background: rgba(30, 58, 138, 0.1); }
.article-card .body { padding: 1.5rem; }
.article-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.article-card p { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.article-card .tag { color: var(--primary); font-size: 0.875rem; font-weight: 500; }

/* ===== Footer ===== */
.footer { background: var(--foreground); color: var(--primary-foreground); padding: 4rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer .logo-box { display: inline-block; background: #fff; border-radius: 0.5rem; padding: 0.75rem; margin-bottom: 1rem; }
.footer .logo-box img { height: 3.5rem; }
.footer h3 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.footer p, .footer a { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.6; }
.footer nav a { display: block; padding: 0.25rem 0; transition: color 0.2s; }
.footer nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.4); max-width: 64rem; line-height: 1.6; }
.footer-bottom .copy { margin-top: 1rem; color: rgba(255,255,255,0.3); }

/* ===== Utility ===== */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.space-y > * + * { margin-top: 1rem; }
.center-cta { text-align: center; margin-top: 2rem; }
