/* ==========================================================================
   1. IMPORTAÇÕES E CONFIGURAÇÃO DE FONTES LOCAIS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400&display=swap');

@font-face {
    font-family: 'Neusharp';
    src: url('../fonts/Neusharp-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. VARIÁVEIS DA PALETA DE CORES E TIPOGRAFIA
   ========================================================================== */
:root {
    /* Cores do Projeto */
    --bg-black: #000000;       /* Preto absoluto para o body */
    --bg-block: #111111;       /* Cinza escuro para blocos/cards/formulários */
    --border-color: #222222;   /* Linhas de divisão e bordas sutis */
    --text-white: #FFFFFF;     /* Tipografia principal */
    --text-gray: #666666;      /* Subtítulos e textos secundários */
    
    /* Fontes */
    --font-heading: 'Neusharp', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ==========================================================================
   3. RESET E CONFIGURAÇÕES BASE DO SISTEMA
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-white);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Aplicação da Neusharp para Títulos, Subtítulos, Menus e Botões - APENAS INICIAIS MAIÚSCULAS */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: capitalize !important; /* Força apenas a primeira letra maiúscula em todos os títulos */
}

.pill-nav, .btn, .stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Textos corridos mantêm-se na Montserrat Regular */
p, span, label, input, textarea {
    font-family: var(--font-body);
}

/* Contentor Estrutural Unificado conforme especificado (1280px com 100% min-width/width) */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   4. CABEÇALHO (HEADER) COM EFEITO SLIDING PILL E CORREÇÃO DE COR
   ========================================================================== */
.main-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}

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

.logo img {
    height: 15px;
    width: auto;
    display: block;
}

/* Pílula maior (Menu Principal transparente com 46px de altura) */
.pill-nav {
    background: transparent;
    border: 1px solid var(--border-color);
    height: 46px;
    padding: 5px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

/* Indicador que desliza no fundo (Pílula branca móvel de 36px) */
.pill-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    height: 36px;
    background-color: var(--text-white);
    border-radius: 40px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    pointer-events: none;
    width: 0;
}

/* Links do menu (15px, Iniciais Maiúsculas, Alinhados ao centro) */
.pill-nav .nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    height: 36px;
    padding: 0 22px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease-in-out;
    background: transparent !important;
    text-transform: capitalize;
    position: relative;
    z-index: 2;
}

/* Inversão de cores no Menu */
.pill-nav:not(:hover) .nav-link.active,
.pill-nav .nav-link:hover {
    color: var(--bg-black);
}

.pill-nav:hover .nav-link.active:not(:hover) {
    color: var(--text-white);
}

/* Botão de Contato CTA (46px de altura, fonte 18px, Iniciais Maiúsculas, Centro Vertical Ajustado) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    height: 46px;
    line-height: 1;
    padding: 0 28px;
    border-radius: 50px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-transform: capitalize;
}

.btn-white {
    background: var(--text-white);
    color: var(--bg-black);
}

.btn-white:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* ==========================================================================
   5. SEÇÃO HERO (PRIMEIRA DOBRA)
   ========================================================================== */
.section-hero {
    width: 100%;
    height: 1080px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* --py é alimentado pelo parallax no main.js e soma-se à centralização */
.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + var(--py, 0px)));
    width: 1920px;
    max-width: none;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 1 !important;
    filter: brightness(1.4) contrast(1.2);
}

.hero-content-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 80px;
}

.hero-logo-tagline {
    width: 640px;
    height: auto;
    flex-shrink: 0;
}

.hero-right-col {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 90px;
    margin-top: 60px;
}

.hero-text-p {
    width: 364px;
    font-family: var(--font-body);
    font-size: 24px;
    color: var(--text-white);
    line-height: 1.5;
}

.hero-author-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    width: 364px;
}

.hero-avatar {
    width: 116px;
    height: 116px;
    object-fit: cover;
    border-radius: 20px;
}

.hero-author-box {
    width: auto;
    height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--bg-block);
    padding: 20px;
    border-radius: 20px;
    flex-grow: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

.author-role {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-white);
    font-weight: 400;
}

/* ==========================================================================
   6. SEÇÃO DE PROJETOS (PORTFÓLIO) & SLIDER APPLE/NETFLIX STYLE
   ========================================================================== */
