/* ===== Brand Colours ===== */
:root {
    --green: #2ecc71;
    --green-dark: #1e8f52;
    --silver: #bdc3c7;
    --white: #ffffff;
    --charcoal: #1a1a1a;
}

/* ===== Global ===== */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--charcoal);
}

h1, h2, h3 {
    margin-top: 0;
}

/* ===== Header ===== */
header {
    background: var(--green);
    color: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav a {
    color: var(--white);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

/* ===== Hero ===== */
.hero {
    padding: 120px 40px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white);
    text-align: center;
}

.btn-primary {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: var(--white);
    color: var(--green-dark);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* ===== Sections ===== */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

/* ===== Services Grid ===== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-box {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--silver);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* ===== Contact Form ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--silver);
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form button {
    width: fit-content;
}

/* ===== Footer ===== */
footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 40px;
    text-align: center;
    margin-top: 60px;
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f0f0f;
        color: #e6e6e6;
    }

    header {
        background: var(--green-dark);
    }

    .hero {
        background: linear-gradient(135deg, var(--green-dark), #145f38);
    }

    .service-box {
        background: #1a1a1a;
        border: 1px solid #2f2f2f;
    }

    footer {
        background: #145f38;
    }

    .btn-primary {
        background: var(--green);
        color: #0f0f0f;
    }

    section {
        padding: 40px 20px;
    }
}

/* HERO IMAGE */
.hero-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.55);
    padding: 120px 40px;
    text-align: center;
    color: white;
}

/* SERVICE IMAGES */
.service-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== Mobile-first adjustments ===== */
header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

header nav a {
    margin: 0 10px;
}

.hero-overlay {
    padding: 80px 20px;
}

section {
    padding: 60px 20px;
}

.service-img {
    height: 140px;
}

/* ===== Small tablets (≥ 600px) ===== */
@media (min-width: 600px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .hero-overlay {
        padding: 100px 40px;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Tablets (≥ 768px) ===== */
@media (min-width: 768px) {
    .hero-overlay {
        padding: 120px 60px;
    }

    .services {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    section {
        padding: 80px 40px;
    }
}

/* ===== Desktop (≥ 1024px) ===== */
@media (min-width: 1024px) {
    .services {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }

    .hero-overlay {
        padding: 140px 80px;
    }
}

/* Base: mobile-first (single column) */
.services.eight-box-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Tablets: 2 columns */
@media (min-width: 600px) {
    .services.eight-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large tablets: 3 columns */
@media (min-width: 900px) {
    .services.eight-box-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 4 columns → 2 rows of 4 */
@media (min-width: 1200px) {
    .services.eight-box-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Footer Layout ===== */
footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-section a {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Tablet and Desktop ===== */
@media (min-width: 700px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-section {
        max-width: 45%;
    }
}

.footer-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* makes icons white */
}

footer p {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive footer layout */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

@media (min-width: 700px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}


.site-logo {
    height: 50px;
    width: auto;
}

@media (max-width: 600px) {
    .site-logo {
        height: 40px;
    }
}

header nav a {
    position: relative;
    padding: 6px 0;
    margin-left: 24px;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

button, a.button {
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
}


/* Base header layout */
header {
    background: var(--green);
    color: var(--white);
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile: stack logo + toggle, hide nav by default */
.nav-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    display: block;
}

header nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

header nav a {
    margin: 8px 0;
}

/* When open on mobile */
header nav.nav-open {
    display: flex;
}

/* Tablets and up: show nav inline, hide toggle */
@media (min-width: 700px) {
    header {
        flex-direction: row;
        text-align: left;
    }

    .nav-toggle {
        display: none;
    }

    header nav {
        display: flex;
        flex-direction: row;
        width: auto;
        margin-top: 0;
    }

    header nav a {
        margin: 0 0 0 24px;
    }
}

.logo-strip {
    overflow: hidden;
    background: #f7f7f7;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.logo-track {
    display: flex;
    gap: 60px;
    width: calc(200%); /* allows smooth looping */
    animation: scroll 20s linear infinite;
}

.logo-track img {
    height: 50px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.logo-track img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .logo-track img {
        height: 32px;
    }
}

