:root {
    --rowbwidth: 1px;
    --rowbcolor: #ffffff;
    --subheader-height: 0px; /* Default, overridden by JS if subheader exists */
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #001;
}

.landing-content {
    margin-left: 20%;
}

/* Message Bar Styles */
.message-bar {
    background-color: #800080;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    font-size: 16px;
    width: 100%;
}

/* Subheader Styles */
.subheader {
    background: linear-gradient(to right, #4b0082, #191970, #000000);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 100%;
    z-index: 1000; /* Above mobile menu */
    position: relative; /* Establish stacking context */
}

.subheader-left,
.subheader-right {
    display: flex;
    align-items: center;
}

.facebook-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #483d8b;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.facebook-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.facebook-btn:hover {
    background-color: #6a5acd;
    transform: scale(1.05);
}

.instagram-btn,
.tiktok-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #483d8b;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.instagram-btn i,
.tiktok-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.instagram-btn:hover,
.tiktok-btn:hover {
    background-color: #6a5acd;
    transform: scale(1.05);
}

.subheader-left {
    display: flex;
    gap: 10px;
}

.subheader-right {
    display: flex;
    gap: 10px;
}

.phone-number {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #3f005c;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.phone-number i {
    margin-right: 8px;
    font-size: 18px;
}

.phone-number:hover {
    background-color: #5a007a;
    color: #e6e6fa;
}

.quote-btn {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
}

.quote-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.quote-btn:hover::before {
    width: 200%;
    height: 200%;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 0, 204, 0.7);
}

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

/* Header Styles */
header {
    background-color: #000000;
    height: 102px;
    width: 100%;
    border-bottom: var(--rowbwidth) solid var(--rowbcolor);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1001; /* Above subheader and mobile menu */
    position: relative; /* Establish stacking context */
}

.site-logo {
    margin-left: 0;
}

.site-logo img {
    max-width: 66px;
    max-height: 66px;
}

.desktop-menu-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.primary-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.primary-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.primary-menu ul li a:hover {
    text-decoration: none;
    color: #7d00ff;
}

.header-icons {
    display: flex;
    gap: 15px;
    margin-right: 0;
    position: relative;
}

.header-icons svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    cursor: pointer;
}

.hamburger-menu {
    display: none;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 120px;
}

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

.profile-dropdown ul {
    list-style: none;
    padding: 8px 0;
}

.profile-dropdown ul li {
    padding: 8px 16px;
}

.profile-dropdown ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.profile-dropdown ul li a:hover {
    background-color: #f5f5f5;
}

.login-button {
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #333333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #555555;
    transform: scale(1.05);
}

.mobile-logout {
    display: none;
}

/* Content Styles */
.content-container {
    width: 100%;
    margin: 0 auto;
}

/* Footer Styles */
footer {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 40px;
}

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

.footer-logo img {
    max-width: 66px;
    max-height: 66px;
    display: block;
    margin: 0 auto;
}

.footer-menu {
    margin-bottom: 20px;
}

.footer-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.footer-menu ul li a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    text-align: center;
}

/* Lander Button Effects */
.get-started-bounce-effect {
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, #0400FF, #8000FF); /* Blue to purple */
    background-color: blue; /* Fallback */
    border: 3px solid #420073; /* Purple border */
    border-radius: 11px;
    color: white;
    transition: all 0.5s ease; /* Smooth transition for all properties */
}

