/* ============================================================
   GT Smart Equity — Website público (estilo banco/financeira)
   Tokens da marca: docs/BRAND_STYLE_GUIDE.md / gtsmart-brand.css
   ============================================================ */

:root {
    --blue: #1E40AF;
    --navy: #0F2A6B;
    --navy-deep: #0A1E4F;
    --blue-light: #3B5BD9;
    --blue-pale: #E0E7FF;
    --ink: #111827;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --bg: #FFFFFF;
    --bg-subtle: #F9FAFB;
    --success: #10B981;
    --danger: #DC2626;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 42, 107, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* [hidden] deve vencer qualquer display do CSS (sem isso .card{display:flex} mostrava o card pessoal oculto) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 800; }
h2 { font-size: 32px; margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 17px; margin-bottom: 36px; max-width: 640px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue-pale); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 17px; width: 100%; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.header-logo img { height: 46px; display: block; }
.header-nav { display: flex; gap: 24px; flex: 1; }
.header-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.header-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-select {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 10px; font-family: inherit; font-weight: 700; font-size: 13px;
    color: var(--navy); background: #fff; cursor: pointer;
}
.nav-burger { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 100%);
    color: #fff;
    padding: 88px 0 76px;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-tagline { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 48px; margin-bottom: 18px; }
.hero-text p { font-size: 19px; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.75); font-weight: 600; }
.hero-logo img { width: 100%; max-width: 420px; display: block; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-subtle); }

/* ===== Cards (services) ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.card-featured {
    grid-column: 1 / -1;
    position: relative;
    border: none;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    padding: 38px 34px;
}
.card.card-featured h3 { color: #fff; font-size: 26px; }
.card.card-featured p { color: rgba(255,255,255,.88); font-size: 16.5px; max-width: 720px; }
.card.card-featured .card-icon { font-size: 40px; }
.card.card-featured .card-link { color: #fff; font-size: 16px; }
.featured-tag {
    position: absolute; top: 18px; right: 22px;
    background: rgba(255,255,255,.15); color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    font-size: 12px; font-weight: 700; letter-spacing: 1px;
    padding: 5px 14px; border-radius: 999px;
}
@media (max-width: 860px) { .featured-tag { position: static; display: inline-block; margin-bottom: 14px; } }
.card-icon { font-size: 34px; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card-link { margin-top: 18px; color: var(--blue); font-weight: 700; text-decoration: none; font-size: 15px; }
.card-link:hover { text-decoration: underline; }

/* ===== Packages ===== */
.pkg-title { font-size: 22px; margin: 44px 0 18px; }
.pkg-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.pkg-tag {
    display: inline-block; background: var(--blue-pale); color: var(--navy);
    font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
    vertical-align: middle; margin-left: 8px; letter-spacing: .5px;
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 14px; }
.step { text-align: center; padding: 0 12px; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--blue); color: #fff;
    font-size: 24px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Who we serve ===== */
.serve-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.serve-chips span {
    background: var(--blue-pale); color: var(--navy);
    font-weight: 600; font-size: 15px;
    padding: 10px 18px; border-radius: 999px;
}

/* ===== About ===== */
.about-box { text-align: center; }
.about-text { color: var(--text); font-size: 17px; line-height: 1.8; max-width: 700px; margin: 0 auto; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 6px; }
@media (max-width: 860px) { .about-stats { grid-template-columns: 1fr; gap: 28px; } }

/* ===== Testimonials ===== */
.testimonial-quote { font-style: italic; color: var(--text); font-size: 15px; line-height: 1.7; flex: 1; }
.testimonial-author { margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--navy); }

/* ===== FAQ ===== */
#faq details {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 12px; padding: 18px 22px;
}
#faq summary { font-weight: 700; cursor: pointer; color: var(--ink); font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--blue); font-size: 22px; font-weight: 800; }
#faq details[open] summary::after { content: '–'; }
#faq details p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ===== Apply form ===== */
.apply-section { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); }
.apply-section h2 { color: var(--ink); }
.apply-card {
    background: #fff; border-radius: 16px; padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-group label { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; font-family: inherit; font-size: 15px; color: var(--text);
    background: #fff; min-height: 46px;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.entity-hint {
    background: var(--blue-pale); color: var(--navy);
    border-radius: 8px; padding: 10px 14px; margin-top: 8px;
    font-size: 13px; font-weight: 600; line-height: 1.5;
}
.check-row {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 13px; color: var(--muted); margin: 4px 0 16px;
    cursor: pointer; line-height: 1.5;
}
.check-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.footer-legal-small { font-size: 11px; color: rgba(255,255,255,.5); max-width: 760px; }
.form-error {
    background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA;
    border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; font-weight: 600;
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.success-card { text-align: center; }
.success-emoji { font-size: 60px; margin-bottom: 12px; }
.success-card p { color: var(--muted); margin: 12px 0 24px; }

/* ===== Contact ===== */
.contact-box { text-align: center; }
.contact-box .section-sub { margin-left: auto; margin-right: auto; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 48px 0 36px; }
.footer-inner { text-align: center; }
.footer-logo { height: 72px; margin-bottom: 18px; border-radius: 8px; }
.footer-legal { font-size: 13px; max-width: 640px; margin: 0 auto 16px; line-height: 1.7; }
.footer-legal strong { color: #fff; }
.footer-links { font-size: 14px; margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.45); }

/* ===== Mobile ===== */
@media (max-width: 860px) {
    .header-nav { display: none; }
    .nav-burger { display: block; }
    .header-nav.open {
        display: flex; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 8px 24px 16px;
    }
    .header-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--bg-subtle); }
    .header-actions .btn-ghost { display: none; }
    .hero { padding: 56px 0 48px; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { font-size: 34px; }
    .hero-logo { order: -1; }
    .hero-logo img { max-width: 300px; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .apply-card { padding: 28px 20px; }
    h2 { font-size: 26px; }
    .section { padding: 52px 0; }
}
