/* ============================================
   TANGLEWOOD MUSIC SCHOOL — STYLESHEET
   This file controls how every element looks
   and how the layout adapts to different screens.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-cream: #FAF8F5;
  --color-dark: #1A1A1A;
  --color-warm: #8B6914;
  --color-warm-light: #C4A34A;
  --color-text: #333333;
  --color-text-light: #6B6B6B;
  --color-border: #E5E0D8;
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Overpass', 'Segoe UI', sans-serif;
  --max-width: 1080px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.7;
}

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

a {
  color: var(--color-warm);
  text-decoration: none;
}

a:hover {
  color: var(--color-warm-light);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-main {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-main a {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--color-warm);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1));
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.hero-overlay h1 {
  font-family: var(--font-display);
  color: white;
  font-size: 2.4rem;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.25;
}

/* ============================================
   HOME PAGE — index.html specific styles
   ============================================ */

/* --- Promotional banner --- */
.home-banner {
  padding: 1.5rem 1.5rem 0;
}

.home-banner .content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.home-banner a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.home-banner a:hover {
  opacity: 0.85;
}

.home-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* --- Welcome content tweaks for home --- */
.home-intro h1 {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.home-intro h2 {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}


/* --- Map section --- */
.home-map {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.home-map .content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-map h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.home-map img {
  width: 100%;
  height: clamp(280px, 35vw, 450px);
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 4px;
}

/* --- Responsive breakpoints --- */
@media (max-width: 768px) {
  
  .home-intro h1 {
    font-size: 1.6rem;
  }

  .home-map {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
 
  .home-banner {
    padding: 1rem 1rem 0;
  }
}

/* --- Page Content --- */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding: 3rem 0;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* --- Teacher Grid --- */
.teachers {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-border);
}

.teachers h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.teacher-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.teacher-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
  padding: 1.5rem;
}

.teacher-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}


.teacher-photo {
  width: 400px;
  margin: 0 1.5rem 1rem 0;
  float: left;
}

.teacher-photo {
  position: relative;
}

.teacher-photo::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 230px;
  height: 60px;
  background-image: url('/images/tanglewood-logo.svg');
  background-repeat: no-repeat;
  background-size: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  pointer-events: none;
}

.teacher-card:nth-child(even) .teacher-photo::after {
  left: auto;
  right: -90px;
}

.teacher-card:nth-child(even) .teacher-photo {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.teacher-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.teacher-info {
}

blockquote {
  border-left: 3px solid var(--color-warm);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  font-style: italic;
  color: var(--color-text);
  background: #F0EDE8;
  border-radius: 0 4px 4px 0;
}

blockquote p {
  margin-bottom: 0;
}


.teacher-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.teacher-card:nth-child(even) .teacher-info h3 {
  text-align: right;
}

.teacher-info p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.teacher-instrument {
  font-family: var(--font-display);
  font-size: 0.65em;
  font-weight: 400;
  color: var(--color-warm);
  display: block;
  margin-top: 0.25rem;
}

.teacher-instrument a {
  color: var(--color-warm);
}

.teacher-instrument a:hover {
  color: var(--color-warm-light);
}

/* --- Inline article images: alternating float, clear at headings --- */
.article-inline-image {
  max-width: 240px;
  height: auto;
  border-radius: 6px;
}

.article-inline-image--left {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.article-inline-image--right {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

/* Stop floats from bleeding across section boundaries */
.article-body h2,
.article-body h3 {
  clear: both;
}

/* On narrow screens, stop floating — centre the image instead */
@media (max-width: 600px) {
  .article-inline-image--left,
  .article-inline-image--right {
    float: none;
    display: block;
    margin: 1.25rem auto;
  }
}

/* --- Article meta bar --- */
.article-meta-bar {
  padding: 1rem 1.5rem 0;
}

.article-meta-bar .content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-meta {
  text-align: right;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.5;
}

.article-meta-item {
  margin: 0.15rem 0;
}

/* ============================================
   ARTICLES LIST PAGE
   ============================================ */

.articles-intro {
  padding: 2rem 1.5rem 0;
  text-align: center;
}

.articles-intro p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.articles-list {
  padding: 3rem 1.5rem 4rem;
}

.articles-list .content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: 1.5rem;
}

.article-card-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
}

.article-card-subtitle {
  margin: 0 0 0.75rem;
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.article-card-meta {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
}

.article-card-description {
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   ARTICLE PAGE — typography and layout
   ============================================ */

/* Narrower column for the article reading area */
.article-meta-bar .content-wrap,
.article-body .content-wrap,
.article-tags .content-wrap {
  max-width: 760px;
}

/* --- Article body typography --- */
.article-body {
  padding: 1.5rem 1.5rem 3rem;
}

.article-body p,
.article-body li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 3rem 0 1.25rem;
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2.25rem 0 1rem;
  line-height: 1.3;
}

.article-body a {
  color: var(--color-warm);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
  text-decoration-color: var(--color-warm);
}

.article-body strong {
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

/* --- Subtitle in the article hero --- */
.article-subtitle {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* --- Tags strip --- */
.article-tags {
  padding: 1.75rem 1.5rem 2.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: 1.5rem;
}

.article-tags-label {
  margin-right: 0.75rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
}

.article-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  margin: 0.2rem 0.4rem 0.2rem 0;
  font-size: 0.8rem;
  background: var(--color-cream);
  border-radius: 14px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* --- CTA --- */
.cta {
  padding: 3rem 0;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: var(--color-warm);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--color-warm-light);
  color: white;
}

/* --- Events List --- */
.page-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.events-list {
  padding: 1rem 0 3rem;
}

.event-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.event-card:last-of-type {
  border-bottom: none;
}

.event-poster img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.event-info h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.event-meta {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.event-meta strong {
  color: var(--color-warm);
  font-family: var(--font-display);
  font-weight: 600;
}

.event-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 1rem;
}

.event-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.event-links {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2rem 0 1rem;
}

.page-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--color-warm);
  color: var(--color-warm);
}

.page-link.active {
  background: var(--color-warm);
  color: white;
  border-color: var(--color-warm);
}

@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 140px 1fr;
    gap: 1rem;
  }

  .event-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-poster img {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* --- About Page --- */
.hero-badge {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: white;
  background: var(--color-warm);
  padding: 4px 14px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.about-editorial {
  padding: 0 0 2rem;
}

.about-editorial h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 2.5rem 0 1rem;
  color: var(--color-dark);
}

.about-editorial p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* --- Timeline --- */
/* --- Timeline: centred spine, alternating cards --- */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* The vertical centre spine */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--color-warm);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 0 0;
  box-sizing: border-box;
  margin-bottom: 2.5rem;
}

