/* ==========================================================================
   DESIGN SYSTEM - KRAFT ARQUITETURA MINIMALISTA
   ========================================================================== */

:root {
    /*
     * COLOR PALETTE — CARLOS ALBERTO ARQUITETURA
     * Inverted Minimalist Dark mode
     */
    --color-bg-primary: #1c1c1a;        /* Dark Charcoal / Black primary bg */
    --color-bg-secondary: #141413;      /* Slightly darker dark charcoal for contrast */
    --color-bg-card: #262624;           /* Dark card/modal background */
    --color-text-primary: #f2efe6;      /* Warm Plaster Light Cream */
    --color-text-muted: #d4d0c5;        /* Light warm linen */
    --color-text-light: #a6a296;        /* Muted light warm gray */
    --color-border-dark: #f2efe6;       /* Light Cream borders */
    --color-border-medium: #5c5950;     /* Muted border */
    --color-border-light: #3d3d3b;      /* Dark subtle border */
    
    /* Fallback accent colors mapped to light cream for the dark mode aesthetic */
    --color-accent-wood: #f2efe6;       
    --color-accent-wood-light: #d4d0c5; 
    --color-accent-green: #f2efe6;      
    --color-accent-green-light: #d4d0c5;
    --color-accent-gold: #f2efe6;       
    --color-modal-overlay: rgba(15, 15, 15, 0.88);

    /* Fonts */
    --font-title: 'Gotham', 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-carousel: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-content: border-box;
    box-sizing: border-box;
    border-radius: 0 !important; /* STRICTLY SQUARE - NO ROUNDED CORNERS */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent; /* Remove tap flash on mobile */
}

a, button, input, textarea, [role="button"] {
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* Custom Selection */
::selection {
    background-color: var(--color-accent-green);
    color: var(--color-bg-card);
}

/* ==========================================================================
   SCROLLBAR STYLING
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-wood);
}

/* ==========================================================================
   PAGE TRANSITION SYSTEM — ARCHITECTURAL CURTAIN WIPE
   ========================================================================== */

/**
 * The curtain is a full-screen overlay rendered on top of every page.
 * On page ENTER: curtain starts fully closed (#contato) and slides right to reveal content.
 * On page EXIT: curtain slides in from the left to cover content, then navigation occurs.
 */
.page-curtain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text-primary); /* Deep charcoal #262626 */
    z-index: 9999;
    pointer-events: none;
    transform: translateY(0);
    will-change: transform;
}

/* State: curtain closed (fully covering the page — set before transition) */
.page-curtain.is-closed {
    transform: translateY(0);
    transition: none;
}

/* State: curtain opening — slides away to the top, revealing the page */
.page-curtain.is-opening {
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

/* State: preparation for closing (start below screen) */
.page-curtain.is-closing-start {
    transform: translateY(100%);
    transition: none;
}

/* State: curtain closing — slides up from bottom to cover the page before navigation */
.page-curtain.is-closing {
    transform: translateY(0);
    transition: transform 0.48s cubic-bezier(0.85, 0, 0.15, 1);
}

/* State: curtain fully gone (hidden) */
.page-curtain.is-open {
    transform: translateY(-100%);
    transition: none;
    pointer-events: none;
}

.page-curtain-label {
    position: absolute;
    bottom: 12%;
    left: 8%;
    color: rgba(28, 28, 26, 0.12);
    font-family: var(--font-title);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

/* Responsive curtain watermark for tablets and mobile devices */
@media (max-width: 768px) {
    .page-curtain-label {
        font-size: clamp(2rem, 7vw, 3.5rem);
        white-space: normal;
        right: 8%;
        line-height: 1.15;
        overflow: visible;
    }
}

.curtain-spinner-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.curtain-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(242, 239, 230, 0.08);
    border-top-color: rgba(242, 239, 230, 0.65);
    border-radius: 50% !important;
    animation: curtainSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.curtain-loader-text {
    font-family: var(--font-title);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(242, 239, 230, 0.35);
    text-transform: uppercase;
}

@keyframes curtainSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   SCROLL-REVEAL & PAGE ENTRANCE ANIMATIONS
   ========================================================================== */

/**
 * Elements with [data-reveal] are invisible on load.
 * The JS IntersectionObserver adds .revealed when they enter the viewport.
 * This creates a staggered slide-up fade-in entrance effect.
 */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.75s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variants for staggered children */
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.35s; }
[data-reveal][data-delay="4"] { transition-delay: 0.5s; }
[data-reveal][data-delay="5"] { transition-delay: 0.65s; }



/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Reduced from 80px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    mix-blend-mode: difference;
    color: #ffffff;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, backdrop-filter 0.4s ease;
}

