/* public/assets/css/main.css
   Redesign visual — inspirado no site institucional evolutize.com.br
   (fonte Barlow, roxo/verde-petróleo, botões pill, cards com sombra). */

:root {
    --color-primary: #423380;
    --color-primary-dark: #322863;
    --color-primary-light: #6952b3;
    --color-accent: #0b6156;
    --color-accent-dark: #084a42;
    --color-dark: #1e1e1e;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-tint: #f6f4fb;
    --color-border: #e7e3f2;
    --radius-pill: 9999px;
    --radius-card: 16px;
    --shadow-card: 0 10px 30px rgba(66, 51, 128, 0.08);
    --container-width: 1140px;
    --font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: 42px; color: var(--color-primary); }
h2 { font-size: 32px; }
h3 { font-size: 20px; color: var(--color-primary); }

p { margin: 0 0 16px; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

main.container { padding-top: 48px; padding-bottom: 64px; }

/* ---------- Botões ---------- */
.btn,
.btn-cta,
button[type="submit"] {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover,
.btn-cta:hover,
button[type="submit"]:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}
.btn-accent { background: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-outline {
    background: transparent;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff !important; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(30, 30, 30, 0.06);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-dark) !important;
    text-decoration: none !important;
}
.logo .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 45%, var(--color-accent) 100%);
    flex-shrink: 0;
    display: inline-block;
}
.site-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-header nav a:not(.btn-cta) {
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
}
.site-header nav a:not(.btn-cta):hover { color: var(--color-primary); }
.site-header .btn-cta { padding: 10px 24px; font-size: 13px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    display: block;
}

/* ---------- Hero (home) ---------- */
.hero {
    background: linear-gradient(180deg, var(--color-bg-tint) 0%, #fff 100%);
    padding: 64px 0 56px;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero-text { flex: 1 1 480px; }
.hero-text .eyebrow {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.hero-text h1 { margin-bottom: 18px; }
.hero-text p { font-size: 18px; color: var(--color-text-light); max-width: 520px; }
.hero-actions { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
    flex: 1 1 380px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    background: radial-gradient(circle at 30% 30%, var(--color-primary-light), var(--color-primary) 55%, var(--color-accent) 120%);
    position: relative;
    overflow: hidden;
    min-height: 260px;
}
.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.hero-visual::before { width: 220px; height: 220px; top: -60px; right: -60px; }
.hero-visual::after { width: 140px; height: 140px; bottom: -30px; left: -30px; }

/* ---------- Page header (páginas internas) ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 56px 0;
    margin-bottom: 8px;
}
.page-hero h1 { color: #fff; margin-bottom: 0; }
.page-hero .container main,
.page-hero + main.container { padding-top: 0; }

/* ---------- Cards / seções ---------- */
.section-tint { background: var(--color-bg-tint); }

.card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

/* ---------- Conteúdo CMS ---------- */
.page-content { line-height: 1.7; font-size: 17px; }
.page-content img { max-width: 100%; height: auto; border-radius: 12px; }
.page-content h2 { margin-top: 36px; }
.content-pending {
    color: var(--color-text-light);
    font-style: italic;
    background: var(--color-bg-tint);
    border-left: 3px solid var(--color-accent);
    padding: 16px 20px;
    border-radius: 8px;
}

/* ---------- Blog ---------- */
.home-recent-posts { margin-top: 56px; }
.home-recent-posts h2 { margin-bottom: 24px; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 12px 18px;
}
.post-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-dark);
    font-weight: 500;
    flex: 1;
}
.post-list a:hover { color: var(--color-primary); text-decoration: none; }
.post-date { color: var(--color-text-light); font-size: 13px; }
.post-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.post-cover { max-width: 100%; height: auto; border-radius: var(--radius-card); margin: 8px 0 28px; display: block; box-shadow: var(--shadow-card); }

article .post-date {
    display: inline-block;
    margin-bottom: 20px;
    background: var(--color-bg-tint);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

/* ---------- Formulários ---------- */
form label {
    display: block;
    margin-bottom: 18px;
    font-weight: 500;
    color: var(--color-dark);
    font-size: 14px;
}
form input,
form textarea,
form select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-text);
    background: #fff;
}
form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(66, 51, 128, 0.12);
}
form textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert-success { background: #e6f4ea; color: #1e7e34; }
.alert-error { background: #fce8e6; color: #c0392b; }
.alert-error li { margin-left: 18px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-dark);
    color: #b9b6c4;
    margin-top: 80px;
    padding: 48px 0 24px;
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top .logo { color: #fff !important; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); text-decoration: none; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #b9b6c4; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .hero .container { flex-direction: column; }
    .hero-visual { width: 100%; }
    h1 { font-size: 32px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-header nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px 24px 24px;
        box-shadow: 0 12px 20px rgba(30, 30, 30, 0.08);
        display: none;
    }
    .site-header nav.is-open { display: flex; }
    .site-header nav a:not(.btn-cta) { padding: 10px 0; width: 100%; }
    .site-header .btn-cta { margin-top: 8px; }
    .footer-top { flex-direction: column; align-items: flex-start; }
}
