/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/jost-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/jost-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Minimas styles. Shared CasaMas colors and typography, with playful shapes and accents. */

/* Brand palette */
:root {
  --cream:       #fbf3ef;
  --cream-deep:      #f3e6e3;
  --border:        #e8d9d6;
  --dark:      #3a1a35;
  --dark-deep:     #2a1226;
  --coral:       #b8325a;
  --coral-dark:#9c2449;
  --coral-light: #f8e1e8;
  --sand:        #8f6512;
  --sand-light:  #f7ecd6;
  --teal:        #1b7a63;
  --teal-light:  #e2f5ee;
  --white:         #ffffff;
  /* Brand colors: raspberry for actions, aubergine for backgrounds and text, gold for celebrations, mint for movement, yellow for Minimas. */
  --gold:        #d9a441;
  --gold-light:  #e2b65a;
  --mint:        #6fd3b0;
  --yellow:        #f2c14e;
  --blue:       #4b5fa0;
  --blue-light: #e6e9f5;
  --text:       #3a1a35;
  --text-light: #6e5a6a;

  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', system-ui, sans-serif;
}

/* Card color themes */
.theme-coral { --accent: var(--coral); --accent-light: var(--coral-light); }
.theme-teal  { --accent: var(--teal);  --accent-light: var(--teal-light); }
.theme-sand  { --accent: var(--sand);  --accent-light: var(--sand-light); }
.theme-blue { --accent: var(--blue); --accent-light: var(--blue-light); }

/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  background-color: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a   { text-decoration: none; color: inherit; }
strong { font-weight: 500; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dark);
}

/* Use lining numerals when headings contain numbers. */
h1, h2, h3, .intro__photo-badge strong, .step__number, .hero__fact strong {
  font-variant-numeric: lining-nums;
}

/* Layout helpers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.section--cream  { background-color: var(--cream); }
.section--dark { background-color: var(--dark); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .section-heading p { color: rgba(251, 243, 239, 0.75); }

/* Section heading: eyebrow, title and introduction */
.section-heading { max-width: 640px; margin-bottom: 3.5rem; }
.section-heading h2 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.section-heading p  { color: var(--text-light); }

/* Eyebrow above a heading */
.eyebrow {
  display: block;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section--dark .eyebrow,
.cta-section .eyebrow { color: #e2b65a; }

/* Buttons */
.button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button--filled { background-color: var(--coral); color: #fff; }
.button--filled:hover { background-color: var(--coral-dark); }

/* Large trial lesson button */
.button--large { padding: 1.25rem 2.5rem; font-size: 0.9rem; }

.button--white { border-color: rgba(255,255,255,0.7); color: #fff; }
.button--white:hover { background: #fff; color: var(--dark); }

/* Benefits bar above navigation */
.benefits-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
}
.benefits-bar__list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 2rem;
  list-style: none;
}
.benefits-bar__item::before { content: '✓'; color: var(--coral); margin-right: 0.45rem; }
.benefits-bar__item a { border-bottom: 1px solid currentColor; }
.benefits-bar__item a:hover { color: var(--dark); }

/* Sticky navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav--scrolled { border-bottom-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.04em;
}
.nav__logo span { color: var(--coral); }

.nav__links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--dark); }

.nav__links .nav__cta {
  background: var(--coral);
  color: #fff;
  padding: 0.7rem 1.3rem;
}
.nav__links .nav__cta:hover { background: var(--coral-dark); color: #fff; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span { display: block; width: 24px; height: 1.5px; background: var(--dark); }

.nav__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:hover { color: var(--coral); }

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 40%;
  width: 100%;
  height: 100%;
}

/* Dark overlay keeps the hero text readable. */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,18,38,0.85) 0%, rgba(42,18,38,0.35) 55%, rgba(42,18,38,0.1) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4.5rem;
}

.hero__eyebrow {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 900px;
}
.hero__title span { font-style: italic; }

.hero__intro {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.25rem;
  max-width: 520px;
}

.hero__buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero__social-proof {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.hero__fact strong { color: #fff; }

/* Lesson introduction */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro__photo-wrap { position: relative; }

/* Photo with a trial lesson link below */
.intro__media { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.intro__media .intro__photo-wrap { width: 100%; }

.intro__photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.intro__photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--white);
  color: var(--dark);
  padding: 1.25rem 1.75rem;
}
.intro__photo-badge strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; font-weight: 400; line-height: 1; }
.intro__photo-badge span   { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); }

