/*
 * ZEN MINIMALISM STYLESHEET
 * Total Massage House - Euroa, VIC
 * Color Palette: Warm Sand, Soft Sage, Terracotta Accent
 */

/* 1. Base Reset and Typography */
:root {
    /* Zen Minimalism Color Palette */
    --color-primary: #C97C5D; /* Terracotta Accent */
    --color-secondary: #A8B5A0; /* Soft Sage Green */
    --color-background: #F5F5F0; /* Off-White / Warm Sand */
    --color-text: #2C2C2C; /* Deep Charcoal */
    --color-light-text: #555555; /* Mid-Tone Grey */
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Georgia', serif; /* Classic, calm heading */
    --font-body: 'Arial', sans-serif; /* Clean, highly readable body */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--color-text);
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 1.5em;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

/* 2. Header and Navigation */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px 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: 10px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-primary);
}

.nav {
    display: none; /* Hide on mobile first */
}

/* Custom CTA Emphasis (Mobile Size) - Phone Header Style for all devices */
.phone-header a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700; /* Extra bold */
    font-size: 1.3em; /* Larger size */
    padding: 5px 0; /* Add a little vertical space */
    transition: color 0.3s;
}

/* 3. Reusable Elements: Buttons and Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #A3644F; /* Darker Terracotta */
    transform: translateY(-2px);
    color: var(--color-white);
}

.secondary-cta {
    background-color: var(--color-secondary);
}

.secondary-cta:hover {
    background-color: #929D8D; /* Darker Sage */
}

/* 4. Hero Section */
.hero {
    position: relative;
    height: 60vh; /* Responsive height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Darken image for better text readability */
}

.hero-content {
    position: relative;
    z-index: 5;
    color: var(--color-white);
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 0.1em;
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

/* 5. Section Layouts */
section {
    padding: 40px 0;
    overflow: hidden;
}

#about {
    background-color: var(--color-white);
}

#services {
    background-color: var(--color-background);
}

#contact {
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 30px;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 6. Services and Pricing Table */

/* --- NEW FLEX WRAPPER FOR TABLE AND IMAGE --- */
.services-content-wrapper {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 30px;
    align-items: flex-start;
}

.pricing-table {
    margin: 0; /* Remove auto margins to let flex control it */
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    width: 100%; /* Default to full width on mobile */
    /* *** THE CRITICAL FIX FOR DESKTOP LAYOUT *** */
    table-layout: fixed; 
}

.pricing-table thead tr {
    background-color: var(--color-secondary);
    color: var(--color-text); /* FIX: Changed from --color-white to --color-text for visibility */
}

.pricing-table th, .pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pricing-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

/* Style for the row headers you added in HTML */
.pricing-table .service-group-header {
    background-color: #e6e6e6; /* Light gray background */
    border-bottom: 2px solid #ccc;
    font-weight: bold;
}

.pricing-table .service-group-header .group-title {
    color: var(--color-text);
    font-size: 1em;
    text-transform: uppercase;
    padding: 8px 15px;
}


/* STYLES for the relocated oils image */
.services-oils-wrapper {
    width: 100%; /* Default to full width on mobile */
    text-align: center; /* Center the image on mobile */
    margin-bottom: 40px;
}

.services-oil-image {
    max-width: 100%; 
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block; 
    margin: 0 auto; 
    max-height: 400px; /* Constrain vertical height for aesthetics */
    object-fit: contain; /* Ensure image fits well */
}
/* --- END NEW FLEX WRAPPER --- */


/* Professional Notice Style (Red Box) */
.professional-notice {
    background-color: #fce4e4 !important; /* Lighter red background */
    border: 1px solid #e57373 !important; /* Red border */
    color: #c62828 !important; /* Dark red text */
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}


/* 7. Testimonials */
#testimonials {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

#testimonials h2 {
    color: var(--color-white);
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card {
    background-color: var(--color-white);
    color: var(--color-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.stars {
    color: gold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.testimonial-author {
    font-style: italic;
    margin-top: 10px;
    text-align: right;
    color: var(--color-light-text);
}


/* 8. Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive columns */
    gap: 15px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.02);
}

/* 9. Contact Section */
.contact-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 30px;
    align-items: flex-start; /* Ensures columns start at the top line */
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-details {
    margin-bottom: 15px;
}

.contact-details p strong {
    color: var(--color-primary);
}

.contact-details a {
    font-weight: bold;
}

.map-container {
    height: 300px; /* Map height on mobile */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
}

/* Styling for the building image in the contact section (General/Mobile) */
.contact-building-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-top: 15px; 
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta {
    margin-top: 5px; /* Reduced space above buttons */
}


/* 10. Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer a {
    color: #A8B5A0; /* Soft Sage on dark background */
}

/* --- Custom Global Styles (Price and Notes) --- */

/* 1. Make the Price Column BIGGER, BOLDER, and use the Accent Color */
.pricing-table td:last-child {
    font-weight: 700; /* Extra Bold */
    color: var(--color-primary); /* Terracotta Accent Color */
    font-size: 1.2em; /* 20% Bigger font size than standard text */
}

/* 2. Make the Service Name (first column) Bolder for clarity */
.pricing-table td:first-child {
    font-weight: 600; /* Semi-bold for the service name */
}

/* 3. Ensure the Allergy Note stands out */
.allergies-note {
    font-size: 1.1em;
}


/* 11. Desktop / Tablet Media Query (Larger Screens) */
@media (min-width: 768px) {
    
    /* Header and Nav */
    .nav {
        display: flex;
        gap: 20px;
    }

    .header .container {
        padding: 15px 0;
    }

    /* Hero */
    .hero {
        height: 75vh;
    }

    .hero-content h1 {
        font-size: 3.5em;
    }

    /* About Section */
    .about-content {
        flex-direction: row; /* Side-by-side on desktop */
        text-align: left;
    }
    
    .about-text {
        flex: 1.5;
    }

    .about-image {
        flex: 1;
    }
    
    /* Services Section Layout (Table and Image side-by-side) */
    .services-content-wrapper {
        flex-direction: row; /* Display side-by-side on desktop */
        align-items: flex-start;
        justify-content: space-between;
    }

    .pricing-table {
        width: 60%; /* Table takes up 60% of the space */
        max-width: 700px;
    }

    .services-oils-wrapper {
        width: 35%; /* Image takes up 35% of the space */
        text-align: right; /* Align image to the right */
        margin-bottom: 0;
        margin-top: 25px; /* Adjust top margin to align with table header */
    }
    
    .services-oil-image {
        max-width: 100%;
        max-height: 300px; /* Reduce max height to fit neatly */
        object-fit: contain;
    }

    /* Testimonials */
    .testimonials-grid {
        flex-direction: row;
        gap: 30px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Contact */
    .contact-content {
        flex-direction: row; /* Side-by-side on desktop */
    }

    .contact-info {
        flex: 1;
    }
    
    /* FIX 1: Reduced Map Height to 380px for better balance */
    .map-container {
        flex: 1.5;
        height: 380px; 
    }

    /* FIX 2: Tighter vertical spacing for contact items */
    .contact-details {
        margin-bottom: 8px; 
    }

    /* FIX 3: Tighter vertical spacing for the building image */
    .contact-building-image {
        max-width: 100%;
        margin-top: 10px; 
        margin-bottom: 10px;
    }
    
    /* FIX 4: Ensure the header phone number is larger on desktop */
    .phone-header a {
        font-size: 1.5em;
    }
}