.main-header.header-solid {
    background-color: rgba(28, 28, 26, 0.58); /* Translucent dark charcoal */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12); /* Subtle semi-transparent light border */
    color: var(--color-text-primary);
    mix-blend-mode: normal;
}

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

.logo-img {
    height: 42px; /* Reduced from 52px */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: invert(1) brightness(0.95); /* Cream color */
}

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

/* Hamburger Menu Button */
.menu-toggle-btn {
    width: 30px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 150;
    padding: 0;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-header.header-solid .bar {
    background-color: var(--color-text-primary);
}

/* Hamburger to X Animation */
.menu-toggle-btn.active .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle-btn.active .bar-2 {
    opacity: 0;
}

.menu-toggle-btn.active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menu Suspenso Horizontal Superior (Header Dropdown) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px; /* 80px header + 60px nav area */
    background-color: rgba(28, 28, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border-medium);
    z-index: 99; /* Sit behind main-header (z-index: 100) */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align links at the bottom */
    padding-bottom: 15px; /* Spacing from bottom border */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.overlay-nav {
    display: flex;
    flex-direction: row; /* Horizontal alignment */
    justify-content: center;
    align-items: center;
    gap: 35px;
    width: 100%;
    padding: 0 5%;
}

.menu-link {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-text-primary);
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-wood);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.menu-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   HERO / HOME SECTION WITH CAROUSEL
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Carousel Container */
.carousel-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    transition: transform 1.4s cubic-bezier(0.85, 0, 0.15, 1);
}

.slide {
    display: block;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
}



/* Homepage Center Logo */
.home-center-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let clicks pass to the slide link underneath */
}

.home-center-logo {
    width: 320px;
    max-width: 80vw;
    height: auto;
    filter: invert(1) brightness(0.95);
    opacity: 0.95;
}

/* Hide header logo only on the Home page (leaves hamburger menu in top-right) */
.home-body .main-header #header-logo {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* ==========================================================================
   SECTIONS LAYOUT
   ========================================================================== */

.section-layout {
    padding: 120px 8%;
    border-bottom: 1px solid var(--color-border-light);
    animation: sectionFadeIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--color-accent-wood);
    font-weight: 600;
}

/* ==========================================================================
   PAGE SECTION SYSTEMS (TABBED NAV ROUTING)
   ========================================================================== */

.content-body {
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    overflow-y: auto;
}

.gallery-body {
    background-color: transparent !important;
    position: relative;
    min-height: 100vh;
}

.gallery-glass-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.backdrop-image {
    position: absolute;
    top: -40px;
    left: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    background-image: url('images/galeria_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px) saturate(1.2) brightness(0.95);
    -webkit-filter: blur(12px) saturate(1.2) brightness(0.95);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: filter, transform;
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 26, 0.45); /* Soft dark tint */
}

.projects-page-section {
    padding-top: 140px;
    padding-bottom: 80px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    max-width: 100%;
}

.projects-page-section .section-header,
.projects-page-section .filter-bar {
    padding: 0 5%;
    box-sizing: border-box;
}

.professional-page-section {
    padding-top: 140px;
}

.about-page-section {
    padding-top: 80px;
}