.intro__text h2 { font-size: clamp(2.4rem, 4vw, 3.2rem); margin-bottom: 1.5rem; }
.intro__text p  { color: var(--text-light); margin-bottom: 1rem; }

.intro__features {
  list-style: none;
  margin: 2rem 0 0;
  border-top: 1px solid var(--border);
}
.feature {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.feature strong { display: block; color: var(--dark); }
.feature span   { color: var(--text-light); font-size: 0.95rem; }

/* Age groups */
.age-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.age-group {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}

.age-group__age {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.age-group__name  { font-size: 2.4rem; margin: 0.4rem 0 1rem; }
.age-group__text { color: var(--text-light); margin-bottom: 1.5rem; }

.age-group__points {
  list-style: none;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--border);
  flex-grow: 1;
}
.age-group__points li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.age-group__points li::before { content: '✓'; color: var(--accent); margin-right: 0.6rem; }

/* Group times populated by script.js */
.age-group__lesson-times { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; list-style: none; }
.age-group__lesson-times li {
  padding: 0.35rem 0.8rem;
  background: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

/* Link to the timetable */
.age-group__link {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.age-group__link::after { content: ' ›'; }

/* Timetable rendered from js/schedule-data.js */
.lesson-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
}
.lesson-times:empty { display: none; }

.lesson-time {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}
.lesson-time__day  { font-family: var(--font-heading); font-size: 2rem; line-height: 1.1; color: var(--dark); }
.lesson-time__time {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.lesson-time__name { margin-top: 0.75rem; font-weight: 500; color: var(--dark); }
.lesson-time__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.lesson-time__badge {
  padding: 0.2rem 0.6rem;
  background: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dark);
}
.lesson-time__badge--start { background: var(--coral-light); color: var(--coral-dark); }
.lesson-times__empty { color: var(--text-light); }
.lesson-times__empty a { color: var(--coral); border-bottom: 1px solid currentColor; }

/* Companions */
.companions-bar {
  background: var(--coral-light);
  padding: 3.5rem 0;
}
.companions-bar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  flex-wrap: wrap;
}
.companions-bar__text { flex: 1 1 520px; min-width: 0; }
.companions-bar__text .eyebrow { margin-bottom: 0.5rem; }
.companions-bar__text h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.companions-bar__text p  { color: var(--text-light); margin-top: 1rem; max-width: 560px; }

.companions__people { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.companions__people li {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--dark);
}

/* Development benefits and research */
.development {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  list-style: none;
}

.development-card {
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent);
}
.development-card__title { font-size: 1.9rem; margin-bottom: 0.75rem; }
.development-card__lesson {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--accent-light);
  font-size: 0.9rem;
  color: var(--dark);
}
.development-card__text { color: var(--text-light); }

.research {
  margin-top: 4.5rem;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
}
.research {
  margin-top: 3rem;
  padding: 1.25rem 2rem;
}
.research__heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.research__heading::-webkit-details-marker { display: none; }
.research__heading span { font-family: var(--font-body); font-weight: 300; color: var(--coral); transition: transform 0.3s; }
.research[open] .research__heading span { transform: rotate(45deg); }
.research[open] .research__list { margin-top: 1.25rem; }

/* Trial lesson banner */
.cta-bar {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding: 2rem 2.5rem;
  background: var(--dark);
}
.cta-bar p { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--cream); }
.research__list { list-style: none; border-top: 1px solid var(--border); }
.research__list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}
.research__list a {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  border-bottom: 1px solid currentColor;
}
.research__list a::after { content: ' ›'; }
.research__list a:hover { color: var(--coral-dark); }

/* Lesson structure */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; list-style: none; }
.steps--five { grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.step { padding-top: 1.5rem; border-top: 1px solid var(--dark); }
.step__number {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--coral);
}
.step h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.step p  { color: var(--text-light); font-size: 0.95rem; }

/* Learning pathway */
.learning-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
}

.learning-path__step {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(251, 243, 239, 0.2);
}
.learning-path__step--current { background: var(--coral); border-color: var(--coral); }

