/* ========================================
   WASATCH WATER HEATERS - MAIN STYLESHEET
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    --primary: #D32F2F;
    --secondary: #1A1A1A;
    --offwhite: #F4F4F4;
    --darkgray: #121212;
}

/* ========== Base Styles ========== */
html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

body {
    background-color: #FFFFFF;
    color: #1A1A1A;
    overflow-x: hidden;
    cursor: none;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* WordPress Admin Bar Fix */
body.admin-bar {
    margin-top: 0 !important;
}

/* ========== Premium Header Styles ========== */
/* Top Bar - Fixed */
.header-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, #1A1A1A 0%, #2a2a2a 50%, #1A1A1A 100%);
    background-size: 200% 200%;
    animation: subtle-gradient 8s ease infinite;
    border-bottom: 1px solid rgba(211, 47, 47, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

@keyframes subtle-gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.header-top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.5), transparent);
}

/* Premium Navigation */
.nav-premium {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-premium.scrolled {
    top: 0;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.nav-inner:hover::before {
    left: 100%;
}

.nav-premium.scrolled .nav-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Nav Link Styles */
.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1A1A1A;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D32F2F, #ff5252);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-link:hover {
    color: #D32F2F;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #D32F2F;
}

/* Premium Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1A1A1A;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-dropdown-trigger svg {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: #D32F2F;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

/* Premium Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: 0.5rem;
    padding-top: 1rem;
    /* Extra padding for hover bridge */
    margin-top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 9999;
}

/* Invisible hover bridge - extends hover area above the menu */
.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1A1A1A;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.625rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #D32F2F, #ff5252);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown-item:hover {
    background: rgba(211, 47, 47, 0.08);
    color: #D32F2F;
    padding-left: 1.25rem;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 0.5rem;
    color: #D32F2F;
    transition: all 0.25s ease;
}

.dropdown-item:hover .dropdown-item-icon {
    background: #D32F2F;
    color: white;
    transform: scale(1.1);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 0.5rem 0;
}

/* Nav Buttons */
.nav-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #1A1A1A;
    border-radius: 50px;
    color: #1A1A1A;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1A1A1A;
    transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.nav-btn-outline:hover {
    color: white;
    border-color: #1A1A1A;
}

.nav-btn-outline:hover::before {
    left: 0;
}

.nav-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    color: white;
    background: linear-gradient(135deg, #D32F2F 0%, #ff5252 50%, #D32F2F 100%);
    background-size: 200% 200%;
    border: none;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 6px 25px rgba(211, 47, 47, 0.5);
    transform: translateY(-2px);
}

.nav-btn-primary:hover::before {
    left: 100%;
}

/* ========== Smooth Scroll Setup (Lenis) ========== */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ========== Custom Cursor ========== */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(211, 47, 47, 0.2);
    border-color: transparent;
}

/* ========== Pipeline SVG Background ========== */
.pipeline-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

/* ========== Typography Utilities ========== */
.text-outline {
    -webkit-text-stroke: 1px rgba(26, 26, 26, 0.2);
    color: transparent;
}

.text-outline-white {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* ========== Loader ========== */
#loader {
    position: fixed;
    inset: 0;
    background: #1A1A1A;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    width: 100px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
}

.loader-text-wrapper {
    position: relative;
    font-family: var(--font-header), serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
}

.loader-text-base {
    opacity: 0.25;
    color: white;
}

.loader-text-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: var(--primary, #D32F2F);
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    white-space: nowrap;
}

.loader-bar {
    width: 0%;
    height: 4px;
    background: #D32F2F;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ========== Button Styles ========== */
.btn-magnetic {
    position: relative;
    overflow: hidden;
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1A1A1A;
    transition: top 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}

.btn-magnetic:hover::after {
    top: 0;
}

.btn-magnetic:hover {
    color: white;
}

.btn-premium {
    position: relative;
    background: linear-gradient(135deg, #D32F2F 0%, #ff5252 50%, #D32F2F 100%);
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
}

.btn-premium:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.6);
    transform: translateY(-2px);
}

