/* ================= RESET ================= */

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

:root {
    --bg: #06070b;
    --bg-secondary: #0f1117;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);

    --text: #ffffff;
    --text-secondary: #b7bcc7;
    --text-muted: #7d8597;

    --border: rgba(255, 255, 255, 0.09);

    --primary: #7c3aed;
    --primary-light: #9f67ff;
    --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);

    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);

    --radius: 18px;

    --font-display: 'Chakra Petch', sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span,
strong {
    color: inherit;
}

a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

/* ================= GLOBAL ================= */

.container {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.alt {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.6rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 22px;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

/* traço de destaque acima dos títulos de seção */
.section h2::before {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-gradient);
    margin-bottom: 16px;
}

.section-center h2::before {
    margin-left: auto;
    margin-right: auto;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.04rem;
}

.container p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.container p+p {
    margin-top: 18px;
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* o blur fica num pseudo-elemento: backdrop-filter no próprio .navbar
   fazia o menu mobile (position: fixed) se ancorar na barra, não na tela */
.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(6, 7, 11, 0.7);
}

.nav-container {
    max-width: 1240px;
    margin: auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    z-index: 1100;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.logo-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
    transition: transform 0.3s ease;
}

.logo a:hover .logo-mark {
    transform: rotate(-6deg) scale(1.06);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: #fff !important;
    font-weight: 800;
    font-size: 0.9rem !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(124, 58, 237, 0.7);
}

.nav-cta::after {
    display: none;
}

/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 24px 110px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0c0a18 0%, var(--bg) 100%);
}

/* círculos suaves, no mesmo estilo da página de corrida */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    right: -170px;
    top: -170px;
    background: var(--primary);
    opacity: 0.22;
}

.hero::after {
    width: 360px;
    height: 360px;
    left: -170px;
    bottom: -130px;
    background: #2563eb;
    opacity: 0.22;
}

.hero-content {
    max-width: 920px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* o subtítulo vira "eyebrow" acima do título */
.hero-highlight {
    order: -1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.hero-highlight::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-gradient);
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    max-width: 660px;
    margin: auto;
    font-size: 1.1rem;
}

.hero-buttons {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat span {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* ================= BUTTONS ================= */

.btn {
    padding: 15px 26px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.96rem;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.primary {
    background: var(--primary-gradient);
    color: #fff;
}

.primary:hover {
    box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.7);
}

.secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn:hover {
    transform: translateY(-2px);
}

/* ================= SOBRE MIM ================= */

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

.sobre-foto {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 30px 60px -30px rgba(124, 58, 237, 0.45);
}

.sobre-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sobre-texto h2 {
    text-align: left;
}

.sobre-texto p {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
}

.sobre-skills {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sobre-skills span {
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.28);
    color: #c9afff;
}

/* ================= CARDS ================= */

.sobre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.sobre-box,
.process-card,
.benefit-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.sobre-box {
    padding: 30px 26px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* ícone dentro de um tile arredondado */
.sobre-box-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.3rem;
    margin-bottom: 18px;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.28);
}

.sobre-box p {
    font-size: 0.97rem;
}

.sobre-box-list {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sobre-box-list li {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-left: 30px;
    position: relative;
    overflow-wrap: anywhere;
}

/* marcador em check, como na página de corrida */
.sobre-box-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 800;
}

.sobre-box:hover,
.process-card:hover,
.benefit-item:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: rgba(159, 103, 255, 0.5);
}

.sobre-box h3 {
    margin-bottom: 10px;
}

/* ================= PROCESSO ================= */

