/* style.css - Configurações Globais Borba Studio */
:root {
  --laranja-borba: #e55c00;
  --fundo-preto: #262626;
  --fundo-cinza: #ededed;
  --texto-branco: #ffffff;
  --texto-escuro: #2a2a2a;
  --card-bg: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    height: auto;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: var(--fundo-preto);
    color: var(--texto-branco);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

#portfolio,
#servicos {
    scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ======== COMPONENTES ======== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--laranja-borba);
    color: var(--texto-branco);
    border: none;
}
.btn-primary:hover {
    background-color: #cc5200;
}

.btn-outline {
    background-color: transparent;
    color: var(--laranja-borba);
    border: 1px solid var(--laranja-borba);
}
.btn-outline:hover {
    background-color: var(--laranja-borba);
    color: var(--texto-branco);
}

.btn-card {
    background-color: var(--laranja-borba);
    color: var(--texto-branco);
    border: none;
    width: 100%;
    border-radius: 12px;
    padding: 16px 0;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
}
.btn-card:hover {
    background-color: #cc5200;
}

.text-center {
    text-align: center;
    display: block;
    box-sizing: border-box;
}


/* ======== LOGO DO CABEÇALHO (TOPO) ======== */
.logo {
    display: flex;
    align-items: center; /* Centraliza a área da logo verticalmente */
    height: 100%;
}

header .logo-img {
    width: 150px !important; 
    height: auto;
    display: block;
}


/* ======== CABEÇALHO ======== */
header {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 999; 
    
    background-color: transparent; 
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    
    /* Aplica os 32px de distância do topo quando está no topo da página */
    padding-top: 32px; 
    padding-bottom: 16px; 
    
    transition: all 0.35s ease-in-out;
}

/* Essa classe será adicionada automaticamente pelo Javascript quando você rolar a tela */
header.scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
    background-color: rgba(38, 38, 38, 0.85); 
    backdrop-filter: blur(12px); /* Mantém o Efeito Vidro bonito no desktop */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.header-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 clamp(20px, 8vw, 140px); /* Margem lateral unificada para alinhar com o texto */
    max-width: none;
}

nav.desktop-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

nav.desktop-menu ul {
    display: flex;
    flex-direction: row; /* Coloca 'Quem sou eu' e 'Serviços' lado a lado */
    align-items: center;
    gap: 3vw;
    margin: 0;
    padding: 0;
}

nav.desktop-menu ul li {
    list-style: none; /* Remove bolinhas da lista */
}

nav.desktop-menu ul li a {
    color: var(--texto-branco);
    font-weight: 300;
    font-size: clamp(14px, 1.1vw, 18px);
    transition: color 0.3s;
}

nav.desktop-menu ul li a:hover {
    color: var(--laranja-borba);
}

header .btn-primary {
    padding: clamp(10px, 0.7vw, 14px) clamp(20px, 1.6vw, 32px);
    font-size: clamp(13px, 0.85vw, 15px);
    border-radius: 50px;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-menu-icon {
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: none;
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    padding: 4px;
}

/* Esconde a gaveta do menu de celular no computador */
.mobile-menu {
    display: none; 
}


/* ======== HERO SECTION (Layout Encaixe Perfeito - 100% da Tela) ======== */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 560px;

    background-color: var(--fundo-preto);
    background-image: url('./background/hero section/hero section.webp');
    background-size: cover; 
    
    background-position: right center; 
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center; 

    transform: translateZ(0); 
    will-change: transform;
}

.hero-content {
    position: relative;
    padding-left: 8vw; 
    width: 100%;
    max-width: 850px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    /* Aumentei levemente o tamanho máximo para 95px para preencher bem o espaço */
    font-size: clamp(48px, 6.5vw, 95px); 
    font-weight: 700;
    line-height: 1.05; 
    letter-spacing: -2px; /* Mantém o aspecto moderno de letras juntinhas */
    margin-bottom: 2.5vw; /* Distância perfeita até o botão */
}

.hero-title .text-destaque {
    color: var(--laranja-borba);
}

.hero-content .hero-btn {
    font-size: clamp(14px, 1vw, 16px);
    padding: 16px 40px; 
    border-width: 2px;
    border-radius: 50px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.4s ease;
}

.hero-content .hero-btn:hover {
    background-color: var(--laranja-borba);
    color: var(--texto-branco);
    transform: translateY(-3px);
}

 .mobile-br {
        display: none;
}

