/* ==========================================================================
   Dance by Nolan — shared stylesheet
   Used across index.html (home), wedding-services.html, and lessons.html.
   Palette: gold #c9a87c · Fonts: Cormorant Garamond + Montserrat
   ========================================================================== */

:root {
    --primary: #c9a87c;
    --primary-dark: #b08d5b;
    --text: #2c2c2c;
    --text-light: #666;
    --bg: #fffcf8;
    --bg-alt: #f9f5ef;
    --white: #ffffff;
    --accent: #e8ddd0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease-out;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: var(--text);
    position: relative;
    overflow: hidden;
}

/* Static image hero variant (used where there's no background video) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Allow multiple CTAs side by side in a hero */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Visually hidden, but available to screen readers and search engines */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Split-screen hero (home landing) ===== */
.split-hero {
    display: flex;
    min-height: 100vh;
}

.split-panel {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    padding: 6rem 2rem;
    overflow: hidden;
    transition: flex-grow 0.5s ease;
}

.split-panel + .split-panel {
    border-left: 1px solid var(--primary);
}

.split-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.split-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    transition: background 0.4s ease;
}

.split-panel:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.split-panel:hover .split-panel-bg {
    transform: scale(1.06);
}

.split-panel-content {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.split-panel .panel-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.split-panel h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.split-panel p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
    font-size: 1rem;
}

.split-panel .panel-cta {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.35rem;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.split-panel:hover .panel-cta {
    color: var(--primary);
    letter-spacing: 3px;
}

/* Desktop: hovering one side expands it */
@media (min-width: 769px) {
    .split-hero:hover .split-panel {
        flex-grow: 0.75;
    }
    .split-hero .split-panel:hover {
        flex-grow: 1.5;
    }
}

/* Mobile: stack the two panels */
@media (max-width: 768px) {
    .split-hero {
        flex-direction: column;
    }
    .split-panel {
        min-height: 50vh;
        padding: 5rem 1.5rem;
    }
    .split-panel + .split-panel {
        border-left: none;
        border-top: 1px solid var(--primary);
    }
}

/* Trust bar under the split hero */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: 1.75rem;
}

.trust-bar span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-bar span::before {
    content: '\2726';
    color: var(--primary);
    font-size: 0.8rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn {
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(201, 168, 124, 0.28);
}

.btn-primary-pulse {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0); }
    50% { box-shadow: 0 0 20px 3px rgba(201, 168, 124, 0.3); }
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

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

/* Light outline button for use on dark hero backgrounds */
.btn-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--white);
    color: var(--text);
}

/* Sections */
section {
    padding: 7rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-header h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 1.5rem auto;
}

/* Decorative Flourish */
.flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
}

.flourish::before,
.flourish::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary));
}

.flourish::after {
    background: linear-gradient(90deg, var(--primary), transparent);
}

.flourish-icon {
    color: var(--primary);
    font-size: 0.8rem;
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

/* Split-path cards (home page) */
.paths {
    background: var(--bg-alt);
}

.path-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.path-card {
    background: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.1);
}

.path-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.path-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.path-card:hover .path-card-image img {
    transform: scale(1.05);
}

