/* =============================================================================
   Duende Dance Studio — styles.css
   Paleta z logo (derive_tokens): primary #7F007F, accent #B80092
   Rodzina: mauve-nude / złamana biel · hero: stacked-media · rytm: fullbleed-bands
   ============================================================================= */

:root {
  --color-primary: #7F007F;
  --color-primary-600: #6C006C;
  --color-accent: #B80092;
  --color-accent-hover: #9C007C;
  --color-on-accent: #FFFFFF;

  --bg: #FFFCFE;
  --bg-band: #F7EEF5;
  --bg-deep: #2A0B26;
  --surface: #FFFFFF;
  --border: #EBD9E7;
  --border-strong: #DCBFD6;

  --text: #1C0F1A;
  --text-body: #3A2635;
  --text-muted: #6B5566;
  --text-on-deep: #FBF2F8;
  --text-on-deep-muted: #D9BDD1;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius: 4px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(44, 10, 38, .06);
  --shadow-md: 0 10px 30px rgba(44, 10, 38, .10);
  --shadow-lg: 0 24px 60px rgba(44, 10, 38, .16);

  --motion-ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1180px;
  --section-y: clamp(64px, 9vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 var(--space-4);
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

h1 { font-size: clamp(2.6rem, 9.5vw, 5.1rem); }
h2 { font-size: clamp(2rem, 5.4vw, 3.3rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.25; }
p { margin: 0 0 1.1em; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 40px, 760px); }

.section { padding-block: var(--section-y); position: relative; }
.section--band { background: var(--bg-band); }
.section--deep { background: var(--bg-deep); color: var(--text-on-deep); }
.section--deep h2, .section--deep h3 { color: #fff; }

/* --- Eyebrow ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.section--deep .eyebrow { color: #F0A6DA; }

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 0; }
.section--deep .section-head p { color: var(--text-on-deep-muted); }

/* --- Przyciski -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--motion-ease), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost { border-color: var(--border-strong); color: var(--color-primary); background: rgba(255,255,255,.7); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--on-deep { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--on-deep:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .arrow { transition: transform .18s var(--motion-ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 254, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 168px; height: auto; }
.nav { display: none; }
.nav a {
  text-decoration: none;
  color: var(--text-body);
  font-size: .95rem;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 4px;
  height: 1.5px;
  background: var(--color-accent);
  transition: right .25s var(--motion-ease);
}
.nav a:hover::after { right: 0; }
.header-cta { display: none; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1rem;
  min-height: 48px;
}

@media (min-width: 880px) {
  .nav { display: flex; gap: 28px; }
  .header-cta { display: inline-flex; }
  .header-tel--mobile { display: none; }
}

/* --- Hero (stacked-media) --------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(760px 520px at 82% -8%, rgba(184, 0, 146, .13), transparent 62%),
    radial-gradient(620px 460px at 6% 12%, rgba(127, 0, 127, .10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-copy { max-width: 880px; margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .line { display: block; }
.hero h1 .line--accent {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 500;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.1vw, 1.24rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.hero .btn-row { justify-content: center; }

.hero-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
}
.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-band);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.hero-frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 252, 254, .93);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
@media (min-width: 760px) {
  .hero-stack { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero-frame:nth-child(2) { transform: translateY(-28px); }
}

.style-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-6);
}
.chip {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-primary);
  background: rgba(255,255,255,.6);
}

/* --- Karty ------------------------------------------------------------------ */
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform .22s var(--motion-ease), box-shadow .22s var(--motion-ease), border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: .98rem; }
.card .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

.course {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s var(--motion-ease), box-shadow .22s var(--motion-ease);
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course__body { padding: var(--space-5); flex: 1; }
.course__body h3 { margin-bottom: 8px; }
.course__body p { color: var(--text-muted); font-size: .97rem; margin-bottom: 0; }
.course__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* --- Fullbleed band --------------------------------------------------------- */
.band {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.band img { width: 100%; height: clamp(220px, 34vw, 380px); object-fit: cover; }
.band__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5);
  background: linear-gradient(to top, rgba(28, 6, 24, .78), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  text-align: center;
}

/* --- Split media + tekst ---------------------------------------------------- */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 72px); }
  .split--rev .split__media { order: 2; }
}
.split__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.split__text h2 { margin-bottom: var(--space-4); }

