/* Estilos Globais Megadoor Outdoor — v35 — 2026-07-27 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary: #1E2170;        /* Azul Megadoor Profundo Sofisticado */
    --accent: #E6C300;         /* Amarelo Dourado Ouro Metalizado */
    --bg-white: #FFFFFF;
    --text-dark: #1C1C24;      /* Grafite de Alta Costura */
    --text-muted: #6C7A89;
    --bg-light: #F8F9FC;       /* Off-white ultra moderno */
    --border-color: #E6ECF4;
    --success: #059669;
    --danger: #DC2626;
    --warning: #D97706;
    --info: #2563EB;
    
    /* Painel Administrativo - Fundo Claro Clean */
    --admin-bg: #F4F6F9;       /* Cinza Claro Moderno */
    --admin-card-bg: #FFFFFF;  /* Cards Brancos */
    --admin-sidebar-bg: #FFFFFF; /* Sidebar Branca */
    --admin-text: #1E293B;     /* Slate Escuro */
    --admin-border: #E2E8F0;   /* Borda clara fina */
    --admin-primary: #1E2170;  /* Azul Megadoor Profundo Sofisticado */
    
    --font-title-lux: 'Playfair Display', serif; /* Tipografia clássica de luxo */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Curva mais elegante */
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px rgba(30, 33, 112, 0.08);
    --radius: 16px;            /* Cantos mais suaves e modernos */
}

/* ==========================================================================
   ANIMAÇÕES E EFEITOS DE REVELAÇÃO (ESTILO REALIZE)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.gold-gradient-text {
    background: linear-gradient(135deg, #FFF200 0%, #D4AF37 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
}

/* ==========================================================================
   SITE PÚBLICO (LANDING PAGE)
   ========================================================================== */

header.lp-header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent);
}

/* Logo oficial (imagem) no cabeçalho público */
.logo-img-header {
    max-height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1); /* garante visibilidade no fundo escuro */
}

@media (max-width: 768px) {
    .logo-img-header {
        max-height: 38px;
    }
}

@media (max-width: 480px) {
    .logo-img-header {
        max-height: 32px;
    }
}

/* ===== Botão Hambúrguer — desktop oculto ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.hamburger-btn:hover,
.hamburger-btn:focus {
    background: rgba(255,255,255,0.12);
    outline: none;
}
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bg-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes menuFadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}


nav.lp-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav.lp-nav a:not(.btn) {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

nav.lp-nav a:not(.btn):hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FFF200 0%, #E6C300 50%, #C6A300 100%);
    color: #0F1020;
    box-shadow: 0 4px 15px rgba(230, 195, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25), 0 0 15px rgba(230, 195, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary);
    border-color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-dark {
    background-color: var(--primary);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-dark:hover {
    background: linear-gradient(135deg, #FFF200 0%, #E6C300 100%);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 195, 0, 0.2);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 75% 30%, rgba(230, 195, 0, 0.08) 0%, rgba(30, 33, 112, 0.3) 50%, rgba(9, 11, 24, 0) 80%), linear-gradient(135deg, #090B18 0%, #151745 60%, #080914 100%);
    color: var(--bg-white);
    padding: 10rem 0 8rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(120% 100% at 50% 0%);
    min-height: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 25px;
    width: fit-content;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent);
    animation: badge-pulse 1.8s infinite ease-in-out;
}

@keyframes badge-pulse {
    0% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px var(--accent); }
    100% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
}

.hero-content h1 {
    font-family: var(--font-title-lux);
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
}

/* Coluna de texto da hero — padding interno */
.hero-content {
    padding-left: 5%;
    padding-right: 4%;
}

.hero-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hero-img-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.1);
    height: 160px;
    transition: var(--transition);
}

.hero-img-item:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--accent);
}

.hero-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-item.large {
    grid-column: span 2;
    height: 200px;
}

/* Imagem única em destaque na hero — sem frame no desktop */
.hero-img-grid.hero-img-single {
    display: block;
    height: 100%;
    align-self: stretch;
}

.hero-img-item.hero-img-featured {
    height: 100%;
    min-height: 480px;
    border-radius: 0;              /* sem bordas arredondadas */
    overflow: hidden;
    box-shadow: none;              /* sem sombra */
    border: none;                  /* sem frame */
    transition: none;
}

.hero-img-item.hero-img-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
    /* Gradiente suave na borda esquerda para fundir com o fundo */
    mask-image: linear-gradient(to right, transparent 0%, black 8%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%);
}



/* Sections Base */
section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-title-lux);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Diferenciais / Como Funciona */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.step-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(30, 33, 112, 0.08);
    position: relative;
    box-shadow: 0 8px 32px rgba(30, 33, 112, 0.03);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 33, 112, 0.1);
    border-color: var(--accent);
}

