/*
Theme Name: WKNDANCE
Author: WKNDANCE
Description: A navy-and-white, mobile-first dance studio theme built for WKNDANCE in Ottawa. Includes starter pages for classes, youth programming, pricing, instructors, policies, and Bookwhen integration.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: wkndance
*/

:root {
  --wknd-navy: #071a33;
  --wknd-navy-2: #0d2b50;
  --wknd-blue: #2f7df6;
  --wknd-sky: #dcecff;
  --wknd-white: #ffffff;
  --wknd-ink: #122033;
  --wknd-muted: #5c6b7d;
  --wknd-line: #d9e2ed;
  --wknd-soft: #f3f7fb;
  --wknd-radius: 22px;
  --wknd-shadow: 0 18px 50px rgba(7, 26, 51, 0.12);
  --wknd-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wknd-ink);
  background: var(--wknd-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--wknd-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wknd-navy); }
h1, h2, h3, h4 {
  margin: 0 0 0.7em;
  color: var(--wknd-navy);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.8rem, 7vw, 6.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2rem; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--wknd-white);
  background: var(--wknd-navy);
}

.site-shell { width: min(calc(100% - 40px), var(--wknd-content)); margin-inline: auto; }
.site-main { min-height: 62vh; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 26, 51, 0.96);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.custom-logo { display: block; width: auto; max-height: 48px; }
.site-title {
  color: var(--wknd-white);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--wknd-white); font-size: 0.87rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: #a9cfff; }
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  color: var(--wknd-white);
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
}

.wknd-btn,
.wp-element-button,
button,
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--wknd-blue);
  border-radius: 999px;
  padding: 11px 22px;
  color: var(--wknd-white);
  background: var(--wknd-blue);
  box-shadow: none;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.wknd-btn:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
  color: var(--wknd-white);
  background: #1f67d8;
  border-color: #1f67d8;
  transform: translateY(-2px);
}
.wknd-btn--light { color: var(--wknd-navy); background: var(--wknd-white); border-color: var(--wknd-white); }
.wknd-btn--light:hover { color: var(--wknd-navy); background: var(--wknd-sky); border-color: var(--wknd-sky); }
.wknd-btn--outline { color: var(--wknd-white); background: transparent; border-color: rgba(255,255,255,0.7); }
.wknd-btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--wknd-white); }

