/* 1. Global Styles */

/* Basic Reset & Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #00695c;
    margin-bottom: 0.75em;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1em; }

a {
    color: #00695c;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Utility class for screen readers only */
.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 */
.button {
    display: inline-block;
    padding: 0.75em 1.5em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 0.5em;
    margin-right: 0.5em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.button.primary-cta {
    background-color: #00695c; /* Teal */
    color: #ffffff;
    border-color: #00695c;
}

.button.primary-cta:hover,
.button.primary-cta:focus {
    background-color: #004d40; /* Darker Teal */
    border-color: #004d40;
    text-decoration: none;
    transform: translateY(-2px);
}

.button.secondary-cta {
    background-color: transparent;
    color: #00695c; /* Teal */
    border: 2px solid #00695c;
}

.button.secondary-cta:hover,
.button.secondary-cta:focus {
    background-color: #00695c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}


/* 2. Header & Navigation Styles */

header {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo img {
    max-height: 75px;
}

#main-nav {
    display: flex;
    align-items: center;
}

#main-nav ul {
    list-style: none;
}

#main-nav a {
    font-weight: bold;
    text-decoration: none;
}

/* --- Desktop Navigation --- */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none;
    }

    #main-nav ul#primary-navigation {
        display: flex;
        gap: 1.5rem;
    }

    #main-nav > ul > li > a {
        color: #37055d;
        padding: 1rem 0;
    }

    #main-nav > ul > li > a:hover {
        color: #00695c;
        text-decoration: none;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        min-width: 220px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        z-index: 10;
        border-radius: 5px;
        padding: 0.5rem 0;
    }
    
    #main-nav > ul > li:last-child .dropdown-content {
        left: auto;
        right: 0;
    }

    .dropdown-content li a {
        color: #37055d;
        padding: 0.75rem 1rem;
        display: block;
        font-weight: normal;
        white-space: nowrap;
    }

    .dropdown-content li a:hover {
        background-color: #f1f1f1;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}


/* --- Mobile Navigation --- */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: #37055d;
    }

    #main-nav ul#primary-navigation {
        display: none;
        flex-direction: column;
        position: fixed;
        inset: 0 0 0 30%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: min(20vh, 8rem) 2em;
        gap: 1rem;
        transform: translateX(100%);
        transition: transform 350ms ease-out;
        overflow-y: auto;
    }

    #main-nav ul#primary-navigation[data-visible="true"] {
        transform: translateX(0%);
        display: flex;
    }
    
    #main-nav ul#primary-navigation .dropdown-content {
        display: block;
        position: static;
        box-shadow: none;
        background-color: transparent;
        min-width: unset;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    #main-nav ul#primary-navigation .dropdown-content li a {
        padding: 0.25rem 0;
        font-size: 0.9em;
        color: #666;
        text-align: left;
    }
}


/* 3. Homepage & Generic Page Section Styles */

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/home_hero.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 9rem 0;
}

#hero h1 { color: #ffffff; }

#hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
    color: #e0e0e0;
}

/* Page Hero for internal pages */
.page-hero {
    background-color: #efe3f8; /* Light purple */
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #dcd1e3;
}
.page-hero h1 {
    color: #37055d; /* Deep Purple */
}


/* Main Content Sections */
#about-snippet, 
#about-content, 
#news-page-content, 
#treatments-page-content,
#treatment-detail-content,
#therapist-detail-content {
    padding: 3rem 0;
}

#about-snippet h2, #about-content h2, #news-page-content h2, #treatments-page-content h2, #treatment-detail-content h2, #therapist-detail-content h2 { 
    margin-bottom: 1.5rem;
    text-align: center;
}
#about-snippet p, .news-intro-text p, .treatments-intro-text p { 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    text-align: center;
    margin-bottom: 2rem;
}
#about-content .about-main-text p, .treatment-main-text p, .therapist-profile-details p {
    text-align: left;
}


/* Featured Treatments Section */
#featured-treatments {
    background-color: #efe3f8;
    padding: 3rem 0;
}
#featured-treatments h2 { text-align: center; margin-bottom: 2rem; }
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.treatment-card {
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    overflow: hidden;
}
.treatment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.treatment-card h3 {
    margin: 1rem 0 0.5rem 0;
    color: #37055d;
}
.treatment-card p {
    padding: 0 1rem;
    font-size: 0.95rem;
    text-align: center;
}
.treatment-card .read-more {
    display: inline-block;
    margin: 1rem 0 1.5rem 0;
    font-weight: bold;
}

