/* The Grounded Medium — site stylesheet */

:root {
  --sage: #3B4A3E;
  --sage-dark: #2A362D;
  --ivory: #F5F1E8;
  --ivory-soft: #EFEADD;
  --plum: #6B2F52;
  --plum-dark: #52233F;
  --stone: #8A7F6E;
  --black: #2C2C2A;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--black);
  font-family: 'Nunito Sans', 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', 'Cormorant Garamond', serif;
  color: var(--sage);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; color: var(--plum); }

p { margin: 0 0 1.2em; }

a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }

.accent {
  font-family: 'Parisienne', cursive;
  color: var(--plum);
  font-weight: 400;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--sage { background: var(--sage); color: var(--ivory); }
.section--sage h1, .section--sage h2, .section--sage h3 { color: var(--ivory); }
.section--plum { background: var(--plum); color: var(--ivory); }
.section--plum h1, .section--plum h2 { color: var(--ivory); }
.section--soft { background: var(--ivory-soft); }

.center { text-align: center; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid rgba(59,74,62,0.15);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; order: 2; }
  .nav-right { gap: 1rem; }
  .nav-book-btn { order: 1; padding: 0.6rem 1.2rem; font-size: 0.88rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ivory);
    border-bottom: 1px solid rgba(59,74,62,0.15);
    padding: 0 2rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  }
  .nav-links.is-open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    padding: 1.2rem 2rem 1.5rem;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.6rem 0; }
}
.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 600;
  text-transform: uppercase;
}
.wordmark span {
  display: block;
  font-family: 'Parisienne', cursive;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--plum);
}
.logo-img {
  height: 78px;
  width: auto;
  display: block;
}
footer .logo-img { height: 90px; }
@media (max-width: 640px) {
  .logo-img { height: 58px; }
}
.logo-splash {
  background: var(--ivory);
  padding: 3rem 1.5rem;
  text-align: center;
}
.logo-splash img {
  width: clamp(260px, 85vw, 1400px);
  height: auto;
  display: inline-block;
}
@media (max-width: 640px) {
  .logo-splash { padding: 2.5rem 1.25rem; }
  .logo-splash img { width: clamp(220px, 88vw, 320px); }
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--black);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav-links a.active { color: var(--plum); font-weight: 700; }
.nav-links a.btn { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  background: var(--plum);
  color: var(--white) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.2s ease;
  border: 1px solid var(--plum);
}
.btn:hover { background: var(--plum-dark); }
.btn--outline {
  background: transparent;
  color: var(--ivory) !important;
  border: 1px solid var(--ivory);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--sage {
  background: var(--sage);
  border-color: var(--sage);
}
.btn--sage:hover { background: var(--sage-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,54,45,0.35) 0%, rgba(43,54,45,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}
.hero h1 { color: var(--white); }
.hero p.lede { font-size: 1.25rem; margin-bottom: 2rem; }

p.lede {
  font-size: 1.2rem;
  color: var(--stone);
  margin-bottom: 1.8rem;
}

.hero--right { justify-content: flex-end; }
.hero--right::after {
  background: linear-gradient(90deg, rgba(43,54,45,0) 0%, rgba(43,54,45,0) 40%, rgba(43,54,45,0.45) 62%, rgba(43,54,45,0.62) 100%);
}
.hero--right .hero-content {
  margin: 0 6vw 0 0;
  text-align: right;
  max-width: 440px;
}
@media (max-width: 700px) {
  .hero--right .hero-content { margin: 0 1.5rem; text-align: center; max-width: 100%; }
}

/* Page banner (smaller header for inner pages) — fixed-ratio photo card, never full-bleed cropped */
.banner {
  background: var(--sage);
  color: var(--ivory);
  padding: 3.5rem 0;
}
.banner-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.banner-photo {
  width: 220px;
  height: 270px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sage-dark);
}
.banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-content {
  flex: 1;
  min-width: 260px;
}
.banner h1 { color: var(--white); margin-bottom: 0.3em; }
.banner p { color: var(--ivory-soft); margin-bottom: 0; }
@media (max-width: 640px) {
  .banner-flex { flex-direction: column; text-align: center; }
}

/* Wide neutral-background banner — photo with blank space on one side for
   text (and, on the home page, the logo). Source photos are 1920x600 (3.2:1)
   with the subject already framed to one side, so no cropping is needed at
   that ratio. */
.banner-wide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3.2;
  overflow: hidden;
  background: var(--ivory-soft);
}
.reviews-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.reviews-hero-media .lede {
  padding-right: 20px;
}
.banner-wide-media img.banner-wide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-wide-logo-badge {
  position: absolute;
  top: 1.5rem;
  right: 4%;
  height: 52px;
  width: auto;
  z-index: 2;
}
.banner-wide-text {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  max-width: 40%;
  z-index: 2;
}
.banner-wide-text h1 { color: var(--sage); margin-bottom: 0.3em; }
.banner-wide-text p { color: var(--stone); margin-bottom: 0; }

@media (max-width: 800px) {
  .banner-wide-media { aspect-ratio: auto; overflow: visible; }
  .banner-wide-media img.banner-wide-photo {
    position: static;
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-position: 78% center;
  }
  .banner-wide-text {
    position: static;
    transform: none;
    max-width: 100%;
    text-align: center;
    background: var(--ivory);
    padding: 1.75rem 1.5rem 2rem;
  }
  .banner-wide-logo-badge { height: 36px; top: 1rem; right: 1rem; }
}

