/* ============================================
   Beverly Fletcher, LICSW — Practice Site
   Design tokens
   ============================================ */
:root {
  --ink: #22302f;
  --deep-teal: #1e3a3e;
  --deep-teal-2: #16292c;
  --parchment: #f4eee0;
  --card: #fbf8f1;
  --tide: #7fa79c;
  --tide-soft: #cfe0da;
  --gold: #c89b3c;
  --gold-soft: #e8d3a0;
  --clay: #a85c3e;
  --line: rgba(34, 48, 47, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--deep-teal-2);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tide);
  font-weight: 700;
  margin-bottom: 0.9em;
  display: inline-block;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep-teal-2);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tide);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover { background: var(--tide-soft); }
.nav-links a.active { background: var(--deep-teal); color: var(--card); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--deep-teal-2) !important;
}
.nav-cta:hover { background: var(--gold-soft) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--gold); color: var(--deep-teal-2); }
.btn-primary:hover { background: #dcae5a; }

.btn-ghost {
  background: transparent;
  border-color: var(--deep-teal);
  color: var(--deep-teal-2);
}
.btn-ghost:hover { background: var(--deep-teal); color: var(--card); }

.btn-light {
  background: var(--card);
  color: var(--deep-teal-2);
}
.btn-light:hover { background: var(--tide-soft); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--deep-teal) 0%, var(--deep-teal-2) 100%);
  color: var(--card);
  padding: 96px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--card); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--tide-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-portrait {
  position: relative;
}

.portrait-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--tide-soft), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait-name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--deep-teal-2);
}
.portrait-cred {
  font-size: 0.85rem;
  color: var(--tide);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Tide divider (signature element) ---------- */
.tide-divider {
  display: block;
  width: 100%;
  height: 48px;
}
.tide-divider path { fill: var(--parchment); }
.tide-divider.flip { transform: scaleY(-1); }
.tide-divider.on-card path { fill: var(--card); }
.tide-divider.on-teal path { fill: var(--deep-teal-2); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--line);
}

.chip {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--deep-teal-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 4px 6px 4px 0;
}
.chip.tide { background: var(--tide-soft); border-color: transparent; }
.chip.gold { background: var(--gold-soft); border-color: transparent; }

.band-teal {
  background: var(--deep-teal);
  color: var(--card);
}
.band-teal h2, .band-teal h3 { color: var(--card); }
.band-teal .eyebrow { color: var(--gold-soft); }

.band-tide {
  background: var(--tide-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.quote-block {
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--deep-teal-2);
  margin: 32px 0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--deep-teal);
  color: var(--card);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-banner h2 { color: var(--card); }
.cta-banner p { color: var(--tide-soft); }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Resource cards ---------- */
.resource-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--tide);
}
.resource-card.urgent { border-left-color: var(--clay); }
.resource-card h3 { margin-bottom: 6px; }
.resource-contact {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--deep-teal-2);
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--deep-teal-2);
}

input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--parchment);
  color: var(--ink);
  margin-bottom: 20px;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--tide-soft);
  border-color: var(--tide);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-note {
  background: var(--tide-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-success {
  display: none;
  background: var(--gold-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-teal-2);
  color: var(--tide-soft);
  padding: 56px 0 28px;
}
.site-footer h4 {
  color: var(--card);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: var(--tide-soft); text-decoration: none; }
.site-footer a:hover { color: var(--card); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(207, 224, 218, 0.7);
}

/* ---------- Platform buttons ---------- */
.platform-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.platform-btn {
  flex: 1;
  min-width: 220px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.platform-btn:hover { border-color: var(--tide); transform: translateY(-2px); }
.platform-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--deep-teal-2);
  margin-bottom: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 340px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--parchment);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 28px 24px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .form-card { padding: 26px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
