/* ===== COMPREHENSIVE WEBSITE STYLING ===== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Layout & spacing */
    --section-padding-lg: 4rem 0;
    --section-padding-sm: 2.75rem 0;
    --content-gap: 2rem;
    --card-gap: 1.5rem;

    /*
     * Brand palette: exactly 3 colors (+ white surfaces / black video chrome).
     *   1 - Blue    (primary actions, links, info)
     *   2 - Green   (brand / success / emphasis with blue)
     *   3 - Slate   (text, dark UI, neutral emphasis)
     */
    --brand-blue: #2563eb;
    --brand-blue-dark: #1d4ed8;
    --brand-blue-light: #3b82f6;
    --brand-green: #10b981;
    --brand-green-dark: #059669;
    --brand-slate: #1e293b;
    --brand-slate-muted: #64748b;
    --brand-slate-faint: #94a3b8;

    /* Semantic aliases (all derive from the 3 colors above) */
    --primary-color: var(--brand-blue);
    --primary-dark: var(--brand-blue-dark);
    --primary-light: var(--brand-blue-light);
    --secondary-color: var(--brand-green);
    --secondary-dark: var(--brand-green-dark);
    --accent-color: var(--brand-green);
    --accent-dark: var(--brand-green-dark);

    /* Text Colors (slate family only) */
    --text-primary: var(--brand-slate);
    --text-secondary: var(--brand-slate-muted);
    --text-light: var(--brand-slate-faint);
    --text-white: #ffffff;

    /* Background Colors (white + cool neutrals aligned to slate) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-darker: #020617;

    /* Border and Shadow Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Gradients (blue · green · slate only) */
    --gradient-primary: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green-dark) 100%);
    --gradient-success: var(--gradient-secondary);
    --gradient-warning: linear-gradient(135deg, #475569 0%, var(--brand-slate) 100%);
    --gradient-info: linear-gradient(135deg, var(--brand-blue-light) 0%, var(--brand-blue-dark) 100%);
    --gradient-danger: linear-gradient(135deg, #334155 0%, var(--brand-slate) 100%);
    
    /* Spacing */
    --section-padding: 4rem 0;
    --section-padding-mobile: 2.75rem 0;
    --container-padding: 0 1rem;
    --card-padding: 2rem;
    --button-padding: 0.75rem 2rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Bootstrap 5: keep components on the same 3-color system */
    --bs-primary: var(--brand-blue);
    --bs-primary-rgb: 37, 99, 235;
    --bs-success: var(--brand-green-dark);
    --bs-success-rgb: 5, 150, 105;
    --bs-danger: var(--brand-slate);
    --bs-danger-rgb: 30, 41, 59;
    --bs-warning: #475569;
    --bs-warning-rgb: 71, 85, 105;
    --bs-info: var(--brand-blue-light);
    --bs-info-rgb: 59, 130, 246;
    --bs-secondary: var(--brand-slate-muted);
    --bs-secondary-rgb: 100, 116, 139;
}

/* Base Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
}

section {
    margin: 0 !important;
}

.section-padding {
    padding: 60px 0;
    /* Extra top padding so content clears fixed navbar when section is at top of viewport */
    padding-top: max(60px, 6rem);
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Specific fix for gaps after hero sections */
.hero-sub + .section-padding {
    padding-top: 2rem !important;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 800;
}

h2 { 
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 700;
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem); 
    font-weight: 600;
}

h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); 
    font-weight: 600;
}

