/* Sarah Richardson Psychotherapy — calm editorial redesign */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lora:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --cream: #f6efe1;
  --cream-deep: #ece2cf;
  --paper: #fffaf0;
  --sage: #c8d2c7;
  --sage-soft: #dce3d9;
  --green: #23463b;
  --green-2: #3f695b;
  --lavender: #918497;
  --ink: #233630;
  --muted: #5f706a;
  --line: rgba(35, 70, 59, .25);
  --shadow: 0 12px 34px rgba(35, 54, 48, .10);
  --font-heading: 'DM Sans', sans-serif;
  --font-accent: 'Lora', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green-2); text-decoration: none; transition: color var(--transition), background var(--transition), transform var(--transition); }
a:hover { color: var(--green); }
p { margin-bottom: 1.15rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 5.2vw, 5.4rem); }
h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }

.container { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
section { scroll-margin-top: 78px; opacity: 1; }
section.visible { opacity: 1; }

/* Navigation */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: .7rem 0;
  background: rgba(255, 250, 240, .94);
  border-bottom: 1px solid rgba(35, 70, 59, .14);
  backdrop-filter: blur(14px);
  transition: padding var(--transition), box-shadow var(--transition);
}
nav.scrolled { padding: .45rem 0; box-shadow: 0 8px 28px rgba(35, 54, 48, .08); }
nav .container { display: flex; align-items: center; justify-content: flex-end; gap: 2rem; }
nav .logo {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  padding: .52rem 1.05rem;
  color: var(--green);
  border: 1.5px solid var(--green-2);
  border-radius: 999px;
  box-shadow: 3px 4px 0 rgba(145, 132, 151, .32);
  font-family: var(--font-accent);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
nav ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
nav ul a { color: var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
nav ul a:hover { color: var(--green-2); }
.nav-cta { padding: .7rem 1.15rem; color: var(--paper); background: var(--green-2); border-radius: 999px; }
.nav-cta:hover { color: var(--paper); background: var(--green); transform: translateY(-2px); }
.mobile-menu-toggle { display: none; border: 0; background: transparent; color: var(--green); font-size: 1.7rem; cursor: pointer; }

/* Hero */
#home { padding: 76px 0 0; background: var(--cream); }
#home::before { display: none; }
.hero-split { display: flex; flex-direction: column; }
.desktop-portrait { display: none; }
.hero-photo { width: 100%; height: min(62vh, 560px); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero-panel { display: flex; align-items: center; padding: 3rem 0; background: var(--green); }
.hero-panel h1 { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; max-width: 900px; color: var(--paper); }
.hero-panel h1::after {
  content: 'Compassionate, trauma-informed psychotherapy';
  display: block;
  max-width: 600px;
  margin-top: 1.5rem;
  color: rgba(255, 250, 240, .9);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
.hero-introduction { width: min(1040px, calc(100% - 3rem)); max-width: none; padding: 5rem 0 5.75rem; text-align: left; font-size: 1.05rem; }
.hero-name { margin: 0; color: var(--green); font-family: var(--font-accent); font-size: clamp(3.2rem, 7vw, 6.4rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.areas-label { color: var(--lavender); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-introduction h2 { max-width: 800px; margin: .55rem 0 2rem; color: var(--green); }
.hero-introduction > p:not(.hero-name):not(.session-format) { max-width: 760px; }
.areas-of-focus {
  margin: 2.3rem 0;
  padding: 2rem 2.25rem;
  background: var(--sage-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 7px 8px 0 rgba(145, 132, 151, .17);
}
.areas-label { margin-bottom: 1rem; color: var(--green-2); }
.areas-of-focus ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 2.2rem; list-style: none; }
.areas-of-focus li { border-bottom: 1px solid rgba(35, 70, 59, .14); }
.areas-of-focus a { display: block; padding: .6rem .2rem; color: var(--ink); font-weight: 600; }
.areas-of-focus a::after { content: ' ↘'; color: var(--lavender); }
.areas-of-focus a:hover { color: var(--green-2); transform: translateX(3px); }
.session-format { max-width: 760px; margin: 0 0 1.6rem; padding-top: 1.35rem; border-top: 1px solid var(--line); color: var(--green); font-weight: 700; }
.hero-introduction .reassurance { margin: 0 0 1.25rem; color: var(--green); font-family: var(--font-accent); font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 600; line-height: 1.2; }

@media (min-width: 901px) {
  .hero-split { flex-direction: row; align-items: stretch; width: 100%; height: 460px; min-height: 0; }
  .hero-photo { width: 46%; height: 100%; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
  .hero-panel { width: 54%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 1.25rem 3rem; overflow: hidden; }
  .hero-panel h1 { width: 100%; max-width: 560px; margin-inline: auto; text-align: center; font-size: clamp(1.7rem, 2.4vw, 2.35rem); line-height: 1.18; }
  .hero-panel h1::after { margin-top: .9rem; margin-inline: auto; text-align: center; font-size: clamp(.9rem, 1.1vw, 1.05rem); }
}

.cta-button, .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: .6rem;
  padding: .82rem 1.6rem;
  color: var(--paper);
  background: var(--lavender);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}
.cta-button:hover, .submit-button:hover { color: var(--paper); background: var(--green); transform: translateY(-2px); }

/* About */
#about { padding: 0; background: var(--paper); }
.about-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: center; padding: 5.5rem 0 3rem; }
.about-intro-photo img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
.about-banner-label { margin: 0 0 .6rem; color: var(--lavender); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.about-intro-text h2 { margin: 0 0 1.5rem; color: var(--green); font-size: clamp(2.6rem, 4.5vw, 4.2rem); }
.about-content { padding: 0 0 6rem; }
.about-text { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.credential { padding: 1.25rem 1.35rem; border: 1px solid var(--green-2); border-radius: 14px; color: var(--green); background: var(--cream); box-shadow: 5px 6px 0 rgba(145, 132, 151, .18); font-weight: 700; }
.therapy-philosophy { grid-column: 1 / -1; margin-top: 1rem; padding: 3rem; background: var(--green); color: var(--paper); border-radius: 20px; }
.therapy-philosophy h3 { max-width: 580px; margin-bottom: 2rem; color: var(--paper); font-size: clamp(2rem, 3.4vw, 3.35rem); }
.therapy-philosophy p { max-width: 790px; color: rgba(255, 250, 240, .88); }
.therapy-philosophy p:last-child { margin: 1.8rem 0 0; font-family: var(--font-accent); font-size: 1.45rem; font-style: italic; }
.nature-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: .5rem;
}
.nature-detail { overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.nature-detail img { width: 100%; height: 100%; object-fit: cover; }
.nature-detail-heart { height: 390px; }
.nature-detail-heart img { object-position: center 58%; }
.nature-detail-dandelion { height: 360px; align-self: stretch; }
.nature-detail-dandelion img { object-position: center; }

/* Services */
#services { padding: 6rem 0; background: var(--sage); }
#services h2 { color: var(--green); }
.services-subtitle { max-width: 720px; margin-bottom: 3rem; color: var(--muted); font-size: 1.08rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.service-card {
  min-height: 210px;
  padding: 2rem;
  background: rgba(255, 250, 240, .68);
  border: 1px solid rgba(35, 70, 59, .5);
  border-radius: 16px;
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  scroll-margin-top: 105px;
}
.service-card:hover { transform: translateY(-4px); background: var(--paper); box-shadow: var(--shadow); }
.service-card h3 { margin-bottom: .75rem; color: var(--green-2); }
.service-card p { margin: 0; color: var(--ink); font-size: .95rem; }
.service-card:nth-child(3n + 2) { background: rgba(246, 239, 225, .82); }
.session-details { margin-top: 2.5rem; padding: 2.5rem 3rem; color: var(--paper); background: var(--green); border-radius: 18px; }
.session-details h3 { color: var(--paper); }
.session-details ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.session-details li { padding-left: 1.35rem; position: relative; }
.session-details li::before { content: '•'; position: absolute; left: 0; color: var(--cream-deep); }

/* Image break */
#grounding-image { padding: 0; }
.grounding-image-container { height: min(62vh, 600px); position: relative; overflow: hidden; }
.grounding-image-container img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.grounding-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 3.5rem 0; background: linear-gradient(0deg, rgba(35, 70, 59, .72), rgba(35, 70, 59, .04) 68%); }
.grounding-quote { max-width: 800px; margin: 0; color: var(--paper); font-family: var(--font-accent); font-size: clamp(1.8rem, 3.8vw, 3.5rem); font-style: italic; line-height: 1.2; }

/* FAQ */
#faq { padding: 6rem 0; background: var(--cream); }
#faq h2 { max-width: 650px; color: var(--green); }
.faq-container { max-width: 900px; margin: 2.7rem 0 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { position: relative; padding: 1.4rem 3rem 1.4rem 0; color: var(--ink); font-weight: 700; cursor: pointer; }
.faq-question::after { content: '+'; position: absolute; right: .3rem; color: var(--lavender); font-size: 1.5rem; font-weight: 400; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .34s ease; }
.faq-answer p { max-width: 760px; margin: 0; padding: 0 0 1.5rem; color: var(--muted); }
.faq-item.active .faq-answer { max-height: 300px; }

/* Contact */
#contact { padding: 6rem 0; background: var(--paper); }
#contact h2 { color: var(--green); }
.contact-subtitle { max-width: 680px; color: var(--muted); font-size: 1.05rem; }
.contact-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; margin-top: 2.8rem; align-items: stretch; }
.contact-form { padding: 2.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.form-group { margin-bottom: 1rem; }
.form-group > label { display: block; margin-bottom: .35rem; color: var(--green); font-size: .8rem; font-weight: 700; }
.form-group input[type='text'], .form-group input[type='email'], .form-group input[type='tel'], .form-group textarea {
  width: 100%;
  padding: .8rem .9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(35, 70, 59, .35);
  border-radius: 8px;
  font: inherit;
  outline: 0;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(63, 105, 91, .12); }
.radio-group { display: flex; gap: 1.25rem; }
.radio-group label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.radio-group input { accent-color: var(--green-2); }
.submit-button { width: auto; }
.form-delivery-note { max-width: 520px; margin: .85rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.form-status { max-width: 520px; margin: .85rem 0 0; font-size: .85rem; line-height: 1.45; }
.form-status:empty { margin: 0; }
.form-status--success { color: var(--green-2); font-weight: 600; }
.form-status--error { color: #b23a3a; font-weight: 600; }
.submit-button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.contact-details { overflow: hidden; padding: 0 2rem 2rem; background: var(--green); border-radius: 18px; color: rgba(255, 250, 240, .85); }
.contact-photo { height: 320px; margin: 0 -2rem 2rem; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact-details h3 { color: var(--paper); }
.contact-details a { color: var(--cream-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-details p[style] { color: rgba(255, 250, 240, .72) !important; }

/* Footer */
footer { padding: 4rem 0 2.2rem; color: rgba(255, 250, 240, .84); background: var(--green); text-align: center; }
footer h3 { color: var(--paper); font-family: var(--font-accent); font-size: 2rem; }
.footer-contact { display: flex; justify-content: center; gap: 1rem; margin: 1.8rem 0 0; }
.footer-contact a { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1rem; color: var(--paper); border: 1px solid rgba(255, 250, 240, .42); border-radius: 999px; }
.footer-contact a:hover { color: var(--green); background: var(--paper); }
.footer-contact svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; margin: 2rem 0; }
.footer-nav a { color: var(--paper); font-size: .88rem; }
.copyright { padding-top: 1.6rem; border-top: 1px solid rgba(255, 250, 240, .18); color: rgba(255, 250, 240, .58); font-size: .8rem; }

/* Accessibility */
:focus-visible { outline: 3px solid #c67f4d; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  section { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .container, .hero-panel h1, .hero-introduction { width: min(100% - 2rem, 680px); }
  nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 1rem;
    flex-direction: column;
    gap: .2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  nav ul.active { display: flex; }
  nav ul li, nav ul a { width: 100%; text-align: center; }
  nav ul a { display: block; padding: .75rem; }
  .mobile-menu-toggle { display: block; }
  .hero-photo { height: 56vh; }
  .hero-panel h1 { max-width: 620px; }
  .hero-introduction { padding: 4rem 0; }
  .about-text { grid-template-columns: 1fr; gap: 1rem; }
  .therapy-philosophy { grid-column: 1; }
  .nature-details { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .nature-detail-heart, .nature-detail-dandelion { height: 300px; }
  .services-grid, .contact-content { grid-template-columns: 1fr; }
  .contact-details { order: -1; }
}

@media (max-width: 600px) {
  nav .logo { min-height: 38px; padding: .42rem .75rem; font-size: .9rem; }
  .hero-photo { height: 52vh; }
  .hero-photo img { object-position: center 55%; }
  .hero-panel { padding: 2.5rem 0; }
  .hero-panel h1 { font-size: 2.35rem; }
  .areas-of-focus { padding: 1.35rem; }
  .areas-of-focus ul, .session-details ul { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 1.75rem; padding: 4.2rem 0 2rem; }
  .about-intro-text h2 { font-size: 2.6rem; }
  .about-content, #services, #faq, #contact { padding: 4.2rem 0; }
  .therapy-philosophy, .session-details, .contact-form { padding: 1.6rem; }
  .nature-details { grid-template-columns: 1fr; }
  .nature-detail-heart { height: 360px; }
  .nature-detail-dandelion { height: 280px; }
  .service-card { min-height: 0; padding: 1.5rem; }
  .grounding-image-container { height: 520px; }
  .grounding-quote { font-size: 2rem; }
  .contact-details { padding-inline: 1.5rem; }
  .contact-photo { margin-inline: -1.5rem; }
  .radio-group { flex-direction: column; gap: .4rem; }
}
