/* ============================================
   RV Studio - Styles
   Paleta: Preto, branco, vermelho acento
   ============================================ */

:root {
    --black: #0a0a0a;
    --black-light: #141414;
    --black-medium: #1a1a1a;
    --gray-900: #1f1f1f;
    --gray-800: #2a2a2a;
    --gray-600: #525252;
    --gray-400: #a3a3a3;
    --gray-200: #e5e5e5;
    --white: #ffffff;
    --off-white: #fafafa;
    --red: #ef4444;
    --red-dark: #dc2626;
    --red-glow: rgba(239, 68, 68, 0.2);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
    --radius: 4px;
    --transition: all 0.3s ease;
    --font-heading: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-200);
    background: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-900);
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--red);
    box-shadow: 0 2px 20px var(--red-glow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-rv {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-studio {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--red);
    letter-spacing: 6px;
}

.nav-list { list-style: none; display: flex; gap: 32px; }

.nav-link {
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 0;
}

.nav-link:hover { color: var(--white); }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--gray-600);
    cursor: pointer;
    padding: 6px;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--black);
    padding-top: 64px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 0% 50%, rgba(239, 68, 68, 0.04) 0%, transparent 60%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px;
}

.hero-label {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.hero h1 .accent { color: var(--red); }

.hero-desc {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    color: var(--gray-400);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-accent {
    background: var(--red);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--red-glow);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-600);
}

.btn-ghost:hover {
    border-color: var(--white);
    color: var(--white);
}

.btn-full { width: 100%; }

.hero-counters {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.counter { text-align: center; }

.counter-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--white);
    letter-spacing: 2px;
}

.counter-txt {
    font-size: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-dark { background: var(--black-light); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.section-desc {
    text-align: center;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 15px;
}

/* ---- SERVICES ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0;
}

.service-item {
    padding: 40px 32px;
    border-top: 1px solid var(--gray-900);
    transition: var(--transition);
    position: relative;
}

.service-item:hover {
    background: var(--black-light);
}

.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.service-item:hover::after { width: 100%; }

.service-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--red);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.8;
}

/* ---- PORTFOLIO ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 360px;
}

.portfolio-img {
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

.pi-1 { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.pi-2 { background: linear-gradient(135deg, #581c87, #a855f7); }
.pi-3 { background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
.pi-4 { background: linear-gradient(135deg, #14532d, #22c55e); }

.portfolio-card:hover .portfolio-img { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--red);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.portfolio-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ---- SOBRE ---- */
.sobre-content {
    max-width: 860px;
    margin: 0 auto 40px;
}

.sobre-content p {
    font-size: 15px;
    color: var(--gray-200);
    line-height: 1.9;
    margin-bottom: 18px;
}

.autoridade-links {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--gray-800);
    border-left: 3px solid var(--red);
}

.autoridade-links h4 {
    font-size: 13px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.autoridade-links ul { list-style: none; }
.autoridade-links li { margin-bottom: 8px; }
.autoridade-links a { font-size: 14px; color: var(--gray-400); }
.autoridade-links a:hover { color: var(--white); }

/* ---- CONTATO ---- */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contato-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.contato-info p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 24px;
}

.info-list {
    list-style: none;
    margin-bottom: 24px;
}

.info-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-200);
    border-bottom: 1px solid var(--gray-900);
}

.contact-form {
    background: var(--black-medium);
    border: 1px solid var(--gray-800);
    padding: 32px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-800);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--white);
    background: var(--black);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--black);
    border-top: 1px solid var(--gray-900);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-900);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand .logo-rv { font-size: 28px; }
.footer-brand .logo-studio { font-size: 14px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-600); font-size: 14px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p { font-size: 12px; color: var(--gray-600); }

/* ---- WHATSAPP ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--red-glow);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--red-glow);
    color: var(--white);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--black);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-900);
    }

    .hero { min-height: auto; }
    .hero-inner { padding: 48px 16px; }
    .hero-counters { gap: 28px; }

    .contato-grid { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .hero-links { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 260px; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card { height: 280px; }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }