/**
 * PediuZap - Template Moderno do Zero
 * Design limpo focado em delivery e food
 */

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Principal - Vermelho Delivery */
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #EF4444;
    --secondary: #F97316;
    --secondary-dark: #EA580C;
    --accent: #FBBF24;
    --accent-light: #FCD34D;

    /* WhatsApp Theme (secundário) */
    --verde-primary: #25D366;
    --verde-dark: #128C7E;

    /* Neutros */
    --branco: #FFFFFF;
    --cinza-dark: #1F2937;
    --cinza-medium: #6B7280;
    --cinza-light: #F9FAFB;
    --sombra: 0 4px 16px rgba(220, 38, 38, 0.12);
    --sombra-hover: 0 12px 32px rgba(220, 38, 38, 0.2);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--cinza-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER MODERNO ===== */
.pz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(220, 38, 38, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.pz-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.12);
}

.pz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.pz-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pz-logo img {
    height: 60px;
    width: auto;
}

/* Se a logo for SVG, aplicar cores customizadas */
.pz-logo svg,
.pz-logo img[src$=".svg"] {
    height: 60px;
    width: auto;
}

.pz-logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #e7282b 0%, #ffa400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pz-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.pz-menu a {
    text-decoration: none;
    color: var(--cinza-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.pz-menu a.pz-btn-primary {
    color: var(--branco) !important;
}

.pz-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #DC2626, #F97316);
    transition: width 0.3s ease;
}

.pz-menu a.pz-btn-primary::after {
    display: none;
}

.pz-menu a:hover {
    color: #DC2626;
}

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

.pz-btn-primary {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: var(--branco) !important;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    display: inline-block;
}

.pz-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16A34A, #15803D);
    color: var(--branco) !important;
    text-decoration: none !important;
}

/* ===== HERO SECTION ===== */
.pz-hero {
    background: linear-gradient(135deg, #DC2626 0%, #eb192d 50%, #FBBF24 100%);
    padding: 180px 5% 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.pz-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.3) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.pz-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1));
    z-index: 0;
    pointer-events: none;
}

.pz-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: auto;
    padding: 0 3%;
}

.pz-hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--branco);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pz-hero-content h1 span {
    background: linear-gradient(135deg, #FCD34D 0%, #FFA726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.pz-hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 520px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pz-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.pz-btn-hero {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.pz-btn-hero-primary {
    background: var(--branco);
    color: #6366F1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 17px;
    padding: 16px 36px;
    font-weight: 700;
}

.pz-btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #4F46E5;
}

.pz-btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--branco);
    border: 2px solid var(--branco);
    backdrop-filter: blur(10px);
}

.pz-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.pz-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Visual - ChatBot Demo */
.pz-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature Badges */
.pz-hero-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.pz-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 16px;
    border-radius: 50px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pz-feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pz-feature-badge i {
    font-size: 18px;
}

/* ChatBot Demo Container */
.pz-chatbot-demo {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    /* animation: floatPhone 6s ease-in-out infinite; */
    margin: 0 auto;
    position: relative;
}

.pz-chat-header {
    background: linear-gradient(135deg, #F97316, #F97316);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.pz-chat-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    animation: avatarPulse 3s ease-in-out infinite;
}

.pz-chat-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: avatarRipple 2s ease-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes avatarRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.pz-chat-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.pz-chat-info span {
    font-size: 13px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.pz-chat-messages {
    padding: 20px;
    background: #F9FAFB;
    min-height: 350px;
    max-height: 566px;
    overflow-y: auto;
}

.pz-message {
    margin-bottom: 16px;
    animation: messageSlide 0.5s ease-out;
}

.pz-message:nth-child(1) {
    animation-delay: 0.1s;
}

.pz-message:nth-child(2) {
    animation-delay: 0.3s;
}

.pz-message:nth-child(3) {
    animation-delay: 0.5s;
}

.pz-message:nth-child(4) {
    animation-delay: 0.7s;
}

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

.pz-message p {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 16px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
}

.pz-message-bot p {
    background: white;
    color: #1F2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 4px;
}

.pz-message-user {
    text-align: right;
}

.pz-message-user p {
    background: linear-gradient(135deg, #F97316, #F97316);
    color: white;
    border-bottom-right-radius: 4px;
}

.pz-bot-products {
    margin-top: 12px;
}

/* Bot Menu Styles */
.pz-bot-menu {
    margin-top: 12px;
    background: #F9FAFB;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.pz-menu-section {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin: 12px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #E5E7EB;
}

.pz-menu-section:first-child {
    margin-top: 0;
}

.pz-menu-item {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 6px 0;
    font-size: 13px;
    color: #1F2937;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pz-menu-item:hover {
    border-color: #DC2626;
    background: #FEF2F2;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.pz-bot-item {
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #1F2937;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pz-bot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.pz-bot-item:hover::before {
    left: 100%;
}

.pz-bot-item:hover {
    border-color: #DC2626;
    background: #FEF2F2;
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Typing Indicator Animation */
.pz-typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: typingFadeIn 1s ease-in infinite alternate;
}

.pz-typing-dot {
    width: 8px;
    height: 8px;
    background: #9CA3AF;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.pz-typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.pz-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.pz-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        background: #D1D5DB;
    }
    30% {
        transform: translateY(-8px);
        background: #DC2626;
    }
}

@keyframes typingFadeIn {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pz-hero-image img {
    /* Fallback for simple image usage */
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
    /* animation: floatPhone 6s ease-in-out infinite; */
    position: relative;
    z-index: 2;
}

/* Mockup 3D Effect - Multiple Phones */
.pz-mockup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 550px;
    margin: 0 auto;
}

.pz-mockup-phone {
    position: absolute;
    width: 300px;
    height: auto;
    border-radius: 40px;
    overflow: visible;
    transition: transform 0.3s ease;
}

.pz-mockup-phone img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.35));
    border-radius: 40px;
}