/* Full, uncropped photo banner with a soft white scrim at top for text —
   used when the source photo doesn't have a natural blank side (centered
   subject, different aspect ratio) so nothing gets cut off. */
.banner-photo-full {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
  background: var(--ivory-soft);
}
.banner-photo-full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.banner-photo-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.45) 30%, rgba(255,255,255,0) 55%);
}
.banner-photo-full--plain::after { content: none; }
.banner-photo-full-logo {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  height: 48px;
  width: auto;
  z-index: 3;
}
.banner-photo-full-text {
  position: absolute;
  top: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  padding: 0 1.5rem;
}
.banner-photo-full-text h1 { color: var(--sage); margin-bottom: 0.3em; }
.banner-photo-full-text p {
  color: var(--stone);
  margin: 0 auto;
  max-width: 520px;
}
@media (max-width: 640px) {
  .banner-photo-full-logo { height: 34px; top: 1rem; right: 1rem; }
  .banner-photo-full-text { top: 1.25rem; }
}

/* Home page variant: logo lives in the blank space with the heading,
   instead of the full-width logo splash */
.home-hero-media { position: relative; }
.home-hero-text {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  max-width: 40%;
  z-index: 2;
}
.home-hero-text img.home-hero-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 1.2rem;
}
.home-hero-text h1 { color: var(--sage); }
.home-hero-text p.lede { color: var(--stone); }
@media (max-width: 800px) {
  .home-hero-text {
    position: static;
    transform: none;
    max-width: 100%;
    text-align: center;
    background: var(--ivory);
    padding: 2rem 1.5rem 2.25rem;
  }
  .home-hero-text img.home-hero-logo { max-width: 200px; margin: 0 auto 1.2rem; }
}

/* Cards / grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(59,74,62,0.12);
  border-radius: 6px;
  padding: 2rem 1.7rem;
  color: var(--black);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

/* Reviews page — fewer, wider cards so quotes aren't squeezed into tall narrow columns */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

/* In person / Zoom format tiles */
.format-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 500px;
  margin: 2rem auto;
}
.format-tile {
  border-radius: 8px;
  padding: 2.4rem 1rem;
  text-align: center;
  font-family: 'Libre Baskerville', 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}
.format-tile--person {
  background: var(--ivory-soft);
  color: var(--sage);
  border: 1px solid rgba(59,74,62,0.15);
}
.format-tile--zoom {
  background: var(--sage);
  color: var(--ivory);
}
@media (max-width: 640px) {
  .format-tile { padding: 1.8rem 1rem; font-size: 1.25rem; }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .nav-links { gap: 1rem; font-size: 0.85rem; }
}

/* Quote */
blockquote {
  border-left: 3px solid var(--plum);
  padding-left: 1.4rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.15rem;
}
blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-weight: 700;
  color: var(--plum);
  font-size: 0.95rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
}
th, td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(59,74,62,0.12);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}
th {
  background: var(--sage);
  color: var(--ivory);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
tr:nth-child(even) td { background: var(--ivory-soft); }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 480px; }

.price-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--plum);
  font-weight: 600;
}

.note {
  font-size: 0.9rem;
  color: var(--stone);
  font-style: italic;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--plum);
  margin: 1.2rem auto;
  border: none;
}
.divider--left { margin: 1.2rem 0; }

/* Footer */
footer {
  background: var(--sage-dark);
  color: var(--ivory-soft);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
footer a { color: var(--ivory); }
.social-icons {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.social-icons a:hover { background: var(--ivory-soft); }
.social-icons svg { width: 18px; height: 18px; fill: var(--sage-dark); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-bottom {
  border-top: 1px solid rgba(245,241,232,0.15);
  padding-top: 1.2rem;
  text-align: center;
  color: var(--stone);
  font-size: 0.82rem;
}

.service-anchor { scroll-margin-top: 90px; }

.pill {
  display: inline-block;
  background: var(--ivory-soft);
  color: var(--sage);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

/* Testimonial carousel — crossfades between quotes */
.testimonial-carousel {
  position: relative;
  min-height: 230px;
}
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: testimonialFade 14s infinite;
}
.testimonial-slide:nth-child(2) { animation-delay: 7s; }

/* 7-quote rotation: each slide gets its own inline animation-delay,
   duration matches slot-count (7) x 9s = 63s */
.testimonial-carousel--7 .testimonial-slide {
  animation: testimonialFade7 63s infinite;
}
/* 16-quote rotation: slot-count (16) x 7s = 112s */
.testimonial-carousel--16 .testimonial-slide {
  animation: testimonialFade16 112s infinite;
}
.testimonial-carousel--about {
  min-height: 300px;
}
@media (max-width: 800px) {
  .testimonial-carousel--about { min-height: 260px; }
}

@keyframes testimonialFade {
  0%    { opacity: 0; }
  4%    { opacity: 1; }
  46%   { opacity: 1; }
  50%   { opacity: 0; }
  100%  { opacity: 0; }
}
@keyframes testimonialFade7 {
  0%     { opacity: 0; }
  2%     { opacity: 1; }
  12.5%  { opacity: 1; }
  14.5%  { opacity: 0; }
  100%   { opacity: 0; }
}
@keyframes testimonialFade16 {
  0%    { opacity: 0; }
  1%    { opacity: 1; }
  5%    { opacity: 1; }
  6%    { opacity: 0; }
  100%  { opacity: 0; }
}
@media (max-width: 640px) {
  .testimonial-carousel { min-height: 280px; }
  .testimonial-carousel--7 { min-height: 320px; }
  .testimonial-carousel--16 { min-height: 240px; }
}
