/* --- CONFIGURAÇÕES BÁSICAS --- */
:root {
    --primary-color: #003366;
    --primary-dark: #001f40;
    --secondary-color: #F97316;
    --secondary-dark: #e06614;
    --text-color: #333;
    --text-muted: #666;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --radius: 10px;
    --shadow: 0 5px 20px rgba(0,0,0,0.07);
    --shadow-hover: 0 12px 30px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- BOTÕES --- */
.btn-primary {
    display: inline-block;
    padding: 13px 32px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    transition: 0.3s;
    font-size: 15px;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

.btn-outline {
    display: inline-block;
    padding: 13px 32px;
    border: 2px solid rgba(255,255,255,0.6);
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    transition: 0.3s;
    font-size: 15px;
}

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 32px;
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border-radius: var(--radius);
    transition: 0.3s;
    font-size: 15px;
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.btn-whatsapp:hover {
    background-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* --- CABEÇALHO --- */
header {
    background-color: var(--bg-white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    font-weight: 400;
    color: #555;
    font-size: 15px;
}

nav a:hover {
    color: var(--secondary-color);
}

.btn-contato {
    background-color: var(--primary-color);
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-contato:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- SEÇÃO HERO --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 160px 0 110px;
    text-align: center;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(249,115,22,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(249,115,22,0.2);
    border: 1px solid rgba(249,115,22,0.4);
    color: #fdb97a;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 50px;
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero p {
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto 40px;
    opacity: 0.85;
    line-height: 1.7;
}

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

/* --- SEÇÃO STATS --- */
.stats {
    background-color: var(--bg-white);
    border-bottom: 1px solid #e8ecf0;
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid #e8ecf0;
}

.stat-item {
    padding: 40px 20px;
    text-align: center;
    border-right: 1px solid #e8ecf0;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
}

.stat-item strong {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item strong em {
    color: var(--secondary-color);
    font-style: normal;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- SEÇÃO SERVIÇOS --- */
.servicos {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.servico-card {
    background-color: var(--bg-white);
    padding: 40px 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--secondary-color);
}

.servico-card .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0,51,102,0.08), rgba(0,51,102,0.04));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: 0.3s;
}

.servico-card:hover .icon {
    background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.06));
}

.servico-card .icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    transition: 0.3s;
}

.servico-card:hover .icon svg {
    color: var(--secondary-color);
}

.servico-card h4 {
    color: var(--primary-color);
    margin-bottom: 14px;
    font-size: 19px;
}

.servico-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* --- SEÇÃO CASES --- */
.cases {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.cases .section-header {
    margin-bottom: 50px;
}

.cases-lista {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cases-lista {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.case-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,51,102,0.1);
    overflow: hidden;
}

/* Header banner */
.case-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00264d 100%);
    padding: 44px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.case-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 90% 50%, rgba(249,115,22,0.12) 0%, transparent 55%);
    pointer-events: none;
}

.case-badge {
    display: inline-block;
    background: rgba(249,115,22,0.25);
    border: 1px solid rgba(249,115,22,0.5);
    color: #fdb97a;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.case-header-left h4 {
    font-size: 30px;
    color: white;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
}

.case-header-left > p {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    margin-bottom: 4px;
}

.case-period {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.5) !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

.case-period svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.case-header-stats {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.case-stat {
    text-align: center;
    padding: 12px 28px;
    border-left: 1px solid rgba(255,255,255,0.12);
}

.case-stat:first-child {
    border-left: none;
}

.case-stat strong {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.case-stat span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Body */
.case-body {
    padding: 44px 48px;
}

.case-intro {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    padding: 20px 24px;
    background: #f8fafc;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
}

/* Grupos temáticos */
.case-grupos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.case-grupos-2 {
    grid-template-columns: repeat(2, 1fr);
}

.case-grupo {
    background: #f8fafc;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 24px;
    transition: box-shadow 0.3s;
}

.case-grupo:hover {
    box-shadow: 0 6px 20px rgba(0,51,102,0.07);
}

.case-grupo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0e6ee;
}

.case-grupo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color), #fb923c);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.case-grupo-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.case-grupo-header span {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.case-grupo ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-grupo ul li {
    font-size: 13.5px;
    color: #4a5568;
    line-height: 1.65;
    padding-left: 14px;
    position: relative;
}

.case-grupo ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.case-grupo ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tags */
.case-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid #e8ecf2;
}

.case-tags-label {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.case-tags span {
    background: rgba(0,51,102,0.06);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0,51,102,0.1);
}

@media (max-width: 900px) {
    .case-grupos,
    .case-grupos-2 { grid-template-columns: 1fr; }
    .case-header { flex-direction: column; align-items: flex-start; }
    .case-header-stats { width: 100%; justify-content: flex-start; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
    .case-stat:first-child { border-left: none; }
    .case-stat { padding: 8px 20px 8px 0; border-left: none; border-right: 1px solid rgba(255,255,255,0.12); }
    .case-stat:last-child { border-right: none; }
}

@media (max-width: 600px) {
    .case-header { padding: 28px 24px; }
    .case-body { padding: 28px 24px; }
    .case-header-stats { flex-wrap: wrap; gap: 16px; }
    .case-stat { border: none; padding: 0; }
    .case-tags-wrapper { flex-direction: column; align-items: flex-start; }
}

/* --- SEÇÃO SOBRE --- */
.sobre {
    padding: 100px 0;
}

.sobre-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-text h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.sobre-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.sobre-diferenciais {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    padding: 40px;
    color: white;
}

.sobre-diferenciais h4 {
    font-size: 20px;
    margin-bottom: 28px;
    color: #fdb97a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.sobre-diferenciais ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sobre-diferenciais li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.92;
}

.sobre-diferenciais li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--secondary-color);
    margin-top: 2px;
}

/* --- SEÇÃO CONTATO --- */
.contato {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.contato .section-title {
    color: white;
    margin-bottom: 12px;
}

.contato > .container > p {
    opacity: 0.75;
    margin-bottom: 40px;
    font-size: 16px;
}

.contato-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    opacity: 0.9;
}

.contato-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

.contato-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- RODAPÉ --- */
footer {
    background-color: var(--primary-dark);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 38px;
    width: auto;
    /* Clareia a logo para funcionar no fundo escuro */
    filter: brightness(0) invert(1);
    opacity: 0.75;
}

.footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

/* --- BOTÃO VOLTAR AO TOPO --- */
.btn-topo {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(249,115,22,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 999;
}

.btn-topo svg {
    width: 20px;
    height: 20px;
}

.btn-topo.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-topo:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .sobre-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0 20px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
    }

    .btn-contato {
        margin: 10px auto;
        display: inline-block;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .contato-info {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 26px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item strong {
        font-size: 30px;
    }
}
