:root {
    --navy: #07283a;
    --navy-2: #0b3d56;
    --teal: #0e6a8f;
    --accent: #1eaae0;
    --accent-strong: #1496c8;
    --paper: #f3f6f8;
    --white: #ffffff;
    --ink: #1c2c36;
    --muted: #5c6d78;
    --line: rgba(255, 255, 255, 0.14);
    --shadow: 0 22px 50px rgba(7, 40, 58, 0.16);
    --radius: 18px;
    --header-h: 84px;
    --font: "Manrope", sans-serif;
    --display: "Barlow Condensed", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--display);
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0 0 0.6em;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 2000;
}

.skip-link:focus {
    left: 12px;
}

/* Page load */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 3000;
    transform-origin: top;
    animation: wipe-out 0.85s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    pointer-events: none;
}

@keyframes wipe-out {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.page-home .site-header,
.site-header.is-scrolled,
.page-inner .site-header {
    background: #14698f;
    backdrop-filter: none;
    box-shadow: none;
}

.header-inner {
    width: min(1280px, calc(100% - 36px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo img {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.35s ease;
}

.logo:hover img {
    transform: scale(1.04);
}

.site-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-list > li > a {
    display: block;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
}

.nav-list > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a.is-active::after {
    transform: scaleX(1);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--navy-2);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown a:hover {
    background: #eef7fc;
    color: var(--teal);
    padding-left: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    border: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-orcamento,
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 170, 224, 0.28);
}

.btn-orcamento:hover,
.btn-primary:hover {
    background: var(--accent-strong);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
    background: #fff;
    color: var(--navy-2);
}

.btn-light {
    background: #fff;
    color: var(--navy-2);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-cta {
    display: none;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #fff;
    transition: 0.3s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.btn-hero {
    background: #1ea4e0;
    color: #fff;
    min-height: 42px;
    min-width: 158px;
    padding: 0 28px;
    box-shadow: none;
    letter-spacing: 0.06em;
}

.btn-hero:hover {
    background: #1794cc;
    transform: none;
}

/* Hero */
.hero {
    position: relative;
    margin-top: var(--header-h);
    min-height: 380px;
    height: clamp(380px, 42vw, 520px);
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
    text-align: center;
    background: #111 url("../img/hero.jpg") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 40px));
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero .lead {
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.45;
    max-width: 740px;
    margin: 0 auto 28px;
    color: #fff;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
}

.scroll-hint::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 99px;
    animation: scroll-dot 1.4s ease infinite;
}

@keyframes scroll-dot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* Sections */
.section {
    padding: 90px 0;
}

.section.alt {
    background: var(--paper);
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.eyebrow {
    color: var(--accent-strong);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

.section-head h2,
.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--navy-2);
    text-transform: uppercase;
}

.section-head p {
    color: var(--muted);
    margin: 0 auto;
    max-width: 640px;
}

.section-servicos {
    background: #eef2f5;
}

.section-servicos .section-head {
    margin-bottom: 36px;
}

.section-servicos .section-head h2 {
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: #1a7eb0;
}

.section-servicos .section-head p {
    color: #2a2a2a;
    font-size: 16px;
    font-weight: 600;
    max-width: none;
}

.cards-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-card {
    background: #fff;
    border-radius: 22px;
    padding: 22px 16px 18px;
    box-shadow: 0 8px 22px rgba(20, 40, 60, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    color: #1a1a1a;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 14px;
    line-height: 1.2;
    min-height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card h3 span {
    display: block;
}

.service-card .thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef2;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-card p {
    color: #333;
    font-size: 13px;
    line-height: 1.45;
    margin: 14px 0 0;
}

.feature-grid,
.segment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card,
.segment-card {
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card {
    background: #fff;
    border: 1px solid #e6eef3;
}

.feature-card:hover,
.segment-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.feature-index {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #e7f6fd;
    color: var(--teal);
    font-family: var(--display);
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-card h3,
.segment-card h3 {
    font-size: 22px;
    color: var(--navy-2);
    text-transform: uppercase;
}

.segment-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    border: 0;
    background: var(--navy-2);
}

.segment-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    z-index: 0;
}

.segment-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 40, 58, 0.18), rgba(7, 40, 58, 0.78));
}

.segment-card h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.partners {
    background: #fff;
}

.partners-head {
    text-align: center;
    margin-bottom: 48px;
}

.partners-head h2 {
    font-family: var(--font);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 700;
    color: #1a6bb8;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 36px 22px;
    align-items: center;
    justify-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.partners-grid li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    padding: 4px 8px;
}

.partners-grid img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
}

.cta-band {
    background: #14698f;
    color: #fff;
    padding: 72px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-band h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

/* Inner pages */
.page-hero {
    position: relative;
    margin-top: var(--header-h);
    min-height: 360px;
    height: clamp(340px, 38vw, 480px);
    display: grid;
    align-items: end;
    padding: 48px 0 56px;
    color: #fff;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--navy) url("../img/hero.png") center / cover no-repeat;
}

.page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 40, 58, 0.46), rgba(7, 40, 58, 0.78));
}

.page-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero .eyebrow {
    color: var(--accent);
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.page-hero .lead {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.prose {
    max-width: 820px;
}

.prose p {
    color: var(--muted);
    font-size: 17px;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.split img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.form {
    display: grid;
    gap: 14px;
    background: #fff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.form label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-2);
}

.form input,
.form select,
.form textarea {
    width: 100%;
    border: 1px solid #d7e3ea;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(30, 170, 224, 0.15);
}

.form-error {
    margin: 0;
    color: #b42318;
    background: #fdecea;
    padding: 10px 12px;
    border-radius: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
}

.contact-card {
    background: var(--navy-2);
    color: #fff;
    border-radius: 24px;
    padding: 32px;
}

.contact-card a {
    color: var(--accent);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.82);
}

.map-embed {
    border: 0;
    width: 100%;
    height: 280px;
    border-radius: 18px;
    margin-top: 20px;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.82);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 0.9fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand img {
    height: 54px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-company {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
}

.site-footer h3 {
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer a {
    display: inline-block;
    margin: 4px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer ul a::before {
    content: "✓";
    color: var(--accent);
    margin-right: 8px;
    font-size: 12px;
}

.site-footer a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    place-items: center;
    transform: none;
}

.social-links svg {
    width: 16px;
    height: 16px;
}

.social-links a:hover {
    transform: none;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 0 28px;
    text-align: center;
    font-size: 13px;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
    z-index: 1200;
    animation: pulse 2.4s ease infinite;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media (max-width: 1100px) {
    .cards-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid,
    .feature-grid,
    .segment-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .partners-grid li[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
        position: relative;
        z-index: 2;
    }

    .btn-orcamento {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: 18px;
    }

    .mobile-cta .btn {
        width: 100%;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(100dvh - var(--header-h));
        background: rgba(7, 40, 58, 0.98);
        padding: 20px;
        transform: translateX(110%);
        transition: transform 0.35s ease;
        overflow: auto;
        margin: 0;
        z-index: 1;
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .site-header {
        height: 100dvh;
        overflow: hidden;
        z-index: 4000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.nav-open .site-nav {
        transform: none;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: transparent;
        box-shadow: none;
        padding: 0 0 8px 12px;
    }

    .has-dropdown.is-open .dropdown {
        display: block;
    }

    .dropdown a {
        color: #fff;
    }

    .cards-5,
    .footer-grid,
    .feature-grid,
    .segment-grid,
    .split,
    .contact-grid,
    .cta-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .page-hero {
        height: auto;
        min-height: 280px;
        padding: 40px 0 36px;
    }

    .hero {
        height: auto;
        min-height: 420px;
        padding: 36px 0;
    }

    .hero h1 {
        font-size: clamp(28px, 7.5vw, 42px);
    }

    .hero .lead {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn-hero {
        min-width: 140px;
    }

    .logo img {
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
