/* =========================================================
   Babble & Bloom — Design System
   Palette sampled directly from the practice's logo artwork:
   sage stems, ivory florals, muted gold centers, taupe wordmark.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  /* --- Core palette, extracted from logo pixels --- */
  --ink:        #57544E;   /* wordmark taupe-charcoal */
  --ink-soft:   #726E66;   /* secondary text */
  --sage:       #8B9A6E;   /* stems, primary accent */
  --sage-deep:  #626F49;   /* deep sage, buttons / dark sections */
  --sage-pale:  #E7EBDD;   /* pale sage wash */
  --gold:       #B79A57;   /* floral centers, accent */
  --gold-soft:  #D8C89A;   /* faded gold, hover glow */
  --cream:      #FBF8F2;   /* page background */
  --dusty-white:#F3EFE3;   /* card / section background */
  --blush:      #E8E1D2;   /* hairline dividers */
  --white:      #FFFFFF;

  /* --- Type --- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-soft: 0 12px 40px -18px rgba(87, 84, 78, 0.25);
  --shadow-lift: 0 20px 60px -20px rgba(87, 84, 78, 0.35);

  --container: 1180px;
}

/* --- Reset --- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1{ font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.01em; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 400; }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); }
p{ margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--sage-deep);
  display:inline-flex;
  align-items:center;
  gap:.55em;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 1px;
  background: var(--gold);
  display:inline-block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }
.section--sage{ background: var(--sage-pale); }
.section--deep{ background: var(--sage-deep); color: var(--dusty-white); }
.section--deep h2, .section--deep h3{ color: var(--white); }
.section--deep > .container > p,
.section--deep > .container > .max-w > p{ color: #E4E9D9; }

.text-center{ text-align:center; }
.max-w{ max-width: 680px; margin:0 auto; }

/* --- Buttons --- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.btn--primary{
  background: var(--sage-deep);
  color: var(--white);
}
.btn--primary:hover{ background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--ghost{
  background: transparent;
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.btn--ghost:hover{ background: var(--sage-deep); color: var(--white); }
.btn--gold{
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover{ background: #9f843f; transform: translateY(-2px); }
.btn--block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; transform:none !important; }

/* --- Header / Nav --- */
/* NOTE: intentionally no backdrop-filter here. backdrop-filter creates a
   new CSS containing block for any position:fixed descendants — which
   breaks the mobile nav__links panel below (it stops covering the full
   viewport and instead gets boxed into the header's own bounds). A
   near-opaque solid background gives nearly the same look without that bug. */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(251,248,242,0.97);
  border-bottom: 1px solid var(--blush);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav__brand{ display:flex; align-items:center; gap:12px; }
.nav__brand .logo-frame{
  height: 46px; width: 46px; border-radius: 50%;
  overflow: hidden; flex: none; background: var(--white);
}
.nav__brand .logo-frame img{
  height: 100%; width: 100%; object-fit: cover;
  object-position: center 20%;
  transform: scale(2.3);
}
.nav__brand-text{ font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height:1.1; }
.nav__brand-text small{ display:block; font-family: var(--font-body); font-size:.6rem; letter-spacing:.18em; color: var(--sage-deep); font-weight:600; margin-top:2px; }
.nav__links{ display:flex; align-items:center; gap: 34px; }
.nav__close{ display:none; }
.nav__links a{
  font-size:.92rem; font-weight:600; color: var(--ink-soft);
  position:relative; padding: 4px 0;
  transition: color .2s;
}
.nav__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background: var(--gold); transform: scaleX(0); transform-origin:left;
  transition: transform .25s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"]{ color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after{ transform: scaleX(1); }
.nav__cta{ display:flex; align-items:center; gap:16px; }
.nav__toggle{
  display:none;
  background:none; border:none; padding:8px;
  flex-direction:column; gap:5px;
}
.nav__toggle span{ width:24px; height:2px; background: var(--ink); display:block; }

@media (max-width: 900px){
  .nav__links{
    position:fixed; inset: 0; z-index: 300;
    background: var(--cream);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 26px;
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: all .25s ease;
  }
  .nav__links.is-open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav__links a{ font-size:1.2rem; }
  .nav__toggle{ display:flex; }
  .nav__close{
    position:absolute; top:22px; right:22px;
    width:44px; height:44px; border:1px solid var(--blush); border-radius:50%;
    background: var(--white); font-size:1.6rem; line-height:1;
    display:flex; align-items:center; justify-content:center;
    color: var(--ink);
  }
  /* Applied to <body> while the menu is open, via JS, to lock background
     scroll — this is what stops page content (like the dark CTA section)
     from showing through behind the overlay while scrolling. */
  body.nav-locked{ position: fixed; left:0; right:0; }
  .nav__cta .btn span{ display:none; }
}