.step-num {
    background: linear-gradient(135deg, var(--primary) 0%, #17184b 100%);
    color: var(--accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 20px rgba(30, 33, 112, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card h3 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

/* Calendário Bi-semanas LP */
.bi-semana-section {
    background-color: var(--bg-light);
}

.bi-weeks-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bi-weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.bi-week-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bi-week-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 12px rgba(30, 33, 112, 0.08);
}

.bi-week-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.bi-week-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.bi-week-card.passada {
    opacity: 0.45;
    filter: grayscale(100%);
    background-color: #F8F9FC;
}

.bi-week-card.passada::after {
    content: "Encerrada";
    position: absolute;
    top: 5px;
    right: -20px;
    background-color: var(--text-muted);
    color: var(--bg-white);
    font-size: 0.42rem;
    font-weight: 700;
    padding: 1px 15px;
    transform: rotate(45deg);
    text-transform: uppercase;
}


/* Sobre a Empresa */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-family: var(--font-title-lux);
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Contato e Formulário LP */
.contact-section {
    background: radial-gradient(circle at 10% 20%, rgba(230, 195, 0, 0.04) 0%, rgba(30, 33, 112, 0.25) 50%, rgba(8, 9, 20, 0) 80%), linear-gradient(135deg, #090B18 0%, #15184B 100%);
    color: var(--bg-white);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    border-radius: var(--radius);
    padding: 5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h2 {
    font-family: var(--font-title-lux);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item svg {
    fill: var(--accent);
    width: 24px;
    height: 24px;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 3.5rem;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.4rem;
    border: 1px solid #D6E0EC;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #F4F7FB;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(230, 195, 0, 0.15);
}

/* Botão do WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--bg-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Rodapé LP */
footer.lp-footer {
    background-color: #111222;
    color: var(--bg-white);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer.lp-footer p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ==========================================================================
   TELA DE LOGIN
   ========================================================================== */

.login-body {
    background: linear-gradient(135deg, #E6ECF4 0%, var(--admin-bg) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    padding: 3rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(30, 33, 112, 0.05);
    color: var(--admin-text);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 800;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.login-card label {
    color: var(--admin-text);
}

.login-card .form-control {
    background-color: var(--admin-bg);
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.login-card .form-control:focus {
    border-color: var(--accent);
}

.btn-admin {
    background-color: var(--primary);
    color: #FFFFFF;
    width: 100%;
    font-weight: 700;
    margin-top: 1rem;
}

.btn-admin:hover {
    background-color: var(--accent);
    color: var(--text-dark);
}

.login-profile-select {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--admin-border);
    text-align: center;
}

.login-profile-select p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.profile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-profile-shortcut {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--admin-border);
    transition: var(--transition);
}

.btn-profile-shortcut:hover {
    background-color: var(--primary);
    color: #FFFFFF;
}

/* ==========================================================================
   PAINEL ADMINISTRATIVO (GERAL)
   ========================================================================== */

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: var(--admin-bg);
    color: var(--admin-text);
}

.admin-layout .form-group label {
    color: var(--admin-text);
}

/* Sidebar */
aside.admin-sidebar {
    background-color: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    height: 100vh;
    position: sticky;
    top: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.8rem 2rem;
}

/* Logo visível no tema claro — badge azul sobre sidebar branca */
.admin-sidebar .logo-text {
    color: var(--admin-primary);
    font-size: 1.6rem;
    background: linear-gradient(135deg, #EEF0FF 0%, #E4E7FF 100%);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(30, 33, 112, 0.12);
}

.admin-sidebar .logo-text span {
    color: var(--admin-primary);
    font-weight: 900;
    opacity: 0.7;
}

.admin-nav {
    flex: 1;
    overflow-y: auto;
}

.admin-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.admin-nav a:hover, .admin-nav li.active a {
    color: var(--bg-white);
    background-color: var(--admin-primary);
    box-shadow: 0 4px 12px rgba(30, 33, 112, 0.18);
}

.admin-nav a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sidebar-user {
    border-top: 1px solid var(--admin-border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--admin-text);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    color: #FF6B6B;
}

/* Painel Main Area */
main.admin-main {
    padding: 2rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 1.5rem;
}

.admin-header-title h2 {
    font-size: 2rem;
    color: var(--admin-text);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Filtros Gerais */
.filter-bar {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-select, .admin-input {
    background-color: var(--admin-bg);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
}

.admin-select:focus, .admin-input:focus {
    border-color: var(--accent);
}

/* Nova Interface de Acompanhamento de Processos por Abas (Sem Scroll Horizontal) */
.process-steps-container {
    margin-bottom: 2rem;
}

.process-steps-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    background-color: var(--admin-sidebar-bg);
    border: 1px solid var(--admin-border);
    padding: 8px;
    border-radius: var(--radius);
}

.step-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #64748B;
    padding: 12px 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-transform: uppercase;
}

.step-tab-btn:hover {
    color: var(--admin-primary);
    background-color: rgba(30, 33, 112, 0.05);
    border-color: rgba(30, 33, 112, 0.1);
}

.step-tab-btn.active {
    color: var(--text-dark);
    background-color: var(--accent);
    border-color: var(--accent);
}

.step-tab-btn .step-count {
    font-size: 0.7rem;
    background-color: rgba(30, 33, 112, 0.08);
    color: var(--admin-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.step-tab-btn.active .step-count {
    background-color: var(--primary);
    color: var(--accent);
}

/* Lista Vertical de Cards de Campanhas */
.campaigns-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.campaign-vertical-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    padding: 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* layout horizontal no desktop */
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.campaign-vertical-card:hover {
    border-color: var(--admin-primary);
    box-shadow: var(--shadow);
}

.campaign-card-info h3 {
    font-size: 1.3rem;
    color: var(--admin-text);
    margin-bottom: 5px;
}

.campaign-card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.campaign-card-details {
    font-size: 0.9rem;
    color: var(--admin-text);
}

.campaign-card-details strong {
    color: var(--admin-primary);
}

.campaign-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Botões de Mover Etapa */
.btn-nav-step {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    cursor: pointer;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-nav-step:hover {
    background-color: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

.btn-nav-step.btn-next {
    background-color: var(--admin-primary);
    color: #FFF;
    border-color: var(--admin-primary);
}

.btn-nav-step.btn-next:hover {
    background-color: var(--success);
    color: #FFF;
    border-color: var(--success);
}

/* Responsividade do Dashboard em Abas */
@media(max-width: 768px) {
    .campaign-vertical-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .campaign-card-actions {
        justify-content: flex-start;
    }
    .process-steps-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 480px) {
    .process-steps-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Modais Administrativos */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.admin-modal {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--admin-text);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .admin-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--admin-text);
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--admin-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 1.5rem;
    border-top: 1px solid var(--admin-border);
}

/* Tabelas Administrativas */
.table-container {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Abas/Botões de Sessões */
.tab-container {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 1px;
    margin-bottom: 2rem;
}

.tab-btn {
    background-color: transparent;
    border: none;
    color: #64748B;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--admin-primary);
    border-bottom-color: var(--admin-primary);
}

/* Execução Operacional / Assinatura */
.webcam-container {
    width: 100%;
    height: 300px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--bg-white);
    font-size: 0.8rem;
}

.captured-image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    display: none;
    border: 2px solid var(--accent);
}

/* Cartões das Placas Cadastro */
.placas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.placa-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.placa-card:hover {
    border-color: var(--accent);
}

.placa-img {
    height: 180px;
    background-color: var(--admin-bg);
    position: relative;
}

.placa-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placa-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.placa-info {
    padding: 1.5rem;
}

.placa-info h4 {
    color: var(--admin-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.placa-detail-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

/* Novo layout de detalhes em stack (coluna) */
.placa-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 4px;
}

.placa-detail-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.placa-detail-label {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-primary);
    min-width: 76px;
    flex-shrink: 0;
}

.placa-detail-value {
    color: var(--admin-text);
    flex: 1;
    word-break: break-word;
}

/* Módulo Financeiro Específico */
.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.finance-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.finance-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.finance-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--admin-text);
    margin: 0.5rem 0;
}

.value-receitas { color: var(--success); }
.value-despesas { color: var(--danger); }

/* Relatório de Colagem Cliente (Impressão) */
.report-view {
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.report-header {
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-title {
    color: var(--primary);
    font-size: 1.8rem;
}

.report-body {
    font-size: 0.95rem;
}

.report-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.report-photo-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.report-photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.report-photo-desc {
    padding: 10px;
    background-color: var(--bg-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsividade Mobile */
@media(max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 6rem;
    }
    .about {
        grid-template-columns: 1fr;
    }
    .contact-section {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    aside.admin-sidebar {
        display: none; /* Em ambiente real implementaríamos menu sanduíche */
    }
}

/* ==========================================================================
   CARROSSEL DE PLACAS DA LP
   ========================================================================== */
.portfolio-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 50px;
}

.carousel-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    
    /* Ocultar barra de rolagem */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-viewport::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 25px 0; /* Padding vertical para não cortar os cards ao expandirem com transform: scale */
}

/* No desktop, cada slide ocupa 1/3 do viewport menos o espaçamento */
.carousel-track .placa-card {
    flex: 0 0 calc(33.333% - 13.33px);
    flex-shrink: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Efeito de Escala apenas no Hover do Mouse (Desktop) */
@media(min-width: 769px) {
    .carousel-track .placa-card:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 20px rgba(46, 48, 146, 0.15);
        z-index: 2;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 242, 0, 0.4);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.carousel-btn.prev-btn {
    left: 0;
}

.carousel-btn.next-btn {
    right: 0;
}

/* Responsividade do Carrossel */
@media(max-width: 992px) {
    .carousel-track .placa-card {
        flex: 0 0 calc(50% - 10px); /* 2 por vez */
    }
}

@media(max-width: 576px) {
    .carousel-container {
        padding: 0 10px;
        gap: 10px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    .carousel-track .placa-card {
        flex: 0 0 100%; /* 1 por vez */
    }
    .carousel-btn.prev-btn {
        left: -5px;
    }
    .carousel-btn.next-btn {
        right: -5px;
    }
}

/* ==========================================================================
   PÁGINA DE PORTFÓLIO E DOWNLOAD DE PDF
   ========================================================================== */
.portfolio-page-header {
    background: radial-gradient(circle at 80% 20%, rgba(230, 195, 0, 0.06) 0%, rgba(30, 33, 112, 0.25) 65%, rgba(8, 9, 20, 0) 90%), linear-gradient(135deg, #090B18 0%, #1A1D54 60%, #0F1020 100%);
    color: var(--bg-white);
    padding: 6rem 5%;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-page-header h1 {
    font-family: var(--font-title-lux);
    font-size: 3.4rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
    font-weight: 700;
}

.portfolio-page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.pdf-download-bar {
    display: flex;
    justify-content: center;
    padding: 2rem 5%;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.pdf-btn {
    background-color: #EF4444; /* Vermelho estilo PDF */
    color: var(--bg-white);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
    text-decoration: none;
}

.pdf-btn:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.4);
    color: var(--bg-white);
}

.pdf-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.portfolio-grid-section {
    padding: 2rem 5% 3rem;
    background-color: var(--bg-white);
}

.portfolio-public-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1250px;
    margin: 0 auto;
}

.portfolio-public-grid .placa-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-public-grid .placa-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 25px rgba(30, 33, 112, 0.1);
}

.portfolio-public-grid .placa-card .placa-img {
    height: auto;
    aspect-ratio: 16 / 7;
}


/* Botões de ação do grid do portfólio */
.portfolio-public-grid .btn-cart-single {
    font-size: 0.88rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

.portfolio-public-grid .btn-cart-ind {
    font-size: 0.8rem;
    padding: 0.5rem 0.35rem;
    border-radius: 8px;
}

.portfolio-public-grid .btn-cart-combo {
    font-size: 0.85rem;
    padding: 0.58rem 1rem;
    border-radius: 10px;
}

.portfolio-public-grid .btn-cart-triplo {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

/* ── Header do card: título + tag de categoria lado a lado ── */
.placa-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.placa-card-titulo {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.placa-tag-inline {
    display: inline-block;
    background-color: var(--primary);
    color: var(--accent);
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Compactar informações do card no portfólio público */
.portfolio-public-grid .placa-card .placa-info {
    padding: 0.9rem 1.3rem 1.1rem;
}

.portfolio-public-grid .placa-card .placa-detail-stack {
    gap: 5px;
    margin-bottom: 2px;
}

.portfolio-public-grid .placa-card .placa-detail-row {
    font-size: 0.9rem;
    line-height: 1.45;
}

.portfolio-public-grid .placa-card .placa-detail-label {
    font-size: 0.75rem;
    min-width: 82px;
}

.portfolio-public-grid .placa-card .placa-detail-value {
    font-size: 0.9rem;
}

/* Botão "Ver Localização" — versão melhorada */
.placa-localizacao-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.btn-ver-localizacao {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #1E2170 0%, #2b30a0 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(30,33,112,0.25);
    flex: 1;
    justify-content: center;
}

.btn-ver-localizacao::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.btn-ver-localizacao:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30,33,112,0.38);
    text-decoration: none;
    color: #fff;
}

/* ==========================================================================
   ESTILOS GERAIS DO PORTFÓLIO PDF (Para html2pdf e Impressão)
   ========================================================================== */
#portfolio-pdf-print {
    display: none; /* Oculto na tela do site público */
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #1C1C24;
    width: 794px; /* Largura A4 — elemento fica fora da tela via JS (position:fixed; left:-9999px) */
}

@media print {
    body * { visibility: hidden; }
    #portfolio-pdf-print, #portfolio-pdf-print * { visibility: visible; }
    #portfolio-pdf-print {
        display: block !important;
        position: absolute;
        left: 0; top: 0; width: 100%;
    }
}

/* -----------------------------------------------------------------------
   WRAPPER DE CADA SEÇÃO DO PDF (sem height fixo - fluxo natural)
   ----------------------------------------------------------------------- */
.pdf-page {
    width: 100%;
    padding: 32px 36px;
    box-sizing: border-box;
    background-color: #ffffff;
    position: relative;
}

/* Apenas as 2 primeiras páginas têm quebra forçada depois */
.pdf-page-break {
    page-break-after: always;
    break-after: page;
}

/* -----------------------------------------------------------------------
   CAPA DO PDF (Página 1)
   ----------------------------------------------------------------------- */
.pdf-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 900px;
    border: 8px double #1E2170;
    border-radius: 12px;
    padding: 48px 40px 36px;
    box-sizing: border-box;
    background: linear-gradient(160deg, #f8f9ff 0%, #ffffff 100%);
}

/* Logo com fundo azul para contraste */
.pdf-logo-bg-wrapper {
    background-color: #1E2170;
    padding: 22px 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(30, 33, 112, 0.2);
}

.pdf-cover-logo {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
}

.pdf-cover-logo span { color: #F0A500; }

.pdf-cover-title {
    font-size: 2.4rem;
    line-height: 1.25;
    color: #1E2170;
    margin-bottom: 16px;
    font-weight: 700;
}

.pdf-cover-subtitle {
    font-size: 1.1rem;
    color: #5a6070;
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.65;
}

.pdf-cover-footer {
    margin-top: 28px;
    font-size: 0.88rem;
    color: #8890a0;
    border-top: 1px solid #e0e4ef;
    width: 100%;
    padding-top: 16px;
}

/* -----------------------------------------------------------------------
   CABEÇALHO INTERNO DAS PÁGINAS
   ----------------------------------------------------------------------- */
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #1E2170;
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.pdf-header-logo-bg-wrapper {
    background-color: #1E2170;
    padding: 7px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdf-header-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
}

.pdf-header-logo span { color: #F0A500; }

.pdf-header-title {
    font-size: 0.88rem;
    color: #8890a0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* -----------------------------------------------------------------------
   TEXTOS DA APRESENTAÇÃO COMERCIAL (Página 2)
   ----------------------------------------------------------------------- */
.pdf-section-title {
    font-size: 2rem;
    color: #1E2170;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.pdf-commercial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333340;
    margin-bottom: 14px;
    text-align: justify;
}

.pdf-differentials {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pdf-diff-card {
    background-color: #f4f6fb;
    padding: 16px 18px;
    border-radius: 8px;
    border-left: 4px solid #1E2170;
}

.pdf-diff-card h4 {
    color: #1E2170;
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.pdf-diff-card p {
    font-size: 0.82rem;
    color: #5a6070;
    line-height: 1.5;
}

/* Rodapé simples da página 2 (fluxo normal, não absolute) */
.pdf-footer-inline {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e0e4ef;
    padding-top: 10px;
    font-size: 0.78rem;
    color: #8890a0;
}

/* -----------------------------------------------------------------------
   CONTATO / WHATSAPP (Capa e Página 2)
   ----------------------------------------------------------------------- */
.pdf-contact-box {
    background-color: #f0faf4;
    border: 2px dashed #25D366;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    margin-top: 24px;
}

.pdf-contact-box h3 {
    color: #1a6e2e;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.pdf-contact-box p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #1C1C24;
}

.pdf-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white !important;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* -----------------------------------------------------------------------
   PLACAS - LISTA CONTÍNUA (Páginas 3+)
   ----------------------------------------------------------------------- */
.pdf-placas-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 6px;
}

.pdf-placa-card-horizontal {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border: 1px solid #dde2ef;
    border-radius: 10px;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.pdf-placa-img-horizontal {
    width: 240px;
    min-width: 240px;
    height: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #f0f2f8;
}

.pdf-placa-img-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdf-placa-tag-horizontal {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #1E2170;
    color: #F0A500;
    padding: 3px 9px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-placa-info-horizontal {
    padding: 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdf-placa-info-horizontal h4 {
    color: #1E2170;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    border-bottom: 1px solid #e8eaf5;
    padding-bottom: 5px;
}

.pdf-placa-info-horizontal p {
    font-size: 0.8rem;
    color: #333340;
    margin-bottom: 4px;
    line-height: 1.4;
}

.pdf-placa-info-horizontal p strong {
    color: #1E2170;
    font-weight: 600;
}

.pdf-placa-info-horizontal .pdf-placa-desc {
    color: #7a8090;
    font-size: 0.72rem;
    font-style: italic;
    margin-top: 5px;
}

/* -----------------------------------------------------------------------
   RESPONSIVIDADE DA GRID PÚBLICA DO PORTFOLIO
   ----------------------------------------------------------------------- */
@media(max-width: 768px) {
    .portfolio-public-grid { grid-template-columns: 1fr; }
}





/* Configurações de Páginas */
.pdf-page {
    width: 210mm;
    height: 297mm; /* Altura exata da folha A4 */
    padding: 10mm;
    box-sizing: border-box;
    position: relative;
    background-color: #ffffff;
    page-break-after: always;
    break-after: always;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-page:last-child {
    page-break-after: avoid;
    break-after: avoid;
}

/* Capa do PDF */
.pdf-cover {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 10px double var(--primary);
    padding: 3rem;
    border-radius: var(--radius);
    background-color: #ffffff;
    position: relative;
    box-sizing: border-box;
}

/* Protetor do Logotipo da Capa */
.pdf-logo-bg-wrapper {
    background-color: #1E2170; /* Azul escuro corporativo para contraste */
    padding: 25px 45px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(30, 33, 112, 0.15);
}

.pdf-cover-logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1;
}

.pdf-cover-logo span {
    color: var(--accent);
}

.pdf-cover-title {
    font-family: var(--font-title-lux);
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.pdf-cover-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.pdf-cover-footer {
    margin-top: auto;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    width: 100%;
    padding-top: 1.5rem;
}

/* Seção Sobre / Apresentação */
.pdf-about-section {
    padding: 1.5rem 0;
    flex: 1;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

/* Protetor do Logotipo do Cabeçalho */
.pdf-header-logo-bg-wrapper {
    background-color: #1E2170;
    padding: 8px 18px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdf-header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
}

.pdf-header-logo span {
    color: var(--accent);
}

.pdf-header-title {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.pdf-section-title {
    font-family: var(--font-title-lux);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.pdf-commercial-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: #333340;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.pdf-differentials {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pdf-diff-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
    border: 1px solid var(--border-color);
}

.pdf-diff-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pdf-diff-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pdf-footer {
    position: absolute;
    bottom: 10mm;
    left: 10mm;
    right: 10mm;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contato / WhatsApp */
.pdf-contact-box {
    margin-top: 2.5rem;
    background-color: #EEF8F1;
    border: 2px dashed #25D366;
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
}

.pdf-contact-box h3 {
    color: #2E7D32;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.pdf-contact-box p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #1C1C24;
}

.pdf-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
}

/* LAYOUT DE PLACAS CONTÍNUO (HORIZONTAL E PREMIUM) */
.pdf-placas-page {
    /* Esta página fluirá continuamente. O html2pdf cuidará de quebrar nos A4 */
    page-break-after: avoid !important;
    break-after: avoid !important;
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 10mm;
    overflow: visible !important;
}

.pdf-placas-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.pdf-placa-card-horizontal {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.pdf-placa-img-horizontal {
    width: 280px;
    min-width: 280px;
    height: 185px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.pdf-placa-img-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-placa-tag-horizontal {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: var(--accent);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.pdf-placa-info-horizontal {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdf-placa-info-horizontal h4 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.pdf-placa-info-horizontal p {
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
}

.pdf-placa-info-horizontal p strong {
    color: var(--primary);
    font-weight: 600;
}

/* Ajustes gerais de responsividade da Grid de Portfólio */
@media(max-width: 768px) {
    .portfolio-public-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE — SITE PÚBLICO (LANDING PAGE) — CORREÇÃO MOBILE
   Testado em: 320px | 360px | 375px | 390px | 412px | 414px | 428px
   ============================================================ */

/* Fix global: eliminar rolagem horizontal indesejada */
html {
    overflow-x: hidden;
}

/* ---- ≤ 992px : tablets ---------------------------------------- */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 7rem 5% 4rem;
        gap: 40px;
        clip-path: none; /* Evita overflow lateral do ellipse */
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        padding: 3rem;
        gap: 40px;
    }
}

/* ---- ≤ 768px : mobile padrão ---------------------------------- */
@media (max-width: 768px) {
    /* Header Mobile — Menu Hambúrguer */
    header.lp-header {
        padding: 0.75rem 5%;
        flex-wrap: nowrap;
        gap: 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hamburger-btn {
        display: flex;
    }

    nav.lp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 0.5rem 5% 1.2rem;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        z-index: 998;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    nav.lp-nav.open {
        display: block;
        animation: menuFadeDown 0.25s ease forwards;
    }

    nav.lp-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
    }

    nav.lp-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    nav.lp-nav ul li:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    nav.lp-nav a:not(.btn) {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
        border-bottom: none;
    }

    nav.lp-nav .btn {
        display: block;
        text-align: center;
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.3rem;
        border-radius: 8px;
        width: 100%;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        padding: 5.5rem 4% 3.5rem;
        clip-path: none;
        gap: 30px;
        min-height: unset;
    }

    /* Reseta padding extra que colocamos para o desktop */
    .hero-content {
        padding-left: 0;
        padding-right: 0;
    }

    /* Reseta a máscara de gradiente — no mobile não precisa */
    .hero-img-item.hero-img-featured img {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        max-width: 100%;
    }

    .hero-ctas {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }

    .hero-img-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-img-item {
        height: 130px;
    }

    .hero-img-item.large {
        height: 180px;
    }

    /* Enquadramento mobile: imagem completa sem cortes */
    .hero-img-item.hero-img-featured {
        height: 300px;
        background-color: #0d0f3d;
    }
    .hero-img-item.hero-img-featured img {
        object-fit: contain;
        object-position: center center;
    }

    /* Seções gerais */
    section {
        padding: 4rem 4%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Como funciona */
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Sobre */
    .about {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 4rem 4%;
    }

    .about-content h3 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 2rem;
    }

    .stat-item h4 {
        font-size: 1.8rem;
    }

    /* Contato / Formulário */
    .contact-section {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 30px;
        border-radius: 12px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    /* Calendário bi-semanas */
    .bi-weeks-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Carrossel de placas */
    .carousel-container {
        padding: 0 10px;
    }
}

/* ---- ≤ 480px : pequenos celulares ----------------------------- */
@media (max-width: 480px) {
    /* Header */
    header.lp-header {
        padding: 0.6rem 4%;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    /* Hero */
    .hero {
        padding: 4.5rem 4% 3rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.62rem;
        padding: 6px 12px;
        margin-bottom: 18px;
    }

    .hero-img-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-img-item.large {
        grid-column: span 1;
        height: 200px;
    }

    .hero-img-item {
        height: 155px;
    }

    /* Enquadramento mobile pequeno: imagem completa sem cortes */
    .hero-img-item.hero-img-featured {
        height: 280px;
        background-color: #0d0f3d;
    }
    .hero-img-item.hero-img-featured img {
        object-fit: contain;
        object-position: center center;
    }

    /* Seções */
    section {
        padding: 3rem 4%;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Sobre: stats em coluna única */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Contato */
    .contact-section {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    /* Calendário */
    .bi-weeks-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* WhatsApp flutuante */
    .whatsapp-float {
        bottom: 20px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* ---- ≤ 360px : celulares muito pequenos (ex: Galaxy S5) ------- */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .bi-weeks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   MEGADOOR — UPGRADE VISUAL v17
   Animações Premium, Micro-interações e Novas Seções
   ============================================================ */

/* ── 1. PRELOADER ─────────────────────────────────────────── */
#md-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(ellipse at 30% 60%, #1a1d54 0%, #090b18 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}
#md-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    max-height: 72px;
    width: auto;
    margin-bottom: 2rem;
    opacity: 0;
    animation: preloaderLogoIn 0.5s ease 0.1s forwards;
}
@keyframes preloaderLogoIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.preloader-bar {
    width: 220px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
}
.preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fff200 0%, #ffe066 100%);
    border-radius: 10px;
    animation: preloaderFill 1.1s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
@keyframes preloaderFill {
    0%   { width: 0%; }
    60%  { width: 72%; }
    100% { width: 100%; }
}

/* ── 2. ANIMACOES DE ENTRADA ─────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.22,1,0.36,1);
    will-change: opacity, transform;
}
.reveal-up    { transform: translateY(42px); }
.reveal-left  { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal-scale { transform: scale(0.92); }

.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: none;
}
/* Override das classes reveal antigas com animacao mais rica */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.22,1,0.36,1);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: none; }

/* delays escalonados */
.delay-1 { transition-delay: 0.10s !important; }
.delay-2 { transition-delay: 0.20s !important; }
.delay-3 { transition-delay: 0.30s !important; }
.delay-4 { transition-delay: 0.40s !important; }
.delay-5 { transition-delay: 0.50s !important; }

/* ── 3. HERO APRIMORADO ──────────────────────────────────── */
.hero { position: relative; }

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: background 0.1s linear;
    border-radius: inherit;
}
.hero-content, .hero-img-grid {
    position: relative;
    z-index: 1;
}

/* Animacoes de entrada do hero */
@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroBadgeIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes heroImgIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge {
    animation: heroBadgeIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
#hero-title {
    animation: heroTitleIn 0.75s cubic-bezier(0.22,1,0.36,1) 0.25s both;
}
#hero-subtitle {
    animation: heroFadeIn 0.8s ease 0.5s both;
}
.hero-ctas {
    animation: heroFadeIn 0.8s ease 0.7s both;
}
.hero-img-item {
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease;
    animation: heroImgIn 0.85s cubic-bezier(0.22,1,0.36,1) 0.35s both;
}
.hero-img-item.large { animation-delay: 0.28s; }
.hero-img-item:nth-child(3) { animation-delay: 0.42s; }

.hero-img-item:hover {
    transform: translateY(-7px) scale(1.025);
    box-shadow: 0 22px 44px rgba(0,0,0,0.38);
}

/* ── 4. STEP CARDS HOVER ─────────────────────────────────── */
.step-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.38s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.38s ease,
                border-color 0.3s ease;
}
.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,242,0,0.05) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.38s ease;
    pointer-events: none;
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 52px rgba(30,33,112,0.16);
    border-color: rgba(255,242,0,0.5);
}
.step-card:hover::before { opacity: 1; }
.step-num {
    transition: transform 0.38s cubic-bezier(0.22,1,0.36,1), box-shadow 0.38s ease;
}
.step-card:hover .step-num {
    transform: scale(1.18) rotate(-4deg);
    box-shadow: 0 0 0 8px rgba(255,242,0,0.12), 0 10px 24px rgba(30,33,112,0.22);
}

/* ── 5. STATS SECTION ENHANCEMENT ───────────────────────── */
.stat-item {
    transition: transform 0.32s ease;
    position: relative;
}
.stat-item:hover { transform: translateY(-6px); }
.about-stats .stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 768px) {
    .about-stats .stat-item + .stat-item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.18);
    }
}

/* ── 6. SECAO SERVICOS ───────────────────────────────────── */
.servicos-section {
    background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 70%);
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}
.servicos-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
}
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.servico-card {
    background: #fff;
    border: 1.5px solid #e5e8f5;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.38s ease,
                border-color 0.3s ease;
}
.servico-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
    border-radius: 0 0 20px 20px;
}
.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 52px rgba(30,33,112,0.14);
    border-color: rgba(255,242,0,0.5);
}
.servico-card:hover::after { transform: scaleX(1); }
.servico-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e2170 0%, #2e3092 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(30,33,112,0.22);
    transition: transform 0.38s cubic-bezier(0.22,1,0.36,1), box-shadow 0.38s ease;
}
.servico-card:hover .servico-icon {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 14px 30px rgba(30,33,112,0.32);
}
.servico-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
.servico-card h3 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}
.servico-card > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}
@media (max-width: 992px) {
    .servicos-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 576px) {
    .servicos-grid { grid-template-columns: 1fr; }
    .servicos-section { padding: 4rem 4%; }
}

/* ── 7. CTA INTERMEDIARIO ────────────────────────────────── */
.cta-mid-section {
    position: relative;
    padding: 6rem 5%;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 50%, rgba(255,242,0,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 50%, rgba(46,48,146,0.55) 0%, transparent 58%),
        linear-gradient(135deg, #090b18 0%, #1a1d54 50%, #0f1020 100%);
}
.cta-mid-section::before,
.cta-mid-section::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,242,0,0.5) 50%, transparent 100%);
}
.cta-mid-section::before { top: 0; }
.cta-mid-section::after  { bottom: 0; }
.cta-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.cta-deco-1 {
    width: 320px; height: 320px;
    background: rgba(255,242,0,0.05);
    top: -80px; right: -60px;
}
.cta-deco-2 {
    width: 280px; height: 280px;
    background: rgba(46,48,146,0.4);
    bottom: -90px; left: -40px;
}
.cta-mid-eyebrow {
    display: inline-block;
    background: rgba(255,242,0,0.1);
    border: 1px solid rgba(255,242,0,0.35);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}
.cta-mid-section h2 {
    font-family: var(--font-title-lux);
    font-size: 2.8rem;
    color: var(--bg-white);
    margin-bottom: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}
.cta-mid-section h2 span { color: var(--accent); }
.cta-mid-section > p {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.72);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.cta-mid-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .cta-mid-section h2 { font-size: 2rem; }
    .cta-mid-section { padding: 4.5rem 5%; }
}
@media (max-width: 480px) {
    .cta-mid-section h2 { font-size: 1.75rem; }
    .cta-mid-btns { flex-direction: column; align-items: center; }
    .cta-mid-btns .btn { width: 100%; justify-content: center; }
}

/* ── 8. BOTOES GLOBAIS APRIMORADOS ──────────────────────── */
.btn {
    transition: transform 0.26s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.26s ease,
                background-color 0.22s ease !important;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.14), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.26s ease;
    pointer-events: none;
    border-radius: inherit;
}
.btn:hover::after { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,242,0,0.42);
}
.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.18);
}
.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30,33,112,0.42);
}

/* ── 9. WHATSAPP PULSE ───────────────────────────────────── */
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.38); }
    50%       { box-shadow: 0 4px 16px rgba(37,211,102,0.38), 0 0 0 12px rgba(37,211,102,0.0); }
}
.whatsapp-float {
    animation: waPulse 2.8s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1) !important;
}
.whatsapp-float:hover {
    transform: scale(1.14) !important;
    animation: none;
    box-shadow: 0 10px 28px rgba(37,211,102,0.55);
}