/* ========== Animated Gradient Background ========== */
.gradient-bg {
    background: linear-gradient(-45deg, #1A1A1A, #2d1f1f, #1A1A1A, #1f1f2d);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========== Glassmorphism ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-primary {
    background: rgba(211, 47, 47, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== Shimmer Effect ========== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========== Glow Effects ========== */
.glow-primary {
    box-shadow: 0 0 40px rgba(211, 47, 47, 0.4), 0 0 80px rgba(211, 47, 47, 0.2);
}

.glow-primary-soft {
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.3);
}

.text-glow {
    text-shadow: 0 0 30px rgba(211, 47, 47, 0.5);
}

/* ========== Floating Animation ========== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* ========== Gradient Border ========== */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.5), rgba(100, 100, 255, 0.3));
    padding: 2px;
    border-radius: 1rem;
}

.gradient-border-inner {
    background: #121212;
    border-radius: calc(1rem - 2px);
}

.gradient-border-animated {
    background: linear-gradient(135deg, #D32F2F, #ff6b6b, #D32F2F, #4361ee);
    background-size: 300% 300%;
    animation: gradient-border-move 4s ease infinite;
}

@keyframes gradient-border-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========== Pulse Glow ========== */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(211, 47, 47, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(211, 47, 47, 0.8);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ========== Stat Counter ========== */
.stat-number {
    background: linear-gradient(135deg, #fff, #D32F2F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Decorative Orbs ========== */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.orb-primary {
    background: radial-gradient(circle, rgba(211, 47, 47, 0.6) 0%, transparent 70%);
}

.orb-blue {
    background: radial-gradient(circle, rgba(67, 97, 238, 0.4) 0%, transparent 70%);
}

/* ========== Premium Card Hover ========== */
.premium-card {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(211, 47, 47, 0.1);
}

/* ========== Timeline Styles ========== */
.timeline-line {
    background: linear-gradient(to bottom, transparent, #D32F2F, transparent);
}

.timeline-dot {
    background: #D32F2F;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.6);
}

/* ========== Quote Decoration ========== */
.quote-mark {
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 0;
    color: rgba(211, 47, 47, 0.1);
}

/* ========== Sparkle Effect ========== */
@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.sparkle::after {
    content: '✦';
    position: absolute;
    color: #D32F2F;
    animation: sparkle 1.5s ease-in-out infinite;
}

/* ========== Service Cards ========== */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: auto;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Services Section - ensure cards are fully visible */
#services-pin-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.services-track {
    flex: 1;
    display: flex;
    align-items: center;
    padding-bottom: 2rem;
}

.service-card {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 280px);
    max-height: 580px;
}

.service-card .relative.z-10 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card .mt-auto {
    margin-top: auto;
}

/* ========== Mobile Services Section - Horizontal Slider ========== */
@media (max-width: 1023px) {
    #services-pin-wrapper {
        height: auto;
        min-height: auto;
        overflow: hidden;
        position: relative;
    }

    .services-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        padding: 1rem 1rem 2rem !important;
        gap: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-track::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 85%;
        width: 85% !important;
        min-width: 85%;
        max-width: 85%;
        scroll-snap-align: center;
        height: auto;
        min-height: 320px;
        margin: 0;
        padding: 1.5rem !important;
    }

    .service-card h3 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    .service-card p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    .service-card .w-14 {
        width: 3rem !important;
        height: 3rem !important;
    }

    .service-card .w-14 svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    /* Mobile slider navigation arrows */
    .mobile-slider-nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem 1.5rem;
    }

    .mobile-slider-nav button {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-slider-nav button:hover,
    .mobile-slider-nav button:active {
        background: var(--primary);
        border-color: var(--primary);
    }

    /* Slider dots indicator */
    .slider-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding-bottom: 1rem;
    }

    .slider-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .slider-dots span.active {
        background: var(--primary);
        width: 24px;
        border-radius: 4px;
    }
}

/* Desktop - hide mobile nav elements */
@media (min-width: 1024px) {

    .mobile-slider-nav,
    .slider-dots {
        display: none !important;
    }
}

/* ========== Marquee ========== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== City Card (Location Pages) ========== */
.city-card {
    transition: all 0.3s ease;
}

.city-card:hover {
    transform: translateY(-5px);
    background-color: rgba(211, 47, 47, 0.05);
    border-color: rgba(211, 47, 47, 0.3);
}

