/* --- Root Variables & Theme --- */
:root {
    --sage-green: #9CAF88;
    --deep-forest: #2D4030;
    --soft-taupe: #D7D2CB;
    --off-white: #F9F8F6;
    --muted-gold: #C5A059;
    --text-dark: #333333;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

h1, h2, h3 {
    font-family: var(--header-font);
    color: var(--deep-forest);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    font-weight: 300; /* Light weight for a modern feel */
}

/* --- Layout Containers --- */
main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    padding: 40px 0;
    border-bottom: 1px solid var(--soft-taupe);
}

section:last-of-type {
    border-bottom: none;
}

/* --- Header & Navigation (Centered Adjustment) --- */
header {
    background: white;
    padding: 30px 0 20px 0; /* More top padding for the logo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stacks logo on top of menu */
    align-items: center;    /* Centers everything horizontally */
    gap: 20px;              /* Space between logo and menu */
    padding: 0 20px;
}

.logo img {
    height: 80px; /* Slightly larger since it's centered */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px; /* Wider gap for a cleaner look */
    border-top: 1px solid var(--soft-taupe); /* Optional: thin line to separate logo from nav */
    padding-top: 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--deep-forest);
    font-weight: 400;
    text-transform: uppercase; /* Professional navigation style */
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--sage-green);
}

/* --- Mobile Adjustment --- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--sage-green);
    color: white;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 400;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-right: 10px;
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--deep-forest);
    transform: translateY(-2px);
}

/* --- Hero Section (Home Page) --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: white;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.tagline {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--sage-green);
}

/* --- Footer --- */
footer {
    background-color: var(--deep-forest);
    color: var(--soft-taupe);
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.legal-disclaimer {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    grid-column: 1 / span 2;
}

footer p {
    margin-bottom: 0.5rem;
}

footer > p:last-child {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 40px;
    opacity: 0.7;
}

/* --- Specific Page Styling --- */
.principle, .contact-intro {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

ul {
    padding-left: 20px;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 8px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* --- Mobile Menu Icon --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: var(--deep-forest);
}

/* --- Updated Mobile Navigation Layout --- */
@media (max-width: 768px) {
    /* Changes nav to side-by-side instead of stacked */
    nav {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        padding: 10px 20px;
    }

    /* Keep the logo on the left and resize for mobile */
    .logo img {
        height: 50px; 
    }

    /* Hamburger icon stays tucked to the right */
    .menu-toggle {
        display: block; 
        order: 2; /* Ensures it stays on the right */
    }

    /* Navigation list now drops down from the header */
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Sits directly under the header */
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--soft-taupe);
        z-index: 999;
    }

    .nav-list.active {
        display: flex;
    }

    nav ul {
        gap: 15px;
        border-top: none; /* Removes the line we used for desktop */
        padding-top: 0;
    }
}


/* --- Appointment Form Styling --- */
.appointment-form {
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--deep-forest);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--soft-taupe);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 5px rgba(156, 175, 136, 0.3);
}

/* Styling the Date Picker for consistent look */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(30%) sepia(10%) saturate(1000%) hue-rotate(80deg); /* Shades it toward your green */

}

/* --- Global Tinted Section Styling --- */
.tinted-section {
    position: relative;
    padding: 80px 20px; /* Gives the text room to breathe */
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Change to 'fixed' if you want a parallax effect */
    overflow: hidden;
}

.tinted-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* This is your 50% dark tint */
    z-index: 1;
}

.tinted-section .content {
    position: relative;
    z-index: 2; /* Keeps text above the tint */
    max-width: 900px;
    margin: 0 auto;
}

/* Forces headings inside tinted sections to stay white */
.tinted-section h1, 
.tinted-section h2, 
.tinted-section p {
    color: #ffffff !important;
}

/* --- Specific Background Images --- */
/* Ensure these images exist in your images folder! */
.home-hero-bg { background-image: url('images/home-hero.png'); }
.philosophy-bg { background-image: url('images/philosophy.png'); }
.getting-started-bg { background-image: url('images/starting.png'); }
