/* --- 1. Global Styles & Resets --- */
:root {
    /* Updated colour palette based on your request */
    --primary-color: #008a70;     /* A complementary green for buttons/links */
    --secondary-color: #e8f0ef;   /* A very light tint for grey backgrounds */
    --dark-color: #16483f;        /* Your requested menu/dark colour */
    --light-color: #fff;
    --border-color: #9eb9b5;      /* A medium-light tint for borders */
}

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

html {
    /* Makes anchor link scrolling smooth */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Utility class for content width */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Header & Navigation --- */
.main-header {
    /* Sits on top of the hero slider */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    /* UPDATED: Solid background colour as requested */
    background: var(--dark-color); 
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-color);
    text-decoration: none;
}

.main-header .logo img {
    height: 40px; /* Adjust as needed for your logo's desired size */
    width: auto;
    display: block; /* Removes extra space below image */
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: bold;
    padding: 5px;
    transition: border-bottom 0.2s;
}

.main-nav a:hover {
    border-bottom: 2px solid var(--light-color);
}

/* --- 3. Hero Image Slider --- */
/* This section creates a simple, continuous scrolling ticker */
.hero-slider {
    height: 50vh;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    --slide-width: 350px; /* 300px image + 50px margin */
}

.slider-track {
    display: flex;
    width: calc(var(--slide-width) * var(--total-slides, 10));
    animation: scroll 40s linear infinite;
}
.slider-track img {
    width: auto;
    height: 40vh;
    object-fit: contain; /* Good for transparent logos/PNGs */
    margin-right: max(50px, 2vw);
    margin-top: 5vh;
    flex-shrink: 0;
}

/* Keyframe animation for the scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Moves the track left by the width of 5 images */
        transform: translateX(calc(var(--slide-width) * var(--unique-slides, 5) * -1));
    }
}

/* --- 4. Page Sections --- */
.page-section {
    padding: 60px 0;
}

/* This targets the first section after the header/hero */
#what-we-do {
    background: var(--light-color);
    position: relative; /* Stacking context */
}

/* Alternating background colours for sections */
.page-section.bg-light {
    background: var(--secondary-color);
}

/* --- 5. Consultation Form --- */
.booking-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    /* UPDATED: Replaced grey border with green tint */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    padding: 12px 20px;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    /* UPDATED: Darker green for hover */
    background: #006b58;
}

/* --- 6. Contact Section & Map --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-details ul {
    list-style: none;
    line-height: 2.2;
}

.contact-details li strong {
    margin-right: 10px;
}

#map {
    width: 100%;
    height: 400px;
    /* UPDATED: Replaced grey with light green tint */
    background: var(--secondary-color); 
    /* UPDATED: Replaced grey border with green tint */
    border: 1px solid var(--border-color);
}

#map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- 7. Footer --- */
.main-footer {
    /* UPDATED: Footer now uses your requested dark green */
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

.main-footer p {
    margin-bottom: 5px;
}

/* --- 8. Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    
    /* Make header static on mobile (easier to use) */
    .main-header {
        position: static;
        /* This will automatically use the --dark-color */
        background: var(--dark-color);
    }
    
    .main-header .container {
        flex-direction: column;
    }

    .main-header .logo {
        margin-bottom: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-nav li {
        margin-left: 0;
    }
    
    /* Adjust hero slider height */
    .hero-slider {
        height: 40vh;
    }

    /* Remove the large top padding on the first section */
    #what-we-do {
        padding-top: 60px;
        margin-top: 0;
    }

    /* Stack contact grid on mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    #map {
        /* Add space above map on mobile */
        margin-top: 20px;
    }
}