.city-card:hover .city-icon {
    color: #D32F2F;
    transform: scale(1.1);
}

/* ========== Custom List Bullet ========== */
ul.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

ul.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #D32F2F;
    font-weight: bold;
}

/* ========== Premium Hero Section ========== */
.hero-premium {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    background: linear-gradient(-45deg, #1A1A1A, #2d1f1f, #1A1A1A, #1f1f2d);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
}

/* Hero Watermark - Large text at bottom */
.hero-watermark {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(15vw, 20vw, 25vw);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 0.8;
    letter-spacing: -0.02em;
}

/* Hero Gradient Overlay - Skewed element */
.hero-gradient-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(211, 47, 47, 0.1), transparent);
    transform: skewX(-12deg) translateX(15%);
    pointer-events: none;
}

/* Hero Glass Badge - Floating stat card */
.hero-glass-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.hero-glass-badge-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: float 6s ease-in-out infinite;
}

/* Hero Image Premium - With clip-path and shadow */
.hero-image-premium {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(211, 47, 47, 0.2);
}

.hero-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
}

.hero-image-premium:hover img {
    transform: scale(1.05);
}

/* Hero Content Wrapper */
.hero-content-premium {
    position: relative;
    z-index: 10;
}

/* Hero Orb Enhancements */
.hero-orb-primary {
    position: absolute;
    width: 700px;
    height: 700px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-accent {
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

/* Hero Tag Line */
.hero-tagline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-tagline-line {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #D32F2F, transparent);
}

.hero-tagline-text {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D32F2F;
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #D32F2F;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Hero Mountain Image Container */
.hero-mountain-bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 80%;
    opacity: 0.15;
    pointer-events: none;
}

.hero-mountain-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom right;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent 80%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent 80%);
}

/* ========================================
   RESPONSIVE STYLES - MEDIA QUERIES
   ======================================== */

