/* Dance style landing pages (/salsa-bachata, /greek-dances, /ladies-styling,
   /wedding-dance). Same look as the Instagram facelift in refresh.css: stage
   black, big serif type layered behind cut-out dancers, the pink glow rising
   from the floor. Each page sets its accent on <body>: pink by default,
   turquoise for Greek (.dz-teal). Generated by tools/make_dance_pages.py. */

.dz {
  --dz: var(--theme-color);
  --dz-light: #ff4f93;
  --dz-glow: rgba(200, 30, 95, .62);
  --dz-soft: #fdf1f5;
}
.dz-teal {
  --dz: #0b7d71;
  --dz-light: #3fe0c8;
  --dz-glow: rgba(11, 125, 113, .7);
  --dz-soft: #eef8f6;
}
.dz-teal .th-btn { background-color: #0b7d71; }
.dz-teal .th-btn:hover { background-color: #08594f; }

.dz-script {
  display: block;
  font-family: var(--style-font);
  font-size: clamp(36px, 2vw + 26px, 50px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--dz-light), 0 0 24px var(--dz);
  margin-bottom: 6px;
}
.dz-greek { font-family: "EB Garamond", Georgia, serif; }

/* ---------- Hero: big word behind the cut-out dancer ---------- */
.dz-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 72% 45%, rgba(255, 255, 255, .07), transparent 70%), var(--title-color);
  color: #fff;
}
.dz-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, var(--dz-glow) 0%, transparent 34%);
}
.dz-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  min-height: min(80vh, 720px);
}
.dz-hero-text { position: relative; z-index: 4; padding: 80px 0 96px; }
.dz-hero h1 {
  color: #fff;
  font-size: clamp(52px, 4.4vw + 20px, 96px);
  line-height: .95;
  margin: 0 0 22px;
}
.dz-hero p { color: rgba(255, 255, 255, .82); font-size: 18px; max-width: 30em; margin-bottom: 32px; }
.dz-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dz-link {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--dz-light);
  padding-bottom: 2px;
}
.dz-link:hover { color: var(--dz-light); }

.dz-hero-art {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.dz-bigword {
  position: absolute;
  z-index: 1;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif-font);
  font-weight: 700;
  font-size: var(--word-size, clamp(90px, 9.4vw, 180px));
  line-height: .8;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px var(--dz-light);
  opacity: .9;
  user-select: none;
}
.dz-bigword.dz-greek { font-weight: 600; letter-spacing: .02em; }
.dz-bigword b {          /* second line, filled */
  display: block;
  font-weight: inherit;
  color: var(--dz);
  -webkit-text-stroke: 0;
  text-align: center;
}
.dz-cut {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(76vh, 680px);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55));
}

/* Photo hero (wedding): full-bleed photo instead of a cut-out. */
.dz-hero-photo { background: var(--title-color); }
.dz-hero-photo .dz-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}
.dz-hero-photo .dz-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 13, 18, .9) 0%, rgba(20, 13, 18, .55) 45%, rgba(20, 13, 18, .1) 75%);
}
.dz-hero-photo .dz-hero-in { grid-template-columns: 1fr; min-height: min(76vh, 680px); }
.dz-hero-photo .dz-hero-text { max-width: 620px; }

@media (max-width: 991px) {
  .dz-hero-in { grid-template-columns: 1fr; min-height: 0; }
  .dz-hero-art { order: -1; height: 440px; }
  .dz-cut { max-height: 430px; }
  .dz-bigword { top: 40px; font-size: var(--word-size-sm, 17vw); }
  .dz-hero-text { padding: 26px 0 70px; }
  .dz-hero-photo .dz-hero-in { min-height: 560px; }
  .dz-hero-photo .dz-hero-bg::after { background: linear-gradient(to top, rgba(20, 13, 18, .92) 10%, rgba(20, 13, 18, .35) 70%); }
}
@media (max-width: 575px) {
  .dz-hero-art { height: 380px; }
  .dz-cut { max-height: 370px; }
  .dz-hero p { font-size: 16px; }
}

