/* --- CSS Variables (Brand Colors) --- */
:root {
    --primary-blue: #156ac9;
    --primary-green: #10aa2d;
    --primary-orange: #fd9e1b;
    --dark-text: #333333;
    --body-text: #555555;
    --bg-white: #FFFFFF;
}

/* --- Global Styles --- */
body {
    /* Modern font stack */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    background-color: var(--bg-white); /* Main background is white */
    color: var(--body-text);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--dark-text);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 20px;
}

ul, li {
    padding-left: 20px;
}

/* --- Header & Navigation Bar --- */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-blue); /* Brand Color */
    text-decoration: none;
}

/* Logo Image Sizing */
.header .logo img {
    height: 75px;     /* Sets the logo height */
    width: auto;      /* Automatically scales the width */
    vertical-align: middle; /* Helps align it */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--body-text);
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--primary-blue); /* Brand Color */
    color: var(--bg-white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #1155a3; /* Darker blue */
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: var(--primary-green); /* Brand Color */
    color: var(--bg-white);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: #0d8a24; /* Darker green */
    transform: translateY(-2px);
}

/* --- Hero Section (Home Page) --- */
.hero {
    background: var(--primary-blue); /* BRAND COLOR */
    color: var(--bg-white); /* White text for contrast */
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--bg-white); /* White text */
}

.hero p {
    font-size: 1.25em;
    color: var(--bg-white); /* White text */
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Home Page Specific Sections --- */
.home-about, .home-services {
    padding: 60px 0;
    text-align: center;
}

/* .home-about will be white (from body) */

.home-services {
    background: var(--primary-green); /* BRAND COLOR */
    color: var(--bg-white); /* White text for contrast */
}

.home-services h2 {
    color: var(--bg-white); /* White text */
}

.home-about .container,
.home-services .container {
    max-width: 900px;
}

.service-boxes {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 30px;
}

.service-box {
    background: var(--bg-white); /* Boxes are white */
    border: none;
    border-radius: 8px;
    padding: 30px;
    width: 30%;
    min-width: 280px;
    margin: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Modern shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-box h3 {
    color: var(--primary-orange); /* Brand Color */
    font-weight: 700;
    margin-top: 0;
    font-size: 1.4em;
}

/* --- THE FIX for service box text --- */
.service-box p {
    color: var(--body-text); /* Set paragraph text back to dark */
}
/* ------------------------ */

/* --- Standard Page Content (for other pages) --- */
.page-header {
    background: var(--primary-blue); /* BRAND COLOR */
    color: var(--bg-white); /* White text for contrast */
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 2.8em;
    margin: 0;
    color: var(--bg-white); /* White text */
}

.content-section {
    padding: 60px 0;
    background: var(--bg-white); /* Content sections are white */
}

.content-section .container {
    max-width: 900px; /* Narrower content for reading */
}

/* --- Reviews Page Specific --- */
.testimonial {
    background: var(--primary-orange); /* BRAND COLOR */
    border-left: 6px solid var(--dark-text); /* Dark border for contrast */
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    color: var(--dark-text); /* Dark text is readable on orange */
}
.testimonial p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--dark-text);
}
.testimonial .author {
    font-style: normal;
    font-weight: 600;
    text-align: right;
    color: var(--primary-blue);
}

/* --- Button Fixes for Colored Backgrounds --- */
.hero .btn {
    background: var(--bg-white);
    color: var(--primary-blue);
    font-weight: 700;
}
.hero .btn:hover {
    background: #f0f0f0; /* Light gray hover */
    color: var(--primary-blue);
}

.home-services .btn {
    /* This button is blue, on a green bg - fine */
}
.home-services .btn-secondary {
    background: var(--bg-white);
    color: var(--primary-green);
    font-weight: 700;
}
.home-services .btn-secondary:hover {
    background: #f0f0f0;
    color: var(--primary-green);
}


/* --- Footer --- */
.footer {
    background: #2c2c2c; /* Dark, but not pure black */
    color: #cccccc;
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

.footer p {
    margin: 8px 0;
    font-size: 0.9em;
}


/**************************************************/
/* --- RESPONSIVE STYLES ---             */
/* These styles apply to screens 768px or less   */
/**************************************************/

@media screen and (max-width: 768px) {

    /* --- Header & Navigation --- */
    .header .container {
        flex-direction: column; /* Stack logo and nav */
        align-items: center;  /* Center them */
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .logo {
        margin-bottom: 15px; /* Add space between logo and nav */
    }

    .main-nav ul {
        flex-direction: column; /* Stack nav links */
        align-items: center;  /* Center them */
        width: 100%;
    }

    .main-nav li {
        margin-left: 0; /* Remove side margin */
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 12px 0; /* Make links full-width and tap-friendly */
        border-bottom: 1px solid #eee; /* Add separator */
    }
    
    .main-nav a.active,
    .main-nav a:hover {
        border-bottom-color: var(--primary-blue); /* Keep the active state */
    }
    
    /* --- Typography --- */
    h1, .hero h1, .page-header h1 {
        font-size: 2.2em; /* Reduce h1 size */
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8em; /* Reduce h2 size */
    }

    h3 {
        font-size: 1.3em; /* Reduce h3 size */
    }

    .hero p {
        font-size: 1.1em; /* Reduce hero text */
    }

    /* --- Section Padding --- */
    .hero, .home-about, .home-services, .page-header, .content-section {
        padding: 40px 0; /* Reduce vertical padding */
    }

    /* --- Service Boxes --- */
    .service-boxes {
        flex-direction: column; /* Stack the boxes */
        align-items: center; /* Center them */
    }

    .service-box {
        width: 90%; /* Make boxes almost full-width */
        min-width: 0; /* Remove min-width */
        margin: 10px 0; /* Adjust margin for vertical stacking */
    }

    /* --- Buttons --- */
    .btn, .btn-secondary {
        padding: 14px 24px; /* Slightly taller padding for tapping */
        font-size: 1em;
        width: 90%; /* Make buttons larger targets */
        box-sizing: border-box; /* Include padding in width */
        text-align: center;
    }
    
    .home-about .btn-secondary {
        width: 90%;
    }
    
    .home-services .btn {
         width: 90%;
         margin-bottom: 10px; /* Add space between stacked buttons */
    }

}