/* 
 * Zenclaster - Yoga and Meditation Studio
 * Main Stylesheet
 * Colors:
 * - Background: off-white (#F9F6EE)
 * - Accent: earthy terracotta (#E57373)
 * - Secondary accent: soft blue (#90CAF9)
 * - Text: dark brown (#3E2723)
 * - Buttons: terracotta (#E57373)
 * Fonts:
 * - Headings: Merriweather
 * - Body: Nunito
 */

/* ========== Base Styles ========== */
:root {
    --color-bg: #F9F6EE;
    --color-accent: #E57373;
    --color-secondary: #90CAF9;
    --color-text: #3E2723;
    --color-text-light: #6D4C41;
    --color-white: #FFFFFF;
    --color-light-gray: #EEEEEE;
    --color-medium-gray: #BDBDBD;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Nunito', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-text);
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

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

section {
    padding: 5rem 0;
}

.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

/* ========== Buttons ========== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #D32F2F;
    color: var(--color-white);
    transform: translateY(-2px);
}

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

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

/* ========== Header & Navigation ========== */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin: 0 0.5rem;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-weight: 600;
    position: relative;
}

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

.nav-menu li a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after {
    width: 80%;
}

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

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    margin: 6px 0;
    transition: var(--transition);
}

/* ========== Hero Section ========== */
.hero {
    background-image: url('../images/img00.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========== About Section ========== */
.about .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about .text-content {
    flex: 1;
    min-width: 300px;
}

.about .image-content {
    flex: 1;
    min-width: 300px;
}

/* ========== Yoga & Meditation Styles ========== */
.styles .style-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

/* ========== Teachers Section ========== */
.teachers {
    background-color: var(--color-light-gray);
}

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

.teacher {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.teacher img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

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

/* ========== Schedule Section ========== */
.schedule-tabs {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 2rem;
}

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

.tab-btn {
    padding: 1rem 2rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition);
    flex: 1;
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom: 3px solid var(--color-accent);
}

.tab-btn:hover {
    color: var(--color-accent);
}

.tabs-content {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.schedule-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-light-gray);
}

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

.schedule-time {
    flex: 0 0 120px;
    font-weight: 700;
    color: var(--color-accent);
}

.schedule-info h4 {
    margin-bottom: 0.5rem;
}

.schedule-booking {
    text-align: center;
    margin-top: 2rem;
}

.schedule-booking p {
    margin-bottom: 1rem;
}

/* ========== Benefits Section ========== */
.benefits {
    background-color: var(--color-light-gray);
}

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

.benefit-item {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    text-align: center;
    margin-bottom: 1rem;
}

/* ========== Testimonials Section ========== */
.testimonials {
    position: relative;
}

.testimonial-slider {
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -20px;
    color: var(--color-light-gray);
    z-index: -1;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

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

.prev-btn, .next-btn {
    background-color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    margin: 0 1rem;
    transition: var(--transition);
}

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

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

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

/* ========== Studio Tour Section ========== */
.studio-tour {
    background-color: var(--color-light-gray);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    font-weight: 600;
    text-align: center;
}

.studio-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.info-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.info-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-bottom: 1rem;
}

.info-card p {
    margin-bottom: 0.5rem;
}

/* ========== Contact Section ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

.info-item p {
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    flex: 1;
    margin-bottom: 0;
    font-weight: 400;
}

/* ========== Success Message ========== */
.success-message {
    padding: 5rem 0;
    text-align: center;
}

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

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========== Legal Pages ========== */
.legal-page {
    padding: 5rem 0;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.section {
    margin-bottom: 2.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section h3 {
    margin-top: 1.5rem;
}

.legal-footer {
    text-align: center;
    margin-top: 2rem;
}

.legal-footer p {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--color-text-light);
}

/* ========== Footer ========== */
footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 2;
    min-width: 250px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h4:after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

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

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

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

.footer-links ul li a:hover,
.footer-links ul li a.active {
    color: var(--color-accent);
}

.footer-contact {
    flex: 2;
    min-width: 250px;
}

.footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-contact h4:after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

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

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

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

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

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

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

.back-to-top:hover svg path {
    fill: var(--color-white);
}

/* ========== Responsive Styles ========== */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 83px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tabs-content {
        padding: 1.5rem;
    }
    
    .schedule-time {
        flex: 0 0 100px;
    }
    
    .legal-content {
        padding: 2rem;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        width: 95%;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .schedule-item {
        flex-direction: column;
    }
    
    .schedule-time {
        margin-bottom: 0.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .success-content,
    .legal-content {
        padding: 1.5rem;
    }
}
