/* ===== Tecnare — site institucional ===== */

:root {
    --tc-primary: #0e7490;
    --tc-primary-dark: #155e75;
    --tc-primary-darker: #164e63;
    --tc-accent: #22d3ee;
    --tc-dark: #0f172a;
    --tc-gray: #64748b;
    --tc-light: #f1f5f9;
}

body {
    font-family: 'Source Sans 3 Variable', 'Segoe UI', system-ui, sans-serif;
    color: var(--tc-dark);
}

/* Navbar — logo clara: fundo sempre escuro/teal (nunca branco) */
.tc-navbar {
    transition: background-color .3s ease, box-shadow .3s ease;
    padding-top: .9rem;
    padding-bottom: .9rem;
    /* Afasta logo e hamburger das bordas (e do notch do iPhone) */
    padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
    z-index: 1040;
}

/* Ao rolar: mesma altura, fundo teal sólido para a logo continuar visível */
.tc-navbar.scrolled,
.tc-navbar.navbar-solid {
    background-color: var(--tc-primary-darker) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .28);
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.tc-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -.5px;
}

.tc-navbar .navbar-brand span { color: var(--tc-accent); }

.tc-navbar .nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    margin: 0 .25rem;
}

.tc-navbar .nav-link:hover { color: var(--tc-accent); }

.tc-navbar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: .6rem;
    padding: .5rem .7rem;
    margin-right: .15rem;
}

.tc-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(34, 211, 238, .35);
}

.tc-navbar .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Menu mobile: painel branco; a barra sobre o hero continua transparente até rolar */
@media (max-width: 991.98px) {
    .tc-navbar .container {
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .tc-navbar .navbar-collapse {
        background: #fff;
        margin: .75rem 0 0;
        padding: .5rem .85rem 1rem;
        border-radius: 1rem;
        box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
        border: 1px solid #e2e8f0;
    }

    .tc-navbar .navbar-nav {
        width: 100%;
    }

    .tc-navbar .nav-item {
        border-bottom: 1px solid #f1f5f9;
    }

    .tc-navbar .nav-item:last-child {
        border-bottom: none;
    }

    .tc-navbar .nav-link {
        margin: 0;
        padding: .85rem .5rem;
        color: var(--tc-dark);
    }

    .tc-navbar .nav-link:hover {
        color: var(--tc-primary);
    }

    .tc-navbar .nav-item .btn-tc {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: .35rem;
    }
}

/* Hero */
.tc-hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(34, 211, 238, .25), transparent 60%),
        linear-gradient(135deg, var(--tc-primary-darker) 0%, var(--tc-primary-dark) 55%, var(--tc-primary) 100%);
    color: #fff;
    padding: 11rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.tc-hero h1 {
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
}

.tc-hero .lead {
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
}

.tc-hero .hero-badge {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50rem;
    padding: .35rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.tc-hero-art {
    font-size: 13rem;
    opacity: .12;
    position: absolute;
    right: 4%;
    bottom: -2rem;
    transform: rotate(-8deg);
}

/* Botões */
.btn-tc {
    background: var(--tc-accent);
    color: var(--tc-primary-darker);
    font-weight: 700;
    border: none;
    padding: .75rem 1.75rem;
    border-radius: .6rem;
}

.btn-tc:hover { background: #67e8f9; color: var(--tc-primary-darker); }

.btn-tc-outline {
    border: 2px solid rgba(255, 255, 255, .6);
    color: #fff;
    font-weight: 700;
    padding: .7rem 1.6rem;
    border-radius: .6rem;
}

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

/* Stats */
.tc-stats {
    margin-top: -3.5rem;
    position: relative;
    z-index: 5;
}

.tc-stats .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, .12);
}

.tc-stats .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tc-primary);
}

.tc-stats .stat-label {
    color: var(--tc-gray);
    font-weight: 600;
    font-size: .9rem;
}

/* Seções */
.tc-section { padding: 5.5rem 0; }

.tc-section-title {
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    letter-spacing: -.5px;
}

.tc-kicker {
    color: var(--tc-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .85rem;
}

/* Cards de serviço */
.tc-service-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    background: #fff;
}

.tc-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(14, 116, 144, .15);
    border-color: var(--tc-primary);
}

.tc-service-icon {
    width: 60px;
    height: 60px;
    border-radius: .9rem;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.tc-service-card h5 { font-weight: 700; }
.tc-service-card p { color: var(--tc-gray); margin-bottom: 0; }

/* Como funciona (portal) */
.tc-steps { background: var(--tc-light); }

.tc-step {
    text-align: center;
    padding: 1rem;
}

.tc-step .step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--tc-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tc-step h6 { font-weight: 700; }
.tc-step p { color: var(--tc-gray); font-size: .95rem; }

/* Sobre */
.tc-about-check li {
    margin-bottom: .75rem;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
}

.tc-about-check i { color: var(--tc-primary); font-size: 1.15rem; }

.tc-about-panel {
    background: linear-gradient(135deg, var(--tc-primary-darker), var(--tc-primary));
    border-radius: 1.25rem;
    color: #fff;
    padding: 3rem;
}

/* Contato */
.tc-contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tc-contact-item .ci-icon {
    width: 46px;
    height: 46px;
    border-radius: .75rem;
    background: rgba(14, 116, 144, .1);
    color: var(--tc-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tc-form .form-control {
    border-radius: .6rem;
    padding: .7rem 1rem;
    border-color: #e2e8f0;
}

.tc-form .form-control:focus {
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 .2rem rgba(14, 116, 144, .15);
}

/* CTA final */
.tc-cta {
    background: linear-gradient(135deg, var(--tc-primary-darker), var(--tc-primary));
    color: #fff;
    border-radius: 1.25rem;
}

/* Footer */
.tc-footer {
    background: var(--tc-dark);
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
}

.tc-footer a { color: #cbd5e1; text-decoration: none; }
.tc-footer a:hover { color: var(--tc-accent); }
.tc-footer .brand { color: #fff; font-weight: 800; font-size: 1.4rem; }
.tc-footer .brand span { color: var(--tc-accent); }

/* WhatsApp flutuante */
.tc-whats {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .2s ease;
}

.tc-whats:hover { transform: scale(1.08); color: #fff; }
