:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --whatsapp: #25d366;
    --whatsapp-hover: #1ebd5a;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-lg: 16px;
    --radius-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

/* Navbar */
.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.brand-dot {
    color: var(--primary);
}

.brand-sub {
    color: var(--primary);
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visit-counter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.btn-contact-header {
    background: #007b89;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-contact-header:hover {
    background: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Hero Section Reformulada */
.hero {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 2.5rem auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05));
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Banner de Recursos do Painel Admin */
.system-features-banner {
    background: linear-gradient(135deg,  #1d4ed8 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.banner-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.banner-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.banner-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-icon {
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.2rem;
}

.feature-text p {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Controles: Busca e Filtros */
.controls-section {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.category-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pill-btn {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn:hover {
    background: #f1f5f9;
}

.pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.card:hover,
.card.selected {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb,
.card.selected .card-thumb {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.card-admin-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.card-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.card-highlight-item {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Área dos Botões */
.card-actions {
    display: flex;
    gap: 0.75rem;
    min-height: 48px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    margin-top: auto;
}

.card:hover .card-actions,
.card.selected .card-actions,
.card:focus-within .card-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    flex: 1;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
    padding: 0.75rem;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

@media (max-width: 640px) {
    .navbar-container { flex-direction: column; gap: 0.8rem; }
    .navbar-actions { width: 100%; justify-content: space-between; }
    .hero h1 { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}