/* =========================================================
   JELAMUSIC — styles
   Change the colors here and the whole site updates.
   ========================================================= */
:root {
  --ink: #17181c;
  --ink-2: #2a2c33;
  --muted: #6b6d76;
  --line: #e7e3da;
  --paper: #faf8f4;
  --sand: #f3efe6;
  --white: #ffffff;
  --accent: #ff6b4a;
  --accent-dark: #e5532f;
  --accent-soft: #ffe9e2;
  --green: #1f9d61;
  --green-soft: #e6f6ee;
  --amber: #b26b00;
  --amber-soft: #fff3df;
  --red: #c8372d;
  --red-soft: #fdebea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 8px 24px rgba(23, 24, 28, .06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; letter-spacing: .14em; text-decoration: none; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--accent); }
.logo-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--accent-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-only { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); padding: 16px 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav-links .mobile-only { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background .15s, border-color .15s, color .15s;
  background: var(--ink); color: var(--white);
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-danger { background: transparent; color: var(--red); border-color: #f2c9c5; }
.btn-danger:hover { background: var(--red-soft); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-dark); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #ff8a6e 0%, #ff6b4a 35%, #17181c 100%);
  box-shadow: var(--shadow);
}
.hero-art .bars { position: absolute; inset: auto 28px 28px 28px; display: flex; align-items: flex-end; gap: 8px; height: 46%; }
.hero-art .bars i { flex: 1; height: 100%; background: rgba(255,255,255,.88); border-radius: 6px; animation: eq 1.6s ease-in-out infinite; transform-origin: bottom; }
.hero-art .bars i:nth-child(odd) { background: rgba(255,255,255,.5); }
@keyframes eq { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero-art .bars i { animation: none; } }
.hero-art .badge {
  position: absolute; top: 24px; left: 24px; background: rgba(255,255,255,.95); border-radius: 14px;
  padding: 12px 16px; font-size: .9rem; box-shadow: var(--shadow);
}
.hero-art .badge b { display: block; font-size: 1.05rem; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--display); font-size: 1.6rem; }
.hero-stats div span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { aspect-ratio: 16 / 10; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

.grid { display: grid; gap: 18px; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.card h3 { margin-bottom: .35em; }
.instrument-card { transition: transform .15s, box-shadow .15s; }
.instrument-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 16px; }
.icon-wrap svg { width: 28px; height: 28px; }

.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--display); font-size: 2.4rem; font-weight: 600; margin: 8px 0 2px; }
.price-card .per { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; color: var(--ink-2); font-size: .95rem; }
.price-card li { padding: 6px 0 6px 24px; position: relative; }
.price-card li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.price-card.featured .per, .price-card.featured li { color: #c9cad0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; align-self: flex-start; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; background: var(--amber-soft); color: #6b4300;
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem;
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.notice.info { background: #eaf1ff; color: #1d3f7a; }
.notice.success { background: var(--green-soft); color: #11603a; }
.notice.error { background: var(--red-soft); color: #8a221b; }

.steps { counter-reset: s; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }

.contact-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.contact-list li b { min-width: 80px; }

.cta-band { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px; display: flex;
  justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.site-footer { padding: 36px 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); }
.tabs { display: flex; background: var(--sand); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font: 600 .9rem var(--font); cursor: pointer; color: var(--muted); }
.tabs button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 400 1rem var(--font); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; }
.form-msg { margin-top: 12px; }

/* ---------- App (dashboard / booking / admin) ---------- */
.app { padding: 40px 0 80px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h2 { font-family: var(--font); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.item .date-chip { flex: none; width: 56px; text-align: center; border-radius: 10px; background: var(--sand); padding: 6px 0; }
.item .date-chip b { display: block; font-size: 1.3rem; line-height: 1.1; }
.item .date-chip span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }

.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.paid { background: var(--green-soft); color: var(--green); }
.pill.pending { background: var(--amber-soft); color: var(--amber); }
.pill.processing { background: #eaf1ff; color: #2952a3; }
.pill.failed { background: var(--red-soft); color: var(--red); }
.pill.canceled { background: #eeeeee; color: #666; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

details.booking { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 10px; }
details.booking summary { list-style: none; cursor: pointer; padding: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
details.booking summary::-webkit-details-marker { display: none; }
details.booking summary .grow { flex: 1; min-width: 180px; }
details.booking .body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.teacher-notes { background: var(--sand); border-radius: var(--radius-sm); padding: 12px 14px; white-space: pre-wrap; margin-top: 12px; }

/* Booking wizard */
.stepper { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.stepper div { flex: 1; min-width: 110px; font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.stepper div.active { color: var(--ink); border-color: var(--accent); }
.stepper div.done { color: var(--ink); border-color: var(--ink); }

.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice {
  text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--ink); }
.choice.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice .price { font-family: var(--display); font-size: 1.6rem; font-weight: 600; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.day { flex: none; width: 74px; padding: 10px 0; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font: inherit; color: inherit; }
.day b { display: block; font-size: 1.25rem; }
.day span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day.selected { border-color: var(--accent); background: var(--accent-soft); }
.day .dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 4px auto 0; visibility: hidden; }
.day.has-pick .dot { visibility: visible; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 16px; }
.time { padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; font: 600 .92rem var(--font); color: var(--ink); }
.time:hover:not(:disabled) { border-color: var(--ink); }
.time.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.time:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.picks .pick { display: inline-flex; align-items: center; gap: 8px; background: var(--sand); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: .88rem; }
.picks .pick button { border: 0; background: var(--white); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.summary-row:last-child { border-bottom: 0; }
.summary-total { font-weight: 700; font-size: 1.1rem; }
#payment-element { margin: 18px 0; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }

/* Admin */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-tabs button { background: none; border: 0; padding: 12px 14px; font: 600 .92rem var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.avail-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 560px) { .avail-row { grid-template-columns: 1fr 1fr; } }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.switch input { width: auto; }

.loader { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { padding: 80px 0; text-align: center; color: var(--muted); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: .92rem; transition: transform .25s; z-index: 100; }
.toast.show { transform: translateX(-50%) translateY(0); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(23,24,28,.5); display: grid; place-items: center; padding: 20px; z-index: 90; }
.modal { background: var(--white); border-radius: var(--radius); padding: 28px; width: min(480px, 100%); max-height: 90vh; overflow: auto; }
