/* ==========================================================
   Verdi Music Studio — stylesheet
   ========================================================== */

:root {
  --ink: #16221b;
  --ink-soft: #3c4a41;
  --muted: #6e7a71;
  --cream: #f3eee2;
  --paper: #faf7ef;
  --line: #e2dbc9;
  --green: #1f3b2c;
  --green-deep: #132a1e;
  --gold: #a5772b;
  --gold-bright: #d9b56a;
  --gold-soft: #ecdcb5;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 34, 27, .04), 0 12px 32px -12px rgba(22, 34, 27, .14);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }

p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--cream);
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(22, 34, 27, .25); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-light { background: var(--cream); color: var(--green); border-color: var(--cream); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--green-deep); }

.btn-small { padding: .65em 1.15em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, .86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; text-decoration: none; color: var(--green); }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font: 600 1.7rem/0.9 var(--serif); letter-spacing: .1em; text-transform: uppercase; padding-left: .1em; }
.brand-sub {
  display: flex; align-items: center; gap: .45em;
  white-space: nowrap; margin-top: 4px;
  font: 600 .58rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  padding-left: .32em;
}
.brand-sub .fleur { font-family: Georgia, "Times New Roman", serif; font-size: 1.15em; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  white-space: nowrap;
  font-size: .93rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.lang-switch button {
  border: 0; background: transparent;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: var(--cream); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 10%, rgba(165, 119, 43, .14), transparent 62%),
    radial-gradient(800px 500px at -10% 110%, rgba(31, 59, 44, .08), transparent 60%),
    var(--cream);
  padding: 72px 0 0;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-text { min-width: 0; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-tagline {
  font: 400 clamp(2.6rem, 5.4vw, 4.2rem)/1 var(--script);
  color: var(--gold);
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--green);
  max-width: 20ch;
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-facts {
  list-style: none;
  padding: 26px 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  border-top: 1px solid rgba(22, 34, 27, .12);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font: 500 2.2rem/1 var(--serif); color: var(--green); }
.hero-facts span { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.hero-logo { display: flex; justify-content: center; }
.hero-logo img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.piano-keys {
  height: 56px;
  border-top: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='56'%3E%3Cg fill='%23e2dbc9'%3E%3Crect x='39' width='1' height='56'/%3E%3Crect x='79' width='1' height='56'/%3E%3Crect x='119' width='1' height='56'/%3E%3Crect x='159' width='1' height='56'/%3E%3Crect x='199' width='1' height='56'/%3E%3Crect x='239' width='1' height='56'/%3E%3Crect x='279' width='1' height='56'/%3E%3C/g%3E%3Cg fill='%2316221b'%3E%3Crect x='27' width='24' height='34' rx='2'/%3E%3Crect x='67' width='24' height='34' rx='2'/%3E%3Crect x='147' width='24' height='34' rx='2'/%3E%3Crect x='187' width='24' height='34' rx='2'/%3E%3Crect x='227' width='24' height='34' rx='2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 280px 56px repeat-x;
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-title { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 18px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}
.about-text > p { font-size: 1.08rem; color: var(--ink-soft); }

.values { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 24px; }
.values li { display: flex; gap: 18px; align-items: flex-start; }
.value-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 1.35rem;
}
.values h3 { font-size: 1.35rem; margin-bottom: 2px; }
.values p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Classes */
.classes { background: var(--cream); }

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

.card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(31, 59, 44, .07);
  color: var(--green);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 30px; height: 30px; }

.card h3 { font-size: 1.75rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }

.tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.card-cta {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
  justify-content: center;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(246, 240, 230, .82); }
.card-cta .btn { align-self: flex-start; margin-top: 8px; }
.card-cta:hover { border-color: var(--green); }

/* Teachers */
.teacher-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.teacher-card {
  min-width: 0;
  display: flex; flex-direction: column;
  padding: 0; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.teacher-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.teacher-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; background: var(--cream); }
.teacher-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.teacher-name { font: 500 1.35rem/1.15 var(--serif); }
.teacher-role { margin: 0; color: var(--green); font-size: .85rem; font-weight: 500; line-height: 1.4; }
.teacher-link { margin-top: auto; padding-top: 8px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.teacher-link::after { content: " →"; }
.teacher-card:hover .teacher-link { color: var(--green); }

.teacher-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.teacher-facts li {
  font-size: .76rem; font-weight: 500;
  padding: 5px 11px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft);
}

.teacher-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0; border: 0;
  border-radius: calc(var(--radius) + 6px);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(22, 34, 27, .45);
  overflow: hidden;
}
.teacher-dialog::backdrop { background: rgba(22, 34, 27, .55); backdrop-filter: blur(3px); }
.td-inner {
  position: relative;
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.td-photo { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center 22%; background: var(--cream); position: sticky; top: 0; max-height: calc(100dvh - 48px); }
.td-body { padding: 36px 36px 32px; display: grid; gap: 14px; align-content: start; }
.td-body h3 { font-size: 2.1rem; padding-right: 36px; }
.td-bio p { margin: 0 0 1em; color: var(--ink-soft); font-size: .97rem; }
.td-list { margin: 0 0 1em; padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; display: grid; gap: 6px; }
.td-list strong { color: var(--ink); font-weight: 600; }
.td-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.td-close:hover { border-color: var(--green); color: var(--green); }
.td-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Space rental */
.space-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.space-visual { margin: 0; min-width: 0; }
.space-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  max-width: 100%;
  background: var(--green-deep);
}
.space-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.space-visual figcaption {
  margin-top: 12px;
  font: italic 500 1.1rem/1.2 var(--serif);
  color: var(--green);
}
.space-text > p { font-size: 1.08rem; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f3b2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.steps { background: var(--ink); color: var(--cream); }
.steps .section-title { color: #fff; }
.steps-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.steps-list li { border-top: 1px solid rgba(246, 240, 230, .18); padding-top: 28px; }
.step-num { font: italic 500 2.4rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 18px; }
.steps-list h3 { font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.steps-list p { color: rgba(246, 240, 230, .7); margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-info > p { color: var(--ink-soft); font-size: 1.08rem; }

.contact-list { margin: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.contact-list dt {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-list dd { margin: 0; color: var(--ink); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--green); color: var(--green); }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--cream);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}
.contact-form h3 { font-size: 1.9rem; margin-bottom: 4px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 59, 44, .12);
}
.contact-form .invalid { border-color: #b3261e; }

.form-note { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: #2f6b3a; }
.form-note.err { color: #b3261e; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .88rem; }
.footer-tagline { font: 400 1.5rem/1 var(--script); color: var(--gold); margin-right: .5em; vertical-align: -0.12em; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .space-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-inner { grid-template-columns: 1fr; }
  .td-photo { position: static; min-height: 0; height: auto; aspect-ratio: 4 / 3; max-height: 46dvh; }
  .space-visual { max-width: 720px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; padding-bottom: 64px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 300px; }
  .contact-form { position: static; }
}

@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(22, 34, 27, .25);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 24px; }
  .hero-logo img { max-width: 240px; }
  .hero-inner { padding-bottom: 64px; }
  .hero-facts { gap: 28px; }
  .cards, .steps-list { grid-template-columns: 1fr; }
  .contact-list, .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .teacher-grid { gap: 12px; }
  .teacher-card-body { padding: 12px 12px 14px; }
  .teacher-name { font-size: 1.15rem; }
  .teacher-role { font-size: .78rem; }
  .td-body { padding: 24px 20px; }
  .td-body h3 { font-size: 1.7rem; }
  .brand-sub { font-size: .85rem; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.4rem; }
}
