:root {
    --primary-color: #008080;
    --secondary-color: #f1f2f6;
    --text-color: #2f3542;
    --light-text: #333333;
    --white: #ffffff;
    --accent: #e15f41;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.s2f-navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.s2f-navbar-top {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 5px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.s2f-navbar-top a {
    color: var(--white);
}
.s2f-navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
}
.s2f-navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}
.s2f-navbar-nav {
    display: flex;
    gap: clamp(8px, 1.2vw, 20px);
    align-items: center;
    flex-wrap: nowrap;
}
.s2f-navbar-nav a, .s2f-dropbtn {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.s2f-navbar-nav a:hover, .s2f-dropdown:hover .s2f-dropbtn {
    color: var(--accent);
}

/* Dropdown Hover on Desktop */
@media (min-width: 992px) {
    .s2f-dropdown:hover .s2f-dropdown-content {
        display: block;
    }
    .s2f-dropdown-content a {
        text-align: left;
    }
    /* Align last dropdown content to the right edge of trigger */
    .s2f-navbar-nav .s2f-dropdown:last-of-type .s2f-dropdown-content {
        left: auto;
        right: 0;
    }
}

/* Dropdown CSS */
.s2f-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.s2f-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 0;
}
.s2f-dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}
.s2f-dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--accent);
}
.s2f-dropdown.active .s2f-dropdown-content {
    display: block;
}
.btn-quote {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 10%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Perfect balance for visibility and text contrast */
}
.hero-content {
    position: relative;
    color: var(--white);
    max-width: 800px;
    z-index: 2;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 600px;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(225, 95, 65, 0.4);
    display: inline-block;
}
.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(225, 95, 65, 0.6);
}

/* Services Section */
.services-section {
    padding: 35px 40px;
    background-color: var(--white);
}
.services-section h2 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card-body {
    padding: 20px;
}
.service-card-body h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.service-card-body p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.service-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-details-list li {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.service-details-list li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 8px;
    font-weight: bold;
}

/* Sustainability Banner */
.sustainability-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/sustainability_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 80px;
}
.sustainability-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,40,80,0.6);
}
.sustainability-content {
    position: relative;
    color: var(--white);
    text-align: right;
    max-width: 500px;
}
.sustainability-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Global Solutions */
.global-solutions {
    padding: 35px 40px;
    background-color: var(--secondary-color);
    text-align: center;
}
.global-solutions h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 40px;
}
.solutions-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.solution-item {
    background-color: var(--primary-color);
    color: var(--white);
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
}
.solution-item:hover {
    transform: translateY(-5px);
    background-color: var(--accent);
}
.solution-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.solution-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Premium Footer */
.s2f-footer {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 70px 0 20px;
    font-family: 'Inter', sans-serif;
}
.s2f-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.s2f-footer-newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.1), rgba(0, 77, 77, 0.3));
    border: 1px solid rgba(0, 128, 128, 0.3);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
}
.newsletter-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}
.newsletter-text p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 450px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border-radius: 8px;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}
.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.2);
}
.newsletter-form button {
    padding: 14px 28px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.newsletter-form button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}
.s2f-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.s2f-footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}
.s2f-footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 320px;
}
.s2f-social-links {
    display: flex;
    gap: 12px;
}
.s2f-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.s2f-social-links a:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}
.s2f-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.s2f-footer-col ul li {
    margin-bottom: 15px;
}
.s2f-footer-col ul a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}
.s2f-footer-col ul a:hover {
    color: var(--accent);
    transform: translateX(4px);
}
.s2f-contact-info li {
    display: flex;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    align-items: flex-start;
}
.s2f-contact-info i {
    color: var(--primary-color);
    margin-top: 4px;
}
.s2f-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 15px;
}
.s2f-footer-legal {
    display: flex;
    gap: 20px;
}
.s2f-footer-legal a {
    color: #64748b;
    transition: color 0.2s ease;
}
.s2f-footer-legal a:hover {
    color: var(--white);
}
/* Mega Menu Dropdown */
.s2f-dropdown.active .s2f-dropdown-content.s2f-dropdown-grid {
    display: flex !important;
}
.s2f-dropdown-content.s2f-dropdown-grid {
    display: none;
    position: absolute;
    background-color: var(--white);
    box-shadow: 0px 10px 30px 0px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 25px;
    gap: 30px;
    min-width: 780px;
    border-top: 4px solid var(--accent);
}
.s2f-dropdown-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 230px;
}
.s2f-dropdown-header {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 6px;
}
.s2f-dropdown-column a {
    color: var(--text-color);
    padding: 8px 0;
    text-decoration: none;
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}
.s2f-dropdown-column a:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