.section-projetos {
    position: relative;
    width: 100%;
    background-color: var(--bg-black);
    border-top: 1px solid var(--bg-block);
    padding: 100px 0;
    overflow: hidden; 
    margin-top: -90px;               
    z-index: 10;                     
}

.projetos-header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    width: 100%;
}

.projetos-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  
    justify-content: center; 
    position: relative;
    height: 128px;           
    width: 495px;            
}

.projetos-watermark-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 495px;
    height: 128px;
    object-fit: contain;
    transform: translateY(var(--py, 0px));
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.projetos-main-title {
    font-family: var(--font-heading); 
    font-size: 72px;                 
    color: var(--text-white);        
    text-transform: capitalize !important; 
    position: relative;
    z-index: 2;                      
    padding-left: 10px;              
    line-height: 1;
}

.btn-projetos-more {
    display: inline-flex;
    align-items: center;             
    justify-content: center;         
    width: auto;                     
    height: 46px;                    
    line-height: 1;                  
    background-color: var(--text-white); 
    color: var(--bg-black);          
    font-family: var(--font-heading); 
    font-size: 18px;                 
    font-weight: 700;
    text-decoration: none;
    padding: 0 30px;                 
    border-radius: 50px;             
    text-transform: capitalize;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-projetos-more:hover {
    transform: scale(1.1);           
}

/* --- ESTRUTURA DO CARROSSEL (SLIDER COM ESPAÇADOR FANTASMA) --- */
.projetos-slider-wrapper {
    margin-top: 60px;
    position: relative;
    width: 100%;
}

.projetos-slider-track {
    display: flex;
    gap: 25px;                       
    overflow-x: auto;                
    scroll-snap-type: x mandatory;   
    scroll-behavior: smooth;         
    padding-bottom: 20px;            
    width: 100%;
    
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.projetos-slider-track::-webkit-scrollbar {
    display: none;
}

.slider-spacer {
    flex: 0 0 max(20px, calc((100vw - 1280px) / 2 + 20px));
    width: max(20px, calc((100vw - 1280px) / 2 + 20px));
    height: 1px;
    scroll-snap-align: start;        
    pointer-events: none;
    flex-shrink: 0;
}

.projeto-slide {
    flex: 0 0 865px;                 
    width: 865px;                    
    height: 547px;                   
    scroll-snap-align: start;        
    position: relative;
    border-radius: 32px !important;   
    overflow: hidden !important;      
    border: 1px solid #1a1a1a;        
    background-color: var(--bg-block);
    flex-shrink: 0;
}

.projeto-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.projeto-slide:hover img {
    transform: scale(1.03);          
}

.projetos-nav-buttons {
    display: flex;
    justify-content: flex-end;       
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-block); 
    border: 1px solid var(--border-color);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.slider-btn:hover {
    transform: scale(1.1);           
    background-color: #1a1a1a;
    border-color: #333333;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   7. SEÇÃO SOBRE (ANCORAGEM RIGOROSA À ESQUERDA - APENAS CORTE À DIREITA)
   ========================================================================== */
.section-sobre {
    position: relative;
    width: 100%;
    min-height: 650px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-black);
    padding: 100px 0;
    overflow: hidden; /* Corta o excesso de 1600px estritamente na direita da tela */
}

/* Bloco de posicionamento de fundo: Alinhado com a margem esquerda do container geral */
.sobre-bg-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Imagem "studio-prado.png" travada com precisão à esquerda do container */
.sobre-bg-img {
    position: absolute;
    top: 50%;
    left: 20px; /* Alinha perfeitamente com o início do container de 1280px */
    transform: translateY(calc(-50% + var(--py, 0px)));
    width: 1600px;
    min-width: 1600px;
    max-width: none;
    height: auto;
    display: block;
}

/* Container de 1280px em duas colunas sobreposto ao fundo */
.sobre-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Coluna Esquerda: Título H2 e Botão padronizados com a seção Projetos */
.sobre-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: auto;
}

/* Bloco do título emulando a mesma altura de encaixe da seção projetos */
.sobre-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 128px; /* Altura idêntica para manter o alinhamento visual de prumo */
}

.sobre-main-title {
    font-family: var(--font-heading); /* Neusharp */
    font-size: 72px;
    color: var(--text-white);
    text-transform: capitalize !important;
    line-height: 1;
    padding-left: 10px;
}

