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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Work Sans', 'Segoe UI', Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2937;
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: relative;
    background: linear-gradient(135deg, #056070, #2C8994);
    color: #fff;
    padding: 44px 0;
    text-align: center;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.header-logo {
    height: 56px;
    width: auto;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.92;
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.98rem;
}

.header-qrcode {
    position: relative;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.header-qrcode span {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #1f2937;
}

.section-title {
    text-align: center;
    padding-top: 48px;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-title p {
    color: #6b7280;
    font-size: 0.98rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 28px 0 48px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-inner {
        gap: 20px;
    }

    .header {
        padding: 32px 0;
    }
}

.card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: card-in 0.5s ease forwards;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(5, 96, 112, 0.18);
}

.card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.card:hover .card-img img {
    transform: scale(1.06);
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(5, 96, 112, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(2px);
}

.card-body {
    padding: 18px 20px 22px;
}

.card-body h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

@keyframes card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.24s; }
.card:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.card-body p {
    font-size: 0.92rem;
    color: #4b5563;
    margin-bottom: 14px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-interesse-card {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #056070;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-interesse-card:hover {
    background: #03414A;
}

.btn-visualizar-card {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #056070;
    border-radius: 6px;
    background: #fff;
    color: #056070;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-visualizar-card:hover {
    background: #eef2ff;
    text-decoration: none;
}

.footer {
    background: #0b3138;
    color: #cbd5e1;
    padding: 36px 0;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 10px;
    opacity: 0.95;
}

.footer p {
    font-size: 0.85rem;
}

.admin-link {
    display: inline-block;
    margin-top: 8px;
    color: #93a3af;
    font-size: 0.8rem;
    text-decoration: none;
}

.admin-link:hover {
    color: #4dd7e6;
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 1100px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content-sm {
    max-width: 420px;
}

#modalInteresseTitulo {
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-right: 20px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.modal-close:hover {
    color: #1f2937;
}

#modalTitulo {
    margin-bottom: 6px;
    font-size: 1.4rem;
}

#modalDescricao {
    color: #4b5563;
    margin-bottom: 20px;
}

.lightbox {
    position: relative;
    background: #111827;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.lightbox img {
    width: 100%;
    height: 70vh;
    max-height: 720px;
    object-fit: contain;
    display: block;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.thumbs img {
    width: 96px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.thumbs img:hover {
    opacity: 0.9;
}

.thumbs img.active {
    opacity: 1;
    border-color: #056070;
}

.alerta {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alerta-sucesso {
    background: #dcfce7;
    color: #166534;
}

.form-interesse {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-interesse label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: #374151;
}

.form-interesse input {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-interesse-enviar {
    margin-top: 4px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #16a34a;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-interesse-enviar:hover {
    background: #15803d;
}
