/* =====================================================
   Annapolis Child and Family Therapy Center
   Shared base colors, with the coastal theme overriding page styling
   ===================================================== */

:root {
  --blue: #0D47A1;          /* flyer logo blue */
  --blue-deep: #0A397D;
  --navy: #102E50;
  --sky: #E4EDF5;
  --sky-2: #EEF4FA;
  --wave: #A9C9E8;
  --ink: #102E50;
  --slate: #526781;
  --line: #CAD9E8;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(18, 42, 77, 0.08);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Lora', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-family: var(--font-body); font-weight: 600; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 12px 26px; font-size: 0.98rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-body);
}
.btn-solid { background: var(--blue); color: #fff !important; }
.btn-solid:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--sky); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 200px; height: auto; }
.site-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav-phone a { font-size: 0.9rem; }
.nav-portal a { color: var(--slate); font-size: 0.9rem; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 980px) {
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .nav-toggle-label span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform 0.2s; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 20px 20px; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-phone { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #fff 100%);
  padding: 72px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .kicker { color: var(--blue); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero .lede { font-size: 1.15rem; color: var(--slate); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-mark { justify-self: center; }
.hero-mark img { width: min(300px, 60vw); opacity: 0.95; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 140px; }
}

/* Subtle wave divider */
.wave-divider { height: 34px; background-repeat: repeat-x; background-size: 90px 34px; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 34'%3E%3Cpath d='M0 20 Q 22.5 4 45 20 T 90 20' fill='none' stroke='%23A9C4E4' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-wash { background: var(--sky); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .kicker { color: var(--blue); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 10px; }
.section-head p { color: var(--slate); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); color: #E7EEF8; padding: 26px 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: center; justify-content: center; text-align: center; }
.trust-strip p { margin: 0; font-size: 0.98rem; }
.trust-strip strong { color: #fff; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); flex: 1; }
.card .card-link { font-weight: 600; text-decoration: none; }
.card .card-link::after { content: " →"; }

/* ---------- Feature rows ---------- */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin-top: 10px; }
.feature h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.feature p { color: var(--slate); font-size: 0.97rem; margin: 0; }

/* ---------- Clinician cards ---------- */
.clinician-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.clinician {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.clinician-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; flex: none;
  background: var(--sky-2); color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.clinician h3 { margin: 0; font-size: 1.15rem; }
.clinician .role { color: var(--blue); font-size: 0.88rem; font-weight: 600; margin: 2px 0 0; }
.clinician .bio p { color: var(--slate); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.chips li { background: var(--sky); color: var(--navy); font-size: 0.8rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; }

/* ---------- Two-column condition lists ---------- */
.cols-2 { columns: 2; column-gap: 40px; }
.cols-3 { columns: 3; column-gap: 32px; }
@media (max-width: 700px) { .cols-2, .cols-3 { columns: 1; } }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 5px 0 5px 26px; position: relative; break-inside: avoid; color: var(--slate); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ---------- Service detail blocks ---------- */
.service-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: none; }
.service-block h2 { margin-bottom: 8px; }
.service-block .provider { color: var(--blue); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.service-block p { color: var(--slate); max-width: 62em; }

/* ---------- Callout ---------- */
.callout {
  background: var(--sky); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy);
  font-size: 1.02rem; list-style: none; position: relative; padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.5rem; color: var(--blue); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--slate); }

/* ---------- Contact CTA ---------- */
.contact-cta { background: var(--sky); padding: 64px 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lede { color: var(--slate); }
.contact-details { list-style: none; padding: 0; }
.contact-details li { padding: 4px 0; color: var(--slate); }
.contact-areas { font-size: 0.9rem; color: var(--slate); margin-top: 14px; }
.contact-promise { color: var(--navy); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-status { font-weight: 600; margin-top: 12px; min-height: 1.2em; }
.form-status.is-success { color: #1B7A3D; }
.form-status.is-error { color: #B3261E; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 10px; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D6E8; padding: 56px 0 28px; }
.site-footer a { color: #E7EEF8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-mark { filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 12px; }
.footer-name { font-family: var(--font-display); font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.footer-tag { font-size: 0.9rem; font-style: italic; }
.footer-heading { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8FA9CC; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 3px 0; }
.footer-links a, .footer-social { text-decoration: none; font-size: 0.95rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 22px; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding: 56px 0 36px; }
.page-hero .lede { font-size: 1.1rem; color: var(--slate); max-width: 44em; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 40px; }
