/* ===== Base ===== */
:root {
    --bg: #eef3f5;
    --text: #0e2a3b;
    --muted: #627587;
    --primary: #ff7d2d;
    --primary-600: #ff6a0a;
    --white: #ffffff;
    --navy: #0e2a3b;
    --outline: #cfd9e3;
    --shadow: 0 10px 20px rgba(14, 42, 59, .08), 0 2px 6px rgba(14, 42, 59, .06);

    /* safe-area (iPhone) */
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* container com padding lateral e max-width */
.container {
    max-width: 1120px;
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(12px, 4vw, 24px);
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(238, 243, 245, .92), rgba(238, 243, 245, .70));
    backdrop-filter: saturate(120%) blur(6px);
    border-bottom: 1px solid rgba(15, 43, 60, .06);

    /* respeita safe-area */
    padding-left: max(0px, var(--safe-left));
    padding-right: max(0px, var(--safe-right));
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
    justify-content: space-between;
    /* evita “vazar” do menu */
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.brand .brand-text {
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.brand .accent {
    color: var(--primary);
}

.brand-logo {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.brand-logo.invert {
    filter: none;
}

.main-nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.main-nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    opacity: .9;
}

.main-nav a.active {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .08s, box-shadow .2s, background .2s, color .2s;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-600);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
    box-shadow: none;
}

.btn-pill {
    padding: 10px 16px;
}

.btn-block {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: 0;
    margin-left: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 90px 0 40px;
    overflow: hidden;
    min-height: 40svh;
}

.hero-inner {
    text-align: center;
    padding: 30px 0 40px;
}

.hero h1 {
    font-size: clamp(36px, 5.4vw, 64px);
    line-height: 1.1;
    margin: 20px 0 10px;
    color: var(--navy);
}

.accent {
    color: var(--primary);
}

.hero-sub {
    color: var(--muted);
    width: min(720px, 90%);
    margin: 0 auto 26px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.bg-blur {
    position: absolute;
    filter: blur(60px);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 125, 45, .16), transparent);
    pointer-events: none;
}

.bg-blur.top-left {
    left: -180px;
    top: -220px;
}

.bg-blur.top-right {
    right: -120px;
    top: -120px;
    background: radial-gradient(closest-side, rgba(15, 43, 60, .10), transparent);
}

.bg-blur.bottom-left {
    left: -160px;
    bottom: -160px;
}

/* ===== Sections ===== */
.section {
    padding: 64px 0;
}

.section-dark {
    background: linear-gradient(180deg, rgba(15, 43, 60, .04), rgba(15, 43, 60, .06));
}

.section-title {
    font-size: clamp(28px, 4.2vw, 48px);
    text-align: center;
    margin: 0 0 6px;
    color: var(--navy);
}

.section-sub {
    text-align: center;
    color: var(--muted);
    width: min(820px, 92%);
    margin: 0 auto 28px;
}

/* ===== Cards: Sobre ===== */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 30px;
}

.card {
    border-radius: 18px;
    padding: 26px;
    background: #f7fbfd;
    box-shadow: var(--shadow);
}

.card.light h3 {
    margin: 8px 0 8px;
    color: var(--navy);
    font-size: 1.4rem;
}

.card.light p {
    color: var(--muted);
}

.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
    margin-bottom: 8px;
}

.icon {
    font-size: 24px;
}

/* ===== Cards: Serviços ===== */
.cards-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 28px;
}

.card.dark {
    background: var(--navy);
    color: #e9f0f5;
    text-align: center;
    padding-top: 34px;
}

.card.dark h3 {
    color: #fff;
    margin-top: 10px;
    font-size: 1.22rem;
    line-height: 1.3;
}

.card.dark p {
    color: #c8d6e2;
}

.badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #fff;
    margin: -62px auto 6px;
    box-shadow: 0 10px 20px rgba(255, 125, 45, .3);
}

/* ===== Contato ===== */
.contact .grid-contact {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: start;
}

.contact-card {
    background: #f7fbfd;
    border-radius: 16px;
    padding: 22px 22px 24px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    margin: 6px 0 12px;
    font-size: 1.4rem;
}

