@import url('https://fonts.googleapis.com/css2?family=Glory:wght@700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --text-dark: #2a2a26;
  --mustard: #f2a82f;
  --cream: #fef6ea;
  --green: #4b5f00;
  --dark-purple: #5c4656;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: white;
  line-height: 1.5;
}

body, button, input, textarea, select {
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.5;
  font-family: "Glory", Georgia, "Cambria", "Times New Roman", serif;
  font-weight: 800;
  margin-top: 0;
}

h1 {
  margin-bottom: 2rem;
  font-size: clamp(4rem, 5.9vw, 72px);
  color: var(--green);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 42px);
  color: var(--green);
  line-height: 1;
  text-wrap: balance;
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 2.2vw, 30px);
  color: var(--dark-purple);
}

h4 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 1.5vw, 26px);
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.8rem 1.8rem;
  color: white;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  transition:
  background 0.25s ease,
  color 0.25s ease,
  transform 0.15s ease,
  box-shadow 0.25s ease,
  backdrop-filter 0.25s ease;
}

.btn:active {
  transform: translateY(0);
  color:white;
}

.button-filled {
  background: var(--mustard);
  color: white;
  box-shadow: 0 10px 30px rgba(92, 70, 86, 0.1);
}

.button-filled:hover {
  background: var(--green);
  color: white;
  box-shadow: 0 5px 30px rgba(92, 70, 86, 0.1);
  transform: translateY(-2px);
}

.button-white {
  background: white;
  color: var(--green);
  box-shadow: 0 10px 30px rgba(92, 70, 86, 0.1);
}

.button-white:hover {
  background: white;
  color: var(--green);
  box-shadow: 0 5px 30px rgba(92, 70, 86, 0.1);
  transform: translateY(-2px);
}

.button-ghost {
  background: transparent;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 0.111rem rgba(255, 255, 255, 0.9);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  box-shadow:
  inset 0 0 0 0.111rem white,
  0 10px 30px rgba(92, 70, 86, 0.1);
  transform: translateY(-2px);
}

.button-outline {
  background: transparent;
  backdrop-filter: blur(4px);
  color: white;
  box-shadow: inset 0 0 0 2px white;
  white-space: normal;
}

.button-outline:hover {
  background: white;
  color: var(--green);
  box-shadow:
  inset 0 0 0 2px white,
  0 10px 30px rgba(92, 70, 86, 0.1);
  transform: translateY(-2px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.333rem;
  color: var(--dark-purple);
  font-weight: 600;
  transition: color 0.2s ease;
}

.link:hover {
  color: var(--mustard);
}

/* Link variant used inside the testimonial cards. */
.testimonial-link {
  color: var(--green);
}

.testimonial-link:hover {
  color: var(--mustard);
}

.link-arrow {
  display: inline-block;
  text-decoration: none;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--mustard);
  color: white;
  font-family: "Glory", Georgia, "Cambria", "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
  .section, #in-a-nutshell, #about { scroll-margin-top: 5.5rem; }
  
  .section { padding: 5.5rem 8%; }

  .split {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    background: white;
  }
  
  .section-split {
    margin-bottom: 2rem;
  }

  /* -- HEADER -- */  
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 8%;
  background: transparent;
  border-bottom: none;
}  

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--green);
}  

.logo-image {
  height: 7.778rem;
  width: auto;
  object-fit: contain;
}  

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}  

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}  

.nav-links a:not(.btn) {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  transition: color 0.5s ease;
}  

.nav-links a:not(.btn):hover { color: var(--mustard); }

/* -- ABOVE HERO -- */

.above-hero {
  background: var(--dark-purple);
  min-height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 8% 2rem;
}

.above-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 50rem;
}

.above-hero-text * {
  color: white;
}

.above-hero-text .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* -- HERO -- */

