/* 
* Homeylush - Yoga & Meditation Studio
* Main Stylesheet
* Colors:
* - Background: #F9F1F6
* - Accent: #8E24AA
* - Secondary Accent: #CE93D8
* - Text: #333333
* - Buttons: #8E24AA
* Fonts:
* - Headings: Merriweather
* - Body: Roboto
*/

/* ===== Base Styles ===== */
:root {
    --background: #F9F1F6;
    --accent: #8E24AA;
    --secondary-accent: #CE93D8;
    --text: #333333;
    --light-text: #666666;
    --white: #FFFFFF;
    --light-bg: #FFF5FD;
    --shadow: rgba(142, 36, 170, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

ul {
    list-style-type: none;
}

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

section {
    padding: 4rem 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

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

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

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

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

.logo img {
    height: 60px;
}

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

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 1.5rem;
}

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

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

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

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

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

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text);
    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: rotate(45deg);
    top: 10px;
}

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

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

/* ===== Hero Section ===== */
.hero {
    background-color: var(--light-bg);
    padding: 6rem 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

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

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

.hero-content .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* ===== Philosophy Section ===== */
.philosophy {
    background-color: var(--white);
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.philosophy-text {
    flex: 1;
}

.philosophy-image {
    flex: 1;
}

.philosophy-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

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

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

.class-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.class-icon {
    margin-bottom: 1.5rem;
}

.class-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

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

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

.instructor-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

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

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

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

.instructor-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--accent);
}

.instructor-title {
    font-weight: 500;
    color: var(--secondary-accent);
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.instructor-card p:not(.instructor-title) {
    padding: 0 1.5rem 1.5rem;
}

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

.studio-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.studio-text {
    flex: 1;
}

.studio-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

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

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

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

.benefit-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* ===== Schedule Section ===== */
.schedule {
    background-color: var(--light-bg);
}

.schedule-tabs {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.schedule-tab-headers {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--accent);
}

.schedule-tab-btn {
    padding: 1rem 1.5rem;
    color: var(--white);
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.schedule-tab-content {
    padding: 2rem;
}

.schedule-day {
    display: none;
}

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

.schedule-class {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.schedule-time {
    font-weight: 500;
}

.schedule-title {
    font-weight: 700;
    color: var(--accent);
}

.schedule-instructor {
    text-align: right;
    color: var(--light-text);
}

.schedule-cta {
    text-align: center;
    padding: 2rem 0 0;
}

.schedule-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

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

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

.contact-icon {
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.contact-map {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-map iframe {
    display: block;
}

.contact-form {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group button {
    width: 100%;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--accent);
    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: 60px;
    margin-bottom: 1rem;
    filter: invert();
}

.footer-logo p {
    font-style: italic;
    opacity: 0.8;
}

.footer h3 {
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--white);
}

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

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

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

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

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

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

.success-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px var(--shadow);
}

.success-icon {
    margin-bottom: 2rem;
}

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

.success-content p {
    margin-bottom: 1.5rem;
}

.success-content .btn {
    margin-top: 1rem;
}

/* ===== Policy Pages ===== */
.page-content {
    padding: 4rem 0;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
}

.content-block {
    margin-bottom: 2.5rem;
}

.content-block h2 {
    text-align: left;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.content-block h2::after {
    left: 0;
    transform: none;
    width: 100px;
}

.content-block h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.content-block ul,
.content-block ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-block ul li,
.content-block ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

.content-block ul li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* ===== Media Queries ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .philosophy-content,
    .studio-content {
        flex-direction: column;
    }
    
    .philosophy-text,
    .studio-text {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-list.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list li {
        margin: 0.8rem 0;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .schedule-class {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .schedule-instructor {
        text-align: center;
    }
    
    .schedule-tab-headers {
        justify-content: center;
    }
    
    .schedule-tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .class-card,
    .benefit-card {
        padding: 1.5rem;
    }
    
    .instructor-image {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