.learning-path__age {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e2b65a;
}
.learning-path__step--current .learning-path__age { color: #fff; }
.learning-path__name  { font-size: 1.9rem; margin: 0.5rem 0 0.75rem; color: #fff; }
.learning-path__text { color: rgba(251, 243, 239, 0.75); margin-bottom: 1.5rem; flex-grow: 1; }
.learning-path__step--current .learning-path__text { color: rgba(255, 255, 255, 0.9); }

.learning-path__status,
.learning-path__link {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 243, 239, 0.6);
}
.learning-path__step--current .learning-path__status { color: #fff; }
.learning-path__link { color: #fff; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.learning-path__link::after { content: ' ›'; }
.learning-path__link:hover { color: #e2b65a; }

/* Frequently asked questions */
.faq__list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.faq__item { border-bottom: 1px solid var(--border); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--dark);
}
.faq__question:hover { color: var(--coral); }

.faq__icon {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--coral);
  transition: transform 0.3s;
}
.faq__item.open .faq__icon { transform: rotate(45deg); }

.faq__answer {
  display: none;
  padding: 0 0 1.5rem;
  color: var(--text-light);
  max-width: 680px;
}
.faq__item.open .faq__answer { display: block; }

/* Trial lesson handoff */
.cta-section {
  background: var(--dark);
  padding: 7rem 0;
  text-align: center;
}
.cta-section h2 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 300; color: #fff; margin-bottom: 1.25rem; }
.cta-section p  { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 2.5rem; }
.cta-section__buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-section__mail { margin-top: 1.5rem !important; margin-bottom: 0 !important; font-size: 0.9rem; }
.cta-section__mail strong { color: #fff; font-weight: 500; }

/* Sticky mobile trial lesson link */
.mobile-cta { display: none; }

/* Footer */
.footer {
  background-color: var(--dark-deep);
  padding: 5rem 0 2rem;
  color: var(--cream);
}

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem 3rem; margin-bottom: 4rem; }
.footer__logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 500; letter-spacing: 0.04em; }
.footer__logo span { color: var(--coral); }
.footer__description { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(251,243,239,0.55); max-width: 320px; }

.footer__heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251,243,239,0.9);
  margin-bottom: 1rem;
}
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 0.5rem; }
.footer__list a, .footer__list span { font-size: 0.9rem; color: rgba(251,243,239,0.55); transition: color 0.2s; }
.footer__list a:hover { color: var(--cream); }
/* Current site in the label list */
.footer__list .footer__current { color: var(--cream); font-weight: 400; }

.footer__bottom {
  border-top: 1px solid rgba(251,243,239,0.12);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(251,243,239,0.4);
}

