*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0a1628;
    --navy-mid: #0f2044;
    --blue: #1a3a6e;
    --accent: #1d4ed8;
    --accent-light: #3b82f6;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --text: #0f172a;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--navy);
    overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 25px 60px;
    background: transparent;
    transition: background 0.4s, backdrop-filter 0.4s;
}

.navbar-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
}

.logo img {
    width: 200px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

/* ── HERO ── */
#inicio {
    position: relative;
    height: 100dvh;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero.webp");
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(10, 22, 40, 0.35) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--navy);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.badge span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 58px);
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 20px;
    font-weight: 400;
    max-width: 650px;
}

.hero-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 36px;
}

.btn-primary {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary:hover {
    background: var(--blue);
    transform: translateY(-2px);
}

/* ── SECTION SHARED ── */
section {
    padding: 100px 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 20px;
}

.section-tag-dot {
    width: 10px;
    height: 10px;
    background: var(--navy-mid);
    border-radius: 50%;
}

.section-tag span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
}

.section-tag.light .section-tag-dot {
    background: var(--white);
}

.section-tag.light span {
    color: rgba(255, 255, 255, 0.85);
}

/* ── ABOUT ── */
#sobre {
    padding: 100px 60px;
    background: var(--white);
}

.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 50px;
}

.about-top h2 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    text-transform: uppercase;
}

.about-top p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.75;
    align-self: center;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── SERVICES ── */
#servicos {
    background: var(--navy);
    padding: 100px 60px;
}

#servicos .section-header {
    margin-bottom: 60px;
}

#servicos h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 14px;
}

#servicos .sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 460px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 36px 30px;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    cursor: pointer;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
}

.service-card svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
}

/* ── PROCESS ── */
#processos {
    background: var(--white);
    padding: 100px 60px;
}

#processos h2 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

#processos .sub {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 70px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.step-num {
    font-size: 56px;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 12px;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── PORTFOLIO ── */
#portfolio {
    background: var(--navy);
    padding: 100px 60px;
    color: var(--white);
}

#portfolio .section-header {
    margin-bottom: 60px;
}

#portfolio h2 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 14px;
}

#portfolio .sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 460px;
    line-height: 1.7;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 460px;
}

.portfolio-item-info {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 56px 60px;
    background: var(--navy);
    overflow: hidden;
}

.portfolio-item.reverse {
    direction: rtl;
}

.portfolio-item.reverse>* {
    direction: ltr;
}

.pf-num {
    font-size: 72px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    flex-shrink: 0;
    margin-top: -8px;
    font-variant-numeric: tabular-nums;
}

.pf-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 6px;
    max-width: 360px;
}

.pf-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-light);
}

.pf-text h3 {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pf-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
}

.portfolio-item-img {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.portfolio-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    filter: brightness(0.85);
}

.portfolio-item:hover .portfolio-item-img img {
    transform: scale(1.04);
    filter: brightness(1);
}

.pf-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    width: fit-content;
}

.pf-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── FOOTER ── */
footer {
    background: var(--navy);
    padding: 60px 60px 30px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.footer-bottom {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ── WHATSAPP BUTTON ── */
.btn-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    background-color: #25D366;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* ── FADE IN ANIMATION ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── MENU MOBILE ── */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translateY(-6px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav {
        padding: 20px 30px;
    }

    .hero-content {
        width: 100%;
        padding: 24px;
    }

    .btn-primary {
        font-size: 12px;
    }

    section,
    #sobre,
    #servicos,
    #processos,
    #portfolio,
    footer {
        padding: 70px 24px;
    }

    .about-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-top {
        flex-direction: column;
        gap: 28px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px;
        gap: 24px;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 16px;
        color: var(--white);
    }

    .portfolio-item,
    .portfolio-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        height: auto;
    }

    .portfolio-item-info {
        padding: 36px 24px;
        gap: 20px;
    }

    .pf-num {
        font-size: 48px;
    }

    .portfolio-item-img {
        height: 260px;
    }
}

@media (max-width: 560px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}