/* ============================================================
   Bachata Śląska — one-page landing
   Mobile-first, premium warm palette: red / black / cream / beige
   ============================================================ */

:root {
  --red: #c01f2e;
  --red-deep: #9e1425;
  --black: #171214;
  --ink: #241e1e;
  --muted: #6d635c;
  --cream: #faf7f2;
  --beige: #f0e9de;
  --beige-deep: #e5dbca;
  --gold: #b08d57;
  --white: #fffdf9;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(23, 18, 20, 0.08);
  --shadow-lift: 0 18px 44px rgba(23, 18, 20, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--black);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(1120px, 88%);
  margin-inline: auto;
}

.center { text-align: center; }

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s;
  will-change: transform;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(192, 31, 46, 0.32);
}

.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(192, 31, 46, 0.4);
}

.btn-light {
  background: var(--cream);
  color: var(--black);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.btn-light:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.55rem 1.3rem;
  font-size: 0.92rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 18, 20, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

/* ---------- Eyebrow / section head ---------- */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section {
  padding-block: clamp(3.6rem, 9vw, 6.5rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.section-lead {
  font-size: 1.12rem;
  color: var(--muted);
}

.section-tinted {
  background: var(--beige);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.4rem, 6vw, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(176, 141, 87, 0.10), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, #f5efe6 100%);
}

.hero-grid {
  display: grid;
  gap: 2.6rem;
  align-items: center;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--red);
  margin-bottom: 0.9rem;
}

.hero-lead {
  font-size: clamp(1.08rem, 3vw, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.8rem;
}

.microcopy {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42ch;
  margin-top: 0.9rem;
}

.hero-media {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.hero-photo-frame {
  position: relative;
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  z-index: 1;
}

.hero-photo-frame img {
  width: 100%;
}

.hero-accent {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-accent-1 {
  width: 140px;
  height: 140px;
  right: -36px;
  top: -36px;
  background: radial-gradient(circle, rgba(192, 31, 46, 0.16), transparent 70%);
}

.hero-accent-2 {
  width: 200px;
  height: 200px;
  left: -60px;
  bottom: -50px;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.2), transparent 70%);
}

/* ---------- Dla kogo ---------- */

.two-col {
  display: grid;
  gap: 2.2rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding: 1rem 1.2rem 1rem 2.6rem;
  background: var(--white);
  border: 1px solid rgba(23, 18, 20, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-weight: 500;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- Format: cards ---------- */

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(23, 18, 20, 0.05);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  margin-bottom: 0.45em;
}

.card h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Grafik ---------- */

.schedule-grid {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.schedule-card {
  background: var(--white);
  border: 1px solid rgba(23, 18, 20, 0.06);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.schedule-day {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.schedule-time {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.15rem;
  line-height: 1;
}

.schedule-name {
  font-weight: 600;
  color: var(--red);
}

.schedule-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* ---------- Instruktorzy ---------- */

.section-dark {
  background: linear-gradient(180deg, #1b1517 0%, var(--black) 100%);
}

.section-dark h2,
.section-dark h3 {
  color: var(--cream);
}

.section-dark .eyebrow {
  color: var(--gold);
}

.section-dark p {
  color: rgba(250, 247, 242, 0.78);
}

.instructors-grid {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}

.instructors-photo {
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

.instructors-photo img {
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.bio + .bio {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
}

.bio h3 {
  font-size: 1.5rem;
}

.bio h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--red);
  border-radius: 2px;
}

/* ---------- Miejsce ---------- */

.place-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.place-photo img {
  border-radius: calc(var(--radius) * 1.4);
  box-shadow: var(--shadow-lift);
}

.place-copy p:first-child {
  font-size: 1.15rem;
}

.place-copy p:last-child {
  color: var(--muted);
}

/* ---------- Cena ---------- */

.price-grid {
  display: grid;
  gap: 1.3rem;
  margin-bottom: 1.6rem;
}

.price-card {
  background: var(--white);
  border: 1px solid rgba(23, 18, 20, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.price-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price {
  font-family: var(--font-display);
  color: var(--black);
  margin: 0.4rem 0 0.6rem;
}

.price-value {
  font-size: 3.1rem;
  font-weight: 500;
  line-height: 1;
}

.price-desc {
  font-size: 0.94rem;
  color: var(--muted);
}

.price-featured {
  background: var(--black);
  border-color: var(--black);
  position: relative;
}

.price-featured h3,
.price-featured .price {
  color: var(--cream);
}

.price-featured .price-desc {
  color: rgba(250, 247, 242, 0.72);
}

.price-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  margin-bottom: 0.9rem;
}

.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Jak się zapisać ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 640px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid rgba(23, 18, 20, 0.06);
  border-radius: var(--radius);
  padding: 1.05rem 1.3rem;
  box-shadow: var(--shadow-soft);
  font-weight: 500;
}

.step-num {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--beige);
  color: var(--red-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.steps-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(192, 31, 46, 0.35), transparent 65%),
    linear-gradient(180deg, #201317 0%, var(--black) 70%);
}

.final-cta h2 {
  color: var(--cream);
}

.final-lead {
  color: rgba(250, 247, 242, 0.8);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  padding-block: 1.6rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  color: rgba(250, 247, 242, 0.6);
  font-size: 0.92rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1.4rem;
}

.footer-social a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.25s, color 0.25s;
}

.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Scroll reveal (JS adds .is-visible) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger siblings a touch */
.card-grid .reveal.is-visible:nth-child(2),
.schedule-grid .reveal.is-visible:nth-child(2),
.price-grid .reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
.card-grid .reveal.is-visible:nth-child(3),
.schedule-grid .reveal.is-visible:nth-child(3),
.price-grid .reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
.card-grid .reveal.is-visible:nth-child(4),
.schedule-grid .reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }
.card-grid .reveal.is-visible:nth-child(5) { transition-delay: 0.32s; }

/* Hero entrance stagger */
.hero .reveal.is-visible { transition-duration: 0.85s; }
.hero-copy .reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
.hero-copy .reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
.hero-copy .reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }
.hero-copy .reveal.is-visible:nth-child(5) { transition-delay: 0.32s; }
.hero-media.reveal.is-visible { transition-delay: 0.2s; }

/* ---------- No-JS fallback: content always visible ---------- */

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Desktop layout ---------- */

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  /* Hero: szeroka grafika (para po prawej, wolna przestrzeń po lewej)
     jako pełne tło sekcji; tekst leży na jasnej części obrazu. */
  .hero {
    position: relative;
    min-height: min(86vh, 720px);
    display: flex;
    align-items: center;
    padding-block: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 560px);
    width: min(1240px, 92%);
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    padding-block: 4rem;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    max-width: none;
    margin: 0;
    z-index: 0;
  }

  .hero-photo-frame {
    position: absolute;
    /* Na desktopie para jest częścią pełnego tła hero, więc kadr trzymamy przy
       górnej krawędzi zdjęcia. Dzięki temu głowy nie wpadają pod clip sekcji. */
    inset: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-photo-frame picture,
  .hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
  }

  .hero-accent { display: none; }

  .two-col { grid-template-columns: 1.1fr 1fr; gap: 3.4rem; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }

  .schedule-grid { grid-template-columns: repeat(4, 1fr); }

  .instructors-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3.6rem; }

  .place-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.4rem; }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    max-width: 940px;
    margin-inline: auto;
  }

  .price-featured {
    transform: scale(1.05);
  }

  .steps { margin-inline: 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .schedule-card:hover,
  .btn:hover {
    transform: none;
  }

  .price-featured,
  .price-featured:hover {
    transform: scale(1.05);
  }
}
