/* ==========================================================================
   MULTI-THEME SYSTEM — BetterCallLocksmith
   Themes: midnight (default), pearl, slate, ember, frost
   Usage: <body data-theme="midnight"> or omit for default
   ========================================================================== */

/* Default: Midnight Theme (refined dark) */
:root,
body,
body[data-theme="midnight"] {
    /* Core Brand Colors */
    --primary: #E12727;
    --primary-dark: #b81e1e;

    /* Semantic Theme Variables */
    --bg-page: #121418;
    --bg-section: #1a1d23;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #d8dee8;
    --text-muted: #949db0;
    --text-heading: #f8f9fc;
    --shadow-color: rgba(0, 0, 0, 0.3);

    /* Glass Effects */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Component-specific */
    --header-bg: rgba(18, 20, 24, 0.95);
    --footer-bg: #0e1014;
    --dropdown-bg: rgba(18, 20, 24, 0.95);
    --nav-link-color: #f0f0f5;
    --mobile-overlay-bg: rgba(18, 20, 24, 0.98);
    --content-container-bg: #181b20;
    --banner-overlay: rgba(0, 0, 0, 0.85);
    --banner-fade: rgba(0, 0, 0, 0.6);
    --map-filter: invert(0.9) hue-rotate(180deg) grayscale(1);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-color: #e0e0e6;
    --input-focus-bg: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --logo-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)) brightness(1.1);
    --footer-text-main: #d8dee8;
    --footer-text-muted: #949db0;
    --banner-text: #ffffff;
    --banner-text-muted: #cccccc;
}

/* ---------- Pearl: Warm Amber Light ---------- */
body[data-theme="pearl"] {
    --primary: #C42B1C;
    --primary-dark: #9A2015;
    --bg-page: #f5ece0;
    --bg-section: #ebe1d1;
    --bg-card: #fdf8f0;
    --bg-input: #f2e8d8;
    --border-color: #dccab5;
    --text-main: #000000;
    --text-muted: #000000;
    --text-heading: #000000;
    --shadow-color: rgba(120, 80, 30, 0.15);
    --glass: rgba(160, 120, 60, 0.1);
    --glass-border: rgba(160, 120, 60, 0.2);
    --header-bg: rgba(245, 236, 224, 0.97);
    --footer-bg: #322921;
    --dropdown-bg: #fdf8f0;
    --nav-link-color: #2a1f14;
    --mobile-overlay-bg: rgba(245, 236, 224, 0.98);
    --logo-filter: sepia(0.2) saturate(1.3);
    --content-container-bg: #fdf8f0;
    --banner-overlay: rgba(245, 236, 224, 0.65);
    --banner-fade: transparent;
    --map-filter: sepia(30%) contrast(1.1) saturate(1.2);
    --input-bg: #f2e8d8;
    --input-border: #dccab5;
    --input-color: #3d3228;
    --input-focus-bg: #fdf8f0;
    --card-hover-bg: #f5ede0;
    --dark: #2a1f14;
    --darker: #f5ece0;
    --light: #2a1f14;
    --gray: #7a6b5a;
    --footer-text-main: #f5ece0;
    --footer-text-muted: #dccab5;
    --banner-text: #2d1d10;
    --banner-text-muted: #4a3c30;
}

/* ---------- Slate: Professional Mid-Tone ---------- */
body[data-theme="slate"] {
    --primary: #E84040;
    --primary-dark: #c03030;
    --bg-page: #1a1e26;
    --bg-section: #242933;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #e2eaf5;
    --text-muted: #aab6ca;
    --text-heading: #f4f8ff;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(26, 30, 38, 0.96);
    --footer-bg: #11141a;
    --dropdown-bg: rgba(26, 30, 38, 0.96);
    --nav-link-color: #f4f8ff;
    --mobile-overlay-bg: rgba(26, 30, 38, 0.98);
    --content-container-bg: #202632;
    --banner-overlay: rgba(15, 20, 30, 0.9);
    --banner-fade: rgba(15, 20, 30, 0.6);
    --map-filter: invert(0.85) hue-rotate(180deg) grayscale(0.8);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-color: #e2eaf5;
    --input-focus-bg: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --logo-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)) brightness(1.05);
    --dark: #242933;
    --darker: #1a1e26;
    --light: #f4f8ff;
    --gray: #aab6ca;
    --footer-text-main: #e2eaf5;
    --footer-text-muted: #aab6ca;
    --banner-text: #ffffff;
    --banner-text-muted: #cccccc;
}