.pz-mockup-phone:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    z-index: 3;
    /* animation: floatPhone 6s ease-in-out infinite; */
}

.pz-mockup-phone:nth-child(2) {
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%) rotate(4deg) scale(0.88);
    z-index: 2;
    opacity: 0.75;
    animation: floatPhone 6s ease-in-out infinite 1.5s;
}

.pz-mockup-phone:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05) !important;
    z-index: 10;
}

@keyframes floatPhone {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(-6deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px) rotate(-6deg);
    }
}

/* Floating elements around mockup */
.pz-float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 12px 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: floatElement 4s ease-in-out infinite;
    white-space: nowrap;
}

.pz-float-element i {
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== FEATURES SECTION ===== */
.pz-features {
    padding: 80px 5%;
    background: var(--branco);
}

.pz-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.pz-section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--cinza-dark);
    margin-bottom: 1rem;
}

.pz-section-title p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.pz-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pz-feature-card {
    background: var(--branco);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.pz-feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-8px);
}

.pz-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #DC2626, #F97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
    color: var(--branco);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

.pz-feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--cinza-dark);
    margin-bottom: 0.8rem;
}

.pz-feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .pz-hero {
        padding: 120px 3% 50px;
        min-height: auto;
    }

    .pz-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 2%;
    }

    .pz-hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    .pz-hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 17px;
    }

    .pz-hero-features {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .pz-hero-cta {
        justify-content: center;
    }

    .pz-menu {
        display: none;
    }

    /* ChatBot responsive */
    .pz-chatbot-demo {
        max-width: 90%;
        margin: 0 auto;
    }

    .pz-chat-messages {
        min-height: 300px;
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .pz-hero {
        padding: 110px 3% 40px;
        min-height: auto;
    }

    .pz-hero-container {
        gap: 1.5rem;
        padding: 0;
    }

    .pz-hero-content h1 {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .pz-hero-content p {
        font-size: 15px;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .pz-section-title h2 {
        font-size: 26px;
    }

    .pz-feature-badge {
        font-size: 11px;
        padding: 7px 11px;
        gap: 0.35rem;
    }

    .pz-feature-badge i {
        font-size: 14px;
    }

    .pz-hero-features {
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }

    /* ChatBot mobile */
    .pz-chatbot-demo {
        max-width: 95%;
        margin: 0 auto;
        border-radius: 18px;
    }

    .pz-chat-header {
        padding: 12px;
    }

    .pz-chat-avatar {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .pz-chat-info h4 {
        font-size: 13px;
    }

    .pz-chat-info span {
        font-size: 10px;
    }

    .pz-chat-messages {
        padding: 12px;
        min-height: 260px;
        max-height: 260px;
    }

    .pz-message p {
        font-size: 12px;
        padding: 8px 11px;
    }

    .pz-bot-item {
        font-size: 11px;
        padding: 7px 10px;
        margin: 5px 0;
    }

    .pz-typing-indicator {
        padding: 9px 12px;
    }

    .pz-typing-dot {
        width: 6px;
        height: 6px;
    }

    .pz-btn-hero-primary {
        font-size: 15px;
        padding: 13px 28px;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== DEMO STORES SECTION ===== */
.pz-demo-stores {
    background: #ffffff;
}

.pz-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pz-demo-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #F3F4F6;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pz-demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(249, 115, 22, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.pz-demo-card:hover::before {
    opacity: 1;
}

.pz-demo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.15);
    border-color: #DC2626;
}

.pz-demo-card > * {
    position: relative;
    z-index: 1;
}

.pz-demo-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.pz-demo-card:hover h4 {
    transform: scale(1.05);
}

.pz-demo-card p {
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pz-demo-card:hover p {
    color: #DC2626;
}

/* Animação da imagem */
.pz-demo-card img {
    transition: transform 0.4s ease;
}

.pz-demo-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive */
@media (max-width: 768px) {
    .pz-demo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pz-demo-card {
        padding: 30px;
    }
}
