/*
Theme Name: UWCA Theme
Theme URI: https://www.unitedwaste.org
Author: UWCA
Description: Custom theme for United Waste Collectors Association Ltd.
Version: 1.0
Text Domain: uwca
*/

:root {
    /* Brand Colors (from spec §5.2 and §5.3) */
    --uwca-royal: #0008B8;
    --uwca-medium: #3080D0;
    --uwca-navy: #000048;
    --uwca-white: #FFFFFF;
    
    /* UI Neutrals */
    --uwca-ink: #202633;
    --uwca-muted: #5B6573;
    --uwca-pale-blue: #EAF2FB;
    --uwca-light-neutral: #F4F7FB;
    --uwca-border: #D8E5F4;
    --uwca-warning: #B56F19;
    --uwca-success: #2F7655;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
}

/* Basic Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--uwca-ink);
    background-color: var(--uwca-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--uwca-navy);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

a {
    color: var(--uwca-royal);
    text-decoration: underline;
}

a:hover, a:focus {
    color: var(--uwca-navy);
}

/* --- Basic Layout --- */
.container, .header-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Header */
.site-header {
    background: var(--uwca-white);
    border-bottom: 1px solid var(--uwca-border);
    padding: var(--space-sm) 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}
.main-navigation a {
    text-decoration: none;
    color: var(--uwca-navy);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--uwca-royal);
    color: var(--uwca-white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--uwca-navy);
    color: var(--uwca-white);
}
.btn-secondary {
    display: inline-block;
    border: 1px solid var(--uwca-royal);
    color: var(--uwca-royal);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background: var(--uwca-navy);
    color: var(--uwca-white);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-lg);
}
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr; /* Better proportions for 4 columns */
    gap: var(--space-lg); /* More space between columns */
    align-items: start;
}
.site-footer h2, .site-footer h3 {
    color: var(--uwca-white);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.site-footer p, .site-footer a, .site-footer li {
    color: var(--uwca-pale-blue);
    font-size: 0.95rem;
    line-height: 1.6;
}
.site-footer a {
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--uwca-white);
    text-decoration: underline;
}

/* Ensure lists are clean and don't wrap awkwardly */
.footer-legal ul, .footer-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-legal li, .footer-resources li {
    margin-bottom: 0.75rem;
    white-space: nowrap; /* Prevents "Terms of Service" from breaking into 2 lines */
}

/* Staff Portal Button specific fix */
.footer-legal .staff-portal-btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    width: 100%;
    display: block;
    clear: both;
}

/* Accessibility skip link */
.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 0;
    top: 0;
    background: var(--uwca-white);
    padding: 10px;
    z-index: 9999;
}

/* --- Batch 03: Component Library --- */

/* 1. Cards */
.uwca-card {
    background: var(--uwca-white);
    border: 1px solid var(--uwca-border);
    border-radius: 8px;
    padding: var(--space-md);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.uwca-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: var(--uwca-medium);
}
.uwca-card h3 {
    margin-top: 0;
    color: var(--uwca-royal);
}

/* 2. Status Labels */
.uwca-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}
/* Status: Operating (Success) */
.uwca-status--operating {
    background-color: #E6F4EA;
    color: var(--uwca-success);
    border: 1px solid #CEEAD6;
}
/* Status: Proposed/Exploratory (Warning) */
.uwca-status--proposed {
    background-color: #FEF7E0;
    color: var(--uwca-warning);
    border: 1px solid #FEEFC3;
}

/* 3. Forms */
.uwca-form-group {
    margin-bottom: var(--space-md);
}
.uwca-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--uwca-navy);
}
.uwca-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--uwca-border);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}
.uwca-form-control:focus {
    outline: none;
    border-color: var(--uwca-royal);
    box-shadow: 0 0 0 3px rgba(0, 8, 184, 0.1);
}
.uwca-form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--uwca-muted);
    margin-top: 0.25rem;
}

/* --- Batch 04: Homepage Layout --- */

