/* Chamo Dance & Fitness — site styles */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pink: #E6006F;
  --pink-dark: #c4005e;
  --black: #000;
  --white: #fff;
  --text: #7A7A7A;
  --grey: #555;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Heebo", system-ui, sans-serif;
  --container: 1140px;
  --header-h: 80px;
  --radius: 16px;      /* cards, photos, boxes */
  --radius-sm: 8px;    /* buttons, form fields, captions */
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}
h2 { font-size: clamp(28px, 4vw, 42px); }

p { margin: 0 0 1em; }
a { color: inherit; }

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

.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-head { margin-bottom: 40px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 30px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn svg { width: 26px; height: 26px; }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--black); color: var(--white); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--white); color: var(--black); }

/* Tick lists */
.tick-list { margin: 0; padding: 0; list-style: none; }
.tick-list li { display: flex; align-items: center; gap: 8px; }
.tick-list svg { flex: none; width: 14px; height: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding-inline: clamp(16px, 4vw, 45px);
}
.logo img { width: auto; height: 56px; }
.header-actions { display: flex; gap: 16px; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(600px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: #04121a;
  color: var(--white);
  text-align: center;
}
.hero-video, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video { object-fit: cover; }
.hero-overlay { background: rgba(0, 0, 0, .35); }
.hero-content { position: relative; padding: 60px 20px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.1;
}
.hero-intro {
  max-width: 40em;
  text-wrap: balance;
  margin: 18px auto 0;
  color: var(--white);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
}
.tick-list-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 18px;
  text-transform: uppercase;
}
.hero-cta { display: none; margin-top: 28px; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding-block: 90px;
}
.about-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.about-card {
  position: relative;
  margin: 30px 0 0 -40px;
  padding: 50px 45px 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-card h2 { margin-bottom: 24px; }

/* Showcase (hover gallery) */
.showcase {
  position: relative;
  height: clamp(420px, 56vw, 620px);
  overflow: hidden;
  background: #ebe8ee;
}
.showcase-images picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.showcase-images picture.is-active { opacity: 1; }
.showcase-images img { width: 100%; height: 100%; object-fit: cover; }
.showcase::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}
.showcase-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
}
.showcase-tabs button {
  padding: 40px 10px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: stretch;
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition: background-color .3s;
}
.showcase-tabs button:last-child { border-right: 0; }
.showcase-tabs button[aria-selected="true"] { background: rgba(230, 0, 111, .25); }

/* Classes */
.classes { padding-block: 90px 60px; }
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
}
.class-card { position: relative; padding-bottom: 32px; }
.class-card-wide { grid-column: span 2; }
.class-card img {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  border-radius: var(--radius);
}
.class-card-wide picture { position: relative; height: 100%; }
.class-card-wide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.class-caption {
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s ease;
}
.class-caption h3 { font-size: 17px; font-weight: 500; text-transform: none; }
.class-caption p { margin: 8px 0 0; font-size: 14px; }
/* On mouse devices the description slides open on hover; touch devices always show it */
@media (hover: hover) {
  .class-caption p { max-height: 0; margin-top: 0; overflow: hidden; transition: max-height .35s ease, margin .35s ease; }
  .class-card:hover .class-caption p { max-height: 120px; margin-top: 8px; }
}

/* Testimonials */
.testimonials {
  padding-bottom: 70px;
  background: linear-gradient(var(--white) 0, var(--white) 60px, var(--black) 60px);
  color: var(--white);
  text-align: center;
}
.stage-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.quotes { position: relative; display: grid; padding-top: 60px; }
.quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s, visibility .6s;
}
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote {
  margin: 0 auto 50px;
  max-width: 760px;
  color: #a9a9a9;
  font-size: clamp(17px, 2vw, 21px);
  font-style: italic;
}
.quote figcaption {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
}
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.quote-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
}
.quote-dots button[aria-current="true"] { background: var(--pink); }

/* Focus & styles */
.focus {
  position: relative;
  isolation: isolate;
  padding-block: 130px;
  background: linear-gradient(var(--black) 50%, var(--white) 50%);
  color: var(--white);
  text-align: center;
}
.focus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(70, 70, 70, .92), rgba(70, 70, 70, .92)),
    url("../img/bg-focus.jpg") center / cover;
  background-image: linear-gradient(rgba(70, 70, 70, .92), rgba(70, 70, 70, .92)), image-set(url("../img/bg-focus.webp") type("image/webp"), url("../img/bg-focus.jpg") type("image/jpeg"));
  background-color: var(--grey);
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
}
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.focus h2 { margin-bottom: 20px; color: var(--white); }
.focus .tick-list { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }

/* Pricing */
.pricing { padding-block: 80px 100px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 24px;
}
.price-card {
  padding: 26px 16px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}
