:root {
    --primary: #005A9C;
    --secondary: #4f5a5f;
    --bg-light: #f4f7f9;
    --text-dark: #1e293b; 
    --text-muted: #475569;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.025em;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

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

.menu-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.2);
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 90, 156, 0.3);
    background: #004d85;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
}

.mobile-only { display: none; }

/* Main Padding to prevent overlap */
main {
    padding-top: 120px;
    min-height: 80vh;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 24px;
    margin-bottom: 80px;
}

.bento-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-hero { 
    grid-column: span 8; 
    grid-row: span 4; 
    background: linear-gradient(135deg, var(--primary) 0%, #003d6b 100%); 
    color: var(--white); 
    z-index: 1;
}

.bento-hero h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 1.5rem; letter-spacing: -0.05em; }
.bento-hero h3 { font-size: inherit; margin-bottom: 1rem; }
.bento-hero p { font-size: 1.25rem; color: rgba(255,255,255,0.85); max-width: 80%; }

.bento-stats { grid-column: span 4; grid-row: span 2; text-align: center; }
.bento-service { grid-column: span 4; grid-row: span 2; }
.bento-half { grid-column: span 6; grid-row: span 3; }
.bento-large { grid-column: span 6; grid-row: span 3; }
.bento-medium { grid-column: span 3; grid-row: span 3; }
.bento-wide { grid-column: span 12; grid-row: span 3; }

/* Primary background variants */
.bento-primary-bg {
    background: var(--primary) !important;
}
.bento-primary-bg h1, .bento-primary-bg h2, .bento-primary-bg h3 {
    color: var(--white) !important;
}
.bento-primary-bg p {
    color: rgba(255,255,255,0.85) !important;
}
.bento-primary-bg ul li {
    color: rgba(255,255,255,0.85) !important;
}

.bento-content-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.bento-img {
    grid-column: span 4;
    grid-row: span 2;
    padding: 0;
}

.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 2.75rem;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for cases where JS might fail */
.no-js .reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Services Icons */
.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(0, 90, 156, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

/* City Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px;
    margin-top: 32px;
}

.city-link {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid #e2e8f0; 
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.city-badge {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.city-link:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.city-link:hover .city-name {
    color: var(--primary);
}

/* Footer */
footer {
    background: #0f172a;
    color: var(--white);
    padding: 96px 0 48px;
    margin-top: 120px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-hero { grid-column: span 12; }
    .bento-stats, .bento-service, .bento-img, .bento-large, .bento-medium { grid-column: span 6; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .bento-hero h1 { font-size: 2.75rem; }
    .bento-content-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { top: 0; }
    nav { border-radius: 0; border: none; border-bottom: 1px solid var(--border-glass); padding: 16px 24px; }
    
    .menu-toggle { display: block; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 120px 32px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        z-index: 1000;
        gap: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 16px 0;
        color: var(--text-dark);
        font-weight: 500;
    }

    .nav-links li.mobile-only {
        border-bottom: none;
        margin-top: 32px;
    }

    .nav-links li.mobile-only .cta-btn {
        width: 100%;
        text-align: center;
        padding: 16px;
    }
    
    .bento-stats, .bento-service, .bento-half, .bento-img, .bento-wide, .bento-large, .bento-medium { grid-column: span 12; }
    .bento-hero h1 { font-size: 2.25rem; }
    .section-title h2 { font-size: 2rem; }
    .bento-content-cols { grid-template-columns: 1fr; }
    
    main { padding-top: 100px; }
}