/* ---------- Ember: Dark + Warm Accents ---------- */
body[data-theme="ember"] {
    --primary: #E12727;
    --primary-dark: #b81e1e;
    --bg-page: #16120e;
    --bg-section: #1e1914;
    --bg-card: rgba(255, 200, 150, 0.04);
    --bg-input: rgba(255, 200, 150, 0.04);
    --border-color: rgba(255, 200, 150, 0.08);
    --text-main: #ecdac5;
    --text-muted: #a69584;
    --text-heading: #fff0df;
    --shadow-color: rgba(0, 0, 0, 0.35);
    --glass: rgba(255, 200, 150, 0.04);
    --glass-border: rgba(255, 200, 150, 0.08);
    --header-bg: rgba(22, 18, 14, 0.96);
    --footer-bg: #110e0a;
    --dropdown-bg: rgba(22, 18, 14, 0.96);
    --nav-link-color: #f5ede3;
    --mobile-overlay-bg: rgba(22, 18, 14, 0.98);
    --content-container-bg: #1c1710;
    --banner-overlay: rgba(20, 10, 5, 0.9);
    --banner-fade: rgba(20, 10, 5, 0.6);
    --map-filter: invert(0.9) hue-rotate(180deg) grayscale(1) sepia(0.15);
    --input-bg: rgba(255, 200, 150, 0.04);
    --input-border: rgba(255, 200, 150, 0.08);
    --input-color: #e0d5c8;
    --input-focus-bg: rgba(255, 200, 150, 0.06);
    --card-hover-bg: rgba(255, 200, 150, 0.06);
    --logo-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)) brightness(1.1) sepia(0.1);
    --dark: #1e1914;
    --darker: #16120e;
    --light: #f5ede3;
    --gray: #9a8e80;
    --footer-text-main: #ecdac5;
    --footer-text-muted: #a69584;
    --banner-text: #ffffff;
    --banner-text-muted: #cccccc;
}

/* ---------- Frost: Steel Blue Light ---------- */
body[data-theme="frost"] {
    --primary: #C42030;
    --primary-dark: #9A1825;
    --bg-page: #e0e8f2;
    --bg-section: #d0dceb;
    --bg-card: #eaf1f7;
    --bg-input: #dae3f0;
    --border-color: #a8b9d4;
    --text-main: #000000;
    --text-muted: #000000;
    --text-heading: #000000;
    --shadow-color: rgba(30, 60, 110, 0.18);
    --glass: rgba(50, 90, 160, 0.1);
    --glass-border: rgba(50, 90, 160, 0.2);
    --header-bg: rgba(20, 27, 38, 0.97);
    --footer-bg: #141b26;
    --dropdown-bg: #eaf1f7;
    --nav-link-color: #e0e8f2;
    --mobile-overlay-bg: rgba(20, 27, 38, 0.98);
    --banner-overlay: rgba(224, 232, 242, 0.85);
    --banner-fade: rgba(208, 220, 235, 0.6);
    --map-filter: saturate(1.3) contrast(1.1) hue-rotate(15deg);
    --input-bg: #dae3f0;
    --input-border: #a8b9d4;
    --input-color: #1e2a3e;
    --input-focus-bg: #eaf1f7;
    --card-hover-bg: #d0dceb;
    --logo-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)) brightness(1.1) hue-rotate(10deg) saturate(1.3);
    --content-container-bg: #eaf1f7;
    --dark: #0f1a2e;
    --darker: #e0e8f2;
    --light: #0f1a2e;
    --gray: #4a5e7a;
    --footer-text-main: #e0e8f2;
    --footer-text-muted: #a8b9d4;
    --banner-text: #0a1426;
    --banner-text-muted: #0a1426;
}