/* ========== Mobile Menu Styles ========== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1A1A1A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
    margin-bottom: 6px;
}

.mobile-menu-btn span:nth-child(3) {
    margin-top: 6px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding-top: 100px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-nav {
    padding: 2rem;
}

.mobile-menu-nav a {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #1A1A1A;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #D32F2F;
    padding-left: 1rem;
}

.mobile-menu-dropdown {
    padding-left: 1rem;
}

.mobile-menu-dropdown a {
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-menu-dropdown-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-menu-dropdown-title svg {
    transition: transform 0.3s ease;
}

.mobile-menu-dropdown.open .mobile-menu-dropdown-title svg {
    transform: rotate(180deg);
}

.mobile-menu-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-dropdown.open .mobile-menu-dropdown-content {
    max-height: 500px;
}

/* ========== Touch Device Support ========== */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    #cursor {
        display: none !important;
    }

    .nav-link,
    .dropdown-item,
    .nav-btn-outline,
    .nav-btn-primary {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ========== Large Desktop (1440px+) ========== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* ========== Desktop/Laptop (1024px - 1439px) ========== */
@media (max-width: 1439px) {
    .hero-orb-primary {
        width: 500px;
        height: 500px;
    }

    .hero-orb-accent {
        width: 400px;
        height: 400px;
    }
}

/* ========== Tablet & Small Laptop (768px - 1023px) ========== */
@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-premium .hidden.lg\:flex {
        display: none !important;
    }

    .header-top-bar {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }

    .header-top-bar .flex.gap-4 {
        gap: 0.75rem;
    }

    .nav-premium {
        top: 32px;
    }

    .nav-inner {
        padding: 0.75rem 1rem;
    }

    .hero-orb-primary {
        width: 350px;
        height: 350px;
        top: -100px;
        right: -100px;
    }

    .hero-orb-accent {
        width: 250px;
        height: 250px;
        bottom: -80px;
        left: -80px;
    }

    .orb {
        filter: blur(60px);
    }

    .orb.w-\[600px\] {
        width: 300px !important;
        height: 300px !important;
    }

    .orb.w-\[500px\] {
        width: 250px !important;
        height: 250px !important;
    }

    .orb.w-\[400px\] {
        width: 200px !important;
        height: 200px !important;
    }

    .orb.w-\[300px\] {
        width: 150px !important;
        height: 150px !important;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .service-card {
        height: auto;
        min-height: 350px;
    }

    .hero-mountain-bg {
        width: 80%;
        opacity: 0.1;
    }

    /* Services section overflow fix */
    #services-pin-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .services-track {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ========== Mobile Landscape & Large Mobile (576px - 767px) ========== */
@media (max-width: 767px) {

    /* Services section mobile styles */
    #services-pin-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .services-track {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .service-card {
        width: 80vw !important;
        min-width: 280px;
        max-width: 320px;
        flex-shrink: 0;
        padding: 1.5rem !important;
    }

    .service-card h3 {
        font-size: 1.5rem !important;
    }

    .service-card p {
        font-size: 0.875rem;
    }

    .header-top-bar {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .header-top-bar .flex.gap-4 {
        gap: 0.5rem;
    }

    .header-top-bar .text-primary.flex {
        display: none;
    }

    .nav-premium {
        top: 28px;
        padding: 0.5rem 0;
    }

    .nav-inner {
        padding: 0.625rem 1rem;
        border-radius: 0.75rem;
    }

    .nav-inner img {
        height: 48px;
    }

    .nav-btn-outline {
        display: none !important;
    }

    .nav-btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .hero-orb-primary {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    .hero-orb-accent {
        width: 150px;
        height: 150px;
        bottom: -40px;
        left: -40px;
    }

    .orb {
        filter: blur(40px);
    }

    .hero-glass-badge,
    .hero-glass-badge-light {
        padding: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stat-item {
        flex: 1 1 45%;
    }

    .quote-mark {
        font-size: 5rem;
    }

    .service-area-item .text-6xl {
        display: none;
    }

    .hero-gradient-overlay {
        width: 100%;
        transform: skewX(-6deg) translateX(10%);
    }

    .hero-watermark {
        font-size: 18vw;
    }

    /* Responsive Section Headings */
    .font-header.text-5xl,
    h1.text-5xl,
    h2.text-5xl {
        font-size: 2.5rem !important;
    }

    .font-header.text-6xl,
    h1.text-6xl,
    h2.text-6xl {
        font-size: 2.75rem !important;
    }

    .font-header.text-7xl,
    h1.text-7xl,
    h2.text-7xl {
        font-size: 3rem !important;
    }

    /* Hero text-8xl for mobile */
    h1.text-5xl.md\:text-8xl,
    .font-header.text-5xl.md\:text-8xl {
        font-size: 3.125rem !important;
        line-height: 0.95 !important;
    }

    /* Coupon section responsive */
    #coupons .flex-col.md\:flex-row {
        align-items: center !important;
        text-align: center;
    }

    #coupons .flex-col.md\:flex-row>div {
        width: 100%;
    }

    #coupons .flex-col.md\:flex-row>a {
        margin-top: 1.5rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Footer responsive */
    footer .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    footer h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    footer .text-3xl {
        font-size: 1.5rem !important;
    }
}

/* ========== Mobile Portrait (375px - 575px) ========== */
@media (max-width: 575px) {
    .header-top-bar {
        justify-content: center;
        text-align: center;
    }

    .header-top-bar>a:last-child {
        display: none;
    }

    .nav-premium {
        top: 24px;
    }

    .nav-inner {
        padding: 0.625rem 0.75rem;
    }

    .nav-inner img {
        height: 42px;
    }

    .nav-btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .nav-btn-primary svg {
        display: none;
    }

    .hero-orb-primary {
        width: 150px;
        height: 150px;
        top: -30px;
        right: -30px;
    }

    .hero-orb-accent {
        width: 100px;
        height: 100px;
        bottom: -20px;
        left: -20px;
    }

    .orb {
        filter: blur(30px);
        opacity: 0.3;
    }

    .hero-premium {
        min-height: 70vh;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .hero-stat-item {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
    }

    .service-card {
        min-height: 300px;
    }

    .glass-card-light,
    .glass-card {
        padding: 1rem;
    }

    .faq-item .p-6 {
        padding: 1rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .hero-gradient-overlay {
        display: none;
    }

    .hero-watermark {
        display: none;
    }

    /* Services section - smaller mobile */
    #services-pin-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .services-track {
        gap: 0.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-card {
        width: 85vw !important;
        min-width: 260px;
        max-width: 300px;
        min-height: 280px;
        padding: 1.25rem !important;
    }

    .service-card h3 {
        font-size: 1.25rem !important;
    }

    .service-card .text-xl {
        font-size: 1rem !important;
    }

    /* Responsive Section Headings - smaller mobile */
    .font-header.text-5xl,
    h1.text-5xl,
    h2.text-5xl {
        font-size: 2.5rem !important;
        line-height: 1.05 !important;
    }

    .font-header.text-6xl,
    h1.text-6xl,
    h2.text-6xl {
        font-size: 2.75rem !important;
        line-height: 1.05 !important;
    }

    .font-header.text-7xl,
    h1.text-7xl,
    h2.text-7xl {
        font-size: 3rem !important;
        line-height: 1.05 !important;
    }

    /* Hero text-8xl for small mobile - DIALED BACK */
    h1.text-5xl.md\:text-8xl,
    .font-header.text-5xl.md\:text-8xl {
        font-size: 2.75rem !important;
        line-height: 0.95 !important;
    }

    /* Hero italic service text */
    .hero-text-wrapper .italic {
        font-size: 2.125rem !important;
    }

    /* Coupon section - smaller mobile */
    #coupons {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #coupons .flex-col.md\:flex-row {
        margin-bottom: 2rem;
    }

    #coupons .coupon-slider {
        border-radius: 1rem;
    }

    #coupons button {
        width: 2.5rem;
        height: 2.5rem;
    }

    #coupons button svg {
        width: 1rem;
        height: 1rem;
    }

    /* Footer - stack on small mobile */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    footer h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    footer ul {
        font-size: 0.8rem;
    }

    footer .text-3xl {
        font-size: 1.25rem !important;
    }

    footer .mb-24 {
        margin-bottom: 3rem;
    }

    footer button {
        width: 100%;
    }
}

