/*
Theme Name: RTS Motorhomes
Theme URI: https://routis.com.br/
Description: Tema premium de alta performance para a RTS Motorhomes com integração WooCommerce completa e animações modernas.
Author: Antigravity AI
Version: 4.0.0
Text Domain: rts-motorhomes
*/

:root {
    /* Identidade RTS Motorhomes — alinhada ao site institucional (routis.com.br) */
    --background: #f6f6f4;
    --foreground: #212121;
    --card: #ffffff;
    --card-foreground: #212121;
    --primary: #4d7a4d; /* Verde RTS */
    --primary-dark: #3a5e3a;
    --primary-glow: rgba(77, 122, 77, 0.25);
    --primary-foreground: #ffffff;
    --secondary: #ffc83b; /* Amarelo RTS */
    --accent: #54595f; /* Chumbo */
    --chumbo: #54595f;
    --cinza: #7a7a7a;
    --muted: #eaeaeb;
    --muted-foreground: #54595f;
    --border: #e2e2e3;
    --radius: 0.85rem;
    --font-h: 'Ubuntu', system-ui, sans-serif;
    --font-b: 'Hind Siliguri', system-ui, sans-serif;
}

/* 
 * ISOLATION LAYER: 
 * All styles are prefixed with #radar-luxe-root to ensure 
 * we override any leaking plugin/theme styles.
 */

#radar-luxe-root {
    font-family: var(--font-b);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#radar-luxe-root *, 
#radar-luxe-root *::before, 
#radar-luxe-root *::after {
    box-sizing: border-box;
}

/* Typography */
#radar-luxe-root h1, 
#radar-luxe-root h2, 
#radar-luxe-root h3, 
#radar-luxe-root h4, 
#radar-luxe-root .font-heading {
    font-family: var(--font-h);
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

#radar-luxe-root p { margin-bottom: 1rem; }

/* Layout */
#radar-luxe-root .container, .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

#radar-luxe-root .section {
    padding: 90px 0;
}

/* ==========================================================================
   ANIMAÇÕES MODERNAS E LUXUOSAS (Scroll Reveal & Hover Effects)
   ========================================================================== */

/* Elementos com scroll reveal suave */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Hero Animation */
@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate-title {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-sub {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-animate-btn {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

/* Header */
.radar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    transition: all 0.35s ease;
}

.radar-header.scrolled {
    height: 70px;
    box-shadow: 0 8px 24px -4px rgba(35, 75, 0, 0.08);
}

.radar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.radar-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.radar-logo:hover {
    transform: scale(1.03);
}

.radar-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.radar-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.radar-menu a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.25s ease;
    font-family: var(--font-h);
    position: relative;
}

.radar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.radar-menu a:hover::after {
    width: 100%;
}

.radar-menu a:hover {
    color: var(--primary);
}

/* Buttons */
#radar-luxe-root .btn, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-size: 0.9375rem;
    border: none;
    font-family: var(--font-h);
    position: relative;
    overflow: hidden;
}

#radar-luxe-root .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

#radar-luxe-root .btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

#radar-luxe-root .btn-primary, .btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 14px var(--primary-glow);
}

#radar-luxe-root .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

#radar-luxe-root .btn-whatsapp, .btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

#radar-luxe-root .btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Hero */
#radar-luxe-root .hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: #2a2d31;
    color: #ffffff;
    overflow: hidden;
}

#radar-luxe-root .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    z-index: 1;
    transform: scale(1.03);
    transition: transform 10s ease;
}

#radar-luxe-root .hero:hover .hero-bg {
    transform: scale(1.08);
}

#radar-luxe-root .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 40, 5, 0.95) 0%, rgba(20, 40, 5, 0.78) 50%, rgba(20, 40, 5, 0.35) 100%);
    z-index: 2;
}

/* Vehicle Types Cards */
.vehicle-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 32px -8px rgba(35, 75, 0, 0.16);
    border-color: var(--primary);
}

.vehicle-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover img {
    transform: scale(1.08);
}

/* Feature Boxes */
.feature-box {
    padding: 40px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary);
    transition: height 0.4s ease;
}

.feature-box:hover::before {
    height: 100%;
}

.feature-box:hover {
    border-color: rgba(35, 75, 0, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 16px 28px -6px rgba(35, 75, 0, 0.1);
}

/* Product Cards */
#radar-luxe-root .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

#radar-luxe-root .product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

#radar-luxe-root .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 30px -8px rgba(35, 75, 0, 0.15);
    border-color: var(--primary);
}

#radar-luxe-root .product-card:hover .buttons-overlay { transform: translateY(0) !important; }
#radar-luxe-root .product-card:hover .hover-scale { transform: scale(1.1); }

/* Footer */
.radar-footer {
    background: #2a2d31;
    color: #ffffff;
    padding: 80px 0 30px;
}

.radar-footer a {
    color: #d0d3d6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.radar-footer a:hover {
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .hidden-mobile { display: none !important; }
    #radar-luxe-root .hero { text-align: center; height: auto; padding: 130px 0 80px; }
    #radar-luxe-root .hero-overlay { background: rgba(20, 40, 5, 0.88); }
    .radar-header { height: 70px; }
}

@media (max-width: 640px) {
    #radar-luxe-root .section { padding: 50px 0; }
    #radar-luxe-root .products-grid { grid-template-columns: 1fr; }
    #radar-luxe-root .btn { width: 100%; }
}

/* ===== Home de loja virtual ===== */
#radar-luxe-root .store-hero { min-height: 56vh; }
#radar-luxe-root .store-bar { background: var(--primary); color: #ffffff; }
#radar-luxe-root .store-bar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 28px; padding: 22px 20px; }
#radar-luxe-root .store-bar-grid div { display: flex; flex-direction: column; gap: 2px; }
#radar-luxe-root .store-bar-grid strong { font-family: var(--font-h); font-size: 0.975rem; }
#radar-luxe-root .store-bar-grid span { font-size: 0.875rem; opacity: 0.9; }
#radar-luxe-root .store-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 28px; }
#radar-luxe-root .store-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
#radar-luxe-root .store-link { color: var(--primary); font-weight: 600; text-decoration: none; }
#radar-luxe-root .store-link:hover { text-decoration: underline; }
#radar-luxe-root .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
#radar-luxe-root .cat-card { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; background: #ffffff; border: 1px solid var(--border); border-left: 4px solid var(--secondary); border-radius: var(--radius); text-decoration: none; color: var(--foreground); transition: transform .2s, box-shadow .2s, border-color .2s; }
#radar-luxe-root .cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.18); border-left-color: var(--primary); }
#radar-luxe-root .cat-name { font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; }
#radar-luxe-root .cat-count { color: var(--cinza); font-size: 0.875rem; }
