/* ============================================================
   2bx — Rebranding v1.0
   Paleta: Laranja #EA580C / Hover #C2410C
   Neutras: #111111, #171717, #525252, #F5F5F5
   Tipografia: Inter (400 / 500 / 700 / 900)
   ============================================================ */

:root {
    --orange: #EA580C;
    --orange-dark: #C2410C;
    --black: #111111;
    --ink: #171717;
    --gray: #525252;
    --offwhite: #F5F5F5;
    --white: #FFFFFF;
    --border: #E5E5E5;
    --border-dark: rgba(255, 255, 255, 0.1);
    --radius: 2px;
    --nav-height: 76px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: var(--font);
    font-weight: 400;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
    width: min(1160px, 100% - 3rem);
    margin-inline: auto;
}

h1, h2, h3 { font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }

.highlight { color: var(--orange); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-lg { padding: 0.95rem 2.2rem; font-size: 1rem; }

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover { background: var(--orange-dark); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(17, 17, 17, 0.05);
}

.navbar-inner {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar-logo img {
    height: 34px;
    width: auto;
}

.navbar-links {
    display: flex;
    gap: 2rem;
}

.navbar-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar-links a:hover { color: var(--orange); }

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:not(.btn) {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.mobile-menu.open { display: flex; }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: var(--black);
    color: var(--white);
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 520px at 88% -10%, rgba(234, 88, 12, 0.1), transparent 60%),
        linear-gradient(180deg, #161616, var(--black) 55%);
    pointer-events: none;
}

.hero-backdrop::before {
    content: '';
    position: absolute;
    top: -34vw;
    right: -18vw;
    width: 62vw;
    height: 62vw;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-backdrop::after {
    content: '';
    position: absolute;
    top: -28vw;
    right: -12vw;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.94) 0%, rgba(17, 17, 17, 0.72) 42%, rgba(17, 17, 17, 0.28) 78%, rgba(17, 17, 17, 0.15) 100%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.5) 0%, transparent 28%, transparent 62%, var(--black) 100%);
}

.hero-inner {
    position: relative;
    z-index: 3;
    padding: 7rem 0 5.5rem;
}

.hero-content { max-width: 780px; }

.hero-overline {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2.25rem;
}

.hero-overline::before {
    content: '';
    width: 2.5rem;
    height: 2px;
    background: var(--orange);
}

.hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 1.75rem;
}

.hero-dot { color: var(--orange); }

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.68);
    max-width: 620px;
    margin-bottom: 2.75rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Faixa de capacidades --- */
.hero-capabilities {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5.5rem;
}

.capability {
    position: relative;
    display: block;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    transition: border-color 0.25s ease;
}

.capability:hover { border-top-color: var(--orange); }

.capability-num {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 0.9rem;
}

.capability-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.capability p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
}

.capability-arrow {
    position: absolute;
    top: 1.5rem;
    right: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.25s ease, transform 0.25s ease;
}

.capability:hover .capability-arrow {
    color: var(--orange);
    transform: translateX(4px);
}

/* --- Animações do hero --- */
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-line {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes hero-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-2.5vw, 2vw); }
}