/* ========== Extra Small Mobile (< 375px) ========== */
@media (max-width: 374px) {
    .header-top-bar {
        font-size: 0.55rem;
        padding: 0.3rem 0.5rem;
    }

    .nav-inner {
        margin: 0 0.5rem;
    }

    .nav-inner img {
        height: 24px;
    }

    .nav-btn-primary {
        padding: 0.35rem 0.5rem;
        font-size: 0.55rem;
    }

    .hero-orb-primary,
    .hero-orb-accent {
        display: none;
    }

    /* Extra-small mobile headings */
    .font-header.text-5xl,
    h1.text-5xl,
    h2.text-5xl {
        font-size: 1.5rem !important;
    }

    .font-header.text-6xl,
    h1.text-6xl,
    h2.text-6xl {
        font-size: 1.625rem !important;
    }

    .font-header.text-7xl,
    h1.text-7xl,
    h2.text-7xl {
        font-size: 1.75rem !important;
    }

    .service-card {
        max-width: 260px;
        min-width: 240px;
    }
}

/* ========== Before/After Gallery ========== */
.ba-slider-wrapper {
    position: relative;
}

.ba-slide {
    width: 100%;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 1rem;
    cursor: ew-resize;
    user-select: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ba-slider-container.dragging {
    cursor: grabbing;
}

.ba-slide-title {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
    border-right: 3px solid white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.ba-before-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.ba-slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
}

.ba-slider-handle::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #D32F2F 0%, #ff5252 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.5);
    border: 3px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ba-slider-handle::after {
    content: '⟨⟩';
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: -2px;
}

.ba-slider-container:hover .ba-slider-handle::before,
.ba-slider-container.dragging .ba-slider-handle::before {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(211, 47, 47, 0.7);
}

.ba-label {
    position: absolute;
    bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.5rem;
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-label-before {
    left: 1.5rem;
}

.ba-label-after {
    right: 1.5rem;
}

/* Gallery Navigation */
.ba-gallery-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.ba-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ba-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ba-gallery-dot.active {
    background: #D32F2F;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.5);
}

/* Responsive Before/After */
@media (max-width: 768px) {
    .ba-slider-container {
        height: 350px;
    }

    .ba-slide-title {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
        top: 0.75rem;
        max-width: 80%;
        text-align: center;
        line-height: 1.2;
    }

    .ba-label {
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
    }

    .ba-slider-handle::before {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .ba-slider-container {
        height: 280px;
    }
}

/* ========== Print Styles ========== */
@media print {

    .header-top-bar,
    .nav-premium,
    #cursor,
    .pipeline-container,
    .orb,
    .hero-orb-primary,
    .hero-orb-accent,
    #loader {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ========== Floating CTA Button ========== */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #D32F2F 0%, #ff5252 50%, #D32F2F 100%);
    background-size: 200% 200%;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta:hover {
    background-position: 100% 0;
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.6);
    transform: translateY(-4px);
}

.floating-cta.visible:hover {
    transform: translateY(-4px);
}

.floating-cta svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (max-width: 640px) {
    .floating-cta {
        right: 1rem;
        bottom: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.75rem;
    }

    .floating-cta span {
        display: none;
    }

    .floating-cta {
        padding: 1rem;
        border-radius: 50%;
    }
}

/* ========== Hero Scroll Indicator ========== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.scroll-indicator-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
}

.scroll-indicator-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* ========== Google Reviews Badge ========== */
.google-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.google-badge-icon {
    width: 28px;
    height: 28px;
}

.google-badge-stars {
    display: flex;
    gap: 2px;
}

.google-badge-stars svg {
    width: 16px;
    height: 16px;
    color: #FBBC04;
}

.google-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.google-badge-rating {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1A1A1A;
}

.google-badge-count {
    font-size: 0.625rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== Mobile Accordion Styles ========== */
.mobile-accordion-trigger svg {
    transition: transform 0.3s ease;
}

.mobile-accordion.open .mobile-accordion-trigger svg {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-accordion.open .mobile-accordion-content {
    max-height: 500px;
}

/* Mobile Menu Active State Animations */
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* ========== Enhanced Mobile Responsive Fixes ========== */

/* Header Top Bar - Prevent text overflow on very small screens */
@media (max-width: 480px) {
    .header-top-bar {
        font-size: 0.5rem;
        padding: 0.25rem 0.5rem;
    }

    .header-top-bar a svg,
    .header-top-bar span svg {
        width: 12px;
        height: 12px;
    }

    .header-top-bar .flex.gap-4 {
        gap: 0.375rem;
    }
}

/* Contact Form - Better mobile layout and iOS zoom prevention */
@media (max-width: 767px) {
    .form-input {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    #hero .lg\:col-span-5,
    #hero .lg\:col-span-7 {
        padding: 0;
    }

    /* Financing Page - Mobile grid improvements */
    .md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .p-12 {
        padding: 1.5rem !important;
    }

    /* Improve tap targets on mobile */
    .dropdown-item,
    .mobile-nav-link,
    .mobile-accordion-trigger {
        min-height: 48px;
    }

    .faq-item>div:first-child {
        padding: 1rem;
    }
}

/* Before/After Gallery - Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .ba-slider-handle::before {
        width: 56px;
        height: 56px;
    }

    .ba-slider-container {
        touch-action: pan-y pinch-zoom;
    }
}

/* Floating CTA always visible on mobile */
@media (max-width: 1023px) {
    .floating-cta {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* ========== Ultra-Small Screen Support (< 375px) ========== */
@media (max-width: 374px) {
    .header-top-bar {
        font-size: 0.45rem;
        padding: 0.25rem 0.375rem;
    }

    .header-top-bar .flex.gap-4 {
        gap: 0.25rem;
    }

    .nav-inner {
        padding: 0.375rem;
    }

    .nav-inner img {
        height: 24px;
    }

    .nav-btn-primary {
        padding: 0.35rem 0.5rem;
        font-size: 0.5rem;
    }

    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .service-card {
        width: 90vw !important;
        min-width: 240px;
    }
}

/* ========== Improved Touch Targets ========== */
.faq-item>div:first-child {
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* Ensure footer links have adequate tap area */
footer .space-y-3 li a {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* ========== Hero Floating Badge Mobile Fix ========== */
@media (max-width: 767px) {

    /* Fix hero floating badge positioning on mobile */
    .hero-image-wrapper .glass-card-light {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
        transform: none !important;
        animation: none !important;
        max-width: 100%;
    }

    .hero-image-wrapper {
        height: auto !important;
        min-height: 300px;
    }

    /* Hero image container adjustments */
    .hero-image-wrapper .relative.w-full.h-full {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper .glass-card-light {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }

    .hero-image-wrapper .glass-card-light h3 {
        font-size: 1rem;
    }

    .hero-image-wrapper .glass-card-light p {
        font-size: 0.75rem;
    }

    .hero-image-wrapper .glass-card-light .w-12 {
        width: 2rem;
        height: 2rem;
    }
}

/* ========== Reviews Section Mobile Fix ========== */
@media (max-width: 767px) {

    /* Fix sticky sidebar on mobile - make it normal flow */
    #reviews .sticky {
        position: relative !important;
        top: auto !important;
    }

    #reviews .md\:col-span-4 {
        text-align: center;
        margin-bottom: 2rem;
    }

    #reviews .quote-mark {
        position: relative;
        top: 0;
        left: 0;
        display: inline-block;
    }

    /* Stack reviews on mobile */
    #reviews .md\:col-span-8>div {
        margin-left: 0 !important;
    }

    /* Reduce review card padding on mobile */
    #reviews .glass-card-light {
        padding: 1.25rem;
    }
}

/* ========== Services Section Mobile Scroll Improvements ========== */
@media (max-width: 1023px) {

    /* Show scroll indicator on mobile */
    #services-pin-wrapper {
        position: relative;
    }

    #services-pin-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(26, 26, 26, 0.8));
        pointer-events: none;
        z-index: 5;
    }

    .services-track {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-track::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

/* ========== Footer Mobile Improvements ========== */
@media (max-width: 767px) {

    /* Service areas ribbon - better wrapping */
    footer .flex-wrap.justify-center {
        gap: 0.25rem 0.5rem;
    }

    footer .flex-wrap.justify-center span:not(:first-child) {
        display: none;
    }

    footer .flex-wrap.justify-center a {
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0.25rem;
        display: inline-block;
    }

    /* Bottom bar stacking */
    footer .flex-col.md\:flex-row {
        text-align: center;
    }
}

@media (max-width: 480px) {
    footer .grid {
        gap: 1.5rem;
    }

    footer h4 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    footer ul {
        font-size: 0.75rem;
    }

    footer .w-10.h-10 {
        width: 2rem;
        height: 2rem;
    }

    footer .w-10.h-10 svg {
        width: 1rem;
        height: 1rem;
    }
}

/* ========== FAQ Mobile Improvements ========== */
@media (max-width: 575px) {
    .faq-item h3 {
        font-size: 0.9rem;
        line-height: 1.3;
        padding-right: 2.5rem;
    }

    .faq-item>div:first-child {
        padding: 0.875rem;
    }

    .faq-content>div {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* ========== Gallery Navigation Mobile ========== */
@media (max-width: 767px) {

    /* Before/After navigation arrows on mobile */
    .ba-slider-wrapper button {
        width: 2.5rem;
        height: 2.5rem;
    }

    .ba-slider-wrapper button svg {
        width: 1rem;
        height: 1rem;
    }

    /* Coupon slider arrows */
    #coupons button {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ========== Service Areas Cards Mobile ========== */
@media (max-width: 767px) {
    .service-area-item {
        padding: 1rem;
    }

    .service-area-item h3 {
        font-size: 1.125rem;
    }

    .service-area-item p {
        font-size: 0.75rem;
    }
}

/* ========== General Mobile Typography ========== */
@media (max-width: 575px) {

    /* Reduce heading sizes further on very small screens */
    .text-5xl {
        font-size: 1.75rem !important;
    }

    .text-6xl {
        font-size: 2rem !important;
    }

    .text-7xl {
        font-size: 2.25rem !important;
    }

    /* Reduce paragraph text */
    .text-lg {
        font-size: 0.9375rem;
    }

    .text-xl {
        font-size: 1rem;
    }
}

/* ========== Reviews Widget Section ========== */
#reviews {
    background: #1A1A1A;
}

#reviews iframe {
    display: block;
    width: 100%;
    min-height: 700px;
    border: none;
}

/* Responsive adjustments for reviews widget */
@media (max-width: 1024px) {
    #reviews iframe {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    #reviews iframe {
        min-height: 580px;
    }

    #reviews .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    #reviews iframe {
        min-height: 650px;
    }
}