/* ---------- Crimson: Mixed Mid-Tone Red ---------- */
body[data-theme="crimson"] {
    --primary: #cc2936;
    --primary-dark: #a61d27;
    --bg-page: #e6dede;
    --bg-section: #dbcfcf;
    --bg-card: #f2ecec;
    --bg-input: #ebe1e1;
    --border-color: #c4b5b5;
    --text-main: #000000;
    --text-muted: #000000;
    --text-heading: #000000;
    --shadow-color: rgba(100, 30, 30, 0.15);
    --glass: rgba(204, 41, 54, 0.04);
    --glass-border: rgba(204, 41, 54, 0.15);
    --header-bg: rgba(43, 28, 28, 0.96);
    --footer-bg: #2b1c1c;
    --dropdown-bg: #f2ecec;
    --nav-link-color: #e6dede;
    --mobile-overlay-bg: rgba(43, 28, 28, 0.98);
    --content-container-bg: #f2ecec;
    --banner-overlay: rgba(230, 222, 222, 0.85);
    --banner-fade: rgba(230, 222, 222, 0.5);
    --map-filter: sepia(0.3) saturate(1.2) hue-rotate(330deg);
    --input-bg: #f2ecec;
    --input-border: #c4b5b5;
    --input-color: #382424;
    --input-focus-bg: #ffffff;
    --card-hover-bg: #ffffff;
    --logo-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5)) brightness(1.2);
    --dark: #dbcfcf;
    --darker: #e6dede;
    --light: #2b1c1c;
    --gray: #6b5555;
    --footer-text-main: #e6dede;
    --footer-text-muted: #c4b5b5;
    --banner-text: #1a0f0f;
    --banner-text-muted: #382424;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Titillium Web', sans-serif;
    color: var(--text-heading);
    margin-bottom: 20px;
    word-wrap: break-word;
}

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

