/* =====================================================
   CUSTOM CSS - Otimize Elétrica
   Aesthetic: Editorial Neo-Brutalism
   Importado do LP-BUILDER/garcia-reparacoes (2026-05-15)
   ===================================================== */

:root {
    --paper: #F5F1E8;
    --cream: #FAF7EE;
    --orange: #F97316;
    --orange-deep: #EA580C;
    --orange-soft: #FFEDD5;
    --ink: #1A1A1A;
    --ink-2: #0A0A0A;
    --ink-muted: #525252;
    --ink-soft: #737373;
    --voltage: #FFD400;
    --aged: #D4CFC0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    /* Subtle noise texture - paper feel */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 280px 280px;
    background-blend-mode: multiply;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.011em;
}

/* Typography hierarchy */
h1, h2 {
    font-family: 'Geist', sans-serif;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: var(--ink);
}

h3, h4, h5, h6 {
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.font-serif {
    font-family: 'Fraunces', Georgia, serif;
}

.font-mono, .num-tabular {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums lining-nums;
}

/* =====================================================
   EDITORIAL ELEMENTS
   ===================================================== */

/* Drop cap - Fraunces serif laranja (editorial flagship) */
.drop-cap::first-letter {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 4.2em;
    float: left;
    line-height: 0.9;
    margin: 0.05em 0.1em -0.1em 0;
    color: var(--orange);
}

/* Display numeral for large stats */
.display-numeral {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-feature-settings: 'lnum';
    line-height: 0.78;
    letter-spacing: -0.08em;
}

/* Schematic grid background (engineering aesthetic) */
.bg-schematic {
    background-image:
        linear-gradient(to right, rgba(249,115,22,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(249,115,22,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

.bg-schematic-light {
    background-image:
        linear-gradient(to right, rgba(10,10,10,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10,10,10,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Thick rule (4px black bar - editorial divider) */
.rule-thick {
    background: var(--ink);
    height: 4px;
}

/* =====================================================
   ANIMATIONS - Subtle, Editorial
   ===================================================== */

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    animation: rise 0.8s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.32s; }
.reveal-4 { animation-delay: 0.46s; }
.reveal-5 { animation-delay: 0.60s; }

/* Pulsing orange dot - "EM SERVIÇO" indicator */
@keyframes pulseOrange {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 16px rgba(249,115,22,0.7);
    }
    50% {
        opacity: 0.55;
        box-shadow: 0 0 8px rgba(249,115,22,0.3);
    }
}

.dot-orange::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
    margin-right: 10px;
    animation: pulseOrange 1.6s ease-in-out infinite;
    vertical-align: middle;
}

/* =====================================================
   CTA BUTTONS - Neo-brutalist style
   ===================================================== */

/* Primary CTA with bold flat shadow (neo-brutalism signature) */
.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: var(--orange);
    color: var(--ink);
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.015em;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 0 var(--ink);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 var(--ink);
    background: var(--orange-deep);
}

.btn-cta:hover::after {
    opacity: 1;
}

.btn-cta:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--ink);
}

/* Secondary CTA (outlined, neo-brutalist) */
.btn-cta-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 0 var(--orange);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
}

.btn-cta-secondary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 var(--orange);
    background: var(--paper);
}

.btn-cta-secondary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--orange);
}

/* =====================================================
   CARDS - Bold flat shadows (neo-brutalism)
   ===================================================== */

.card-brut {
    background: var(--cream);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 0 var(--ink);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-brut:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 var(--orange);
}

.card-brut-orange {
    background: var(--orange-soft);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 0 var(--orange);
}

/* Form card with subtle rotation (LP signature) */
.form-card-rotate {
    background: var(--cream);
    border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 0 var(--orange);
}

@media (min-width: 1024px) {
    .form-card-rotate {
        transform: rotate(-0.4deg);
    }
    .form-card-rotate:hover {
        transform: rotate(0deg);
    }
}

/* Hero photo frame */
.hero-photo-frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--ink-2);
    border: 2px solid var(--ink);
    box-shadow: 10px 10px 0 0 var(--orange);
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.9);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,31,61,0) 50%, rgba(10,10,10,0.55) 100%);
}