/* --- Grafik ----------------------------------------------------------------- */
.schedule {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.schedule__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--space-5);
  border-bottom: 1px solid var(--border);
}
.schedule__row:last-child { border-bottom: 0; }
.schedule__name { font-weight: 600; color: var(--text); font-size: 1.05rem; }
.schedule__slot {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--color-primary);
  background: var(--bg-band);
  border-radius: var(--radius-pill);
  padding: 6px 15px;
}
.note {
  border-left: 3px solid var(--color-accent);
  background: var(--bg-band);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-5);
  margin-top: var(--space-5);
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--color-primary); }

/* --- Camp ------------------------------------------------------------------- */
.camp-card {
  background: linear-gradient(135deg, #3A0E33, #6B0A57);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.camp-card h3 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.camp-card p { color: #E8CBE0; }
.camp-date {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #FFB3E6;
  margin-bottom: 10px;
}
.camp-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: 10px; }
.camp-list li { display: flex; gap: 10px; align-items: flex-start; color: #F3DDEC; font-size: .98rem; }
.camp-list li::before { content: "★"; color: #FFB3E6; flex: none; }

/* --- Galeria ---------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  transition: transform .4s var(--motion-ease);
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.gallery figure:hover img { transform: scale(1.04); }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* --- Kontakt ---------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 72px); } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list a, .contact-list span {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  color: var(--text-on-deep);
  font-size: 1.08rem;
}
.contact-list .lbl {
  flex: none;
  width: 92px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F0A6DA;
  font-weight: 700;
}
.contact-list a:hover .val { color: #FFB3E6; }
.contact-card {
  align-self: start;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--text-on-deep-muted); }

/* --- FAQ -------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-muted); max-width: 62ch; }

.section--deep .faq details { border-bottom-color: rgba(255,255,255,.16); }
.section--deep .faq summary { color: #FFFFFF; }
.section--deep .faq summary::after { color: #FFB3E6; }
.section--deep .faq details p { color: var(--text-on-deep-muted); }

/* --- Stopka ----------------------------------------------------------------- */
.site-footer {
  background: #1B0718;
  color: #D9BDD1;
  padding-block: var(--space-7) var(--space-6);
  font-size: .93rem;
}
.footer-top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 820px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #F0D6E8; text-decoration: none; }
.site-footer a:hover { color: #FFB3E6; }
.site-footer h4 {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #F0A6DA;
  margin: 0 0 14px;
  font-weight: 700;
  font-family: var(--font-body);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: #A98BA2;
  font-size: .85rem;
}
.footer-logo { width: 190px; margin-bottom: 16px; }

.demo-note {
  background: #F7EEF5;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .87rem;
  padding-block: 18px;
  text-align: center;
}
.demo-note strong { color: var(--color-primary); }

/* --- Sticky CTA (mobile) ---------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 252, 254, .96);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.sticky-cta .btn { flex: 1; min-height: 48px; font-size: .95rem; padding: 0 14px; }
@media (min-width: 880px) { .sticky-cta { display: none; } }
@media (max-width: 879px) { body { padding-bottom: 84px; } }

/* --- Reveal ----------------------------------------------------------------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--motion-ease), transform .7s var(--motion-ease);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--motion-ease), transform .6s var(--motion-ease);
}
.reveal-ready [data-stagger].is-in > * { opacity: 1; transform: none; }
.reveal-ready [data-stagger].is-in > *:nth-child(2) { transition-delay: .07s; }
.reveal-ready [data-stagger].is-in > *:nth-child(3) { transition-delay: .14s; }
.reveal-ready [data-stagger].is-in > *:nth-child(4) { transition-delay: .21s; }
.reveal-ready [data-stagger].is-in > *:nth-child(5) { transition-delay: .28s; }
.reveal-ready [data-stagger].is-in > *:nth-child(6) { transition-delay: .35s; }
.reveal-ready [data-stagger].is-in > *:nth-child(7) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal],
  .reveal-ready [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .course:hover { transform: none; }
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 12px;
  z-index: 100;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
