/* Swing Dance Club of Hawaii — "Aloha Classic" mockup styles */

:root {
  --ocean: #0a5a74;
  --ocean-deep: #073d4f;
  --ocean-light: #0f7a9c;
  --ink: #1b2430;
  --sand: #f6efe2;
  --sand-line: #e3d6ba;
  --white: #ffffff;
  --pink: #b82f55;
  --pink-soft: #f6dde4;
  --bg-dark: #0b0b0b;
  --text-light: #ededed;
  --muted-light: #b9b9b9;
  --sky: #7dd3fc;
  --pink-bright: #ff9eb9;
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgba(10, 40, 55, 0.35);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--bg-dark);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sky);
  margin: 0 0 0.5em;
}

/* Headings default to a light blue for the dark page background; cards that
   keep the sand/white surface restore the dark ocean heading color. */
.callout h3,
.price-card h3 {
  color: var(--ocean-deep);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--sky);
}

/* Links inside light (sand/white) surfaces need the darker ocean blue for AA contrast. */
.next-dance a,
.callout a,
.price-card a,
.wcs-quote a,
.gallery__item a,
.event-list__item a {
  color: var(--ocean);
}

/* Cards keep a dark-on-light surface regardless of the page's dark background. */
.callout,
.price-card {
  color: var(--ink);
}

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

ul, ol {
  padding-left: 1.2em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ocean-deep);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

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

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

/* Header */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.site-nav {
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--sky);
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  object-fit: contain;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  padding: 0.25em 0.1em;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--pink-bright);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 0.98rem;
  transition: transform 0.08s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--ocean);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ocean-light);
}

/* Every section band is dark, and buttons never sit on the sand/white cards, so
   outline/text buttons use the lighter blue to stay AA against the dark bg. */
.btn--outline {
  background: transparent;
  color: var(--sky);
  border-color: var(--sky);
}

.btn--outline:hover {
  background: var(--ocean);
  color: var(--white);
}

.btn--text {
  background: none;
  border: none;
  color: var(--sky);
  text-decoration: underline;
  padding: 0.75em 0.2em;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--bg-dark) 70%);
  padding: 2.5rem 0 4.5rem;
  overflow: hidden;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink-bright);
  margin: 0 0 0.6em;
}

.hero__lede {
  font-size: 1.1rem;
  max-width: 48ch;
}

.next-dance {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-left: 6px solid var(--ocean);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  max-width: 28rem;
}

.next-dance__label {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ocean);
  margin: 0 0 0.3em;
}

.next-dance__when {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.3em;
  color: var(--ocean-deep);
}

.next-dance__note {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5664;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 440px;
  width: 100%;
  object-fit: cover;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section__note {
  color: var(--muted-light);
  font-size: 0.92rem;
}

/* How it works */
.how-grid {
  display: grid;
  gap: 2.2rem;
  margin-top: 1.5rem;
}

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

.timeline__step {
  position: relative;
  padding-left: 1.4rem;
  border-left: 3px solid var(--sand-line);
}

.timeline__step:nth-child(1) { border-left-color: var(--ocean); }
.timeline__step:nth-child(2) { border-left-color: var(--ocean-light); }
.timeline__step:nth-child(3) { border-left-color: var(--pink); }

.timeline__time {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pink-bright);
  font-size: 0.95rem;
  margin-bottom: 0.3em;
}

.how-grid__figure {
  margin: 0;
}

.how-grid__figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.callout {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.callout__cols {
  display: grid;
  gap: 0.5rem 2rem;
}

.callout ul {
  margin: 0;
}

.callout li {
  margin-bottom: 0.4em;
}

/* Upcoming dances */
.event-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.event-list__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1rem;
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}

.event-list__item--special {
  border-left: 5px solid var(--pink);
}

.event-list__date {
  font-weight: 700;
  color: var(--ocean-deep);
}

.event-list__weekday {
  color: var(--ocean);
  margin-right: 0.3em;
}

.event-list__time {
  font-weight: 600;
  color: var(--pink);
  font-size: 0.92rem;
}

.event-list__what {
  color: var(--ink);
}

.cal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

