/* TOKENS E VARIÁVEIS INICIAIS */
:root {
    /* Cores */
    --color-bg: #0B0D0D;
    --color-surface: #111414;
    --color-white: #F5F5F5;
    --color-text: #F5F5F5;
    --color-text-muted: #B9BEC0;
    --color-orange: #FF650F;
    --color-border: rgba(255, 255, 255, 0.12);
    
    /* Tipografia */
    --font-primary: 'Manrope', sans-serif;
    
    /* Espaçamento e Layout */
    --container-max: 1280px;
    --header-height: 80px;
    
    /* Transições */
    --transition-fast: 200ms ease;
}

/* RESET BÁSICO */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* UTILITÁRIOS */
.container {
    max-width: var(--container-max);
    width: min(1280px, calc(100% - 96px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 48px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 48px;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

.btn-sm {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

.btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: #e55a0d;
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-white);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-orange);
}
.btn-outline:hover {
    background-color: rgba(255,101,15,0.1);
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(11, 13, 13, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    width: clamp(140px, 14vw, 180px);
    height: auto;
    object-fit: contain;
}

/* Menu Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    color: var(--color-white);
    padding: 8px;
}

/* Navegação Desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: var(--color-orange);
    border-radius: 2px;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

/* ================= HERO ================= */
.hero {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
    padding-top: 24px; /* Slight offset for balance */
}

.eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(48px, 4.8vw, 76px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero-title .line {
    display: block;
}

.hero-title .highlight {
    color: var(--color-orange);
}

@media (min-width: 1025px) {
    .hero-title .highlight {
        white-space: nowrap;
    }
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Soft border blending mask */
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%), linear-gradient(to bottom, black 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%), linear-gradient(to bottom, black 92%, transparent 100%);
    -webkit-mask-composite: source-in;
}

.hero-signature {
    position: absolute;
    top: 40px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.signature-img {
    display: block;
    width: clamp(145px, 14vw, 160px);
    height: auto;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    margin-bottom: 10px;
}

.signature-caption {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.16em;
    color: #C5C7C9;
    text-align: left;
}

.signature-caption .cap-line {
    display: block;
}

/* ================= SOBRE (Apresentação) ================= */
.sobre {
    position: relative;
    z-index: 2;
    --sobreposicao: 120px;
    margin-top: calc(-1 * var(--sobreposicao));
    padding-bottom: 80px; 
}

.sobre-card {
    display: grid;
    grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.43fr) auto minmax(0, 0.29fr);
    background-color: #101313;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

/* Esquerda: Foto */
.sobre-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.sobre-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.15);
    transform-origin: top center;
    mask-image: linear-gradient(to left, transparent 0%, black 25%), linear-gradient(to top, transparent 0%, black 15%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 25%), linear-gradient(to top, transparent 0%, black 15%);
    -webkit-mask-composite: source-in;
}

/* Centro: Conteúdo */
.sobre-content {
    padding: 32px 32px 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.sobre-title {
    font-size: clamp(30px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 12px;
    color: var(--color-white);
}

.sobre-title .highlight {
    color: var(--color-orange);
}

.sobre-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    max-width: 95%;
}

.signature-img-sm {
    width: clamp(168px, 18vw, 228px);
    margin-bottom: 0;
    margin-top: 8px;
    align-self: center;
}

/* Divisor */
.sobre-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    margin: 48px 0;
}

/* Direita: Benefícios */
.sobre-benefits {
    padding: 32px 40px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.benefits-list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: center;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
}

.benefit-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2.2;
}

.benefit-text {
    font-size: 15.5px;
    line-height: 1.35;
    color: var(--color-text-muted);
}


/* ================= SERVIÇOS ================= */
.servicos {
    padding-top: 72px;
    padding-bottom: 72px;
    scroll-margin-top: 80px;
}

.section-header {
    margin-bottom: 24px;
}

.eyebrow-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.line-deco {
    width: 24px;
    height: 1px;
    background-color: var(--color-orange);
}

.eyebrow-text {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-white);
}

.section-title .highlight {
    color: var(--color-orange);
}

/* Grid de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 16px;
    min-height: 440px;
    position: relative;
}

.grid-glow {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 45%, rgba(255, 255, 255, 0.025) 100%);
    background-color: rgba(12, 16, 15, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.service-card:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.service-card:hover .card-arrow svg {
    transform: translateX(3px);
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--color-orange);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-white);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.card-arrow svg {
    transition: transform 0.2s ease;
}

.service-card:hover .card-arrow {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Card Principal */
.main-card {
    grid-column: span 1;
    grid-row: span 2;
}