h5 { 
    font-size: clamp(1.1rem, 2vw, 1.25rem); 
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 50px;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Large screens: keep all nav links on one row, space after logo, Contact near right edge */
@media (min-width: 992px) {
    .site-header .navbar-brand {
        margin-right: 2.75rem;
    }
    .site-header .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex: 1;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    .site-header .navbar-nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        margin-left: 0;
    }
    .site-header .nav-item {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .site-header .nav-link {
        display: inline-flex !important;
        align-items: center;
        line-height: 1.25;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        white-space: nowrap;
    }
    .site-header .nav-link-icon {
        display: inline-flex;
        align-items: center;
    }

    /* Make outer edges flush: only keep spacing between items */
    .site-header .navbar-nav .nav-item:first-child .nav-link {
        margin-left: 0 !important;
    }
    .site-header .navbar-nav .nav-item:last-child .nav-link {
        margin-right: 2.75rem !important;
    }
}

/* When navbar has less horizontal space (between lg and xl), slightly reduce nav text size
   so all nav items remain on a single row even when the bar is visually “expanded”. */
@media (min-width: 992px) and (max-width: 1200px) {
    .site-header .nav-link {
        font-size: 0.9rem;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-white) !important;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--text-white) !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Desktop green bar: dropdown (and all nav) links — light mint hover */
@media (min-width: 992px) {
    .site-header .navbar-nav .nav-link:hover {
        background-color: rgba(209, 250, 229, 0.45) !important;
        color: #ffffff !important;
    }

    .site-header .navbar-nav .nav-link.dropdown-toggle:hover {
        background-color: rgba(187, 247, 208, 0.5) !important;
        color: #ffffff !important;
    }

    .site-header .navbar-nav .nav-link.dropdown-toggle:focus-visible {
        background-color: rgba(209, 250, 229, 0.4) !important;
        outline: 2px solid rgba(255, 255, 255, 0.85);
        outline-offset: 2px;
    }

    /* Open dropdown: keep readable active state, slightly greener on hover */
    .site-header .navbar-nav .dropdown.show > .nav-link.dropdown-toggle {
        background-color: rgba(255, 255, 255, 0.16) !important;
    }

    .site-header .navbar-nav .dropdown.show > .nav-link.dropdown-toggle:hover {
        background-color: rgba(167, 243, 208, 0.55) !important;
    }
}

.navbar-nav .nav-link.active {
    color: var(--text-white) !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.active::before {
    width: 80%;
}

/* Enhanced Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    animation: dropdownFadeIn 0.3s ease;
    border: 1px solid var(--border-light);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.dropdown-item:focus-visible {
    color: var(--text-white);
    transform: translateX(5px);
    outline: 2px solid rgba(37, 99, 235, 0.85);
    outline-offset: 2px;
}

/* Desktop: dropdown overlays page content (no clipping, above everything) */
@media (min-width: 992px) {
    .site-header,
    .site-header .navbar,
    .site-header .navbar-collapse {
        overflow: visible !important;
    }
    .navbar .nav-item.dropdown {
        position: relative;
    }
    /*
     * Let Popper set position + transform (do NOT force position: absolute !important
     * or animate transform on this node — that breaks placement and can pull the menu up over the navbar).
     */
    .navbar .dropdown-menu {
        z-index: 1060 !important;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
        margin-top: 0;
        /* Opacity-only motion so Popper’s transform is never overwritten */
        animation: navbarDropdownFade 0.18s ease;
        /* Solid panel so nothing shows through behind items */
        background-color: var(--bg-primary, #ffffff) !important;
    }
    @keyframes navbarDropdownFade {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    .navbar .dropdown.show .dropdown-menu,
    .navbar .nav-item.dropdown.show .dropdown-menu {
        display: block !important;
    }

    /* HubSpot-style mega panels: left rail + one content panel at a time (desktop) */
    .navbar .dropdown-menu--mega {
        min-width: min(92vw, 26rem);
        max-width: min(92vw, 48rem);
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
    }
    .navbar .dropdown-menu--mega-services {
        /* Flat “all services” layout needs more horizontal room */
        min-width: 0;
        width: min(80rem, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        /* Fit on laptop/desktop viewports without going off-screen. */
        max-height: calc(100dvh - 130px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Services: full-screen overlay on large screens (when dropdown is open) */
    .dropdown-menu--mega-services.show {
        position: fixed !important;
        margin: 0 !important;
        transform: none !important; /* Popper placement */
        inset: auto !important;
        /* Start below the fixed navbar, but don't force full-height:
           height should end naturally after the cards. */
        top: 5.6rem !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - 5.6rem - 1.5rem) !important;
        border-radius: 16px !important;
        /* Scroll only if content exceeds the max height. */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        /* Hide the scrollbar (but keep scroll behavior). */
        scrollbar-width: auto !important; /* Firefox */
        -ms-overflow-style: auto !important; /* IE/Edge legacy */
        /* Keep header above overlay */
        z-index: 1039 !important;
        padding: 0 !important;
        /* Solid background */
        background: #ffffff !important;
    }

    .dropdown-menu--mega-services.show::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
    }

    /* Re-enable visible side (right) scrollbar for the Services overlay */
    .dropdown-menu--mega-services.show {
        scrollbar-width: auto !important;
        -ms-overflow-style: auto !important;
    }

    .dropdown-menu--mega-services.show::-webkit-scrollbar {
        width: 12px !important;
        height: 12px !important;
    }

    .dropdown-menu--mega-services.show::-webkit-scrollbar-thumb {
        background: rgba(100, 116, 139, 0.55) !important; /* slate-500-ish */
        border-radius: 999px !important;
        border: 3px solid rgba(255, 255, 255, 0.9) !important;
    }
    .navbar .dropdown-menu--mega-land {
        min-width: min(94vw, 44rem);
        max-width: min(96vw, 62rem);
    }
    .navbar .dropdown-menu--mega-services > li.mega-nav-li,
    .navbar .dropdown-menu--mega-land > li.mega-nav-li,
    .navbar .dropdown-menu--mega-sofa > li.mega-nav-li {
        margin: 0;
        list-style: none;
    }
    /* Flat mega (Land, Sofa): full-width intro + card grid, no sidebar */
    .mega-nav--flat {
        display: block;
        min-height: 0;
    }
    .mega-nav__panels--solo {
        padding: 1.15rem 1.25rem 1.25rem !important;
        background: var(--bg-primary, #fff);
    }
    .mega-nav__drop-head {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 0.25rem;
        letter-spacing: -0.02em;
    }
    .mega-nav__drop-sub {
        margin: 0;
        line-height: 1.45;
    }
    .mega-nav__panel-grid--land {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
        align-content: start;
    }
    @media (min-width: 1200px) {
        .mega-nav__panel-grid--land {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }
    .mega-nav__panel-grid--sofa {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
    }
    .mega-nav__panel-grid--cards {
        gap: 0.75rem 1rem !important;
    }
    /* Services mega: section headings + always-visible groups */
    .mega-nav--services-all .mega-nav__featured-card {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, var(--bg-secondary, #f8fafc) 52%);
        border-color: rgba(5, 150, 105, 0.28);
        min-height: 6rem;
    }
    .mega-nav__group {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light, #e5e7eb);
    }
    .mega-nav__group:first-of-type {
        margin-top: 0.25rem;
        padding-top: 0;
        border-top: none;
    }
    .mega-nav__group-label {
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-secondary);
        margin: 0 0 0.65rem;
    }
    .mega-nav__panel-grid--services {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 0.75rem 1rem !important;
    }
    @media (min-width: 1200px) {
        /* Extra horizontal room reduces wrapping + vertical growth. */
        .navbar .dropdown-menu--mega-services .mega-nav__panel-grid--services {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .mega-nav__panel-grid--services.mega-nav__panel-grid--3 {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    /* Services mega: reduce vertical spacing so the whole dropdown fits better. */
    .navbar .dropdown-menu--mega-services .mega-nav__panels--solo {
        padding: 0.95rem 1rem 1rem !important;
    }

    .navbar .dropdown-menu--mega-services .mega-nav__group {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }

    .navbar .dropdown-menu--mega-services .mega-nav__group-label {
        margin-bottom: 0.45rem;
    }

    /* Services mega: allow slightly wider descriptions to reduce line wrapping. */
    .navbar .dropdown-menu--mega-services .dropdown-item__desc {
        max-width: 28rem;
    }

    /* Featured card should align with the 2-col panel width. */
    .navbar .dropdown-menu--mega-services .mega-nav__featured-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .mega-nav {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 11rem;
    }
    .mega-nav--compact {
        min-height: 8rem;
    }
    .mega-nav__rail {
        flex: 0 0 13.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.85rem 0.6rem;
        background: var(--bg-secondary, #f8fafc);
        border-right: 1px solid var(--border-light, #e5e7eb);
    }
    .mega-nav__rail-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
        text-align: left;
        border: 1px solid transparent;
        border-radius: 8px;
        padding: 0.55rem 0.65rem;
        font-size: 0.84rem;
        font-weight: 500;
        color: var(--text-primary);
        background: transparent;
        cursor: pointer;
        transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
        line-height: 1.3;
    }
    .mega-nav__rail-btn:hover {
        background: rgba(255, 255, 255, 0.85);
        border-color: rgba(0, 0, 0, 0.06);
    }
    .mega-nav__rail-btn.is-active {
        background: #fff;
        border-color: var(--border-light, #e5e7eb);
        font-weight: 600;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    .mega-nav__rail-chevron {
        font-size: 0.65rem;
        opacity: 0.45;
        flex-shrink: 0;
    }
    .mega-nav__rail-btn.is-active .mega-nav__rail-chevron {
        opacity: 0.75;
        color: var(--secondary-dark, #059669);
    }
    .mega-nav__panels {
        flex: 1;
        min-width: 0;
        padding: 0.95rem 1rem 1.1rem;
        background: var(--bg-primary, #fff);
    }
    .mega-nav__panel:not(.is-active) {
        display: none !important;
    }
    .mega-nav__panel.is-active {
        display: block !important;
    }
    .mega-nav__panel-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 0.85rem;
        align-content: start;
    }
    .mega-nav__panel-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media (min-width: 1200px) {
        .mega-nav__panel-grid--3 {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    .mega-nav__panel-eyebrow {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.65);
        margin: 0 0 0.5rem;
    }
    .navbar .dropdown-menu--mega-sofa {
        min-width: min(92vw, 32rem);
        max-width: min(94vw, 40rem);
    }
    .navbar .dropdown-menu--mega .dropdown-divider {
        border-color: var(--border-light, #e5e7eb);
        opacity: 1;
    }
    .navbar .dropdown-item--rich {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.28rem;
        padding: 0.8rem 0.95rem;
        white-space: normal;
        text-align: left;
        font-weight: 400;
        line-height: 1.35;
        overflow: visible;
        border-radius: 12px;
        border: 1px solid transparent;
        cursor: pointer;
        text-decoration: none !important;
    }
    /* HubSpot-style discrete cards: each link is visibly tappable */
    .navbar .dropdown-item--card {
        background: var(--bg-secondary, #f8fafc);
        border-color: var(--border-color, #e2e8f0);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
        min-height: 5.5rem;
        transition:
            transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 0.22s ease,
            border-color 0.2s ease,
            background-color 0.2s ease;
        will-change: transform;
    }
    .navbar .dropdown-item--rich::before {
        display: none;
    }
    .navbar .dropdown-item--rich:hover,
    .navbar .dropdown-item--rich:focus {
        transform: translateY(-3px);
        background: #fff;
        border-color: rgba(5, 150, 105, 0.45);
        box-shadow:
            0 10px 28px rgba(15, 23, 42, 0.1),
            0 0 0 1px rgba(5, 150, 105, 0.12);
        color: var(--text-primary);
    }
    .navbar .dropdown-item--rich:focus-visible {
        outline: 2px solid var(--primary-color, #2563eb);
        outline-offset: 2px;
    }
    .navbar .dropdown-item__cta {
        margin-top: auto;
        padding-top: 0.35rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--secondary-dark, #059669);
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        letter-spacing: 0.01em;
        transition: color 0.18s ease, gap 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .navbar .dropdown-item__cta::after {
        content: '';
        display: inline-block;
        width: 0.42em;
        height: 0.42em;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg) translateX(0);
        transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .navbar .dropdown-item--rich:hover .dropdown-item__cta,
    .navbar .dropdown-item--rich:focus .dropdown-item__cta {
        color: var(--secondary-dark, #047857);
        gap: 0.5rem;
    }
    .navbar .dropdown-item--rich:hover .dropdown-item__cta::after,
    .navbar .dropdown-item--rich:focus .dropdown-item__cta::after {
        transform: rotate(-45deg) translateX(4px);
    }
    .navbar .dropdown-item__title {
        font-weight: 600;
        font-size: 0.92rem;
        color: var(--text-primary);
        letter-spacing: -0.01em;
        line-height: 1.25;
    }
    .navbar .dropdown-item__title .nav-link-icon {
        font-size: 0.88em;
        opacity: 0.85;
        color: var(--text-primary);
    }
    .navbar .dropdown-item__desc {
        display: block;
        font-size: 0.78rem;
        font-weight: 400;
        color: var(--text-secondary);
        line-height: 1.45;
        margin: 0;
        max-width: 22rem;
    }
    .navbar .dropdown-item--card .dropdown-item__desc {
        flex: 1 1 auto;
    }
    .navbar .dropdown-item--rich:hover .dropdown-item__title,
    .navbar .dropdown-item--rich:focus .dropdown-item__title {
        color: var(--text-primary);
    }
    .navbar .dropdown-item--rich:hover .dropdown-item__desc,
    .navbar .dropdown-item--rich:focus .dropdown-item__desc {
        color: var(--text-secondary);
    }

    @media (prefers-reduced-motion: reduce) {
        .navbar .dropdown-item--card {
            transition: none;
            will-change: auto;
        }
        .navbar .dropdown-menu {
            animation: none;
        }
        .navbar .dropdown-item--rich:hover,
        .navbar .dropdown-item--rich:focus {
            transform: none;
        }
        .navbar .dropdown-item__cta,
        .navbar .dropdown-item__cta::after {
            transition: none;
        }
        .navbar .dropdown-item--rich:hover .dropdown-item__cta,
        .navbar .dropdown-item--rich:focus .dropdown-item__cta {
            gap: 0.35rem;
        }
        .navbar .dropdown-item--rich:hover .dropdown-item__cta::after,
        .navbar .dropdown-item--rich:focus .dropdown-item__cta::after {
            transform: rotate(-45deg) translateX(0);
        }
    }
}

/* Services overlay close button (desktop full-screen) */
/* Hidden by default (only shown on desktop overlay). */
.services-overlay-close {
    display: none;
}

@media (min-width: 992px) {
    .services-overlay-close-li {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 0;
    }

    .services-overlay-close {
        position: fixed;
        top: 5.05rem; /* align with services overlay top */
        right: 1.1rem;
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 999px;
        border: 1px solid rgba(100, 116, 139, 0.35);
        background: rgba(255, 255, 255, 0.88);
        color: #0f172a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 1042;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        cursor: pointer;
    }

    .services-overlay-close:hover {
        background: #ffffff;
        transform: translateY(-1px);
    }

    .services-overlay-close:focus-visible {
        outline: 2px solid rgba(37, 99, 235, 0.9);
        outline-offset: 2px;
    }
}

/* Mobile Dropdown Enhancements */
@media (max-width: 991.98px) {
    /* ---- HubSpot-style mobile drill-down: full-screen white overlay ---- */
    body.mobile-nav-open {
        overflow: hidden;
        overflow-x: hidden;
        overflow-x: clip;
        touch-action: pan-y;
    }

    /* Full-bleed: header wrapper + container must not cap width while menu is open */
    body.mobile-nav-open #site-header {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    body.mobile-nav-open .site-header > .container {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /*
     * Full-screen menu: primary selector is for collapse reparented to `body` (see script.js),
     * so it is not limited by Bootstrap `.container` or header backdrop-filter containing blocks.
     */
    /* left+right+width:auto fills layout viewport reliably; avoids 100vw vs scrollbar mismatch */
    #navbarNav.navbar-collapse.mobile-nav-collapse--mounted.show,
    .site-header .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: 100vh;
        max-height: 100dvh;
        margin: 0 !important;
        padding: 0;
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box !important;
        overflow: hidden !important;
        background: #ffffff;
        border: none;
        border-radius: 0;
        box-shadow: none;
        z-index: 1080;
    }

    #navbarNav.mobile-nav-collapse--mounted.show #site-navigation,
    .site-header .navbar-collapse.show #site-navigation {
        flex: 1 1 auto;
        display: flex !important;
        flex-direction: column;
        min-height: 0;
        min-width: 0;
        width: 100% !important;
        max-width: none !important;
        order: 3;
    }

    .mobile-nav-overlay {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: #fff;
        color: var(--text-primary, #0f172a);
    }

    .navbar-collapse:not(.show) .mobile-nav-overlay {
        display: none !important;
    }

    .mobile-nav-overlay__chrome {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.65rem max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
        border-bottom: 1px solid var(--border-light, #e5e7eb);
        min-height: 3.5rem;
        position: relative;
        background: #fff;
    }

    .mobile-nav-overlay__chrome--sub {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        justify-content: stretch;
    }

    .mobile-nav-overlay__back[hidden] {
        display: none !important;
    }

    .mobile-nav-overlay__back {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        margin-right: auto;
        padding: 0.35rem 0.75rem 0.35rem 0.4rem;
        border: 1px solid var(--border-light, #e2e8f0);
        border-radius: 999px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        color: var(--text-primary, #0f172a);
        font-size: 0.88rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
        transition:
            background 0.18s ease,
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            color 0.18s ease,
            transform 0.12s ease;
    }

    .mobile-nav-overlay__back:hover {
        background: #fff;
        border-color: rgba(37, 99, 235, 0.45);
        color: var(--primary-color, #2563eb);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
    }

    .mobile-nav-overlay__back:active {
        transform: scale(0.98);
    }

    @media (prefers-reduced-motion: reduce) {
        .mobile-nav-overlay__back,
        .mobile-nav-overlay__back:active {
            transition: none;
            transform: none;
        }
    }

    .mobile-nav-overlay__back:focus-visible {
        outline: 2px solid var(--primary-color, #2563eb);
        outline-offset: 2px;
    }

    /* Our site: clear “back” icon in sub-menus (HubSpot often uses text-only; we keep icon + label). */
    .mobile-nav-overlay__back-icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.375rem;
        height: 2.375rem;
        border-radius: 50%;
        background: rgba(5, 150, 105, 0.12);
        border: 1px solid rgba(5, 150, 105, 0.35);
        color: var(--secondary-dark, #059669);
        font-size: 1rem;
        line-height: 1;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .mobile-nav-overlay__chrome--sub .mobile-nav-overlay__back-icon-wrap {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.05rem;
    }

    .mobile-nav-overlay__back:hover .mobile-nav-overlay__back-icon-wrap {
        border-color: rgba(5, 150, 105, 0.55);
        background: rgba(5, 150, 105, 0.18);
        color: var(--secondary-dark, #047857);
    }

    .mobile-nav-overlay__back-label {
        padding-right: 0.15rem;
    }

    .mobile-nav-overlay__chrome--root .mobile-nav-overlay__logo-link {
        margin-right: auto;
    }

    .mobile-nav-overlay__chrome--sub .mobile-nav-overlay__logo-link {
        position: static;
        transform: none;
        grid-column: 2;
        justify-self: center;
        margin: 0 auto;
    }

    .mobile-nav-overlay__chrome--sub .mobile-nav-overlay__back {
        grid-column: 1;
        justify-self: start;
        margin-right: 0;
    }

    .mobile-nav-overlay__chrome--sub .mobile-nav-overlay__close {
        grid-column: 3;
        justify-self: end;
        margin-left: 0;
    }

    .mobile-nav-overlay__logo-img {
        display: block;
        height: 40px;
        width: auto;
        max-width: min(42vw, 160px);
        object-fit: contain;
    }

    .mobile-nav-overlay__close {
        margin-left: auto;
        border: 0;
        background: transparent;
        color: var(--text-primary, #0f172a);
        font-size: 1.35rem;
        line-height: 1;
        padding: 0.35rem 0.5rem;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        z-index: 2;
    }

    .mobile-nav-overlay__search-wrap {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin: 0.75rem max(1rem, env(safe-area-inset-right)) 0.5rem max(1rem, env(safe-area-inset-left));
        padding: 0.5rem 0.9rem;
        border: 1px solid var(--border-light, #e5e7eb);
        border-radius: 999px;
        background: #fafafa;
    }

    .mobile-nav-overlay__search-ic {
        color: #64748b;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .mobile-nav-overlay__search-input {
        flex: 1;
        border: 0;
        background: transparent;
        font-size: 0.95rem;
        outline: none;
        min-width: 0;
    }

    .mobile-nav-overlay__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: column;
        touch-action: pan-y;
    }

    /* Flex chain + min-height:0 so panes only scroll when content actually overflows (no phantom scrollbar). */
    .mobile-nav-overlay__track {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: stretch;
        will-change: transform;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @media (prefers-reduced-motion: reduce) {
        .mobile-nav-overlay__track {
            transition: none;
        }
    }

    .mobile-nav-overlay__pane {
        box-sizing: border-box;
        flex: 0 0 auto;
        align-self: stretch;
        min-height: 0;
        overflow-y: hidden;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0.25rem 0 1rem;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        background: #fff;
    }

    .mobile-nav-overlay__intro {
        padding: 0.35rem max(1rem, env(safe-area-inset-right)) 0.85rem max(1rem, env(safe-area-inset-left));
        border-bottom: 1px solid var(--border-light, #e5e7eb);
        margin-bottom: 0.35rem;
    }

    .mobile-nav-overlay__intro-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0 0 0.35rem;
        color: var(--text-primary, #0f172a);
        letter-spacing: -0.02em;
    }

    .mobile-nav-overlay__intro-desc {
        margin: 0;
        font-size: 0.875rem;
        color: var(--text-secondary, #64748b);
        line-height: 1.45;
    }

    .mobile-nav-row {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 0.95rem max(1rem, env(safe-area-inset-right)) 0.95rem max(1rem, env(safe-area-inset-left));
        border: 0;
        border-bottom: 1px solid var(--border-light, #e5e7eb);
        background: #fff;
        color: var(--text-primary, #0f172a);
        text-decoration: none !important;
        cursor: pointer;
        font: inherit;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06);
        transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .mobile-nav-row:hover {
        background: #f8fafc;
    }

    .mobile-nav-row:active {
        background: #f1f5f9;
    }

    .mobile-nav-row:focus-visible {
        outline: 2px solid var(--primary-color, #2563eb);
        outline-offset: -2px;
        background: #eff6ff;
    }

    .mobile-nav-row__icon {
        flex: 0 0 auto;
        width: 1.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--secondary-dark, #059669);
        font-size: 1.05rem;
        transition: color 0.18s ease;
    }

    .mobile-nav-row__text {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .mobile-nav-row__title {
        font-weight: 600;
        font-size: 0.98rem;
        line-height: 1.25;
        color: inherit;
        overflow-wrap: anywhere;
        word-break: break-word;
        transition: color 0.18s ease;
    }

    .mobile-nav-row__desc {
        font-size: 0.8rem;
        color: var(--text-secondary, #64748b);
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mobile-nav-row__chev {
        flex: 0 0 auto;
        color: #94a3b8;
        font-size: 1.25rem;
        font-weight: 300;
        line-height: 1;
        margin-left: 0.25rem;
        transition: color 0.18s ease, transform 0.18s ease;
    }

    .mobile-nav-row:hover .mobile-nav-row__title,
    .mobile-nav-row:focus-visible .mobile-nav-row__title {
        color: var(--primary-color, #2563eb);
    }

    .mobile-nav-row:hover .mobile-nav-row__icon,
    .mobile-nav-row:focus-visible .mobile-nav-row__icon,
    .mobile-nav-row:hover .mobile-nav-row__chev,
    .mobile-nav-row:focus-visible .mobile-nav-row__chev {
        color: var(--primary-color, #2563eb);
    }

    .mobile-nav-row--parent:hover .mobile-nav-row__chev,
    .mobile-nav-row--parent:focus-visible .mobile-nav-row__chev {
        transform: translateX(3px);
    }

    /* Direct destination links: no chevron (matches HubSpot primary nav rows). */
    .mobile-nav-row--leaf .mobile-nav-row__text {
        padding-right: 0.25rem;
    }

    .mobile-nav-overlay__footer {
        flex: 0 0 auto;
        padding: 0.85rem max(1rem, env(safe-area-inset-right)) calc(0.85rem + env(safe-area-inset-bottom, 0)) max(1rem, env(safe-area-inset-left));
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        border-top: 1px solid var(--border-light, #e5e7eb);
        background: #fff;
    }

    .mobile-nav-overlay__cta {
        display: block;
        width: 100%;
        text-align: center;
        font-weight: 600;
        padding: 0.65rem 1rem;
        border-radius: 8px;
        text-decoration: none !important;
        font-size: 0.95rem;
    }

    .mobile-nav-overlay__cta--primary {
        background: var(--primary-color, #2563eb);
        color: #fff !important;
        border: 2px solid var(--primary-color, #2563eb);
    }

    .mobile-nav-overlay__cta--outline {
        background: #fff;
        color: var(--primary-color, #2563eb) !important;
        border: 2px solid var(--primary-color, #2563eb);
    }

    /* Expanded menu: full width, aligned to the left (not clustered on the right) */
    .site-header .navbar {
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .site-header .navbar-brand {
        margin-right: auto;
    }
    .site-header #site-navigation {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .site-header .navbar-collapse {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Robust responsive collapse:
       - hide nav items by default
       - show only when Bootstrap toggles `.show` */
    .navbar-collapse {
        display: none !important;
    }
    .navbar-collapse.show {
        display: block !important;
    }

    /* Force hamburger visibility on small screens */
    .navbar-toggler {
        display: inline-flex !important;
    }
    .navbar-toggler .navbar-toggler-text {
        display: inline-block !important;
    }

    /* When nav links are showing (menu open), hide the hamburger so both don't show at once */
    .navbar:has(.navbar-collapse.show) .navbar-toggler {
        display: none !important;
    }

    /* Allow dropdown menus to be visible (no clipping) when navbar is expanded */
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        overflow: visible !important;
    }

    /* Align navigation links to left - kill ms-auto / logical margins */
    .site-header .navbar-nav,
    .navbar-nav.ms-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-inline-start: 0 !important;
        margin-inline-end: 0 !important;
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        width: 100%;
        max-width: 100%;
    }

    /* Subtle separators between items */
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .navbar-nav .nav-link {
        text-align: left !important;
        justify-content: flex-start !important;
        padding: 0.85rem 1rem !important;
        margin: 0 !important;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .dropdown-toggle {
        text-align: left !important;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    /* Dropdown: no Popper on mobile (display static) + absolute full width under parent li */
    .navbar-nav .nav-item.dropdown {
        position: relative;
        z-index: 1;
    }
    .navbar-nav .nav-item.dropdown.show {
        z-index: 1080;
    }
    .navbar-nav .dropdown-menu {
        float: none;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        transform: none !important;
        z-index: 1090;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        margin: 0.35rem 0 0 !important;
        text-align: left !important;
        /* Opaque panel so page content does not show through */
        background-color: rgb(15, 23, 42) !important;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
        border-radius: 14px;
        padding: 0.35rem;
        display: none;
    }
    .navbar-nav .dropdown-menu > li {
        display: block;
        width: 100%;
        list-style: none;
    }
    
    .navbar-nav .dropdown-menu.show,
    .navbar-nav .dropdown.show .dropdown-menu,
    .navbar-nav .dropdown-toggle.show + .dropdown-menu,
    .navbar-nav .dropdown.show > .dropdown-menu,
    .navbar-nav .nav-item.dropdown.show .dropdown-menu,
    .navbar-nav li.dropdown.show .dropdown-menu,
    .navbar-nav .nav-item.dropdown.show > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.8rem 1.25rem;
        color: var(--text-white);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        border-radius: 10px;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus,
    .navbar-nav .dropdown-item:active {
        background-color: rgba(255, 255, 255, 0.15);
        color: var(--text-white);
        transform: none;
    }

    .navbar-nav .dropdown-item--rich {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        white-space: normal;
        text-align: left;
    }
    .navbar-nav .dropdown-item--rich::before {
        display: none;
    }
    .navbar-nav .dropdown-item__title {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-white);
        line-height: 1.25;
    }
    .navbar-nav .dropdown-item__title .nav-link-icon {
        color: rgba(255, 255, 255, 0.95);
    }
    .navbar-nav .dropdown-item__desc {
        font-size: 0.8rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.72);
        line-height: 1.4;
        margin: 0;
    }

    /* Mobile / hamburger: show all mega sections stacked (no rail) */
    .navbar-nav .mega-nav {
        flex-direction: column;
        min-height: 0;
    }
    .navbar-nav .mega-nav__rail {
        display: none !important;
    }
    .navbar-nav .mega-nav__panels {
        padding: 0.25rem 0 0;
        background: transparent;
    }
    .navbar-nav .mega-nav__panel {
        display: block !important;
    }
    .navbar-nav .mega-nav__panel + .mega-nav__panel {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .navbar-nav .mega-nav__panel-grid--land,
    .navbar-nav .mega-nav__panel-grid--sofa,
    .navbar-nav .mega-nav__panel-grid--services {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    .navbar-nav .mega-nav__group-label {
        color: rgba(255, 255, 255, 0.78);
        margin-bottom: 0.45rem;
    }
    .navbar-nav .mega-nav__group {
        border-top-color: rgba(255, 255, 255, 0.14);
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    .navbar-nav .dropdown-item--card {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.237);
        min-height: 0;
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .navbar-nav .dropdown-item--card:hover,
    .navbar-nav .dropdown-item--card:focus {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(167, 243, 208, 0.55);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }
    .navbar-nav .mega-nav__featured-card {
        background: linear-gradient(135deg, rgba(167, 243, 208, 0.18) 0%, rgba(255, 255, 255, 0.1) 55%) !important;
        border-color: rgba(167, 243, 208, 0.35) !important;
    }
    .navbar-nav .dropdown-item__cta {
        color: #a7f3d0;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        text-decoration: none !important;
        font-weight: 600;
        transition: color 0.18s ease, gap 0.2s ease;
    }
    .navbar-nav .dropdown-item__cta::after {
        content: '';
        display: inline-block;
        width: 0.42em;
        height: 0.42em;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg) translateX(0);
        transition: transform 0.2s ease;
    }
    .navbar-nav .dropdown-item--rich:hover .dropdown-item__cta,
    .navbar-nav .dropdown-item--rich:focus .dropdown-item__cta {
        color: #ecfdf5;
        gap: 0.5rem;
    }
    .navbar-nav .dropdown-item--rich:hover .dropdown-item__cta::after,
    .navbar-nav .dropdown-item--rich:focus .dropdown-item__cta::after {
        transform: rotate(-45deg) translateX(4px);
    }

    .navbar-nav .dropdown-toggle::after {
        float: none;
        margin-top: 0;
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .dropdown-toggle.show::after {
        transform: rotate(180deg);
    }
    
    /* Ensure dropdown toggles work on mobile */
    .navbar-nav .dropdown-toggle {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
    
}

/* ===== CONTACT INFO BAR ===== */
.contact-info-bar {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 1rem 0;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.contact-info-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.contact-info-bar i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    transition: all var(--transition-normal);
}

.contact-info-bar a {
    color: var(--text-white);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.contact-info-bar a:hover {
    color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.contact-info-bar a:hover i {
    transform: scale(1.2);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

/* Hero: alternating background images with slow fade + continuous motion */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero__bg-slide {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.hero__bg-slide--1 {
    background-image: url('../images/banner.webp');
    animation: heroFade1 22s ease-in-out infinite, heroKenBurns 22s ease-in-out infinite;
}
.hero__bg-slide--2 {
    background-image: url('../images/banner1.webp');
    animation: heroFade2 22s ease-in-out infinite, heroKenBurns 22s ease-in-out infinite 11s;
}
@keyframes heroFade1 {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes heroFade2 {
    0%, 40% { opacity: 0; }
    50%, 90% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes heroKenBurns {
    0% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.08) translate(-2%, -1%); }
    50% { transform: scale(1.05) translate(1%, 1%); }
    75% { transform: scale(1.1) translate(-1%, 2%); }
    100% { transform: scale(1) translate(0, 0); }
}

/* Dark overlay so text overlays background and stays readable; green tint at 45% opacity */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.45) 0%,
        rgba(5, 150, 105, 0.45) 50%,
        rgba(16, 185, 129, 0.45) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ===== SERVICES PAGE HERO ===== */
.hero-sub {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(5, 150, 105, 0.92)),
                url('../images/banner1.webp') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 0 60px; /* Increased top padding to clear navbar and added bottom padding */
    overflow: hidden;
    text-align: center;
}

/* Tablet / small laptop: less rigid padding than desktop (in-between breakpoints) */
@media (max-width: 991.98px) {
    .hero-sub {
        min-height: min(85vh, 720px);
        padding: clamp(5.5rem, 11vw, 7.5rem) 0 clamp(2.5rem, 6vw, 4rem);
    }
}
@media (max-width: 575.98px) {
    .hero-sub {
        min-height: 70vh;
        padding: clamp(4.75rem, 12vw, 6rem) 0 2.5rem;
    }
}

.hero-sub .hero-features {
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

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

.hero .container-fluid,
.hero .hero__content {
    position: relative;
    z-index: 2;
}

/* Home hero: content starts at top of section (below navbar), text starts from half of page */
#site-header + .hero,
.contact-info-bar--fixed + .site-header + .hero {
    align-items: flex-start;
}
/* Home hero: all text starts with reduced top padding; extra bottom padding so buttons don't touch section end */
#site-header + .hero .hero__content,
.contact-info-bar--fixed + .site-header + .hero .hero__content {
    padding-top: 20vh;
    padding-bottom: 12vh;
}

/* Hero text overlays background – high visibility */
.hero-eyebrow {
    color: #fff;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Medium screens: keep single-line, but slightly smaller tracking */
@media (max-width: 991.98px) and (min-width: 576px) {
    .hero-eyebrow {
        font-size: 0.82rem;
        letter-spacing: 0.16em;
    }
}

/* Default: one-row eyebrow on large screens */
.hero-eyebrow__line {
    display: inline;
}

.hero-eyebrow__br {
    display: none;
}

/* Home hero eyebrow: Innovation must be on 2nd row on small screens */
@media (max-width: 575.98px) {
    .hero-eyebrow {
        white-space: normal;
        font-size: 0.74rem;
        letter-spacing: 0.09em;
        line-height: 1.15;
        max-width: 100%;
    }

    .hero-eyebrow__line {
        display: block;
    }

    .hero-eyebrow__br {
        display: block;
    }

    .hero-eyebrow__dot {
        display: none;
    }
}

.hero h2 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.2);
}

.hero h1.hero-title {
    color: #fff;
    font-weight: 900;
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.25);
    line-height: 1.15;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hero p.hero-subtitle {
    color: #fff;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 1.75rem;
    max-width: 100%;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.hero .hero-features {
    margin-bottom: 1.75rem;
}

.hero p {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 0, 0, 0.2);
}

.hero .hero-features .text-white,
.hero .hero-features span {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero CTA links: rectangular border on hover */
.hero-cta-links .hero-cta-link {
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta-links .hero-cta-link:hover {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* ===== OUR SERVICES SLIDER: rectangular cards, square images, well styled ===== */
.services-slider {
    overflow: hidden;
    margin-top: 1.5rem;
}
/* Narrow marquee (optional); home uses .services-slider--fullbleed instead */
@media (min-width: 992px) {
    .services-slider:not(.services-slider--fullbleed) {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Edge-to-edge carousel under full-width section */
.services-slider--fullbleed {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
/* Hard guarantee (cached old CSS / specificity): home marquee must never be capped at 960px */
#home-services-marquee.services-slider--fullbleed {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.home-services-band {
    width: 100%;
    max-width: 100%;
}
/* Desktop: equal columns that fill the row including flex gap (25% + gap used to under-fill visually) */
@media (min-width: 992px) {
    .services-slider--fullbleed .services-slider__item {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }
}
.services-slider--fullbleed .services-slider__group {
    padding-left: max(0.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.35rem, env(safe-area-inset-right, 0px));
}
@media (max-width: 991.98px) {
    .services-slider--fullbleed .services-slider__group {
        padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.5rem, env(safe-area-inset-right, 0px));
    }
}
@media (max-width: 767.98px) {
    .services-slider--fullbleed .services-slider__group {
        padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    }
}
.services-slider__track {
    display: flex;
    width: 200%;
    animation: servicesSlide 45s linear infinite;
}
.services-slider__group {
    flex: 0 0 50%;
    display: flex;
    gap: 1.25rem;
    padding: 0 0.5rem;
    /* Equal-height cards in each row; icon strip stays compact (flex-shrink 0 on top) */
    align-items: stretch;
}
.services-slider__item {
    flex: 0 0 25%;
    min-width: 0;
    display: flex;
}
/* Rectangular card: square image on top, content below */
.services-slider__item .service-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.services-slider__item .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
    border-color: rgba(5, 150, 105, 0.25);
}
.services-slider__item .service-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1rem 1.1rem 1.2rem;
}
.services-slider__item .service-card .card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.services-slider__item .service-card .card-text {
    flex: 1;
    min-height: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.services-slider__item .service-card .btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.55rem 1rem;
    border-width: 2px;
}
/* Icon strip: height follows icon only (no full-width square block) */
.services-slider__item .service-card .position-relative {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: visible;
    background: #f1f5f9;
    border-radius: 1rem 1rem 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    height: auto;
    min-height: 0;
}
.services-slider__item .service-card .position-relative .icon-standardized-container {
    position: static;
    transform: none;
    margin: 0 !important;
    flex-shrink: 0;
}
.services-slider__item .service-card .position-relative::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    border-radius: 1rem 1rem 0 0;
    pointer-events: none;
}
.services-slider__item .service-card .position-relative .card-img-top,
.services-slider__item .service-card .position-relative img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.services-slider__item .service-card:hover .position-relative img {
    transform: scale(1.05);
}
.services-slider__item .service-card .position-relative .position-absolute {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}
.services-slider__item .service-card .position-relative .badge {
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.services-slider__item .service-card .bg-primary.bg-opacity-10,
.services-slider__item .service-card .bg-success.bg-opacity-10,
.services-slider__item .service-card .bg-warning.bg-opacity-10 {
    border-radius: 50%;
    transition: transform 0.25s ease;
}
.services-slider__item .service-card:hover .bg-primary.bg-opacity-10,
.services-slider__item .service-card:hover .bg-success.bg-opacity-10,
.services-slider__item .service-card:hover .bg-warning.bg-opacity-10 {
    transform: scale(1.05);
}
@keyframes servicesSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 991.98px) {
    .services-slider__group {
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
    .services-slider__item {
        flex: 0 0 50%;
    }
}
@media (max-width: 767.98px) {
    .services-slider__group {
        gap: 1rem;
        padding: 0 1rem;
    }
    .services-slider__item {
        flex: 0 0 100%;
    }
    .services-slider__item .service-card .card-body {
        padding: 1.125rem 1rem 1.25rem;
    }
}

/* ===== HOME: THREE SERVICE CATEGORY CARDS ===== */
.home-service-categories-section .home-category-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    /* Static informational cards (not links) */
    cursor: default;
}
.home-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 1.35rem auto 0.25rem;
    border-radius: 50%;
    font-size: 1.65rem;
    flex-shrink: 0;
}
.home-category-card__icon--primary {
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-blue, var(--primary-color));
}
.home-category-card__icon--success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand-green-dark, var(--secondary-dark));
}
.home-category-card__icon--accent {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-blue-dark, var(--primary-dark));
}
.home-category-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.home-category-card__body {
    padding: 0.35rem 1.25rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.home-category-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== SERVICE REQUEST FORM ===== */
.service-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    margin: 3rem auto 0;
    width: 100%;
    max-width: 90%;
}

.service-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-form:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.service-form h3 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
}

.service-form h2.service-form-title {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.5rem);
    position: relative;
}

.service-form h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== MODERN FORM STYLING (site-wide) ===== */
.service-form .form-label,
.modern-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.service-form .form-control,
.service-form .form-select,
.modern-form .form-control,
.modern-form .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
    background: #f8fafc;
    min-height: 48px;
}

.service-form .form-control::placeholder,
.modern-form .form-control::placeholder {
    color: #94a3b8;
}

.service-form .form-control:hover,
.service-form .form-select:hover,
.modern-form .form-control:hover,
.modern-form .form-select:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.service-form .form-control:focus,
.service-form .form-select:focus,
.modern-form .form-control:focus,
.modern-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.12);
    outline: none;
    background: #fff;
    transform: translateY(-1px);
}

.service-form textarea.form-control,
.modern-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.service-form .btn-primary,
.modern-form .btn-primary {
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    min-height: 48px;
}

.service-form .btn-outline-secondary,
.modern-form .btn-outline-secondary {
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    min-height: 48px;
}

.service-benefits-grid .service-benefit-card {
    border: 1px solid var(--border-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-benefits-grid .service-benefit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-md);
}

/* Enhanced Form Controls (global fallback) */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-select, .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    position: relative;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-select:hover, .form-control:hover {
    border-color: var(--primary-color);
}

.form-select option {
    padding: 0.5rem;
}

/* Enhanced Buttons */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: var(--button-padding);
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-secondary);
}

.btn-outline-primary, .btn-outline-success {
    border-width: 2px;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before, .btn-outline-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn-outline-primary:hover::before, .btn-outline-success:hover::before {
    left: 0;
}

.btn-outline-primary:hover, .btn-outline-success:hover {
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Modern Form Styling – not too big; proper grid via row/col */
.modern-form {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-2xl);
    margin: 2rem 0;
    transition: all var(--transition-normal);
    max-width: 100%;
}
/* Hero forms: compact, max-width so they don’t dominate */
/* Hero forms: expanded to fit user request for 90% width */
.hero-sub .modern-form {
    max-width: 90%;
    margin: 2.5rem auto 0;
    padding: 3rem 2.5rem;
}
/* Removed col-lg-6 overrides to prevent side-by-side layout */

/* Full-page form section: expanded width for premium feel */
#service-form .modern-form,
.page-form-wrap .modern-form {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2.5rem;
    margin-bottom: -1.5rem !important; /* Pull up following content */
}

/* Ensure form buttons are side-by-side and don't take 100% width unless on very small screens */
.modern-form .d-flex.flex-wrap.justify-content-center {
    gap: 1.5rem !important;
}

.modern-form .btn {
    width: auto !important;
    min-width: 180px;
    white-space: nowrap;
}

/* Keep Send Message / Reset Form on one row on phones; resize to fit */
@media (max-width: 576px) {
    .modern-form .d-flex.flex-wrap.justify-content-center {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    .modern-form .d-flex.flex-wrap.justify-content-center .btn,
    .service-form .d-flex.flex-wrap.justify-content-center .btn {
        width: auto !important;
        min-width: 0;
        flex: 1 1 0;
        padding: 0.62rem 0.52rem !important;
        font-size: 0.84rem !important;
        line-height: 1.2;
        letter-spacing: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .modern-form .btn i,
    .service-form .btn i {
        margin-right: 0.3rem !important;
        font-size: 0.9em;
    }

    .modern-form .form-control,
    .modern-form .form-select,
    .service-form .form-control,
    .service-form .form-select {
        font-size: 0.94rem !important;
        padding: 0.72rem 0.86rem !important;
    }

    .modern-form .form-select,
    .service-form .form-select {
        padding-right: 2rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .modern-form textarea.form-control,
    .service-form textarea.form-control {
        font-size: 0.92rem !important;
    }
}

@media (max-width: 400px) {
    .modern-form .d-flex.flex-wrap.justify-content-center .btn,
    .service-form .d-flex.flex-wrap.justify-content-center .btn {
        font-size: 0.8rem !important;
        padding: 0.58rem 0.45rem !important;
    }
}

.modern-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.modern-form .form-control, 
.modern-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
}

.modern-form .form-control:focus, 
.modern-form .form-select:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

/* Standardized Icon Sizing (Smaller & Uniform) */
.icon-standardized {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    line-height: 1;
}

.icon-standardized.sm { font-size: 1rem; }
.icon-standardized.md { font-size: 1.25rem; }
.icon-standardized.lg { font-size: 1.5rem; }

.icon-standardized-container {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.icon-standardized-container.lg {
    width: 3.5rem;
    height: 3.5rem;
}

.icon-standardized-container.md {
    width: 3rem;
    height: 3rem;
}

/* ===== ABOUT US SECTION ===== */
.about-us-section {
    background: var(--bg-secondary);
    padding: var(--section-padding);
    position: relative;
}

/* About page: smaller CEO portrait + caption */
.about-ceo-block .about-image-wrapper {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.about-ceo-block .about-ceo-img {
    max-height: 380px;
    width: auto;
    object-fit: cover;
    object-position: top center;
}
.about-ceo-caption .fw-bold { font-size: 1.1rem; }
.about-ceo-caption .text-muted { font-size: 0.9rem; }
@media (min-width: 992px) {
    .about-ceo-block .about-image-wrapper { margin-right: auto; margin-left: 0; }
}

.about-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.about-us-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.heading_container {
    text-align: center;
    margin-bottom: 3rem;
}

.heading_container h2 {
    color: var(--text-primary);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.heading_container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.heading_container p {
    color: var(--text-secondary);
    max-width: 580px;
    margin: 1.25rem auto 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Page layout: consistent content width and gaps */
.container .row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.page-content-section {
    padding: var(--section-padding);
}

.page-content-section + .page-content-section {
    padding-top: 0;
}

/* Subpage hero consistency */
/* Expanded content width for subpages */
.hero-sub .container,
.hero-sub .container-fluid {
    max-width: 100%;
    width: 100%;
}

.hero-sub .lead {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-tertiary);
}

.service-card {
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
}

/* Equal image size across all service cards (grid pages) */
.services-section .service-card .position-relative,
.services-section .service-card .card-img-top {
    width: 100%;
}
.services-section .service-card .position-relative {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Square media area (1:1), matches card width */
    aspect-ratio: 1 / 1;
    height: auto;
    padding-bottom: 0;
    background: var(--bg-tertiary);
}
.services-section .service-card .position-relative .card-img-top,
.services-section .service-card .position-relative img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
}
.services-section .service-card .position-relative .position-absolute {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

@supports not (aspect-ratio: 1 / 1) {
    .services-section .service-card .position-relative {
        aspect-ratio: unset;
        height: 0;
        padding-bottom: 100%;
    }
}

/* Do not use height:auto here; it breaks the square crop */
.services-section .service-card img.card-img-top {
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Default service-card images (subpages), not the services listing grid */
.service-card img {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Services page grid: image fills square frame (override global 250px height) */
.services-section .service-card .position-relative img {
    height: 100% !important;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: var(--card-padding);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-card .card-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card .card-text {
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Service Card Badges */
.service-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    z-index: 2;
}

/* Service Card Icons */
.service-card .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    color: var(--text-white);
    position: relative;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    transition: all var(--transition-normal);
    margin-bottom: 1rem;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

/* Enhanced Map Styling for All Pages */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 3px solid var(--primary-color);
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-dark);
}

.map-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    transition: all var(--transition-normal);
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    max-width: 300px;
    z-index: 10;
}

.map-overlay h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.map-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.map-overlay strong {
    color: var(--primary-dark);
}



.map-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-dark);
}

.map-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    transition: all var(--transition-normal);
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    max-width: 300px;
    z-index: 10;
}

.map-overlay h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.map-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.map-overlay strong {
    color: var(--primary-dark);
}

/* ===== RESPONSIVE MAP STYLES ===== */
@media (max-width: 768px) {
    .map-container iframe {
        height: 400px;
    }
    
    .map-overlay {
        position: relative;
        top: auto;
        left: auto;
        margin: 1rem 0 0 0;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .map-overlay h5 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .map-container iframe {
        height: 350px;
    }
    
    .map-overlay {
        padding: 1rem;
    }
    
    .map-overlay .d-flex {
        flex-direction: row;
        align-items: flex-start !important;
        text-align: left;
    }
    
    .map-overlay .bg-primary.bg-opacity-20,
    .map-overlay .bg-success.bg-opacity-20,
    .map-overlay .bg-info.bg-opacity-20,
    .map-overlay .bg-warning.bg-opacity-20 {
        margin: 0 0.75rem 0 0 !important;
        flex-shrink: 0;
    }
}

/* ===== DIRECTIONS BUTTON ===== */
.directions-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    animation: fadeInDown 0.6s ease-out;
}

.directions-button .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.directions-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
}

.directions-button .btn:active {
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive directions button */
@media (max-width: 768px) {
    .directions-button {
        top: 15px;
        right: 15px;
    }
    
    .directions-button .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
    position: relative;
}



footer h5 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

footer p, footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-normal);
}

footer a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

footer .transition-all {
    transition: all var(--transition-normal);
}

footer .transition-all:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

footer .bg-primary.bg-opacity-20,
footer .bg-success.bg-opacity-20,
footer .bg-info.bg-opacity-20 {
    transition: all var(--transition-normal);
}

footer .bg-primary.bg-opacity-20:hover,
footer .bg-success.bg-opacity-20:hover,
footer .bg-info.bg-opacity-20:hover {
    transform: scale(1.1);
    background-color: rgba(37, 99, 235, 0.3) !important;
}

footer .bg-success.bg-opacity-20:hover {
    background-color: rgba(16, 185, 129, 0.3) !important;
}

footer .bg-info.bg-opacity-20:hover {
    background-color: rgba(59, 130, 246, 0.3) !important;
}

.footer-location-link {
    white-space: nowrap;
    display: inline-block;
}
.footer-location-link:hover {
    color: var(--accent-color) !important;
}

/* Footer: highlight "Contact Developer" with rectangular yellow border */
.footer-developer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border: 2px solid #fbbf24; /* amber-400 */
    border-radius: 8px;
    background: transparent;
}

.footer-developer-link:hover {
    background: rgba(251, 191, 36, 0.18);
    border-color: #f59e0b; /* amber-500 */
    color: #ffffff !important;
    transform: translateY(-1px);
}

.footer-developer-link__text {
    line-height: 1;
}

.footer-developer-wrapper--mobile {
    display: none;
}

/* On small screens, show "Contact Developer" below the legal links. */
@media (max-width: 991.98px) {
    .footer-developer-wrapper--desktop {
        display: none;
    }

    .footer-developer-wrapper--mobile {
        display: block;
    }
}

/* On large screens, keep reserved content left + policies right. */
@media (min-width: 992px) {
    .footer-copyright-col {
        text-align: left;
    }

    .footer-developer-wrapper--desktop {
        text-align: center;
    }

    .footer-policies-col {
        text-align: right;
    }
}

.footer-legal-links {
    font-size: 0.82rem;
}

.footer-legal-links__link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.footer-legal-links__link:hover {
    color: var(--accent-color) !important;
}

.footer-legal-links__sep {
    margin: 0 0.55rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== Cookie Consent Banner ===== */
.hog-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    padding: 1rem 0.9rem;
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.25);
}

.hog-cookie-banner__inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.hog-cookie-banner__text {
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.95);
}

.hog-cookie-banner__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.hog-cookie-btn {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #f8fafc;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.hog-cookie-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.35);
}

.hog-cookie-btn--primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(16, 185, 129, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hog-cookie-btn--link {
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
    padding: 0.55rem 0.25rem;
}

.hog-cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3100;
    background: rgba(2, 6, 23, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hog-cookie-modal-overlay.is-open {
    display: flex;
}

.hog-cookie-modal {
    width: min(720px, 100%);
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 88px rgba(0, 0, 0, 0.45);
    color: #f8fafc;
    overflow: hidden;
}

.hog-cookie-modal__header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hog-cookie-modal__title {
    font-weight: 900;
    font-size: 1.05rem;
}

.hog-cookie-modal__close {
    background: transparent;
    border: 0;
    color: rgba(248, 250, 252, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.hog-cookie-modal__body {
    padding: 1rem 1.1rem 1.1rem;
}

.hog-cookie-opt {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hog-cookie-opt:last-child {
    border-bottom: 0;
}

.hog-cookie-opt__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hog-cookie-opt input[type="checkbox"] {
    margin-top: 0.2rem;
}

.hog-cookie-opt__label {
    font-weight: 800;
}

.hog-cookie-opt__desc {
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.92rem;
    margin-top: 0.2rem;
    line-height: 1.35;
}

.hog-cookie-modal__footer {
    padding: 0.95rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hog-cookie-modal__footer .hog-cookie-btn {
    padding: 0.6rem 1rem;
}

.footer-contact__phones {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-wrap: nowrap;
}

.footer-contact__link {
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-contact__link:hover {
    text-decoration: none !important;
    color: var(--accent-color) !important;
}

.footer-contact__sep {
    color: rgba(255, 255, 255, 0.6);
    flex: 0 0 auto;
}

.footer-contact__icon-svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
    display: inline-block;
}

.footer-contact__icon-svg--primary {
    color: var(--primary-color, #2563eb);
}

.footer-contact__icon-svg--success {
    color: var(--secondary-dark, #059669);
}

.footer-contact__icon-svg--info {
    color: #3b82f6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease forwards;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    color: var(--text-white) !important;
    font-weight: 700;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-gradient {
    color: var(--text-white) !important;
    font-weight: 700;
}

.bg-gradient {
    background: var(--gradient-accent);
}
/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
    background: var(--gradient-accent);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-padding {
    padding: var(--section-padding) !important;
    padding-top: max(4rem, 6rem) !important; /* space below fixed navbar when section is at top */
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: var(--section-padding-mobile) !important;
        padding-top: max(2.75rem, 5rem) !important;
    }
}

/* YouTube Channel Section - green #059669 to match navbar */
#youtube {
    background: #059669 !important;
}
/* YouTube section: intro = row with text left, Subscribe button right on md+ */
.youtube-section__intro {
    margin-bottom: 1.5rem;
}
#youtube .youtube-section__intro .lead {
    line-height: 1.6;
}
#youtube .row > .col-lg-6:last-child {
    display: flex;
    align-items: stretch;
}
/* 3 YouTube videos fully displayed; one finishes then next continues */
#youtube .youtube-three-videos {
    display: flex;
    flex-wrap: wrap;
}
#youtube .youtube-video-slot {
    display: flex;
    flex-direction: column;
}
#youtube .youtube-video-slot__frame {
    position: relative;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
#youtube .youtube-video-slot__frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
#youtube .youtube-video-slot__title {
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    #youtube .youtube-video-slot__frame {
        min-height: 200px;
    }
}
@media (min-width: 992px) {
    #youtube .youtube-video-slot__frame {
        min-height: 220px;
    }
}

#youtube .youtube-carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: #000;
}
#youtube .ratio {
    min-height: 200px;
    background: var(--bg-tertiary);
}
#youtube .ratio iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}
/* YouTube 3-video carousel: one visible, rotate every 3s */
.youtube-carousel-wrapper {
    background: #000;
}
.youtube-carousel {
    position: absolute;
    inset: 0;
}
.youtube-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.youtube-carousel__slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.youtube-carousel__slide iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.youtube-carousel__dots {
    z-index: 2;
}
.youtube-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.youtube-carousel__dot:hover,
.youtube-carousel__dot--active {
    background: #fff;
}
.youtube-carousel__dot--active {
    transform: scale(1.25);
}
@media (max-width: 767.98px) {
    #youtube .ratio {
        min-height: 220px;
    }
}

/* ===== Fixed Contact Info Bar (responsive) ===== */
.contact-info-bar {
    padding: 0.4rem 0;
}
.contact-info-bar--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: 2.75rem;
}
/* Navbar fixed directly below contact bar (works with both EJS and injected wrappers) */
.site-header {
    position: fixed !important;
    top: 2.85rem !important;
    left: 0;
    right: 0;
    z-index: 1029;
    margin-top: 0;
    overflow: visible;
}
/* Hide contact bar on small and medium screens; navbar sits at top */
@media (max-width: 991.98px) {
    .contact-info-bar {
        display: none !important;
    }
    .site-header {
        top: 0 !important;
    }
}
@media (max-width: 575.98px) {
    .site-header {
        top: 0 !important;
    }
}

/* When a navbar dropdown is open: dim page and stack header + menus above all main content */
body.nav-dropdown-open::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1010;
    background: rgba(15, 23, 42, 0.48);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
body.nav-dropdown-open .site-header {
    z-index: 1040 !important;
}

/* When the nav dropdown is expanded on desktop, keep scrolling locked
   so the full-screen mega overlay feels like a modal. */
@media (min-width: 992px) {
    body.nav-dropdown-open {
        overflow: hidden;
    }
}
@media (prefers-reduced-motion: no-preference) {
    body.nav-dropdown-open::before {
        animation: navDropdownBackdropIn 0.2s ease-out;
    }
}
@keyframes navDropdownBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Push page content below fixed contact bar + navbar (no collision) */
/* Increased so hero text stays visible when navbar is extended (e.g. mobile menu open) */
/* EJS structure: contact-info-bar--fixed then .site-header then .hero/section */
.contact-info-bar--fixed + .site-header + .hero,
.contact-info-bar--fixed + .site-header + section,
/* Static structure: #site-header wrapper then .hero/section */
#site-header + .hero,
#site-header + section {
    margin-top: 18rem; /* clear navbar + extended menu; more space above hero text */
}

/* Sm-lg & tablet: header-only offset (contact bar hidden <992); avoid 16rem “hole” above hero */
@media (max-width: 991.98px) and (min-width: 576px) {
    .contact-info-bar--fixed + .site-header + .hero,
    .contact-info-bar--fixed + .site-header + section,
    #site-header + .hero,
    #site-header + section {
        margin-top: clamp(5rem, 14vw, 8.5rem);
    }
}
@media (max-width: 575.98px) {
    .contact-info-bar--fixed + .site-header + .hero,
    .contact-info-bar--fixed + .site-header + section,
    #site-header + .hero,
    #site-header + section {
        margin-top: clamp(4.5rem, 18vw, 6.5rem);
    }
}
.contact-info-bar__row {
    min-height: 2.25rem;
}
/* Single horizontal row (contact bar is hidden below lg; this applies lg+) */
.contact-info-bar__container {
    max-width: 100%;
}
.contact-info-bar__row--single {
    flex-wrap: nowrap !important;
}
.contact-info-bar__left {
    flex-wrap: nowrap !important;
}
.contact-info-bar__item--shrink {
    flex: 0 1 auto;
    min-width: 0;
}
.contact-info-bar__left .contact-info-bar__item:first-child {
    flex-shrink: 0;
}
.contact-info-bar__left .contact-info-bar__text--address,
.contact-info-bar__left .contact-info-bar__text--email {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: min(20vw, 10rem);
    vertical-align: bottom;
}
@media (min-width: 1100px) {
    .contact-info-bar__left .contact-info-bar__text--address {
        max-width: min(32vw, 19rem);
    }
    .contact-info-bar__left .contact-info-bar__text--email {
        max-width: min(28vw, 17rem);
    }
}
@media (min-width: 1400px) {
    .contact-info-bar__left .contact-info-bar__text--address,
    .contact-info-bar__left .contact-info-bar__text--email {
        max-width: none;
    }
}
.contact-info-bar__icon {
    font-size: 0.95rem;
    margin-right: 0.35rem;
    flex-shrink: 0;
    color: #fff !important;
}
.contact-info-bar a:hover .contact-info-bar__icon {
    color: #fff !important;
}
.contact-info-bar__text {
    font-size: 0.8rem;
    max-width: 100%;
}

.contact-info-bar__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}

.contact-info-bar__phone-link {
    text-decoration: none !important;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
}

.contact-info-bar__sep {
    color: rgba(255, 255, 255, 0.65);
    flex: 0 0 auto;
}
@media (min-width: 576px) {
    .contact-info-bar__text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.contact-info-bar__social .contact-info-bar__icon {
    font-size: 1rem;
    margin-right: 0;
}
.contact-info-bar__social:hover {
    opacity: 0.85;
}
.contact-info-bar__item[href*="maps"]:hover,
.contact-info-bar__item[href*="mailto"]:hover {
    opacity: 0.9;
    text-decoration: underline !important;
}
/* Right group: social icons + "House of Genius Ltd." on one row, compact */
.contact-info-bar__brand-row {
    gap: 0.35rem 0.5rem;
}
.contact-info-bar__brand-social-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem 0.5rem;
}
.contact-info-bar__brand-text {
    font-size: 0.7rem;
    white-space: nowrap;
    line-height: 1.2;
}
.contact-info-bar__socials {
    gap: 0.25rem;
    flex-shrink: 0;
}
.contact-info-bar__socials .contact-info-bar__icon {
    font-size: 0.85rem;
}
@media (min-width: 576px) {
    .contact-info-bar__brand-text {
        font-size: 0.75rem;
    }
    .contact-info-bar__socials .contact-info-bar__icon {
        font-size: 0.9rem;
    }
}
@media (min-width: 992px) {
    .contact-info-bar__brand-text {
        font-size: 0.875rem;
    }
    .contact-info-bar__socials .contact-info-bar__icon {
        font-size: 1rem;
    }
}
@media (max-width: 575.98px) {
    .contact-info-bar__brand-text {
        font-size: 0.65rem;
    }
    .contact-info-bar__socials .contact-info-bar__icon {
        font-size: 0.8rem;
    }
}
/* Responsive: smaller on small screens */
@media (max-width: 575.98px) {
    .contact-info-bar--fixed {
        min-height: 2.5rem;
        padding: 0.4rem 0;
    }
    .contact-info-bar__icon {
        font-size: 0.8rem;
    }
    .contact-info-bar__text {
        font-size: 0.7rem;
    }
    .contact-info-bar__social .contact-info-bar__icon {
        font-size: 0.9rem;
    }
}
@media (min-width: 992px) {
    .contact-info-bar__icon {
        font-size: 1rem;
    }
    .contact-info-bar__text {
        font-size: 0.875rem;
    }
    .contact-info-bar__social .contact-info-bar__icon {
        font-size: 1.1rem;
    }
}

/* Nav link icons - scale with screen */
.nav-link-icon {
    font-size: 0.9em;
    opacity: 0.95;
}
@media (max-width: 991.98px) {
    .nav-link-icon {
        font-size: 0.85em;
    }
}

/* Site-wide logo border radius (navbar + footer) */
.site-logo,
.navbar-logo,
.footer-logo {
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* Navbar resize on scroll: larger at top, smaller when scrolled */
.site-header { 
    /* Match the hero overlay color (set by JS per page). */
    background: var(--navbar-hero-overlay, transparent) !important;
    background-color: transparent !important;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    transition: padding-top 0.25s ease, padding-bottom 0.25s ease, box-shadow 0.25s ease;
}

.nav-link { 
    position: relative; 
    transition: all 0.3s ease; 
}

.nav-link.active { 
    background-color: rgba(255, 255, 255, 0.15); 
    border-radius: 6px; 
    font-weight: 600; 
    color: var(--accent-color) !important; 
}
.site-header .navbar {
    align-items: center;
    min-height: 3.5rem;
}
.site-header .navbar-logo {
    height: 50px;
    width: auto;
    transition: height 0.25s ease;
    object-fit: contain;
}

/* When navbar is extended (at top of page), use smaller nav text so all links stay on one row */
@media (min-width: 992px) {
    .site-header:not(.site-header--scrolled) .navbar-nav .nav-link {
        font-size: 0.875rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .site-header:not(.site-header--scrolled) .navbar-nav .nav-link-icon {
        font-size: 0.85em;
    }
}

.site-header--scrolled {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.site-header--scrolled .navbar {
    min-height: 2.5rem;
}
.site-header--scrolled .navbar-logo {
    height: 38px;
}
/* Keep nav texts and content visible when navbar height decreases */
.site-header--scrolled .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}
.site-header--scrolled .navbar-nav .nav-link {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    visibility: visible;
    opacity: 1;
}
.site-header--scrolled .navbar-nav .nav-link-icon {
    font-size: 0.85em;
}
.site-header--scrolled .navbar-toggler {
    padding: 0.35rem 0.5rem;
}
.site-header--scrolled .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

/* Hamburger "Menu" label on small/medium */
.navbar-toggler {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-toggler .navbar-toggler-text {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
}
@media (min-width: 992px) {
    .navbar-toggler .navbar-toggler-text {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .site-header--scrolled .navbar-logo {
        height: 40px;
    }
    .site-header--scrolled .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
}

/*
 * Home page: navbar over white/light sections — brand green links (JS toggles
 * .site-header--home-over-light via content under the fixed bar). Hero and
 * sections with data-home-nav-bg="green" keep the default light-on-gradient bar.
 */
.site-header.site-header--home-over-light {
    background: rgba(255, 255, 255, 0.94) !important;
    background-color: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header.site-header--home-over-light .navbar-nav .nav-link {
    color: var(--secondary-dark, #059669) !important;
}

.site-header.site-header--home-over-light .navbar-nav .nav-link-icon {
    color: inherit;
    opacity: 1;
}

.site-header.site-header--home-over-light .navbar-nav .nav-link:hover {
    background-color: rgba(5, 150, 105, 0.14) !important;
    color: var(--secondary-dark, #047857) !important;
}

.site-header.site-header--home-over-light .navbar-nav .nav-link.dropdown-toggle:hover {
    background-color: rgba(5, 150, 105, 0.18) !important;
    color: var(--secondary-dark, #047857) !important;
}

.site-header.site-header--home-over-light .navbar-nav .nav-link.dropdown-toggle:focus-visible {
    background-color: rgba(5, 150, 105, 0.12) !important;
    outline: 2px solid rgba(5, 150, 105, 0.65);
    outline-offset: 2px;
}

.site-header.site-header--home-over-light .navbar-nav .dropdown.show > .nav-link.dropdown-toggle {
    background-color: rgba(5, 150, 105, 0.16) !important;
    color: var(--secondary-dark, #047857) !important;
}

.site-header.site-header--home-over-light .navbar-nav .dropdown.show > .nav-link.dropdown-toggle:hover {
    background-color: rgba(5, 150, 105, 0.22) !important;
}

.site-header.site-header--home-over-light .navbar-nav .nav-link.active {
    color: var(--secondary-dark, #047857) !important;
    background-color: rgba(5, 150, 105, 0.2) !important;
}

.site-header.site-header--home-over-light .navbar-nav .nav-link.active:hover {
    color: #fff !important;
    background-color: var(--secondary-dark, #059669) !important;
}

@media (max-width: 991.98px) {
    .site-header.site-header--home-over-light .navbar-toggler .navbar-toggler-text {
        color: var(--secondary-dark, #059669) !important;
    }

    /* Bootstrap navbar-dark icon is white SVG — tint to brand green */
    .site-header.site-header--home-over-light .navbar-toggler-icon {
        filter: brightness(0) saturate(100%) invert(39%) sepia(96%) saturate(429%) hue-rotate(125deg)
            brightness(95%) contrast(96%);
    }
}

.hero-sub {
    min-height: 60vh !important;
    padding: 160px 0 80px !important; /* Adjusted for better spacing and visibility */
}

/* Service/sub pages: text overlays background with strong contrast */
.hero-sub .text-gradient,
.hero-sub h1,
.hero-sub h2 {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.35);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}
.hero-sub .lead,
.hero-sub .text-white {
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.25);
}
.hero-sub .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-sub {
        min-height: 40vh !important;
    }
}

/* Service/request hero: keep big headings on one line on mobile and medium */
@media (max-width: 991.98px) {
    .hero-sub h1.text-gradient,
    .hero-sub h1,
    .hero-sub h2.text-gradient {
        white-space: nowrap;
        font-size: clamp(1.1rem, 4.5vw, 1.75rem);
    }

    /* Allow selected long hero headings to break into two lines on mobile */
    .hero-sub .hero-sub__title-wrap {
        white-space: normal !important;
        max-width: 22ch;
        margin-left: auto;
        margin-right: auto;
    }
}

/* About Section & Staggered Animations */
.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--card-accent, var(--primary-color));
    opacity: 0.03;
    border-radius: 0 0 0 50%;
    transition: all 0.4s ease;
    z-index: -1;
}

/* Service Card Improvements */
.service-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .card-text {
    flex-grow: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.about-card:hover::after {
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: 0.05;
}

.about-icon-box {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.about-card:hover .about-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.about-card__list {
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: left;
}
.about-card__list li {
    margin-bottom: 0.5rem;
    padding-left: 0;
    list-style: none;
    text-align: left;
}
.about-card__list li:last-child {
    margin-bottom: 0;
}
.about-card__list .fa, .about-card__list .fas, .about-card__list .far, .about-card__list .fab {
    width: 1.1em;
    text-align: center;
}

.stagger-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible .stagger-up {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Scroll Trigger Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in:not(.is-visible) {
    transform: scale(0.94) translateY(22px);
}

.animate-on-scroll.fade-only:not(.is-visible) {
    transform: none;
    opacity: 0;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .animate-on-scroll.is-visible {
        opacity: 1 !important;
        transform: none !important;
    }
    section.animate-on-scroll:not(.is-visible) .heading_container h2,
    section.animate-on-scroll:not(.is-visible) .heading_container > p,
    section.animate-on-scroll:not(.is-visible) .heading_container > .lead {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Inner-page hero: short entrance (home hero keeps Ken Burns only) */
section.hero-sub > .container,
section.hero-sub > .container-fluid {
    animation: heroSubReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes heroSubReveal {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    section.hero-sub > .container,
    section.hero-sub > .container-fluid {
        animation: none !important;
    }
}

/* Home page: staggered scroll animations and modern entrance */
#about-teaser .rounded-pill,
#about-teaser .lead,
#about-teaser .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
#about-teaser .rounded-pill { transition-delay: 0.05s; }
#about-teaser .lead { transition-delay: 0.15s; }
#about-teaser .btn { transition-delay: 0.25s; }
#about-teaser.is-visible .rounded-pill,
#about-teaser.is-visible .lead,
#about-teaser.is-visible .btn {
    opacity: 1;
    transform: translateY(0);
}

section.animate-on-scroll:not(.is-visible) .heading_container h2,
section.animate-on-scroll:not(.is-visible) .heading_container > p,
section.animate-on-scroll:not(.is-visible) .heading_container > .lead {
    opacity: 0;
    transform: translateY(14px);
}
.heading_container h2,
.heading_container > p,
.heading_container > .lead {
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
section.animate-on-scroll.is-visible .heading_container h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.07s;
}
section.animate-on-scroll.is-visible .heading_container > p,
section.animate-on-scroll.is-visible .heading_container > .lead {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.14s;
}

/* Stagger children inside scroll-visible container */
#why-choose-us .animate-on-scroll { transition-delay: 0s; }
#why-choose-us .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
#why-choose-us .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
#why-choose-us .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
#why-choose-us .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
#why-choose-us .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
#why-choose-us .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

.feature-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.3s ease;
}
/*
 * Why Choose Us: section uses data-no-section-reveal (no .is-visible on #why-choose-us).
 * Each grid column has .animate-on-scroll: reveal cards when the column intersects.
 */
#why-choose-us .animate-on-scroll:not(.is-visible) .feature-card {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
}
#why-choose-us .animate-on-scroll.is-visible .feature-card {
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#why-choose-us .row > .animate-on-scroll:nth-child(1).is-visible .feature-card { animation-delay: 0.05s; }
#why-choose-us .row > .animate-on-scroll:nth-child(2).is-visible .feature-card { animation-delay: 0.1s; }
#why-choose-us .row > .animate-on-scroll:nth-child(3).is-visible .feature-card { animation-delay: 0.15s; }
#why-choose-us .row > .animate-on-scroll:nth-child(4).is-visible .feature-card { animation-delay: 0.2s; }
#why-choose-us .row > .animate-on-scroll:nth-child(5).is-visible .feature-card { animation-delay: 0.25s; }
#why-choose-us .row > .animate-on-scroll:nth-child(6).is-visible .feature-card { animation-delay: 0.3s; }
@keyframes cardReveal {
    0% { opacity: 0; transform: translateY(24px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

#youtube .youtube-section__intro .rounded-pill,
#youtube .youtube-section__intro .display-6,
#youtube .youtube-section__intro .lead,
#youtube .youtube-section__intro .btn {
    opacity: 0;
    transform: translateY(20px);
}
#youtube.is-visible .youtube-section__intro .rounded-pill,
#youtube.is-visible .youtube-section__intro .display-6,
#youtube.is-visible .youtube-section__intro .lead,
#youtube.is-visible .youtube-section__intro .btn {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#youtube.is-visible .youtube-section__intro .display-6 { animation-delay: 0.1s; }
#youtube.is-visible .youtube-section__intro .lead { animation-delay: 0.2s; }
#youtube.is-visible .youtube-section__intro .btn { animation-delay: 0.3s; }

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card__list {
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
}
.feature-card .feature-card__list {
    text-align: center;
}
.feature-card__list li {
    margin-bottom: 0.4rem;
    padding-left: 0;
    list-style: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.feature-card__list li:last-child {
    margin-bottom: 0;
}
.feature-card__list .fa, .feature-card__list .fas, .feature-card__list .far, .feature-card__list .fab {
    width: 1.15em;
    text-align: center;
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero {
        min-height: 80vh;
    text-align: center;
}

    .service-form {
        margin-top: 2rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .section-padding {
        padding: var(--section-padding-mobile) !important;
    }
    
    .navbar-nav .nav-link {
        text-align: left;
        margin: 0.25rem 0;
        padding-left: 0 !important;
    }

    /* Fix navbar brand and toggler alignment */
    .navbar > .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
    font-size: 1rem;
    }
    
    .service-form {
        padding: 1rem;
    }
    
    .heading_container h2 {
        font-size: 1.6rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .gallery-container {
        gap: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* ===== ENHANCED ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: var(--gradient-success);
    color: var(--text-white);
}

.alert-danger {
    background: var(--gradient-danger);
    color: var(--text-white);
}

.alert-info {
    background: var(--gradient-info);
    color: var(--text-white);
}

.alert-warning {
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, var(--brand-green) 100%);
    color: var(--text-white);
}

/* ===== ENHANCED BADGES ===== */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.badge:hover {
    transform: scale(1.1);
}

/* ===== ENHANCED ICONS ===== */
.fs-4, .fs-5 {
    transition: all var(--transition-normal);
}

.fs-4:hover, .fs-5:hover {
    transform: scale(1.1);
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .contact-info-bar,
    .service-form,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
}

.service-card {
        page-break-inside: avoid;
    }
}

/* ===== CONTACT FORM & MAP SECTIONS ===== */
/* Connect With Us: icons in one row, no text labels */
.social-media-section__icons {
    flex-wrap: nowrap;
}
@media (max-width: 575.98px) {
    .social-media-section__icons {
        gap: 0.5rem;
    }
    .social-media-section__icons .icon-standardized-container {
        padding: 0.65rem !important;
    }
}

/* Contact page: one row of bold labels, one row of values (aligned by column) */
.contact-info-grid {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.contact-info-grid__labels {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light, #e5e7eb);
}
.contact-info-grid__label {
    font-size: 1rem;
    color: var(--text-primary, #1e293b);
}
.contact-info-grid__values {
    padding-top: 1rem;
}
.contact-info-grid__value {
    font-size: 0.95rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
}
.contact-info-grid__value + .contact-info-grid__value {
    margin-top: 0.25rem;
}
.contact-info-grid .col-4,
.contact-info-grid .col-md-4 {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    word-break: break-word;
}
@media (min-width: 768px) {
    .contact-info-grid__label {
        font-size: 1.1rem;
    }
    .contact-info-grid__value {
        font-size: 1rem;
    }
    .contact-info-grid .col-md-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Contact page: three cards; content centered; icon, name, credential rows; styled links */
.contact-info-cards .contact-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl, 1rem);
    border: 1px solid var(--border-light, #e5e7eb);
    background: var(--bg-primary, #fff);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-info-cards .contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.contact-info-card__icon-row {
    margin-bottom: 1rem;
}
.contact-info-card__icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}
.contact-info-cards .contact-info-card:hover .contact-info-card__icon-wrap {
    transform: scale(1.08);
}
.contact-info-card__icon-wrap--primary {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-color, #2563eb);
}
.contact-info-card__icon-wrap--success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.contact-info-card__icon-wrap--warning {
    background: rgba(30, 41, 59, 0.12);
    color: var(--brand-slate, #1e293b);
}
.contact-info-card__icon {
    font-size: 1.35rem;
}
.contact-info-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 0.5rem;
}
.contact-info-card__credential {
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info-card__phones {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.contact-info-card__sep {
    color: rgba(5, 150, 105, 0.7);
    flex: 0 0 auto;
}
.contact-info-card__link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md, 0.5rem);
    word-break: break-word;
}
.contact-info-card__link--location {
    color: var(--primary-color, #2563eb);
    border-bottom: 2px solid rgba(37, 99, 235, 0.25);
}
.contact-info-card__link--location:hover {
    color: var(--primary-dark, #1d4ed8);
    border-bottom-color: var(--primary-color, #2563eb);
}
.contact-info-card__link--phone {
    color: #059669;
    border-bottom: 2px solid rgba(5, 150, 105, 0.25);
}
.contact-info-card__link--phone:hover {
    color: var(--brand-green-dark);
    border-bottom-color: var(--brand-green-dark);
}
.contact-info-card__link--email {
    color: var(--primary-color, #2563eb);
    border-bottom: 2px solid rgba(37, 99, 235, 0.35);
}
.contact-info-card__link--email:hover {
    color: var(--primary-dark, #1d4ed8);
    border-bottom-color: var(--primary-color, #2563eb);
}

.contact-info-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-info-card .bg-opacity-10 {
    transition: all var(--transition-normal);
}

.contact-info-card .bg-opacity-10:hover {
    transform: scale(1.1);
    background-color: rgba(37, 99, 235, 0.2) !important;
}

.contact-info-card .bg-success.bg-opacity-10:hover {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

.contact-info-card .bg-warning.bg-opacity-10:hover {
    background-color: rgba(245, 158, 11, 0.2) !important;
}

.contact-info-card .bg-info.bg-opacity-10:hover {
    background-color: rgba(59, 130, 246, 0.2) !important;
}

/* Enhanced Map Styling */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
}

.map-overlay h5 {
    margin-bottom: 1.5rem;
}

.map-overlay__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.map-overlay__icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.2rem;
}

.map-overlay__svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.map-overlay__icon--location {
    background: rgba(37, 99, 235, 0.18);
    color: #2563eb;
}

.map-overlay__icon--phone {
    background: rgba(5, 150, 105, 0.18);
    color: #059669;
}

.map-overlay__icon--email {
    background: rgba(59, 130, 246, 0.18);
    color: #3b82f6;
}

.map-overlay__icon--hours {
    background: rgba(51, 65, 85, 0.16);
    color: #334155;
}

.map-overlay__link,
.map-overlay__hours {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.35;
    text-decoration: none !important;
}

.map-overlay__link:hover {
    color: #2563eb;
}

.map-overlay__link--singleline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-overlay__phones {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex-wrap: nowrap;
}

.map-overlay__sep {
    color: #94a3b8;
    flex: 0 0 auto;
}

.map-overlay .bg-opacity-20 {
    transition: all var(--transition-normal);
}

.map-overlay .bg-opacity-20:hover {
    transform: scale(1.1);
}

/* Enhanced Service Cards for Different Categories */
.service-card.property-service::before {
    background: var(--gradient-primary);
}

.service-card.brokerage-service::before {
    background: var(--gradient-success);
}

.service-card.furniture-service::before {
    background: var(--gradient-warning);
}

.service-card.construction-service::before {
    background: var(--gradient-secondary);
}

.service-card.design-service::before {
    background: var(--gradient-info);
}

/* Enhanced Badge Colors */
.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-success {
    background: var(--gradient-success) !important;
}

.badge.bg-warning {
    background: var(--gradient-warning) !important;
}

.badge.bg-info {
    background: var(--gradient-info) !important;
}

.badge.bg-secondary {
    background: var(--gradient-secondary) !important;
}

.badge.bg-dark {
    background: linear-gradient(135deg, #374151, #1f2937) !important;
}

/* Enhanced Button Hover Effects */
.btn-outline-warning:hover {
    background: var(--gradient-warning);
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-info:hover {
    background: var(--gradient-info);
    border-color: transparent;
    color: var(--text-white);
}

.btn-outline-secondary {
    border: 2px solid var(--text-secondary) !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: var(--gradient-secondary) !important;
    border-color: transparent !important;
    color: var(--text-white) !important;
}

.btn-outline-dark:hover {
    background: linear-gradient(135deg, #374151, #1f2937);
    border-color: transparent;
    color: var(--text-white);
}

/* Enhanced Form Styling for Contact Section */
.contact-form-section .service-form {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-light);
}

.contact-form-section .form-control:focus,
.contact-form-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Enhanced Icon Animations */
.service-card .service-icon {
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card.property-service:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.service-card.brokerage-service:hover .service-icon {
    background: var(--gradient-success);
    color: var(--text-white);
}

.service-card.furniture-service:hover .service-icon {
    background: var(--gradient-warning);
    color: var(--text-white);
}

.service-card.construction-service:hover .service-icon {
    background: var(--gradient-secondary);
    color: var(--text-white);
}

.service-card.design-service:hover .service-icon {
    background: var(--gradient-info);
    color: var(--text-white);
}

/* Enhanced Card Hover Effects */
.service-card:hover .badge {
    transform: scale(1.1);
}

.service-card:hover .card-title {
    color: var(--primary-color);
}

/* Override for specific headings */
h2.text-gradient {
    color: var(--text-white) !important; /* Make h2 headings white */
}

h3.text-gradient {
    color: var(--text-primary) !important; /* Make h3 headings black */
}

/* Specific styling for "Find Us on the Map" - make it green */
section.bg-light h2.text-gradient {
    color: var(--secondary-dark) !important;
}

/* Specific styling for "Request a Service" - make it green */
.service-form-title.text-gradient {
    color: var(--secondary-dark) !important;
}

/* Enhanced Responsive Design for New Sections */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .map-overlay {
        padding: 1rem;
    }
    
    .contact-info-card {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 250px;
    }
    
    .map-overlay {
        padding: 0.75rem;
    }

    .map-overlay__link,
    .map-overlay__hours {
        font-size: 0.88rem;
    }

    .map-overlay__phones {
        gap: 0.3rem;
    }
    
    .contact-info-card .row {
        gap: 1rem;
    }
}

/* Services page: compact rectangular cards with better text spacing */
.services-section .service-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.services-section .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.services-section .service-card .card-body {
    padding: 1rem 1rem 1.1rem;
    text-align: left;
}

.services-section .service-card .card-title {
    font-size: 1.02rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.services-section .service-card .card-text {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.services-section .service-card .badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
}

.services-section .service-card .btn {
    border-radius: 10px;
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
}

.service-benefits-grid .service-benefit-card {
    border-radius: 12px;
    padding: 1rem !important;
}

.service-benefits-grid .service-benefit-card h6 {
    font-size: 0.95rem;
}

.service-benefits-grid .service-benefit-card p {
    line-height: 1.35;
}

/* Services page: keep benefit-card content centered on all screens */
.service-benefits-grid .service-benefit-card .d-flex {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 0.6rem;
}

.service-benefits-grid .service-benefit-card .d-flex > .rounded-circle {
    margin-right: 0 !important;
}

/* CTA pair: keep text fitting inside rectangular buttons */
.service-cta-actions {
    flex-wrap: nowrap !important;
    align-items: center;
}

.service-cta-actions .btn {
    min-width: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-cta-actions .btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    background: transparent !important;
    color: var(--primary-color) !important;
}

.service-cta-actions .btn-outline-primary:hover {
    color: var(--text-white) !important;
}

.immediate-assistance-icons {
    flex-wrap: nowrap !important;
    align-items: center;
}

.immediate-assistance-icons__btn {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    padding: 0 !important;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.immediate-assistance-icons__btn i {
    margin: 0 !important;
    font-size: 1.05rem;
}

@media (max-width: 576px) {
    .service-cta-actions {
        gap: 0.5rem !important;
    }

    .service-cta-actions .btn {
        flex: 1 1 0;
        padding: 0.62rem 0.52rem !important;
        font-size: 0.84rem !important;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .immediate-assistance-icons {
        gap: 0.65rem !important;
    }

    .immediate-assistance-icons__btn {
        width: 2.7rem;
        height: 2.7rem;
        min-width: 2.7rem;
    }
}

/* ===== GLOBAL RESPONSIVE TEXT + RESIZING TUNING ===== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.service-card,
.feature-card,
.map-overlay,
.service-form,
.modern-form {
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    h1, .h1 {
        font-size: clamp(1.9rem, 5.6vw, 2.5rem);
        line-height: 1.2;
    }

    h2, .h2 {
        font-size: clamp(1.55rem, 4.8vw, 2.1rem);
        line-height: 1.25;
    }

    h3, .h3 {
        font-size: clamp(1.3rem, 4.2vw, 1.7rem);
        line-height: 1.3;
    }

    .lead {
        font-size: clamp(1rem, 3.2vw, 1.15rem);
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    p,
    li,
    .form-label,
    .card-text,
    .text-muted,
    .dropdown-item__desc {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .service-form,
    .modern-form {
        width: 100%;
        max-width: 100% !important;
        padding: 1.05rem 0.95rem !important;
    }

    .service-form .form-control,
    .service-form .form-select,
    .service-form textarea.form-control,
    .modern-form .form-control,
    .modern-form .form-select,
    .modern-form textarea.form-control {
        font-size: 16px !important;
        line-height: 1.35;
    }

    .service-card .card-title,
    .feature-card h4 {
        line-height: 1.3;
        font-size: 1.08rem;
    }
}

/* Card resizing to match responsive text */
@media (max-width: 991.98px) {
    .service-card,
    .feature-card,
    .stat-card,
    .contact-info-card,
    .map-overlay {
        border-radius: 14px;
    }

    .service-card .card-body,
    .feature-card,
    .contact-info-card {
        padding: 1rem !important;
    }
}

@media (max-width: 576px) {
    .service-card,
    .feature-card,
    .stat-card,
    .contact-info-card,
    .map-overlay {
        border-radius: 12px;
    }

    .service-card .card-body,
    .feature-card,
    .stat-card,
    .contact-info-card,
    .map-overlay {
        padding: 0.9rem !important;
    }

    .service-card .position-relative,
    .services-section .service-card .position-relative {
        min-height: 165px;
    }

    .service-card .card-text,
    .feature-card p,
    .contact-info-card p {
        margin-bottom: 0.5rem;
    }
}

/* ===== WELCOME OVERLAY (first session only) ===== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(5, 150, 105, 0.45) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.welcome-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.welcome-overlay__panel {
    width: min(420px, calc(100% - 2rem));
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 2.25rem 1.75rem;
    text-align: center;
}

.welcome-overlay__logo {
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Show the logo as-is (no circular frame) */
    border-radius: 0;
    background: transparent;
    border: none;
    overflow: visible;
}

.welcome-overlay__logo img {
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

.welcome-overlay__title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.9rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.welcome-overlay__underline {
    height: 4px;
    width: 160px;
    margin: 0 auto 1rem auto;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.welcome-overlay__underline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: welcomeShine 1.2s ease-in-out infinite;
}

@keyframes welcomeShine {
    0% { transform: translateX(-100%); opacity: 0.2; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0.2; }
}

.welcome-overlay__hint {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
}