/* ---------- Sections ---------- */
.dz-sec { padding: 110px 0; }
.dz-sec-soft { background: var(--dz-soft); }
.dz-sec-dark { background: var(--title-color); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.dz-sec-dark h2, .dz-sec-dark h3 { color: #fff; }
.dz-sec-dark p { color: rgba(255, 255, 255, .8); }
.dz-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.dz-head h2 { font-size: clamp(38px, 2vw + 28px, 56px); line-height: 1.05; margin-bottom: 14px; }
.dz-head p { font-size: 17px; margin: 0; }
.dz-head .dz-script { color: var(--dz); text-shadow: none; }
.dz-sec-dark .dz-head .dz-script { color: #fff; text-shadow: 0 0 2px #fff, 0 0 10px var(--dz-light), 0 0 24px var(--dz); }
@media (max-width: 767px) { .dz-sec { padding: 72px 0; } .dz-head { margin-bottom: 40px; } }

/* Three quick facts with drawn icons. */
.dz-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dz-fact { text-align: center; padding: 0 10px; }
.dz-fact svg { width: 74px; height: 74px; margin-bottom: 16px; color: var(--dz); }
.dz-fact h3 { font-size: 28px; margin-bottom: 8px; }
.dz-fact p { margin: 0; }
@media (max-width: 767px) { .dz-facts { grid-template-columns: 1fr; gap: 40px; } }

/* Partner rotation diagram (salsa & bachata). */
.dz-rotate { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.dz-rotate svg { width: 100%; max-width: 440px; margin: 0 auto; display: block; }
.dz-rotate h2 { font-size: clamp(38px, 2vw + 28px, 56px); line-height: 1.05; margin-bottom: 18px; }
.dz-rotate p { font-size: 17px; }
.rot-leads { transform-box: view-box; transform-origin: 200px 200px; animation: dz-rot 16s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes dz-rot {
  0%, 9% { transform: rotate(0deg); }
  12.5%, 21.5% { transform: rotate(45deg); }
  25%, 34% { transform: rotate(90deg); }
  37.5%, 46.5% { transform: rotate(135deg); }
  50%, 59% { transform: rotate(180deg); }
  62.5%, 71.5% { transform: rotate(225deg); }
  75%, 84% { transform: rotate(270deg); }
  87.5%, 96.5% { transform: rotate(315deg); }
  100% { transform: rotate(360deg); }
}
.rot-legend { display: flex; gap: 22px; justify-content: center; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.rot-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
@media (max-width: 991px) { .dz-rotate { grid-template-columns: 1fr; gap: 36px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .rot-leads { animation: none; } }

/* Two styles side by side with a photo each. */
.dz-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.dz-style { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; }
.dz-style img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.dz-style:hover img { transform: scale(1.04); }
.dz-style::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 13, 18, .92) 0%, rgba(20, 13, 18, .2) 50%, transparent 70%); }
.dz-style-body { position: relative; z-index: 1; padding: 34px; }
.dz-style h3 { color: #fff; font-size: clamp(44px, 2vw + 32px, 64px); line-height: 1; margin-bottom: 10px; }
.dz-style p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 26em; }
@media (max-width: 767px) { .dz-duo { grid-template-columns: 1fr; } .dz-style { min-height: 440px; } }

/* Numbered cards (Greek dances, styling elements, wedding steps). */
.dz-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 26px; counter-reset: dz; }
.dz-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: 0 14px 40px rgba(20, 13, 18, .07);
  overflow: hidden;
}
.dz-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--dz);
}
.dz-teal .dz-card::before {
  height: 16px;
  background: url("../img/dances/meander-teal.svg") repeat-x left center / auto 16px, #0b7d71;
}
.dz-card-num {
  display: block;
  font-family: var(--serif-font);
  font-weight: 700;
  font-size: 76px;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--dz);
  margin-bottom: 14px;
  font-variant-numeric: lining-nums;
}
.dz-card h3 { font-size: 30px; margin-bottom: 8px; }
.dz-card p { margin: 0; }
@media (max-width: 1199px) { .dz-cards { --cols: 2 !important; } }
@media (max-width: 575px) { .dz-cards { --cols: 1 !important; } }

/* Photo mosaic. */
.dz-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.dz-mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.dz-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.dz-mosaic figure:hover img { transform: scale(1.05); }
.dz-mosaic .t { grid-row: span 2; }
.dz-mosaic .w { grid-column: span 2; }
@media (max-width: 767px) {
  .dz-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
}

/* Levels as a staircase. */
.dz-levels { display: flex; align-items: flex-end; gap: 10px; list-style: none; padding: 0; margin: 0 0 50px; }
.dz-levels li {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 14px 6px;
  border-radius: 10px 10px 0 0;
  background: var(--dz);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}
@media (max-width: 767px) {
  .dz-levels { flex-direction: column; align-items: stretch; gap: 6px; }
  .dz-levels li { height: auto !important; border-radius: 10px; justify-content: flex-start; padding: 12px 16px; margin-left: var(--indent, 0); }
}

/* When the beginners groups meet. */
.dz-slots { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.dz-slot {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 26px;
  box-shadow: 0 10px 30px rgba(20, 13, 18, .07);
}
.dz-slot strong { font-family: var(--serif-font); font-size: 34px; line-height: 1; color: var(--dz); font-variant-numeric: lining-nums; }
.dz-slot span { display: block; line-height: 1.35; }
.dz-slot em { font-style: normal; font-weight: 600; color: var(--title-color); }
.dz-more { text-align: center; margin-top: 26px; }
.dz-more a { color: var(--dz); font-weight: 600; border-bottom: 2px solid currentColor; }

/* Closing call to action. */
.dz-cta { position: relative; overflow: hidden; background: var(--title-color); color: #fff; text-align: center; padding: 120px 0; }
.dz-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dz-glow) 0%, transparent 70%);
}
.dz-cta .container { position: relative; }
.dz-cta h2 { color: #fff; font-size: clamp(42px, 3vw + 26px, 72px); line-height: 1; margin-bottom: 16px; }
.dz-cta p { color: rgba(255, 255, 255, .85); font-size: 18px; margin-bottom: 34px; }
.dz-cta .dz-actions { justify-content: center; }

/* Gentle reveal as sections scroll in (skipped when motion is reduced). */
@media (prefers-reduced-motion: no-preference) {
  .dz-js .dz-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .dz-js .dz-reveal.in { opacity: 1; transform: none; }
}
