/* ======================= */
/* ROOT COLORS             */
/* ======================= */
:root {
    --brand-green: #186c3b;
    --brand-yellow: #f9dc3f;
    --btn-gradient-start: #4493d5;
    --btn-gradient-end: #29b6f6;
}

/* ======================= */
/* GLOBAL STYLES           */
/* ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--brand-green);
    color: white;
}

/* ======================= */
/* SIDEBAR                 */
/* ======================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    background-color: var(--brand-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
    z-index: 999;
}

.sidebar .logo-img {
    width: 140px;
    height: auto;
    margin-bottom: 15px;
}

.sidebar a {
    width: 100%;
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--brand-yellow);
    color: var(--brand-green);
    border-radius: 6px;
}

/* Logo link hover state - no background change */
.sidebar a:has(img):hover,
.sidebar a:has(img).active {
    background: none;
    color: inherit;
}

/* ======================= */
/* MAIN CONTENT            */
/* ======================= */
.content {
    margin-left: 180px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 0;
}

.content > section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8%;
}

/* ======================= */
/* HEADINGS                */
/* ======================= */
h1 { font-size: 44px; line-height: 1; margin-bottom: 10px; color: white; }
h2 { font-size: 38px; font-weight: 700; line-height: 1; margin-bottom: 10px; color: white; }

/* ======================= */
/* FOOTER                  */
/* ======================= */
footer { margin-top: auto; padding: 10px; text-align: center; }

/* ======================= */
/* RESPONSIVE MEDIA QUERIES */
/* ======================= */
@media (max-width: 1024px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    .about-content, .services-container { max-width: 90%; font-size: 15px; }
    .service-box { max-width: 200px; padding: 15px 12px; }
}

@media (max-width: 768px) {
    body, html { overflow-x: hidden; height: auto; }

    .sidebar {
        flex-direction: row;
        justify-content: space-evenly;  /* better spacing */
        align-items: center;
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        padding: 0 2px;
        border-bottom: 2px solid var(--brand-yellow);
        gap: 2px;
        overflow-x: hidden;
    }

    .sidebar .logo-img { 
    width: 83px;       /* slightly bigger */
    height: auto; 
    margin: 0;         /* remove right push */
    }


    .sidebar a {
        font-size: 12px;
        padding: 6px 6px;
        width: auto !important;
        flex: 0 1 auto;
        border-radius: 4px;
        white-space: nowrap;
        letter-spacing: -0.2px;
    }

    .content {
        margin-left: 0 !important;
        padding-top: 15px !important;
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    .about-section, .services-section {
        position: relative !important;
        margin: 0 auto !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 40px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        transform: none !important;
    }

   
    .services-container { flex-direction: column !important; align-items: center !important; gap: 20px; }
    .service-box, .about-content { width: 90% !important; margin: 10px 0 !important; }

    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    .tagline { font-size: 18px; }

/* ======================= */
    /* CONTACT PAGE SPACING    */
    /* ======================= */
    .contact-section {
        padding-top: 15px;   /* header closer to menu */
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 30px; 
    }

    .contact-section h2 {
        margin-bottom: 25px;  /* gap between header and contact info */
    }

    .contact-info-box {
        margin-top: 5px;      /* optional small extra spacing */
    }

    /* ======================= */
    /* CONTACT FORM SPACING     */
    /* ======================= */
    .contact-form-box {
        margin-top: 15px;        /* smaller gap below contact info */
        width: 100%;             /* ensure full width on mobile */
        padding: 10px 0;         /* optional small vertical padding */
    }

    .contact-form label {
        margin-bottom: 6px;      /* slightly tighter label spacing */
    }

    .contact-form input,
    .contact-form textarea {
        margin-bottom: 12px;     /* reduce gap between fields */
    }

    /* ======================= */
/* MOBILE TOP SPACING FOR ABOUT & SERVICES HEADINGS */
/* ======================= */
    .about-section h2,
    .services-section h2 {
        margin-top: 50px;   /* moves heading down from top */
        margin-bottom: 25px; /* keeps spacing below heading */
    }

/* Optional: add extra padding for the section */
    .about-section,
    .services-section {
        padding-top: 20px;  /* adds breathing room above heading */
    }


    }
    /* ========================================= */
/* DESKTOP/LAPTOP BUCKET ALIGNMENT           */
/* ========================================= */
@media (min-width: 1024px) {
    /* 1. Force the home-section to be a horizontal row */
    .home-section {
        flex-direction: row !important; 
        flex-wrap: nowrap !important;   /* Prevents the bucket from dropping down */
        align-items: center !important; /* Centers bucket vertically with the yellow box */
        justify-content: flex-start;
        gap: 50px;                      /* Space between yellow box and bucket */
        width: 100%;
        padding-right: 5%;              /* Prevents bucket hitting the right edge */
    }

    /* 2. Control the width of the text area so the bucket has room */
    .home-text {
        flex: 0 1 600px !important;    /* Allows it to shrink if the laptop screen is small */
        width: auto !important;
    }

    /* 3. Ensure the bucket stays to the right */
    .home-section .bucket {
        flex: 0 0 300px;               /* Fixed size for bucket on desktop */
        margin-top: 0 !important;      /* Removes mobile "push-up" margins */
        display: block !important;
    }
}