.get-started-bounce-effect:hover {
    background: linear-gradient(to right, #8000FF, #0400FF); /* Gradient switches sides */
    box-shadow: 
        0 0 20px rgba(147, 0, 255, 0.7), /* Outer glow */
        inset 0 0 10px rgba(255, 255, 255, 0.3); /* Inner white glow */
    transform: scale(1.03); /* Subtle pulse without tilt */
    border-color: #d400ff; /* Brighter purple border */
}

/* Maintenance Mode Styles */
.maintenance-page {
    background: linear-gradient(135deg, #1a0026 0%, #000033 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    text-align: center;
}

.maintenance-logo {
    margin-bottom: 30px;
}

.maintenance-logo img {
    max-width: 100px;
    max-height: 100px;
}

.maintenance-header {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #e600e6;
    text-shadow: 0 0 10px rgba(230, 0, 230, 0.5);
}

.maintenance-message {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
    color: #d8b6ff;
    background: rgba(75, 0, 130, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #800080;
}

/* Mobile and Tablet Styles */
@media screen and (max-width: 1024px) {
    .desktop-menu-container,
    .desktop-menu {
        display: none; /* Hide desktop menu on mobile */
    }

    .mobile-menu {
        visibility: hidden; /* Hidden by default */
        opacity: 0; /* Fully transparent */
        pointer-events: none; /* Prevent interaction when hidden */
        position: absolute;
        top: 0; /* Start behind main header */
        left: 0;
        width: 100%;
        background-color: #000000;
        padding: 20px;
        z-index: 998; /* Below header (1001) and subheader (1000) */
        transform: translateY(-100%); /* Hidden above viewport */
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; /* Smooth slide and fade */
        border-radius: 0px 0px 20px 20px;
        border-bottom: 4px solid white;
    }

    .mobile-menu.active {
        visibility: visible; /* Show when active */
        opacity: 1; /* Fully opaque */
        pointer-events: auto; /* Allow interaction */
        transform: translateY(calc(102px + var(--subheader-height, 0px))); /* Slide to below header or subheader */
    }

    .mobile-menu.active .mobile-logout {
        display: block;
        margin-top: 15px;
        order: 999; /* Ensures it appears at the bottom */
    }

    .landing-content {
        text-align: center;
        justify-content: center !important;
        margin-left: 0px;
    }
    
    .lander-btns {
        width: 50% !important;
    }

    .get-started-bounce-effect {
        justify-content: center;
    }

    .mobile-menu ul {
        flex-direction: column;
        gap: 15px;
        order: 1; /* Menu items first */
    }

    .mobile-menu ul li {
        text-align: center;
        padding: 10px;
        background: #410071;
        border-radius: 15px;
        border: 1px solid;
    }

    .mobile-menu ul li a {
        display: block;
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        padding: 10px;
        border-radius: 15px;
    }

    .mobile-logout {
        display: block;
        margin-top: 15px;
    }

    .mobile-logout li a {
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        padding: 10px;
        display: block;
    }

    .mobile-logout li a:hover {
        background-color: #333333;
    }

    .hamburger-menu {
        display: block;
        width: 30px;
        height: 30px;
        fill: #000000;
        cursor: pointer;
        background-color: #ffffff;
        padding: 8px;
        border-radius: 8px;
    }

    .hamburger-menu.active {
        background-color: #800080;
        fill: #ffffff;
    }
    .hamburger-menu.active path {
        d: path("M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z");
    }

    .login-button .hamburger-menu {
        display: block;
    }

    .content-container {
        width: 100%;
        transition: margin-top 0.3s ease; /* Smooth content slide */
    }

    .content-container.menu-open {
        margin-top: calc(300px + var(--subheader-height, 0px)); /* Adjust based on menu height and subheader */
    }

    .profile-dropdown {
        display: none !important;
    }
}

@media screen and (min-width: 1025px) {
    .mobile-menu {
        display: none !important; /* Hide mobile menu on desktop */
    }

    .mobile-logout {
        display: none !important;
    }

    .hamburger-menu {
        display: none;
    }

    .desktop-menu {
        display: flex !important; /* Ensure desktop menu is visible */
        max-height: none !important; /* Remove mobile animation */
        padding: 0 !important; /* Reset mobile padding */
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    .site-logo {
        margin-left: 10px;
    }

    .header-icons {
        margin-right: 10px;
    }

    .login-button {
        margin-right: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .login-btn {
        padding: 6px 12px;
        font-size: 14px;
        line-height: 1.5;
    }

    .subheader {
        padding: 8px 10px;
        flex-wrap: nowrap;
    }

    .subheader-left {
        display: flex;
        gap: 10px;
    }

    .subheader-right {
        gap: 10px;
    }

    .facebook-btn,
    .instagram-btn,
    .tiktok-btn {
        background-color: transparent;
        padding: 8px;
    }

    .facebook-btn:hover,
    .instagram-btn:hover,
    .tiktok-btn:hover {
        background-color: #6a5acd;
        transform: none;
    }

    .social-text {
        display: none;
    }

    .facebook-btn i,
    .instagram-btn i,
    .tiktok-btn i {
        margin-right: 0;
    }

    .phone-number {
        background-color: transparent;
        padding: 8px;
    }

    .phone-number:hover {
        background-color: #5a007a;
        color: #ffffff;
    }

    .facebook-btn i,
    .phone-number i {
        margin-right: 0;
    }

    .quote-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .quote-btn:not(:empty)::before {
        content: none;
    }

    /* Additional social media icons for mobile */
    .subheader-left::after {
        content: '';
        display: flex;
        gap: 10px;
    }

    .subheader-left .twitter-btn,
    .subheader-left .instagram-btn {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #ffffff;
        background-color: transparent;
        padding: 8px;
        border-radius: 25px;
        transition: all 0.3s ease;
    }

    .subheader-left .twitter-btn:hover,
    .subheader-left .instagram-btn:hover {
        background-color: #6a5acd;
    }

    .subheader-left .twitter-btn i,
    .subheader-left .instagram-btn i {
        font-size: 18px;
    }

    .maintenance-header {
        font-size: 24px;
    }
    
    .maintenance-message {
        font-size: 16px;
        padding: 15px;
    }

    /* Phone number button: full button with "Call Now" */
    .phone-number {
        position: relative;
        background-color: #3f005c; /* Match desktop button background */
        padding: 8px 15px; /* Match quote-btn padding */
        border-radius: 25px; /* Consistent with other buttons */
        font-weight: bold; /* Match quote-btn style */
        overflow: hidden;
        height: 36px; /* Explicit height to match quote-btn */
        min-width: 100px; /* Match quote-btn */
        display: inline-block; /* Override flex to match quote-btn */
        line-height: 20px; /* Match text alignment */
    }

    .phone-number .social-text {
        visibility: hidden; /* Hide original "Call Us: (859) 213-6077" */
        display: inline; /* Ensure it takes space for layout */
    }

    .phone-number::after {
        content: 'Call Now'; /* Add "Call Now" text */
        position: absolute;
        top: 50%;
        left: calc(50% + 12px); /* Shift right to account for icon (16px) + margin (8px) */
        transform: translate(-50%, -50%); /* Center in remaining space */
        color: #ffffff;
        font-size: 16px; /* Match quote-btn */
        font-weight: bold;
        text-align: center;
        line-height: 1.5; /* Match quote-btn */
        white-space: nowrap; /* Prevent wrapping */
    }

    .phone-number i {
        margin: 0 8px 0 0; /* Remove vertical margins, keep right spacing */
        position: relative;
        z-index: 1; /* Ensure icon is above ::after */
        font-size: 16px; /* Match text size */
        line-height: 20px; /* Align with button height */
        vertical-align: middle; /* Center icon vertically */
    }

    /* Quote button: show only "Free Quote" */
    .quote-btn {
        position: relative;
        font-size: 16px; /* Consistent with phone-number */
        padding: 8px 15px; /* Match phone-number padding */
        min-width: 100px; /* Prevent button from shrinking */
        text-indent: -9999px; /* Hide original "Get a Free Quote" text */
        height: 36px; /* Explicit height to match phone-number */
        line-height: 20px; /* Match text alignment */
    }

    /* Add "Free Quote" text */
    .quote-btn::after {
        content: 'Free Quote'; /* Display "Free Quote" */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #ffffff;
        font-size: 16px; /* Match phone-number */
        font-weight: bold; /* Consistent styling */
        line-height: 1.5; /* Ensure proper vertical alignment */
        text-indent: 0; /* Override text-indent */
        text-align: center;
        white-space: nowrap; /* Prevent text wrapping */
    }
}