@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Outfit:wght@200;300;400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --bg-base: #0A0A0A;
    --bg-surface: #121212;
    --bg-elevated: #1A1A1A;
    --crimson: #DC143C;
    --crimson-hover: #ED1C24;
    --crimson-muted: #8B0000;
    --gold: #D4AF37;
    --gold-hover: #F1C40F;
    --cream: #F5F5DC;
    --text-muted: #A0A0A0;
    --whatsapp: #25D366;
}

@layer base {
    :root {
        --background: 0 0% 4%;
        --foreground: 60 56% 91%;
        --card: 0 0% 7%;
        --card-foreground: 60 56% 91%;
        --popover: 0 0% 7%;
        --popover-foreground: 60 56% 91%;
        --primary: 348 83% 47%;
        --primary-foreground: 0 0% 100%;
        --secondary: 0 0% 10%;
        --secondary-foreground: 60 56% 91%;
        --muted: 0 0% 10%;
        --muted-foreground: 0 0% 63%;
        --accent: 46 65% 52%;
        --accent-foreground: 0 0% 4%;
        --destructive: 0 84% 60%;
        --destructive-foreground: 0 0% 98%;
        --border: 0 0% 16%;
        --input: 0 0% 10%;
        --ring: 348 83% 47%;
        --radius: 0.75rem;
    }
}

* {
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg-base);
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

.font-brand {
    font-family: 'Black Ops One', 'Impact', sans-serif;
    letter-spacing: 0.04em;
}

.brand-logo-img {
    background-image: url("https://customer-assets.emergentagent.com/job_premium-auto-bazaar/artifacts/qqwnlwfv_file_00000000e1f87207a938856d8bd7d750.png");
    background-repeat: no-repeat;
    background-position: center;
    /* The PNG is square with ~30% text height and ~85% text width.
       We stretch height so text height fills container while width tracks. */
    background-size: 110% 320%;
}

.font-body {
    font-family: 'Outfit', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--crimson-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--crimson);
}

/* Selection */
::selection {
    background: var(--crimson);
    color: var(--cream);
}

/* Grain overlay */
.grain::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glass card */
.glass {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-strong {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section heading divider */
.luxe-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
    margin: 1.5rem 0;
}

/* Hover glow */
.hover-glow:hover {
    box-shadow: 0 20px 40px -15px rgba(220, 20, 60, 0.25);
}

/* Marquee */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee {
    animation: marquee 40s linear infinite;
}

/* Fade in up */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Image gallery slider dots */
.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(245, 245, 220, 0.4);
    transition: all 0.3s ease;
}
.slider-dot.active {
    background: var(--gold);
    width: 20px;
}

/* Hero gradient overlay */
.hero-overlay {
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.5) 50%, rgba(10, 10, 10, 0.95) 100%),
        linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.3) 50%, transparent 100%);
}

/* Buttons */
.btn-primary {
    background: var(--crimson);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--crimson);
}
.btn-primary:hover {
    background: var(--crimson-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(220, 20, 60, 0.5);
}
.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-secondary:hover {
    background: var(--gold);
    color: var(--bg-base);
}

/* Label tag */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--gold);
}

/* Premium card */
.premium-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.premium-card:hover {
    border-color: rgba(220, 20, 60, 0.4);
    transform: translateY(-6px);
}

/* Embedded map */
.map-frame {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    filter: invert(0.9) hue-rotate(180deg);
}

/* Animations for testimonials */
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.float-y { animation: float-y 6s ease-in-out infinite; }

/* WhatsApp pulse */
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-pulse { animation: wa-pulse 2s infinite; }

/* Trust Badge — luminous metallic gold */
.trust-badge {
    position: relative;
    background:
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 60%, transparent 100%),
        linear-gradient(135deg, rgba(20, 16, 8, 0.85) 0%, rgba(30, 24, 10, 0.75) 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 170, 0.35),
        inset 0 0 25px rgba(212, 175, 55, 0.18),
        0 0 32px rgba(212, 175, 55, 0.28),
        0 10px 30px -10px rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.trust-badge::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #F5D67D 0%, #D4AF37 25%, #8B6914 50%, #D4AF37 75%, #F5D67D 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
.trust-badge-text {
    background: linear-gradient(180deg, #FFF3C4 0%, #F5D67D 40%, #D4AF37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 22px rgba(245, 214, 125, 0.35);
}
.trust-badge-dot {
    color: #D4AF37;
    font-size: 1.25rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
@keyframes gold-shimmer {
    0%, 100% { box-shadow:
        inset 0 1px 0 rgba(255, 235, 170, 0.35),
        inset 0 0 25px rgba(212, 175, 55, 0.18),
        0 0 32px rgba(212, 175, 55, 0.28),
        0 10px 30px -10px rgba(212, 175, 55, 0.35);
    }
    50% { box-shadow:
        inset 0 1px 0 rgba(255, 235, 170, 0.5),
        inset 0 0 35px rgba(212, 175, 55, 0.28),
        0 0 44px rgba(212, 175, 55, 0.45),
        0 12px 36px -10px rgba(212, 175, 55, 0.5);
    }
}
.trust-badge { animation: gold-shimmer 3.5s ease-in-out infinite; }
