/* Purple Lotus Counseling — judithdickens.com */

/* ── Variables ── */
:root {
  --clr-plum:       #6b4f7a;
  --clr-plum-dark:  #4e3759;
  --clr-plum-light: #9b7aac;
  --clr-lotus:      #c49abf;
  --clr-cream:      #fdf8fc;
  --clr-white:      #ffffff;
  --clr-text:       #2c1f33;
  --clr-muted:      #6b5f72;
  --clr-border:     #e8dced;

  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'Source Sans 3', system-ui, sans-serif;

  --radius:  8px;
  --shadow:  0 2px 16px rgba(75, 40, 90, 0.10);
  --shadow-md: 0 4px 24px rgba(75, 40, 90, 0.15);

  --max-w:   1100px;
  --nav-h:   68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-cream);
}
img { display: block; max-width: 100%; }
a { color: var(--clr-plum); }
a:hover { color: var(--clr-plum-dark); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.25;
  color: var(--clr-plum-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; color: var(--clr-muted); }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ── */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section { padding-block: 5rem; }
.section--alt { background: var(--clr-white); }

@media (max-width: 640px) {
  .section { padding-block: 3rem; }
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--clr-plum);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 2px 8px rgba(75,40,90,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-brand img {
  height: 44px;
  width: auto;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand-text strong {
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: var(--clr-plum-dark);
}
.nav-brand-text span {
  font-size: .75rem;
  color: var(--clr-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--clr-muted);
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--clr-plum);
  background: rgba(107,79,122,.08);
}
.nav-cta {
  background: var(--clr-plum) !important;
  color: var(--clr-white) !important;
  padding: .5rem 1.1rem !important;
}
.nav-cta:hover {
  background: var(--clr-plum-dark) !important;
  color: var(--clr-white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--clr-plum);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--clr-white);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1rem; padding: .65rem 1rem; }
  .nav-cta { text-align: center; margin-top: .5rem; }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--clr-plum-dark) 0%, var(--clr-plum) 60%, var(--clr-plum-light) 100%);
  color: var(--clr-white);
  padding-block: 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(196,154,191,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-lotus);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--clr-white); margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 48ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-image {
  flex-shrink: 0;
  width: 280px;
}
.hero-image img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: var(--shadow-md);
}

@media (max-width: 800px) {
  .hero-inner { flex-direction: column-reverse; gap: 2rem; }
  .hero-image { width: 160px; }
  .hero { padding-block: 3.5rem; }
}
@media (max-width: 480px) {
  .hero { padding-block: 2.5rem; }
  .hero-image { width: 130px; }
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--clr-white);
  color: var(--clr-plum-dark);
  border-color: var(--clr-white);
}
.btn--primary:hover {
  background: var(--clr-cream);
  color: var(--clr-plum-dark);
}
.btn--outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--clr-white);
}
.btn--plum {
  background: var(--clr-plum);
  color: var(--clr-white);
  border-color: var(--clr-plum);
}
.btn--plum:hover {
  background: var(--clr-plum-dark);
  border-color: var(--clr-plum-dark);
  color: var(--clr-white);
}

/* ─────────────────────────────────────────
   SPECIALTIES GRID (Home)
───────────────────────────────────────── */
.specialties-intro {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(107,79,122,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.card h3 { color: var(--clr-plum-dark); }

/* ─────────────────────────────────────────
   ALSO TREATS LIST (Home)
───────────────────────────────────────── */
.also-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.also-list {
  list-style: none;
  display: grid;
  gap: .6rem;
}
.also-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
  color: var(--clr-muted);
}
.also-list li::before {
  content: '✦';
  color: var(--clr-lotus);
  flex-shrink: 0;
  margin-top: .15rem;
  font-size: .7rem;
}

@media (max-width: 640px) {
  .also-section { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   CONTACT BAND (Home footer call-out)
───────────────────────────────────────── */
.contact-band {
  background: linear-gradient(135deg, var(--clr-plum-dark), var(--clr-plum));
  color: var(--clr-white);
  text-align: center;
  padding-block: 4rem;
}
@media (max-width: 640px) {
  .contact-band { padding-block: 2.5rem; }
}
.contact-band h2 { color: var(--clr-white); margin-bottom: .75rem; }
.contact-band p  { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }
.contact-methods {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-methods a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}
.contact-methods a:hover { color: var(--clr-white); }

/* ─────────────────────────────────────────
   PAGE HERO (interior pages)
───────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--clr-plum-dark), var(--clr-plum-light));
  color: var(--clr-white);
  padding-block: 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--clr-white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 55ch; margin-inline: auto; }

@media (max-width: 640px) {
  .page-hero { padding-block: 2.5rem; }
  .page-hero p { font-size: 1rem; }
}

/* ─────────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.about-sidebar .portrait {
  width: 100%;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.creds-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.creds-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--clr-muted);
  font-weight: 600;
}
.creds-list li span.badge {
  background: rgba(107,79,122,.1);
  color: var(--clr-plum);
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
}
.contact-card {
  background: linear-gradient(135deg, var(--clr-plum-dark), var(--clr-plum));
  color: var(--clr-white);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
}
.contact-card h4 { color: var(--clr-white); margin-bottom: 1rem; font-size: 1rem; }
.contact-card a:not(.btn) {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
  font-size: .95rem;
  transition: color .2s;
}
.contact-card a:not(.btn):hover { color: var(--clr-white); }
.about-content h2 { margin-top: 2.5rem; }
.about-content h2:first-child { margin-top: 0; }
.insurance-note {
  background: rgba(107,79,122,.07);
  border-left: 4px solid var(--clr-plum-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}
.insurance-note p { color: var(--clr-muted); margin: 0; font-size: .95rem; }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Flatten sidebar so children participate directly in the grid */
  .about-sidebar { display: contents; }
  /* Reading order: photo → credentials → bio → contact CTA */
  .about-sidebar .portrait {
    order: 1;
    max-width: 200px;
    margin-inline: auto;
    display: block;
  }
  .about-sidebar .creds-list   { order: 2; }
  .about-content  { order: 3; }
  .about-sidebar .contact-card { order: 4; }
}

/* ─────────────────────────────────────────
   APPOINTMENTS PAGE
───────────────────────────────────────── */
.appt-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.appt-info-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.appt-info-card h3 { margin-bottom: 1rem; }
.appt-info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.appt-info-card ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--clr-muted);
  font-size: .95rem;
}
.appt-info-card ul li::before { content: '✦'; color: var(--clr-lotus); flex-shrink: 0; }
.appt-divider { border: none; border-top: 1px solid var(--clr-border); margin: 1.25rem 0; }
.contact-links { display: flex; flex-direction: column; gap: .75rem; }
.contact-links a {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: var(--clr-plum);
  text-decoration: none;
  font-size: .95rem;
}
.contact-links a:hover { color: var(--clr-plum-dark); }

/* Form */
.form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: .5rem; }
.form-card > p { margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--clr-plum-dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--clr-text);
  background: var(--clr-cream);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-plum-light);
  box-shadow: 0 0 0 3px rgba(107,79,122,.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; margin-top: .5rem; padding: .9rem; font-size: 1.05rem; }
.form-note { font-size: .8rem; color: var(--clr-muted); margin-top: .75rem; text-align: center; }

@media (max-width: 760px) {
  .appt-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
}

/* ─────────────────────────────────────────
   TELEHEALTH PAGE
───────────────────────────────────────── */
.telehealth-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.telehealth-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.telehealth-icon-wrap {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(107,79,122,.12), rgba(155,122,172,.18));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: steps;
}
.step-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  counter-increment: steps;
  position: relative;
}
.step-card::before {
  content: counter(steps);
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--ff-head);
  font-size: 2.5rem;
  color: var(--clr-plum-light);
  opacity: .35;
  line-height: 1;
}
.step-card h3 { color: var(--clr-plum-dark); }
.join-cta-box {
  background: linear-gradient(135deg, var(--clr-plum-dark), var(--clr-plum));
  border-radius: calc(var(--radius) * 2);
  padding: 3rem;
  text-align: center;
  color: var(--clr-white);
  margin-top: 3rem;
}
.join-cta-box h2 { color: var(--clr-white); margin-bottom: .75rem; }
.join-cta-box p  { color: rgba(255,255,255,.8); max-width: 50ch; margin-inline: auto; margin-bottom: 1.75rem; }

@media (max-width: 640px) {
  .telehealth-intro { grid-template-columns: 1fr; }
  .telehealth-visual { display: none; }
  .join-cta-box { padding: 1.75rem; }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--clr-plum-dark);
  color: rgba(255,255,255,.7);
  padding-block: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; margin-bottom: 1rem; }
.footer-col h4 {
  color: var(--clr-white);
  font-family: var(--ff-head);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--clr-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   UTILITIES
───────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 2rem; }
.mt-3  { margin-top: 3rem; }
.mb-0  { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
