/* 
 * Cartoluxe Meditation Studio Styles
 * Serene & Minimalist Theme
 * Colors:
 * - Background: #F0F4F8
 * - Accent: #5C6BC0
 * - Secondary Accent: #A5B4FC
 * - Text: #333333
 * - Buttons: #5C6BC0
 */

/* Global Styles */
:root {
    --bg-color: #F0F4F8;
    --accent-color: #5C6BC0;
    --secondary-accent: #A5B4FC;
    --text-color: #333333;
    --button-color: #5C6BC0;
    --light-gray: #E5E9F0;
    --medium-gray: #B0B8C4;
    --dark-gray: #4A5568;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1em;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.primary-btn:hover {
    background-color: var(--secondary-accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.secondary-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(240, 244, 248, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
}

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

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

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

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1010;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 550px;
    text-align: left;
    padding: 40px;
    background-color: rgba(240, 244, 248, 0.9);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 2.8rem;
    color: var(--accent-color);
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

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

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

/* Approach Section */
.approach-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.approach-text {
    flex: 1;
}

.approach-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.approach-text ul {
    margin-top: 30px;
}

.approach-text li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.approach-text .icon {
    width: 50px;
    height: 50px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

.approach-text h3 {
    margin-bottom: 10px;
}

/* Sessions Section */
.sessions-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.session-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.session-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.session-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.session-card:hover .session-icon {
    background-color: var(--accent-color);
}

.session-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-color);
    transition: var(--transition);
}

.session-card:hover .session-icon svg {
    fill: var(--white);
}

.session-card h3 {
    margin-bottom: 15px;
}

/* Teachers Section */
.teachers-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.teacher-card {
    text-align: center;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.teacher-image {
    height: 300px;
    overflow: hidden;
}

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

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

.teacher-card h3 {
    margin: 20px 0 5px;
}

.teacher-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.teacher-card p:not(.teacher-title) {
    padding: 0 20px 20px;
}

/* Studio Space Section */
.studio-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.studio-text {
    flex: 1;
}

.studio-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.studio-gallery img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.studio-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature .icon {
    width: 24px;
    height: 24px;
    fill: var(--accent-color);
}

/* Benefits Section */
.benefits-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--accent-color);
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--accent-color);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon svg {
    fill: var(--white);
}

.benefit-card h3 {
    margin-bottom: 15px;
}

/* Schedule Section */
.schedule-content {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--light-gray);
}

.tab-btn {
    padding: 15px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-color);
    flex-grow: 1;
    text-align: center;
}

.tab-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
}

.tab-btn:hover:not(.active) {
    background-color: var(--light-gray);
}

.schedule-panels {
    padding: 30px;
}

.schedule-panel {
    display: none;
}

.schedule-panel.active {
    display: block;
}

.schedule-class {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.schedule-class:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.class-time {
    min-width: 150px;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.class-details h3 {
    margin-bottom: 5px;
}

.teacher {
    margin-top: 10px;
    font-style: italic;
    color: var(--dark-gray);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    fill: var(--accent-color);
    flex-shrink: 0;
}

.info-item h3 {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.2);
}

/* Footer Styles */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--light-gray);
}

.footer h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.3rem;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-legal a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-legal a.active {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

#back-to-top svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* Success Page */
.success-message {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.success-content h1 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.success-actions {
    margin-top: 30px;
}

/* Legal Pages */
.legal-content {
    padding: 120px 0 80px;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-color);
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.last-updated {
    text-align: right;
    margin-bottom: 30px;
    color: var(--dark-gray);
    font-style: italic;
}

.legal-body h2 {
    margin-top: 40px;
    color: var(--accent-color);
}

.legal-body h3 {
    margin-top: 30px;
    color: var(--dark-gray);
}

.legal-body ul, .legal-body ol {
    margin: 20px 0;
    padding-left: 20px;
}

.legal-body ul li, .legal-body ol li {
    margin-bottom: 10px;
    position: relative;
}

.legal-body ul li::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 1024px) {
    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .approach-content,
    .studio-content,
    .contact-content {
        flex-direction: column;
    }

    .studio-gallery {
        margin-top: 30px;
    }

    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 50px 0;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav-list a {
        display: block;
        text-align: center;
        padding: 15px;
        font-size: 1.2rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }

    .hero-content {
        width: 100%;
        margin: 0 auto;
    }
    
    .schedule-class {
        flex-direction: column;
        gap: 10px;
    }
    
    .class-time {
        min-width: auto;
    }
    
    .tab-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .schedule-panels {
        padding: 20px;
    }
    
    .legal-body {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .studio-gallery {
        grid-template-columns: 1fr;
    }
    
    .studio-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    #back-to-top svg {
        width: 25px;
        height: 25px;
    }
    
    .success-content {
        padding: 30px 20px;
    }
}