.mc-illustration-img {
    width: 100%;
    padding: 28px 24px 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.mc-mockup-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.mc-content {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
    flex-grow: 1;
}

.mc-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mc-icon {
    color: var(--color-orange);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.mc-icon svg {
    width: 44px;
    height: 44px;
}

.mc-header h3 {
    font-size: clamp(23px, 2vw, 26px);
    font-weight: 600;
    color: var(--color-white);
}

.mc-body {
    margin-top: 18px;
    flex-grow: 1;
}

.mc-body p {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.mc-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mc-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-orange);
}

/* Cards Menores */
.small-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sc-content {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
}

.sc-icon {
    color: var(--color-orange);
    flex-shrink: 0;
}

.sc-icon svg {
    width: 48px;
    height: 48px;
}

.sc-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
    margin-top: 4px;
}

.sc-text p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.sc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.sc-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
}

/* ================= PROCESSO ================= */
.processo {
    padding-top: 72px;
    padding-bottom: 72px;
    scroll-margin-top: 80px;
    background-color: #0A0C0C; /* Leve distinção */
}

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

.process-step {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative;
    align-items: flex-start;
}

/* Vertical divider except on the last one */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.step-icon {
    color: var(--color-orange);
    flex-shrink: 0;
}

.step-icon svg {
    width: 52px;
    height: 52px;
    stroke-width: 2.5px;
}

.step-content {
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.step-num {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* ================= FAQ ================= */
.faq {
    padding-top: 72px;
    padding-bottom: 72px;
    scroll-margin-top: 80px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: flex-start;
}

.faq-right {
    margin-top: 8px; /* Optically aligns the top border with the eyebrow dash */
}

.faq-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* First item needs a top border to match design */
.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--color-orange);
}

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-white);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    color: var(--color-orange);
}

