/* ============================================================
   Dance in Rhythm – Shared Stylesheet
   Aesthetic: Refined luxury ballroom — deep charcoal, warm gold,
   cream, with editorial Cormorant typography
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --dark: #1A1A1A;
  --dark-studio: #111111;
  --cream: #F7F3EE;
  --warm-white: #FDFAF6;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --border: rgba(201,168,76,0.25);
}

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

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

img { max-width: 100%; }

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

.dir-nav .nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  padding: 0.4rem 0.5rem;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}

.dir-nav .nav-social:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

/* ── Navbar ───────────────────────────────── */
.dir-nav {
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  transition: background 0.3s;
}

.dir-nav .navbar-brand img { transition: opacity 0.2s; }
.dir-nav .navbar-brand img:hover { opacity: 0.8; }

.dir-nav .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-family: 'Jost', sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}

.dir-nav .nav-link:hover,
.dir-nav .nav-link.active { color: var(--gold) !important; }

.dir-nav .navbar-toggler {
  border-color: var(--border);
}
.dir-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201%2C168%2C76%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Buttons ──────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: #111 !important;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.65rem 1.8rem;
  border-radius: 0;
  transition: background 0.25s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-dark-outline {
  border: 1px solid var(--dark);
  color: var(--dark);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.65rem 1.8rem;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-dark-outline:hover {
  background: var(--dark);
  color: #fff;
}

.btn-outline-light {
  border-radius: 0 !important;
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.65rem 1.8rem !important;
}

/* ── Typography helpers ───────────────────── */
.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.section-title.text-white { color: #fff; }

.body-text {
  font-family: 'Jost', sans-serif;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ── Hero ─────────────────────────────────── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.15) 0%,
    rgba(10,10,10,0.10) 50%,
    rgba(10,10,10,0.35) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.4rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Page Hero (interior pages) ───────────── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.38) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 3.5rem;
}

.page-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300;
  color: #fff;
  margin: 0;
}

.page-hero-content .page-hero-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.7rem;
}

/* ── Style Cards (home) ───────────────────── */
.bg-dark-studio { background: var(--dark-studio); }

.style-card {
  border: 1px solid rgba(201,168,76,0.2);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: border-color 0.25s, transform 0.25s;
}

.style-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.style-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.style-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.style-card p {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 0;
}

/* ── Testimonials ─────────────────────────── */
.bg-cream { background: var(--cream); }

.testimonial-card {
  background: #fff;
  border-top: 3px solid var(--gold);
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.testimonial-name {
  font-family: 'Jost', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* ── CTA Banner ───────────────────────────── */
.cta-banner {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.30);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-sub {
  font-family: 'Jost', sans-serif;
  font-size: 1.08rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
}

/* ── Footer ───────────────────────────────── */
.dir-footer {
  background: var(--dark-studio);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-text {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
}

.footer-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }

.footer-heading {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.footer-logo-img:hover { opacity: 1; }

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 2.5rem 0 1.5rem;
}

.footer-copy {
  font-family: 'Jost', sans-serif;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ── About page ───────────────────────────── */
.philosophy-block {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}

.philosophy-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.instructor-card {
  border: 1px solid #e8e0d4;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.25s;
  height: 100%;
}

.instructor-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.instructor-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.35s ease;
}

.instructor-card:hover img {
  transform: scale(1.03);
}

.instructor-body {
  padding: 1.5rem;
}

.instructor-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.instructor-body p {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
  margin: 0;
}

/* ── Classes page ─────────────────────────── */
.class-type-card {
  background: #fff;
  border: 1px solid #e8e0d4;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.class-type-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 28px rgba(0,0,0,0.07);
}

.class-type-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.class-type-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.class-type-card ul li {
  font-family: 'Jost', sans-serif;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text-light);
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0ebe3;
}
.class-type-card ul li:last-child { border-bottom: none; }

.class-type-icon {
  width: 42px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.2rem;
}

/* ── Wedding page ─────────────────────────── */
.wedding-gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item:hover .wedding-gallery-img {
  transform: scale(1.05);
}

.faq-item {
  border-bottom: 1px solid #e8e0d4;
  padding: 1.3rem 0;
}

.faq-question {
  font-family: 'Jost', sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

.faq-question .faq-icon {
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-answer {
  font-family: 'Jost', sans-serif;
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 0.8rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── Community page ───────────────────────── */
.event-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid #e8e0d4;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

@media (min-width: 768px) {
  .event-card { grid-template-columns: 1fr 1fr; }
  .event-card.reverse { direction: rtl; }
  .event-card.reverse > * { direction: ltr; }
}

.event-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.event-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.event-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.event-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* ── Calendar page ────────────────────────── */
.calendar-card {
  border: 1px solid #e8e0d4;
  overflow: hidden;
  background: #fff;
}

.calendar-month-label {
  background: var(--dark-studio);
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.calendar-img { display: block; }

.dance-pill {
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.75);
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.6rem 0.8rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.dance-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

/* ── Contact page ─────────────────────────── */
.contact-info-label {
  color: rgba(255,255,255,0.55);
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.contact-info-block {
  background: var(--dark-studio);
  padding: 3rem 2.5rem;
  color: #fff;
  height: 100%;
}

.contact-info-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.contact-info-block p,
.contact-info-block a {
  font-family: 'Jost', sans-serif;
  font-size: 1.04rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.contact-info-block a:hover { color: var(--gold); }

.contact-form-block {
  background: #fff;
  padding: 3rem 2.5rem;
  border: 1px solid #e8e0d4;
}

.contact-form-block .form-label {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.contact-form-block .form-control {
  border: 1px solid #d8d0c4;
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-size: 1.04rem;
  font-weight: 300;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s;
}

.contact-form-block .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* ── Hours table ──────────────────────────── */
.hours-table { margin-top: 1.2rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
}
.hours-row span:first-child { color: rgba(255,255,255,0.85); }

/* ── Utility ──────────────────────────────── */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

@media (max-width: 991px) {
  .dir-nav .navbar-collapse {
    background: rgba(17,17,17,0.97);
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .dir-nav .nav-link { padding: 0.6rem 0 !important; }
  .dir-nav .btn-gold { margin-top: 0.5rem; }
}

@media (max-width: 576px) {
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero-title { font-size: 3.2rem; }
  .cta-banner { padding: 4.5rem 0; }
  .instructor-card img { height: 300px; }
  .event-card img { height: 220px; }
  .contact-info-block, .contact-form-block { padding: 2rem 1.5rem; }
}
