/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #1e3c72;
    --primary-dark: #0f2748;
    --secondary: #ffd700;
    --secondary-dark: #e6c200;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== */
/* HEADER E MENU */
/* ==================== */

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo i {
    color: var(--secondary);
}

/* Botão Menu Hamburguer - Visível em telas menores que 992px */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu Desktop - Visível em telas maiores que 992px */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a.admin-link {
    background: var(--secondary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 25px;
}

.nav-menu a.admin-link:hover {
    background: var(--secondary-dark);
    color: var(--primary-dark);
}

/* Overlay para mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* ==================== */
/* MOBILE (até 992px) */
/* ==================== */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 25px 30px;
        margin: 0;
        gap: 0;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
        white-space: normal;
    }
    
    .nav-menu a.admin-link {
        background: var(--secondary);
        color: var(--primary);
        text-align: center;
        margin-top: 15px;
        border-radius: 10px;
        padding: 12px 20px;
    }
}

/* ==================== */
/* DESKTOP (acima de 992px) */
/* ==================== */
@media (min-width: 993px) {
    body {
        padding-top: 80px;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        transition: none;
    }
    
    .nav-menu.active {
        right: auto;
    }
}

/* ==================== */
/* HERO SECTION */
/* ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 100px 5% 80px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 5% 60px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* ==================== */
/* INFO SECTION */
/* ==================== */
.info-section {
    padding: 60px 5%;
    background: var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==================== */
/* SECTIONS */
/* ==================== */
.sections-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
}

.section-title h2 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-admin-action {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-admin-action:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title h2 {
        font-size: 1.2rem;
    }
    
    .btn-admin-action {
        width: 100%;
        text-align: center;
    }
}

/* ==================== */
/* ITEMS GRID */
/* ==================== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-content {
    padding: 1.2rem;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.item-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.whatsapp-contact {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 8px 16px;
    background: #25d366;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.whatsapp-contact:hover {
    background: #128C7E;
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* WHATSAPP FLOAT */
/* ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ==================== */
/* FOOTER */
/* ==================== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 5% 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
    }
}

/* ==================== */
/* MODAL E UTILITÁRIOS */
/* ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.loading {
    text-align: center;
    padding: 2rem;
}

.loading i {
    font-size: 2rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .info-card, .section-card {
    animation: fadeInUp 0.6s ease forwards;
}

.header.scrolled .navbar {
    padding: 0.7rem 5%;
}