/* Odd items sit on the LEFT of the spine */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding: 0 2.5rem 0 0;
}

/* Even items sit on the RIGHT of the spine */
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding: 0 0 0 2.5rem;
}

/* Dot on the spine for each item */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-warm);
  border: 3px solid var(--color-cream);
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -7px;
}

.timeline-item:nth-child(even)::before {
  left: -7px;
}

.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-warm);
  margin-bottom: 0.5rem;
}

.timeline-text {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.timeline-photo {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* Right-aligned items get right-aligned photos */
.timeline-item:nth-child(odd) .timeline-photo {
  margin-left: auto;
}

/* Mobile: single column, spine moves to the left */
@media (max-width: 700px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 1rem 0 50px;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 13px;
    right: auto;
  }

  .timeline-item:nth-child(odd) .timeline-photo {
    margin-left: 0;
  }
}

/* --- Course Grid --- */
.courses {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.courses h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--color-dark);
  text-align: center;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.course-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s;
}

.course-card:hover {
  transform: scale(1.03);
}

.course-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.course-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .founder-quote {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .course-label {
    font-size: 0.8rem;
  }

  .timeline-photo {
    width: 100%;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: white;
}

/* ============================================
   CONTACT PAGE — contact.html specific styles
   ============================================ */

/* --- Intro --- */
.contact-intro .content-wrap {
  text-align: center;
  max-width: 720px;
}

/* --- Info blocks (Address / Hours / Phone & Email) --- */
.contact-info {
  padding: 3rem 1.5rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info-block {
  text-align: center;
}

.contact-info-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-warm);
}

.contact-info-block h2 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.contact-info-block p {
  margin: 0.25rem 0;
  line-height: 1.6;
}

/* --- Form + WhatsApp wrapper --- */
.contact-action-section {
  padding: 2rem 1.5rem 4rem;
}

.contact-action {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* DOM order is form-first, WhatsApp-second.
   On mobile we visually reverse so WhatsApp appears above. */
.contact-form-wrap { order: 2; }
.whatsapp-cta     { order: 1; }

/* --- Form card (the "frame") --- */
.contact-form-wrap {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
}

.contact-form-wrap h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-cream);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-warm);
  background: white;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot — visually removed but still in the DOM for bot detection */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-send {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 220px;
  padding: 0.85rem 2rem;
  margin-top: 0.5rem;
  background: var(--color-warm);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-send:hover {
  background: var(--color-warm-light);
}

/* --- WhatsApp call-to-action --- */
.whatsapp-cta {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.whatsapp-cta h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.whatsapp-cta p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: #25d366;
  color: white !important;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5a;
}

/* --- Map --- */
.contact-map iframe {
  display: block;
}

/* --- Responsive breakpoints --- */
@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-action {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  /* Desktop: form on left, WhatsApp on right */
  .contact-form-wrap {
    flex: 2 1 60%;
    order: 1;
  }

  .whatsapp-cta {
    flex: 1 1 35%;
    order: 2;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   This section makes the page adapt to phones
   and tablets. Without this, the page would
   look broken on small screens.
   ============================================ */

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Phones (480px and below) */
@media (max-width: 480px) {
  .menu-toggle {
    display: flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0.75rem;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }

  .teacher-photo {
    float: none;
    width: 100%;
    margin: 0 0 1rem 0;
  }

  .teacher-card:nth-child(even) .teacher-photo {
    float: none;
    margin: 0 0 1rem 0;
  }

  .hero {
    height: 35vh;
    min-height: 220px;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
    padding: 1.5rem;
  }

  .hero-overlay {
    padding: 1.5rem;
  }

  .page-content {
    padding: 2rem 0;
  }
}

/* --- Video --- */
.video-section {
  padding: 2rem 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  max-width: 1020px;
  margin: 0 auto;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}