.hero-overline,
.hero h1,
.hero-sub,
.hero-actions,
.capability {
    opacity: 0;
    animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-overline { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.22s; }
.hero-sub { animation-delay: 0.34s; }
.hero-actions { animation-delay: 0.46s; }
.capability:nth-child(1) { animation-delay: 0.62s; }
.capability:nth-child(2) { animation-delay: 0.74s; }
.capability:nth-child(3) { animation-delay: 0.86s; }

.hero-overline::before {
    transform-origin: left center;
    animation: hero-line 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.hero-backdrop::before { animation: hero-drift 26s ease-in-out infinite alternate; }
.hero-backdrop::after { animation: hero-drift 34s ease-in-out infinite alternate-reverse; }

/* ===== Sections ===== */
.section { padding: 6rem 0; }

.section-offwhite { background: var(--offwhite); }

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-head {
    max-width: 720px;
    margin-bottom: 3.5rem;
}

.section-index {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 1rem;
}

.section-head h2, .contact-info h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    margin-bottom: 1.25rem;
}

.section-head p { color: var(--gray); font-size: 1.1rem; }

.section-dark .section-head p { color: rgba(255, 255, 255, 0.68); }

/* ===== Quem Somos (pilares) ===== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.pillar {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(23, 23, 23, 0.18);
}

.pillar-num {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 1rem;
}

.pillar h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }

.pillar p { color: var(--gray); font-size: 0.97rem; }

/* ===== Soluções (linhas de serviço) ===== */
.services {
    border-top: 1px solid var(--border);
}

.service {
    display: grid;
    grid-template-columns: 72px 1.1fr 0.9fr 48px;
    gap: 2.5rem;
    align-items: start;
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.25s ease;
}

.service:hover { background: var(--offwhite); }

.service-num {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--orange);
    padding-top: 0.45rem;
}

.service-main h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
    transition: color 0.25s ease;
}

.service:hover .service-main h3 { color: var(--orange); }

.service-main p { color: var(--gray); font-size: 0.98rem; max-width: 440px; }

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding-top: 0.35rem;
}

.service-list li {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.service-list li:last-child { border-bottom: none; }

.service-arrow {
    justify-self: end;
    padding-top: 0.35rem;
    font-size: 1.35rem;
    color: rgba(23, 23, 23, 0.3);
    transition: color 0.25s ease, transform 0.25s ease;
}

.service:hover .service-arrow {
    color: var(--orange);
    transform: translateX(6px);
}

/* ===== Metodologia (steps) ===== */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.step {
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-dark);
}

.step-num {
    display: block;
    font-size: 4.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.13);
    margin-bottom: 1.5rem;
}

.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }

.step p { color: rgba(255, 255, 255, 0.65); font-size: 0.93rem; }

/* ===== Contato ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p { color: var(--gray); font-size: 1.08rem; margin-bottom: 2rem; }

.contact-channels {
    list-style: none;
    border-top: 1px solid rgba(23, 23, 23, 0.18);
}

.contact-channels a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.12);
}

.channel-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
}

.contact-channels strong {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-channels a:hover strong { color: var(--orange); }

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.contact-form-wrap h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }

.contact-form-wrap > p { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.75rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.form-field input,
.form-field textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--ink);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--offwhite);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

#contactForm .btn { width: 100%; margin-top: 0.5rem; }

.form-status {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.form-status.error {
    display: block;
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.65);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
    width: auto;
    height: 30px;
}

.footer-brand p { max-width: 340px; margin-top: 0.75rem; font-size: 0.95rem; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 3rem;
}

.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.35rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 2rem;
    font-size: 0.85rem;
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-overline,
    .hero h1,
    .hero-sub,
    .hero-actions,
    .capability { animation: none; opacity: 1; }
    .hero-overline::before { animation: none; }
    .hero-backdrop::before,
    .hero-backdrop::after { animation: none; }
    .hero-canvas { display: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
    .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-inner { padding: 5rem 0 4rem; }
    .hero-capabilities { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 4rem; }
    .capability p { max-width: none; }
    .service { grid-template-columns: 56px 1fr; gap: 1.5rem 2rem; padding: 2.25rem 0; }
    .service-list { grid-column: 2; }
    .service-arrow { display: none; }
}

@media (max-width: 720px) {
    .navbar-links, .navbar-cta { display: none; }
    .navbar-toggle { display: flex; }
    .section { padding: 4rem 0; }
    .pillars, .steps { grid-template-columns: 1fr; }
    .pillars { gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-inner { padding: 3.5rem 0 3rem; }
    .hero-actions .btn { width: 100%; }
    .contact-form-wrap { padding: 1.75rem; }
    .service { grid-template-columns: 1fr; gap: 1rem; }
    .service-list { grid-column: 1; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-inner { flex-direction: column; }
}