/* ======== TIPOGRAFIA BASE (Usada no Portfólio) ======== */
.section-title {
    font-size: clamp(28px, 2.8vw, 56px);
    font-weight: 700;
    margin-bottom: 1vw;
}
.section-title.dark-text {
    color: var(--texto-escuro);
    text-align: left;
}
.section-title .highlight {
    color: var(--laranja-borba);
}

/* ======== PORTFÓLIO ======== */
.portfolio {
    position: relative;
    width: 100%;
    background-color: var(--fundo-cinza); /* Mantém a cor original do seu projeto */
    aspect-ratio: 16 / 9; /* Mantém a altura exata da Hero Section */
    height: auto;
    min-height: 680px;
    padding: 5vw 0;
    z-index: 5;
}

.portfolio .container {
    width: 100%;
    max-width: none !important;
    padding: 0 clamp(20px, 8vw, 140px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribui Título (topo), Filtros (meio) e Grid (fundo) */
}

.portfolio-header {
    display: flex;
    flex-direction: column; /* Força o texto a ficar abaixo do título */
    justify-content: flex-start;
    align-items: flex-start; /* Alinha ambos à esquerda */
    width: 100%;
    margin-bottom: 2vw; 
    gap: 1vw; /* Dá um respiro elegante entre o título e o parágrafo */
}

.portfolio .section-title.dark-text {
    font-size: clamp(26px, 2.5vw, 50px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.portfolio .section-subtitle_2 {
    font-size: clamp(15px, 1.1vw, 19px); /* Tamanho ajustado para não brigar com o título */
    font-weight: 400; /* Corrigido para um peso de fonte válido */
    color: #4a4a4a; /* Um cinza sutil para diferenciar do título que é preto */
    line-height: 1.7; /* Aumenta o espaçamento entre as linhas para facilitar a leitura */
    margin: 0;
    max-width: 700px;
}

.portfolio-filters-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2vw; /* Distância confortável entre os filtros e os cards */
}

.portfolio-filters {
    display: flex;
    gap: 2vw; /* Distância entre cada palavra */
}

.filter {
    cursor: pointer;
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--laranja-borba);
    opacity: 0.4; /* Deixa o laranja bem mais clarinho */
    font-weight: 400;
    padding: 0.5vw 1vw;
    border: none; /* Remove a borda/caixinha */
    background: transparent; /* Remove o fundo */
    transition: all 0.3s ease;
}

.filter:hover {
    opacity: 0.7; 
}
.filter.active {
    opacity: 1; /* Laranja 100% forte */
    font-weight: 700; /* Negrito */
    border: none; 
    background: transparent; 
}

/* Carrossel e Grid de Cards */
.portfolio-carousel {
    position: relative;
    width: 100%;
}

.portfolio-carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 8px 0 18px;
    margin: -8px 0 -18px;
}

.portfolio-grid {
    display: flex;
    gap: 2vw; /* Um respiro muito bom entre os cards */
    width: 100%;
    max-width: 100%; /* Permite que ocupe todo o container definido pelos 8vw das margens laterais */
    margin: 0 auto;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.portfolio-item {
    flex: 0 0 calc((100% - 8vw) / 5);
    width: calc((100% - 8vw) / 5);
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #e5e5e5;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08); /* Sombra sutil para não parecerem grudados no fundo */
}

/* Setas laterais minimalistas do Carrossel de Cards (Desktop) */
.carousel-card-btn {
    position: absolute;
    top: calc(50% - 1vw);
    transform: translateY(-50%);
    width: clamp(36px, 2.8vw, 48px);
    height: clamp(36px, 2.8vw, 48px);
    padding: 0;
    background: transparent;
    color: var(--laranja-borba);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.carousel-card-btn svg {
    width: 100%;
    height: 100%;
}

.carousel-card-btn.prev {
    left: clamp(-54px, -3.8vw, -22px);
}

.carousel-card-btn.next {
    right: clamp(-54px, -3.8vw, -22px);
}

.carousel-card-btn:hover:not(:disabled) {
    color: #cc5200;
    transform: translateY(-50%) scale(1.18);
}

.carousel-card-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

/* Indicadores (Dots) do Carrossel de Cards */
.portfolio-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.4vw;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50px;
    background-color: rgba(229, 92, 0, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(229, 92, 0, 0.6);
}

.carousel-dot.active {
    width: 28px;
    background-color: var(--laranja-borba);
}

/* Sistema de Slider das fotos */
.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    cursor: pointer;
    touch-action: pan-y pinch-zoom;
    /* Força o processamento na GPU: */
    will-change: transform;
    transform: translateZ(0); 
}

.slider-track img {
    flex: 0 0 100%; /* Força a imagem a ter 100% da largura do novo card ampliado */
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    color: var(--laranja-borba);
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}
.nav-arrow.prev { left: 15px; }
.nav-arrow.next { right: 15px; }

/* Modal de Visualização da Foto */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.92);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 88vh;
    max-height: 85dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y pinch-zoom;
}