.contact-page-section {
    padding-top: 160px;
    padding-bottom: 120px;
    min-height: calc(100vh - 60px); /* Updated to match new header height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects-section {
    background-color: transparent !important;
}

/* Category Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    background-color: rgba(38, 38, 38, 0.65);
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-accent-wood);
    border-color: var(--color-accent-wood);
    color: var(--color-bg-card);
}

/* Filter Hide Class */
.featured-project-card.hide {
    display: none !important;
}

.projects-gallery-container.collage-layout {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.project-collage-item {
    width: 100%;
    aspect-ratio: 16 / 10;
    grid-column: span 1 !important;
    border: none;
    background-color: var(--color-bg-primary);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 50%, transparent 90%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 28px 24px;
    z-index: 2;
    opacity: 1; /* Fixo e visível por padrão (ótimo para celulares) */
}

.collage-item-title {
    color: #f2efe6;
    font-family: var(--font-title);
    font-size: 1.15rem; /* Fonte ampliada para melhor legibilidade */
    font-weight: 700;
    letter-spacing: 3px;
    text-indent: 3px;
    margin: 0;
}

/* Efeitos de Hover na Colagem — Apenas Zoom sutil na Imagem */
.project-collage-item:hover .project-img {
    transform: scale(1.06);
}

/* Botão Flutuante do WhatsApp (Minimalista Quadrado Preto) */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent-green);
    color: var(--color-bg-card);
    border: 1px solid var(--color-accent-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(74, 92, 66, 0.35);
    transition: var(--transition-smooth);
}

.whatsapp-float-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover {
    background-color: var(--color-accent-wood);
    color: var(--color-bg-card);
    border-color: var(--color-accent-wood);
}

/* ==========================================================================
   STATS BANNER SECTION
   ========================================================================== */

/* Subtle Profile Stats Row */
.profile-stats-subtle {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 25px;
    flex-wrap: wrap;
}

.stat-subtle-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-subtle-num {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-subtle-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.stat-subtle-sep {
    font-size: 1.2rem;
    color: var(--color-border-light);
    font-weight: 300;
}

/* ==========================================================================
   LEADERSHIP SECTION (Na liderança)
   ========================================================================== */

.professional-page-section {
    border-bottom: 1px solid var(--color-border-light);
    width: 100%;
    padding: 60px 0 0 0 !important; /* Offset top padding to account for fixed header height (60px) */
    overflow: hidden;
}

.prof-image-full-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px); /* Full height minus header on desktop */
    background-color: var(--color-bg-primary);
    overflow: hidden;
    transition: filter 0.6s ease;
}

.prof-image-full-wrapper.active {
    /* Height remains stable at full screen to prevent layout shifts */
}

.prof-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(6%) contrast(1.02) brightness(0.96);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.prof-image-full-wrapper.active .prof-img-full {
    transform: scale(1.02); /* Slight scale zoom when active */
}

/* Drawer Folder Sheet Layout (SOBRE NÓS) */
.prof-drawer-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: var(--color-bg-card); /* Plaster cream card background */
    display: flex;
    flex-direction: column;
    transform: translateY(calc(100% - 64px)); /* Start collapsed (only show handle) */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.prof-drawer-handle {
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background-color: #1c1c1a; /* Cor escura como principal para a fileira */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2efe6; /* Cor clara para a escrita e a seta */
    user-select: none;
    touch-action: none; /* Disables default browser drag behaviors */
}

.prof-drawer-btn-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.prof-drawer-arrow-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

.prof-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 60px 8% 80px 8%;
    opacity: 0; /* Fade in as we pull up */
    transition: opacity 0.4s ease;
}

.prof-drawer-sheet.active .prof-drawer-content {
    opacity: 1;
}

/* Redefine text colors to match the light cream background */
.prof-drawer-content .prof-text-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    color: var(--color-text-primary);
}

.prof-drawer-content .prof-text-left {
    display: flex;
    flex-direction: column;
}

.prof-drawer-content .prof-text-right {
    display: flex;
    flex-direction: column;
}

