/* Google Fonts — MUST be first */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

/* ============================================================
   Molly P VandenBerg Psychotherapy — Shared Stylesheet
   Palette: warm cream, sage, dusty rose, warm taupe
   ============================================================ */

:root {
  --cream:       #F7F3ED;
  --warm-white:  #FDFAF6;
  --sage:        #8FA888;
  --sage-dark:   #5E7A58;
  --sage-light:  #C4D4BF;
  --taupe:       #C2A98A;
  --taupe-light: #E8D9C5;
  --rose:        #C4938A;
  --text-dark:   #3A3530;
  --text-mid:    #6B6259;
  --text-light:  #9A9088;
  --nav-height:  144px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 20px;
  overflow-x: hidden;
}

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

a { text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 500; }

p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-mid);
  line-height: 1.9;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

/* ── Navigation ── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(253, 250, 246, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194, 169, 138, 0.18);
  transition: background 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.03em;
}

.nav-logo-text .title {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: opacity 0.25s;
}

.nav-links a:hover { opacity: 0.7; }

.nav-cta {
  background: #5E7A58;
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  letter-spacing: 0.12em;
  transition: background 0.25s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--sage) !important; color: #fff !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text-dark);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--warm-white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.3s ease, visibility 0s linear 0.35s;
    border-bottom: 1px solid var(--taupe-light);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s ease, opacity 0.3s ease, visibility 0s;
  }

  /* keep the hamburger above the menu panel so it's always tappable */
  .nav-toggle { position: relative; z-index: 101; }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }

  .nav-cta { margin-top: 0.5rem; }

  /* tighter nav gutters so the logo + menu fit on phones */
  #main-nav { padding: 0 1.25rem !important; height: 130px !important; }

  /* keep the enlarged desktop logo/nav from overflowing on phones */
  :root { --nav-height: 130px; }
  #main-nav img { height: 120px !important; }
}

/* Stack multi-column card grids on small phones */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr !important; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: var(--sage-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--sage);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border: 1px solid var(--sage-dark);
}
.btn-outline:hover {
  background: var(--sage-dark);
  color: #fff;
}

.btn-light {
  background: rgba(253, 250, 246, 0.9);
  color: var(--sage-dark);
}
.btn-light:hover {
  background: #fff;
  color: var(--sage-dark);
}

