/* ================= LOCAL FONTS (GDPR COMPLIANCE) ================= */
/* Download Roboto from Google Webfonts Helper and place in /fonts/ folder */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local(''),
         url('../fonts/roboto-v51-latin-regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: local(''),
         url('../fonts/roboto-v51-latin-700.woff2') format('woff2');
    font-display: swap;
}

/* ================= CSS VARIABLES & THEMES ================= */
:root {
    /* Brand Colors */
    --brand-green: #50b848;
    --brand-blue: #091f35;
    --brand-white: #ffffff;

    /* Light Theme Variables (Default) */
    --bg-color: #ffffff;
    --bg-alt: #f4f7f6;
    --text-primary: #091f35; /* Using brand blue for high contrast text */
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --bg-color: #091f35; /* Brand blue background */
    --bg-alt: #0a2540;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --border-color: #2d3748;
    --header-bg: rgba(9, 31, 53, 0.95);
    --card-bg: #112a46;
}

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--brand-green);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--brand-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ================= LAYOUT & SECTIONS ================= */
section {
    padding: 5rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

/* Base Logo Sizing */
.site-logo {
    height: 50px;
    width: auto;
}

/* Default Light Theme: Hide the dark-theme logo */
.logo-dark {
    display: none;
}
.logo-light {
    display: block;
}

/* Dark Theme: Hide light logo, show dark logo */
[data-theme="dark"] .logo-light {
    display: none;
}
[data-theme="dark"] .logo-dark {
    display: block;
}

/* Navigation & Header Controls */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--brand-green);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hide Hamburger on Desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    /* background-color: var(--text-primary); */
    background-color: var(--brand-green);
    transition: 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    padding-top: 150px; /* Offset for fixed header */
    min-height: 100vh; /* Forces the section to be exactly as tall as the screen */
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--brand-green);
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--brand-green);
    color: var(--brand-white);
}

.btn-primary:hover {
    background-color: #429b3b;
    color: var(--brand-white);
    transform: translateY(-2px);
}

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

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--brand-green);
}

.service-card h3 {
    color: var(--brand-green);
}

.text-in-green {
    color: var(--brand-green);
}

.text-in-blue {
    color: var(--brand-blue);
}

/* Contact Section */
.text-center {
    text-align: center;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.contact-info-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 2px rgba(80, 184, 72, 0.2);
}

/* Footer */
.site-footer {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--brand-white);
    margin-left: 1rem;
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    .site-nav {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }
}

/* GDPR Checkbox Styles */
.gdpr-group {
    margin-bottom: 1.5rem;
}

.gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 400 !important; /* Overrides the bold label text */
    line-height: 1.4;
    cursor: pointer;
    color: var(--text-secondary);
}

.gdpr-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px; /* Aligns the box with the first line of text */
    cursor: pointer;
}

/* ================= SCROLL ANIMATIONS ================= */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px); /* Pushes it down slightly */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none; /* Brings it back to its original position */
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
        /* Force everything to stay on one row */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Shrink the logo to fit alongside the menu buttons */
    .site-logo {
        max-width: 180px; /* Prevents the logo from taking up the whole screen */
        max-height: 40px; /* Keeps it proportionate to the 70px header height */
        height: auto;
        width: auto;
    }

    .nav-wrapper {
        gap: 1rem;
    }

    /* Show the Hamburger Menu Button */
    .hamburger {
        display: block;
    }

    /* Mobile Slide-Out Menu */
    .nav-links {
        position: absolute;
        top: 70px;
        right: -100%; /* Hidden off-screen by default */
        flex-direction: column;
        background-color: var(--header-bg);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        gap: 2rem;
    }

    /* Active class toggled by JavaScript */
    .nav-links.active {
        right: 0;
    }

    .hero-section {
        padding-top: 80px; /* Offset for fixed header (adjusted to match your 80px header height) */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 0.5rem;
    }
}
