/* ===== HUB-Cidades — Landing Institucional =====
   Tokens institucionais consumidos do Design System (ds/).
   Os aliases locais (--bg, --fg, --accent, --line, --muted) são MAPEAMENTOS
   sobre os tokens DS — para alterar paleta, edite ds/tokens/colors.css.
   ============================================================================ */

@import url("/ds/tokens/index.css");

:root {
    /* aliases locais → tokens DS */
    --bg:          var(--bg-surface);
    --bg-alt:      var(--bg-body);
    --fg:          var(--text-primary);
    --muted:       var(--text-secondary);
    --line:        var(--border-light);
    --accent:      var(--primary-500);
    --accent-2:    var(--success-500);
    --accent-soft: var(--primary-50);
    --warn:        var(--warning-600);
    --danger:      var(--danger-600);
    --shadow:      var(--shadow-sm);
    --shadow-lg:   var(--shadow-lg);
    --radius:      var(--radius-lg);
}
[data-theme="dark"] {
    /* dark theme \u00e9 herdado do DS automaticamente \u2014 nada a fazer aqui */
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--bg); color: var(--fg);
    font-family: var(--font-family);
    line-height: 1.6; font-size: 15px;
    scroll-behavior: smooth;
}
a { color: var(--accent); text-decoration: none; }

/* ============ TOPBAR ============ */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .topbar { background: rgba(15,17,21,.92); }
.topbar-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 12px 24px;
    display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.brand-logo { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 700; }
.brand-text span { font-size: 11px; color: var(--muted); }
.topbar-nav { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.topbar-nav a {
    padding: 8px 14px; color: var(--fg); font-size: 14px;
    border-radius: 8px; transition: all .15s;
}
.topbar-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.btn-console {
    background: var(--accent) !important; color: #fff !important;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px !important; font-weight: 600;
}
.btn-console:hover { background: #082f70 !important; color: #fff !important; }
.theme-toggle {
    background: transparent; border: 1px solid var(--line);
    border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--fg);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ============ HERO ============ */
.hero {
    position: relative; overflow: hidden;
    padding: 80px 24px 70px;
    text-align: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(11,61,145,.08), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(10,125,60,.06), transparent 50%);
    z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .15em;
    font-size: 11px; color: var(--accent); font-weight: 700;
    background: var(--accent-soft); padding: 4px 12px; border-radius: 999px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1; margin: 0 0 20px; font-weight: 800;
    letter-spacing: -.02em;
}
.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--muted); max-width: 660px; margin: 0 auto 32px;
}
.hero-cta {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 50px;
}
.btn-primary {
    background: var(--accent); color: #fff;
    padding: 12px 24px; border-radius: 10px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-lg); transition: transform .15s;
    border: none; cursor: pointer; font-size: 15px;
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-secondary {
    background: var(--bg); color: var(--fg);
    padding: 12px 24px; border-radius: 10px; font-weight: 600;
    border: 1px solid var(--line); display: inline-flex; align-items: center;
    gap: 8px; transition: all .15s; font-size: 15px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; max-width: 720px; margin: 0 auto;
    padding-top: 40px; border-top: 1px solid var(--line);
}
.hero-stats > div { text-align: center; }
.hero-stats strong {
    display: block; font-size: clamp(22px, 3vw, 32px);
    color: var(--accent); font-weight: 800;
}
.hero-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============ SECTIONS ============ */
.section {
    max-width: 1200px; margin: 0 auto;
    padding: 80px 24px;
}
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    margin: 12px 0 16px; font-weight: 800; letter-spacing: -.02em;
}
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 16px; }

/* ============ TABS ============ */
.tabs {
    display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 36px; padding: 6px; background: var(--bg-alt);
    border-radius: 12px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.tab {
    background: transparent; border: none; padding: 10px 20px;
    border-radius: 8px; cursor: pointer; font-size: 14px;
    color: var(--muted); font-weight: 600; transition: all .15s;
}
.tab:hover { color: var(--fg); }
.tab.active { background: var(--bg); color: var(--accent); box-shadow: var(--shadow); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ SERVICES GRID ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.service-card {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
    color: var(--fg); transition: all .2s;
    position: relative; display: block;
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.service-card.available { border-left: 3px solid var(--accent-2); }
.service-icon { display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: 12px; color: var(--primary-500); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
    margin: 0 0 8px; font-size: 17px; font-weight: 700;
    color: var(--fg);
}
.service-card p {
    margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.service-tag {
    display: inline-block; margin-top: 14px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; padding: 3px 10px; border-radius: 999px;
}
.service-tag.disponivel { background: rgba(10,125,60,.12); color: var(--accent-2); }
.service-tag.em-breve { background: rgba(194,113,12,.12); color: var(--warn); }

/* ============ RIPTU BANNER ============ */
.riptu-banner {
    display: grid; grid-template-columns: 1.3fr 1fr;
    gap: 60px; align-items: center;
    padding: 60px 24px;
}
@media (max-width: 800px) {
    .riptu-banner { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
}
.riptu-text h2 { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 18px; font-weight: 800; }
.riptu-text p { font-size: 16px; color: var(--muted); margin-bottom: 22px; }
.riptu-features {
    list-style: none; padding: 0; margin: 0 0 28px;
}
.riptu-features li {
    padding: 8px 0; color: var(--fg); font-size: 14.5px;
}
.riptu-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.riptu-visual { display: flex; justify-content: center; }
.book-stack {
    position: relative; width: 220px; height: 280px;
}
.book {
    position: absolute; width: 180px; padding: 50px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; border-radius: 6px;
    box-shadow: var(--shadow-lg);
    font-weight: 700; text-align: center; font-size: 17px;
    transition: transform .3s;
}
.book-1 { top: 0; left: 0; transform: rotate(-6deg); }
.book-2 { top: 30px; left: 30px; transform: rotate(0deg); background: linear-gradient(135deg, #0a7d3c, #0b3d91); }
.book-3 { top: 60px; left: 60px; transform: rotate(6deg); }
.book-4 {
    top: 100px; left: 20px; padding: 30px 20px;
    background: var(--bg); color: var(--accent);
    border: 2px dashed var(--accent); font-size: 13px;
    box-shadow: none;
}

/* ============ FEATURES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature {
    padding: 28px 24px; background: var(--bg-alt);
    border-radius: var(--radius); border: 1px solid var(--line);
}
.feature-icon { display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 14px; color: var(--primary-500); }
.feature-icon svg { width: 100%; height: 100%; }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-alt); border-top: 1px solid var(--line);
    padding: 50px 24px 24px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 700px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
.footer-col strong { display: block; font-size: 15px; margin-bottom: 14px; color: var(--fg); }
.footer-col a, .footer-col p {
    display: block; padding: 4px 0; color: var(--muted);
    font-size: 13.5px; margin: 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1200px; margin: 30px auto 0;
    padding-top: 20px; border-top: 1px solid var(--line);
    text-align: center; color: var(--muted); font-size: 12.5px;
}