.contact-card label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    margin: 10px 0 8px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--outline);
    font: inherit;
    outline: none;
    background: #fff;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: #9eb6ca;
    box-shadow: 0 0 0 3px rgba(158, 182, 202, .25);
}

.form-status {
    margin-top: 10px;
    font-weight: 600;
}

.form-status.ok {
    color: #0b8e2e;
}

.form-status.err {
    color: #b00020;
}

.contact-info h4 {
    font-size: 1.2rem;
    margin: 6px 0 14px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ci-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 125, 45, .16);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex: 0 0 auto;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--navy);
    color: #c8d6e2;
    margin-top: 30px;
    padding-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.brand-invert .brand-text {
    color: #fff;
}

.f-brand p {
    margin-top: 10px;
}

.site-footer h5 {
    color: #fff;
    margin: 8px 0 10px;
}

.footer-links,
.social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-links a,
.social a {
    color: #c8d6e2;
    text-decoration: none;
}

.footer-links a:hover,
.social a:hover {
    color: #fff;
}

.copyright {
    border-top: 1px solid rgba(200, 214, 226, .15);
    text-align: center;
    padding: 14px 0;
    margin-top: 18px;
    color: #9fb3c6;
    font-size: .95rem;
}

/* ===== Responsive ===== */
@media (max-width:1120px) {
    .cards-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact .grid-contact {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
        position: absolute;
        right: 14px;
        top: 62px;
        background: #fff;
        padding: 10px 14px;
        border-radius: 12px;
        box-shadow: var(--shadow);
        flex-direction: column;
    }

    .main-nav.open {
        display: flex;
    }

    .hamburger {
        display: inline-block;
    }
}

@media (max-width:768px) {
    .cta-header {
        padding: 8px 12px;
        font-size: .88rem;
        border-radius: 16px;
        white-space: nowrap;
    }

    .brand-logo {
        width: 72px;
        height: 72px;
    }

    .brand .brand-text {
        font-size: 1rem;
    }
}

@media (max-width:640px) {
    .hero {
        padding-top: 64px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .cards-6,
    .cards-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:420px) {
    .site-header .nav {
        flex-wrap: wrap;
    }

    .brand {
        order: 1;
    }

    .hamburger {
        order: 2;
    }

    .cta-header {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 6px;
    }
}

/* ===== Ícones flutuantes (Android + iOS safe-area) ===== */
.floating-icon,
.scroll-top {
    position: fixed !important;
    width: 54px;
    height: 54px;
    right: max(1rem, env(safe-area-inset-right, 0px)) !important;
    /* respeita safe-area */
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #FFF !important;
    border: none;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .3);
    z-index: 9999;

    /* força camada própria no Android/WebView */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.floating-icon.instagram {
    bottom: 6rem !important;
    background: radial-gradient(circle at 33% 100%, #FED373 0%, #F15245 30%, #D92E7F 60%, #9B36B7 90%, #515ECF 100%);
}

.floating-icon.whatsapp {
    bottom: 2rem !important;
    background: #25D366;
}

.scroll-top {
    bottom: 10rem !important;
    background: #3a3a3a;
    opacity: .9;
    display: none;
}

.floating-icon:hover,
.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 1px 3px 8px rgba(0, 0, 0, .35);
}

.floating-icon i,
.scroll-top i {
    font-size: 22px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}



/* 4) Banner mobile-first sem sair dos limites */
.banner-inner {
    display: flex;
    flex-direction: column;
    /* padrão: empilha no mobile */
    gap: 20px;
    /* espaço entre imagens */
    align-items: center;
    margin-bottom: 30px;
}

.banner-img {
    width: 100%;
    /* ocupa largura total no mobile */
    max-width: 600px;
    /* evita ficar gigante em desktop */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* a partir de tablets (768px+) as imagens ficam lado a lado */
@media (min-width: 768px) {
    .banner-inner {
        flex-direction: row;
        /* coloca lado a lado */
        justify-content: center;
    }

    .banner-img {
        width: 48%;
        /* cada uma ocupa metade da largura */
        max-width: none;
        /* remove limite fixo */
    }
}


.banner-l {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;

    /* afasta das laterais */
    padding: 0 20px;
    /* 20px de espaço à esquerda e direita */
    box-sizing: border-box;
    /* garante que o padding não quebre a largura */
}

.banner-l .banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 1920px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}