:root {
    --primary-color: #2c3e50;
    --secondary-color: #f8f9fa;
    --accent-color: #d4af37; /* Gold/warm color typical for massage */
    --text-color: #333;
    --bg-color: #fff;
    --font-heading: 'Lora', serif;
    --font-body: 'Lora', serif;
}

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

html {
    scroll-padding-top: 250px; /* Adjust based on sticky header height */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body), serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    background-color: var(--bg-color);
    padding: 10px 0 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #4a5d23; /* Darker olive green for a natural, calm feel */
    background-color: rgba(201, 221, 114, 0.5); /* Very light version of the treatment section color */
    display: block;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 12px auto;
    padding: 10px 30px;
    border-radius: 50px;
    letter-spacing: 2px;
}

.header-info {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2px 0;
}

h2, h3, h4 {
    font-family: var(--font-heading);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/massage.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
}

.treatments {
    background-color: rgb(201, 221, 114);
}

.treatments h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.treatment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.treatment-item {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    flex: 1 1 350px;
    max-width: 450px;
}

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

.treatment-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.treatment-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.btn-more {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    align-self: center;
}

.btn-more:hover {
    background-color: #333;
}

.treatment-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.treatment-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price-duration {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--accent-color);
}

.author {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgb(var(--text-color), 0.2);
    margin-bottom: 2px;
}

.media-author {
    margin: 5px 20px;
}

.testimonials {
    background-color: var(--secondary-color);
}

.testimonials h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.testimonials h4 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.photos {
    background-color: #000;
    color: #fff;
    text-align: center;
}

.photos h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

/* Hide repeated h3 in HTML if it exists, or just ensure it is styled correctly */
.photos h3 + h3 {
    display: none;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.photo-grid img {
    flex: 1 1 350px;
    max-width: 580px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.03);
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.testimonial-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    flex: 1 1 300px;
    max-width: 400px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-item span {
    font-weight: bold;
    color: var(--accent-color);
}

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

.opening-hours {
    margin-top: 40px;
}

.treatment-detail {
    background-color: rgb(201, 221, 114);
}

.treatment-detail h2 {
    text-align: center;
    margin-bottom: 30px;
}

.detail-image-section {
    text-align: center;
    margin-bottom: 30px;
}

.detail-image-section img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-back {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}

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

footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 200px; /* Reduced from 350px as header is now more compact */
    }
    header {
        padding: 5px 0 10px 0; /* Reduced top/bottom padding */
    }
    .logo h1 {
        font-size: 1.5rem; /* Reduced from 2.5rem */
        padding: 8px 15px; /* Reduced from 10px 30px */
        width: 95%; /* Slightly wider to take up less height if text wraps */
        margin-bottom: 8px; /* Reduced from 12px */
    }
    .header-info {
        font-size: 1rem; /* Reduced from 1.5rem */
    }
    .hero h2 {
        font-size: 1.8rem; /* Slightly smaller for mobile */
    }
    nav ul {
        flex-direction: row; /* Keep menu items in a row on tablet/larger mobile */
        flex-wrap: wrap; /* Allow wrapping for small screens */
        justify-content: center;
        margin-top: 5px;
    }
    nav ul li {
        margin: 5px 8px; /* Reduced horizontal margin */
    }
    nav ul li a {
        font-size: 0.8rem; /* Smaller font for navigation links */
    }
}

/* Even more compact for very small smartphones */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 180px;
    }
    .logo h1 {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
    .header-info {
        font-size: 0.85rem;
    }
    nav ul li {
        margin: 3px 5px;
    }
}