.path-card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.path-card-body h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.path-card-body p {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.path-card-body .btn {
    align-self: flex-start;
}

/* How It Works */
.how-it-works {
    background: var(--bg-alt);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Genre cards (lessons page) */
.genres {
    background: var(--white);
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.genre-card {
    background: var(--bg);
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.genre-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.genre-card .genre-level {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-dark);
    background: rgba(201, 168, 124, 0.12);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.genre-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .genre-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial {
    padding: 2.5rem;
    background: var(--bg);
    border-left: 3px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.testimonial p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
}

.testimonial p::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-author {
    font-weight: 500;
    color: var(--text);
}

.testimonial-author span {
    color: var(--text-light);
    font-weight: 300;
}

/* Pricing */
.pricing {
    background: var(--bg-alt);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary);
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--accent);
    color: var(--text-light);
    font-size: 0.9rem;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-simple {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.pricing-highlight {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 2rem;
}

.pricing-starting {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.price-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: var(--primary);
}

.price-display span {
    font-size: 1.2rem;
    color: var(--text-light);
}

.pricing-or {
    color: var(--text-light);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.pricing-includes {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-includes h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-includes ul {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.pricing-includes li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.pricing-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.pricing-cta {
    padding: 2rem;
}

.pricing-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.lesson-formats {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.lesson-formats h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.format {
    text-align: center;
    padding: 1.5rem;
    border-radius: 4px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.format:hover {
    transform: translateY(-3px);
    background: rgba(201, 168, 124, 0.05);
}

.format-icon {
    margin-bottom: 0.75rem;
}

.format-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
}

.format h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.format p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 600px) {
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Inclusive Badge */
.inclusive-badge {
    background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
    border: 1px solid var(--accent);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
    flex-wrap: wrap;
}

.inclusive-badge svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.inclusive-badge span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text);
}

.inclusive-badge .badge-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    padding-left: 0.75rem;
    border-left: 1px solid var(--accent);
}

@media (max-width: 500px) {
    .inclusive-badge {
        flex-direction: column;
        gap: 0.5rem;
    }
    .inclusive-badge .badge-subtitle {
        border-left: none;
        padding-left: 0;
    }
}

/* Featured In */
.featured-in {
    background: var(--white);
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--accent);
}

.featured-in p {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0.6;
}

.featured-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-logo:hover {
    color: var(--primary);
}

.featured-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

/* Gallery */
.gallery {
    background: var(--bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--accent);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay p {
    font-size: 0.85rem;
    margin: 0;
}

.gallery-item-overlay span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 2/1;
    }
}

/* FAQ */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--accent);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.fade-in-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Contact */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details a {
    display: block;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--bg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--accent);
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-result {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid var(--accent);
}

.form-result.sending {
    color: var(--text-light);
    background: var(--bg-alt);
}

.form-result.success {
    color: #2e5a34;
    background: #eef6ef;
    border-color: #cfe3d0;
}

.form-result.error {
    color: #8a3b2e;
    background: #fbeeea;
    border-color: #f0d2c9;
}

.form-result.error a {
    color: inherit;
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

footer .logo {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

footer .footer-links {
    margin: 1.25rem 0 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--primary);
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

footer .social-links {
    margin: 1.5rem 0;
}

footer .social-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer .social-links a:hover {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .path-cards {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

/* ===== Premium polish: page-load fade ===== */
body {
    animation: page-fade-in 0.6s ease both;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
    .fade-in,
    .fade-in-stagger > * { transition: none; }
}

/* ===== Gallery lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(20, 18, 16, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-caption {
    position: absolute;
    bottom: 1.75rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    padding: 0 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.75rem;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
    color: var(--primary);
}

/* ===== Dancing with the Stars Austin feature (home) ===== */
.dwts {
    background: var(--bg-alt);
}

.dwts-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.dwts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.dwts-media {
    overflow: hidden;
    min-height: 320px;
}

.dwts-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.dwts-card:hover .dwts-media img {
    transform: scale(1.05);
}

.dwts-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dwts-body h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.dwts-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.dwts-link {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.35rem;
    transition: letter-spacing 0.3s ease;
}

.dwts-card:hover .dwts-link {
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    .dwts-card {
        grid-template-columns: 1fr;
    }
    .dwts-media {
        min-height: 240px;
    }
    .dwts-body {
        padding: 2rem;
    }
}

/* ===== Video showcase (lessons) — posh device-frame showreel ===== */
.video-showcase {
    background: var(--bg-alt);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 3.5rem;
    justify-content: center;
}

.video-item {
    margin: 0;
    text-align: center;
}

/* Gold-edged charcoal device frame */
.video-frame {
    width: 330px;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
    background: linear-gradient(160deg, #2c2c2c 0%, #1a1816 100%);
    border: 1px solid var(--primary);
    border-radius: 32px;
    box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(201, 168, 124, 0.25);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.video-item:hover .video-frame {
    transform: translateY(-6px);
    box-shadow: 0 42px 72px -18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(201, 168, 124, 0.4);
}

.video-frame video {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    background: #000;
    display: block;
    object-fit: cover;
}

.video-item figcaption {
    margin: 1.75rem auto 0;
    max-width: 330px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text);
    line-height: 1.35;
}

.video-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .video-frame {
        width: 300px;
    }
}

/* ===== Keyboard focus states (accessibility polish) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.split-panel:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Don't show the ring on mouse click, only keyboard (browsers handle :focus-visible) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
