/* Reset and base styles */

:root {
  --heading-color: #1D384A;
  --backgroundOne: #C0D5E8;
  --backgroundTwo: #FFFFFF;
  --backgroundThree: #C0D5E8;
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: hidden;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8fafd;
  color: #222;
  line-height: 1.6;
}
a {
  color: #1a5dab;
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

p {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h1, h2, h3 {
  font-family: "minion-pro-condensed-display", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--heading-color);
}

h1 {
  color: var(--backgroundTwo);
}

.btn {
  display: block;
  width: fit-content;
  min-width: 120px;
  margin: 1em auto 0 auto;
  padding: 0.5em 1.2em;
  font-size: 1em;
  text-align: center;
  background: linear-gradient(90deg, #0071B8 0%, #002DB9 100%);
  color: #fff;
  border-radius: 4px;
  margin-top: 1em;
  transition: background 0.2s;
}


/* Navbar and hero */
.hero {
  background: url('images/amstelBanner.jpg') center/cover no-repeat;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(30, 40, 60, 0.32) 0%, rgba(30, 40, 60, 0.38) 100%);
  z-index: 1;
  pointer-events: none;
}
.navbar {
  display: flex;
  justify-content: flex-end;
  padding: 1em;
  position: relative;
}
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 2.5em;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.menu-icon {
  width: 2em;
  height: 0.2em;
  background: #fff;
  display: block;
  position: relative;
  transition: background 0.3s;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 2em;
  height: 0.2em;
  background: #fff;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}
.menu-icon::before {
  top: -0.6em;
}
.menu-icon::after {
  top: 0.6em;
}
.hero-content {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  height: 100%;
}
.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 12px rgba(30, 40, 60, 0.32), 0 1px 2px rgba(0,0,0,0.12);
}
.hero-content h1 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.hero-content p {
  font-size: 1.1em;
  margin-bottom: 2em;
  text-shadow: 0 3px 18px rgba(30, 40, 60, 0.38), 0 1px 2px rgba(0,0,0,0.16);
}
.scroll-indicator {
  margin: 2em auto 0;
  font-size: 0.9em;
  opacity: 0.8;
}



section {
  background: #E5EEF6;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  padding: 1.5em;
  text-align: center;
}
section h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
  font-weight: 600;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

section p {
  text-align: left;
}


.about-img, .lessons-img, .about-story-img, .about-piano-img, .lessons-detail-img, .lessons-feelgood-img, .about3-img {
  width: 100%;
  max-width: 320px;
  border-radius: 0;
  margin: 0 auto 1em auto;
  display: block;
}

.contact-img {
  padding: .5em;
}
.about-text, .lessons-text, .contact-info, .about-story-text, .lessons-detail-text {
  margin-bottom: 1em;
}


/* Contact info */
.contact-info {
  text-align: center;
  font-size: 1.1em;
}
.contact-info .icon {
  margin-right: 0.5em;
}

/* Footer */
footer {
  background: #f0f4fa;
  padding: 2em 1em 1em 1em;
  text-align: center;
  font-size: 0.95em;
  color: #555;
}
.footer-content p {
  margin-bottom: 0.3em;
}

/* Subpage header */
.subpage-header {
  background-image: url('images/waveBackground.svg');
  background-size: 100% 60px;
  background-repeat: no-repeat;
  background-position: bottom center;
  padding: 1.5em 1em 0 1em;
  text-align: center;
  position: relative;
  overflow: visible;
  min-height: 250px;
}

.wavy-bg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 60px;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.subpage-header h1 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--heading-color);
  padding: .5em;
}
.back-btn {
  position: absolute;
  left: 1em;
  top: 1.5em;
  color: #1a5dab;
  font-size: 1.1em;
}

.contact-preview p {
  display: inline-block;
}


.contact-preview {
  background-color: var(--backgroundThree);
}

.about-preview {
  background-color: var(--backgroundTwo);
}


/* Responsive styles */
@media (min-width: 700px) {
  main {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  section {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0 4vw 2.5em 4vw;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "heading heading"
      "img text";
    align-items: center;
    background: #E5EEF6;
    border-radius: 0;
    box-shadow: none;
    overflow-x: hidden;
  }
  section h2 {
    grid-area: heading;
    justify-self: center;
    align-self: start;
    font-size: 2em;
    margin: 1.5em 0 1em 0;
    font-weight: 700;
    text-align: center;
  }
  section p {
    padding-right: 2vw;
  }

  .btn {
    margin: 0;
  }
  
  .about-img, .lessons-img, .contact-img, .about-story-img, .about-piano-img, .lessons-detail-img, .lessons-feelgood-img, .about3-img {
    grid-area: img;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 0;
    justify-self: center;
  }
  .about-text, .lessons-text, .about-story-text, .lessons-detail-text {
    grid-area: text;
    width: 100%;
    margin: 0;
    justify-self: center;
  }
  /* Alternate image/text positions for even sections */
  section:nth-child(even) {
    grid-template-areas:
      "heading heading"
      "text img";
  }
  section:nth-child(even) .about-img,
  section:nth-child(even) .lessons-img,
  section:nth-child(even) .contact-img,
  section:nth-child(even) .about-story-img,
  section:nth-child(even) .about-piano-img,
  section:nth-child(even) .lessons-detail-img,
  section:nth-child(even) .lessons-feelgood-img,
  section:nth-child(even) .about3-img {
    grid-area: img;
  }
  section:nth-child(even) .about-text,
  section:nth-child(even) .lessons-text,
  section:nth-child(even) .about-story-text,
  section:nth-child(even) .lessons-detail-text {
    grid-area: text;
  }
  section.contact-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: none;
    padding: 2em 0;
    box-sizing: border-box;
    background: var(--backgroundThree);
  }
  section.contact-preview h2 {
    width: 100%;
    text-align: center;
    margin: 1.5em 0 1em 0;
    font-size: 2em;
    font-weight: 700;
    align-self: center;
    justify-self: center;
  }
  section.contact-preview img {
    max-width: 220px;
    margin-bottom: 1em;
  }
  section.contact-preview .contact-info {
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
  }
  section.contact-preview .btn {
    margin-top: 1em;
    margin-bottom: 0;
  }
  /* Button below text for 'A Lifetime in Music' section */
  .about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "heading heading"
      "img text";
    align-items: center;
  }
  .about-preview h2 {
    grid-area: heading;
  }
  .about-img {
    grid-area: img;
  }
  .about-text {
    grid-area: text;
    margin-bottom: 0.5em;
  }
  .about-preview .btn {
    grid-area: text;
    margin: 1em 0 0 0;
    align-self: flex-end;
    justify-self: flex-start;
    padding-left: 2vw;
  }

  .subpage-header {
    background-image: url('images/wavedesktop.svg');
    background-size: unset;
  }
} 