p,
li,
span,
div {
    color: inherit;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0 !important;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px var(--shadow-color);
    transition: background 0.3s ease;
    height: auto;
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

.logo img {
    height: 110px !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: var(--logo-filter);
    transition: transform 0.3s ease, filter 0.3s ease;
}

@media (max-width: 768px) {
    .logo img {
        height: 85px !important;
    }
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(225, 39, 39, 0.4)) brightness(1.2);
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Dropdown Styles */
.nav-item {
    position: relative;
    padding: 10px 0;
}

.nav-link {
    font-weight: 600;
    color: var(--nav-link-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Ensure Nav Links are visible */
.site-header .nav-link {
    color: var(--nav-link-color) !important;
    opacity: 1;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    min-width: 240px;
    box-shadow: 0 5px 30px var(--shadow-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    padding-top: 15px;
    margin-top: -5px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu a,
.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-size: 15px;
    white-space: nowrap;
    text-align: left;
    font-weight: 400;
    transition: all 0.2s ease;
}

.dropdown-item {
    color: var(--text-main) !important;
}

.dropdown-menu a:hover,
.dropdown-item:hover {
    background: var(--glass);
    color: var(--primary) !important;
    padding-left: 25px;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 5px 0;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 90vw;
    max-width: 1100px;
    background: var(--bg-section);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
    box-shadow: 0 15px 50px var(--shadow-color);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-col-title {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.mega-link {
    display: block;
    padding: 5px 0;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.2s ease;
}

.mega-link:hover {
    color: var(--text-main);
    transform: translateX(3px);
}

/* Mega Dropdown (Service Areas) */
.mega-dropdown {
    min-width: 680px !important;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px !important;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mega-col h4 {
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 700;
}

.mega-col .dropdown-item {
    padding: 6px 8px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .mega-dropdown {
        min-width: 500px !important;
    }

    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */

.theme-toggle-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    padding: 0;
    outline: none;
    position: relative;
    overflow: visible;
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Theme Dropdown */
.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1002;
}

.theme-toggle-btn.active .theme-dropdown,
.theme-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.theme-option:hover {
    background: var(--glass);
    color: var(--primary);
}

.theme-option.active {
    color: var(--primary);
    font-weight: 700;
}

.theme-option .theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.theme-option.active .theme-dot {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Theme dot colors */
.theme-dot[data-theme="midnight"] {
    background: #121418;
}

.theme-dot[data-theme="pearl"] {
    background: #faf8f5;
}

.theme-dot[data-theme="slate"] {
    background: #2c3039;
}

.theme-dot[data-theme="ember"] {
    background: #16120e;
    border-color: rgba(255, 200, 150, 0.3);
}

.theme-dot[data-theme="frost"] {
    background: #f4f6fa;
}

.theme-dot[data-theme="crimson"] {
    background: #e6dede;
    border-color: #cc2936;
}

.header-phone {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-quote {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-quote:hover,
.btn-quote:focus {
    color: white !important;
    background: var(--primary-dark);
}

/* Proudly Canadian Badge — mobile only */
.proudly-canadian {
    display: none;
}

/* Responsive Header */
@media (max-width: 992px) {

    .main-nav,
    .header-cta {
        display: none;
    }

    .proudly-canadian {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex: 1;
        font-family: 'Titillium Web', sans-serif;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--nav-link-color);
        white-space: nowrap;
        opacity: 0.9;
    }

    .proudly-canadian .canada-flag {
        font-size: 16px;
        line-height: 1;
    }

    .menu_trigger {
        display: block;
        margin-left: 20px;
        color: var(--nav-link-color);
    }

    .theme-toggle-btn {
        margin-left: auto;
        z-index: 1001;
        /* Ensure it stays above other header elements */
    }

    .site-header .container {
        overflow: visible !important;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text-main);
    padding: 80px 0 0;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--footer-text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-phone a {
    font-size: 22px;
    font-weight: 800;
    color: var(--footer-text-main);
}

.footer-email a {
    font-size: 16px;
    color: var(--footer-text-muted);
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    color: var(--footer-text-muted);
    font-size: 13px;
}

/* ==========================================================================
   GLASS CARD & UI UTILITIES
   ========================================================================== */

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-main);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--card-hover-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.cta-card-inner {
    padding: 60px;
    display: inline-block;
}

@media (max-width: 768px) {
    .cta-card-inner {
        padding: 30px 20px !important;
        display: block !important;
        width: 100% !important;
    }

    .btn-cta-mobile {
        padding: 12px 20px !important;
        font-size: 18px !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select,
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-color);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-focus-bg);
    box-shadow: 0 0 0 3px rgba(225, 39, 39, 0.1);
}

/* Glass Card / Sidebar inputs inherit from parent */
.glass-card input,
.glass-card textarea,
.glass-card select,
.site-footer input,
.sidebar-widget input,
.sidebar-widget select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-color);
}

.glass-card input:focus,
.sidebar-widget input:focus {
    background: var(--input-focus-bg);
    border-color: var(--primary);
}

/* Sidebar Widget */
.sidebar-widget {
    background: var(--bg-section);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.sidebar-widget h3 {
    color: var(--text-heading);
    margin-bottom: 20px;
    font-size: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

/* CRITICAL: Ensure white text on all SOLID brand buttons */
.btn:not(.btn-outline),
.btn-primary,
.btn-theme,
.btn-quote,
.wpcf7-submit {
    color: white !important;
}

.btn:not(.btn-outline):hover,
.btn-primary:hover,
.btn-theme:hover,
.btn-quote:hover,
.wpcf7-submit:hover {
    color: white !important;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    text-decoration: none;
}

.btn:not(.btn-outline) {
    background: var(--primary);
    color: white !important;
}

.btn:not(.btn-outline):hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(225, 39, 39, 0.4);
    color: white !important;
}

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

.btn-outline:hover {
    background: var(--primary) !important;
    color: white !important;
}

.btn.btn-theme:hover,
.btn.btn-theme:focus,
.btn-theme:hover,
.btn-theme:focus,
.btn.btn-theme,
.btn-theme {
    color: white !important;
}

.btn-primary *,
button.btn-primary,
a.btn-primary {
    color: white !important;
}

/* ==========================================================================
   LOCATION CARDS
   ========================================================================== */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.location-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-size: 18px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.location-card:hover {
    color: var(--primary);
    text-decoration: none;
    background: var(--card-hover-bg);
    border-color: var(--primary);
}

/* ==========================================================================
   FOOTER RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .footer-col.about {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-col.about .footer-logo {
        margin: 0 0 20px;
    }

    .footer-col ul {
        display: block;
        text-align: left;
    }
}

/* ==========================================================================
   CONTENT CONTAINER
   ========================================================================== */

.content-container {
    background: var(--content-container-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 4px 20px var(--shadow-color);
    margin-bottom: 30px;
    width: 100%;
    overflow: hidden;
}

.content-container h2,
.content-container h3 {
    color: var(--text-heading);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.content-container p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.content-container ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 auto !important;
    }

    .content-container {
        padding: 30px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin-bottom: 25px !important;
    }

    .content-container img,
    .alignright,
    .alignleft {
        float: none !important;
        display: block !important;
        margin: 0 auto 20px auto !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
        display: block !important;
    }
}

/* ==========================================================================
   BANNER & HERO
   ========================================================================== */

.banner-area {
    position: relative;
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    color: var(--text-main);
    text-align: center;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .banner-area {
        padding: 170px 0 60px;
    }
}

.banner-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--banner-overlay);
    z-index: 1;
    transition: background 0.3s ease;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--text-heading);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 28px;
    }
}

.banner-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
}

.breadcrumb a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover,
.breadcrumb .active {
    color: var(--primary);
}

.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--banner-overlay) 0%, var(--banner-overlay) 100%),
        url('../wp-content/uploads/2025/05/banner.jpg') center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-heading);
}