.about-hero {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: center;
  padding: 5.2rem 8%;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20130'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,12%20C420,-5%201020,-5%201440,126%20L1440,130%20L0,130%20Z'%20fill='%23fef6ea'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.about-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10rem;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20120'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,50%20C200,30%20600,20%20800,40%20C1000,60%201250,60%201440,30%20L1440,0%20L0,0%20Z'%20fill='%235c4656'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.about-hero .hero-image {
  background-image:
    url("https://images.squarespace-cdn.com/content/v1/67169c3e131cc65107d6f62a/722d7c63-13a1-4ca5-9908-312ce3e75c8d/APR05049_e2.jpg");
}

.hero-image {
  position: absolute;
  inset: 0;
  min-height: 0rem;
  background-size: cover;
  background-position: center 90%;
  background-repeat: no-repeat;
}  

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}  


/* -- IN A NUTSHELL -- */
.in-a-nutshell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  align-items: start;
  background: var(--cream);
  padding-top: 2rem;
  padding-bottom: 0;
}

.nutshells {
  display: grid;
  gap: 1.5rem;
}

.nutshell-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 6rem 2rem 1.5rem;
  border-radius: 21% 43% 25% 18% / 42% 50% 60% 61%;
  background: white;
  box-shadow: 0 8px 22px rgba(75, 95, 0, 0.06);
}

.nutshell-item-image {
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
  object-fit: contain;
}

.nutshell-item-text h4 {
  margin: 0 0 0.5rem;
}

.nutshell-item-text p {
  margin: 0;
}

/* -- SUB HERO -- */
.sub-hero {
  position: relative;
  min-height: 24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10rem 8% 6rem;
  background-image: url("https://images.squarespace-cdn.com/content/v1/67169c3e131cc65107d6f62a/b481f92a-0905-42b5-bbdd-a1a678dd3cef/WaldorfDolls.jpg");
  background-size: cover;
  background-position: center 60%;
}

.sub-hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb, var(--mustard) 85%, transparent);
  pointer-events: none;
}

.sub-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8rem;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20130'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,4%20C420,135%201020,135%201440,118%20L1440,0%20L0,0%20Z'%20fill='%23fef6ea'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.sub-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.sub-hero-heading {
  color: white;
  text-align: center;
  margin: 0 0 1.8rem;
}

/* -- FOREST PHOTO BAND -- */
.forest-photo {
  position: relative;
  z-index: 4;
  min-height: 22rem;
  margin-top: -6rem;
  overflow: hidden;
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2080'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,40%20C360,5%20360,5%20720,40%20C1080,75%201080,75%201440,40%20L1440,80%20L0,80%20Z'%20fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  -webkit-mask-size: 100% 6rem, 100% calc(100% - 6rem);
  -webkit-mask-position: top left, bottom left;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%2080'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,40%20C360,5%20360,5%20720,40%20C1080,75%201080,75%201440,40%20L1440,80%20L0,80%20Z'%20fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  mask-size: 100% 6rem, 100% calc(100% - 6rem);
  mask-position: top left, bottom left;
  mask-repeat: no-repeat, no-repeat;
}

.forest-photo-image {
  background-image: url("https://images.squarespace-cdn.com/content/v1/67169c3e131cc65107d6f62a/9b39156b-411f-4984-89df-0055b9b58932/APR04811_e2.jpg");
  background-position: center 15%;
}

.forest-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201440%20120'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,20%20C240,70%20460,90%20680,60%20C900,30%201180,10%201440,60%20L1440,120%20L0,120%20Z'%20fill='%23fef6ea'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* -- PROGRAMS -- */
#programs {
  background: var(--cream);
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.card {
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(75, 95, 0, 0.06);
  padding: 1.2rem 3rem;
  border-radius: 4rem;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(75, 95, 0, 0.12);
}

.card p {
  color: var(--text-dark);
  flex: 1;
  margin: 0 0 1rem;
}

.programs-cards {
  align-items: stretch;
}

.programs-cards .card {
  padding: 0;
  overflow: hidden;
  text-align: left;
  align-items: stretch;
}

