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

:root {
    --primary-dark: #1A1B1F;
    --primary-white: #FFFFFF;
    --primary-green: #128C7E;
    --accent-green: #08FC4D;
    --accent-green-dark: #3CCF4E;
    --accent-cyan: #07FCFC;
    --active-blue: #0082F3;
    --nav-gray: #222222;
    --transition: all 0.3s ease;
    --scrolling-banner-height: 44px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'Spinnaker', sans-serif;
    line-height: 1.3;
    color: var(--primary-dark);
    overflow-x: hidden;
    padding-bottom: var(--scrolling-banner-height);
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 40px;
    }
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.mobile-menu-btn span {
    background: #222;
}

.nav-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--nav-gray);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.nav-menu a:hover {
    color: var(--active-white);
}

.nav-cta {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-cta.call {
    background: #0082F3;
    color: #fff;
}

.nav-cta.whatsapp {
    background: #25D366;
    color: #fff;
}


/* Active page styling */
.nav-menu a.active {
    color: var(--active-blue) !important;
    font-weight: 700;
}

.btn-contact {
    background: var(--primary-dark);
    color: var(--primary-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-contact:hover {
    background: #333;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 95px;
    background: var(--primary-dark);
    background-image: url('../images/Singapore.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4.5rem 2rem 4rem;
    text-align: center;
    color: var(--primary-white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 27, 31, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    color: var(--accent-green);
    font-family: 'Kalam', cursive;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
    color: white;
    font-family: 'Gaegu', cursive;
}

.hero .hero-cta-text {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    line-height: 1.6;
    font-family: 'Gaegu', cursive;
}

.hero a:not(.btn-jumbo) {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.hero a:not(.btn-jumbo):hover {
    color: var(--accent-green);
}

/* Primary hero button */
.btn-jumbo {
    background: #0082F3;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 2rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-jumbo:hover {
    background: #006edc;
    color: #25D366;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Slider */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 1.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: var(--transition);
    color: var(--primary-dark);
}

.slider-btn:hover {
    background: var(--primary-white);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.slider-dots {
    position: absolute;
    bottom: 16px;               /* sits on image */
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    padding: 0;                 /* REMOVE gap */
    background: none;           /* REMOVE white bar */
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.2rem 1.5rem;
}

/* Reduce gap between consecutive containers */
.container + .container {
    padding-top: 1rem;
}

/* Motto Section */
.motto {
    text-align: center;
    margin-bottom: 2.5rem;
}

.label {
    color: var(--accent-green-dark);
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Gaegu', cursive;
}

.motto h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-dark);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    font-family: 'Kalam', cursive;
    font-style: italic;
}

.motto-p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.divider {
    width: 100px;
    height: 3px;
    background: var(--accent-green-dark);
    margin: 3rem auto;
}

/* Emergency emphasis styling */
.emergency-highlight {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 3rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Emergency title layout */
.emergency-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Icon wrapper */
.emergency-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon itself */
.about-grid .emergency-icon-wrap img {
    height: 34px;
    width: auto;
    border-radius: 0px;
}

/* Title text */
.emergency-text {
    font-size: 2rem;
    line-height: 1.2;
    transition: color 0.25s ease;
}

/* Bigger emergency button */
.emergency-highlight .btn-learn {
    font-size: 1.05rem;
    padding: 1.2rem 3rem;
    letter-spacing: 1.5px;
    pointer-events: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.emergency-highlight:hover {
    background-color: #f8f9fb;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.emergency-highlight .btn-learn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Change text colour when hovering anywhere on the card */
.emergency-highlight:hover .emergency-text {
    color: #c62828; /* emergency red */
}

.emergency-highlight:hover .emergency-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

/* Emergency icon animation */
.emergency-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.service-card-emergency:hover .emergency-icon {
    animation: emergency-pulse 1.4s infinite;
}

@keyframes emergency-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .service-card-emergency .emergency-icon {
        animation: emergency-mobile-pulse 2.2s infinite;
    }
}

@keyframes emergency-mobile-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "content image";
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #FDFDFB;
}

.about-content {
    grid-area: content;
}

.about-image {
    grid-area: image;
}

.about-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: none;
}

.about-content .label {
    text-align: left;
    color: var(--accent-green-dark);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-family: 'Gaegu', cursive;
}

.about-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
    font-family: 'Spinnaker', sans-serif;
}

.btn-learn {
    background: var(--primary-dark);
    color: var(--primary-white);
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-learn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem;
    margin-top: 3rem;
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem;
    text-align: left;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    transition: color 0.25s ease;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.service-card .card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.service-card-emergency:hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

.service-card:hover h3 {
    color: var(--accent-green-dark);
}

/* Keep buttons above the overlay */
.service-card .btn-learn {
    position: relative;
    z-index: 2;
}

.services-grid .service-card {
    text-align: center;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* 🏠 Residential – gentle lift */
.service-card:hover .service-icon.home {
    transform: translateY(-6px);
}

/* 🚗 Automotive – slight rotate + lift */
.service-card:hover .service-icon.auto {
    transform: translateY(-4px) rotate(-6deg);
}

/* 🏢 Commercial – steady scale */
.service-card:hover .service-icon.commercial {
    transform: scale(1.12);
}

/* 🔐 Smart lock – glow effect (very modern) */
.service-card:hover .service-icon.smart {
    filter: drop-shadow(0 0 6px rgba(60, 207, 78, 0.7));
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .service-icon.home {
        animation: icon-float 3.5s ease-in-out infinite;
    }

    .service-icon.auto {
        animation: icon-sway 4s ease-in-out infinite;
    }

    .service-icon.commercial {
        animation: icon-breathe 4s ease-in-out infinite;
    }

    .service-icon.smart {
        animation: smart-glow 3.8s ease-in-out infinite;
    }
}

@keyframes icon-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes icon-sway {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes icon-breathe {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes smart-glow {
    0% {
        filter: drop-shadow(0 0 0 rgba(60,207,78,0));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(60,207,78,0.8));
    }
    100% {
        filter: drop-shadow(0 0 0 rgba(60,207,78,0));
    }
}

/* Emergency card clickable – stable fix */
.service-card-emergency {
    position: relative;
    cursor: pointer;
}

/* Full-card link overlay */
.service-card-emergency .card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Content layers */
.service-card-emergency .about-content,
.service-card-emergency .about-image {
    position: relative;
    z-index: 3;
    pointer-events: none; /* IMPORTANT */
}

/* Allow interaction inside content */
.service-card-emergency .about-content *,
.service-card-emergency .about-image img {
    pointer-events: none;
}

/* Button must stay clickable */
.service-card-emergency .btn-learn {
    position: relative;
    z-index: 6;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .emergency-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .emergency-icon-wrap img {
        width: 42px;
    }

    .emergency-text {
        font-size: 1.8rem;
    }
}

/* CTA Section */
.cta-section {
    background: #f8f9fa;
    color: var(--primary-dark);
    padding: 0.5rem 1.5rem 0.5rem;
    text-align: center;
}

/* CTA Heading */
.cta-section h2 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-family: 'Kalam', cursive;
    font-style: italic;
}

/* CTA Text */
.cta-section p {
    font-size: 1.7rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
    color: #666;
    font-family: 'Gaegu', sans-serif;
}

/* CTA Buttons Wrapper */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* CTA Buttons */
.cta-section .btn-jumbo {
    background: var(--primary-dark);
    color: var(--primary-white);
    margin-top: 0;
}

/* CTA Button Hover */
.cta-section .btn-jumbo:hover {
    background: #333;
}

/* Desktop: optional horizontal buttons */
@media (min-width: 769px) {
    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--primary-white);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-family: 'Spinnaker', sans-serif;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links img {
    width: 30px;
    height: 30px;
    transition: var(--transition);
}

.social-links img:hover {
    transform: scale(1.2);
}

/* ===============================
   Footer Settings Pill
   =============================== */

.footer-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Small pill button */
.settings-pill {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #444;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    transition: all 0.25s ease;
}

.settings-pill:hover {
    color: #fff;
    border-color: #666;
}

/* Expandable panel */
.settings-panel {
    margin-top: 0.35rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, max-height 0.25s ease;
}

/* Open state */
.footer-settings.open .settings-panel {
    opacity: 1;
    max-height: 120px;
    pointer-events: auto;
}

/* Seasonal toggle styling (reuse yours, minor polish) */
.seasonal-toggle {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.seasonal-toggle.active {
    color: #128c7e;
    font-weight: 600;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        display: flex;              /* FIX: must be flex */
        flex-wrap: wrap;            /* allow wrapping */
        justify-content: center;
        gap: 0.4rem 1rem;           /* row gap / column gap */
        margin-bottom: 0.2rem;
    }

    /* Keep icons inline */
    .social-links a {
        flex: 0 0 auto;
    }

    /* Push seasonal toggle to next line */
    .social-links .footer-settings {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        padding-top: 0.5rem;
        text-align: center;
    }
}

/* Floating Buttons (Desktop default) */
.floating-btns {
    position: fixed;
    bottom: calc(20px + var(--scrolling-banner-height));
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 999;
}

/* Base button style */
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;

    background: #25D366;          /* WhatsApp green */
    color: #000000;               /* WhatsApp text BLACK */

    padding: 1rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    border: none;
}

/* Call button override */
.floating-btn.call {
    background: #0082F3;          /* Blue */
    color: #ffffff;               /* Call text WHITE */
}

/* Hover effect (desktop only) */
.floating-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Icon base */
.btn-icon {
    width: 30px;                  /* WhatsApp icon default */
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Call icon slightly larger */
.floating-btn.call .btn-icon {
    width: 35px;
    height: 35px;
}

/* ============================= */
/* MOBILE: FULL-WIDTH STACKED   */
/* ============================= */
@media (max-width: 768px) {

    .floating-btns {
        position: fixed;
        bottom: 39px;
        left: 0;
        right: 0;

        width: 100%;
        display: flex;
        flex-direction: row;     /* left / right */
        z-index: 2000;
        transition: top 0.3s ease, bottom 0.3s ease;
    }

    .floating-btn {
        width: 50%;
        border-radius: 0;

        display: flex;
        align-items: center;     /* KEY CHANGE */
        gap: 0.7rem;

        padding: 1rem 0.9rem;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.35;

        box-shadow: none;
        text-align: left;
        white-space: normal;
    }

    /* Text wraps naturally */
    .btn-text {
        display: block;
        line-height: 1.35;
    }

    /* Icon now spans full text height visually */
    .btn-icon {
        width: 40px;
        height: auto;            /* IMPORTANT */
        flex-shrink: 0;
    }

    /* Call button slightly stronger */
    .floating-btn.call {
        font-size: 1rem;
    }

    .floating-btn.call .btn-icon {
        width: 45px;
        height: auto;
    }

    /* Mobile floating buttons when docked at top */
    .floating-btns.at-top {
        top: 87px;        /* height of your navigation bar */
        bottom: auto;
    }

    body.menu-open .floating-btns {
        top: auto !important;
        bottom: 0 !important;
    }

}

/* Popup Notice */
.popup-notice {
    position: fixed;
    bottom: calc(20px + var(--scrolling-banner-height));
    left: 20px;
    background: var(--primary-white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 320px;
    z-index: 998;
    animation: slideIn 0.5s ease;
}

.popup-notice.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.popup-icon {
    width: 60px;
    height: auto;
    border-radius: 10%;
}

.popup-text h4 {
    margin-bottom: 0.3rem;
    color: var(--accent-green-dark);
    font-family: 'Gaegu', cursive;
    font-size: 1.3rem;
}

.popup-text a {
    color: var(--accent-green-dark);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.popup-btn {
    background: var(--accent-green);
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: block;
    text-align: center;
    transition: var(--transition);
    font-family: 'Gaegu', cursive;
    font-size: 1rem;
}

.popup-btn:hover {
    background: var(--primary-green);
    transform: scale(1.05);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 87px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 95px);
        background: var(--primary-white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 4rem 2rem;
        margin-top: 95px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "content";
        text-align: center;
        gap: 3rem;
        display: grid;
    }

    .about-image {
        order: -1;
    }
    
    .about-grid.reverse {
        direction: rtl;
    }

    .about-content {
        text-align: center;
    }

    .about-content .emergency-list {
        text-align: left;
    }

    .about-content .label,
    .about-content h2 {
        text-align: center;
    }

    .btn-learn {
        margin: 1.5rem auto 0;
        display: inline-block;
    }

    .about-grid.reverse > * {
        direction: ltr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .popup-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        margin-bottom: 0;
    }


    .container {
        padding: 3rem 1.5rem;
    }

    .btn-jumbo {
        font-size: 0.85rem;
        padding: 0.9rem 2rem;
    }
}

@media (max-width: 480px) {
    .logo-link img {
        height: 50px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .popup-notice {
        margin-bottom: 0;
    }
}

/* Hide RFL shortcut popup on mobile */
@media (max-width: 768px) {
    .popup-notice {
        display: none !important;
    }
}

/* Christmas Snowfall */
#snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* New Year Page */
#new-year-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
}

/* Chinese New Year Red Packets Page */
#red-packets {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Mid Autumn Lantern Page */
#mid-autumn {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===============================
   Seasonal Consent Banner
   =============================== */

.seasonal-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;

    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    max-width: 520px;
    width: calc(100% - 2rem);
    z-index: 3000;

    transition:
        transform 0.4s ease,
        opacity 0.25s ease;
}

.seasonal-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.seasonal-banner-inner {
    display: flex;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    align-items: center;
    justify-content: space-between;
}

/* Text */
.seasonal-banner-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.35;
}

.seasonal-banner-text strong {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

/* Actions */
.seasonal-banner-actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

/* Buttons */
.seasonal-banner button {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* KEEP EFFECTS (GREEN / PRIMARY) */
.seasonal-banner .btn-keep {
    background-color: #128c7e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(18,140,126,0.25);
}

.seasonal-banner .btn-keep:hover {
    background-color: #0f766e;
}

/* TURN OFF (RED / DESTRUCTIVE) */
.seasonal-banner .btn-off {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.seasonal-banner .btn-off:hover {
    background-color: #fecaca;
}

/* Close */
.btn-close {
    background: none;
    font-size: 1rem;
    color: #888;
    padding: 0 0.35rem;
}

.btn-close:hover {
    color: #000;
}

/* ===============================
   Mobile tweaks
   =============================== */
@media (max-width: 480px) {
    .seasonal-banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
    }

    .seasonal-banner-text {
        align-items: center;
    }

    .seasonal-banner-actions {
        width: 100%;
        justify-content: center;
        gap: 0.6rem; /* keeps buttons close */
    }
}

/* About Page Hero */
.page-hero {
    margin-top: 95px;
    background: var(--primary-dark);
    background-image: url('../images/Singapore.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    color: var(--primary-white);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 27, 31, 0.6);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.page-hero h1 {
    font-size: 3.2rem;
    font-family: 'Kalam', cursive;
    color: var(--accent-green);
    font-style: italic;
    margin-bottom: 1rem;
}

.page-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

/* Hero typography variants */
.hero-typography-large h1 {
    font-size: 3.2rem;
    font-family: 'Kalam', cursive;
    color: var(--accent-green);
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-typography-large p {
    font-size: 1.8rem;
    color: white;
    font-family: 'Gaegu', cursive;
}

.container-tight {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
}

.container-google-form {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.center-text {
    text-align: center;
}

.no-top-padding {
    padding-top: 0 !important;
    padding-bottom: 0;
}

.trust-line {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    iframe[aria-label="Contact form"] {
        height: 650px;
        width: 100%;
    }
}

/* REVIEWS PAGE (HOME STYLE) */

/* Reviews content section */
.reviews-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    text-align: center;
}

/* "What our customers say" image */
.reviews-title-image {
    display: block;
    max-width: 420px;
    width: 100%;
    margin: 0 auto 3rem;
}

/* Elfsight wrapper */
.reviews-widget {
    max-width: 1100px;
    margin: 0 auto;
}

/* ELFSIGHT BRANDING HIDE */

/* Replace with your real Elfsight app class */
.elfsight-app-5c2a0707-5472-4679-afdf-5f91e32c26f6 a[href*="elfsight.com"],
.elfsight-app-5c2a0707-5472-4679-afdf-5f91e32c26f6 footer,
.eapps-widget-toolbar {
    display: none !important;
}

/* Main floating Elfsight logo / button */
.eapps-widget-toolbar,
.eapps-widget-toolbar a,
.eapps-widget-toolbar-content,
.eapps-widget-toolbar-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Any remaining Elfsight links */
a[href*="elfsight.com"] {
    display: none !important;
}

/* REVIEWS MOBILE */
@media (max-width: 768px) {
    .reviews-title-image {
        max-width: 300px;
        margin-bottom: 2.5rem;
    }
}

/* ERROR PAGE */

.error-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.error-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #555;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CONTACT PAGE */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
}

.contact-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-item a {
    color: var(--active-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-form form {
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid textarea {
    grid-column: span 2;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 2rem;
}

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

    .form-grid textarea {
        grid-column: span 1;
    }
}

/* ======================================================
   FAQ – Shared Styles (Homepage + FAQ Page)
   ====================================================== */

.faq-preview,
.faq-container {
    position: relative;
    z-index: 10;
    margin: 5rem auto;
    padding: 4rem 3rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.05);
}

/* Header */
.faq-header {
    font-family: 'Kalam', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-header h2 {
    margin-bottom: 0.5rem;
}

.faq-header p {
    font-family: 'Harmattan', sans-serif;
    color: #666;
}

/* List */
.faq-list {
    font-family: 'Harmattan', sans-serif;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--accent-green-dark);
    border-top: 1px solid #eee;
}

.faq-list h2 {
    margin: 3.5rem 0 1.5rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    overflow: visible;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Question button */
.faq-question {
    font-family: 'Work Sans', sans-serif;
    width: 100%;
    line-height: 1.45;
    padding: 1.2rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--active-blue);
}

.faq-question:hover {
    opacity: 0.85;
}

/* Plus icon */
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.25s ease;
}

/* Answer */
.faq-answer {
    font-family: 'Spinnaker', sans-serif;
    font-size: 1rem;
    margin-top: 0.2rem;
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: #555;
}

/* Active state */
.faq-item.active {
    background: rgba(0, 0, 0, 0.015);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Link */
.faq-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
}

/* Keep seasonal canvases decorative only */
canvas {
    pointer-events: none;
    z-index: 1;
}

/* ======================================================
   FAQ Page Only
   ====================================================== */

.faq-hero {
    min-height: 60vh;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
}

.faq-hero h1 {
    font-size: 3.2rem;
    font-family: 'Kalam', cursive;
    color: var(--accent-green);
    font-style: italic;
    margin-bottom: 1rem;
}

.faq-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

/* FAQ SECTION HEADERS */

.faq-section {
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    scroll-margin-top: 140px;
}

.faq-section-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-family: 'Harmattan', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-green-dark);
    text-align: left;

    scroll-margin-top: 140px;

    cursor: pointer;
}

.section-icon {
    font-size: 1.4rem;
    transition: transform 0.25s ease;
}

/* SECTION VISIBILITY (NO HEIGHT ANIMATION) */
.faq-section-content {
    display: none;
    padding-bottom: 1.5rem;
}

/* When section is open, add breathing room */
.faq-section.active {
    margin-bottom: 4rem;
}

.faq-section.active .faq-section-content {
    display: block;
}

/* Active state */
.faq-section.active .section-icon {
    transform: rotate(45deg);
}

.faq-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 3rem;
}

/* Buttons */
/* ===============================
   FAQ Expand / Collapse Buttons
   =============================== */

.faq-control-btn {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;

    background: #ffffff;
    color: #333;

    border: 1px solid #e0e0e0;
    border-radius: 999px;

    padding: 0.55rem 1.4rem;
    cursor: pointer;

    opacity: 0.85;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.15s ease,
        box-shadow 0.25s ease,
        opacity 0.2s ease;
}

/* Hover hint (no commitment yet) */
.faq-control-btn:hover {
    opacity: 1;
    background: #f7f7f7;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Remove default :active colouring (important) */
.faq-control-btn:active {
    transform: translateY(0);
}

/* ===============================
   Persistent Active State
   (added via JS: .active)
   =============================== */

.faq-control-btn.active {
    opacity: 1;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Expand = positive action */
.faq-control-btn[data-action="expand"].active {
    background: linear-gradient(135deg, #0f766e, #0d9488);
}

/* Collapse = neutral reset */
.faq-control-btn[data-action="collapse"].active {
    background: #222;
}

/* Optional visual distinction when idle */
.faq-control-btn[data-action="expand"] {
    border-color: #d0e8e4;
}

.faq-control-btn[data-action="collapse"] {
    border-color: #f0dede;
}

/* =================================
   FAQ Search
   ================================= */

.faq-search {
    display: flex;
    justify-content: center;
    margin: 2rem 0 2.5rem;
}

.faq-search input {
    width: 100%;
    max-width: 420px;

    font-family: 'Public Sans', sans-serif;
    font-size: 0.95rem;

    padding: 0.7rem 1rem;
    border-radius: 999px;

    border: 1px solid #e0e0e0;
    outline: none;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-search input:focus {
    border-color: #9ad6c9;
    box-shadow: 0 0 0 3px rgba(154, 214, 201, 0.25);
}

/* Hide items during search */
.faq-item.hidden {
    display: none;
}

.faq-section.hidden {
    display: none;
}

/* No results message */
.faq-no-results {
    text-align: center;
    margin: 3rem 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.95rem;
    color: #777;
}

/* FAQ Search Highlight */

.faq-highlight {
    background: rgba(255, 230, 150, 0.6);
    padding: 0 2px;
    border-radius: 3px;
}

/* FAQ Category Navigation */
.faq-toc {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.4rem 0.4rem;
    scrollbar-width: none;
}

.faq-toc-wrap {
    position: relative;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.faq-toc-arrow {
    width: 36px;
    height: 36px;
    flex-shrink: 0; /* 🔥 prevents oval distortion */
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease, transform 0.15s ease;
}

.faq-toc-arrow:active {
    transform: scale(0.95);
}

/* Hidden state */
.faq-toc-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.faq-toc a {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.25s ease;
}

.faq-toc a:hover {
    background: #f6f6f6;
    transform: translateY(-1px);
}

/* Active FAQ category */
.faq-toc a.active {
    background: #e8f4f2;
    border-color: #b7ded9;
    color: #128c7e;
}

.faq-toc::-webkit-scrollbar {
    display: none;
}

/* Pills */
.faq-toc-pill {
    flex-shrink: 0;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ddd;
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}

/* Active pill */
.faq-toc-pill.active {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
    animation: pill-bounce 0.35s ease;
}

/* Subtle bounce */
@keyframes pill-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Anchor highlight */
.faq-anchor-highlight {
    animation: faqFlash 1.8s ease;
}

#faqSearch.flash {
    box-shadow: 0 0 0 3px rgba(18,140,126,0.25);
}

/* Back to categories button */
/* ===============================
   FAQ Back to Categories Button
   =============================== */
.faq-back-to-top {
    position: fixed;
    bottom: 120px; /* desktop default, JS does scroll only */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #128c7e;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    z-index: 1100;
}

/* Visible */
.faq-back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===============================
   MOBILE POSITIONING
   =============================== */
@media (max-width: 767px) {
    .faq-back-to-top {
        right: 16px;
        bottom: 150px; /* clears floating buttons */
    }
}

/* ===============================
   DESKTOP POSITIONING
   =============================== */
@media (min-width: 768px) {
    .faq-back-to-top {
        /* Place it LEFT of floating buttons */
        right: 25px; 
        bottom: 200px;
    }
}

@keyframes faqFlash {
    0% {
        background-color: rgba(18, 140, 126, 0.08);
    }
    100% {
        background-color: transparent;
    }
}

@media (max-width: 768px) {
    .faq-preview,
    .faq-container {
        padding: 3rem 1.5rem;
    }

    .faq-question {
        padding: 1.4rem 0;
        font-size: 1rem;
    }

    .faq-section.active {
        margin-bottom: 3rem;
    }

    .faq-section-header {
        justify-content: center;
        text-align: center;
        gap: 0.6rem;
    }

    .faq-section-header .section-icon {
        position: relative;
        top: 1px;
    }

    .faq-section,
    .faq-section-title {
        scroll-margin-top: 200px;
    }

    .faq-control-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }

    .faq-toc {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.4rem;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .faq-toc::-webkit-scrollbar {
        display: none;
    }

    .faq-toc a {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .faq-toc-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #ffffff;
        color: #555;
        font-size: 1.2rem;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        z-index: 5;
        pointer-events: none;
    }

    .faq-toc-arrow.left { left: 6px; }
    .faq-toc-arrow.right { right: 6px; }
}

@media (min-width: 1100px) {
    .faq-toc {
        justify-content: center;
        overflow-x: visible;
    }

    .faq-toc-arrow {
        display: none;
    }
}

/* ======================================================
   Google Form – Responsive Fix
   ====================================================== */

.form-section {
    display: flex;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow-x: hidden;
}

.form-wrapper {
    width: 100%;
    max-width: 900px;
    margin-bottom: 4rem;
}

/* This container prevents overflow */
.form-iframe-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Force iframe to respect viewport */
.form-iframe-container iframe {
    width: 1px;
    min-width: 100%;
    max-width: 100%;
    border: none;
    height: 900px;
}

@media (max-width: 768px) {
    .form-section {
        padding: 2.5rem 1rem;
    }

    .form-iframe-container iframe {
        height: 1100px;
    }
}

.near-me-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #555;
}

/* Emergency list styling */
.emergency-list {
    list-style: disc;
    padding-left: 1.2rem;          /* controls bullet indent */
    margin-top: 1.2rem;
}

.emergency-list li {
    font-family: 'Source Sans 3', sans-serif;
    margin-bottom: 0.7rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* SEO support line */
.seo-support-line {
    background: #f7f7f7;
    padding: 0.8rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.seo-support-line p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-family: 'Spinnaker', sans-serif;
}

.seo-support-line strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ============================= */
/* Fixed Scrolling Trust Banner  */
/* ============================= */

.scrolling-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--scrolling-banner-height);
    background: linear-gradient(
        90deg,
        #1E293B 0%,   /* slate blue */
        #25334A 25%,
        #2C3E5A 50%,
        #25334A 75%,
        #1E293B 100%
    );

    border-top: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    z-index: 998; /* below floating buttons */
}

.scrolling-banner .scrolling-track span {
    display: inline-block;
    padding-right: 3rem;

    font-family: 'Kalam', sans-serif !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.8px;

    color: #F8FAFC !important;
    opacity: 0.9;
}

.scrolling-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.18);
}

/* Moving text */
.scrolling-track {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
}

/* Text style */
.scrolling-track span {
    display: inline-block;
    padding-right: 3rem;
    font-size: 0.85rem;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.6px;
}

/* Gradient fades */
.scrolling-fade {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.scrolling-fade.left {
    left: 0;
    background: linear-gradient(
        to right,
        #1E293B,
        rgba(30,41,59,0)
    );
}

.scrolling-fade.right {
    right: 0;
    background: linear-gradient(
        to left,
        #1E293B,
        rgba(30,41,59,0)
    );
}

/* Animation */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Pause on hover (desktop only) */
@media (hover: hover) {
    .scrolling-banner:hover .scrolling-track {
        animation-play-state: paused;
    }

    .scrolling-banner:hover .scrolling-track span {
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scrolling-banner {
        height: 40px;
    }

    .scrolling-track span {
        font-size: 0.8rem;
    }

    .scrolling-banner .scrolling-track span {
        font-size: 0.9rem;
        padding-right: 2rem;
        letter-spacing: 0.6px;
    }
}
