:root {
  --bg: #f8f4ee;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #1f1d1a;
  --muted: #615a52;
  --accent: #c7693e;
  --accent-deep: #8f3f1b;
  --line: rgba(31, 29, 26, 0.12);
  --shadow: 0 24px 60px rgba(60, 37, 18, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(237, 191, 152, 0.38), transparent 28%),
    radial-gradient(circle at top right, rgba(143, 63, 27, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f4eee6 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 238, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-shell,
.footer-shell {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-shell {
  min-height: 76px;
  justify-content: space-between;
}

.footer-shell {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.brand,
h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
}

.brand {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 56px 0 40px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 244, 238, 0.92) 0%, rgba(248, 244, 238, 0.5) 40%, rgba(248, 244, 238, 0.3) 100%),
    url("./assets/hero/hero-backdrop.webp")
      center/cover no-repeat;
  transform: scale(1.03);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 10vw, 6.6rem);
}

.hero-text {
  max-width: 42ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(199, 105, 62, 0.25);
}

.button-secondary {
  border-color: rgba(31, 29, 26, 0.15);
  background: rgba(255, 255, 255, 0.7);
}

.hero-collage {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
}

.hero-collage img,
.gallery-grid img,
.location-card img {
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-collage img:first-child {
  grid-row: span 2;
  min-height: 420px;
  opacity: 0.9;
}

.hero-collage img:nth-child(2),
.hero-collage img:nth-child(3) {
  min-height: 200px;
}

section {
  padding: 34px 0 72px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.section-heading.narrow {
  max-width: 92ch;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.promise-grid,
.program-list,
.testimonial-grid {
  display: grid;
  gap: 18px;
}

.promise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promise-grid article,
.program-list article,
.testimonial-grid blockquote,
.contact-form,
.location-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.promise-grid article,
.program-list article {
  padding: 24px;
}

.promise-grid h3,
.program-list h3,
.location-card h3 {
  margin: 0 0 10px;
  font-size: 1.9rem;
}

.promise-grid p,
.program-list p,
.location-card p,
.testimonial-grid p,
.contact-copy p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.location-card {
  overflow: hidden;
}

.location-card img {
  height: 280px;
  border-radius: 0;
  box-shadow: none;
}

.location-slideshow {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #dbeaf3;
}

.location-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 280ms ease;
}

.location-slideshow .slide.is-active {
  opacity: 1;
}

.location-slideshow .slide,
.location-slideshow .slide.is-active {
  height: 320px;
  object-fit: cover;
}

.slideshow-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.62);
  color: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slideshow-button.previous {
  left: 14px;
}

.slideshow-button.next {
  right: 14px;
}

.slideshow-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.slideshow-dot.is-active {
  background: #fff;
}

.location-details {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.location-card a {
  color: var(--accent-deep);
  font-weight: 700;
}

.programs-shell {
  display: grid;
  gap: 12px;
}

.program-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 24px;
}

.testimonial-grid cite {
  display: block;
  margin-top: 16px;
  color: var(--accent-deep);
  font-style: normal;
  font-weight: 800;
}

.faq {
  scroll-margin-top: 150px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 64px;
  padding: 20px 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.faq-list summary::marker {
  color: var(--accent-deep);
}

.faq-list summary:hover,
.faq-list details[open] summary {
  color: var(--accent-deep);
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: -2px;
  border-radius: 4px;
}

.faq-list p {
  max-width: 78ch;
  margin: 0;
  padding: 0 12px 24px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-list a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button {
  font: inherit;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  padding: 14px 16px;
  color: var(--text);
}

.contact-form input:invalid,
.contact-form select:invalid,
.contact-form textarea:invalid {
  border-color: rgba(143, 63, 27, 0.32);
}

.site-footer {
  padding: 20px 0 34px;
}

@media (max-width: 980px) {
  .hero-shell,
  .contact-shell,
  .location-grid,
  .testimonial-grid,
  .program-list,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    order: -1;
  }

  .hero-collage img:first-child {
    min-height: 380px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .full {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 540px) {
  .hero-collage {
    grid-template-columns: 1fr;
  }

  .hero-collage img:first-child,
  .hero-collage img:nth-child(2),
  .hero-collage img:nth-child(3) {
    min-height: 240px;
  }

  .section-heading h2 {
    font-size: 2.3rem;
  }
}

/* Location pages */
.location-page h1 {font-family:"Cormorant Garamond",serif;font-size:clamp(2.4rem,5vw,4rem);line-height:1.08;max-width:850px;margin:16px 0 24px;}
.location-page h2 {font-family:"Cormorant Garamond",serif;font-size:2rem;line-height:1.15;}
.location-page p,.location-page address {line-height:1.8;color:var(--muted);font-style:normal;}
.location-lead {max-width:850px;font-size:1.15rem;}
.breadcrumbs {margin-bottom:32px;font-size:.9rem;}
.location-page-layout {display:grid;grid-template-columns:1fr 1fr;gap:48px;}
.center-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.center-gallery img {width:100%;height:auto;border-radius:var(--radius);}
.center-gallery img:first-child {grid-column:1/-1;max-height:620px;object-fit:cover;}
.center-links {display:flex;flex-wrap:wrap;gap:16px;margin:24px 0;}
.location-page-link,.text-link {text-decoration:underline;text-underline-offset:4px;}
.location-page-link {margin-top:12px;font-weight:600;}
@media(max-width:720px){.nav-shell{flex-wrap:wrap;padding:16px 0;gap:12px}.nav{flex-wrap:wrap;gap:12px}.location-page-layout{grid-template-columns:1fr;gap:20px}.center-gallery{grid-template-columns:1fr}.hero-actions{flex-wrap:wrap}.location-page h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