.faq-answer {
    padding-bottom: 24px;
    padding-right: 32px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ================= CONTATO ================= */
.contato {
    padding-top: 72px;
    padding-bottom: 64px;
    scroll-margin-top: 80px;
}

.contato-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 45%, rgba(255, 255, 255, 0.025) 100%);
    background-color: rgba(12, 16, 15, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.contato-preheading {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contato-content h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    color: var(--color-white);
}

.contato-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.btn-contato {
    flex-shrink: 0;
}

/* ================= RODAPÉ ================= */
.footer {
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #080A0A; /* Charcoal slightly darker */
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-logo {
    height: auto;
    width: clamp(170px, 15vw, 190px);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-orange);
}

.footer-nav svg {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.footer-nav a:hover svg {
    color: var(--color-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--color-text-muted);
}

.fb-right {
    display: flex;
    gap: 32px;
}

.fb-right a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fb-right a:hover {
    color: var(--color-white);
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 1024px) {
    .sobre {
        --sobreposicao: 80px;
    }
    
    .container {
        width: calc(100% - 64px);
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .hero-title {
        font-size: clamp(40px, 4.5vw, 56px);
    }
    
    .hero-signature {
        top: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-card {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mc-illustration {
        min-height: 180px;
    }

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

    .process-step:nth-child(2)::after,
    .process-step:last-child::after {
        display: none;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .sobre {
        --sobreposicao: -24px; /* Adiciona um espaço extra ao invés de sobrepor, descolando os elementos */
    }
    
    .sobre-card {
        grid-template-columns: 1fr;
    }
    
    .sobre-media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: auto;
        max-height: none;
    }
    
    .sobre-img {
        object-fit: contain;
        object-position: center top;
        transform: scale(1);
        mask-image: linear-gradient(to top, transparent 0%, black 20%);
        -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
    }
    
    .sobre-divider {
        width: calc(100% - 64px);
        height: 1px;
        margin: 0 auto;
    }
    
    .sobre-content {
        padding: 0 32px 24px;
        margin-top: -16px;
        position: relative;
        z-index: 2;
    }

    .sobre-benefits {
        padding: 24px 32px 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .main-card {
        grid-column: span 1;
    }

    .mc-content {
        padding: 24px;
    }

    .small-card {
        padding: 24px;
    }

    .mc-icon svg,
    .sc-icon svg {
        width: 38px;
        height: 38px;
    }

    .mw-front {
        height: 140px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-step::after {
        display: none;
    }

    .servicos, .processo, .faq {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .contato {
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .contato-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 24px;
    }

    .btn-contato {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }

    .footer-heading {
        margin-bottom: 12px;
    }

    .footer-nav {
        gap: 4px;
    }

    .footer-nav a, .fb-right a {
        padding: 6px 0;
        display: inline-flex;
        align-items: flex-start;
        line-height: 1.4;
    }

    .footer-nav a svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .fb-right {
        flex-direction: column;
        gap: 8px;
    }

    .container {
        width: calc(100% - 48px);
    }

    .header-container {
        height: 72px;
    }

    .desktop-only { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        flex-direction: column;
        padding: 32px 24px;
        gap: 32px;
        border-bottom: 1px solid var(--color-border);
        
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 18px;
        display: block;
        text-align: center;
    }
    
    .mobile-only { 
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .mobile-only .btn {
        width: 100%;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        margin: 0 auto;
        padding-top: 0;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .hero-media {
        justify-content: center;
    }
    
    .hero-signature {
        position: relative;
        top: auto;
        right: auto;
        align-items: center;
        text-align: center;
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 40px);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ================= REVEAL ANIMATIONS ================= */
.js-loaded .js-reveal:not(.is-revealed) {
    opacity: 0;
    transform: translateY(28px);
}

.js-loaded .cta-reveal:not(.is-revealed) {
    opacity: 0;
    transform: translateY(22px);
}

.js-reveal {
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-reveal {
    transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-revealed {
    /* Cleanup: remove will-change automatically or use defaults */
    transform: none; /* helps reset some specific hover contexts, but since we rely on transitions fading to default, we don't strictly need to force it unless needed */
}

@media (min-width: 769px) {
    .delay-90 { transition-delay: 90ms; }
    .delay-100 { transition-delay: 100ms; }
    .delay-120 { transition-delay: 120ms; }
    .delay-200 { transition-delay: 200ms; }
    .delay-300 { transition-delay: 300ms; }
    .delay-400 { transition-delay: 400ms; }
}

@media (max-width: 768px) {
    .js-reveal, .cta-reveal {
        transition-duration: 500ms;
    }
    .js-loaded .js-reveal:not(.is-revealed) {
        transform: translateY(16px);
    }
    
    .js-loaded .cta-reveal:not(.is-revealed) {
        transform: translateY(16px);
    }

    /* Remove delays on mobile to prevent staggering empty space */
    .delay-90, .delay-100, .delay-120, .delay-200, .delay-300, .delay-400 {
        transition-delay: 0ms !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal, .cta-reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ================= PORTFOLIO PAGE ================= */
.portfolio-hero {
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 48px;
}
@media (min-width: 1024px) {
    .portfolio-hero {
        padding-top: calc(var(--header-height) + 80px);
        padding-bottom: 56px;
    }
}

.portfolio-title {
    font-size: clamp(40px, 4.5vw, 64px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}
.portfolio-title .line {
    display: block;
}
.portfolio-title .text-white {
    color: var(--color-white);
}
.portfolio-title .highlight {
    color: var(--color-orange);
}
.portfolio-desc {
    font-size: clamp(16px, 1.2vw, 18px);
    max-width: 620px;
    color: var(--color-gray);
    line-height: 1.6;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
@media (min-width: 1024px) {
    .portfolio-list {
        gap: 80px;
    }
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 768px) {
    .project-item {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
}
@media (min-width: 1024px) {
    .project-item {
        gap: 40px;
    }
}

.project-media {
    flex: 0 0 100%;
    cursor: pointer;
    transition: transform 300ms ease;
}
@media (min-width: 768px) {
    .project-media {
        flex: 0 0 64%;
    }
}
.project-media:hover .browser-frame {
    border-color: rgba(255, 255, 255, 0.2);
}

.browser-frame {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-surface);
    transition: border-color 300ms ease;
}
.bf-header {
    height: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}
.bf-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.bf-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.bf-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.placeholder-bg {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.placeholder-text {
    color: var(--color-gray);
    font-size: 14px;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Alinha o bloco centralizado verticalmente caso a altura exceda */
}
.pi-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.pi-meta .pi-num {
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 500;
}
.pi-meta .pi-dash {
    width: 24px;
    height: 1px;
    background-color: var(--color-orange);
}
.pi-meta .pi-cat {
    color: var(--color-orange);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.project-info h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--color-white);
}
.project-info p {
    color: var(--color-text-muted);
    font-size: clamp(16px, 1.2vw, 17px);
    line-height: 1.6;
    margin-bottom: 16px;
}
.pi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pi-tags .tag {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}
.pi-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-explore {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
}
.btn-explore .btn-icon {
    margin-left: 8px;
}
.link-external {
    font-size: 14px;
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.link-external:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.project-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
}

.portfolio-cta {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Modal Dialog */
.project-modal {
    border: none;
    background: transparent;
    padding: 0;
    margin: auto;
    max-width: 1100px;
    width: 95%;
    max-height: 95vh;
}
.project-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}
.modal-content {
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
    overflow: hidden;
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 300ms ease;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}
.modal-body {
    overflow-y: auto;
    padding: 32px 24px;
}
@media (min-width: 768px) {
    .modal-body {
        padding: 48px;
    }
}
.modal-split {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
@media (min-width: 1024px) {
    .modal-split {
        flex-direction: row;
        gap: 48px;
    }
}
.modal-split-info {
    flex: 1;
}
.modal-split-media {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.modal-split-media img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