/* Botão Saiba Mais: perfeitamente idêntico ao botão Ver Mais de Projetos */
.btn-sobre-more {
    display: inline-flex;
    align-items: center;             /* Alinhamento vertical central */
    justify-content: center;         /* Alinhamento horizontal central */
    width: auto;                     
    height: 46px;                    /* Altura idêntica solicitada */
    line-height: 1;                  /* Elimina desvios de linha nativos da fonte */
    background-color: var(--text-white); 
    color: var(--bg-black);          
    font-family: var(--font-heading); /* Neusharp */
    font-size: 18px;                 
    font-weight: 700;
    text-decoration: none;
    padding: 0 30px;                 /* Padding idêntico */
    border-radius: 50px;             
    text-transform: capitalize;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-sobre-more:hover {
    transform: scale(1.1);           /* Animação elástica de rollover scale 1.1 */
}

/* Coluna Direita: Largura exata de 640px e alinhada ao lado direito do container */
.sobre-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
    width: 640px;                    /* Largura exata de 640px solicitada */
    margin-left: auto;               /* Empurra a coluna para o limite direito do container */
}

.sobre-text-p {
    width: 640px;                    /* Largura do parágrafo fixada em 640px */
    font-family: var(--font-body);   /* Montserrat Regular */
    font-size: 24px;                 /* Tamanho de fonte 24px solicitado */
    line-height: 1.5;
    color: var(--text-gray); 
}

/* Destaque em branco puro */
.text-highlight {
    color: var(--text-white);
    font-weight: 400;
}

/* Grid horizontal contendo os blocos de estatísticas */
.sobre-stats-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px; /* Distância equilibrada entre as duas colunas de estatísticas */
}

/* Item de estatística empilhando a imagem e a legenda */
.sobre-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px; /* Espaço suave entre a imagem e o texto inferior */
}

.sobre-stat-img {
    height: auto;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

/* Texto branco 18px na fonte Montserrat */
.stat-label-new {
    font-family: var(--font-body);   /* Montserrat */
    font-size: 18px;                 /* Tamanho exato solicitado */
    color: var(--text-white);        /* Branca */
    font-weight: 400;
    line-height: 1.3;
}

/* Foto de fechamento da seção Sobre (1280px de largura útil) */
.sobre-photo-wrapper {
    margin-top: 90px;
}

/* Sem borda nem fundo: o PNG já traz os cantos arredondados */
.sobre-photo {
    width: 100%;
    background-color: transparent;
    line-height: 0;
}

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

/* ==========================================================================
   8. SEÇÃO PERGUNTAS FREQUENTES (ACORDEÃO)
   ========================================================================== */
.section-faq {
    position: relative;
    width: 100%;
    background-color: var(--bg-black);
    /* O respiro superior vem do padding inferior da seção Sobre */
    padding: 0 0 90px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-main-title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.15;
    color: var(--text-white);
    text-align: center;
    text-transform: capitalize !important;
}

.faq-list {
    width: 100%;
    max-width: 800px;
    margin-top: 80px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

/* Botão que dispara a abertura: ocupa toda a linha da pergunta */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-white);
    transition: opacity 0.25s ease;
}

.faq-question:hover {
    opacity: 0.7;
}

.faq-question-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--text-white);
}

/* Ícone desenhado em CSS: "+" que gira para virar "×" quando aberto */
.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-icon::after {
    transform: rotate(90deg);
}

.faq-item.is-open .faq-icon::before {
    transform: rotate(45deg);
}

.faq-item.is-open .faq-icon::after {
    transform: rotate(-45deg);
}

/* Painel de resposta com transição de altura controlada via JS */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-gray);
    padding: 0 60px 30px 0;
}

/* ==========================================================================
   9. SEÇÃO CONTATO E FORMULÁRIO
   ========================================================================== */
.section-contato {
    position: relative;
    width: 100%;
    background-color: var(--bg-black);
    padding: 0 0 90px;
}

.contato-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Cartão institucional à esquerda */
.contato-card {
    background-color: var(--bg-block);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    height: 100%;
}

.contato-card-title {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.1;
    color: var(--text-white);
    text-transform: capitalize !important;
}

.contato-card-text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 340px;
}

.contato-social-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: auto;
}

.contato-social-btn {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.contato-social-btn:hover {
    transform: translateY(-4px);
    background-color: #242424;
}

.contato-social-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* impede o flex de achatar o ícone */
    overflow: visible;
}

.contato-social-btn .icon-fill {
    fill: currentColor;
}

