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

:root {
    /* Paleta de cores profissional e institucional */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --accent-color: #dc2626;
    --accent-light: #ef4444;
    
    /* Cores neutras */
    --dark-color: #1f2937;
    --dark-secondary: #374151;
    --text-color: #111827;
    --text-secondary: #6b7280;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bordas e sombras */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    background: #f3f4f6;
    min-height: 100vh;
    color: var(--text-color);
    padding: var(--spacing-md);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

/* Header profissional */
header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

main {
    flex: 1;
}

/* Grid de menu profissional */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.menu-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.menu-card:hover::before {
    transform: scaleX(1);
}

.menu-card .icon {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transition: all 0.3s ease;
}

.menu-card:hover .icon {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: scale(1.05);
}

.menu-card .icon i {
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.menu-card:hover .icon i {
    color: var(--white);
}

.menu-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-color);
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.menu-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Footer profissional */
footer {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin-bottom: var(--spacing-xs);
}

footer p:first-child {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

footer p:not(:first-child):not(:last-child) {
    font-size: 0.8125rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.footer-credits {
    margin-top: var(--spacing-md);
    font-size: 0.8125rem;
    opacity: 0.7;
}

.footer-credits a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-credits a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Páginas de conteúdo */
.content-page {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.back-button:hover {
    color: var(--primary-dark);
    background: #eff6ff;
    transform: translateX(-2px);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.page-title i {
    color: var(--primary-color);
}

.content-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.content-item {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.content-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    background: var(--white);
}

.content-item h3 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.content-item h3 i {
    color: var(--primary-color);
}

.content-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.content-item .meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
    margin-top: var(--spacing-sm);
}

.audio-player {
    width: 100%;
    max-width: 600px;
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius-sm);
}

.youtube-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    background: #000;
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: var(--text-secondary);
}

.empty-state .icon {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state .icon i {
    color: var(--primary-color);
    opacity: 0.6;
    font-size: 4rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Estilos para ícones */
.ph {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* Animação de spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ph-spin {
    animation: spin 1s linear infinite;
}

/* Botões profissionais */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    letter-spacing: -0.01em;
    font-family: inherit;
}

.btn i {
    line-height: 1;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-danger {
    background: var(--accent-color);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--accent-light);
}

.btn-success {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-success:hover {
    background: var(--secondary-dark);
}

/* Admin styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.admin-header {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    background: var(--white);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.tab-button {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.tab-button:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--white);
}

.form-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.items-list {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.item-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.item-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.item-card h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.item-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.item-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.login-container {
    max-width: 420px;
    margin: 100px auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.login-container h1 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.875rem;
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 0.9375rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Telefones úteis */
.telefones-container {
    max-width: 800px;
    margin: 0 auto;
}

.telefones-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.telefones-section h2 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.telefone-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.telefone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.telefone-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.telefone-info {
    flex: 1;
}

.telefone-info h3 {
    color: var(--dark-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.telefone-numero {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.telefone-descricao {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

.whatsapp-btn,
.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.call-btn {
    background: var(--primary-color);
    color: var(--white);
}

.call-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.whatsapp-btn i,
.call-btn i {
    font-size: 1.25rem;
}

/* Tipografia melhorada */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    font-weight: 600;
    line-height: 1.2;
}

p, span, div, label {
    font-weight: 400;
}

strong, b {
    font-weight: 600;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    body {
        padding: var(--spacing-sm);
        font-size: 15px;
    }

    header {
        margin-bottom: var(--spacing-xl);
        padding: var(--spacing-lg) 0;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .menu-card {
        padding: var(--spacing-lg);
        min-height: 160px;
    }

    .menu-card .icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--spacing-sm);
    }

    .menu-card .icon i {
        font-size: 2rem;
    }

    .menu-card h2 {
        font-size: 1rem;
    }

    .menu-card p {
        font-size: 0.8125rem;
    }

    .content-page {
        padding: var(--spacing-lg);
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-lg);
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .content-item {
        padding: var(--spacing-lg);
    }

    .content-item h3 {
        font-size: 1.125rem;
    }

    .back-button {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-md);
    }

    .admin-header {
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .admin-tabs {
        flex-wrap: wrap;
        padding: var(--spacing-sm);
    }

    .tab-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .telefones-section {
        padding: var(--spacing-lg);
    }

    .telefones-section h2 {
        font-size: 1.25rem;
    }

    .telefone-item {
        padding: var(--spacing-md);
        flex-wrap: wrap;
    }

    .telefone-info h3 {
        font-size: 1rem;
    }

    .telefone-numero {
        font-size: 1rem;
    }

    .whatsapp-btn,
    .call-btn {
        width: 44px;
        height: 44px;
        margin-top: var(--spacing-sm);
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