/* ── 10. BI-SEMANA HOVER MELHORADO ──────────────────────── */
.bi-week-card {
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.28s ease,
                border-color 0.26s ease !important;
}
.bi-week-card:hover:not(.passada) {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 12px 28px rgba(30,33,112,0.2);
}

/* ── 11. FORM FOCUS ANIMADO ──────────────────────────────── */
.form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease !important;
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255,242,0,0.18) !important;
    outline: none;
}
.form-group {
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.form-group:focus-within {
    transform: translateX(3px);
}

/* ── 12. ABOUT IMG HOVER ─────────────────────────────────── */
.about-img img {
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease;
    border-radius: var(--radius);
}
.about-img:hover img {
    transform: scale(1.03);
    box-shadow: 0 28px 56px rgba(0,0,0,0.28);
}

/* ── 13. CAROUSEL CARDS HOVER EXTRA ─────────────────────── */
.placa-img img {
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1) !important;
}
.placa-card:hover .placa-img img {
    transform: scale(1.06);
}

/* ── 14. NAV LINK HOVER ──────────────────────────────────── */
nav.lp-nav a:not(.btn) {
    position: relative;
}
nav.lp-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.26s cubic-bezier(0.22,1,0.36,1);
}
nav.lp-nav a:not(.btn):hover::after {
    transform: scaleX(1);
}