/* Hamburger Button styles */
.s2f-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.s2f-nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Animate hamburger to X when active */
.s2f-nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.s2f-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.s2f-nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 991px) {
    .s2f-nav-toggle {
        display: flex;
    }
    .s2f-navbar-top {
        display: none;
    }
    .s2f-navbar-main {
        padding: 10px 15px;
        position: relative;
    }
    .s2f-navbar-brand span {
        font-size: 1.3rem;
    }
    .s2f-navbar-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px 30px;
        border-top: 1px solid var(--secondary-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        gap: 12px;
        z-index: 1500;
    }
    .s2f-navbar-nav.active {
        display: flex;
    }
    .s2f-navbar-nav a {
        width: 100%;
        text-align: left !important;
        padding: 8px 0;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
    }
    .btn-quote {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        margin-top: 10px;
        box-sizing: border-box;
    }
    .s2f-dropdown {
        width: 100%;
        text-align: left;
    }
    .s2f-dropdown-content {
        position: static;
        transform: none;
        min-width: auto;
        flex-direction: column;
        gap: 10px;
        padding: 5px 0 5px 20px;
        border-top: none;
        box-shadow: none;
        border-left: 2px solid var(--accent);
        margin-top: 5px;
        margin-bottom: 5px;
    }
    .s2f-dropdown-content a {
        text-align: left !important;
        padding: 6px 0 !important;
        font-size: 0.85rem;
        opacity: 0.9;
    }
    .s2f-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .hero { padding-left: 15px; padding-right: 15px; text-align: center; justify-content: center; min-height: 250px; height: auto; padding-top: 40px; padding-bottom: 40px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 25px; }
    .btn-primary { padding: 12px 25px; font-size: 1rem; }
    .sustainability-banner { justify-content: center; padding: 40px 20px; text-align: center; height: auto; }
    .sustainability-content h2 { font-size: 1.8rem; }
    .sustainability-content p { font-size: 0.95rem; }
    
    .global-solutions { padding: 50px 20px; }
    .global-solutions h2 { font-size: 1.8rem; }
    .solutions-grid { gap: 15px; }
    .solution-item { width: 120px; height: 120px; }
    .solution-item i { font-size: 2rem; }
    
    .s2f-footer { padding: 50px 0 20px; }
    .s2f-footer-newsletter { padding: 30px 20px; flex-direction: column; text-align: center; }
    .newsletter-form { width: 100%; max-width: 100%; flex-direction: column; }
    .newsletter-form button { width: 100%; }
    .s2f-footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .s2f-footer-brand p { max-width: 100%; }
    .s2f-footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
}
@media (max-width: 576px) {
    .hero { min-height: 250px; padding-top: 30px; padding-bottom: 30px; }
    .hero-content h1 { font-size: 1.8rem; margin-bottom: 15px; }
    .hero-content p { font-size: 0.9rem; }
    
    .sustainability-banner { padding: 20px 15px; }
    
    .services-section {
        padding: 40px 15px;
    }
    .services-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .service-card img {
        height: 90px;
    }
    .service-card-body {
        padding: 12px 10px;
    }
    .service-card-body h3 {
        font-size: 0.85rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    .service-card-body p {
        font-size: 0.72rem;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    .service-details-list {
        display: none !important; /* Hide list bullets on mobile to fit 2 cards */
    }
    
    .s2f-footer-grid {
        gap: 20px;
    }
}

/* 2 Column Megamenu Styles */
@media (min-width: 992px) {
    .s2f-megamenu-2col {
        display: flex;
        gap: 25px;
        padding: 15px 20px;
        min-width: 520px;
    }
    .s2f-megamenu-col {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }
    .s2f-megamenu-2col a {
        padding: 8px 12px !important;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: background-color 0.2s;
    }
    .s2f-megamenu-2col a:hover {
        background-color: rgba(0, 128, 128, 0.05);
    }
}
@media (max-width: 991px) {
    .s2f-megamenu-2col {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
    }
    .s2f-megamenu-col {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
}

/* 3 Column Megamenu Styles */
@media (min-width: 992px) {
    .s2f-megamenu-3col {
        display: flex;
        gap: 30px;
        padding: 20px 25px;
        min-width: 820px;
    }
    .s2f-megamenu-3col a {
        padding: 8px 12px !important;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: background-color 0.2s;
    }
    .s2f-megamenu-3col a:hover {
        background-color: rgba(0, 128, 128, 0.05);
    }
}
@media (max-width: 991px) {
    .s2f-megamenu-3col {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
    }
}

/* Center positioning for large megamenu dropdowns */
@media (min-width: 992px) {
    .s2f-dropdown-center {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Responsive Scaling for Desktop Nav to prevent horizontal scrolling */
@media (min-width: 992px) and (max-width: 1380px) {
    .s2f-navbar-main {
        padding: 15px 15px !important;
    }
    .s2f-navbar-brand {
        margin-right: 15px !important;
    }
    .s2f-navbar-brand span {
        font-size: 1.3rem !important;
    }
    .s2f-navbar-brand div {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
    }
    .s2f-navbar-nav {
        gap: 8px !important;
    }
    .s2f-navbar-nav a, .s2f-dropbtn {
        font-size: 0.8rem !important;
    }
    .btn-quote {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS & OVERFLOW SAFEGUARDS
   ========================================================================== */
img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    /* Prevent all grid layouts with minmax from blowing out mobile width */
    [style*="display: grid"],
    [style*="display:grid"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Container safeguards */
    .container, .s2f-container, .minimal-service-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
    }

    /* Home transit hubs grid responsive fix */
    .home-pad [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .home-pad [style*="grid-template-columns"] > div {
        padding: 22px 18px !important;
    }
}

@media (max-width: 480px) {
    .container, .s2f-container, .minimal-service-page .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}


 
 