/* ============================================================
   Plymale Counseling — Design System
   ============================================================ */
:root {
  --ink: #22303c;
  --ink-soft: #4c5b66;
  --ink-faint: #71808b;
  --brand: #3a7bbf;
  --brand-deep: #2a5d94;
  --brand-soft: #e9f2fb;
  --accent: #c98d4b;
  --accent-soft: #f7efe4;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e6e1d7;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(34, 48, 60, 0.08);
  --shadow-lg: 0 16px 48px rgba(34, 48, 60, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1400px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0;
}
.brand-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark img.logo-img {
  height: 44px; width: auto; display: block;
}
@media (max-width: 480px) { .brand-mark img.logo-img { height: 38px; } }

.main-nav ul { display: flex; gap: 2px; list-style: none; align-items: center; flex-wrap: nowrap; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.88rem;
  padding: 7px 11px; border-radius: 999px; transition: all 0.18s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--brand-deep); background: var(--brand-soft); }
.main-nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.9rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--brand-deep); }
@media (max-width: 1280px) { .header-phone { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s ease; font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font-size: 1.2rem; cursor: pointer; color: var(--ink);
}
/* Mobile-only menu items (Contact Us + phone inside the dropdown) */
.main-nav .nav-extra { display: none; }
.cta-short { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 12px 14px; font-size: 0.95rem; }
  .main-nav .nav-extra { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .main-nav .nav-extra a { color: var(--brand-deep); font-weight: 600; }
  .main-nav .nav-extra + .nav-extra { border-top: none; margin-top: 0; padding-top: 0; }
  .header-cta .btn-outline { display: none; }
  .header-inner { gap: 12px; }
  /* Equalize control heights so the burger and CTA pill align perfectly */
  .nav-toggle {
    height: 42px; padding: 0 13px;
    display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  }
  .header-cta .btn { height: 42px; padding-top: 0; padding-bottom: 0; }
}

/* Small phones: size the logo as a share of the screen so the row always fits */
@media (max-width: 620px) {
  .site-header .container { padding: 0 14px; }
  .brand-mark { min-width: 0; }
  .brand-mark img.logo-img { height: auto; width: min(45vw, 200px); }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .header-inner { padding: 12px 0; gap: 8px; }
  .header-cta { gap: 8px; }
  .nav-toggle { height: 40px; padding: 0 11px; font-size: 1.05rem; flex: none; }
  .header-cta .btn-sm { height: 40px; padding: 0 15px; font-size: 0.86rem; }
}
@media (max-width: 380px) {
  .brand-mark img.logo-img { width: 41vw; }
  .header-cta .btn-sm { height: 38px; padding: 0 12px; font-size: 0.82rem; }
  .nav-toggle { height: 38px; }
}

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(125, 180, 227, 0.22), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(201, 141, 75, 0.12), transparent 60%),
    var(--bg);
  padding: 76px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* "Live" badge — pulsing dot */
.eyebrow.live::before {
  background: var(--brand);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(58, 123, 191, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(58, 123, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 123, 191, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow.live::before { animation: none; }
}

h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12;
  letter-spacing: -0.015em; margin-bottom: 20px;
}
.hero .lede { font-size: 1.13rem; color: var(--ink-soft); max-width: 58ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-phone { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.hero-phone small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.hero-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 30px;
}
.hero-panel h2 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 14px; }
.hero-panel ul { list-style: none; display: grid; gap: 11px; }
.hero-panel li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; color: var(--ink-soft); }
.hero-panel li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep); font-size: 0.8rem; font-weight: 700;
  display: grid; place-items: center; margin-top: 2px;
}

/* ============ Sections ============ */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.18; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); }
.alt-bg { background: #f2efe8; }

/* Value cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.value-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-card img { height: 210px; width: 100%; object-fit: cover; }
.value-card .card-body { padding: 24px 26px 28px; }
.value-card h3 { font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.team-card .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.team-card h3 { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.3; }
.team-card .creds { color: var(--brand); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; margin: 4px 0 12px; }
.team-card p { color: var(--ink-soft); font-size: 0.94rem; }
.team-card .card-actions { margin-top: 18px; }

/* Collapsible bios — keeps all team cards the same height */
.team-card details.bio { flex: 1; }
.team-card details.bio summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand); font-weight: 600; font-size: 0.9rem; padding: 2px 0;
  user-select: none;
}
.team-card details.bio summary::-webkit-details-marker { display: none; }
.team-card details.bio summary::after {
  content: "▾"; font-size: 0.85rem; transition: transform 0.2s ease;
}
.team-card details.bio[open] summary::after { transform: rotate(180deg); }
.team-card details.bio summary:hover { text-decoration: underline; }
.team-card details.bio > p { padding-top: 10px; }
.team-card details.bio > p + p { padding-top: 0; margin-top: 10px; }

/* Service areas */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 20px; font-weight: 500; font-size: 0.95rem;
}
.chip strong { color: var(--brand-deep); }

/* Conditions grid — pills size to their text so each stays on one row */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 13px 20px; font-weight: 500; font-size: 0.96rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .pill { white-space: normal; }
}
.pill::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 0.72rem; font-weight: 700; display: grid; place-items: center;
}

/* Feature rows */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 34px 0;
}
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; gap: 22px; } }
.feature-row img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 340px; object-fit: cover; }
.feature-row h3, .feature-row h2.fr-title { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 12px; }
.feature-row p { color: var(--ink-soft); margin-bottom: 12px; }
.feature-meta { list-style: none; margin: 14px 0 20px; display: grid; gap: 8px; }
.feature-meta li { display: flex; gap: 10px; font-size: 0.97rem; color: var(--ink-soft); }
.feature-meta li strong { color: var(--ink); min-width: 72px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; box-shadow: var(--shadow);
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.03rem; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 1.03rem; font-weight: 600; margin: 0; display: inline; font-family: var(--font-body); }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); padding: 0 0 18px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 55%, #7db4e3 100%);
  border-radius: 24px; color: #fff; padding: 56px 48px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-self: end; }
@media (max-width: 800px) { .cta-band .cta-actions { justify-self: start; } }

/* Forms */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 34px; max-width: 640px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.88rem; }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 12px; }

/* Groups */
.group-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
}
@media (max-width: 860px) { .group-card { grid-template-columns: 1fr; } }
.group-card > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.group-card .card-body { padding: 32px 34px; }
.group-card h2 { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 12px; }
.group-card p { color: var(--ink-soft); margin-bottom: 12px; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; box-shadow: var(--shadow); text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease; display: block;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.partner-card img { height: 130px; object-fit: contain; margin: 0 auto 16px; }
.partner-card span { font-weight: 600; color: var(--ink); }

/* Breadcrumbs */
.breadcrumbs { padding: 20px 0 0; font-size: 0.86rem; color: var(--ink-faint); }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

/* Page hero (interior) */
.page-hero { padding: 56px 0 30px; }
.page-hero .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 68ch; }

/* ============ Footer ============ */
.site-footer { background: #1f3d5c; color: #d5e4f3; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding: 60px 0 44px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h3 { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer p { font-size: 0.94rem; color: #aac7e2; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #d5e4f3; text-decoration: none; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.84rem; color: #8aa9c8;
}
.crisis-note {
  background: var(--accent-soft); border: 1px solid #ecd9bd; border-radius: 12px;
  padding: 14px 18px; font-size: 0.9rem; color: #6d5327; margin-top: 20px;
}