/* ── 15. PREFERS-REDUCED-MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .whatsapp-float { animation: none !important; }
    #md-preloader  { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   16. SEÇÃO DE CLIENTES — Clientes que já anunciaram com a Megadoor
   Posição: entre faixa de stats e seção Soluções
═══════════════════════════════════════════════════════════════════════════ */

/* Container principal da seção */
.clientes-section {
    padding: 5.5rem 1.5rem 5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    position: relative;
    overflow: hidden;
}

/* Detalhe decorativo de fundo */
.clientes-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(26,42,74,.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Wrapper com largura máxima */
.clientes-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
}

/* Título */
.clientes-titulo {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--primary, #1a2a4a);
    line-height: 1.2;
    margin-bottom: 0.7rem;
}
.clientes-titulo span {
    color: var(--accent, #ffe600);
    /* leve sombra para amarelo sobre branco */
    text-shadow: 0 2px 8px rgba(200,168,0,.25);
}

/* Subtítulo */
.clientes-subtitulo {
    font-size: clamp(.9rem, 1.6vw, 1.05rem);
    color: #5a6a80;
    max-width: 620px;
    margin: 0 auto 3.2rem;
    line-height: 1.75;
}

/* Grid de cards */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

/* Card individual */
.cliente-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.6rem 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(26,42,74,.07);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(26,42,74,.07);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1),
                box-shadow .28s ease,
                border-color .22s ease;
    cursor: default;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}

