/* ═══════════════════════════════════════════════════════════
   RED RABBIT GO — Brand Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
    --red: #D92534;
    --red-dark: #B91C29;
    --red-secondary: #D92525;
    --rose-muted: #A66A6A;
    --pink-light: #F2AEAE;
    --off-white: #F2F2F2;
    --white: #ffffff;
    --dark: #000000;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
}

* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    line-height: 1.2;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-label--red {
    background: rgba(217, 37, 52, 0.08);
    color: var(--red);
}

.section-label--white {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

/* ── Gradients ──────────────────────────────────────────── */

.gradient-hero {
    background: linear-gradient(145deg, #1a1a1a 0%, #2d1a1a 40%, #3d1a1a 70%, var(--red-dark) 100%);
}

.gradient-red {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
}

.gradient-text-red {
    background: linear-gradient(135deg, var(--red) 0%, var(--rose-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Animations ─────────────────────────────────────────── */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float 7s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(217, 37, 52, 0.35);
    }

    50% {
        box-shadow: 0 0 40px rgba(217, 37, 52, 0.65);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ── Sticky Navigation ──────────────────────────────────── */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.35s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #404040 !important;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--red) !important;
}

/* ── Brand Logo Text ────────────────────────────────────── */

.logo-brand-text {
    font-family: 'Inter', sans-serif;
    color: var(--red) !important;
    line-height: 0.85;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-brand-text span {
    display: block;
}

.logo-brand-text.text-white,
.footer-logo-text {
    color: #ffffff !important;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(217, 37, 52, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 52px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.35);
}

/* ── Cards ──────────────────────────────────────────────── */

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.usp-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.usp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -10px rgba(217, 37, 52, 0.12);
}

.zone-tag {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

.zone-tag:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(217, 37, 52, 0.04);
    transform: translateY(-2px);
}

/* ── Before/After Slider ────────────────────────────────── */

.before-after-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    cursor: ew-resize;
}

.before-after-container img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    height: 100%;
}

.before-image img {
    width: 200%;
    max-width: none;
    height: 100%;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.slider-handle::after {
    content: '‹›';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: var(--red);
    font-weight: 800;
    z-index: 11;
    letter-spacing: 4px;
}

.ba-label {
    position: absolute;
    top: 1rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    z-index: 5;
}

.ba-label--before {
    left: 1rem;
    background: var(--red);
}

.ba-label--after {
    right: 1rem;
    background: #22c55e;
}

/* ── WhatsApp Floating Button ───────────────────────────── */

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ── CTA Section ────────────────────────────────────────── */

.cta-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: var(--gray-700);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.cta-select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(217, 37, 52, 0.1);
}

/* ── Glass Card ─────────────────────────────────────────── */

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Footer ─────────────────────────────────────────────── */

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--pink-light);
}

/* Ensure no invert on SVGs in footer */
footer svg,
footer img {
    filter: none !important;
}

#quoteSummaryModal,
#leadPopup {
    z-index: 9999;
}

/* ── Accessibility ──────────────────────────────────────── */

button:focus-visible,
a:focus-visible,
select:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .before-after-container img {
        height: 260px;
    }

    .btn-primary,
    .btn-whatsapp,
    .btn-outline {
        min-height: 50px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
}

/* ── Modal & Popup Cleanup ─────────────────────────────── */
.modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

#leadPopup.hidden,
#quoteSummaryModal.hidden {
    display: none !important;
}