/* 
* Zenvistro Yoga Studio - Main Stylesheet
* Author: Claude
* Version: 1.0
*/

/* ==================
   Base Styles
==================== */
:root {
    /* Color Variables */
    --background: #FFF9F0;
    --accent: #A8DADC;
    --secondary: #FFB5A7;
    --text: #4A4A4A;
    --light-text: #FFF9F0;
    --dark-accent: #76C2C5;
    --light-accent: #E1F1F1;
    --light-secondary: #FFD6CF;
    --light-gray: #E5E5E5;
    --medium-gray: #AAAAAA;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Mulish', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 80px;
    --element-spacing: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1em;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1em;
}

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

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

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

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

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

/* ==================
   Utility Classes
==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.5;
}

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

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* ==================
   Header & Navigation
==================== */
header {
    background-color: rgba(255, 249, 240, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.primary-navigation {
    display: flex;
    list-style: none;
    margin: 0;
}

.primary-navigation li {
    margin-left: 30px;
}

.primary-navigation a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.primary-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.primary-navigation a:hover {
    color: var(--accent);
}

.primary-navigation a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    fill: var(--text);
}

.hamburger .line {
    fill: var(--text);
    transition: all 0.3s ease;
}

/* ==================
   Hero Section
==================== */
.hero {
    background-image: url('../images/img08.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* ==================
   Why Yoga Section
==================== */
.why-yoga {
    padding: var(--section-spacing) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.benefit-card .icon {
    fill: var(--accent);
    margin-bottom: 20px;
}

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

/* ==================
   Classes Section
==================== */
.classes {
    padding: var(--section-spacing) 0;
    background-color: var(--light-accent);
}

.classes-slider {
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.class-card {
    flex: 0 0 calc(33.333% - 20px);
    margin-right: 20px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

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

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

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

.class-card:hover .class-image img {
    transform: scale(1.1);
}

.class-content {
    padding: 20px;
}

.class-details {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background-color: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--dark-accent);
}

.prev-btn svg, .next-btn svg {
    fill: white;
}

.slider-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent);
}

/* ==================
   Instructors Section
==================== */
.instructors {
    padding: var(--section-spacing) 0;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

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

.instructor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--light-accent);
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* ==================
   Events Section
==================== */
.events {
    padding: var(--section-spacing) 0;
    background-color: var(--light-secondary);
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.event-date {
    background-color: var(--accent);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    padding: 20px;
    flex-grow: 1;
}

.event-time {
    color: var(--medium-gray);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ==================
   Testimonials Section
==================== */
.testimonials {
    padding: var(--section-spacing) 0;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

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

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.quote-icon {
    fill: var(--light-accent);
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    margin-top: 20px;
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-testimonial, .next-testimonial {
    background-color: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.prev-testimonial:hover, .next-testimonial:hover {
    background-color: var(--dark-accent);
}

.prev-testimonial svg, .next-testimonial svg {
    fill: white;
}

.carousel-dots {
    display: flex;
    margin: 0 20px;
}

/* ==================
   Schedule Section
==================== */
.schedule {
    padding: var(--section-spacing) 0;
    background-color: var(--light-accent);
}

.schedule-tabs {
    margin-top: 40px;
}

.tab-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px 10px;
}

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

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

.day-schedule {
    display: none;
}

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

.class-slot {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 0;
}

.class-slot:last-child {
    border-bottom: none;
}

.time {
    min-width: 150px;
    font-weight: 600;
    color: var(--accent);
}

.class-info h4 {
    margin-bottom: 5px;
}

.class-info p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==================
   Wisdom Quote Section
==================== */
.wisdom-quote {
    padding: var(--section-spacing) 0;
    background-image: url('../images/img09.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
    position: relative;
}

.wisdom-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.quote-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.large-quote-icon {
    fill: var(--secondary);
    margin-bottom: 20px;
}

blockquote {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 20px;
}

blockquote cite {
    font-size: 1.2rem;
    font-style: normal;
    color: var(--secondary);
}

/* ==================
   Contact Section
==================== */
.contact {
    padding: var(--section-spacing) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    fill: var(--accent);
    margin-right: 15px;
    flex-shrink: 0;
}

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

.studio-hours {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.studio-hours ul {
    list-style: none;
    margin-left: 0;
}

.studio-hours li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.studio-hours span {
    font-weight: 600;
    margin-right: 10px;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

/* ==================
   Map Section
==================== */
.map-container {
    height: 400px;
}

.map {
    height: 100%;
    width: 100%;
}

/* ==================
   Footer
==================== */
footer {
    background-color: var(--accent);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(5);
}

.footer-links h4,
.footer-newsletter h4 {
    color: white;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: white;
}

.footer-links a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: var(--body-font);
}

.newsletter-form button {
    background-color: #4A4A4A;
    border-radius: 0 5px 5px 0;
}

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

/* ==================
   Back to Top Button
==================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

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

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

#back-to-top svg {
    fill: white;
}

/* ==================
   Policy Pages
==================== */
.page-content {
    padding: var(--section-spacing) 0;
}

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

.policy-content h1 {
    margin-bottom: 30px;
    text-align: center;
}

.policy-section {
    margin-bottom: 30px;
}

.last-updated {
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

/* ==================
   Success Page
==================== */
.success-message {
    padding: var(--section-spacing) 0;
    text-align: center;
}

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

.success-icon {
    fill: var(--accent);
    margin-bottom: 20px;
}

.submission-details {
    background-color: var(--light-accent);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
}

.next-steps {
    margin: 30px 0;
    text-align: left;
}

.next-steps ul {
    list-style-type: disc;
}

.next-steps li {
    margin-bottom: 10px;
}

/* ==================
   Media Queries
==================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 120px 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .class-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .primary-navigation {
        position: fixed;
        top: 80px;
        right: 0;
        background-color: var(--background);
        width: 80%;
        height: calc(100vh - 80px);
        flex-direction: column;
        padding: 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }
    
    .primary-navigation.active {
        transform: translateX(0);
    }
    
    .primary-navigation li {
        margin: 15px 0;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .class-card {
        flex: 0 0 100%;
    }
    
    .events-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 50px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .benefits-grid,
    .instructors-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card,
    .instructor-card {
        max-width: 350px;
        margin: 0 auto;
    }
}
