/* ==========================================================================
   Elara Studio — Yoga & Pilates
   ========================================================================== */

:root {
  --cream: #f4efe4;
  --cream-soft: #efe7d8;
  --brown-dark: #443528;
  --brown-darker: #392b20;
  --text-dark: #3a2e24;
  --text-muted: #7a6d5e;
  --green: #6f7d4f;
  --green-dark: #5c6941;
  --white: #ffffff;
  --cream-off: rgba(255, 255, 255, 0.85);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container-width: 1240px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.65);
}

.body-text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 46ch;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-dark {
  background: var(--brown-darker);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(57, 43, 32, 0.25);
}

.btn-light {
  background: var(--cream);
  color: var(--text-dark);
}
.btn-light:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(111, 125, 79, 0.35);
}

/* ==========================================================================
   Placeholder images
   ========================================================================== */
.placeholder-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: repeating-linear-gradient(
    135deg,
    #d9cdb8,
    #d9cdb8 12px,
    #cfc1a7 12px,
    #cfc1a7 24px
  );
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: rgba(58, 46, 36, 0.55);
}

.placeholder-img::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  width: 80%;
  color: rgba(58, 46, 36, 0.55);
  background: rgba(255, 255, 255, 0.35);
  padding: 8px 10px;
  border-radius: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--cream);
  transition: box-shadow var(--transition), background var(--transition), padding var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  transition: padding var(--transition);
}

.site-header.scrolled .header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo img {
  height: 54px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: height var(--transition);
}

.site-header.scrolled .logo img {
  height: 44px;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--text-dark);
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: lowercase;
}

.main-nav {
  grid-column: 2;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.pricing-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: #cabf9f;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--transition);
}

.toggle-switch[aria-pressed="true"] {
  background: var(--green);
}
.toggle-switch[aria-pressed="true"] .toggle-knob {
  transform: translateX(16px);
}

.header-cta {
  grid-column: 3;
  justify-self: end;
  flex-shrink: 0;
}

.header-cta.mobile-only {
  display: none;
  color: var(--white);
  /* Reset the padding/underline rules inherited from ".main-nav a" (which are
     meant for plain text links) so the button keeps its normal .btn shape. */
  padding: 15px 30px;
  text-align: center;
}

.main-nav a.header-cta::after {
  content: none;
}

.menu-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1200;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-grid {
  min-height: calc(100vh - var(--header-h));
}

.hero-image {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 50px;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-caption {
  position: relative;
  z-index: 1;
}

.hero-caption h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: var(--text-dark);
  margin-top: 8px;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  background: var(--brown-darker);
  color: var(--white);
  padding: 30px 26px;
  max-width: 320px;
}

.hero-overlay p {
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ==========================================================================
   Classes for every body
   ========================================================================== */
.every-body {
  background: var(--brown-dark);
  color: var(--white);
  padding: 100px 0;
}

.every-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.every-body-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 22px;
}

.every-body-text .body-text {
  color: rgba(255, 255, 255, 0.75);
}

.every-body-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.every-body-images img,
.every-body-images .tall {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.every-body-images img:nth-child(2),
.every-body-images .tall:nth-child(2) {
  margin-top: 40px;
}

/* ==========================================================================
   Popular classes
   ========================================================================== */
.popular-classes {
  padding: 110px 0 90px;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

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

.classes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.class-card .placeholder-img,
.class-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.class-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.class-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.learn-more {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.learn-more:hover {
  gap: 10px;
  color: var(--green-dark);
}

/* ==========================================================================
   Class detail boxes (Classes & Teachers page only — each class gets its
   own at-a-glance box with level/duration/focus meta, in addition to the
   simple image+text cards used elsewhere).
   ========================================================================== */
.classes-grid--detailed {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.class-card--detailed {
  display: flex;
  align-items: stretch;
  text-align: left;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(58, 46, 36, 0.08);
}

.class-card--detailed img {
  width: 40%;
  height: auto;
  aspect-ratio: auto;
  flex-shrink: 0;
  margin-bottom: 0;
  border-radius: 0;
}

.class-card--detailed .class-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
}

.class-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.class-card-head h3 {
  margin-bottom: 0;
}

.class-level {
  flex-shrink: 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--cream-soft);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}

.class-meta-item {
  position: relative;
  padding-left: 14px;
}

.class-meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.class-meta-item:first-child {
  padding-left: 0;
}

.class-meta-item:first-child::before {
  content: none;
}

.class-card--detailed .class-card-body p {
  flex: 1;
}

.class-card--detailed .learn-more {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  background: var(--cream-soft);
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image img,
.about-image .placeholder-img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  display: block;
}

.about-text h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 26px;
}

.about-text .body-text {
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 34px;
}

.about-text .btn {
  padding: 18px 36px;
  font-size: 0.78rem;
}

/* ==========================================================================
   Feature bar
   ========================================================================== */
.feature-bar {
  background: var(--green);
  color: var(--white);
  padding: 60px 0;
}

.feature-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item .icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 14px;
}