/* Playful details: rounded shapes, waves, squiggles and colored circles. */
:root {
  --radius:      24px;
  --radius-small: 14px;
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28V14Q75 0 150 14T300 14T450 14T600 14V28Z'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'%3E%3Cpath d='M0 0H600V14Q525 28 450 14T300 14T150 14T0 14Z'/%3E%3C/svg%3E");
  --squiggle-coral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 12'%3E%3Cpath d='M3 6Q10.5 0 18 6T33 6T48 6T63 6T78 6T87 6' fill='none' stroke='%23b8325a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --squiggle-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 12'%3E%3Cpath d='M3 6Q10.5 0 18 6T33 6T48 6T63 6T78 6T87 6' fill='none' stroke='%23e2b65a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Wavy section edges */
.section--cream,
.section--dark,
.companions-bar {
  -webkit-mask: var(--wave-top) top left / 600px 28px repeat-x,
                linear-gradient(#000 0 0) center / 100% calc(100% - 54px) no-repeat,
                var(--wave-bottom) bottom left / 600px 28px repeat-x;
          mask: var(--wave-top) top left / 600px 28px repeat-x,
                linear-gradient(#000 0 0) center / 100% calc(100% - 54px) no-repeat,
                var(--wave-bottom) bottom left / 600px 28px repeat-x;
}
.cta-section {
  -webkit-mask: var(--wave-top) top left / 600px 28px repeat-x,
                linear-gradient(#000 0 0) bottom / 100% calc(100% - 27px) no-repeat;
          mask: var(--wave-top) top left / 600px 28px repeat-x,
                linear-gradient(#000 0 0) bottom / 100% calc(100% - 27px) no-repeat;
}
.hero {
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 27px) no-repeat,
                var(--wave-bottom) bottom left / 600px 28px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 27px) no-repeat,
                var(--wave-bottom) bottom left / 600px 28px repeat-x;
}

/* Soft circles on cream backgrounds */
.section--cream {
  background-image:
    radial-gradient(circle at 6% 18%, var(--teal-light) 0 70px, transparent 71px),
    radial-gradient(circle at 96% 82%, var(--coral-light) 0 110px, transparent 111px),
    radial-gradient(circle at 88% 12%, var(--sand-light) 0 36px, transparent 37px);
}

/* Squiggles below headings */
.section-heading h2::after,
.intro__text h2::after {
  content: '';
  display: block;
  width: 90px;
  height: 12px;
  margin-top: 0.9rem;
  background: var(--squiggle-coral) no-repeat;
}
.section--dark .section-heading h2::after { background-image: var(--squiggle-light); }

/* Musical note in the logo */
.nav__logo::after,
.footer__logo::after {
  content: '♪';
  display: inline-block;
  margin-left: 0.2em;
  color: var(--teal);
  transform: rotate(12deg) translateY(-0.15em);
  font-size: 0.85em;
}

/* Rounded buttons */
.button {
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-2px); }
.button--filled { box-shadow: 0 4px 0 var(--coral-dark); }
.button--filled:hover { box-shadow: 0 6px 0 var(--coral-dark); }
.button--filled:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-dark); }
.nav__links .nav__cta { border-radius: 999px; }
.button:focus-visible, .nav__cta:focus-visible, .faq__question:focus-visible, .research__heading:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* Hero */
.hero__title span { color: #f2c14e; }

/* Organic photo shape */
.intro__photo {
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
}
.intro__photo-badge {
  left: -0.5rem;
  bottom: 1.5rem;
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius);
  transform: rotate(-4deg);
  box-shadow: 0 8px 20px rgba(58, 26, 53, 0.18);
}
.intro__photo-badge strong { color: #fff; }
.intro__photo-badge span   { color: rgba(255, 255, 255, 0.9); }

/* Colored dots for lesson activities */
.intro__features { border-top: 0; display: grid; gap: 0.6rem; }
.feature {
  position: relative;
  padding: 0.85rem 1.1rem 0.85rem 3.1rem;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--cream);
}
.feature::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--coral);
}
.feature:nth-child(2)::before { background: var(--teal); }
.feature:nth-child(3)::before { background: var(--sand); }
.feature:nth-child(4)::before { background: var(--coral); border-radius: 30% 70% 60% 40%; }

/* Rounded group and timetable cards */
.age-group,
.lesson-time {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--border);
  position: relative;
  overflow: hidden;
}
.age-group { border-top: 0; padding-top: 3rem; }
.age-group::before,
.lesson-time::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: var(--accent);
}
.lesson-time { background: var(--white); }
.age-group__age {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--dark);
}
.age-group__points { border-top: 0; }
.age-group__points li { border-bottom: 1px dashed var(--border); }
.age-group__lesson-times li,
.lesson-time__badge { border-radius: 999px; }

/* Companion labels */
.companions-bar { padding: 4.5rem 0; }
.companions__people li {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  background: var(--white);
  transform: rotate(-2deg);
  box-shadow: 0 2px 0 rgba(58, 26, 53, 0.08);
}
.companions__people li:nth-child(2n) { transform: rotate(2deg); background: var(--teal-light); }
.companions__people li:nth-child(3n) { background: var(--sand-light); transform: rotate(-1deg); }

/* Development cards */
.development { gap: 1.5rem; }
.development-card {
  padding: 1.75rem 1.75rem 1.5rem;
  border-top: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 0 var(--border);
}
.development-card__title { display: flex; align-items: center; gap: 0.6rem; }
.development-card__title::before {
  content: '';
  flex: none;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--accent);
}
.development-card__lesson { border-radius: var(--radius-small); }

.research { border-radius: var(--radius); border: 0; box-shadow: 0 2px 0 var(--border); }
.cta-bar { border-radius: var(--radius); }