.contato-social-btn .icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contato-social-btn .icon-dot {
    fill: currentColor;
    stroke: none;
}

.contato-social-btn span {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-white);
}

/* --- Formulário --- */
.contato-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-field label {
    position: absolute;
    top: 14px;
    left: 20px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-gray);
    pointer-events: none;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background-color: var(--bg-block);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 34px 20px 14px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #3a3a3a;
    background-color: #151515;
}

/* Campo-armadilha para robôs: some da tela sem sumir do DOM */
.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Bloco de opções de serviço */
.form-options {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-block);
    padding: 14px 20px 18px;
}

/* float evita o recorte que o legend abre na borda do fieldset */
.form-options legend {
    float: left;
    width: 100%;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-gray);
    padding: 0;
    margin-bottom: 14px;
}

.form-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    clear: both;
}

.form-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-radio-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s ease;
}

.form-radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-white);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-radio input:checked + .form-radio-mark {
    border-color: var(--text-white);
}

.form-radio input:checked + .form-radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.form-radio input:focus-visible + .form-radio-mark {
    outline: 2px solid #3a3a3a;
    outline-offset: 2px;
}

.form-radio-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-white);
    white-space: nowrap;
}

.btn-form-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background-color: var(--text-white);
    color: var(--bg-black);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    text-transform: capitalize;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-form-submit:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

/* Retorno de envio e validação */
.form-feedback {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-block);
}

.form-feedback--sucesso {
    color: var(--text-white);
    border-color: #2f4d34;
}

.form-feedback--erro {
    color: var(--text-white);
    border-color: #4d2f2f;
}

.form-error {
    font-family: var(--font-body);
    font-size: 11px;
    color: #d98b8b;
    margin-top: 6px;
}

/* ==========================================================================
   10. RODAPÉ
   ========================================================================== */
.main-footer {
    width: 100%;
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-color);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 120px;
    height: auto;
    display: block;
}

.footer-desc {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-top: 28px;
}

.footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-social img {
    height: 100%;
    width: auto;
    display: block;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-white);
    text-transform: capitalize !important;
    margin-bottom: 24px;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

/* Seta em CSS mantém o marcador ">" do layout sem sujar o HTML */
.footer-links-col a::before {
    content: '> ';
    color: var(--text-gray);
}

.footer-links-col a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-location-text {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-gray);
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 26px;
}

.footer-contact-item a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-contact-item a:hover {
    opacity: 0.7;
}

.footer-contact-item span {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 26px;
    padding-bottom: 30px;
}

.footer-bottom p,
.footer-credit {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-gray);
}

.footer-credit a {
    color: var(--text-white);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-credit a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   11. PARALLAX E ENTRADA DOS ELEMENTOS AO ROLAR
   ========================================================================== */

/* As classes .reveal só ganham estado inicial quando o JS está ativo,
   assim nada some para quem tem script desligado. */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Escalonamento em cascata dentro de um mesmo grupo */
.js-reveal .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal .reveal[data-delay="3"] { transition-delay: 0.3s; }

/* Quem pediu menos animação no sistema recebe a página estática */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

/* ==========================================================================
   12. RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    /* A altura fixa de 1080px vira fluxo natural fora do desktop */
    .section-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh; /* desconta a barra do navegador no celular */
        padding: 150px 0 80px;
    }

    .hero-content-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-top: 0;
    }

    .hero-logo-tagline {
        width: 100%;
        max-width: 500px;
    }

    .hero-right-col {
        width: 100%;
        max-width: 500px;
        margin-top: 0;
        gap: 50px;
    }

    .projetos-header-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .projetos-title-block, .sobre-title-block {
        align-items: center;
        max-width: 100%;
    }

    .projetos-watermark-img {
        left: 50%;
        transform: translate(-50%, var(--py, 0px));
        max-width: 100%;
        height: auto;
    }
    
    .section-projetos {
        margin-top: 0; 
    }

    .sobre-container {
        flex-direction: column;
        gap: 60px;
    }

    .sobre-left-col, .sobre-right-col {
        width: 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
        margin-left: 0;
    }

    .sobre-text-p {
        width: 100%;
        max-width: 100%;
    }

    /* As duas estatísticas permanecem lado a lado em telas menores */
    .sobre-stats-grid {
        justify-content: center;
        width: 100%;
        flex-wrap: nowrap;
        gap: 30px;
    }

    .sobre-stat-item {
        align-items: center;
        text-align: center;
    }

    .sobre-stat-img {
        max-height: 66px;
    }

    .sobre-photo-wrapper {
        margin-top: 70px;
    }

    .section-projetos,
    .section-sobre {
        padding: 80px 0;
    }

    .section-faq {
        padding: 0 0 70px;
    }

    .faq-list {
        margin-top: 50px;
    }

    .contato-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contato-card-text {
        max-width: 100%;
    }

    .contato-social-buttons {
        margin-top: 10px;
    }

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

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