.price-card h3 { font-size: clamp(22px, 2.4vw, 28px); }
.price { display: flex; align-items: center; gap: 16px; margin: 20px 0 26px; }
.amount {
  color: var(--pink);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 54px);
  line-height: 1;
}
.per { display: flex; flex-direction: column; font-size: 14px; }
.per-label { color: var(--black); font-family: var(--font-head); font-weight: 500; font-size: 17px; }
.price-card .tick-list li {
  padding-block: 11px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
}
.price-card .tick-list li:last-child { border-bottom: 0; }
.price-card .tick-list svg { color: var(--pink); }

.price-card-featured { background: var(--pink); color: var(--white); }
.price-card-featured h3 { color: var(--white); }
.price-card-featured .amount { color: var(--black); }
.price-card-featured .per-label { color: var(--black); }
.price-card-featured .tick-list li { border-color: rgba(255, 255, 255, .6); }
.price-card-featured .tick-list svg { color: var(--white); }

/* Contact */
.contact {
  padding-block: 70px 55px;
  background:
    linear-gradient(rgba(0, 10, 20, .65), rgba(0, 10, 20, .65)),
    url("../img/bg-contact.jpg") center / cover;
  background-image: linear-gradient(rgba(0, 10, 20, .65), rgba(0, 10, 20, .65)), image-set(url("../img/bg-contact.webp") type("image/webp"), url("../img/bg-contact.jpg") type("image/jpeg"));
  background-color: #05141c;
  color: var(--white);
}
.contact h2 { margin-bottom: 14px; color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
}
.contact-boxes { display: grid; gap: 20px; }
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--pink);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .25s;
}
.contact-box:hover { background: var(--pink-dark); }
.contact-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-title svg { width: 38px; height: 38px; }

.contact-form-wrap { padding: 36px; background: var(--pink); border-radius: var(--radius); }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}
.field-full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: #333;
  font: inherit;
  font-size: 15px;
}
.contact-form textarea { resize: vertical; min-height: 75px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--black); }
.contact-form .invalid { border-color: #ffe14d; }
.contact-form button { width: 100%; }
.contact-form button[disabled] { opacity: .7; cursor: wait; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 400; }

.socials { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.socials a {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--pink);
  transition: background-color .25s, color .25s;
}
.socials a:hover { background: var(--black); color: var(--white); }
.socials svg { width: 16px; height: 16px; }

/* Footer */
.site-footer {
  border-top: 4px solid var(--pink);
  background: var(--black);
  color: #b3b3b3;
  font-size: 15px;
}
.site-footer a { text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--pink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 60px 50px;
}
.footer-logo img { width: auto; height: 64px; }
.footer-brand p { margin: 18px 0 0; max-width: 28ch; }
.socials-footer { justify-content: flex-start; margin-top: 22px; }
.socials-footer a { background: #222; color: var(--white); }
.socials-footer a:hover { background: var(--pink); color: var(--white); }
.footer-heading {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 12px;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 3px;
  border-radius: 2px;
  background: var(--pink);
}
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--pink); }
.footer-bottom { border-top: 1px solid #222; font-size: 14px; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px;
}
.footer-bottom p { margin: 0; }
.footer-credit { color: #8a8a8a; }
.footer-credit a { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; color: #b3b3b3; vertical-align: middle; }
.footer-credit img { width: 22px; height: 22px; }
.footer-credit .brand-consulting { margin-left: -2px; color: #ff0000; }

/* Scroll reveal (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1024px) {
  .class-grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .class-card-wide { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-boxes { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .logo img { height: 44px; }
  .hide-sm { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 10px 14px; font-size: 14px; }
  .hero-cta { display: inline-flex; }
  .tick-list-inline { flex-direction: column; align-items: center; }

  .about { grid-template-columns: 1fr; padding-block: 50px; }
  .about-image img { aspect-ratio: 4 / 3; }
  .about-card { margin: -60px 16px 0; padding: 32px 24px 20px; }

  .showcase { height: auto; display: flex; flex-direction: column-reverse; }
  .showcase::after { display: none; }
  .showcase-images { position: relative; aspect-ratio: 4 / 5; }
  .showcase-tabs { display: flex; height: auto; overflow-x: auto; background: var(--white); }
  .showcase-tabs button { flex: none; padding: 16px 18px; border-right: 0; border-bottom: 3px solid transparent; font-size: 16px; color: var(--black); }
  .showcase-tabs button[aria-selected="true"] { background: none; border-bottom-color: var(--pink); color: var(--pink); }

  .classes { padding-block: 60px 40px; }
  .class-grid, .price-grid { grid-template-columns: 1fr; }
  .class-card-wide { grid-column: auto; }
  .class-card-wide picture { height: auto; }
  .class-card-wide img { position: static; aspect-ratio: 8 / 7; height: auto; }

  .focus { padding-block: 90px; }
  .focus::before { clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 calc(100% - 20px)); }
  .focus-grid { grid-template-columns: 1fr; gap: 50px; }

  .contact-boxes { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .contact-form { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 48px 40px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-credit span { display: block; }
  .footer-credit span + span { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