.prof-drawer-content .profile-name {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.prof-drawer-content .profile-role {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 30px;
    color: var(--color-text-muted);
}

.prof-drawer-content .profile-tagline {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 35px;
    color: var(--color-text-primary);
}

.prof-drawer-content .profile-text {
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 22px;
    text-align: justify;
    color: var(--color-text-muted);
}

.prof-drawer-content .profile-text:last-child {
    margin-bottom: 0;
}

/* White theme stats row */
.prof-drawer-content .profile-stats-subtle {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 30px;
    flex-wrap: wrap;
}

.prof-drawer-content .stat-subtle-num {
    font-size: 2rem;
    color: var(--color-text-primary);
}

.prof-drawer-content .stat-subtle-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.prof-drawer-content .stat-subtle-sep {
    color: var(--color-border-light);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

/* Split Architectural Contact Layout */
.contact-split-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-split-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-huge-title {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.contact-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.contact-divider {
    border: none;
    border-bottom: 1px solid var(--color-text-primary);
    margin: 30px 0;
    width: 100%;
}

.contact-list-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-list-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-list-item .item-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.contact-list-item .item-val {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

.contact-list-item .item-val:hover {
    color: var(--color-text-muted);
}

.contact-socials-flat {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.contact-socials-flat .social-flat-link {
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-socials-flat .social-flat-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.contact-socials-flat .social-flat-link:hover {
    color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Right Column: Architectural Form */
.contact-split-right {
    display: flex;
    flex-direction: column;
}

.architectural-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.form-group-arch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    position: relative;
}

.form-group-arch label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.form-intro-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.form-group-arch input,
.form-group-arch textarea {
    width: 100%;
    background-color: transparent !important;
    border: none;
    border-bottom: 1px solid var(--color-text-primary);
    padding: 12px 0;
    font-size: 1rem;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group-arch input::placeholder,
.form-group-arch textarea::placeholder {
    color: var(--color-text-light);
    opacity: 0.65;
    font-size: 0.9rem;
    font-style: italic;
}

.form-group-arch textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group-arch input:focus,
.form-group-arch textarea:focus {
    border-bottom: 2px solid var(--color-text-primary);
    padding-bottom: 11px;
}

.submit-btn-arch {
    align-self: flex-start;
    background-color: var(--color-text-primary);
    color: var(--color-bg-card);
    padding: 0 40px;
    height: 48px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    border: 1px solid var(--color-text-primary);
    transition: var(--transition-smooth);
    border-radius: 0 !important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.submit-btn-arch:hover {
    background-color: transparent;
    color: var(--color-text-primary);
    cursor: pointer;
}

.success-message-arch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 0;
    text-align: left;
    animation: cardEntrance 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.success-message-arch svg {
    width: 48px;
    height: 48px;
    fill: var(--color-text-primary);
    margin-bottom: 24px;
}

.success-message-arch h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.success-message-arch p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 400px;
    line-height: 1.6;
}

/* Square Map at the Bottom of Contact Section */
.contact-map-block {
    width: 100%;
    height: 480px;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 0; /* Prevents tiny whitespace at the bottom of iframe container */
    display: none; /* Controlled via JS routing */
}

.contact-map-block iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(1) invert(0.9) sepia(0.15) contrast(1.15); /* Architectural dark/linen custom theme */
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .contact-split-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-huge-title {
        font-size: 3.5rem;
        margin-bottom: 25px;
    }
    
    .submit-btn-arch {
        width: 100%;
    }
}

/* ==========================================================================
   FOOTER (ESTILO REFERÊNCIA: MINIMALISTA & RETANGULAR)
   ========================================================================== */

.main-footer {
    background-color: var(--color-bg-secondary); /* Solid dark background */
    padding: 24px 8% 18px; /* Extra compact vertical padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--color-border-light); /* Subtle dark border */
}

.footer-tagline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-indent: 8px; /* Corrects centering offset caused by letter-spacing */
    color: var(--color-text-primary); /* Light cream tagline text */
    margin-bottom: 18px; /* Extra compact margin */
    text-transform: uppercase;
    text-align: center;
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 18px auto; /* Extra compact margin */
    gap: 30px;
}

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

.footer-logo-img {
    height: 32px; /* Reduced from 44px */
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(0.95); /* Invert logo to light cream/white on dark bg */
    transition: var(--transition-smooth);
}

.footer-logo-img:hover {
    transform: scale(1.03);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--color-text-primary); /* Light cream border and icon */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle light border */
    background-color: transparent;
    transition: var(--transition-smooth);
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.footer-social-icon:hover {
    background-color: var(--color-text-primary); /* Cream background on hover */
    color: var(--color-bg-primary); /* Dark charcoal icon on hover */
    border-color: var(--color-text-primary);
}

.footer-social-icon:hover svg {
    transform: scale(1.08);
}

/* Strictly Rectangular Contact Button */
.footer-contact-btn {
    background-color: var(--color-text-primary); /* Light cream background */
    color: var(--color-bg-primary); /* Dark charcoal text */
    padding: 0 32px;
    height: 42px; /* Matches the height of social square boxes exactly */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid var(--color-text-primary);
    transition: var(--transition-smooth);
    border-radius: 0 !important; /* Strictly rectangular! */
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-contact-btn:hover {
    background-color: transparent;
    color: var(--color-text-primary); /* Cream outline on hover */
    border-color: var(--color-text-primary);
}

.footer-copyright {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--color-text-muted); /* Warm linen copyright text for high visibility */
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px; /* Extra compact padding */
}

/* Footer Responsiveness */
@media (max-width: 900px) {
    .footer-main-content {
        flex-direction: column;
        gap: 35px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }
    
    .footer-socials {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   MODAL - PROJECT DETAIL (LEFT IMAGE, RIGHT INFO)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-modal-overlay);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    max-height: 750px;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border-dark);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Left Column: Image */
.modal-left-column {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #111;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #141413;
    flex-shrink: 0;
}

/* Modal Image Carousel */
.modal-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modal-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 28, 26, 0.75);
    color: #f2efe6;
    border: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
    border-radius: 0 !important;
}

.modal-carousel-btn:hover {
    background: var(--color-accent-wood);
    color: var(--color-bg-card);
}

.modal-carousel-prev {
    left: 16px;
}

.modal-carousel-next {
    right: 16px;
}

.modal-carousel-btn svg {
    width: 24px;
    height: 24px;
}

.modal-carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-carousel-dot {
    width: 16px;
    height: 3px;
    background: rgba(242, 239, 230, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
    border-radius: 0 !important;
}

.modal-carousel-dot.active {
    background: var(--color-accent-wood);
}

/* Right Column: Information */
.modal-right-column {
    padding: 60px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

/* Custom Close Button */
.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 12px;
    border: 1px solid var(--color-border-dark);
    background-color: var(--color-bg-primary);
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.modal-close-btn:hover {
    background-color: var(--color-accent-wood);
    color: var(--color-bg-card);
    border-color: var(--color-accent-wood);
}

/* Modal Text Content */
.modal-content-wrapper {
    margin-top: 20px;
}

.modal-project-subtitle {
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--color-text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.modal-project-title {
    font-size: 2.2rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    line-height: 1.1;
}

/* Spec Grid */
.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    padding: 25px 0;
}

.spec-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.modal-project-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.modal-project-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   RESPONSIVENESS — MOBILE-FIRST (COMPREHENSIVE)
   ========================================================================== */

/* ---- Tablet and below (≤ 1024px) ---- */
@media (max-width: 1024px) {
    /* Contact layout stack */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Modal: stack image above info */
    .modal-container {
        grid-template-columns: 1fr;
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
    }

    .modal-left-column {
        height: 320px;
        flex-shrink: 0;
    }

    .modal-right-column {
        padding: 40px 36px;
        overflow-y: visible;
        flex: 1;
    }

    .modal-close-btn {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1100;
    }
}

/* ---- Mobile landscape and small tablets (≤ 768px) ---- */
@media (max-width: 768px) {
    /* Prevent horizontal scroll globally */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Header */
    .main-header {
        padding: 0 18px;
        height: 64px;
    }

    /* Gallery page padding fix for mobile */
    .projects-page-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .professional-page-section {
        padding-top: 100px;
    }

    .contact-page-section {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
        display: block;
    }

    .projects-page-section .section-header,
    .projects-page-section .filter-bar {
        padding: 0 18px;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .logo:hover {
        letter-spacing: 2px; /* Disable hover animation on mobile */
    }

    .logo-img {
        height: 32px; /* Reduced from 38px */
    }

    /* Dropdown menu: taller so links don't overlap header */
    .menu-overlay {
        height: auto;
        min-height: 120px;
        padding: 70px 5% 18px;
        align-items: center;
        justify-content: center;
    }

    .overlay-nav {
        flex-wrap: wrap;
        gap: 12px 22px;
        justify-content: center;
    }

    .menu-link {
        font-size: 0.78rem;
        letter-spacing: 2px;
    }

    /* Hero card */
    .center-card-container {
        width: 88%;
        max-width: 380px;
    }

    .center-card {
        padding: 36px 24px 32px;
    }

    .brand-title {
        font-size: 1.9rem;
        letter-spacing: 6px;
    }

    .brand-line-second {
        font-size: 1.9rem;
        letter-spacing: 6px;
    }

    .brand-subtitle {
        font-size: 0.65rem;
        letter-spacing: 4px;
    }

    .card-btn {
        padding: 15px 14px;
        font-size: 0.78rem;
        min-height: 48px; /* Minimum touch target */
    }

    /* Section padding */
    .section-layout {
        padding: 70px 18px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* Projects gallery: 2 columns on tablet/mobile landscape */
    .projects-gallery-container.collage-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    /* Filter bar: scrollable row */
    .filter-bar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 6px;
        justify-content: flex-start;
        scrollbar-width: none; /* Firefox */
    }

    .filter-bar::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        min-height: 44px; /* Touch target */
        font-size: 0.72rem;
    }

        /* Contact box */
    .contact-box {
        padding: 28px 20px;
    }

    /* Project image ratio */
    .project-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    /* Modal */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        height: 95dvh;
        max-height: none;
        border-radius: 0;
        overflow-y: auto;
    }

    .modal-left-column {
        height: 240px;
    }

    .modal-right-column {
        padding: 30px 22px 40px;
    }

    .modal-project-title {
        font-size: 1.6rem;
    }

    /* Leadership */
    .prof-image-full-wrapper {
        height: calc(100vh - 60px); /* Full height minus header on tablet */
        aspect-ratio: auto;
    }

    .prof-image-full-wrapper.active {
        height: calc(100vh - 60px);
    }

    .prof-drawer-content {
        padding: 40px 24px 80px 24px; /* Tighter padding for mobile screens */
    }

    .prof-drawer-content .prof-text-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .prof-drawer-content .profile-name {
        font-size: 1.7rem;
        letter-spacing: 4px;
        margin-bottom: 6px;
    }

    .prof-drawer-content .profile-role {
        margin-bottom: 20px;
    }

    .prof-drawer-content .profile-tagline {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .prof-drawer-content .profile-text {
        font-size: 0.9rem;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    .prof-drawer-content .profile-stats-subtle {
        margin-top: 30px;
        padding-top: 25px;
        gap: 20px;
    }

    .prof-drawer-content .stat-subtle-num {
        font-size: 1.6rem;
    }

    .prof-drawer-content .stat-subtle-label {
        font-size: 0.7rem;
    }

    /* Footer */
    .main-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px 18px; /* Extra compact vertical padding */
    }

    /* Gallery-specific project title */
    .collage-item-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    /* Form inputs — readable on mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS auto-zoom on focus */
        padding: 12px 14px;
    }

    .submit-btn {
        padding: 16px;
        min-height: 52px;
        font-size: 0.78rem;
    }

    /* WhatsApp button: move up slightly on mobile for safe area */
    .whatsapp-float-btn {
        bottom: 22px;
        right: 18px;
        width: 48px;
        height: 48px;
    }
}

/* ---- Mobile portrait (≤ 480px) ---- */
@media (max-width: 480px) {
    /* Header */
    .main-header {
        height: 48px; /* Reduced from 58px */
    }

    .logo {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .logo-img {
        height: 26px; /* Reduced from 32px */
    }

    .prof-image-full-wrapper {
        height: calc(100vh - 48px); /* Full height minus header on small phone */
    }

    .professional-page-section {
        padding: 48px 0 0 0 !important; /* Offset top padding for mobile fixed header height (48px) */
    }

    .prof-image-full-wrapper.active {
        height: calc(100vh - 48px);
    }

    /* Hero card — single-column small phone */
    .center-card-container {
        width: 92%;
    }

    .center-card {
        padding: 30px 20px 28px;
    }

    .brand-title {
        font-size: 1.55rem;
        letter-spacing: 4px;
        text-indent: 4px;
    }

    .brand-line-second {
        font-size: 1.55rem;
        letter-spacing: 4px;
        text-indent: 4px;
    }

    .brand-subtitle {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .brand-divider {
        width: 36px;
        margin-bottom: 24px;
    }

    .card-btn {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    /* Gallery: 1 column on small phones */
    .projects-gallery-container.collage-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    /* Section layout */
    .section-layout {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Filter bar */
    .filter-btn {
        padding: 9px 14px;
        font-size: 0.7rem;
    }

    /* Modal specs */
    .modal-project-title {
        font-size: 1.4rem;
    }

    .project-specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .modal-right-column {
        padding: 24px 18px 36px;
    }

    /* Leadership */
    .lead-title {
        font-size: 2.2rem;
    }

    .lead-sub {
        font-size: 1.4rem;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* Collage title */
    .collage-item-title {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    /* Overlay nav */
    .overlay-nav {
        gap: 10px 16px;
    }

    .menu-link {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    /* Contact info-box details */
    .info-group span {
        font-size: 0.7rem;
    }

    .info-group p {
        font-size: 0.88rem;
    }
}

/* ---- Very small phones (≤ 375px, e.g. iPhone SE) ---- */
@media (max-width: 375px) {
    .brand-title {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .brand-line-second {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .logo {
        font-size: 0.85rem;
    }

    .logo-img {
        height: 22px; /* Reduced from 26px */
    }

    .overlay-nav {
        gap: 8px 12px;
    }

    .menu-link {
        font-size: 0.66rem;
        letter-spacing: 1px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.65rem;
    }

    .modal-right-column {
        padding: 20px 14px 30px;
    }
}

/* ==========================================================================
   SCROLL INDICATOR — ANIMATED LINE
   ========================================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 15;
    opacity: 0;
    animation: scrollIndicatorFade 1s ease 2.2s forwards;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.scroll-indicator.hidden {
    opacity: 0 !important;
}

.scroll-indicator-label {
    font-family: var(--font-title);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(242, 239, 230, 0.35);
    text-transform: uppercase;
    text-indent: 4px;
    white-space: nowrap;
}

.scroll-indicator-line {
    width: 1px;
    height: 48px;
    background: rgba(242, 239, 230, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-indicator-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(242, 239, 230, 0.7), transparent);
    animation: scrollLineMove 2s ease 2.8s infinite;
}

@keyframes scrollLineMove {
    0%   { top: -100%; }
    100% { top: 200%; }
}

@keyframes scrollIndicatorFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ==========================================================================
   WHATSAPP BUTTON — HOVER LABEL REVEAL
   ========================================================================== */

.whatsapp-float-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    white-space: nowrap;
    font-family: var(--font-title);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-bg-primary);
    background: var(--color-text-primary);
    padding: 8px 16px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.whatsapp-float-btn:hover .whatsapp-float-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   ACTIVE MENU LINK INDICATOR
   ========================================================================== */
.menu-link.active {
    color: var(--color-text-primary);
    opacity: 1;
}

.menu-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text-primary);
    transform: none;
}

/* ==========================================================================
   PROCESS / METHODOLOGY SECTION
   ========================================================================== */
.process-section {
    background: var(--color-bg-primary);
    padding: 100px 0;
    border-top: 1px solid rgba(242, 239, 230, 0.08);
}

.process-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.process-title {
    font-family: var(--font-title);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: rgba(242, 239, 230, 0.35);
    text-transform: uppercase;
    text-indent: 8px;
    margin: 0 0 64px 0;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(242, 239, 230, 0.07);
    align-items: start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step-num {
    font-family: var(--font-title);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(242, 239, 230, 0.2);
    padding-top: 4px;
}

.process-step-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.process-step-title {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-text-primary);
    margin: 0;
    text-indent: 4px;
}

.process-step-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(242, 239, 230, 0.55);
    margin: 0;
    max-width: 520px;
}

/* ==========================================================================
   STATS COUNTER ANIMATION
   ========================================================================== */
.stat-subtle-num {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-subtle-num.counting {
    transform: scale(1.1);
}

/* ==========================================================================
   PARALLAX GALLERY IMAGES
   ========================================================================== */
.project-collage-item .project-image-wrapper {
    will-change: transform;
}

.project-img.parallax-ready {
    will-change: transform;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 24px;
    }
    .process-inner {
        padding: 0 24px;
    }
    .process-step {
        grid-template-columns: 44px 1fr;
        gap: 20px;
    }
    .process-section {
        padding: 64px 0;
    }
    .whatsapp-float-label {
        display: none;
    }

}

/* ==========================================================================
   FULLSCREEN LIGHTBOX MODAL
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    z-index: 2100; /* Acima do modal de detalhes */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
    transform: scale(0.97);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: zoom-out;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(28, 28, 26, 0.65);
    color: #f2efe6;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
    border-radius: 0 !important;
}

.lightbox-close-btn:hover {
    background: var(--color-accent-wood);
    color: var(--color-bg-card);
}

.lightbox-close-btn svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   FIXED LATERAL SIDEBAR MENU (DESKTOP)
   ========================================================================== */

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: var(--color-bg-base); /* Deep charcoal/black */
    border-right: 1px solid var(--color-border-medium);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
    z-index: 90; /* Sits below curtain (9999) and modal (500) */
}

.sidebar-logo {
    width: 100%;
}

.sidebar-logo-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    filter: invert(1) brightness(0.95);
    transition: var(--transition-smooth);
}

.sidebar-logo-img:hover {
    transform: scale(1.02);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: -40px;
}

.sidebar-link {
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
    width: fit-content;
}

.sidebar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent-wood);
    transition: width 0.3s ease;
}

.sidebar-link:hover {
    color: var(--color-text-primary);
}

.sidebar-link:hover::after {
    width: 100%;
}

.sidebar-link.active {
    color: var(--color-text-primary);
}

.sidebar-link.active::after {
    width: 100%;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-tagline {
    font-family: var(--font-title);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

.sidebar-copyright {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Desktop and Mobile Responsive Overrides */
@media (min-width: 1025px) {
    /* Hide mobile header & menu overlay on desktop, only for customer-facing pages */
    body.home-body .main-header,
    body.content-body .main-header,
    body.home-body .menu-overlay,
    body.content-body .menu-overlay {
        display: none !important;
    }

    /* Shift all direct layout elements to the right of the sidebar */
    body.content-body > *:not(.sidebar-nav):not(.page-curtain):not(.modal-overlay):not(.lightbox-overlay):not(.whatsapp-float-btn):not(#project-modal):not(#lightbox-modal),
    body.home-body > *:not(.sidebar-nav):not(.page-curtain):not(.whatsapp-float-btn) {
        margin-left: 260px;
        width: calc(100% - 260px) !important;
    }

    /* Prefill the top offset on desktop for about page professional section */
    .professional-page-section {
        padding-top: 0 !important;
    }

    .prof-image-full-wrapper {
        height: 100vh !important;
    }
}

/* Carousel Slide Project Info Overlay */
.slide-project-info {
    position: absolute;
    bottom: 60px;
    left: 5%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: none; /* Let clicks pass to the slide anchor itself */
}

.slide-project-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.slide-project-action {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-accent-wood);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 16px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

@media (max-width: 1024px) {
    /* Hide desktop sidebar on tablet and mobile */
    .sidebar-nav {
        display: none !important;
    }

    /* Style the fixed mobile header navbar container */
    .main-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 54px !important;
        padding: 0 16px !important;
        background-color: rgba(28, 28, 26, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        mix-blend-mode: normal !important;
        top: 0 !important;
        position: fixed !important;
    }

    /* --- HOME PAGE MOBILE LAYOUT --- */
    /* Center horizontal inline links on home, hide top logo and hamburger */
    body.home-body .main-header {
        justify-content: center !important;
    }

    body.home-body .main-header .logo {
        display: none !important;
    }

    body.home-body .mobile-nav-menu {
        display: flex !important;
        align-items: center !important;
        gap: 18px !important;
    }

    body.home-body .menu-toggle-btn,
    body.home-body .menu-overlay {
        display: none !important;
    }

    /* --- CONTENT PAGES MOBILE LAYOUT (Projects, About) --- */
    /* Hide inline horizontal menu, display logo (left) and hamburger toggle (right) */
    body.content-body .mobile-nav-menu {
        display: none !important;
    }

    body.content-body .main-header .logo {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.content-body .menu-toggle-btn {
        display: flex !important;
    }

    /* --- MOBILE NAV LINK STYLING --- */
    .mobile-nav-link {
        font-family: var(--font-title);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: var(--color-text-muted);
        transition: var(--transition-smooth);
        text-decoration: none;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--color-text-primary);
    }

    /* --- ACTIVE PAGE MENU HIDING (Saves screen space & prevents overlap) --- */
    body.page-home .mobile-nav-link[data-link="home"],
    body.page-home .menu-link[data-link="home"],
    body.page-projects .mobile-nav-link[data-link="projects"],
    body.page-projects .menu-link[data-link="projects"],
    body.page-about .mobile-nav-link[data-link="about"],
    body.page-about .menu-link[data-link="about"],
    body.page-contact .mobile-nav-link[data-link="contact"],
    body.page-contact .menu-link[data-link="contact"] {
        display: none !important;
    }

    /* Adjust slide project info for mobile and tablet */
    .slide-project-info {
        bottom: 40px !important;
        left: 16px !important;
        gap: 12px !important;
    }

    .slide-project-title {
        font-size: 0.85rem !important;
        letter-spacing: 2px !important;
    }

    .slide-project-action {
        font-size: 0.58rem !important;
        letter-spacing: 1.5px !important;
        padding-left: 12px !important;
    }
}