/* Linha dourada no topo no hover */
.cliente-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, #ffe600) 0%, rgba(255,230,0,.4) 100%);
    opacity: 0;
    transition: opacity .22s ease;
    border-radius: 16px 16px 0 0;
}

.cliente-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(26,42,74,.13), 0 2px 8px rgba(255,230,0,.18);
    border-color: rgba(255,230,0,.55);
}
.cliente-card:hover::before {
    opacity: 1;
}

/* Área da logo/tipografia */
.cliente-logo-wrap {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tipografia da "logo" textual */
.cliente-logo-text {
    text-align: center;
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.2;
    user-select: none;
    transition: transform .22s ease;
}
.cliente-card:hover .cliente-logo-text {
    transform: scale(1.04);
}

/* Imagem real de logo (quando disponível) */
.cliente-logo-img {
    max-width: 110px;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter .22s ease, transform .22s ease;
}
.cliente-card:hover .cliente-logo-img {
    filter: grayscale(0%);
    transform: scale(1.06);
}

/* Nome do cliente */
.cliente-nome {
    font-size: .78rem;
    font-weight: 600;
    color: #8090a8;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

/* ── Responsivo ─────────────────────────────────────────────────────── */
/* Tablet: 3 colunas */
@media (max-width: 1024px) {
    .clientes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobile grande: 2 colunas */
@media (max-width: 640px) {
    .clientes-section {
        padding: 4rem 1.2rem 3.5rem;
    }
    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .9rem;
    }
    .cliente-card {
        min-height: 115px;
        padding: 1.3rem .8rem 1rem;
    }
    .cliente-logo-wrap {
        height: 54px;
    }
}

/* Mobile pequeno: ainda 2 colunas, menor padding */
@media (max-width: 380px) {
    .clientes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .7rem;
    }
}
