/* CSS Variables */
:root {
    --bg-color: #F5F5F5;
    --accent-color: #8B5CF6;
    --secondary-accent: #34D399;
    --text-color: #1F2937;
    --button-color: #8B5CF6;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --medium-gray: #E5E7EB;
    --dark-gray: #374151;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;
    
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --mobile-section-padding: 60px 0;
    
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

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

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 600px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

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

.about-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature:hover .feature-icon {
    background: var(--secondary-accent);
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.about-img {
    width: 100%;
    height: 760px;
    object-fit: cover;
}

/* Classes Section */
.classes {
    padding: var(--section-padding);
    background: var(--bg-color);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.class-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-10px);
}

.class-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.class-content {
    padding: 2rem;
}

.class-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.class-content p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.class-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Instructors Section */
.instructors {
    padding: var(--section-padding);
    background: var(--white);
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.instructor-card {
    text-align: center;
    transition: var(--transition);
}

.instructor-card:hover {
    transform: translateY(-5px);
}

.instructor-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.instructor-info h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.instructor-specialty {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem !important;
}

.instructor-info p:not(.instructor-specialty) {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Studio Tour Section */
.studio-tour {
    padding: var(--section-padding);
    background: var(--bg-color);
}

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

.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1rem;
    height: 620px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    filter: brightness(1.1);
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: var(--bg-color);
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

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

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background: var(--bg-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
    margin: 0 0.2rem;
}

.period {
    font-size: 1rem;
    color: var(--dark-gray);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    padding: 0.8rem 0;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--medium-gray);
}

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

.pricing-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.pricing-button:hover {
    background: var(--secondary-accent);
    transform: translateY(-2px);
}

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

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--dark-gray);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

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

.submit-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--secondary-accent);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(10);
}

.footer-logo p {
    color: var(--medium-gray);
    font-style: italic;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: var(--medium-gray);
    transition: var(--transition);
}

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

.footer-contact p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--medium-gray);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: var(--secondary-accent);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--mobile-section-padding);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mosaic-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 150px);
        height: 930px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .gallery-item.tall {
        grid-row: span 1;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-features {
        gap: 1.5rem;
    }
    
    .classes-grid,
    .instructors-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .mosaic-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
        height: 1230px;
    }
    
    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.legal-page {
    padding: 120px 0 60px;
    background: var(--bg-color);
    min-height: calc(100vh - 140px);
}

.legal-content {
    background: var(--white);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 1.5rem 0 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.legal-content a {
    color: var(--accent-color);
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--secondary-accent);
}

.cookie-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.cookie-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--text-color);
}

.cookie-table td {
    color: var(--dark-gray);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
    }
}

.legal-page {
    padding: 120px 0 60px;
    background: var(--bg-color);
    min-height: calc(100vh - 140px);
}

.legal-content {
    background: var(--white);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 1.5rem 0 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.legal-content a {
    color: var(--accent-color);
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--secondary-accent);
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

.legal-page {
    padding: 120px 0 60px;
    background: var(--bg-color);
    min-height: calc(100vh - 140px);
}

.legal-content {
    background: var(--white);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 1.5rem 0 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.legal-content a {
    color: var(--accent-color);
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--secondary-accent);
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

.back-link a {
    color: #FFF;
}

.back-link a:hover {
    color: var(--secondary-accent);
}