/* ============================================================
   NORDKLANG MUSIKATELIER — Stylesheet
   Colors: white + logo brick red (#8E2D24)
   Font: Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --red: #8e2d24;
  --red-dark: #6f2019;
  --red-soft: #b8564b;
  --ink: #1a1614;
  --text: #4a4340;
  --muted: #8a807b;
  --white: #ffffff;
  --cream: #fbf8f6;
  --line: #ece5e2;
  --shadow: 0 18px 50px -20px rgba(142, 45, 36, 0.28);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); background: var(--red-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,0.25); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; position: relative; z-index: 210; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink); position: relative; padding: 0.2rem 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .nav-cta { color: var(--red); font-weight: 600; }
.nav-links .nav-cta::after { display: none; }

.burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  position: relative; z-index: 210; touch-action: manipulation;
}
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 200;
    flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(1.1rem, 3.5vh, 1.75rem);
    padding:
      max(5.5rem, calc(4.5rem + env(safe-area-inset-top, 0px)))
      var(--gutter)
      max(2rem, env(safe-area-inset-bottom, 0px));
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }
  .nav-links.open { transform: translateX(0); pointer-events: auto; }
  .nav-links a { font-size: 1.3rem; padding: 0.4rem 0.75rem; }
  .nav-links a::after,
  .nav-links a:hover::after,
  .nav-links a.active::after { display: none; }
  body.menu-open .burger { visibility: hidden; opacity: 0; pointer-events: none; }
  .nav-close-item {
    display: none;
    position: fixed;
    top: max(0.9rem, env(safe-area-inset-top, 0px));
    right: var(--gutter);
    margin: 0; padding: 0; z-index: 220;
  }
  .nav-links.open .nav-close-item { display: block; }
  .nav-close {
    background: none; border: 0; cursor: pointer; padding: 0.65rem; line-height: 0;
    min-width: 44px; min-height: 44px; display: grid; place-items: center;
    touch-action: manipulation;
  }
  .nav-close svg { width: 30px; height: 30px; stroke: var(--ink); }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 861px) { .nav-close-item { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: 6rem var(--gutter) 3rem;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(142,45,36,0.06), transparent 60%),
    var(--white);
}
.hero-logo {
  width: min(340px, 68vw); height: auto;
  animation: rise 1s var(--ease) both;
}
.hero-tag {
  margin-top: 1.6rem; font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--text); font-weight: 300;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  animation: rise 1s var(--ease) 0.15s both;
}
.hero-tag-line { display: block; }
.hero-tag strong { color: var(--red); font-weight: 500; }
.hero-place {
  margin-top: 0.7rem; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); animation: rise 1s var(--ease) 0.25s both;
}

/* animated equalizer scroll indicator */
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 0; right: 0;
  width: fit-content; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--muted); animation: rise 1s var(--ease) 0.5s both;
}
.scroll-cue span { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.eq i {
  width: 4px; background: var(--red); border-radius: 3px;
  animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-delay: 0s; height: 40%; }
.eq i:nth-child(2) { animation-delay: 0.15s; height: 80%; }
.eq i:nth-child(3) { animation-delay: 0.3s; height: 55%; }
.eq i:nth-child(4) { animation-delay: 0.45s; height: 95%; }
.eq i:nth-child(5) { animation-delay: 0.6s; height: 50%; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(3.25rem, 6vw, 5.5rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.section-head p { margin-top: 1rem; color: var(--text); font-size: 1.05rem; }
.section-head-prices { max-width: none; }
.section-head-prices .section-head-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem 0.75rem;
}
.section-head-prices h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head-prices p { margin: 0; font-size: clamp(1rem, 2vw, 1.15rem); }
@media (min-width: 900px) {
  .section-head-prices .section-head-line { flex-wrap: nowrap; }
}

/* red gradient sections */
.section-tint {
  background:
    linear-gradient(180deg, var(--white), var(--cream) 30%, var(--cream) 70%, var(--white));
}
.section-red {
  background: linear-gradient(150deg, var(--red-dark), var(--red) 55%, #a3382d);
  color: rgba(255,255,255,0.9);
}
.section-red h2, .section-red h3 { color: #fff; }
.section-red .eyebrow { color: rgba(255,255,255,0.75); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.person { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.person + .person { margin-top: clamp(3.5rem, 8vw, 6rem); }
.person.reverse .person-media { order: 2; }
.person-media {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4 / 5; background: var(--cream);
  box-shadow: var(--shadow);
}
.person-media img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; color: var(--muted); font-size: 0.9rem;
  background:
    repeating-linear-gradient(45deg, var(--cream), var(--cream) 14px, #f3ece9 14px, #f3ece9 28px);
  border: 1px dashed var(--line);
}
.person-body h3 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.person-body .role { color: var(--red); font-weight: 500; margin: 0.35rem 0 1.4rem; font-size: 1rem; }
.person-body p { margin-bottom: 1rem; }

@media (max-width: 780px) {
  .person, .person.reverse { grid-template-columns: 1fr; }
  .person.reverse .person-media { order: 0; }
  .person-media { aspect-ratio: 3 / 4; max-width: 420px; }
}

/* ============================================================
   LESSONS (tabbed)
   ============================================================ */
.lesson-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.lesson-tab {
  font-family: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer;
  padding: 0.7rem 1.5rem; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; color: var(--text); transition: all 0.3s var(--ease);
}
.lesson-tab:hover { border-color: var(--red-soft); color: var(--red); }
.lesson-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.lesson-panel { display: none; }
.lesson-panel.active { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lesson-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.lesson-media img { width: 100%; height: 100%; object-fit: cover; }
.lesson-copy h3 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-bottom: 1rem; }
.lesson-copy p { margin-bottom: 1.2rem; }
.lesson-copy ul { list-style: none; margin-bottom: 1.6rem; }
.lesson-copy li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
.lesson-copy li::before { content: '♪'; position: absolute; left: 0; color: var(--red); }
@media (max-width: 780px) {
  .lesson-tabs { flex-wrap: nowrap; gap: 0.4rem; }
  .lesson-tab {
    flex: 1; min-width: 0; padding: 0.6rem 0.45rem;
    font-size: clamp(0.72rem, 2.8vw, 0.85rem); text-align: center; line-height: 1.25;
  }
  .lesson-panel.active { grid-template-columns: 1fr; }
  .lesson-media { order: -1; }
}

/* ============================================================
   ATELIER
   ============================================================ */
.atelier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: stretch; }
.atelier-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.atelier-media img { width: 100%; height: 100%; object-fit: cover; }
.atelier-copy { margin-top: 0; }
@media (min-width: 781px) {
  .atelier-grid { grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto auto; }
  .atelier-media.tall { grid-column: 1; grid-row: 1 / 3; }
  .atelier-media:not(.tall) { grid-column: 2; grid-row: 1; }
  .atelier-copy { grid-column: 2; grid-row: 2; align-self: start; padding-top: 0.25rem; }
}
@media (max-width: 780px) {
  .atelier-grid { grid-template-columns: 1fr; }
  .atelier-media { aspect-ratio: 4 / 3; }
  .atelier-copy { margin-top: 0.5rem; }
}

/* ============================================================
   PRICES
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.55rem 0; gap: 1rem; }
.price-row .dur { color: var(--text); }
.price-row .amt { font-weight: 600; color: var(--ink); white-space: nowrap; }
.price-row .amt b { color: var(--red); font-weight: 600; }
.price-card.simple .price-row { padding: 0.3rem 0; }
.price-note { margin-top: 2.2rem; font-size: 0.85rem; color: var(--muted); max-width: 760px; line-height: 1.6; }
.price-extra { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.price-extra .pill {
  background: var(--cream); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.6rem 1.3rem; font-size: 0.9rem;
}
.price-extra .pill b { color: var(--ink); font-weight: 600; }
.price-trial {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
}
.price-trial p { font-size: 1.05rem; color: var(--text); max-width: 560px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero { padding-top: 8rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream); color: var(--red);
}
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item p { font-size: 1.05rem; color: var(--ink); font-weight: 500; word-break: break-word; }
.contact-item a:hover { color: var(--red); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; padding: 0.3rem 0; max-width: 360px; }
.hours-list li span:first-child { flex: 1; min-width: 0; }
.hours-list li span:last-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { height: 72px; width: auto; display: block; opacity: 0.95; }
.footer-col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 0.95rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: #fff; }
.footer-instagram {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0.35rem; padding: 0.25rem;
  color: rgba(255,255,255,0.85); transition: color 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}
.footer-instagram:hover { color: #fff; opacity: 1; transform: translateY(-2px); }
.footer-instagram svg { width: 26px; height: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

@media (max-width: 780px) {
  .footer {
    padding: 2.75rem 0 1.75rem;
    background: linear-gradient(
      180deg,
      var(--white) 0,
      var(--cream) 2.25rem,
      var(--ink) 7rem
    );
  }
  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  .footer-col-menu { display: none; }
  .footer-col-logo { order: 1; }
  .footer-col-hours { order: 2; }
  .footer-col-contact { order: 3; max-width: 320px; }
  .footer-logo { margin-inline: auto; height: 64px; }
  .footer-col h4 { margin-bottom: 0.75rem; }
  .footer-col a, .footer-col p { margin-bottom: 0.45rem; }
  .footer-col a { word-break: break-word; }
  .footer-instagram { margin-inline: auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding-top: 1.25rem;
  }
}