.wknd-section { padding: clamp(64px, 9vw, 118px) 0; }
.wknd-section--soft { background: var(--wknd-soft); }
.wknd-section--navy { color: var(--wknd-white); background: var(--wknd-navy); }
.wknd-section--navy h1,
.wknd-section--navy h2,
.wknd-section--navy h3 { color: var(--wknd-white); }
.wknd-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--wknd-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wknd-section--navy .wknd-kicker { color: #8bbcff; }
.wknd-lede { max-width: 760px; color: var(--wknd-muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.wknd-section--navy .wknd-lede { color: #c8d7e8; }
.wknd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.wknd-hero {
  position: relative;
  overflow: hidden;
  color: var(--wknd-white);
  background:
    radial-gradient(circle at 78% 20%, rgba(47,125,246,0.55), transparent 28%),
    linear-gradient(135deg, #051326 0%, #071a33 58%, #0d2b50 100%);
}
.wknd-hero::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  pointer-events: none;
}
.wknd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(820px, calc(100vh - 78px));
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(30px, 7vw, 100px);
  padding-block: 90px;
}
.wknd-hero h1 { max-width: 940px; color: var(--wknd-white); text-transform: uppercase; }
.wknd-hero p { max-width: 670px; color: #d4e1ef; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.wknd-hero__mark {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  color: var(--wknd-white);
  background: rgba(255,255,255,0.05);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  transform: rotate(-7deg);
}

.wknd-grid { display: grid; gap: 24px; }
.wknd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wknd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wknd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wknd-card {
  height: 100%;
  border: 1px solid var(--wknd-line);
  border-radius: var(--wknd-radius);
  padding: clamp(24px, 4vw, 38px);
  background: var(--wknd-white);
  box-shadow: 0 8px 30px rgba(7, 26, 51, 0.06);
}
.wknd-card p:last-child { margin-bottom: 0; }
.wknd-card--navy { color: #d4e1ef; background: var(--wknd-navy); border-color: var(--wknd-navy); }
.wknd-card--navy h3 { color: var(--wknd-white); }
.wknd-card--featured { border: 2px solid var(--wknd-blue); box-shadow: var(--wknd-shadow); }
.wknd-card__price { margin: 16px 0; color: var(--wknd-navy); font-size: 2.4rem; font-weight: 900; line-height: 1; }
.wknd-card__price small { display: block; margin-top: 10px; color: var(--wknd-muted); font-size: 0.85rem; font-weight: 600; }
.wknd-tag {
  display: inline-flex;
  border-radius: 999px;
  margin: 0 6px 8px 0;
  padding: 6px 11px;
  color: var(--wknd-navy);
  background: var(--wknd-sky);
  font-size: 0.76rem;
  font-weight: 800;
}

.wknd-schedule { display: grid; gap: 24px; }
.wknd-day { overflow: hidden; border: 1px solid var(--wknd-line); border-radius: var(--wknd-radius); background: var(--wknd-white); }
.wknd-day__title { margin: 0; padding: 18px 26px; color: var(--wknd-white); background: var(--wknd-navy); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; }
.wknd-class { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px; border-bottom: 1px solid var(--wknd-line); }
.wknd-class:last-child { border-bottom: 0; }
.wknd-class__time { color: var(--wknd-blue); font-weight: 900; }
.wknd-class h3 { margin-bottom: 8px; }
.wknd-class p { margin: 0; color: var(--wknd-muted); }

.wknd-notice { border-left: 5px solid var(--wknd-blue); border-radius: 0 16px 16px 0; padding: 20px 24px; background: var(--wknd-sky); }
.wknd-placeholder {
  border: 2px dashed #9eb4cc;
  border-radius: var(--wknd-radius);
  padding: clamp(34px, 8vw, 80px) 24px;
  text-align: center;
  background: var(--wknd-soft);
}
.wknd-placeholder code { color: var(--wknd-navy); }
.wknd-profile__photo {
  display: grid;
  aspect-ratio: 4/3;
  margin: -1px -1px 24px;
  place-items: center;
  border-radius: var(--wknd-radius) var(--wknd-radius) 0 0;
  color: #b9cbe0;
  background: linear-gradient(135deg, var(--wknd-navy), var(--wknd-navy-2));
  font-weight: 800;
}
.wknd-profile { overflow: hidden; padding: 0 28px 30px; }
.wknd-faq details { border-bottom: 1px solid var(--wknd-line); padding: 22px 0; }
.wknd-faq summary { cursor: pointer; color: var(--wknd-navy); font-weight: 800; }
.wknd-faq details p { padding-top: 15px; color: var(--wknd-muted); }
.wknd-table-wrap { overflow-x: auto; border: 1px solid var(--wknd-line); border-radius: var(--wknd-radius); }
.wknd-table { width: 100%; border-collapse: collapse; background: var(--wknd-white); }
.wknd-table th, .wknd-table td { padding: 17px 20px; border-bottom: 1px solid var(--wknd-line); text-align: left; }
.wknd-table th { color: var(--wknd-white); background: var(--wknd-navy); }
.wknd-table tr:last-child td { border-bottom: 0; }

.page-header { padding: clamp(70px, 10vw, 128px) 0 62px; color: var(--wknd-white); background: var(--wknd-navy); }
.page-header h1 { max-width: 900px; color: var(--wknd-white); font-size: clamp(2.7rem, 7vw, 5.8rem); text-transform: uppercase; }
.page-content > *:not(.wknd-section):not(.wknd-hero):not(.alignfull) { width: min(calc(100% - 40px), var(--wknd-content)); margin-inline: auto; }
.page-content > p:first-child { margin-top: 50px; }
.page-content > p:last-child { margin-bottom: 70px; }

.site-footer { color: #c8d7e8; background: #041123; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; padding: 70px 0 46px; }
.site-footer h2, .site-footer h3 { color: var(--wknd-white); }
.site-footer a { color: #dcecff; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; font-size: 0.82rem; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 20px;
    background: var(--wknd-navy);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .site-nav a { display: block; padding: 14px 0; }
  .wknd-hero__inner { min-height: auto; grid-template-columns: 1fr; }
  .wknd-hero__mark { width: min(55vw, 360px); }
  .wknd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wknd-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-shell { width: min(calc(100% - 28px), var(--wknd-content)); }
  .wknd-grid--2, .wknd-grid--4 { grid-template-columns: 1fr; }
  .wknd-class { grid-template-columns: 1fr; gap: 5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .wknd-actions .wknd-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
