header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: visible;
}

.logo {
    height: 50px;
    width: auto;
}

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

.nav-menu > li {
    position: relative;
    padding-bottom: 12px;
}

.nav-menu > li > a,
.nav-menu > li > .dropdown-toggle {
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
    display: inline-block;
}

.nav-menu > li > a:hover,
.nav-menu > li > .dropdown-toggle:hover {
    color: var(--primary-red);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    opacity: 0.88;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-red);
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a:hover {
    padding-left: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #999999;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        position: relative;
        z-index: 1005 !important;
        transition: color 0.3s;
    }

    .nav-menu {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 85vw !important;
        max-width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 90px 24px 30px !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 1004 !important;
        opacity: 1 !important;
        transform: translateX(100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s !important;
        visibility: hidden !important;
        overflow-y: auto !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s !important;
    }
    
    /* Optional overlay background for the rest of the screen */
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1003;
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-menu > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
        margin-top: 10px;
    }
    
    .nav-menu > li > a,
    .nav-menu > li > .dropdown-toggle {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    .dropdown-content {
        position: static;
        display: none;
        min-width: 0;
        max-height: none;
        box-shadow: none;
        border: none;
        padding: 0 0 16px 16px;
        margin-top: 0;
        background: transparent;
        border-left: 2px solid #eaeaea;
        margin-left: 8px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 0;
        border-radius: 0;
        font-size: 15px;
        color: #444;
    }

    .dropdown-content a:hover {
        background: transparent;
        padding-left: 5px;
        color: var(--primary-red);
        transition: padding 0.3s, color 0.3s;
    }
}


/* =====================================================
   BASE: tokens + body + container + reset extras
   Used by route pages that don't inline their own CSS.
   Existing city pages keep their inline CSS; this section
   only kicks in where pages don't override.
   ===================================================== */

:root {
    --primary-red: #c41e1a;
    --dark-red: #a81915;
    --text-dark: #1a1a1a;
    --text-gray: #64748b;
    --bg-light: #f9fafb;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   HEADER CTAs (nav buttons + mobile phone + hamburger)
   ===================================================== */

.cta-button {
    background: linear-gradient(135deg, #eb463d 0%, #d13b32 100%);
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(235, 70, 61, 0.3);
    border: none;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(235, 70, 61, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 6px 10px;
}

.mobile-cta-phone {
    display: none;
    background: var(--primary-red);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s;
    display: inline-block;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* =====================================================
   FOOTER base (existing pages have darker version
   inlined; route pages without inlined CSS use this)
   ===================================================== */

footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 0;
}

footer .container {
    max-width: 1200px;
}

footer p {
    margin: 0 0 8px;
    font-size: 14px;
    opacity: 0.85;
}

footer a {
    color: #ffffff;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary-red);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

.social-links a:hover {
    background: rgba(196, 30, 26, 0.4);
}

.social-links img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* =====================================================
   MOBILE: show toggle + phone CTA
   ===================================================== */

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .mobile-cta-phone {
        display: inline-flex;
    }
}


/* =====================================================
   DESKTOP NAV ORGANISATION (1025px and up)
   - 6 menu items + Bel-nu pill on a single tight line
   - Tightens spacing on smaller laptops (1025-1199px)
   - Spacious desktop layout (1200px+)
   ===================================================== */

@media (min-width: 1025px) {
    /* Top-row layout: logo | spacer | nav | cta */
    header nav {
        gap: 16px;
    }

    .nav-menu {
        gap: 22px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .nav-menu > li {
        padding-bottom: 0;
        display: flex;
        align-items: center;
    }

    .nav-menu > li > a,
    .nav-menu > li > .dropdown-toggle {
        font-size: 14px;
        padding: 8px 2px;
    }

    /* Push the Bel-nu pill to the visual right with extra breathing room */
    .nav-menu > li:last-child {
        margin-left: 6px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    header nav {
        gap: 24px;
    }

    .nav-menu {
        gap: 32px;
    }

    .nav-menu > li > a,
    .nav-menu > li > .dropdown-toggle {
        font-size: 15px;
    }

    .nav-menu > li:last-child {
        margin-left: 14px;
    }

    .cta-button {
        padding: 12px 26px;
        font-size: 15px;
    }
}

/* Mobile-cta-phone is the 44x44 round phone-icon button between the logo
   and the hamburger. Make it a bit nicer on tablets so it isn't just a
   tiny icon sitting next to the burger. */

@media (max-width: 1024px) {
    .mobile-cta-phone {
        width: 44px;
        height: 44px;
    }

    .mobile-cta-phone img {
        width: 22px;
        height: 22px;
    }
}


/* =====================================================
   Mobile menu toggle: HTML-driven icon swap (no JS textContent).
   Uses aria-expanded as the source of truth.
   This fixes the close/burger mojibake when servers transcode
   JS string escapes in unexpected ways.
   ===================================================== */

.mobile-menu-toggle .icon-burger,
.mobile-menu-toggle .icon-close {
    display: inline-block;
    line-height: 1;
    font-size: 28px;
    font-weight: 400;
}

.mobile-menu-toggle .icon-close {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-burger {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .icon-close {
    display: inline-block;
}

/* =====================================================
   CTA pill: bullet-proof override so per-page inline CSS
   that says ".cta-button { display: inline-block }" stops
   collapsing the icon+text alignment.
   Specificity bump via the parent header context, not !important.
   ===================================================== */

header .cta-button,
header nav .cta-button,
.nav-menu .cta-button,
a.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    line-height: 1;
    white-space: nowrap;
}

header .cta-button img,
.nav-menu .cta-button img,
a.cta-button img {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

header .cta-button span,
.nav-menu .cta-button span,
a.cta-button span {
    display: inline-block;
    line-height: 1;
}


/* =====================================================
   Mobile drawer dropdown: keep dropdown content in flow.
   Overrides per-page inline CSS that sets
   .dropdown.active .dropdown-content { position: relative }
   which combines with the desktop top:100% rule and shifts
   the panel 100% of its height, overlapping items below
   on first tap. Forcing position:static makes it sit cleanly
   in flow under the toggle and pushes neighbours down.
   Also kills :hover-driven visibility on touch devices so
   the panel only opens via .active toggled by JS.
   ===================================================== */

@media (max-width: 1024px) {
    .nav-menu .dropdown-content,
    .nav-menu .dropdown:hover .dropdown-content,
    .nav-menu .dropdown.active .dropdown-content {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
    }

    /* On the mobile drawer, hover must NEVER expand the panel.
       Only the .active class (set by JS) does. */
    .nav-menu .dropdown:hover .dropdown-content {
        display: none;
    }

    .nav-menu .dropdown.active .dropdown-content {
        display: block;
    }
}

/* True touch devices (no real hover) regardless of width:
   never let :hover open the dropdown panel. */
@media (hover: none) {
    .dropdown:hover .dropdown-content {
        display: none;
    }
}
