/*
Theme Name: Svasti Yog Therapy Theme
Author: Your Name
Description: A custom WordPress theme for Svasti Yog Therapy, based on a static design.
Version: 1.2
*/

/* --- Globals --- */
* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Helvetica, sans-serif;
  background-color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.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;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    padding: 20px 0;
    transition: background-color 0.3s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.5); /* white with 80% opacity */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding img {
    max-height: 55px;
    width: auto;
    transition: max-height 0.3s ease;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-navigation a {
    color: #242223;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
}
.main-navigation a:hover {
    color: #820441;
}

.header-right-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #242223;
    transition: all 0.2s ease-in-out;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #242223;
    transition: all 0.2s ease-in-out;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 85vh;
    color: #fff;
    padding: 120px 20px 40px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section ::before { /* Overlay for readability */
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0; left: 0; right: 0; bottom: 0;*/
/*    background-color: rgba(0,0,0,0.5);*/
/*

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    border-radius: 10px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-style: italic;
    color: #fff; /* White text for contrast */
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f3f0f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button-primary, .button-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.button-primary {
    background-color: #820441;
    color: #f3f0f0 !important;
}

.button-secondary {
    background-color: transparent;
    color: #820441 !important;
    border: 2px solid #820441;
}

.button-primary:hover, .button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.button-secondary:hover {
    background-color: #820441;
    color: #f3f0f0 !important;
}

.site-content {
    position: relative;
    z-index: 1;
    background-color: #fff;
}

/* ==========================================================================
   CONTENT SECTION STYLES
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    font-style: italic;
    color: #2d7258;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

/* My Story Section */
.my-story {
    padding: 100px 0;
    background-color: #f3f0f0;
}

.my-story-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.my-story-text {
    flex: 1 1 55%;
}
.my-story-text .section-title {
    text-align: left;
}

.story-content-text {
    max-width: 650px;
    font-weight: 400;
    color: #242223;
    font-size: 18px;
    line-height: 1.7;
}
.story-content-text p {
    margin-bottom: 1.5em;
}
.story-content-text p:last-child {
    margin-bottom: 0;
}
.story-content-text .signature {
    font-weight: bold;
    font-size: 20px;
}
.story-content-text .signature span {
    font-weight: normal;
    font-size: 16px;
}

.my-story-image {
    flex: 1 1 45%;
}
.my-story-image img {
    width: 100%;
    height: auto;
    border-radius: 25px;
}

/* Sessions Section */
.sessions {
    padding: 100px 0;
    background-color: #d3a5a7;
}
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.session-card {
    text-align: center;
    background-color: #f3f0f0;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}
.session-card .session-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 20px;
}
.session-card h3 {
    font-size: 24px;
    color: #820441;
    font-weight: 400;
    margin: 0 0 15px;
    min-height: 58px;
}
.session-card h3 strong {
    font-weight: 700;
}
.session-card p {
    font-size: 18px;
    line-height: 1.5;
    color: #242223;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Why Svasti Section */
.why-svasti {
    padding: 100px 0;
    background-color: #2d7258;
}
.why-svasti .section-title {
    color: #d3a5a7;
    text-align: left;
}
.why-svasti-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.why-svasti-image {
    flex: 1 1 40%;
}
.why-svasti-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}
.why-svasti-text {
    flex: 1 1 30%;
}
.svasti-yog-therapy-content {
    color: #f3f0f0;
    font-size: 16px;
    line-height: 1.7;
}
.svasti-yog-therapy-content p {
    margin-bottom: 1.5em;
}
.svasti-yog-therapy-content p:last-child {
    margin-bottom: 0;
}

/* Our Approach Section */
.our-approach {
    padding: 100px 0;
    background-color: #fff;
}
.our-approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background-color: #f3f0f0;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.approach-item {
    text-align: left;
}
.approach-item .approach-number {
    font-size: 52px;
    font-weight: 700;
    color: #2d7258;
}
.approach-item h4 {
    font-size: 22px;
    color: #2d7258;
    font-weight: 700;
    margin: 10px 0;
    min-height: 54px;
}
.approach-item p {
    font-size: 18px;
    color: #242223;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* Health Conditions Section */
.health-conditions {
    padding: 100px 0;
    background-color: #d3a5a7;
}
.health-conditions .section-title {
    color: #fff;
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #820441;
    font-weight: bold;
    margin-bottom: 40px;
}
.health-conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}
.health-conditions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.health-conditions-list li {
    font-size: 18px;
    color: #242223;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.health-conditions-list .custom-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #820441;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
}
.health-conditions-list .custom-icon::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

/* CTA Quote Section */
.cta-quote {
    padding: 60px 0;
    background-color: #2d7258;
    text-align: center;
}
.cta-quote p {
    font-size: 2rem;
    color: #d3a5a7;
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #f3f0f0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.testimonial-card {
    background-color: #d3a5a7;
    padding: 30px;
    border-radius: 20px;
    position: relative;
}
.testimonial-icon {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 100px;
    color: #820441;
    opacity: 0.2;
    line-height: 1;
    z-index: 1;
}
.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: #242223;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}
.testimonial-author {
    font-weight: bold;
    color: #820441;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}
.testimonial-author span {
    font-weight: normal;
    color: #242223;
    display: block;
    font-size: 15px;
}

/* Listening Section */
.listening-section {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}
.listening-section::before { /* Overlay for readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
}
.listening-section .container {
    display: flex;
    justify-content: flex-end; /* This pushes the content to the right */
}
.listening-content {
    width: 50%; /* Using width instead of max-width for better flex control */
    position: relative;
    z-index: 2;
    text-align: left; /* Ensures text inside the box is left-aligned */
}
.listening-title {
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 20px;
    color: #fff;
}
.listening-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 550px;
}
.listening-content .button-primary {
    margin-top: 15px;
}

/* Collaboration Bar */
.collaboration-bar {
    background-color: #820441;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
.collaboration-bar p {
    margin: 0;
    font-size: 1rem;
}
.collaboration-bar a {
    font-weight: bold;
    text-decoration: underline;
}
.collaboration-bar a:hover {
    text-decoration: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: #f3f0f0;
    padding: 60px 0;
    color: #242223;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr 1fr; 
    gap: 40px;
    align-items: start;
}
.footer-branding img { max-width: 180px; }
.footer-navigation-wrapper { padding-top: 0px; }
.footer-navigation ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.footer-navigation li { margin-bottom: 12px; }
.footer-navigation a:hover { text-decoration: underline; }
.footer-copyright { margin-top: 25px; font-size: 16px; color: #555; }
.footer-social .social-media-list { display: flex; gap: 15px; list-style: none; padding: 0; margin: 0; justify-content: flex-end; }
.footer-social img { width: 32px; height: 32px; transition: opacity 0.2s ease; }
.footer-social a:hover img { opacity: 0.75; }

/* ==========================================================================
   RESPONSIVE (Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
    .main-navigation, .header-cta { 
        display: none; 
    }
    
    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    /* NOTE: For the mobile menu to work, you will need a small script. 
    You can add this to a custom JS file loaded by your theme.
    
    document.addEventListener('DOMContentLoaded', function() {
        const menuToggle = document.querySelector('.menu-toggle');
        const mainNav = document.querySelector('.main-navigation');
        if (menuToggle && mainNav) {
            menuToggle.addEventListener('click', function() {
                mainNav.classList.toggle('toggled-on');
                const isExpanded = mainNav.classList.contains('toggled-on');
                menuToggle.setAttribute('aria-expanded', isExpanded);
            });
        }
    });
    */
    .main-navigation.toggled-on {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-navigation.toggled-on ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .my-story-container, .why-svasti-container { 
        flex-direction: column; 
        gap: 40px;
    }
    .my-story-container { 
        flex-direction: column-reverse; 
    }
    .my-story-text .section-title, .why-svasti .section-title {
        text-align: center;
    }

    .sessions-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .our-approach-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .testimonials-grid { 
        grid-template-columns: 1fr; 
    }
    .footer-grid { 
        grid-template-columns: 1fr 1.5fr; 
        gap: 30px; 
    }
    .footer-social { 
        grid-column: 1 / -1; 
        margin-top: 20px; 
    }
    .footer-social .social-media-list { 
        justify-content: center; 
    }
    .listening-content {
        max-width: 70%;
    }
}

/* ==========================================================================
   RESPONSIVE (Mobile)
   ========================================================================== */

@media (max-width: 768px) {
    .container { 
        padding: 0 15px; 
    }
    .site-branding img {
        max-height: 45px;
    }
    .hero-section {
        min-height: 80vh;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title { 
        font-size: 2.2rem; 
    }
    .story-content-text, .svasti-yog-therapy-content { 
        font-size: 16px; 
    }
    .sessions-grid { 
        grid-template-columns: 1fr; 
    }
    .our-approach-grid { 
        grid-template-columns: 1fr; 
        padding: 30px 20px;
    }
    .health-conditions-grid { 
        grid-template-columns: 1fr; 
    }
    .cta-quote p { 
        font-size: 1.5rem; 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .footer-branding { 
        margin: 0 auto; 
    }
    .footer-navigation ul { 
        columns: 1; 
    }
    .footer-copyright { 
        margin-top: 30px; 
    }
    .listening-section {
        padding: 80px 0;
        text-align: center;
    }
    .listening-content {
        max-width: 100%;
    }
    .listening-title {
        font-size: 2.5rem;
    }
    .listening-content p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .collaboration-bar p {
        font-size: 0.9rem;
    }
}