@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Variables ─── */
:root {
  --primary:       #2C6E8A;
  --primary-dark:  #1A4757;
  --primary-light: #4A8FA6;
  --primary-xlight:#EEF4F7;
  --accent:        #D97040;
  --accent-dark:   #B85A2E;
  --text:          #1A2D38;
  --text-body:     #344D5C;
  --text-muted:    #607080;
  --bg:            #F7FAFC;
  --bg-alt:        #EEF4F7;
  --white:         #FFFFFF;
  --border:        #D0DFE6;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow:        0 2px 10px rgba(0,0,0,0.10);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.12);
  --radius:        8px;
  --radius-lg:     14px;
  --max-w:         1080px;
  --nav-h:         70px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.9rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem);   font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt  { background: var(--bg-alt); }
.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.72rem 1.6rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
  text-decoration: none;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ─── Section Label ─── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

/* ─── Section Header ─── */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3rem;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
  min-height: 500px;
}
.hero-text h1   { color: var(--white); margin-bottom: 1.1rem; }
.hero-text p    { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 500px; }
.hero-image     { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-image img { width: 100%; height: 380px; object-fit: cover; }

/* ─── Two-column content ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.two-col-img            { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.two-col-img img        { width: 100%; height: 360px; object-fit: cover; }

/* ─── Cards ─── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card h3 { color: var(--primary-dark); }
.card p  { color: var(--text-muted); font-size: 0.94rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.card-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-xlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Checklist ─── */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.75rem;
  color: var(--text-body);
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ─── Numbered Steps ─── */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 0 1rem 3.5rem;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
}

/* ─── FAQ ─── */
.faq-list    { max-width: 740px; margin: 0 auto; }
.faq-item    { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.faq-a { color: var(--text-muted); margin: 0; }

/* ─── Provider Card ─── */
.provider-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.provider-card h3 { color: var(--primary-dark); margin-bottom: 0.3rem; }
.provider-type {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* ─── Page Header ─── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4.5rem 0;
}
.page-header h1 { color: var(--white); margin-bottom: 0.85rem; }
.page-header p  { color: rgba(255,255,255,0.85); max-width: 640px; font-size: 1.05rem; margin: 0; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 5.5rem 0;
}
.cta-banner h2 { color: var(--white); max-width: 580px; margin: 0 auto 0.85rem; }
.cta-banner p  { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 0; font-size: 1.05rem; }

/* ─── Disclaimer / Notice Boxes ─── */
.notice {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.notice-info {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary-light);
}
.notice-info p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.notice-crisis {
  background: #FFF6F2;
  border: 1.5px solid #E09070;
  border-radius: var(--radius);
}
.notice-crisis h3 { color: #9E4A20; margin-bottom: 0.5rem; font-family: 'Playfair Display', serif; }
.notice-crisis p  { color: var(--text-body); font-size: 0.94rem; margin: 0; }

/* ─── Contact Form ─── */
.contact-wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.contact-form h2 { margin-bottom: 0.4rem; }
.contact-form > p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1.75rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.68rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-sidebar p { color: var(--text-muted); font-size: 0.94rem; }

/* ─── Footer ─── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.78); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 2rem;
}
.footer-brand .nav-logo { color: var(--white); display: inline-block; margin-bottom: 1rem; }
.footer-brand .nav-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.footer-nav h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.45rem; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.5rem 0; }
.footer-crisis {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.2rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.42); margin: 0; }

/* ─── Resource Page Sections ─── */
.resource-block { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.resource-block:last-child { border-bottom: none; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner  { grid-template-columns: 1fr; padding: 3.5rem 0; }
  .hero-image  { width: 100%; border-radius: var(--radius-lg); overflow: hidden; }
  .hero-image img { height: 240px; width: 100%; object-fit: cover; }
  .two-col     { grid-template-columns: 1fr; gap: 2rem; }
  .two-col-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; }
  .two-col-img img { height: 240px; width: 100%; object-fit: cover; }
  .card-grid   { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top  { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid   { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: block; }
  .nav            { position: relative; }
  .section        { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group.center { align-items: center; }
}