.feature-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  padding: 110px 0;
  background: var(--cream);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--cream-soft);
  padding: 40px 30px;
  text-align: center;
  border-radius: 6px;
}

.stars {
  color: #c99a3f;
  letter-spacing: 3px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.testimonial-name {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-style: normal !important;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.cta-text {
  background: var(--brown-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 80px;
}

.cta-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.cta-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 38ch;
}

.cta-text .btn {
  width: fit-content;
}

.cta-image {
  min-height: 320px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--green);
  color: var(--white);
  padding: 90px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.footer-logo {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  max-width: 38ch;
}

.social-icons {
  display: flex;
  gap: 18px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: transform var(--transition), opacity var(--transition);
}

.social-icons a img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.social-icons a:hover {
  opacity: 0.7;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a,
.footer-col p a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-col p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}
.footer-bottom a:hover {
  color: var(--white);
}

/* ==========================================================================
   Page header (Classes & Teachers / Schedule / Contact banner)
   ========================================================================== */
.page-header {
  background: var(--brown-dark);
  color: var(--white);
  padding: 90px 0 70px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--white);
  margin: 10px 0 18px;
}

.page-header-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 auto;
}

/* ==========================================================================
   Teachers
   ========================================================================== */
.teachers-section {
  padding: 100px 0 110px;
  background: var(--cream-soft);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

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

.teacher-card img {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
  display: block;
}

.teacher-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.teacher-role {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.teacher-card p:not(.teacher-role) {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Schedule table
   ========================================================================== */
.schedule-section {
  padding: 110px 0 90px;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(58, 46, 36, 0.1);
  margin-bottom: 30px;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.schedule-table th,
.schedule-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(58, 46, 36, 0.08);
  vertical-align: top;
}

.schedule-table thead th {
  background: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.time-cell {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.class-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.teacher-tag {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.empty-cell {
  color: rgba(58, 46, 36, 0.25);
}

.schedule-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  padding: 100px 0 110px;
  background: var(--cream-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}

.contact-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 10px;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-info-item p a {
  color: var(--text-dark);
  border-bottom: 1px solid rgba(58, 46, 36, 0.3);
  transition: color var(--transition), border-color var(--transition);
}

.contact-info-item p a:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.contact-form {
  background: var(--white);
  padding: 44px;
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(58, 46, 36, 0.2);
  border-radius: 4px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
}

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

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  border: none;
  width: 100%;
}

.form-success {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--green-dark);
  text-align: center;
}

/* ==========================================================================
   Map
   ========================================================================== */
.map-placeholder {
  min-height: 360px;
}

/* ==========================================================================
   Scroll reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-caption.reveal.in-view,
.hero-overlay.reveal.in-view {
  transition-delay: 0.15s;
}

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

/* ==========================================================================
   Responsive — Tablet (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .main-nav ul {
    gap: 18px;
  }

  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-bar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .feature-item:nth-child(2) {
    border-right: none;
  }

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

  .testimonial-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .cta-text {
    padding: 60px 50px;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* ==========================================================================
   Responsive — Mobile nav breakpoint (<= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--cream);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: 110px 36px 40px;
    z-index: 1100;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .main-nav .header-cta.mobile-only {
    display: inline-block;
    margin-top: 10px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 1050;
  }

  .nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .classes-grid--detailed {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .class-card--detailed {
    flex-direction: column;
  }

  .class-card--detailed img {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }
}

/* ==========================================================================
   Responsive — Mobile (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 22px;
  }

  /* .header-inner also has the .container class, so the rule above (which
     sets a full "padding" shorthand) was zeroing out the top/bottom padding
     .header-inner sets for itself — leaving the logo flush against the
     header edges on mobile. Restore it here with a higher-specificity
     selector. */
  .header-inner.container {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero-grid {
    min-height: 68vh;
  }

  .hero-image {
    min-height: 68vh;
    padding: 24px;
  }

  .every-body {
    padding: 70px 0;
  }

  .every-body-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .popular-classes {
    padding: 70px 0 60px;
  }

  .classes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .classes-grid--detailed {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about {
    padding: 70px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .feature-bar-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .feature-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 30px;
  }

  .testimonials {
    padding: 70px 0;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid .testimonial-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-text {
    padding: 60px 28px;
    order: 2;
  }

  .cta-image {
    order: 1;
    min-height: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .page-header {
    padding: 70px 0 50px;
  }

  .teachers-section {
    padding: 70px 0 80px;
  }

  .teachers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .schedule-section {
    padding: 70px 0 60px;
  }

  .contact-section {
    padding: 70px 0 80px;
  }

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

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

  .contact-form {
    padding: 30px 24px;
  }

  .map-placeholder {
    min-height: 260px;
  }
}

/* ==========================================================================
   Responsive — Small mobile (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .logo-sub {
    display: none;
  }

  .logo img {
    height: 42px;
  }

  .hero-caption h1 {
    font-size: 2.4rem;
  }

  .every-body-images {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .every-body-images img:nth-child(2),
  .every-body-images .tall:nth-child(2) {
    margin-top: 0;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