/* --- Botanical divider (signature element) --- */
.sprig{
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  height: 46px;
  color: var(--sage);
}
.sprig path{
  fill:none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  transition: stroke-dashoffset 1.4s ease;
}
.sprig.is-visible path{ stroke-dashoffset: 0; }
.sprig circle{ fill: var(--gold); opacity:0; transition: opacity .6s ease .8s; }
.sprig.is-visible circle{ opacity:1; }

/* --- Hero --- */
.hero{
  position:relative;
  padding: 72px 0 40px;
  overflow:hidden;
}
.hero__grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items:center;
}
.hero__eyebrow{ margin-bottom: 18px; }
.hero h1{ margin-bottom: 22px; }
.hero h1 em{ font-style: italic; color: var(--sage-deep); }
.hero p.lede{ font-size:1.15rem; max-width: 480px; }
.hero__ctas{ display:flex; gap:16px; margin-top: 30px; flex-wrap:wrap; }
.hero__credentials{
  margin-top: 40px; display:flex; gap: 28px; flex-wrap:wrap;
}
.hero__credentials div{ font-size:.85rem; color: var(--ink-soft); }
.hero__credentials strong{ display:block; font-family: var(--font-display); font-size:1.5rem; color: var(--ink); font-weight:500; }

.hero__art{
  position:relative;
  border-radius: var(--radius-lg);
  background: var(--dusty-white);
  aspect-ratio: 4/5;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  box-shadow: var(--shadow-lift);
}
.hero__art img{
  width:78%; height:78%; object-fit:contain;
  object-position: center center;
  margin: 0 auto;
}
.hero__art .float-tag{
  position:absolute; top:22px; left:22px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 14px 18px; box-shadow: var(--shadow-soft);
  font-size:.85rem; display:flex; gap:10px; align-items:center;
  max-width: 240px;
}

@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__art{ order:-1; aspect-ratio: 5/4; }
}

/* --- Cards --- */
.grid{ display:grid; gap: 28px; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid--3, .grid--2{ grid-template-columns: 1fr; } }