.close-modal {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: max(30px, env(safe-area-inset-right));
    color: #fff;
    font-size: 40px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    padding: 6px 12px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.modal-nav:hover {
    background-color: var(--laranja-borba);
}

.prev-modal { left: 30px; }
.next-modal { right: 30px; }


/* ======== SERVIÇOS (NOVO GRID 4 CARDS) ======== */
.servicos {
    position: relative;
    width: 100%;
    background-color: var(--fundo-preto);

    /* 1. Amarra a altura para ser exatamente igual à Hero Section */
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 620px;

    /* Um respiro em cima e embaixo */
    padding: 6vw 0;
    z-index: 5;
}

.servicos .container {
    width: 100%; /* Removemos os 85vw fixos */
    max-width: none;
    padding: 0 clamp(20px, 8vw, 140px); /* Usa a mesma margem lateral da Hero e Portfólio */
    margin: 0 auto;
    
    /* 2. Faz o conteúdo preencher toda a altura disponível e se distribuir */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* Distribui os textos e os cards uniformemente */
    text-align: center;
}

/* Pequeno ajuste nas margens dos textos para a distribuição funcionar perfeitamente */
.section-subtitle {
    color: var(--laranja-borba);
    font-size: clamp(12px, 0.9vw, 15px);
    letter-spacing: 0.15vw;
    text-transform: uppercase;
    margin-bottom: 0;
    font-weight: 600;
}

.servicos .section-title {
    font-size: clamp(30px, 3.5vw, 64px); /* Aumentado levemente para combinar com o título do portfólio */
    font-weight: 700;
    margin-bottom: 0; 
    text-align: center; 
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Mantém os 4 cards lado a lado */
    gap: 1.5vw;
    margin-top: 0; /* Removida margem fixa para o flexbox gerenciar o espaço */
    width: 100%;
}

.servico-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: clamp(28px, 2.4vw, 42px) clamp(20px, 1.8vw, 32px);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.servico-card:hover {
    transform: translateY(-5px);
}

.servico-icon {
    height: clamp(28px, 2.8vw, 46px);
    margin-bottom: clamp(16px, 1.5vw, 26px);
}

.servico-icon svg {
    height: 100%;
    width: auto;
    stroke: #666;
}

.servico-title {
    color: var(--laranja-borba);
    font-size: clamp(20px, 1.7vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(12px, 1.1vw, 20px);
}

.servico-desc {
    color: #d0d0d0;
    font-size: clamp(14px, 1vw, 17px);
    font-weight: 300;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: clamp(18px, 1.6vw, 28px);
}

.servicos .btn-card {
    border-radius: 12px;
    padding: clamp(12px, 1vw, 16px) 0;
    font-size: clamp(14px, 1.05vw, 17px);
    margin-top: auto;
}

/* Card com imagem de fundo - Ensaio Fotográfico */
.card-ensaio {
    background-image: linear-gradient(rgba(38, 38, 38, 0.75), rgba(38, 38, 38, 0.85)), url('./servicos/ensaio.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent; 
}

/* Card com imagem de fundo - Cobertura Fotográfica */
.card-cobertura {
    background-image: linear-gradient(rgba(38, 38, 38, 0.75), rgba(38, 38, 38, 0.85)), url('./servicos/cobertura.webp');
    background-size: cover;
    background-position: 50% 20%;
    background-repeat: no-repeat;
    background-color: transparent; 
}

.card-identidade {
    background-image: linear-gradient(rgba(38, 38, 38, 0.75), rgba(38, 38, 38, 0.85)), url('./servicos/identidade.webp');
    background-size: cover;
    background-position: 50% 20%;
    background-repeat: no-repeat;
    background-color: transparent; 
}

.card-posts {
    background-image: linear-gradient(rgba(38, 38, 38, 0.75), rgba(38, 38, 38, 0.85)), url('./servicos/posts.webp');
    background-size: cover;
    background-position: 50% 20%;
    background-repeat: no-repeat;
    background-color: transparent; 
}

.texto-branco {
    color: var(--texto-branco); /* Usa a variável de cor branca que você já tem no topo do seu CSS */
}


/* ======== RODAPÉ ======== */
footer {
    position: relative;
    width: 100%;
    background-color: #262626;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3.5vw 0 2vw; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

footer .container {
    width: 100%;
    max-width: none;
    padding: 0 clamp(20px, 8vw, 140px);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5vw;
}

.footer-social {
    display: flex;
    align-items: center;
}

.instagram-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 50px;
    background-color: transparent;
    border: 1.5px solid var(--laranja-borba);
    color: var(--laranja-borba);
    font-size: clamp(13px, 0.95vw, 16px);
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.instagram-badge svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.instagram-badge:hover {
    background-color: var(--laranja-borba);
    color: var(--texto-branco);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: clamp(12px, 0.95vw, 15px);
    padding-top: 1.8vw;
    border-top: 1px solid #333;
}

#rodape .logo-img {
    width: 150px !important;
    height: auto;
    margin: 0 auto;
}

.footer-credit {
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.footer-credit:hover {
    color: var(--laranja-borba);
}

/*====== RESPONSIVIDADE ========*/

/* TABLETS, TELAS INTERMEDIÁRIAS E MONITORES NA VERTICAL (até 993px ou em modo retrato/em pé) */
@media (max-width: 993px), (orientation: portrait) {

    /* 1. Libera a altura 16:9 das seções para não achatar nem vazar em telas verticais */
    .hero, .portfolio, .servicos {
        aspect-ratio: auto !important;
        height: auto !important;
    }

    .hero {
        min-height: 58vh;
        padding: 130px 0 80px;
        background-position: 70% center;
    }

    .portfolio {
        padding: 75px 0;
        min-height: auto;
    }

    .portfolio-header {
        margin-bottom: 32px;
        gap: 12px;
    }

    .portfolio-filters-wrapper {
        margin-bottom: 32px;
    }

    /* 2. Corrige o texto do banner */
    .hero-content {
        max-width: 100%;
        padding-left: clamp(20px, 6vw, 90px);
        padding-right: clamp(20px, 6vw, 90px);
        left: 0;
        margin-top: 20px;
    }

    .desktop-br {
        display: block;
    }
    
    .hero-title {
        font-size: clamp(36px, 5vw, 58px); /* Ajusta o texto para tablet e monitor vertical */
    }

    .servicos {
        padding: 80px 0; /* Dá respiro extra para não esmagar o footer */
        min-height: auto;
    }

    .servicos .section-subtitle {
        margin-bottom: 10px;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .servicos .section-title {
        margin-bottom: 42px;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px;
    }
    
    .portfolio-carousel-viewport {
        overflow: visible;
        padding: 0;
        margin: 0;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px;
        transform: none !important;
    }

    .portfolio-item {
        flex: none;
        width: 100%;
        aspect-ratio: 9 / 16;
    }

    .carousel-card-btn,
    .portfolio-carousel-dots {
        display: none;
    }

    /* Garante que o footer fique sempre na camada da frente */
    footer {
        position: relative;
        z-index: 10;
        padding: 40px 0 28px;
    }
}

/* CELULARES (Telas pequenas, até 768px: Android e iPhone) */
@media (max-width: 768px) {
    /* --- Header & Mobile Menu --- */
    header,
    header.scrolled {
        padding-top: max(14px, env(safe-area-inset-top));
        padding-bottom: 14px;
    }

    header .logo-img {
        width: clamp(110px, 32vw, 135px) !important;
    }

    .header-container {
        padding: 0 20px;
        justify-content: space-between;
    }

    .desktop-menu {
        display: none !important; 
    }

    .desktop-btn {
        display: inline-block !important; 
        font-size: 12px !important; 
        padding: 8px 16px !important; 
        border-radius: 50px !important;
        margin-left: auto; 
        margin-right: 12px; 
    }

    .mobile-menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
        font-size: 28px;
        color: var(--texto-branco);
        cursor: pointer;
    }

    .mobile-menu {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.97);
        padding: 28px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

    .mobile-menu.active {
        display: block; 
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .mobile-menu ul li a {
        display: inline-block;
        padding: 6px 16px;
        font-size: 18px;
        font-weight: 500;
        color: var(--texto-branco);
    }
    
    /* --- Otimização do Cabeçalho Mobile --- */
    header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(38, 38, 38, 0.98); /* Fundo sólido escuro em vez de vidro para não travar */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* --- Hero Section Mobile (Compatível com barra dinâmica do Safari iOS) --- */
    .hero {
        aspect-ratio: auto; 
        min-height: 100vh;
        min-height: 100svh;
        padding: 100px 0 50px;
        background-position: 65% center; 
        background-image: linear-gradient(to right, rgba(38, 38, 38, 0.95) 0%, rgba(38, 38, 38, 0.65) 60%, rgba(38, 38, 38, 0.3) 100%), url('./background/hero section/hero section.webp');
    }

    .hero-content {
        position: relative;
        width: 100%;
        margin-top: 40px; 
        padding: 0 20px;
        z-index: 2; 
    }
    
    .desktop-br {
        display: block; 
    }

    .mobile-br {
        display: block; 
    }
    
    .hero-title {
        font-size: clamp(34px, 9.5vw, 42px);
        margin-bottom: 28px; 
        text-shadow: none; 
    }
    
    .hero-content .btn-outline {
        font-size: 15px; 
        padding: 13px 28px; 
        border-width: 2px;
        border-radius: 50px; 
        background-color: transparent; 
    }

    /* --- Portfólio Mobile --- */
    .portfolio {
        aspect-ratio: auto;
        min-height: auto;
        padding: 60px 0;
    }

    .portfolio-header { 
        margin-bottom: 28px;
    }
    
    .portfolio .container { 
        padding: 0 20px; 
    }

    .portfolio .section-title.dark-text {
        font-size: 32px;
    }

    .portfolio .section-subtitle_2 {
        font-size: 15px; /* Tamanho fixo e confortável para telas pequenas */
        line-height: 1.6;
        margin-top: 10px;
    }

    .portfolio-filters-wrapper {
        margin-bottom: 24px;
    }

    .filter {
        font-size: 16px;
        padding: 8px 12px;
    }

    .portfolio-filters {
        gap: 12px;
        margin-bottom: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portfolio-filters .filter { 
        font-size: 16px; 
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr; 
        gap: 24px;
    }

    .portfolio-item {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        height: auto !important; 
        aspect-ratio: 9 / 16 !important;
    }

    /* --- Serviços Mobile --- */
    .servicos {
        height: auto !important; 
        padding: 65px 0; 
    }
    
    .servicos .container {
        padding: 0 20px;
    }

    .section-subtitle {
        font-size: 14px; 
        letter-spacing: 3px;
        margin-bottom: 12px;
    }
    
    .servicos .section-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr; 
        gap: 24px;
    }
    
    .servico-card {
        padding: 36px 26px;
        border-radius: 20px;
    }
    
    .servico-icon {
        height: 42px;
        margin-bottom: 18px;
    }
    
    .servico-title {
        font-size: 25px;
        margin-bottom: 14px;
    }
    
    .servico-desc {
        font-size: 15px;
        margin-bottom: 22px;
    }
    
    .servicos .btn-card { 
        font-size: 15px; 
        padding: 15px 0; 
        border-radius: 12px;
    }

    /* --- Rodapé Mobile e iOS --- */
    footer {
        padding: 40px 0 max(24px, env(safe-area-inset-bottom));
    }

    footer .container {
        padding: 0 20px;
    }

    .footer-top {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 22px;
        text-align: center;
        margin-bottom: 28px;
    }

    .footer-top .logo,
    .footer-top .logo a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
        width: 100%;
    }

    .instagram-badge {
        font-size: 15px;
        padding: 10px 22px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        font-size: 13px;
        padding-top: 20px;
    }

    .close-modal {
        top: max(16px, env(safe-area-inset-top));
        right: 20px;
        font-size: 36px;
    }

    .modal-nav {
        font-size: 28px;
        padding: 10px 16px;
    }

    .prev-modal { left: 12px; }
    .next-modal { right: 12px; }
}

/* CELULARES PEQUENOS (até 380px: iPhone SE, Mini, Android compactos) */
@media (max-width: 380px) {
    .header-container {
        padding: 0 14px;
    }

    header .logo-img {
        width: 100px !important;
    }

    .desktop-btn {
        font-size: 11px !important;
        padding: 7px 12px !important;
        margin-right: 8px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-content .btn-outline {
        padding: 11px 22px;
        font-size: 13px;
    }

    .portfolio .container,
    .servicos .container,
    footer .container {
        padding: 0 16px;
    }

    .portfolio .section-title.dark-text,
    .servicos .section-title {
        font-size: 26px;
    }

    .servico-card {
        padding: 28px 18px;
    }

    .instagram-badge {
        font-size: 14px;
        padding: 9px 18px;
    }
}

/* CELULARES NA HORIZONTAL (Landscape com pouca altura) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 110px 0 50px;
    }

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

    .hero-title {
        font-size: clamp(28px, 5vw, 40px);
        margin-bottom: 18px;
    }
}

/* TELAS GRANDES / ULTRA-WIDE (acima de 1600px) */
@media (min-width: 1600px) {
    .hero-content {
        max-width: 950px;
    }
}