/* Typography Helpers */
.uwca-section {
    padding: var(--space-lg) 0;
}
.uwca-bg-light {
    background-color: var(--uwca-light-neutral);
}
.uwca-bg-navy {
    background-color: var(--uwca-navy);
    color: var(--uwca-white);
}
.uwca-bg-navy h2 {
    color: var(--uwca-white);
}
.uwca-section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.uwca-section-desc {
    text-align: center;
    color: var(--uwca-muted);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.uwca-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

/* Hero Section */
.uwca-hero {
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, var(--uwca-light-neutral) 0%, var(--uwca-white) 100%);
    border-bottom: 1px solid var(--uwca-border);
}
.uwca-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.uwca-hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    color: var(--uwca-royal);
}
.uwca-hero p {
    font-size: 1.25rem;
    color: var(--uwca-ink);
    margin-bottom: var(--space-md);
}
.uwca-hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

/* Grids */
.uwca-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

/* Process Flow */
.uwca-process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
}
.uwca-process-step {
    text-align: center;
    flex: 1;
    padding: 0 var(--space-sm);
}
.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--uwca-royal);
    color: var(--uwca-white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}
.uwca-process-step h4 {
    margin-bottom: 0.5rem;
    color: var(--uwca-navy);
}
.uwca-process-step p {
    font-size: 0.875rem;
    color: var(--uwca-muted);
}
.uwca-process-arrow {
    font-size: 2rem;
    color: var(--uwca-border);
}

/* Sliding Reviews Carousel */
.uwca-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none; 
}
.uwca-slider-container::-webkit-scrollbar {
    display: none;
}
.uwca-review-card {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start;
    background: var(--uwca-white);
    border: 1px solid var(--uwca-border);
    border-left: 4px solid var(--uwca-royal);
    padding: var(--space-md);
    border-radius: 4px;
    min-width: 300px; /* Prevents them from getting too skinny on mobile */
}
.uwca-review-text {
    font-style: italic;
    margin-bottom: var(--space-sm);
}
.uwca-review-author {
    font-weight: 600;
    color: var(--uwca-navy);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .uwca-hero h1 {
        font-size: 2.25rem;
    }
    .uwca-hero-actions {
        flex-direction: column;
    }
    .uwca-process-flow {
        flex-direction: column;
        gap: var(--space-md);
    }
    .uwca-process-arrow {
        transform: rotate(90deg);
    }
    .uwca-flex-between {
        flex-direction: column;
        text-align: center;
    }
    .uwca-review-card {
        flex: 0 0 85%; /* Shows a bit of the next card to hint at swiping */
    }
}

/* --- Batch 05: Inner Pages --- */

.uwca-page-header {
    padding: var(--space-lg) 0;
    text-align: center;
    border-bottom: 1px solid var(--uwca-border);
}
.uwca-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}
.uwca-lead {
    font-size: 1.25rem;
    color: var(--uwca-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Row (Split Layout) */
.uwca-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.uwca-content-row.uwca-reverse .uwca-content-text {
    order: 2;
}
.uwca-content-row.uwca-reverse .uwca-content-image {
    order: 1;
}

.uwca-bg-pale {
    background-color: var(--uwca-pale-blue);
    border-radius: 8px;
    border: 1px solid var(--uwca-border);
}

@media (max-width: 768px) {
    .uwca-content-row {
        grid-template-columns: 1fr;
    }
    .uwca-content-row.uwca-reverse .uwca-content-text {
        order: 1;
    }
    .uwca-content-row.uwca-reverse .uwca-content-image {
        order: 2;
    }
}

/* --- Batch 05b: Materials Page --- */

.uwca-materials-intro {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    text-align: center;
    background: var(--uwca-light-neutral);
    padding: var(--space-md);
    border-radius: 8px;
    border-left: 4px solid var(--uwca-warning);
}

.uwca-materials-grid {
    /* Inherits from uwca-grid-3 but we can tweak if needed */
}

.uwca-card-enquiry {
    background-color: var(--uwca-pale-blue);
    border: 1px solid var(--uwca-royal);
}

.uwca-card-enquiry h3 {
    color: var(--uwca-navy);
}

/* --- Batch 06: Contact & Footer Elements --- */

/* Footer Social Icons */
.uwca-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.uwca-social-links a {
    color: var(--uwca-white);
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 50%;
    display: inline-flex;
    transition: background 0.2s;
}
.uwca-social-links a:hover {
    background: var(--uwca-royal);
}

/* Floating WhatsApp Button */
.uwca-whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--uwca-royal);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.uwca-whatsapp-float:hover {
    transform: scale(1.1);
    background-color: var(--uwca-navy);
    color: #FFF;
}

/* Contact Page Layout */
.uwca-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: start;
}
.uwca-contact-info {
    background: var(--uwca-light-neutral);
    padding: var(--space-md);
    border-radius: 8px;
    border: 1px solid var(--uwca-border);
}
.uwca-contact-form-wrapper {
    background: var(--uwca-white);
    padding: var(--space-lg);
    border-radius: 8px;
    border: 1px solid var(--uwca-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .uwca-contact-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Batch 07: About & Partnerships --- */

/* 4-Column Grid (for Client Logos) */
.uwca-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.uwca-client-logo {
    background: var(--uwca-light-neutral);
    border: 1px solid var(--uwca-border);
    border-radius: 8px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uwca-muted);
    font-weight: 600;
}

/* --- Batch 08: News & Publications --- */

/* Single Article Typography */
.uwca-article-content h2, .uwca-article-content h3 {
    margin-top: var(--space-md);
}
.uwca-article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}
.uwca-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Publications List */
.uwca-publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.uwca-publication-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--uwca-white);
    border: 1px solid var(--uwca-border);
    padding: var(--space-md);
    border-radius: 8px;
    transition: border-color 0.2s;
}
.uwca-publication-item:hover {
    border-color: var(--uwca-royal);
}
.uwca-pub-icon {
    font-size: 2.5rem;
    background: var(--uwca-light-neutral);
    padding: 1rem;
    border-radius: 8px;
}
.uwca-pub-details {
    flex-grow: 1;
}
.uwca-pub-details h3 {
    margin-bottom: 0.25rem;
}
.uwca-pub-details h3 a {
    color: var(--uwca-navy);
    text-decoration: none;
}
.uwca-pub-details h3 a:hover {
    color: var(--uwca-royal);
}
.uwca-pub-action {
    flex-shrink: 0;
}