.card{
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--blush);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card__icon{
  width:52px; height:52px; border-radius:50%;
  background: var(--sage-pale); color: var(--sage-deep);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.card--placeholder{ border-style:dashed; border-color: var(--gold); background: #FFFDF7; }
.placeholder-tag{
  display:inline-block; font-size:.68rem; text-transform:uppercase; letter-spacing:.1em;
  background: var(--gold-soft); color:#5C4A1B; padding:3px 10px; border-radius: 999px;
  font-weight:700; margin-bottom: 10px;
}

/* --- Testimonials --- */
.testimonial{
  background: var(--white); border-radius: var(--radius-md); padding: 30px;
  border: 1px solid var(--blush);
}
.testimonial p{ font-family: var(--font-display); font-style:italic; font-size:1.15rem; color: var(--ink); }
.testimonial cite{ font-style:normal; font-size:.85rem; color: var(--sage-deep); font-weight:600; }

/* --- FAQ / Accordion ---
   Scoped color reset: the FAQ list sits inside a dark .section--deep,
   which sets a pale text color on itself that would otherwise cascade
   into this white card and make both the question and answer illegible. */
.faq-panel{ color: var(--ink); }
.accordion-item{ border-bottom: 1px solid var(--blush); }
.accordion-item summary{
  padding: 22px 4px; cursor:pointer; font-family: var(--font-display); font-size:1.15rem;
  display:flex; justify-content:space-between; align-items:center; list-style:none;
  color: var(--ink);
}
.accordion-item summary::-webkit-details-marker{ display:none; }
.accordion-item summary::after{ content:"+"; font-size:1.4rem; color: var(--sage-deep); transition: transform .2s; }
.accordion-item[open] summary::after{ transform: rotate(45deg); }
.accordion-item .accordion-body{ padding: 0 4px 22px; }

/* --- Footer --- */
.site-footer{ background: var(--ink); color: #DCD9D0; padding: 64px 0 28px; }
.site-footer h4{ color: var(--white); font-size:1rem; }
.footer__grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__grid a{ color:#C7C3B8; font-size:.92rem; display:block; padding: 6px 0; transition: color .2s; }
.footer__grid a:hover{ color: var(--gold-soft); }
.footer__brand p{ color:#B7B3A8; max-width: 280px; }
.footer__social{
  display:inline-flex; align-items:center; gap:10px; margin-top:14px;
  padding: 10px 18px; border: 1px solid #6E6A60; border-radius:999px;
  font-size:.85rem; font-weight:600; color: var(--white);
}
.footer__social:hover{ border-color: var(--gold-soft); color: var(--gold-soft); }
.footer__bottom{
  border-top: 1px solid #6E6A60; padding-top: 24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:.8rem; color:#9C988D;
}
@media (max-width: 900px){ .footer__grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer__grid{ grid-template-columns: 1fr; } }

/* --- Forms --- */
.form-field{ margin-bottom: 22px; }
.form-field label{ display:block; font-weight:600; font-size:.88rem; margin-bottom:8px; color: var(--ink); }
.form-field .hint{ font-size:.78rem; color: var(--ink-soft); margin-top:6px; }
.form-field input, .form-field textarea, .form-field select{
  width:100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--blush); background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  border-color: var(--sage-deep);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px){ .form-row{ grid-template-columns:1fr; } }
.form-status{
  padding: 14px 18px; border-radius: var(--radius-sm); font-size:.9rem; margin-top: 18px; display:none;
}
.form-status.is-success{ display:block; background:#EEF3E4; color:#4B5B31; border:1px solid #C9D6AE; }
.form-status.is-error{ display:block; background:#FBECEC; color:#8A3B3B; border:1px solid #E9C4C4; }

/* --- Availability grid --- */
.avail-table{ width:100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-soft); }
.avail-table th, .avail-table td{ padding: 16px; text-align:center; border: 1px solid var(--blush); font-size:.88rem; }
.avail-table th{ background: var(--sage-pale); color: var(--sage-deep); font-weight:700; }
.avail-open{ color: var(--sage-deep); font-weight:700; }
.avail-open::before{ content:"●"; margin-right:6px; font-size:.6rem; }
.avail-closed{ color: #B9B4A8; }
.avail-note{ font-size:.82rem; color: var(--ink-soft); margin-top: 14px; }

/* --- Page hero (interior pages) --- */
.page-hero{ padding: 64px 0 20px; text-align:center; }
.page-hero .eyebrow{ justify-content:center; }
.page-hero p{ max-width: 620px; margin: 0 auto; }

/* --- Resource list --- */
.resource-card{ display:flex; gap:20px; align-items:flex-start; }
.resource-card__icon{ width:44px; height:44px; flex:none; border-radius:50%; background: var(--gold-soft); display:flex; align-items:center; justify-content:center; color:#5C4A1B; }
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tag{ font-size:.72rem; background: var(--sage-pale); color: var(--sage-deep); padding:4px 10px; border-radius:999px; font-weight:700; letter-spacing:.02em; }

/* --- Utility --- */
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.flex{ display:flex; } .items-center{ align-items:center; } .gap-10{ gap:10px; }
.badge-live{ display:inline-flex; align-items:center; gap:6px; font-size:.75rem; font-weight:700; color: var(--sage-deep); }
.badge-live::before{ content:""; width:8px; height:8px; border-radius:50%; background: var(--sage-deep); }

/* Reveal-on-scroll */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* --- Admin --- */
.admin-shell{ min-height:100vh; background: var(--dusty-white); }
.admin-topbar{ background: var(--ink); color: var(--white); padding: 18px 28px; display:flex; justify-content:space-between; align-items:center; }
.admin-main{ max-width: 1040px; margin: 0 auto; padding: 40px 28px; }
.admin-tabs{ display:flex; gap:10px; margin-bottom: 24px; }
.admin-tab{ padding:10px 18px; border-radius:999px; background: var(--white); border:1px solid var(--blush); font-weight:600; font-size:.85rem; }
.admin-tab.is-active{ background: var(--sage-deep); color: var(--white); border-color: var(--sage-deep); }
.req-card{ background: var(--white); border-radius: var(--radius-md); padding: 22px; margin-bottom:16px; border:1px solid var(--blush); display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.status-pill{ font-size:.72rem; font-weight:700; padding:4px 12px; border-radius:999px; text-transform:uppercase; letter-spacing:.05em; }
.status-pending{ background:#FBF1DA; color:#8A6A1E; }
.status-approved{ background:#E7F1DC; color:#4B6B2C; }
.status-declined{ background:#F6E2E2; color:#8A3B3B; }
.gate{ min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:24px; }
.gate .card{ max-width:420px; }