/* Prices */
.prices__row {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.price-cards {
  display: grid;
  gap: 1.1rem;
  margin: 1.4rem 0;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  position: relative;
}

.price-card--member {
  border-color: var(--ocean);
  box-shadow: var(--shadow);
}

.price-card__badge {
  position: absolute;
  top: -0.7em;
  right: 1.2em;
  background: var(--pink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin: 0.1em 0 0.2em;
}

.price-card__amount span {
  font-size: 1rem;
  font-weight: 500;
  color: #566070;
  font-family: var(--font-body);
}

.price-card__sub {
  font-size: 0.88rem;
  color: #566070;
  margin-top: -0.4em;
}

.price-card ul {
  margin: 0.6em 0 0;
  padding-left: 1.1em;
}

.price-card li {
  margin-bottom: 0.3em;
}

.prices__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* WCS */
.wcs-quote {
  margin: 1.4rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border-left: 6px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  max-width: 60ch;
}

.wcs-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ocean-deep);
  margin: 0;
}

/* Venue */
.venue__row {
  display: grid;
  gap: 2.2rem;
}

.venue__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--sky);
  margin-bottom: 0.1em;
}

.venue__map iframe {
  width: 100%;
  height: 320px;
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Photos */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery__item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery__link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.gallery__link:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: -3px;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery__item figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: #566070;
}

.gallery-sub {
  margin-top: 2.5rem;
}

.gallery-more {
  margin-top: 1.6rem;
}

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

@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Parade thumbnails run smaller than the main dance gallery, regardless of
   viewport width, so this unconditional rule follows the breakpoints above
   in source order to win the cascade at every width. */
.gallery--parade {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}

/* Lightbox */
.lightbox {
  border: none;
  padding: 0;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(11, 11, 11, 0.7);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  top: 0.6rem;
  right: 0.6rem;
}

.lightbox__nav--prev {
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  background: var(--ocean);
  border-color: var(--ocean);
}

/* Stay connected */
.connect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* Footer */
.site-footer {
  background: var(--ocean-deep);
  color: #dce9ee;
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: #cdeaf2;
}

.site-footer__row {
  display: grid;
  gap: 2rem;
}

.site-footer__about {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 26rem;
}

.brand__logo--footer {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__about p {
  margin: 0;
}

.site-footer__cols {
  display: grid;
  gap: 1.6rem;
}

.site-footer__heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fc3cf;
  margin-bottom: 0.5em;
}

.site-footer__cols p {
  margin: 0 0 0.3em;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .price-cards {
    grid-template-columns: 1fr 1fr;
  }

  .callout__cols {
    grid-template-columns: 1fr 1fr;
  }

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

  .event-list__item {
    grid-template-columns: 11rem 6rem 1fr;
    align-items: center;
  }
}

@media (min-width: 860px) {
  .site-header__row {
    flex-wrap: nowrap;
  }

  .site-nav {
    width: auto;
  }

  .hero__row {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .how-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .prices__row {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .venue__row {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__row {
    grid-template-columns: 1fr 2fr;
  }
}

@media (min-width: 1000px) {
  .site-nav ul {
    font-size: 0.98rem;
  }
}

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

/* Avoid a lone orphan tile: 4 photos read best as a 2x2 grid on wide screens */
@media (min-width: 1000px) {
  .gallery:not(.gallery--parade):has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================================
   Run 2 pages — new-here, dances, membership, learn, music
   ======================================================================== */

.prose {
  max-width: 68ch;
}

.prose h3 {
  margin-top: 1.4em;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  color: var(--ink);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ocean-deep);
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item p {
  margin: 0.6em 0 0;
}

/* Lightweight YouTube facades */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.video-card {
  margin: 0;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: var(--sand);
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  background: rgba(10, 20, 25, 0.3);
}

.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
  background: rgba(10, 20, 25, 0.5);
}

.video-facade__iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
}

.video-card figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted-light);
}

.video-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.2em;
}

/* Door payment cards */
.payment-grid {
  display: grid;
  gap: 1.1rem;
  margin: 1.4rem 0;
}

.payment-card {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  color: var(--ink);
}

.payment-card__qr {
  width: 130px;
  height: auto;
  border: 1px solid var(--sand-line);
  border-radius: 8px;
  margin: 0.6rem 0;
}

.inline-notes {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 62ch;
  font-size: 0.86rem;
  color: var(--muted-light);
}

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

  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ========================================================================
   Build system extensions — added for the src/ + build.js multi-page site
   (mobile nav toggle for the full 9-item nav, aria-current styling, the
   footer's linked-list column, and placeholder page headings).
   ======================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: var(--text-light);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  margin-top: 4px;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
}

.site-nav.is-open ul {
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--pink-bright);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 0.3em;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: row;
  }
}

/* Playlist facades */
.video-card--playlist{max-width:720px}
.video-card--playlist .video-facade,.video-card--playlist .video-facade__iframe{width:100%;aspect-ratio:16/9}
.video-card--playlist .video-facade img{width:100%;height:100%;object-fit:cover}