/* Colored step numbers and dotted line */
.steps--five { position: relative; }
.step { border-top: 0; padding-top: 0; }
.step__number {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.step:nth-child(2) .step__number { background: var(--teal); }
.step:nth-child(3) .step__number { background: var(--sand); }
.step:nth-child(4) .step__number { background: var(--teal); }
@media (min-width: 1051px) {
  .steps--five::before {
    content: '';
    position: absolute;
    left: 1.7rem;
    right: 1.7rem;
    top: 1.7rem;
    border-top: 2px dashed var(--border);
  }
}

/* Learning pathway */
.learning-path__step { border-radius: var(--radius); }
.learning-path__step--current { transform: rotate(-1.5deg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

/* Rounded FAQ cards */
.faq__list { border-top: 0; display: grid; gap: 0.75rem; }
.faq__item {
  border-bottom: 0;
  border-radius: var(--radius-small);
  background: var(--white);
  padding: 0 1.5rem;
  box-shadow: 0 2px 0 var(--border);
}

/* Confetti around the trial lesson handoff */
.cta-section {
  background-image:
    radial-gradient(circle at 12% 30%, rgba(184, 50, 90, 0.55) 0 14px, transparent 15px),
    radial-gradient(circle at 18% 70%, rgba(111, 211, 176, 0.6) 0 9px, transparent 10px),
    radial-gradient(circle at 85% 25%, rgba(217, 164, 65, 0.6) 0 11px, transparent 12px),
    radial-gradient(circle at 90% 68%, rgba(184, 50, 90, 0.45) 0 20px, transparent 21px),
    radial-gradient(circle at 78% 85%, rgba(111, 211, 176, 0.5) 0 7px, transparent 8px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .button:hover { transform: none; }
}

/* Responsive layouts */
@media (max-width: 1050px) {
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }
  .steps--five  { grid-template-columns: repeat(3, 1fr); }
  .learning-path       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section { padding: 4.5rem 0; }
  .intro__grid, .companions { grid-template-columns: 1fr; gap: 3rem; }
  .intro__photo { height: 420px; }
  .age-groups { grid-template-columns: 1fr; }
  .development { grid-template-columns: 1fr 1fr; }
  .benefits-bar__list { gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container, .nav__inner, .hero__content { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero__content { padding-bottom: 3rem; }
  .development, .steps--five, .learning-path, .footer__grid { grid-template-columns: 1fr; }
  .steps--five { gap: 1.75rem; }
  .age-group { padding: 2rem 1.5rem 1.5rem; }
  .research { padding: 1rem 1.25rem; }
  .cta-bar { padding: 1.5rem; }
  .companions-bar { padding: 3.5rem 0; }
  .intro__photo-badge { left: 0.75rem; }
  .faq__item { padding: 0 1.1rem; }
  .companions-bar .button--large { width: 100%; text-align: center; }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    padding: 0.95rem 1.4rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(58, 26, 53, 0.25);
  }
  .footer { padding-bottom: 6rem; }

  /* Rotate benefits on mobile */
  .benefits-bar__list { display: grid; padding: 0.55rem 1.25rem; text-align: center; }
  .benefits-bar__item { grid-area: 1 / 1; opacity: 0; transition: opacity 0.4s; }
  .benefits-bar__item.is-active { opacity: 1; }
  .benefits-bar__list:not([data-rotation-active]) .benefits-bar__item:first-child { opacity: 1; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Teacher badge */
.lesson-time__badge--teacher { font-weight: 500; }

/* Keep navigation labels on one line. */
.nav__links a { white-space: nowrap; }
.nav__inner > .nav__logo { flex: none; margin-right: 2rem; }
@media (max-width: 1400px) { .nav__links { gap: 1.5rem; } }

/* Comfortable touch targets for navigation and footer links */
.nav__hamburger { padding: 12px 10px; margin: -8px -10px; }
@media (max-width: 900px) {
  .footer__list li { margin-bottom: 0.15rem; }
  .footer__list a { display: inline-block; padding: 0.35rem 0; }
}

/* Trial lesson booking takes place on SalsaMas. */
.cta-section .trial-lesson__help { margin-top: 1.5rem; margin-bottom: 0; }
.cta-section__mail a { text-decoration: underline; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
