/* Elite HVAC of Texas - Premium Stylesheet */
:root {
    --brand-gunmetal: #11161E;
    --brand-black: #05070A;
    --brand-cta-blue: #2563B8;
    --brand-blue: #112684;
    --brand-ice-blue: #588CCC;
    --brand-ice-silver: #D9E0EA;
    --brand-silver: #B5BAC4;
    --brand-cta-red: #C51F28;
    --brand-red: #A80F14;
    --brand-neutral: #F5F6F8;
    --brand-white: #FFFFFF;
    --brand-muted: #60717E;
}

/* Smooth scroll with momentum feel */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-neutral);
    color: var(--brand-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* === SCROLL-DRIVEN REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}
/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* === PREMIUM PARALLAX === */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Subtle background grain effect */
.noise-bg {
    position: relative;
}
.noise-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
}

/* === LUXURY FORM ELEMENTS === */
.luxury-input {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    background: transparent;
    padding: 0.85rem 0.2rem;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}
.luxury-input:focus {
    outline: none;
    border-bottom-color: var(--brand-ice-blue);
    box-shadow: 0 2px 0 0 var(--brand-ice-blue);
    background-color: rgba(88, 140, 204, 0.04);
}
.luxury-input::placeholder {
    color: rgba(255,255,255,0.35);
    font-weight: 300;
}

.luxury-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23588CCC'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.1em 1.1em;
    padding-right: 2rem;
}

/* Glassmorphism surfaces */
.glass-panel {
    background: rgba(17, 22, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(17, 22, 30, 0.06);
}

/* === CINEMATIC HERO === */
.hero-photo-container {
    position: relative;
    overflow: hidden;
}
.hero-photo-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 7, 10, 0.93) 0%, rgba(17, 22, 30, 0.7) 40%, rgba(5, 7, 10, 0.95) 100%);
    z-index: 2;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.05);
    transition: transform 18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: saturate(0.7) contrast(1.1);
}
.hero-photo-container:hover .hero-bg-img {
    transform: scale(1.12);
}

/* === PREMIUM BUTTON EFFECTS === */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}
.btn-premium:hover::before {
    left: 100%;
}

/* Sweep fill button */
.btn-sweep {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}
.btn-sweep::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--brand-cta-blue);
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}
.btn-sweep:hover::after {
    height: 100%;
}
.btn-sweep-red::after {
    background: var(--brand-cta-red);
}

/* === MAGNETIC CURSOR EFFECT (applied via JS) === */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === PREMIUM IMAGE TREATMENT === */
.img-cinematic {
    filter: saturate(0.85) contrast(1.05);
    transition: filter 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-cinematic:hover {
    filter: saturate(1) contrast(1.08);
}

/* Image mask reveal */
.img-mask-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-mask-reveal.visible {
    clip-path: inset(0 0 0% 0);
}

/* === COUNTER ANIMATION === */
@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.counter-animate {
    animation: countPulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estimator Interactive Cards */
.estimator-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid rgba(17, 22, 30, 0.08);
}
.estimator-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
    box-shadow: 0 12px 28px -10px rgba(37, 99, 184, 0.2);
}
.estimator-card.selected {
    border-color: var(--brand-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px var(--brand-blue), 0 12px 28px -8px rgba(37, 99, 184, 0.25);
}

/* Smooth badges and status dots */
.pulse-live {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
    animation: pulse-ring 2s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
    }
    100% {
        box-shadow: 0 0 4px 10px rgba(239, 68, 68, 0);
    }
}

.pulse-green {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green-ring 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-green-ring {
    to {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

/* === HORIZONTAL RULE ACCENT === */
.accent-line {
    width: 48px;
    height: 2px;
    background: var(--brand-ice-blue);
    display: block;
}
.accent-line-wide {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-ice-blue), transparent);
}

/* === EDITORIAL SPACED CAPS === */
.caps-spaced {
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.65rem;
}

/* Scrollbar polish */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #05070A;
}
::-webkit-scrollbar-thumb {
    background: #112684;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #588CCC;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast-msg {
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === LOADING SEQUENCE === */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #05070A;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-logo {
    animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1); }
}

/* === HOVER LIFT FOR GALLERY CARDS === */
.card-lift {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.4);
}

/* === SECTION DIVIDER GRADIENT === */
.section-fade-top {
    position: relative;
}
.section-fade-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--brand-black), transparent);
    z-index: 1;
    pointer-events: none;
}