/* Hamburger menu overlay and slide-in */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 15;
  transition: opacity 0.3s;
}
.navbar.open ~ .menu-overlay,
.hero .navbar.open ~ .menu-overlay {
  display: block;
  opacity: 1;
}

.menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 60vw;
  max-width: 340px;
  background: rgba(229,238,246,0.98);
  box-shadow: -2px 0 16px rgba(0,0,0,0.10);
  z-index: 20;
  padding-top: 5em;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.navbar.open .menu {
  display: flex;
  transform: translateX(0);
}
.menu a {
  font-size: 1.3em;
  color: #1a5dab;
  padding: 1.2em 2em;
  border: none;
  background: none;
  text-align: left;
  margin-bottom: 0.5em;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
}
.navbar.open .menu a {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}
.menu a:last-child {
  margin-bottom: 0;
}
.menu-toggle {
  z-index: 30;
}
.menu-icon {
  width: 2em;
  height: 0.2em;
  background: #fff;
  display: block;
  position: relative;
  transition: background 0.3s;
}
.language-switcher {
  display: flex;
  gap: 0.5em;
  align-items: center;
  margin-left: 1em;
}

/* On mobile, language switcher only inside hamburger menu */
@media (max-width: 699px) {
  .language-switcher {
    width: 100%;
    justify-content: flex-start;
    margin: 0;
    padding: 0 2.5em;
    display: none;
  }
  .menu .language-switcher {
    display: flex;
  }
  .navbar.open .menu .language-switcher {
    display: flex;
  }
  .menu-toggle {
    position: absolute;
    right: 1em;
    top: 1em;
    z-index: 30;
  }
  .navbar {
    align-items: center;
    position: relative;
  }
  .carousel {
    margin-bottom: 0.75em;
  }
  .lang-btn {
    text-align: left;
    font-size: 1.3em;
    border-radius: 0;
    padding: 1.2em 0;
    margin: 0;
  }
  .navbar.open .lang-btn {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
  }
  .lang-btn.active {
    background: #1a5dab;
    color: #fff;
  }
}
/* Desktop style for language buttons */
.lang-btn {
  background: #E5EEF6;
  color: #1a5dab;
  border: 1px solid #1a5dab;
  border-radius: 3px;
  padding: 0.3em 0.8em;
  font-size: 1em;
  cursor: pointer;
  font-family: "Figtree", sans-serif;
  transition: background 0.2s, color 0.2s;
  margin: 0 0.1em;
  display: inline-block;
}
.lang-btn.active {
  background: #1a5dab;
  color: #fff;
}
.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 2em;
  height: 0.2em;
  background: #fff;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}
.menu-icon::before {
  top: -0.6em;
}
.menu-icon::after {
  top: 0.6em;
}
.navbar.open .menu-icon {
  background: transparent;
}
.navbar.open .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.navbar.open .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}
.subpage .menu-icon,
.subpage .menu-icon::before,
.subpage .menu-icon::after {
  background: var(--heading-color);
}
@media (min-width: 700px) {
  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    max-width: none;
    transform: none !important;
    padding-top: 0;
    align-items: center;
  }
  .menu a {
    opacity: 1 !important;
    transform: none !important;
    font-size: 1em;
    padding: 0 1.2em;
    margin-bottom: 0;
    color: #1a5dab;
    font-weight: 500;
    display: inline-block;
  }
  .menu-overlay {
    display: none !important;
  }
  .menu-toggle {
    display: none;
  }
}

/* Carousel styles */
.carousel {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  background: #e5eef6;
}
.carousel-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: none;
  margin: 0 auto;
  border-radius: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
.carousel-img.active {
  display: block;
  opacity: 1;
  z-index: 1;
  position: absolute;
}
.carousel-progress {
  width: 100%;
  height: 4px;
  background: #d0e7fa;
  border-radius: 2px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}
.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6ec1e4 0%, #0071B8 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 10s linear;
  opacity: 0.7;
}
@media (min-width: 700px) {
  .carousel {
    max-width: 500px;
    aspect-ratio: 4 / 3;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    align-self: center;
    /* Let grid control placement */
    display: block;
    grid-area: img;
  }
}