/* =====================================================
   LOGO SIZING
   ===================================================== */
.lp-logo-img {
    height: 36px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

@media (min-width: 1024px) {
    .lp-logo-img {
        height: 42px;
        max-width: 240px;
    }
}

.lp-logo-img-footer {
    height: 48px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

/* Safe area for mobile (iPhone notch) */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Marquee ribbon animation */
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =====================================================
   DARK SECTION AUTO-INVERSION
   Quando uma secção tem bg-ink-2, inverter automaticamente:
   - texto slate-* → tons de paper
   - cards bg-white/slate-* → cream com texto ink
   ===================================================== */

section.bg-ink-2 {
    color: var(--paper);
}

/* Headings inside dark sections - always paper (excepto se tiverem text-ink explícito) */
section.bg-ink-2 h1,
section.bg-ink-2 h2,
section.bg-ink-2 h3,
section.bg-ink-2 h4,
section.bg-ink-2 h5,
section.bg-ink-2 h6 {
    color: var(--paper);
}

/* Classes text-ink* SEMPRE ganham — útil para cards cream (inline-style) em dark sections */
section.bg-ink-2 .text-ink {
    color: var(--ink) !important;
}
section.bg-ink-2 .text-ink-muted {
    color: var(--ink-muted) !important;
}
section.bg-ink-2 .text-ink-soft {
    color: var(--ink-soft) !important;
}
section.bg-ink-2 .text-ink-2 {
    color: var(--ink-2) !important;
}

/* Slate text inside dark sections - tons de paper */
section.bg-ink-2 .text-slate-900,
section.bg-ink-2 .text-slate-800,
section.bg-ink-2 .text-slate-700 {
    color: var(--paper) !important;
}
section.bg-ink-2 .text-slate-600 {
    color: rgba(245, 241, 232, 0.85) !important;
}
section.bg-ink-2 .text-slate-500 {
    color: rgba(245, 241, 232, 0.7) !important;
}
section.bg-ink-2 .text-slate-400 {
    color: rgba(245, 241, 232, 0.6) !important;
}
section.bg-ink-2 .text-slate-300 {
    color: rgba(245, 241, 232, 0.5) !important;
}

/* Light backgrounds inside dark sections - cream cards com bordo grosso */
section.bg-ink-2 .bg-white,
section.bg-ink-2 .bg-slate-50,
section.bg-ink-2 .bg-slate-100 {
    background-color: var(--cream) !important;
    color: var(--ink) !important;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 0 var(--orange);
}

/* Quando já é bg-cream explícito, garantir texto ink (não inverter) */
section.bg-ink-2 .bg-cream,
section.bg-ink-2 .bg-cream * {
    color: var(--ink);
}
section.bg-ink-2 .bg-cream .text-paper,
section.bg-ink-2 .bg-cream .text-white {
    color: white !important;  /* Buttons com text-white mantêm-se brancos */
}
section.bg-ink-2 .bg-cream .text-orange,
section.bg-ink-2 .bg-cream .text-orange-500,
section.bg-ink-2 .bg-cream .text-orange-600 {
    color: var(--orange) !important;
}
section.bg-ink-2 .bg-cream .text-ink-muted {
    color: var(--ink-muted);
}
section.bg-ink-2 .bg-cream .text-ink-soft {
    color: var(--ink-soft);
}

/* Texto DIRECTO em cards light - usa selector com > (direct child) para NÃO catch buttons aninhados */
section.bg-ink-2 .bg-white > .text-slate-900,
section.bg-ink-2 .bg-white > .text-slate-700,
section.bg-ink-2 .bg-slate-50 > .text-slate-900,
section.bg-ink-2 .bg-slate-50 > .text-slate-700,
section.bg-ink-2 .bg-slate-50 > .text-slate-500,
section.bg-ink-2 .bg-white p.text-slate-900,
section.bg-ink-2 .bg-white p.text-slate-700,
section.bg-ink-2 .bg-white p.text-slate-600,
section.bg-ink-2 .bg-slate-50 p.text-slate-900,
section.bg-ink-2 .bg-slate-50 p.text-slate-700,
section.bg-ink-2 .bg-slate-50 p.text-slate-500,
section.bg-ink-2 .bg-white h1, section.bg-ink-2 .bg-white h2,
section.bg-ink-2 .bg-white h3, section.bg-ink-2 .bg-white h4,
section.bg-ink-2 .bg-slate-50 h1, section.bg-ink-2 .bg-slate-50 h2,
section.bg-ink-2 .bg-slate-50 h3, section.bg-ink-2 .bg-slate-50 h4 {
    color: var(--ink) !important;
}

/* Labels e small text inside light cards on dark sections */
section.bg-ink-2 .bg-white label,
section.bg-ink-2 .bg-slate-50 label,
section.bg-ink-2 .bg-white > div > p,
section.bg-ink-2 .bg-slate-50 > div > p {
    color: var(--ink);
}

/* Buttons em dark sections — só apanha classes EXACTAS (não hover:bg-orange) */
section.bg-ink-2 button.bg-orange,
section.bg-ink-2 button.bg-orange-500,
section.bg-ink-2 button.bg-orange-600,
section.bg-ink-2 .btn-primary,
section.bg-ink-2 .btn-cta,
section.bg-ink-2 [type="submit"].bg-orange,
section.bg-ink-2 a.bg-orange,
section.bg-ink-2 a.bg-orange-500,
section.bg-ink-2 a.bg-orange-600,
section.bg-ink-2 a.bg-green-600 {
    color: white !important;
}

/* Orange accents passam de orange-600 para orange (mais vivo no escuro) */
section.bg-ink-2 .text-orange-600,
section.bg-ink-2 .text-orange-700 {
    color: var(--orange) !important;
}

/* Section eyebrow strap (mono uppercase) - estilo consistente em dark */
section.bg-ink-2 .text-orange-600,
section.bg-ink-2 .uppercase {
    color: var(--orange);
}

/* =====================================================
   LEGACY (kept for backward compat with form code)
   ===================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--orange);
    color: var(--ink);
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 0 var(--ink);
    transition: all 0.15s;
    min-height: 48px;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 0 var(--ink);
    background-color: var(--orange-deep);
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    min-height: 48px;
}

.btn-whatsapp:hover {
    background-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: white;
    color: #1e40af;
    font-weight: 600;
    border: 2px solid #1e40af;
    border-radius: 0.5rem;
    transition: all 0.2s;
    min-height: 48px;
}

.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
}

/* Card Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #1e40af;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* FAQ Accordion - Native HTML Details/Summary */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Star Rating */
.stars {
    color: #fbbf24;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Sticky Bar Animation */
#sticky-bar.visible {
    transform: translateY(0);
}

/* Trust Bar */
.trust-bar {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* Gallery Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    background: #f8fafc;
    border-radius: 1rem;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    border: none;
}

/* Pain Points Cards - Red Theme */
.pain-card {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.pain-card .icon-wrapper {
    background-color: #fee2e2;
}

.pain-card .icon-wrapper svg {
    color: #dc2626;
}

/* Benefits Cards - Green/Primary Theme */
.benefit-card {
    background-color: white;
    border: 1px solid #e2e8f0;
}

.benefit-card .icon-wrapper {
    background-color: rgba(30, 64, 175, 0.1);
}

.benefit-card .icon-wrapper svg {
    color: #1e40af;
}

/* Process Steps */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(50% + 3rem);
    width: calc(100% - 6rem);
    height: 2px;
    background: linear-gradient(90deg, #1e40af 0%, #e2e8f0 100%);
}

.process-step:last-child::after {
    display: none;
}

/* Zone Pills */
.zone-pill {
    transition: all 0.2s ease;
}

.zone-pill:hover {
    background-color: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print Styles */
@media print {
    #sticky-bar,
    header,
    footer {
        display: none !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Safe Area Insets for iOS */
@supports (padding: env(safe-area-inset-bottom)) {
    #sticky-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
