/* ==========================================
   DANCE FLOOR STUDIO - Template 3
   Elegant Classic Theme
   ========================================== */

/* CSS Variables */
:root {
    --primary: #8B7355;
    --primary-light: #A89078;
    --primary-dark: #6B5344;
    --secondary: #2C3E50;
    --accent: #C9A962;
    --gold: #D4AF37;

    --cream: #FAF8F5;
    --cream-dark: #F5F2ED;
    --charcoal: #2D2D2D;
    --black: #1A1A1A;

    --text-dark: #2D2D2D;
    --text-light: #FFFFFF;
    --text-muted: #7A7A7A;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);

    --border-radius: 4px;
    --border-radius-lg: 8px;

    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);

    --container-width: 1200px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
}

::selection {
    background: var(--primary);
    color: var(--text-light);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 120px 0;
}

.bg-cream {
    background: var(--cream-dark);
}

.text-center {
    text-align: center;
}

.mt-60 {
    margin-top: 60px;
}

/* Typography */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.text-divider {
    width: 60px;
    height: 1px;
    background: var(--primary);
    margin: 25px 0;
}

.text-divider.centered {
    margin: 25px auto;
}

.section-header {
    margin-bottom: 70px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--charcoal);
    color: var(--text-light);
}

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

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}

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

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--primary);
}

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

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

.btn-white:hover {
    background: var(--cream);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 248, 245, 0.98);
    padding: 18px 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    text-align: center;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 6px;
    color: var(--primary);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 45px;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--charcoal);
}

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

.nav-cta {
    padding: 12px 28px;
    font-size: 0.75rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 1px;
    background: var(--charcoal);
    transition: all var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C3E50 0%, #1A1A1A 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 30px;
}

.title-line {
    display: block;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-divider .line {
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.hero-divider .diamond {
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: 45px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.hero-scroll span {
    font-size: 0.6875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; height: 60px; }
    50% { opacity: 1; height: 80px; }
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ballet { background: linear-gradient(135deg, #8B7355 0%, #A89078 100%); }
.contemporary { background: linear-gradient(135deg, #2C3E50 0%, #4A6572 100%); }
.latin { background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%); }
.hiphop { background: linear-gradient(135deg, #34495E 0%, #5D6D7E 100%); }
.instructor-1 { background: linear-gradient(135deg, #8B7355 0%, #6B5344 100%); }
.instructor-2 { background: linear-gradient(135deg, #2C3E50 0%, #1A252F 100%); }
.instructor-3 { background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%); }

/* Introduction Section */
.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.intro-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
}

.image-frame .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
}

.image-accent {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
    z-index: -1;
}

.intro-text p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.0625rem;
}

.intro-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.program-card {
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition);
}

.program-card:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-10px);
}

.program-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.program-card .image-placeholder {
    transition: transform var(--transition-slow);
}

.program-card:hover .image-placeholder {
    transform: scale(1.1);
}

.program-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.program-card .card-content {
    padding: 30px;
}

.card-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.program-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.program-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--transition);
}

.card-link:hover {
    gap: 15px;
}

/* Faculty Section */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.faculty-card {
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition);
}

.faculty-card:hover {
    box-shadow: var(--shadow-medium);
}

.faculty-image {
    height: 350px;
    overflow: hidden;
}

.faculty-image .image-placeholder {
    transition: transform var(--transition-slow);
}

.faculty-card:hover .image-placeholder {
    transform: scale(1.05);
}

.faculty-info {
    padding: 35px;
    text-align: center;
}

.faculty-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.faculty-info .title {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.faculty-info .specialty {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.faculty-info p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: white;
    padding: 45px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-medium);
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 30px;
}

.testimonial-text {
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: var(--primary);
    border-radius: 50%;
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    position: relative;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C3E50 0%, #1A1A1A 100%);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 25px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 25px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--charcoal);
    padding-top: 80px;
    color: var(--text-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-main {
    color: var(--text-light);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-contact i {
    color: var(--accent);
    width: 18px;
}

.footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition);
}

.footer .social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--charcoal);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--charcoal);
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

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

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

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

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

    .intro-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
