/* assets_site/site.css - Site institucional TEA Viver (mobile-first) */

:root {
    --primary: #7B9FD8;
    --primary-dark: #5f80c2;
    --secondary: #6cabc5;
    --accent: #da8125;
    --alert: #ff4757;
    --text-dark: #2c3e50;
    --text-muted: #6b7686;
    --bg-light: #ffffff;
    --bg-soft: #f4f7fc;
    --border: #e3e8f2;
    --radius: 14px;
    --shadow: 0 4px 16px rgba(45, 62, 110, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.55;
}

a { color: var(--primary-dark); }

img { max-width: 100%; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    text-decoration: none;
}

.site-logo img { height: 36px; width: auto; }

.site-nav {
    display: none;
    gap: 22px;
    align-items: center;
}

.site-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:hover { color: var(--primary-dark); }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
}

.btn-block { display: block; width: 100%; }

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

#site-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--border);
}
#site-mobile-nav.open { display: flex; }
#site-mobile-nav a {
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--bg-soft) 0%, #eef2fb 100%);
    padding: 48px 0 40px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero h1 {
    font-size: 1.9rem;
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--text-dark);
}

.hero p.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 22px;
}

.hero-cta { display: flex; flex-direction: column; gap: 12px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

.hero-image {
    text-align: center;
}
.hero-image img {
    max-width: 320px;
    border-radius: var(--radius);
}

/* ---------- Sections ---------- */
section { padding: 44px 0; }
section h2 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0 0 8px;
}
section p.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.feature-card i {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.bg-soft { background: var(--bg-soft); }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.plan-card {
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}
.plan-card.destaque {
    border-color: var(--primary);
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.plan-card h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.plan-price { font-size: 2rem; font-weight: 700; color: var(--text-dark); margin: 10px 0 2px; }
.plan-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.plan-equiv { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px; }
.plan-desconto {
    display: inline-block;
    background: #e9f7ee;
    color: #1f8a4c;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ---------- Trial banner ---------- */
.trial-banner {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}
.trial-banner h2 { color: #fff; }
.trial-banner p { color: rgba(255,255,255,0.9); }
.trial-banner .btn-primary { background: #fff; color: var(--primary-dark); }
.trial-banner .btn-primary:hover { background: #f0f0f0; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1f2733;
    color: #b7c0cf;
    padding: 34px 0 20px;
    font-size: 0.88rem;
}
.site-footer a { color: #dfe5ee; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}
.footer-copy { color: #7c8898; font-size: 0.8rem; margin-top: 14px; }

/* ---------- Forms (cadastro) ---------- */
.form-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.form-group input, .form-group select {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a1372c;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}
.form-success {
    background: #e9f7ee;
    border: 1px solid #bfe6cc;
    color: #1f8a4c;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: -10px; margin-bottom: 16px; }

/* ---------- Como funciona (steps) ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    counter-reset: step;
}
.step-card { text-align: center; padding: 0 10px; }
.step-number {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    margin: 0 auto 14px;
}
.step-card h3 { margin: 0 0 6px; font-size: 1rem; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-item summary {
    padding: 15px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-answer {
    padding: 0 18px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { text-align: left; font-size: 1.3rem; margin-top: 30px; }
.legal-content p, .legal-content li { color: var(--text-dark); font-size: 0.95rem; }
.legal-content .atualizado { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 30px; }

/* ---------- Desktop breakpoint ---------- */
@media (min-width: 860px) {
    .site-nav { display: flex; }
    .mobile-menu-toggle { display: none; }

    .hero .container { flex-direction: row; align-items: center; }
    .hero-text { flex: 1; }
    .hero-image { flex: 1; }
    .hero h1 { font-size: 2.6rem; }
    .hero-cta { flex-direction: row; }

    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing-grid { grid-template-columns: repeat(4, 1fr); }
    .steps-grid { grid-template-columns: repeat(4, 1fr); }
}