/* Pagination */
.uwca-pagination {
    margin-top: var(--space-lg);
    text-align: center;
}
.uwca-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--uwca-light-neutral);
    border: 1px solid var(--uwca-border);
    color: var(--uwca-navy);
    text-decoration: none;
    border-radius: 4px;
}
.uwca-pagination .page-numbers.current {
    background: var(--uwca-royal);
    color: var(--uwca-white);
    border-color: var(--uwca-royal);
}

@media (max-width: 768px) {
    .uwca-publication-item {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Batch 09b: Mobile Navigation & Fixes --- */

/* Hide the hamburger button on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--uwca-navy);
    cursor: pointer;
    padding: 0.5rem;
}

/* Use 991px to catch tablets and phones before the layout breaks */
@media (max-width: 991px) {
    /* 1. Header Adjustments */
    .header-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .site-branding {
        flex: 1;
        max-width: 70%;
    }
    
    .site-branding a {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .menu-toggle {
        display: block;
    }
    
    .header-cta {
        display: none; /* Hide the big blue button in the header on mobile */
    }

    /* 2. The Dropdown Menu */
    .main-navigation {
        display: none; /* Hide by default */
        width: 100%;
        background: var(--uwca-white);
        border-top: 1px solid var(--uwca-border);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .main-navigation.is-open {
        display: block; /* Show when JS adds this class */
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--uwca-light-neutral);
    }

    .main-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    /* 3. Footer Stacking */
    .footer-container {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: var(--space-lg);
        text-align: center;
    }

    .uwca-social-links {
        justify-content: center;
    }

    /* Remove the bullet dots from the footer menu */
    .footer-legal ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .footer-legal li {
        padding: 0.5rem 0;
    }

    /* 4. General Mobile Spacing Fixes */
    .uwca-section {
        padding: var(--space-md) 0;
    }
    
    .uwca-hero h1 {
        font-size: 2rem;
    }
    
    .uwca-hero-actions {
        flex-direction: column;
    }
    
    .uwca-process-flow {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .uwca-process-arrow {
        transform: rotate(90deg);
    }
    
    /* Fix Slider on Mobile */
    .uwca-review-card {
        flex: 0 0 85%;
    }
    
    /* Fix Contact Grid */
    .uwca-contact-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Batch 10: Stats & Image Banner --- */

/* Trust Strip / Stats */
.uwca-stats-strip {
    background: var(--uwca-navy);
    padding: var(--space-md) 0;
    border-bottom: 4px solid var(--uwca-royal);
}
.uwca-stat-item {
    text-align: center;
    color: var(--uwca-white);
}
.uwca-stat-number {
    font-size: 4.5rem; /* Increased from 2.5rem */
    font-weight: 800;
    color: var(--uwca-white);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.uwca-stat-label {
    font-size: 1rem;
    color: var(--uwca-pale-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* High-Def Image Banner */
.uwca-image-banner {
    background-color: var(--uwca-ink); /* Fallback color */
    /* REPLACE THE URL BELOW WITH YOUR ACTUAL IMAGE URL */
    background-image: linear-gradient(rgba(0, 0, 72, 0.7), rgba(0, 0, 72, 0.7)), url('https://www.unitedwaste.org/wp-content/uploads/2026/11/aggregation-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding: 8rem 0;
    text-align: center;
}
.uwca-banner-content h2 {
    color: var(--uwca-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.uwca-banner-content p {
    color: var(--uwca-pale-blue);
    font-size: 1.25rem;
}
@media (max-width: 768px) {
    .uwca-image-banner {
        background-attachment: scroll;
        padding: 5rem 1rem;
    }
    .uwca-banner-content h2 {
        font-size: 2rem;
    }
}

/* --- Custom Logo Sizing --- */
.custom-logo {
    max-height: 60px; /* Adjust this if you want it bigger/smaller */
    width: auto;
}
@media (max-width: 991px) {
    .custom-logo {
        max-height: 45px; /* Smaller on mobile to fit the hamburger menu */
    }
}

/* --- Batch 11: Social Impact Section --- */

.uwca-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.uwca-impact-box {
    background: var(--uwca-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--uwca-royal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.uwca-impact-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.uwca-impact-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--uwca-navy);
}

.uwca-impact-box p {
    font-size: 0.95rem;
    color: var(--uwca-muted);
}

/* --- Batch 12: Visual Depth, Gradients & Interactivity --- */

/* 1. Scroll Reveal Animation */
.uwca-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.uwca-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Mesh Gradients for Sections */
.uwca-bg-gradient {
    background: radial-gradient(circle at 10% 20%, var(--uwca-pale-blue) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(48, 128, 208, 0.1) 0%, transparent 40%);
    background-color: var(--uwca-white);
}

/* 3. Hero Section Upgrade (Stronger Glow) */
.uwca-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(234, 242, 251, 0.5) 0%, var(--uwca-white) 100%);
    overflow: hidden;
}
/* Abstract background vector (circles) */
.uwca-hero-bg-vector {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 8, 184, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.uwca-hero .container {
    position: relative;
    z-index: 1;
}

/* 4. Interactive Card Upgrades */
.uwca-card, .uwca-impact-box {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.uwca-card:hover, .uwca-impact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 75, 0.08);
    border-color: var(--uwca-medium);
}
/* Subtle blue sweep on hover */
.uwca-card::before, .uwca-impact-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(48, 128, 208, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.uwca-card:hover::before, .uwca-impact-box:hover::before {
    opacity: 1;
}

/* 5. Button Interactivity */
.btn-primary, .btn-secondary {
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 8, 184, 0.3);
}
.btn-secondary:hover {
    background: var(--uwca-pale-blue);
    transform: translateY(-2px);
}

/* --- Batch 13: Interactive Material Hover --- */

/* 1. The Background Layers */
#uwca-material-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none; /* Prevents the background from blocking clicks */
    z-index: 1; /* Sits behind the content */
    overflow: hidden;
}

.uwca-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.uwca-bg-layer.active {
    opacity: 1;
}

.uwca-float-icon {
    position: absolute;
    width: 200px; /* Made them bigger */
    height: 200px; 
    color: var(--uwca-royal);
    opacity: 0.15; /* Increased from 0.05 so they are clearly visible */
    animation: floatAnimation infinite linear alternate;
}

/* The floating effect */
@keyframes floatAnimation {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-40px) rotate(15deg); }
}

/* 2. The Card Hover Effect */
.uwca-material-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--uwca-white);
}

.uwca-material-card:hover {
    background-color: var(--uwca-royal) !important;
    border-color: var(--uwca-royal);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 8, 184, 0.2);
}

/* Change text colors inside the card on hover */
.uwca-material-card:hover h3,
.uwca-material-card:hover p {
    color: var(--uwca-white) !important;
}

/* Invert the button on hover so it stands out */
.uwca-material-card:hover .btn-secondary {
    background-color: var(--uwca-white);
    color: var(--uwca-royal);
    border-color: var(--uwca-white);
}

/* Change the status badge to look good on a blue background */
.uwca-material-card:hover .uwca-status {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--uwca-white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- Batch 14: News Card Thumbnails --- */

/* Update the card to let the image touch the edges */
.uwca-news-card {
    padding: 0 !important; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Style the image */
.uwca-news-thumbnail img {
    width: 100%;
    height: 220px; /* Fixed height so all cards are the same size */
    object-fit: cover; /* Crops the image beautifully without stretching */
    border-bottom: 1px solid var(--uwca-border);
    transition: transform 0.3s ease;
}

/* Slight zoom effect when hovering over the image */
.uwca-news-card:hover .uwca-news-thumbnail img {
    transform: scale(1.05);
}

/* Add padding back to the text area */
.uwca-news-content {
    padding: var(--space-md);
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

/* Push the button to the bottom so all buttons align */
.uwca-news-content .btn-secondary {
    margin-top: auto; 
    align-self: flex-start;
}

/* --- Batch 15: Secret Staff Portal Emblem --- */

.footer-bottom {
    position: relative; /* Allows us to position the emblem on the left */
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px; /* Gives the footer some breathing room */
}

/* The Secret Emblem Styling */
.staff-secret-link {
    position: absolute;
    left: 0; /* Pushes it to the far left */
    bottom: 10px;
    opacity: 0.3; /* Very faded so it blends into the background */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.staff-secret-link img {
    height: 45px; /* Size of the emblem */
    width: auto;
}

/* Lights up brightly when hovered */
.staff-secret-link:hover {
    opacity: 1; 
    transform: scale(1.1);
}

/* --- Batch 16: Hero Image, Zoom & Scroll Arrow --- */

.uwca-hero-image-bg {
    position: relative;
    /* REPLACE THE URL BELOW WITH YOUR FLEET IMAGE */
    background-image: url('/wp-content/uploads/2026/11/Blue-UWCA-Sanitation-Truck-Fleet.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Changed to min-height so it can grow if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--uwca-navy); /* Fallback */
    padding: 120px 20px 80px; /* Adds space at the top for the header and bottom for the arrow */
}

/* Dark Blue Overlay so white text is readable */
.uwca-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 72, 0.75); /* Navy blue with 75% opacity */
    z-index: 1;
}

.uwca-hero-image-bg .container {
    position: relative;
    z-index: 2; /* Keeps text above the overlay */
}

.uwca-hero-image-bg h1 {
    color: var(--uwca-white);
    font-size: 3.5rem;
}

.uwca-hero-image-bg p {
    color: var(--uwca-pale-blue);
}

/* The Slow Zoom Effect */
.uwca-hero-image-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: inherit; /* grabs the background image */
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); } /* Zooms in by 15% */
}

/* Scroll Arrow */
.uwca-scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--uwca-white);
    opacity: 0.7;
    transition: opacity 0.3s;
    animation: bounce 2s infinite;
}

.uwca-scroll-arrow:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* --- Batch 17: Shrinking Sticky Header --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999; /* Ensures it stays above everything */
    transition: all 0.4s ease;
    padding: 1.5rem 0; /* Larger default padding */
}

