/* Reset Básico e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 28px);
    --headerH: 92px;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    --accent: #EE512A;
    --accentDark: #b83d1e;

    --h1: clamp(2.1rem, 4.2vw, 3.5rem);
    --h2: clamp(1.9rem, 3vw, 2.8rem);
    --p: clamp(1.02rem, 1.4vw, 1.15rem);
}

html {
    scroll-padding-top: var(--headerH);
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ============================================ */
/* CABEÇALHO E NAVEGAÇÃO                         */
/* ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    padding: 18px 0;
    background-color: transparent;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 34px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: color 0.4s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.cta-button-header {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cta-button-header:hover {
    background-color: var(--accent);
    color: #ffffff;
}

/* CTA: desktop vs drawer */
.cta-in-drawer {
    display: none;
    /* aparece apenas no menu mobile */
}

.cta-desktop {
    display: inline-flex;
}

/* Menu Mobile (botão) */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;

    align-items: center;
    justify-content: center;
}

.menu-toggle:focus-visible {
    outline: 3px solid rgba(238, 81, 42, 0.25);
    outline-offset: 2px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: background-color 0.25s ease;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    transition: transform 0.25s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Transform “X” quando menu abre */
.site-header.is-open .hamburger {
    background-color: transparent;
}

.site-header.is-open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.site-header.is-open~.nav-overlay {
    display: block;
    opacity: 1;
}

/* ============================================ */
/* HERO                                          */
/* ============================================ */
.hero-new {
    background-color: #f8f9fa;
    padding-top: calc(var(--headerH) + 28px);
    padding-bottom: clamp(56px, 6vw, 90px);
    position: relative;
    overflow: hidden;
}

.hero-content-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(26px, 4vw, 50px);
    text-align: left;
}

.hero-left {
    flex: 1;
    max-width: 640px;
}

.hero-left h1 {
    font-size: var(--h1);
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 18px;
    line-height: 1.15;
}

.hero-left p {
    font-size: var(--p);
    color: #4a5568;
    margin-bottom: 26px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.cta-primary:hover {
    background-color: var(--accentDark);
    transform: translateY(-2px);
}

.cta-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.25s ease, transform 0.25s ease;
}

.cta-secondary:hover {
    background-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-right {
    flex: 1;
    position: relative;
    padding-left: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-right img {
    max-width: 100%;
    height: clamp(240px, 42vw, 450px);
    object-fit: cover;
    border-radius: var(--radius);
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    box-shadow: var(--shadow);
}

/* ============================================ */
/* STATS                                         */
/* ============================================ */
.stats-section {
    background-color: #ffffff;
    padding: 50px 0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(16px, 2.5vw, 26px);
    text-align: left;
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
    white-space: nowrap;
}

.stat-item p {
    font-size: 1rem;
    color: #6b7280;
}

/* ============================================ */
/* SERVIÇOS                                      */
/* ============================================ */
.services-section {
    padding: clamp(56px, 7vw, 90px) 0;
    background-color: #f8f9fa;
    text-align: center;
}

.services-section h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 680px;
    margin: 0 auto 44px auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2.5vw, 30px);
    align-items: stretch;
}

.service-card {
    background-color: #ffffff;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 18px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e7f1ff;
    border-radius: 12px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* ============================================ */
/* PARCEIROS / SOLUÇÕES                          */
/* ============================================ */
.solutions-section {
    padding: clamp(56px, 7vw, 90px) 0;
    background-color: #ffffff;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(28px, 5vw, 60px);
}

.section-tag {
    display: inline-block;
    background-color: #eef2ff;
    color: var(--accent);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.solutions-text h2 {
    font-size: var(--h2);
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.15;
}

.solutions-text p {
    font-size: var(--p);
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 12px;
}

.solutions-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 3vw, 40px);
    align-items: center;
    justify-items: center;
}

.logo-item img {
    max-width: 140px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo-item img:hover {
    opacity: 1;
    transform: scale(1.04);
}

/* ============================================ */
/* CONTATO                                       */
/* ============================================ */
.contact-section {
    padding: clamp(56px, 7vw, 90px) 0;
    background-color: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(28px, 5vw, 60px);
}

.contact-text h2 {
    font-size: var(--h2);
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-text p {
    font-size: var(--p);
    color: #6b7280;
    margin-bottom: 22px;
    line-height: 1.8;
}

.contact-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

.contact-details p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(238, 81, 42, 0.2);
}

.contact-form .cta-button {
    width: 100%;
    cursor: pointer;
    border: none;
    background-color: var(--accent);
    color: #ffffff;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact-form .cta-button:hover {
    background-color: var(--accentDark);
    transform: translateY(-2px);
}

/* ============================================ */
/* RODAPÉ                                       */
/* ============================================ */
.site-footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 34px;
    margin-bottom: 34px;
}

.site-footer h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-about p,
.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #d1d5db;
    transition: color 0.25s ease;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* ============================================ */
/* RESPONSIVO + MENU MOBILE (Drawer)            */
/* ============================================ */
@media (max-width: 992px) {
    .hero-content-new {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-right {
        padding-left: 0;
        justify-content: flex-start;
    }

    .hero-right img {
        clip-path: none;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solutions-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --headerH: 84px;
    }

    /* CTA desktop some, CTA no drawer aparece */
    .cta-desktop {
        display: none;
    }

    .cta-in-drawer {
        display: inline-flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* Drawer */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(86vw, 360px);
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        padding: 92px 18px 18px;
        z-index: 1000;
    }

    .site-header.is-open .main-nav {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 10px;
        border-radius: 12px;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover {
        background: #f3f4f6;
    }

    .cta-button-header {
        width: 100%;
        justify-content: center;
    }

    /* Botões do hero ocupam largura total */
    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    /* Logos: 2 colunas no mobile */
    .solutions-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Contato vira coluna */
    .contact-container {
        grid-template-columns: 1fr;
    }

    .stats-section {
        padding: 42px 0;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 30px;
    }
}