:root {
    --primary: #c9a227;
    --primary-dark: #0f172a;
    --secondary: #e6c35c;
    --accent: #d4af37;
    --dark: #111827;
    --light: #f9fafb;
    --white: #ffffff;
    --gray: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Base UI */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--secondary); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: white; }
.btn-block { width: 100%; }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary-dark); font-size: 0.9rem; }

/* Login Page */
.login-page { background: radial-gradient(circle at top left, #f1f5f9, #cbd5e1); height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-box { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.login-header { text-align: center; margin-bottom: 30px; }
.login-logo { width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 15px; }
.login-header h2 { color: var(--primary-dark); margin-bottom: 5px; }
.login-header p { color: var(--gray); font-size: 0.9rem; }
.login-error { background: #fee2e2; color: #b91c1c; padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.login-footer { margin-top: 30px; text-align: center; color: var(--gray); font-size: 0.8rem; }

/* Admin Layout */
.admin-body { background-color: #f1f5f9; }
.admin-layout { display: flex; min-height: 100vh; }

.sidebar { width: 260px; background: var(--primary-dark); color: white; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-header { padding: 30px 20px; display: flex; align-items: center; gap: 12px; font-size: 1.25rem; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-nav { padding: 20px 15px; flex-grow: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: rgba(255,255,255,0.7); border-radius: 10px; margin-bottom: 5px; text-decoration: none; transition: 0.2s; font-size: 0.95rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: white; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 20px 0; }
.logout-link:hover { background: rgba(239, 68, 68, 0.1) !important; color: var(--danger) !important; }

.main-content { flex-grow: 1; padding: 40px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-header h1 { font-size: 1.75rem; color: var(--primary-dark); }
.date-now { color: var(--gray); font-weight: 500; }

/* Admin Cards & Widgets */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 25px; border-radius: 16px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stat-info h3 { font-size: 1.5rem; color: var(--primary-dark); }
.stat-info p { color: var(--gray); font-size: 0.85rem; font-weight: 500; }

.card { background: white; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 20px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-header h2 { font-size: 1.1rem; color: var(--primary-dark); display: flex; align-items: center; gap: 10px; }
.admin-form { padding: 30px; }

.alert { padding: 15px 20px; border-radius: 10px; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--success); }

/* Tables */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th { background: #f8fafc; padding: 15px; text-align: left; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); border-bottom: 1px solid var(--border); }
table td { padding: 15px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--primary-dark); }
.table-img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; background: #eee; }
.actions-cell { display: flex; gap: 10px; }
.btn-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: white; color: var(--gray); transition: 0.2s; cursor: pointer; }
.btn-icon:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-icon.delete:hover { border-color: var(--danger); color: var(--danger); }

/* Grid Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Public Site Styles (Original placeholders maintained) */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links li a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 999px;
    transition: width 0.2s ease;
}
.nav-links li a:hover {
    color: var(--secondary);
}
.nav-links li a:hover::after {
    width: 100%;
}
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.logo img{
margin-top: 10px;
height:75px;
width:auto;
}

.about-section {
    padding: 80px 0;
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    grid-template-areas:
        "text image"
        ". pills";
    gap: 40px;
    align-items: start;
}

.about-copy {
    grid-area: text;
}

.about-image {
    grid-area: image;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.about-highlights {
    grid-area: pills;
}

.about-copy p {
    font-size: 1rem;
    color: var(--gray);
    text-align: justify;
}

.about-highlights {
    display: grid;
    gap: 16px;
}

.about-pill {
    background: var(--white);
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-pill i {
    color: var(--secondary);
}

/* Base de botões e links para o mobile toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

.services-grid, .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card img {
    max-width: 80px;
    max-height: 80px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
}

.testimonials {
    padding: 80px 0;
    background: #f9fafb;
}

.testimonial-card {
    background: var(--white);
    border-radius: 18px;
    padding: 24px 22px 20px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.testimonial-quote {
    position: relative;
    padding-left: 4px;
    margin-bottom: 18px;
}

.quote-mark {
    font-size: 2.2rem;
    line-height: 1;
    color: rgba(148, 163, 184, 0.35);
    display: block;
    margin-bottom: -6px;
}

.testimonial-text {
    position: relative;
    font-size: 0.95rem;
    color: var(--gray);
    text-align: justify;
}

.testimonial-footer {
    position: relative;
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.4);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.author-company {
    font-size: 0.8rem;
    color: var(--gray);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    font-size: 0.8rem;
    color: #fbbf24;
}

.testimonial-rating .fa-star-o {
    color: #e5e7eb;
}

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 1000; }

/* Footer */
footer {
    background: #020617;
    color: rgba(226, 232, 240, 0.9);
    padding: 40px 0 24px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 32px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    padding-bottom: 24px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    color: #c9a227;
    margin-bottom: 6px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(209, 213, 219, 0.9);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c9a227;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #c9a227;
    transition: width 0.2s ease;
}

.footer-links a:hover {
    color: #e6c35c;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact-item,
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
}

.footer-contact-item i,
.footer-address i {
    margin-top: 2px;
    font-size: 0.95rem;
    color: #c9a227;
}

.footer-address {
    margin-top: 8px;
}

.footer-bottom {
    padding-top: 16px;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-bottom span {
    display: block;
}

section[id] {
    scroll-margin-top: 90px;
}

/* ==========================================================================
   TODAS AS REGRAS DE RESPONSIVIDADE (CONSOLIDADAS)
   ========================================================================== */

/* Regras gerais para sumir botão no desktop e mobile */
.nav-admin { display: none; }

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* 1. Layout Base Admin */
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .sidebar-nav { display: flex; overflow-x: auto; padding: 10px; }
    .sidebar-nav a { white-space: nowrap; margin-bottom: 0; }
    .sidebar-header, .sidebar-divider { display: none; }
    .main-content { padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .form-row, .form-grid-3 { grid-template-columns: 1fr; }

    /* 2. Menu de Navegação Site Público */
    header nav { height: 64px; }
    
    .nav-toggle-label {
        display: flex;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative;
        z-index: 1001;
        margin-left: auto;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        background: var(--primary-dark);
        height: 3px;
        width: 100%;
        position: absolute;
        left: 0;
        transition: all .3s ease;
        content: '';
    }

    .nav-toggle-label span { top: 50%; transform: translateY(-50%); }
    .nav-toggle-label span::before { top: -8px; }
    .nav-toggle-label span::after { top: 8px; }

    .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        gap: 16px;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
        display: none;
        z-index: 1000;
    }
    
    .nav-links li { text-align: center; margin: 10px 0; width: 100%; }

    /* Quando clicar no input invisível, mostra o menu nav-links */
    .nav-toggle:checked ~ .nav-links { display: flex; }
    header nav .btn { display: none; }

    /* Controle do link de Admin no Mobile */
    .nav-admin-desktop { display: none; }
    .nav-admin { display: block; margin-top: 10px; }
    .nav-admin a { font-weight: 600; }

    /* 3. Ajustes das Seções */
    .logo img { height: 55px; }

    .about-section { padding: 60px 0; }
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text"
            "pills";
        gap: 25px;
    }
    
    .about-image { justify-content: center; }
    .about-image img { max-width: 300px; }
    .about-copy { text-align: center; }
    .section-title { text-align: center; margin-bottom: 40px; }

    .testimonials { padding: 60px 0; }
    .testimonial-card { padding: 20px 18px 18px; }
    .testimonial-footer { flex-direction: column; align-items: flex-start; }

/* 4. Ajustes do Rodapé (Footer) para 1 coluna */
    .footer-content { 
        grid-template-columns: 1fr; /* Coloca tudo em 1 coluna */
        text-align: center;         /* Centraliza os textos */
        gap: 30px;
    }

    .footer-contact-item,
    .footer-address {
        justify-content: center;    /* Centraliza os ícones de contato */
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

}
