/* ==========================================================================
   Taurus Hub — site institucional
   Estrutura e layout preservados do original; cores e tipografia migradas
   para os tokens do manual da marca (/assets/css/brand.css).
   ========================================================================== */

@import url('brand.css');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--fonte-marca);
    background-color: var(--bg-base);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--fonte-marca);
    color: var(--text-strong);
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Link para pular a navegação — só aparece com teclado. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: var(--taurus-tinta);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--r-sm);
    z-index: 2000;
    text-decoration: none;
    font-weight: 700;
}
.skip-link:focus { left: 16px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--line-soft);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* O estado "rolado" agora é uma classe, não estilo inline no JS. */
nav.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px var(--taurus-tinta-06);
}
nav.is-scrolled .nav-container { padding: 12px 0; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.3s ease;
    gap: 20px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: var(--t-sm);
    font-weight: 600;
    transition: color 0.25s;
}
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    background: var(--bg-base);
    padding: 10px 24px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-soft);
    color: var(--text-strong) !important;
}
.btn-nav:hover { background: var(--taurus-tinta); color: #fff !important; }

/* Botão do menu em telas pequenas */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-sm);
    width: 44px;
    height: 44px;
    color: var(--text-strong);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    padding: 200px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-glow-orb {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--taurus-azul-12) 0%, rgba(247, 248, 250, 0) 70%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--line-soft);
    color: var(--accent);
    border-radius: var(--r-pill);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 30px;
    box-shadow: var(--sombra-1);
}

.hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--taurus-tinta) 0%, var(--taurus-azul) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--taurus-azul); /* fallback */
}

.hero-content p {
    font-size: var(--t-md);
    margin: 0 auto 50px;
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 17px 38px;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-size: var(--t-base);
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
    background: var(--taurus-tinta);
    color: #fff;
    box-shadow: 0 10px 30px var(--taurus-tinta-10);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--taurus-azul);
    box-shadow: 0 15px 40px var(--taurus-azul-24);
}
.btn-primary i { margin-left: 8px; transition: transform 0.25s; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-secondary {
    background: transparent;
    color: var(--text-strong);
    border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--taurus-tinta-06); }

/* ==========================================================================
   PARCEIROS
   ========================================================================== */
.partners-band {
    padding: 60px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.partners-title {
    text-align: center;
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 30px;
}

.slider { overflow: hidden; position: relative; width: 100%; }
.slider::before,
.slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.slider::before { left: 0; background: linear-gradient(to right, var(--bg-surface), transparent); }
.slider::after { right: 0; background: linear-gradient(to left, var(--bg-surface), transparent); }

.slide-track {
    display: flex;
    width: calc(200px * 12);
    animation: scroll 35s linear infinite;
}
.slider:hover .slide-track { animation-play-state: paused; }

.slide { width: 200px; display: flex; align-items: center; justify-content: center; }
.slide img {
    max-width: 130px;
    max-height: 45px;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.4s, transform 0.4s;
    mix-blend-mode: multiply;
}
.slide img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

/* ==========================================================================
   NÚMEROS
   ========================================================================== */
.stats-section { padding: 100px 0; background: var(--bg-base); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-box h2,
.stat-box .plus {
    font-family: var(--fonte-dados);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.stat-box p {
    color: var(--text-strong);
    font-weight: 600;
    font-size: var(--t-sm);
}

/* ==========================================================================
   BENTO — ECOSSISTEMA
   ========================================================================== */
.bento-section { padding: 60px 0 120px; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

.bento-item {
    background-color: var(--bg-surface);
    border-radius: var(--r-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: var(--sombra-2);
    border: 1px solid var(--line-soft);
}
.bento-item:hover,
.bento-item:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--sombra-3);
}

.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 15%, rgba(255,255,255,0) 60%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.35s ease;
}
.bento-item:hover .bento-overlay,
.bento-item:focus-within .bento-overlay {
    background: linear-gradient(to top, rgba(255,255,255,1) 40%, rgba(255,255,255,0.6) 80%, transparent 100%);
}

.bento-item h3 {
    font-size: var(--t-lg);
    font-weight: 700;
    color: var(--text-strong);
    transform: translateY(20px);
    transition: transform 0.35s ease, margin 0.35s ease;
}
.bento-item.large h3 { font-size: var(--t-2xl); }
.bento-item:hover h3,
.bento-item:focus-within h3 { transform: translateY(0); margin-bottom: 8px; }

.service-desc {
    color: var(--text-body);
    font-size: var(--t-base);
    line-height: 1.45;
    font-weight: 500;
    max-width: 46ch;
    opacity: 0;
    max-height: 0;
    transform: translateY(15px);
    transition: opacity 0.35s ease, max-height 0.35s ease, transform 0.35s ease;
    overflow: hidden;
}
.bento-item:hover .service-desc,
.bento-item:focus-within .service-desc {
    opacity: 1;
    max-height: 160px;
    transform: translateY(0);
}

/* Em telas de toque não existe hover: o texto fica sempre visível. */
@media (hover: none) {
    .bento-item h3 { transform: none; margin-bottom: 8px; }
    .service-desc { opacity: 1; max-height: 160px; transform: none; }
    .bento-overlay { background: linear-gradient(to top, rgba(255,255,255,1) 45%, rgba(255,255,255,0.7) 85%, transparent 100%); }
}

/* Box Condomínios */
.bento-condo {
    display: block;
    text-decoration: none;
    background-color: var(--taurus-tinta);
    background-image: radial-gradient(circle at 85% 15%, var(--taurus-azul-24) 0%, transparent 62%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.bento-condo-skyline {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62%;
    height: 170px;
    background: url('../../condominios/assets/img/skyline-light.svg') right bottom / auto 170px no-repeat;
    opacity: 0.9;
    pointer-events: none;
}
.bento-condo .bento-overlay {
    background: linear-gradient(to right, rgba(0, 3, 25, 0.92) 45%, rgba(0, 3, 25, 0.35) 75%, rgba(0, 3, 25, 0) 100%);
}
.bento-condo:hover .bento-overlay,
.bento-condo:focus-within .bento-overlay {
    background: linear-gradient(to right, rgba(0, 3, 25, 0.95) 50%, rgba(0, 3, 25, 0.45) 80%, rgba(0, 3, 25, 0.05) 100%);
}
.bento-condo h3 { color: #fff; transform: translateY(0); margin-bottom: 8px; }
/* Neste box a descrição fica sempre visível — é a única com link próprio. */
.bento-condo .service-desc {
    color: #C9D3E4;
    opacity: 1;
    max-height: none;
    transform: none;
    max-width: 58%;
}
.bento-tag {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 5px 13px;
    font-size: var(--t-xs);
    font-weight: 700;
    margin-bottom: 12px;
}
.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #fff;
    font-weight: 700;
    font-size: var(--t-sm);
}
.bento-link i { transition: transform 0.25s; }
.bento-condo:hover .bento-link i { transform: translateX(4px); }

/* ==========================================================================
   CTA E RODAPÉ
   ========================================================================== */
.super-cta { padding: 80px 0; background: var(--bg-surface); border-top: 1px solid var(--line-soft); }

.cta-box {
    background: var(--taurus-tinta);
    border-radius: 26px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 30px 60px var(--taurus-tinta-10);
    margin-bottom: 60px;
    background-image: radial-gradient(circle at top right, var(--taurus-azul-24) 0%, transparent 60%);
}
.cta-box h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.cta-box p { font-size: var(--t-md); color: rgba(255, 255, 255, 0.72); margin: 0 auto 40px; max-width: 58ch; }

.cta-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.btn-massive {
    background: #1EA855;
    color: #fff;
    padding: 19px 46px;
    font-size: var(--t-base);
    font-weight: 700;
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: transform 0.25s, background 0.25s;
    box-shadow: 0 10px 30px rgba(30, 168, 85, 0.28);
}
.btn-massive:hover { transform: translateY(-4px); background: #188F47; color: #fff; }

.btn-email {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 19px 38px;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-size: var(--t-base);
    font-weight: 600;
    transition: background 0.25s;
}
.btn-email:hover { background: rgba(255, 255, 255, 0.2); }

.footer-bottom { text-align: center; }
.footer-logo { height: 46px; margin-bottom: 20px; filter: grayscale(100%); opacity: 0.55; }
.legal { font-size: var(--t-sm); color: var(--text-muted); }

/* ==========================================================================
   REVELAÇÃO NO SCROLL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Sem JS, nada pode ficar invisível. */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 26px;
    right: 26px;
    background-color: #1EA855;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 31px;
    box-shadow: 0 10px 25px rgba(30, 168, 85, 0.35);
    z-index: 100;
    transition: transform 0.25s;
}
.float-whatsapp:hover { transform: scale(1.08); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item.large,
    .bento-item.wide { grid-column: span 2; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .logo img { height: 56px; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--line-soft);
        box-shadow: var(--sombra-2);
        padding: 8px 5% 20px;
        display: none;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--line-soft); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; padding: 16px 0; font-size: var(--t-base); }
    .btn-nav { text-align: center; margin-top: 14px; }
}

@media (max-width: 768px) {
    .hero { padding: 140px 0 80px; }
    .bento-condo .service-desc { max-width: 100%; }
    .bento-condo-skyline { width: 100%; opacity: 0.45; }
    .stats-grid { grid-template-columns: 1fr; gap: 48px; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .bento-item.large,
    .bento-item.wide { grid-column: span 1; grid-row: span 1; }
    .cta-box { padding: 50px 22px; }
    .section-header { margin-bottom: 48px; }
}
