/**
 * marketing.css — CSS compartilhado para páginas de marketing do TrampoPro
 * Cobre: nav, footer, buttons, utilitários. Não inclui seções específicas da landing.
 */

/* ── VARIÁVEIS ─────────────────────────────────────────────────────────────── */
:root {
    --ink:        #09090B;
    --ink-2:      #3F3F46;
    --ink-3:      #71717A;
    --ink-4:      #A1A1AA;
    --surface:    #F8FAFF;
    --border:     #E4E4E7;
    --white:      #FFFFFF;
    --blue:       #2563EB;
    --blue-dark:  #2980B9;
    --blue-light: #EAF4FB;
    --blue-mid:   #AED6F1;
    --emerald:    #10B981;
    --amber:      #F59E0B;
    --red:        #EF4444;
    --radius-sm:  8px;
    --radius:     16px;
    --shadow:     0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.09), 0 4px 12px rgba(0,0,0,.05);
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: 'Inter', sans-serif; background: var(--surface); color: var(--ink);
        overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
img   { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track  { background: var(--surface); }
::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 10px; }

/* ── UTILIDADES ────────────────────────────────────────────────────────────── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--ink-3); }
.text-sm    { font-size: 14px; }
.text-xs    { font-size: 12px; }
.font-bold  { font-weight: 700; }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 100px;
}
.tag-blue { background: var(--blue-mid); color: var(--blue); }

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
    cursor: pointer; border: none; text-decoration: none;
    transition: all .2s cubic-bezier(.4,0,.2,1); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px);
                     box-shadow: 0 6px 20px rgba(52,152,219,.30); }
.btn-ghost   { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--white); }
.btn-white   { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 16px; font-weight: 600; border-radius: 10px; }

/* ── HEADER / NAV ──────────────────────────────────────────────────────────── */
header.mkt-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    background: rgba(248,250,255,.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
header.mkt-header.scrolled { border-color: var(--border); }

header.mkt-header nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 66px;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800;
    color: var(--ink); text-decoration: none; letter-spacing: -.02em;
}
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px; background: var(--blue);
    display: flex; align-items: center; justify-content: center;
}
.logo-mark span { color: var(--white); font-size: 17px; font-weight: 900;
                  font-family: 'Plus Jakarta Sans', sans-serif; }

.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-center a {
    padding: 7px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--ink-2);
    transition: all .15s;
}
.nav-center a:hover, .nav-center a.active { background: var(--blue-light); color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-link-login { font-size: 14px; font-weight: 500; color: var(--ink-2);
                  text-decoration: none; padding: 7px 14px; transition: color .15s; }
.nav-link-login:hover { color: var(--ink); }

/* Mobile nav */
.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink-2); border-radius: 2px; }

.mobile-nav {
    display: none; flex-direction: column; gap: 4px;
    position: fixed; top: 66px; left: 0; right: 0; z-index: 998;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a  { padding: 11px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
                 color: var(--ink-2); transition: background .15s; }
.mobile-nav a:hover { background: var(--surface); color: var(--ink); }
.mobile-nav-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

@media (max-width: 768px) {
    .nav-center, .nav-right { display: none; }
    .hamburger { display: flex; }
}

/* ── PAGE BODY OFFSET ──────────────────────────────────────────────────────── */
.page-body { padding-top: 66px; }

/* ── SEÇÃO GENÉRICA ────────────────────────────────────────────────────────── */
.mkt-section { padding: 80px 0; }
.mkt-section.alt { background: var(--white); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag { margin-bottom: 14px; display: inline-flex; }
.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 4vw, 42px);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
    color: var(--ink); margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--ink-3); line-height: 1.65; }

/* ── CARDS GENÉRICOS ───────────────────────────────────────────────────────── */
.cards-grid { display: grid; gap: 24px; }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--blue-light); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px;
           font-weight: 700; margin-bottom: 10px; }
.card p  { color: var(--ink-3); line-height: 1.65; font-size: 15px; }

/* Steps */
.steps { display: grid; gap: 0; }
.step  { display: flex; gap: 24px; align-items: flex-start; padding: 32px 0;
         border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--blue); color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px;
                   font-weight: 700; margin-bottom: 8px; }
.step-content p  { color: var(--ink-3); line-height: 1.65; }

/* Tabs (como funciona) */
.tabs { display: flex; gap: 8px; margin-bottom: 40px; justify-content: center; }
.tab-btn {
    padding: 10px 24px; border-radius: 100px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: 1.5px solid var(--border); background: var(--white);
    color: var(--ink-3); transition: all .15s;
}
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* CTA final */
.cta-final {
    background: var(--blue); color: var(--white);
    padding: 80px 0; text-align: center;
}
.cta-final h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(24px, 3.5vw, 40px);
                font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.cta-final p  { font-size: 17px; opacity: .85; margin-bottom: 36px; }
.cta-final .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FORMULÁRIO ────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600;
              color: var(--ink-2); margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 15px; font-family: 'Inter', sans-serif;
    background: var(--white); color: var(--ink); transition: border-color .15s;
    outline: none;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }

.alert-success {
    background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46;
    padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px;
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.alert-error {
    background: #FEE2E2; border: 1px solid #FCA5A5; color: #991B1B;
    padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px;
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
footer.mkt-footer {
    background: #0A0A0F; color: rgba(255,255,255,.65);
    padding-top: 64px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
              padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 240px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6); transition: all .2s;
}
.social-btn:hover { background: rgba(255,255,255,.14); color: var(--white); }
.social-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.footer-col h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px;
                 font-weight: 700; color: var(--white); letter-spacing: .04em;
                 text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 12px; }
.footer-col a   { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--white); }

footer.mkt-footer .logo { color: var(--white); }

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .cards-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .cards-grid.cols-3, .cards-grid.cols-2 { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .tabs { flex-wrap: wrap; }
    .mkt-section { padding: 56px 0; }
    .cta-final { padding: 56px 0; }
}
