:root {
    /* Branding Potencializa PSI (azul + dourado) */
    --primary: #0b2d45;   /* azul profundo */
    --secondary: #f4ebd9; /* base quente clara */
    --accent: #c69c53;    /* dourado */

    --bg: #f6f7fa;
    --text: #0f172a;
    --muted: #475569;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Layout base */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-small {
    max-width: 520px;
}

.section {
    padding: 4rem 0;
}

.section-subtitle {
    color: var(--muted);
    max-width: 640px;
    margin-top: 0.5rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 247, 248, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.logo-text {
    font-size: 1rem;
}

.nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.25rem 0;
}

.nav a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
}

/* Hero */
.hero {
    position: relative;
    padding: 5rem 0 6.5rem;
    background: radial-gradient(circle at top left, var(--secondary), var(--bg));
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(198, 156, 83, 0.14), transparent 60%),
                radial-gradient(circle at 90% 10%, rgba(11, 45, 69, 0.12), transparent 55%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 3vw + 1.2rem, 3.3rem);
    margin-bottom: 1rem;
    color: #111827;
}

.hero p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cards flutuando */
.hero-cards {
    position: relative;
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(11, 45, 69, 0.08);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.card-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(11, 45, 69, 0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(11, 45, 69, 0.28);
}

.btn-outline {
    background: transparent;
    border-color: rgba(11, 45, 69, 0.25);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(198, 156, 83, 0.06);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

/* Grid utilitários */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

/* Box */
.box {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* CTA */
.cta {
    background: var(--accent);
    color: var(--white);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Loja */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.produto-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.produto-preco {
    font-weight: 600;
    color: var(--accent);
}

.produto-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.produto-detalhe {
    max-width: 720px;
}

/* Formulários */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.7rem 0.9rem;
    font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(198, 156, 83, 0.28);
    border-color: rgba(198, 156, 83, 0.45);
}

.form-link {
    font-size: 0.9rem;
}

.form-link a {
    color: var(--accent);
}

/* Alertas */
.alert {
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    position: relative;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}

.alert-close {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}

/* Listas */
.lista-simples {
    padding-left: 1.1rem;
}

.lista-simples li {
    margin-bottom: 0.35rem;
}

.lista-artigos article {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: rgba(248, 250, 252, 0.9);
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem 1.5rem 2rem;
}

.site-footer h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.site-footer p,
.site-footer li {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 1);
}

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

.site-footer a {
    color: rgba(191, 219, 254, 1);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 1);
    padding: 0.75rem 0;
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 960px) {
    .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-produtos {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .header-container {
        padding-inline: 1rem;
    }

    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