.hero p a,
.cta-section a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.hero p a:hover,
.cta-section a:hover {
    color: var(--primary-dark);
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-section);
    margin-top: 50px;
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--mobile-overlay-bg);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 60px 0;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

.mobile-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.mobile-link {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.submenu-toggle {
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.mobile-has-submenu.active .submenu-toggle {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.mobile-has-submenu.active .mobile-submenu {
    max-height: 500px;
    margin-top: 10px;
    padding: 10px 0;
}

.mobile-submenu a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-submenu a:hover {
    color: var(--primary);
    background: var(--glass);
}

.mobile-cta {
    margin-top: 20px;
}

@media (max-width: 992px) {

    .site-header .main-nav,
    .site-header .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-page-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}

.contact-info {
    padding-right: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

.map-section {
    width: 100%;
    height: 500px;
    margin-top: 0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: var(--map-filter);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form {
        padding: 30px;
    }
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */

.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(90deg, #b81e1e 0%, var(--primary, #E12727) 40%, #ff4d4d 70%, var(--primary, #E12727) 100%);
    background-size: 200% 100%;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(225, 39, 39, 0.4);
    animation: promoBannerGlow 2s ease-in-out infinite, promoBannerSlide 4s linear infinite;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.promo-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.promo-banner-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Titillium Web', sans-serif;
}

.promo-banner-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.promo-banner-flash {
    animation: promoEmojiBounce 1s ease-in-out infinite;
    font-size: 18px;
}

.promo-banner-text {
    font-size: 16px;
}

.promo-banner-text strong {
    font-size: 20px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.promo-banner-divider {
    opacity: 0.5;
    margin: 0 4px;
}

.promo-banner-cta {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease;
}

.promo-banner-link:hover .promo-banner-cta {
    background: rgba(255, 255, 255, 0.25);
}

.promo-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.promo-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Animations */
@keyframes promoBannerGlow {

    0%,
    100% {
        box-shadow: 0 2px 15px rgba(225, 39, 39, 0.4);
    }

    50% {
        box-shadow: 0 2px 25px rgba(225, 39, 39, 0.7), 0 0 40px rgba(225, 39, 39, 0.2);
    }
}

@keyframes promoBannerSlide {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes promoEmojiBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Body offset when banner is present */
body.has-promo-banner {
    --promo-banner-height: 42px;
}

body.has-promo-banner .site-header {
    top: var(--promo-banner-height, 46px);
}

/* Responsive */
@media (max-width: 768px) {
    .promo-banner {
        padding: 8px 40px 8px 10px;
    }

    .promo-banner-link {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .promo-banner-text {
        font-size: 13px;
    }

    .promo-banner-text strong {
        font-size: 16px;
    }

    .promo-banner-divider {
        display: none;
    }

    .promo-banner-cta {
        font-size: 11px;
        padding: 3px 10px;
    }

    body.has-promo-banner {
        --promo-banner-height: 50px;
    }
}

@media (max-width: 480px) {
    .promo-banner-cta {
        display: none;
    }

    .promo-banner-link::after {
        content: '📞 Call Now!';
        background: rgba(255, 255, 255, 0.15);
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 11px;
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    body.has-promo-banner {
        --promo-banner-height: 38px;
    }
}

/* ==========================================================================
   FLOATING CALL BUTTON (FAB)
   ========================================================================== */

.floating-call-wrapper {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: none;
}



.floating-call-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow:
        0 4px 15px rgba(225, 39, 39, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    cursor: pointer;
}

.floating-call-btn:hover {
    transform: scale(1.12);
    box-shadow:
        0 6px 25px rgba(225, 39, 39, 0.55),
        0 3px 10px rgba(0, 0, 0, 0.25);
    color: #fff !important;
}

.floating-call-btn:active {
    transform: scale(0.95);
}

/* Phone icon */
.floating-call-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Pulse ring animation */
.floating-call-ping {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: floatingCallPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes floatingCallPing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip label — desktop only */
.floating-call-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.floating-call-label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
    border-right: none;
}

.floating-call-btn:hover .floating-call-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Mobile: show the button */
@media (max-width: 768px) {
    .floating-call-wrapper {
        display: block;
        bottom: 24px;
        right: 20px;
    }

    .floating-call-btn {
        width: 54px;
        height: 54px;
    }

    .floating-call-icon svg {
        width: 22px;
        height: 22px;
    }

    .floating-call-label {
        display: none;
    }
}