.programs-card-media {
  position: relative;
}

.programs-card-photo {
  display: block;
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.programs-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.5rem 3rem 3rem;
  box-shadow: 0 8px 22px rgba(75, 95, 0, 0.06);
}

.programs-card-body p {
  margin-bottom: 1rem;
}

.programs-card-body .link {
  margin-top: auto;
}

/* -- ADMISSIONS -- */
#admissions {
  padding-top: 3rem;
  padding-bottom: 2rem;
  background: var(--cream);
}

/* -- APP FEATURE -- */
.app-section {
  background: var(--cream);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

.app-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-heading {
  color: var(--green);
}

.app-subtitle {
  color: var(--text-dark);
  max-width: 40rem;
  margin: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}


/* -- TESTIMONIALS -- */
.testimonials {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  background: var(--dark-purple);
}

/* Column 2: blob photo, rating line, then the Google logo. */
.testimonials-aside {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.reviews-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.reviews-on {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.testimonials-photo {
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 1 / 1;
  background-image: url("https://images.squarespace-cdn.com/content/v1/67169c3e131cc65107d6f62a/b481f92a-0905-42b5-bbdd-a1a678dd3cef/WaldorfDolls.jpg");
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center;
  /* Each opposing pair sums to 100% so the arcs meet tangentially —
     pairs over 100% get rescaled by the browser and produce kinks. */
  border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
  box-shadow: 0 18px 40px rgba(42, 42, 38, 0.25);
}

.testimonials-panel {
  --reviews-gutter: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Grid/flex children default to min-width:auto, which lets the wide
     scroll track expand this column past the section. */
  min-width: 0;
  /* Gutter lives on the panel, not the carousel, so the summary bar,
     the cards and the dots all share exactly the same width. */
  padding-left: var(--reviews-gutter);
  padding-right: var(--reviews-gutter);
}

.testimonials-heading {
  margin: 0;
  color: white;
  text-align: center;
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  background: transparent;
}

.google-logo {
  height: 3.8rem;
  width: auto;
  flex-shrink: 0;
}

.reviews-score {
  font-family: "Glory", Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  color: white;
}

.reviews-stars {
  color: var(--mustard);
  font-size: 24px;
  letter-spacing: 0.1rem;
}

.reviews-count {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.reviews-carousel {
  position: relative;
  min-width: 0;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  border-radius: 18% 37% 95% 27% / 39% 150% 55% 45%;
  background: white;
  box-shadow: 0 8px 22px rgba(75, 95, 0, 0.12);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  background: transparent;
  color: var(--mustard);
  font-family: "Glory", Georgia, serif;
  font-size: 22px;
  font-weight: 800;
}

.review-avatar-img {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
}

.reviews-loading {
  margin: 0;
  padding: 1.4rem;
  border-radius: 1rem;
  background: white;
  color: var(--text-dark);
  text-align: center;
}

.review-meta p,
.review-meta h4 { margin: 0; }

.review-verified { color: #4285f4; font-size: 14px; }

.review-date {
  font-size: 18px;
  color: var(--green);
  opacity: 0.75;
}

.review-date span { color: var(--green); font-weight: 600; }

.review-stars {
  display: block;
  margin: 0 0 0.6rem;
  color: var(--mustard);
  font-size: 18px;
  letter-spacing: 0.1rem;
}

/* Text is trimmed to 300 characters in script.js, so no CSS clamp needed. */
.review-card > p {
  margin: 0 0 0.8rem;
}

/* -- FULL-REVIEW POPUP -- */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.review-modal[hidden] { display: none; }

.review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 38, 0.6);
  backdrop-filter: blur(2px);
}

.review-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem 3rem 3rem;
  background: white;
  /* Matches .review-card */
  border-radius: 18% 37% 95% 27% / 39% 150% 55% 45%;
  box-shadow: 0 24px 60px rgba(42, 42, 38, 0.35);
}

.review-modal-close {
  position: absolute;
  /* Inset well clear of the blob's top-right curve, which is very
     rounded (150% vertical radius) and would clip the button. */
  top: 2.5rem;
  right: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.review-modal-close:hover {
  background: var(--mustard);
  color: white;
}

.review-modal-card > p {
  margin: 0;
}

/* Colors, weight and hover come from .link — this only resets the
   <button> element and handles placement within the card. */
.review-more {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.reviews-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 0;
  background: none;
  color: white;
  font-size: 120px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Sit centered in the panel's gutter, outside the cards. */
.reviews-arrow-prev {
  left: calc(var(--reviews-gutter) / -2);
  transform: translate(-50%, -50%);
}

.reviews-arrow-next {
  right: calc(var(--reviews-gutter) / -2);
  transform: translate(50%, -50%);
}

.reviews-arrow:hover {
  color: white;
}

.reviews-arrow-prev:hover { transform: translate(-50%, -50%) scale(1.08); }
.reviews-arrow-next:hover { transform: translate(50%, -50%) scale(1.08); }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.reviews-dot {
  width: 0.5rem;
  height: 0.5rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease;
}

.reviews-dot.is-active { background: var(--mustard); }

/* -- CONTACT -- */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--green);
  color: white;
  text-align: center;
}

.contact .contact-info {
  max-width: 28rem;
}

.contact .contact-form-wrap { max-width: none; }

.contact h2,
.contact p {
  color: white;
  text-align: left;
}

.contact-heading {
  max-width: none;
  margin: 0 0 2.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 28rem 1fr;
  gap: 1rem;
  align-items: start;
  max-width: 60rem;
  margin: 0 auto;
}

.contact-info .contact-details { text-align: left; }

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.contact-details li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(242, 168, 47, 0.12);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
}

.contact-details span {
  color: white;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── CONTACT FORM ── */

.contact-form-wrap {
  max-width: 50rem;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0.028rem solid var(--brown-light);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dark);
  background: white;
  box-sizing: border-box;
  outline: none;
  caret-color: var(--green);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b7bf99;
}

.contact-form textarea {
  min-height: 9.3rem;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 1rem;
}

.contact-form.is-submitted .form-success {
  display: block;
}

.form-success {
  display: none;
  color: white;
  text-align: center;
  margin: 0;
}

/* -- FOOTER -- */

.site-footer {
  background: var(--dark-purple);
  padding: 1.6rem 6%;
  color: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.wecan-logo {
  height: 120px;
  width: auto;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:first-child .social-icon {
  width: 30px;
  height: 1.6rem;
}

.footer-socials a:hover .social-icon {
  opacity: 1;
}

.social-icon {
  width: 30px;
  height: 30px;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-bottom {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  text-align: right;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* -- SUBTLE HOVER ANIMATIONS -- */
.nutshell-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nutshell-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(75, 95, 0, 0.1);
}

.programs-card-photo {
  transition: transform 0.35s ease;
}

.card:hover .programs-card-photo {
  transform: scale(1.05);
}

.social-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover .social-icon {
  transform: scale(1.12);
}

.contact-form input,
.contact-form textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.167rem color-mix(in srgb, var(--green) 20%, transparent);
}

/* -- SCROLL REVEAL (content only, section backgrounds are never animated) -- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.nutshells .reveal:nth-child(2) { transition-delay: 0.08s; }
.nutshells .reveal:nth-child(3) { transition-delay: 0.16s; }

.programs-cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.programs-cards .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ======================================================
   BREAKPOINTS
   Tablet:  max-width 768px
   Mobile:  max-width 480px
   ====================================================== */

/* -- TABLET (<=900px, covers iPad Pro 11's 834px width) -- */
@media (max-width: 900px) {
  .section { padding: 4rem 6%; }
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-header { padding: 0.6rem 6%; z-index: 25; }
  .logo-image { height: 5rem; }
  .menu-toggle { display: flex; position: relative; z-index: 25; }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    max-width: 20rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: color-mix(in srgb, var(--green) 85%, transparent);
    backdrop-filter: blur(4px);
    padding: 5rem 1.5rem 1.5rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 20;
  }
  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links a:not(.btn) { padding: 0.7rem 0; color: white; }
  .nav-links .btn { margin-top: 0.5rem; width: 100%; }
  .about-hero { min-height: 30rem; padding: 3rem 6%; }
  .hero-image { min-height: 20rem; }
  .in-a-nutshell {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .sub-hero {
    min-height: 18rem;
    padding: 7.5rem 6% 6.5rem;
  }
  .sub-hero::before {
    height: 5rem;
  }
  .forest-photo {
    min-height: 18rem;
    margin-top: -4rem;
    -webkit-mask-size: 100% 4rem, 100% calc(100% - 4rem);
    mask-size: 100% 4rem, 100% calc(100% - 4rem);
  }
  .forest-photo::after {
    height: 3.5rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card { padding: 1.2rem 1.5rem; }
  .programs-card-body { padding: 1.8rem 1.8rem 2rem; }
  #admissions { padding-bottom: 1rem; }
  .app-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1rem;
  }
  .app-grid { grid-template-columns: 1fr; }
  .testimonials {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Stacked: the blob photo and rating sit above the reviews. */
  .testimonials-aside { order: -1; }
  .testimonials-photo { max-width: 18rem; }
  .testimonials-panel { order: 0; }
  .reviews-track { grid-auto-columns: 100%; }
  .testimonials-panel { --reviews-gutter: 3.4rem; }
  .reviews-arrow { width: 3rem; height: 3rem; font-size: 88px; }
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 2.5rem;
  }
  .contact .contact-info { max-width: none; }
  .contact-form-wrap { width: 100%; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .wecan-logo {
    margin-bottom: 1rem;
  }
  .footer-right {
    align-items: center;
  }
  .footer-socials { justify-content: center; }
  .footer-bottom {
    text-align: center;
    margin-top: 1rem;
  }
}

/* -- PHONE (<=480px) -- */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .section { padding: 3rem 6%; }
  .about-hero { min-height: 36rem; padding: 3.5rem 6%; }
  .hero-image { min-height: 24rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cards { grid-template-columns: 1fr; }
  .nutshell-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 1.8rem 1.6rem;
    /* Gentler on a narrow, tall card — the wide-stretch radii would
       swallow the text at this width. */
    border-radius: 14% 18% 15% 17% / 7% 6% 8% 7%;
  }
  .sub-hero {
    min-height: 15.556rem;
    padding: 5.5rem 6% 5rem;
  }
  .sub-hero::before {
    height: 3.333rem;
  }
  .sub-hero-heading {
    margin-bottom: 1.333rem;
  }
  .forest-photo {
    min-height: 15rem;
    margin-top: -3rem;
    -webkit-mask-size: 100% 3rem, 100% calc(100% - 3rem);
    mask-size: 100% 3rem, 100% calc(100% - 3rem);
  }
  .forest-photo::after {
    height: 2.75rem;
  }
  .testimonials-photo { max-width: 14rem; }
  .review-modal-card {
    padding: 2.5rem 1.75rem 2rem;
  }
  .review-modal-close { top: 1.75rem; right: 3rem; }
  .reviews-summary { gap: 0.45rem; padding: 0; }
  .google-logo { height: 3rem; }
  .reviews-score { font-size: 22px; }
  .reviews-stars { font-size: 20px; }
  .reviews-summary .btn { width: 100%; margin-top: 0.4rem; }
  .app-grid { grid-template-columns: 1.2fr; }
  #admissions { padding-bottom: 1.2rem; }
  .app-section { padding-top: 1rem; }
  .contact-details li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .contact-form-wrap { width: 100%; }
  .wecan-logo { margin-bottom: 1.25rem; }
  .footer-bottom { margin-top: 1.25rem; }
}