@media (max-width: 768px) {
    /* Barra colada ao topo para o blur cobrir toda a faixa */
    .main-header {
        top: 0;
        padding: 14px 0;
    }

    .main-header.is-scrolled {
        background-color: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(16px) saturate(150%);
        backdrop-filter: blur(16px) saturate(150%);
        border-bottom-color: var(--border-color);
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .pill-nav {
        width: 330px;
        max-width: 100%;
        justify-content: center;
        margin: 0 auto;
    }

    .btn {
        display: none;
    }

    /* --- HERO: bloco de 300px ancorado na base da tela --- */
    .section-hero {
        justify-content: flex-end;
        padding: 130px 0 40px;
    }

    /* Reduz a escala do detalhe para revelar mais do desenho */
    .hero-bg {
        top: 72%; /* acompanha o conteúdo que desceu */
        width: 140vw;
    }

    .hero-content-container {
        width: 300px;
        max-width: 100%;
        padding: 0;
        gap: 28px;
    }

    .hero-logo-tagline {
        width: 200px;
    }

    .hero-right-col {
        width: 300px;
        max-width: 100%;
    }

    .hero-right-col {
        align-items: flex-start;
        gap: 28px;
    }

    .hero-text-p {
        width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }

    /* O card do autor encolhe junto para fechar nos mesmos 300px */
    .hero-author-wrapper {
        width: 100%;
    }

    .hero-avatar {
        width: 92px;
        height: 92px;
        border-radius: 16px;
    }

    .hero-author-box {
        height: 92px;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .author-name {
        font-size: 15px;
    }

    .author-role {
        font-size: 10px;
    }

    .section-projetos,
    .section-sobre {
        padding: 60px 0;
    }

    .projetos-slider-wrapper {
        margin-top: 35px;
    }

    .projetos-nav-buttons {
        margin-top: 20px;
    }

    .projetos-header-container {
        gap: 25px;
    }

    .projetos-title-block,
    .sobre-title-block {
        height: 90px;
    }

    .sobre-container {
        gap: 40px;
    }

    .sobre-left-col {
        gap: 25px;
    }

    .sobre-right-col {
        gap: 40px;
    }

    .projetos-main-title, .sobre-main-title {
        font-size: 48px;
    }

    /* Botões de seção proporcionalmente menores */
    .btn-projetos-more,
    .btn-sobre-more {
        height: 38px;
        font-size: 15px;
        padding: 0 24px;
    }

    /* Mostra bem mais do detalhe tipográfico ao fundo da seção Sobre */
    .sobre-bg-img {
        left: 50%;
        width: 150vw;
        min-width: 0;
        transform: translate(-50%, calc(-50% + var(--py, 0px)));
    }

    .slider-spacer {
        flex: 0 0 20px;
        width: 20px;
    }
    
    .projeto-slide {
        flex: 0 0 85vw;
        width: 85vw;
        height: 480px;
        max-height: 65vh;
        border-radius: 24px !important;
    }

    .sobre-text-p {
        font-size: 16px;
        line-height: 1.7;
    }

    .sobre-stats-grid {
        gap: 20px;
    }

    .sobre-stat-img {
        max-height: 46px;
    }

    .stat-label-new {
        font-size: 11px;
        line-height: 1.4;
    }

    .sobre-photo-wrapper {
        margin-top: 50px;
    }

    .faq-main-title {
        font-size: 34px;
    }

    .faq-question-text {
        font-size: 16px;
    }

    .faq-answer p {
        padding-right: 0;
    }

    .section-contato {
        padding-bottom: 70px;
    }

    .contato-card {
        padding: 36px 28px;
    }

    .contato-card-title {
        font-size: 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options-grid {
        flex-direction: column;
        gap: 12px;
    }

    .main-footer {
        padding-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-bottom: 50px;
    }

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