/* News Page Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-card {
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-card-content .post-date {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.news-card-content h3 {
    font-size: 1.4rem;
    color: #37055d;
    margin-bottom: 0.5rem;
}
.news-card-content h3 a {
    color: inherit;
    text-decoration: none;
}
.news-card-content h3 a:hover {
    color: #00695c;
}
.news-card-content p {
    font-size: 0.95rem;
    flex-grow: 1;
}
.news-card-content .read-more {
    margin-top: 1rem;
    font-weight: bold;
}


/* Image Gallery Section */
#image-gallery {
    padding: 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 250px;
    gap: 0;
}
.gallery-item {
    display: block;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.03);
    z-index: 5;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-1, .item-2, .item-3 {
    grid-column: span 2;
}
.item-4, .item-5 {
    grid-column: span 3;
}

/* Therapists Section Styles */
.therapists-section {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
}
.therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.therapist-profile {
    text-align: center;
}
.therapist-profile img {
    max-width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.therapist-profile h3 {
    color: #37055d;
    margin-bottom: 0.25rem;
}
.therapist-profile .therapist-title {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9em;
}
/* ADDED STYLES FOR THERAPIST PAGE "READ MORE" LINKS */
.therapist-profile .read-more {
    display: inline-block;
    padding: 0.5em 1.25em;
    border: 2px solid #00695c;
    color: #00695c;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.therapist-profile .read-more:hover {
    background-color: #00695c;
    color: #ffffff;
    text-decoration: none;
}


/* --- Single Therapist Page Styles --- */
.therapist-profile-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 2rem;
    align-items: flex-start;
}
@media (min-width: 769px) {
    .therapist-profile-grid {
        grid-template-columns: 300px 1fr; /* Image column and text column */
    }
}
.therapist-profile-image img {
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.therapist-profile-details h2 {
    text-align: left;
    margin-top: 0;
}
.therapist-profile-details .therapist-title {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 1rem;
}


/* --- Single Treatment Page Styles --- */
.treatment-info-section, .treatment-pricing-section, .cta-section, .testimonials-section {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
}
.conditions-list {
    list-style-position: inside;
    padding-left: 0;
}
.conditions-list.two-col {
    columns: 2;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: center;
}
.pricing-grid.single-price {
    max-width: 300px; /* Make single price box narrower */
}
.price-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.price-item h3 {
    color: #37055d;
    margin-bottom: 0.25rem;
}
.price-item .duration {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5rem;
}
.price-item .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00695c;
    margin-bottom: 0;
}
.massage-types, .payment-note {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.payment-note {
    font-style: italic;
    font-size: 0.9em;
}
.cta-section {
    text-align: center;
}
.testimonial-item {
    background-color: #efe3f8; /* Light purple background */
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 5px solid #00695c; /* Teal accent border */
}
.testimonial-item blockquote {
    margin: 0;
    font-style: italic;
    color: #333;
}
.testimonial-item cite {
    display: block;
    margin-top: 1rem;
    text-align: right;
    font-weight: bold;
    color: #37055d;
}


/* 4. Footer Styles */
footer {
    background-color: #37055d;
    color: #e0e0e0;
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}
footer .container {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}
@media (min-width: 769px) {
    footer .container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.footer-contact { text-align: left; }
.footer-social { text-align: center; }
.footer-award { text-align: right; }
.footer-award img {
    max-height: 70px;
    width: auto;
    display: inline-block;
}
footer a { color: #ffffff; }
footer a:hover, footer a:focus { color: #e0e0e0; }
.footer-legal {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #5a2a8a;
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
}
.waleslink-credit a { color: #f0f0f0; }


/* 5. Responsive Adjustments (General) */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    #main-nav ul#primary-navigation li {
        text-align: left;
    }

    .gallery-grid, .conditions-list.two-col, .therapist-profile-grid {
        grid-template-columns: 1fr;
        columns: 1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact, .footer-social, .footer-award {
        text-align: center;
        margin-bottom: 1rem;
    }
}