.process-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-card {
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.process-card p {
    max-width: 100%;
    margin: 0;
    font-size: 0.95rem;
}

/* número grande, sem caixa, como os pilares da página de corrida */
.process-card span {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ================= BENEFITS ================= */

.benefits-wrapper {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefits-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    padding: 22px;
    font-weight: 600;
    text-align: left;
}

/* ================= FOOTER ================= */

.footer {
    padding: 48px 20px;
    border-top: 1px solid var(--border);
    background: #04050a;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
}

.footer-social svg {
    width: 17px;
    height: 17px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ================= WHATSAPP ================= */

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.tooltip {
    position: absolute;
    right: 74px;
    background: #161a22;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ================= REVEAL ================= */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HAMBURGUER ================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    /* área de toque maior (44px) sem mudar o visual */
    padding: 10px;
    margin: -10px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: 0.35s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.section-center {
    text-align: center;
}

.section-center h2 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

.section-center p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-center p+p {
    margin-top: 18px;
}

/* ================= CONTATO (bloco em gradiente, como o CTA da página de corrida) ================= */

.contato-box {
    max-width: 900px;
    padding: 64px 40px;
    border-radius: 24px;
    background: var(--primary-gradient);
    box-shadow: 0 30px 60px -30px rgba(124, 58, 237, 0.6);
    position: relative;
    overflow: hidden;
}

.contato-box::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -170px;
    right: -110px;
    pointer-events: none;
}

.contato-box h2,
.contato-box p,
.contato-btn {
    position: relative;
    z-index: 2;
}

.contato-box h2::before {
    background: #fff;
}

.contato-box p {
    color: rgba(255, 255, 255, 0.9);
}

.contato-btn {
    margin-top: 32px;
    min-width: 260px;
    min-height: 56px;
    font-size: 1rem;
    background: #fff;
    color: var(--primary) !important;
    box-shadow: none;
}

.contato-btn:hover {
    background: #f1ebff;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}

#servicos h2,
#processo h2,
#diferenciais h2,
#projetos h2,
#contato h2 {
    text-align: center;
}

/* ================= PORTFOLIO ================= */

.portfolio-grid {
    margin-top: 56px;
    display: grid;
    /* min(100%, 380px) evita estourar a tela em celulares estreitos */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 22px;
}

.portfolio-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(159, 103, 255, 0.5);
    background: var(--card-hover);
}

.portfolio-image {
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.portfolio-tag {
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 13px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.28);
    color: #c9afff;
}

.portfolio-content h3 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.portfolio-content p {
    flex: 1;
    margin: 0 0 24px;
    max-width: 100%;
}

.portfolio-actions {
    display: flex;
    gap: 12px;
}

.portfolio-btn {
    flex: 1;
    text-align: center;
    padding: 13px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.94rem;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.portfolio-btn.primary {
    background: var(--primary-gradient);
    color: #fff;
}

.portfolio-btn.secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.portfolio-btn.secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.portfolio-btn:hover {
    transform: translateY(-2px);
}

.portfolio-card-empty {
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.portfolio-empty-content {
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.portfolio-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #c9afff;
    margin-bottom: 18px;
}

.portfolio-empty-content h3 {
    margin-bottom: 12px;
}

.portfolio-empty-content p {
    margin-bottom: 24px;
}

.portfolio-empty-content .portfolio-btn {
    flex: none;
    padding: 13px 28px;
}

/* ================= RESPONSIVO ================= */

/* ---------- Tablet e celular (até 900px) ---------- */
@media (max-width: 900px) {

    .section {
        padding: 72px 0;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .sobre-perfil {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sobre-foto {
        max-width: 280px;
        margin: 0 auto;
    }

    .sobre-texto h2,
    .sobre-texto p {
        text-align: center;
    }

    .sobre-texto h2::before {
        margin-left: auto;
        margin-right: auto;
    }

    .sobre-skills {
        justify-content: center;
    }

    .sobre-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .benefits-wrapper {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .portfolio-grid {
        margin-top: 40px;
    }

    /* menu em tela cheia */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: 1050;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        padding: 90px 24px 40px;
        background:
            radial-gradient(circle at top,
                rgba(124, 58, 237, 0.2),
                transparent 35%),
            #06070b;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 34px;

        /* fora da tela e fora do foco do teclado até abrir */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s ease, visibility 0s linear 0.4s;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.4s ease, visibility 0s;
    }

    /* trava a rolagem do site enquanto o menu está aberto */
    body:has(.nav-menu.active) {
        overflow: hidden;
    }

    .nav-menu a {
        font-size: 1.3rem;
    }

    .nav-cta {
        padding: 15px 26px;
        font-size: 1.05rem !important;
    }

    .footer {
        padding: 40px 20px 48px;
    }

    .footer-social {
        gap: 8px;
    }

    .contato-box {
        width: calc(100% - 32px);
        padding: 48px 24px;
        border-radius: 20px;
    }

    .contato-btn {
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-image {
        height: 220px;
    }
}

/* ---------- Celular (até 600px) ---------- */
@media (max-width: 600px) {

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    h2 {
        margin-bottom: 16px;
    }

    .section-center h2 {
        margin-bottom: 16px;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .nav-container {
        padding: 12px 20px;
    }

    .logo a {
        font-size: 1.05rem;
        gap: 10px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .sobre-box,
    .process-card,
    .benefit-item {
        border-radius: 16px;
    }

    .sobre-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sobre-box,
    .process-card {
        padding: 24px 20px;
    }

    .sobre-foto {
        max-width: 240px;
    }

    .hero {
        padding: 104px 20px 56px;
    }

    .hero h1 {
        margin-bottom: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 28px;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }

    .hero-highlight {
        text-align: center;
        font-size: 0.76rem;
        letter-spacing: 0.1em;
    }

    .hero-highlight::before {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-top: 36px;
        padding-top: 24px;
    }

    .hero-stat strong {
        font-size: 1.6rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 1.25rem;
    }

    .portfolio-actions {
        flex-direction: column;
    }

    .portfolio-empty-content {
        padding: 36px 22px;
    }

    .contato-box {
        padding: 40px 20px;
    }

    .contato-btn {
        min-width: 0;
        margin-top: 26px;
    }

    /* o rodapé ganha espaço para o botão do WhatsApp não cobrir o texto */
    .footer {
        padding-bottom: calc(48px + 64px);
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        right: max(18px, env(safe-area-inset-right));
        bottom: max(18px, env(safe-area-inset-bottom));
    }

    .tooltip {
        display: none;
    }
}

/* ---------- Celulares muito estreitos (até 380px) ---------- */
@media (max-width: 380px) {

    .container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .sobre-box,
    .process-card {
        padding: 20px 16px;
    }

    .contato-box {
        width: calc(100% - 24px);
        padding: 36px 16px;
    }

    .footer-social a {
        padding: 9px 14px;
        font-size: 0.85rem;
    }
}

/* ---------- Celular deitado (pouca altura) ---------- */
@media (max-width: 900px) and (max-height: 500px) {

    .hero {
        min-height: 0;
        padding-top: 96px;
    }

    .nav-menu {
        justify-content: flex-start;
        gap: 20px;
        padding-top: 76px;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }
}

/* ---------- Telas de toque: sem efeitos de hover "grudados" ---------- */
@media (hover: none) {

    .sobre-box:hover,
    .process-card:hover,
    .benefit-item:hover,
    .portfolio-card:hover,
    .btn:hover,
    .portfolio-btn:hover,
    .nav-cta:hover,
    .whatsapp-float:hover,
    .logo a:hover .logo-mark {
        transform: none;
    }

    .portfolio-card:hover .portfolio-image img {
        transform: none;
    }

    .tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-menu,
    .nav-menu.active {
        transition: none;
    }
}