/* Fix for the WordPress Admin Bar */
body.admin-bar .site-header {
    top: 32px; /* Pushes the header down below the WP bar */
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* Mobile WP bar is taller */
    }
}

.site-header.header-scrolled {
    padding: 0.5rem 0; /* Shrinks padding */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Adds a subtle shadow */
    background-color: rgba(255, 255, 255, 0.98); /* Slight transparency */
    backdrop-filter: blur(10px); /* Glass effect */
}

/* Shrink the logo inside the header */
.site-header .custom-logo {
    transition: all 0.4s ease;
    max-height: 70px; /* Default size */
}

.site-header.header-scrolled .custom-logo {
    max-height: 45px; /* Shrinks when scrolled */
}

/* (Whatever code was there before, like Batch 17...) */

/* Fix for the WordPress Admin Bar */
body.admin-bar .site-header {
    top: 32px; /* Pushes the header down below the WP bar */
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* Mobile WP bar is taller */
    }
}

/* PASTE THIS PART AT THE VERY BOTTOM */
/* Fix Hero Text on Mobile */
@media (max-width: 768px) {
    .uwca-hero-image-bg h1 {
        font-size: 2.2rem; /* Much smaller than the 3.5rem desktop size */
        line-height: 1.2;
    }
    .uwca-hero-image-bg p {
        font-size: 1rem;
    }
}