/* --- TRI-S BRAND VARIABLES --- */
:root {
    --tris-blue: #004085;
    --tris-green: #2e7d32;
    --tris-light-bg: #f8f9fa;
    --tris-dark: #222;
    --white: #ffffff;
    --tris-accent-green: #4ade80; /* Brighter green for UI highlights */
}

/* --- GLOBAL STYLES --- */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- HEADER & NAVIGATION --- */
.announcement-bar {
    background-color: var(--tris-blue);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.announcement-bar a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.announcement-bar a:hover { color: #cccccc; }

.main-header {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 5px solid var(--tris-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo-container img {
    height: 85px; 
    width: auto;
    display: block;
}

.main-nav ul.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav ul.nav-menu li a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px; /* Dropped by 1px to ensure "Transportation" fits on one line */
    color: var(--tris-blue);
    text-decoration: none;
    transition: 0.3s;
    display: flex; /* Added to help with vertical alignment */
    flex-direction: column;
    align-items: center;
}

.main-nav ul.nav-menu li a:hover { color: var(--tris-green); }

/* Dropdown Logic */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 3px solid var(--tris-green);
}

.dropdown-content li { border-bottom: 1px solid #eee; }
.dropdown-content li a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px !important;
    text-transform: none !important;
}

.dropdown-content li a:hover { background-color: #f8f9fa; color: var(--tris-green) !important; }
.dropdown:hover .dropdown-content { display: block; }
.dropbtn:after { content: ' ▼'; font-size: 9px; vertical-align: middle; }

/* --- TYPOGRAPHY & SECTIONS --- */
h1, h2, h3 { color: var(--tris-blue); text-transform: uppercase; font-weight: bold; }
.section-header {
    border-bottom: 4px solid var(--tris-green);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* --- HERO BANNER --- */
.hero-banner {
    padding: 160px 0;
    color: var(--white);
    text-align: center;
    background: linear-gradient(rgba(0, 64, 133, 0.6), rgba(0, 64, 133, 0.6)), 
                url('../images/tri-s-home-page-hero.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
}
.hero-banner h1 { color: var(--white); font-size: clamp(28px, 5vw, 44px); margin-bottom: 20px; }
.hero-banner p { font-size: 1.25rem; max-width: 850px; margin: 0 auto 40px; font-weight: normal; }

/* --- BUTTONS --- */
.btn-tris {
    display: inline-block;
    padding: 14px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
    text-decoration: none;
    font-size: 14px;
}
.btn-green { background: var(--tris-green); color: var(--white) !important; }
.btn-green:hover { background: #1e5621; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white) !important; }
.btn-outline:hover { background: var(--white); color: var(--tris-blue) !important; }

/* --- REFINED TRUST BAR (2026 EDITION) --- */
.trust-bar { 
    background: linear-gradient(to right, #002b55, #004085); 
    color: var(--white); 
    padding: 15px 0; /* Very slim profile */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.trust-grid { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.trust-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 5px 10px; /* Tight spacing */
}

/* White Vertical Dividers */
.trust-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.4); /* Clear white divider */
}

.trust-item strong {
    display: block;
    font-size: 0.95rem; /* Shrunken significantly */
    color: #4ade80; /* TRI-S Accent Green */
    letter-spacing: 0.5px;
    margin-bottom: 0;
    line-height: 1.2;
}

.trust-item span {
    display: block;
    font-size: 0.65rem; /* Micro-text for sub-label */
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Mobile: 2 Columns, Neatly Stacked */
@media (max-width: 768px) {
    .trust-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two clear columns */
        gap: 10px 0;
    }
    
    .trust-item {
        padding: 10px 5px;
    }

    /* Remove dividers on mobile to keep it clean */
    .trust-item:after {
        display: none !important;
    }
    
    /* Add a subtle border to separate the 2x2 grid if desired */
    .trust-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* --- COMPACT SERVICES SECTION --- */
.services-section-compact { padding: 60px 0; background: #ffffff; }
.compact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.compact-card {
    border: 1px solid #e1e1e1;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
    background: var(--tris-light-bg);
    border-top: 3px solid var(--tris-blue);
}
.compact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-top-color: var(--tris-green); background: #fff; }
.compact-card h3 { font-size: 15px; margin: 0 0 10px 0; min-height: 40px; display: flex; align-items: center; }
.compact-card p { font-size: 13px; color: #555; margin: 0; }

/* --- HOME DESCRIPTIVE SERVICES (Z-PATTERN) --- */
.home-services-descriptive { padding: 80px 0; background-color: #ffffff; }
.tris-row { display: flex; align-items: center; margin-bottom: 80px; flex-wrap: wrap; }
.tris-row-reverse { flex-direction: row-reverse; }
.tris-col { flex: 1; min-width: 300px; padding: 0 30px; }
.tris-service-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.tris-service-content h3 { font-size: 1.5rem; margin-top: 0; }
.tris-service-content p { line-height: 1.8; color: #444; }
.tris-link { color: var(--tris-accent-green); font-weight: bold; text-decoration: none; }

/* --- CITY GRID --- */
.city-item {
    background: #fff;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: var(--tris-blue);
    font-size: 14px;
}

/* --- LISTS --- */
.list-checks { list-style: none; padding: 0; }
.list-checks li { margin-bottom: 15px; position: relative; padding-left: 25px; }
.list-checks li:before { content: "\2713"; color: var(--tris-green); font-weight: bold; position: absolute; left: 0; }

/* --- FOOTER --- */
.main-footer { background: var(--tris-dark); color: #ccc; padding: 70px 0 0; border-top: 6px solid var(--tris-green); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; padding-bottom: 50px; }
.footer-h4 { color: var(--white); border-bottom: 2px solid var(--tris-green); padding-bottom: 10px; margin-bottom: 25px; }
.footer-bottom { text-align: center; padding: 25px 0; background: rgba(0,0,0,0.3); font-size: 13px; }

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 992px) {
    .main-header {
        padding: 10px 0 35px 0; 
    }

    .header-flex { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center; 
    }

    .main-nav ul.nav-menu { 
        gap: 15px; 
        row-gap: 35px; 
        flex-wrap: wrap; 
        justify-content: center; 
    }

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

@media (max-width: 768px) {
    /* Fix: Button Stacking & Spacing */
    .hero-banner { 
        padding: 80px 0; 
    }
    
    .hero-banner .btn-tris,
    section[style*="background: var(--tris-green)"] .btn-tris {
        display: block; /* Stack buttons vertically */
        margin: 10px auto !important; /* Center and add vertical gap */
        max-width: 280px;
    }
    
    .hero-banner h1 { 
        font-size: 30px; 
    }

    /* Fix: Service Area 2-Column Grid */
    .city-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .trust-item { 
        flex: 0 0 50%; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
    }
    
    .trust-item:after { 
        display: none; 
    } 
    
    .tris-row { 
        margin-bottom: 40px; 
    }
    
    .tris-service-img { 
        height: 280px; 
    }
}

@media (max-width: 576px) {
    .compact-grid { 
        grid-template-columns: 1fr; 
    }
    
    .trust-item { 
        flex: 0 0 100%; 
    }
}

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #002b55;
    color: white;
    padding: 20px;
    display: none; /* Hidden by default, shown via JS */
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.cookie-btn {
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}
.accept-btn { background: #4ade80; color: #000; }
.reject-btn { background: transparent; color: #fff; border: 1px solid #fff; }
