/*
 * ORO-GUARD PEST SOLUTIONS - MAIN.CSS
 * * 1. Global Setup (Variables, Reset, Fonts)
 * 2. Typography & Utility Classes
 * 3. Header & Navigation
 * 4. Hero Sections
 * 5. Page Content (About, Contact)
 * 6. Services Grid
 * 7. Booking Form
 * 8. Clients Marquee
 * 9. Testimonials
 * 10. Footer
 * 11. Responsive Breakpoints (Mobile-First)
*/

/* --- 1. Global Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #4CAF50;      /* Medium Grass Green */
    --secondary: #795548;    /* Warm Earth Brown */
    --accent1: #A5D6A7;      /* Light Leaf Green */
    --accent2: #F5F5DC;      /* Soft Beige */
    --cta: #FFC107;          /* Sunlight Yellow */
    --text-dark: #333;
    --text-light: #fefefe;
    --border-light: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff; /* Use white or beige as base */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* --- 2. Typography & Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: #409a43;
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
}
.btn-secondary:hover {
    background-color: #6a4a3e;
    color: var(--text-light);
}

.btn-cta {
    background-color: var(--cta);
    color: var(--text-dark);
    font-weight: 700;
}
.btn-cta:hover {
    background-color: #e6ac00;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}
.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--secondary);
}

.grid-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* --- 3. Header & Navigation --- */
.header {
    width: 100%;
    height: 72px;
    background-color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}
.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}
.nav-cta .btn {
    width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: block; /* Show on mobile */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    position: relative;
    transition: transform 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Menu Container */
.nav-menu {
    display: flex; /* <-- ADDED */
    flex-direction: column; /* <-- ADDED */
    align-items: center; /* <-- ADDED */
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--text-light);
    padding: 2rem;
    box-shadow: var(--shadow);
    
    /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.nav-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 4. Hero Sections --- */

/* Home Page Hero */
.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    /* REMOVED min-height and max-height from here.
       They are now in the @media query for desktop.
    */
}
.hero-text-panel {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-content {
    max-width: 500px;
}
.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-content .lead {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--accent1);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hero-image-panel {
    background-image: url('../images/banner.webp');
    background-size: cover;
    background-position: center;
    min-height: 400px; /* Height for mobile */
}

/* Inner Page Header */
.page-header {
    padding: 4rem 1rem;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}
.page-header::before { /* Dark overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
}

/* --- 5. Page Content (About, Contact) --- */
.about-content ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.about-content ul li {
    margin-bottom: 0.5rem;
}

.team-section {
    background-color: var(--accent2);
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.team-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
}
.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.team-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    margin: 1rem 0 0.25rem 0;
}
.team-card p {
    padding-bottom: 1.5rem;
    color: var(--primary);
}

.contact-details-list {
    margin-top: 1.5rem;
}
.contact-details-list li {
    margin-bottom: 1.25rem;
}
.contact-details-list strong {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
}
.contact-details-list p {
    margin: 0;
}
.map-placeholder img {
    border: 3px solid var(--border-light);
    border-radius: 8px;
    margin-top: 1rem;
}

/* --- 6. Services Grid --- */
.services-overview {
    background-color: var(--accent2);
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.service-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.service-icon {
    height: 60px;
    width: auto;
    margin: 0 auto 1rem auto;
}
.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.cta-section {
    background-color: var(--secondary);
    color: var(--text-light);
    text-align: center;
}
.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- 7. Booking Form --- */
.booking-section {
    background-color: #fff;
}
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent1);
}
.form-group-full {
    grid-column: 1 / -1;
}

/* --- 8. Clients Marquee --- */
.clients-section {
    background-color: var(--accent2);
    padding: 3rem 0;
}
.clients-section h2 {
    font-size: 1.5rem;
    color: var(--secondary);
}
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--accent2) 0%, rgba(245, 245, 220, 0) 100%);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--accent2) 0%, rgba(245, 245, 220, 0) 100%);
}
.marquee-track {
    display: flex;
    width: fit-content;
    animation: marquee-scroll 40s linear infinite;
}
.marquee-track img {
    height: 50px;
    width: auto;
    margin: 0 2.5rem;
    filter: grayscale(100%);
    opacity: 0.7;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls one full set of logos */
}

/* --- 9. Testimonials --- */
.testimonials-section {
    background-color: #fff;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.testimonial-card {
    background-color: var(--accent2);
    border-left: 5px solid var(--primary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-card .author {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary);
}

/* --- 10. Footer --- */
.footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding-top: 3rem;
}
.footer a {
    color: var(--text-light);
}
.footer a:hover {
    color: var(--cta);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.footer-col .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    /* Invert colors for dark background, if needed */
    /* filter: brightness(0) invert(1); */
}
.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--cta);
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col address p {
    margin-bottom: 0.5rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons svg { /* <-- MODIFIED from img */
    height: 24px;
    width: 24px;
    fill: var(--text-light); /* <-- MODIFIED from filter */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.social-icons a:hover svg { /* <-- MODIFIED from img */
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #9c786a;
    margin-top: 2rem;
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0; /* <-- ADDED */
}
.footer-bottom p.powered-by { /* <-- ADDED */
    margin-top: 0.5rem;
}
.footer-bottom p.powered-by a { /* <-- ADDED */
    color: var(--cta);
}
.footer-bottom p.powered-by a:hover { /* <-- ADDED */
    color: var(--text-light);
}


/* --- 11. Responsive Breakpoints --- */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .section-title { font-size: 2.8rem; }
    
    /* Navigation */
    .nav-toggle {
        display: none; /* Hide hamburger */
    }
    .nav-menu {
        display: flex; /* <-- ADDED */
        position: static;
        flex-direction: row;
        align-items: center;
        width: auto;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-list {
        flex-direction: row;
        gap: 2rem;
    }
    .nav-cta {
        flex-direction: row;
        margin-top: 0;
        margin-left: 2rem;
        width: auto;
    }
    .nav-cta .btn { width: auto; }

    /* Hero */
    .hero-split {
        grid-template-columns: 45% 55%;
        min-height: calc(100vh - 72px); /* <-- MOVED HERE */
        max-height: 800px;             /* <-- MOVED HERE */
    }
    .hero-text-panel { padding: 3rem; }
    .hero-content h1 { font-size: 3.5rem; }

    /* Grids */
    .grid-two-col {
        grid-template-columns: 1fr 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Form */
    .contact-form {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .footer-bottom { /* <-- ADDED */
        text-align: left;
    }
    .footer-bottom .container { /* <-- ADDED */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .footer-bottom p.powered-by { /* <-- ADDED */
        margin-top: 0;
        text-align: right;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .hero-split {
        grid-template-columns: 40% 60%;
    }
    .hero-text-panel {
        padding: 4rem;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-page-section .grid-two-col {
        grid-template-columns: 2fr 1fr; /* Form wider */
    }
}