/* ── Layout Helpers ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.section-pad {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-pad-sm {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.text-center { text-align: center; }

.divider {
  width: 48px; height: 1px;
  background: var(--taupe);
  margin: 1.5rem auto;
}

.divider-left {
  margin-left: 0;
}

/* ── Hero (shared base) ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center;
  animation: slowZoom 20s ease-in-out infinite alternate;
  filter: brightness(0.75);
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* Light shimmer overlay — the "sun shining through" effect */
.hero-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 62% 30%,
    rgba(255, 240, 195, 0.32) 0%,
    rgba(255, 230, 160, 0.12) 35%,
    transparent 70%
  );
  animation: shimmerPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes shimmerPulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(50, 40, 30, 0.12) 0%,
    rgba(50, 40, 30, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2.5rem clamp(2rem, 5vw, 4rem);
  max-width: 760px;
  background: rgba(20, 16, 12, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  font-weight: 300;
  font-style: italic;
}

.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-top: 1rem;
  font-family: 'Jost', sans-serif;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-content .btn { margin-top: 2rem; }

/* Sub-page hero (shorter) */
.hero-sub {
  min-height: 85vh;
}

/* ── Quote Block ── */
.quote-block {
  background: var(--cream);
  border-left: 3px solid var(--taupe);
  padding: 2.5rem 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.5;
  border-radius: 0 4px 4px 0;
  max-width: 780px;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

@media (max-width: 820px) {
  .two-col,
  .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ── Photo Frames ── */
.photo-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.photo-frame::after {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--taupe-light);
  border-radius: 4px;
  z-index: -1;
}

.photo-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--cream);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  border-top: 2px solid var(--sage-light);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card p { font-size: 0.92rem; }

/* ── Form ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--cream);
  border: 1px solid var(--taupe-light);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--sage);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ── Banner strip ── */
.banner {
  background: var(--sage-dark);
  color: #fff;
  text-align: center;
  padding: 2.5rem 2rem;
}

.banner h2 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.banner p  { color: rgba(255,255,255,0.82); margin-top: 0.5rem; }
.banner .btn-light { margin-top: 1.5rem; }

/* ── Footer ── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
}

footer .footer-logo .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
}

footer .footer-logo .sub {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

footer nav { margin-bottom: 0.25rem; }

footer nav a,
footer nav a:link,
footer nav a:visited {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255,255,255,0.75) !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}

footer nav a:hover { color: rgba(255,255,255,0.95); }

footer nav .footer-nav-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
  font-family: 'Jost', sans-serif;
}

footer .footer-note {
  font-size: 0.72rem;
  opacity: 0.5;
  margin-top: 0.5rem;
}

/* Mobile footer: stack brand + legal in the left column, nav on the right,
   so the copyright/disclaimer sits directly under Molly's credentials. */
@media (max-width: 768px) {
  footer {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "brand nav"
      "legal nav"
      ".     nav";
    column-gap: 2rem;
    row-gap: 1.5rem;
    align-items: start;
  }
  footer .footer-logo   { grid-area: brand; margin-top: -1.1rem; }
  footer nav            { grid-area: nav; }
  footer .footer-legal  { grid-area: legal; }
}

/* ── Utility ── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

.space-above { padding-top: var(--nav-height); }

/* ============================================================
   MOTION & ANIMATION SYSTEM
   Theme: brightness · lightness · growth
   ============================================================ */

/* ── Base: elements start invisible until observed ── */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

/* Fade up (default — most common) */
[data-reveal="up"] {
  transform: translateY(36px);
}

/* Fade in from left */
[data-reveal="left"] {
  transform: translateX(-40px);
}

/* Fade in from right */
[data-reveal="right"] {
  transform: translateX(40px);
}

/* Scale up from slightly smaller — "growth" */
[data-reveal="grow"] {
  transform: scale(0.93);
}

/* Simple fade, no movement */
[data-reveal="fade"] {
  transform: none;
}

/* Revealed state — applied by IntersectionObserver */
[data-reveal].is-visible {
  opacity: 1;
  transform: none !important;
}

/* Stagger delay helpers */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.35s; }
[data-delay="4"] { transition-delay: 0.5s; }
[data-delay="5"] { transition-delay: 0.65s; }
[data-delay="6"] { transition-delay: 0.8s; }

/* ── Divider line: grows outward from centre on reveal ── */
.divider[data-reveal],
.divider-left[data-reveal] {
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 1; /* override — dividers use scaleX not opacity */
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.divider[data-reveal].is-visible,
.divider-left[data-reveal].is-visible {
  transform: scaleX(1) !important;
  opacity: 1;
}

/* ── Floating botanical ── */
@keyframes floatLeaf {
  0%   { transform: translateY(0px) rotate(0deg); }
  33%  { transform: translateY(-12px) rotate(1.5deg); }
  66%  { transform: translateY(-6px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatLeafSlow {
  0%   { transform: translateY(0px) rotate(0deg) scale(1); }
  50%  { transform: translateY(-18px) rotate(2deg) scale(1.02); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

.botanical-float {
  animation: floatLeafSlow 7s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.botanical-float-2 {
  animation: floatLeaf 9s ease-in-out infinite;
  animation-delay: -3s;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* ── Hero text: gentle upward entrance on load ── */
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-entrance {
  animation: heroEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-entrance-delay-1 { animation-delay: 0.2s; }
.hero-entrance-delay-2 { animation-delay: 0.45s; }
.hero-entrance-delay-3 { animation-delay: 0.7s; }
.hero-entrance-delay-4 { animation-delay: 0.9s; }

/* ── Light shimmer pulse on cards ── */
@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,212,191,0); }
  50%       { box-shadow: 0 4px 24px 0 rgba(196,212,191,0.35); }
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .botanical-float, .botanical-float-2 { animation: none; }
  .hero-entrance, .hero-entrance-delay-1, .hero-entrance-delay-2,
  .hero-entrance-delay-3, .hero-entrance-delay-4 { animation: none; }
}
