:root {
    --bg-color: #F8F7F5;
    --bg-white: #FFFFFF;
    --text-main: #0D0D0D;
    --accent-green: #1F3D2E;
    --text-muted: #8C8C8C;
    --line-color: rgba(140, 140, 140, 0.2);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'DM Sans', sans-serif;
    
    --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    
    --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .serif {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.max-w-800 { max-width: 800px; margin: 0 auto; }
.max-w-600 { max-width: 600px; margin: 0 auto; }

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

section {
    padding: 120px 0;
}

.bg-white { background-color: var(--bg-white); }
.bg-base { background-color: var(--bg-color); }
.bg-green { background-color: var(--accent-green); }
.bg-black { background-color: var(--text-main); }
.text-white { color: var(--bg-white); }
.text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--bg-white); }

.pt-header {
    padding-top: calc(120px + var(--header-height));
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
}
.page-title {
    font-size: 4rem;
    margin-bottom: 24px;
}
.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn-outline, .btn-solid {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s var(--ease-out-cubic);
    cursor: pointer;
    border: 1px solid var(--text-main);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
}
.btn-solid {
    background: var(--text-main);
    color: var(--bg-white);
}

.btn-solid.white {
    background: var(--bg-white);
    color: var(--accent-green);
    border-color: var(--bg-white);
}
.btn-outline.white {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

/* Fill Hover Effect */
.btn-outline::before, .btn-solid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: var(--accent-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out-cubic);
    z-index: -1;
}
.btn-solid.white::before { background: var(--text-main); }
.btn-outline.white::before { background: var(--bg-white); }

.btn-outline:hover, .btn-solid:hover {
    color: var(--bg-white);
    border-color: transparent;
}
.btn-outline.white:hover {
    color: var(--text-main);
}
.btn-outline:hover::before, .btn-solid:hover::before {
    transform: scaleX(1);
}

.btn-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.btn-text svg {
    transition: transform 0.3s ease;
}
.btn-text:hover { color: var(--accent-green); }
.btn-text:hover svg { transform: translateX(5px); }


/* Link Underline Hover */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
}
.btn-outline.nav-link::after, .btn-solid.nav-link::after {
    display: none; /* no line under buttons */
}
.logo.nav-link::after { display: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(248, 247, 245, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 0.5px solid transparent;
}
.header.transparent {
    background: transparent;
    backdrop-filter: none;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 0.5px solid var(--line-color);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5%;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 56px; /* Aumentado de 36px para 56px */
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}
.header.transparent:not(.dark-text) .logo img {
    filter: brightness(0) invert(1);
}
.footer-col.logo-col .logo img {
    filter: brightness(0) invert(1);
    height: 80px; /* Aumentado de 48px para 80px */
}
.desktop-nav {
    display: flex;
    gap: 40px;
}
.desktop-nav a {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.header.transparent .desktop-nav a { color: var(--bg-white); }
.header.scrolled .desktop-nav a { color: var(--text-main); }
.header.transparent .btn-outline { 
    color: var(--bg-white); 
    border-color: var(--bg-white); 
}
.header.scrolled .btn-outline { 
    color: var(--text-main); 
    border-color: var(--text-main); 
}

/* Modifier for internal pages with light backgrounds */
.header.transparent.dark-text .desktop-nav a { color: var(--text-main); }
.header.transparent.dark-text .logo img { filter: brightness(0); }
.header.transparent.dark-text .btn-outline { color: var(--text-main); border-color: var(--text-main); }
.header.transparent.dark-text .menu-toggle span { background: var(--text-main); }

/* Header active state when mobile menu is open */
.header.menu-active {
    z-index: 102 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0.5px solid transparent !important;
}
.header.menu-active .logo img {
    filter: brightness(0) invert(1) !important;
}
.header.menu-active .menu-toggle span {
    background: var(--bg-white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 102;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text-main);
    position: absolute;
    transition: all 0.3s ease;
}
.header.transparent .menu-toggle span { background: var(--bg-white); }
.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }
.menu-toggle.active span:first-child { top: 9px; transform: rotate(45deg); background: var(--bg-white); }
.menu-toggle.active span:last-child { bottom: 10px; transform: rotate(-45deg); background: var(--bg-white); }

.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--text-main);
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-cubic);
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 32px;
}
.mobile-menu a {
    color: var(--bg-white);
    font-family: var(--font-serif);
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .projects-grid, 
    .projects-grid.mixed-proportions {
        column-count: 1;
    }
    .projects-grid.mixed-proportions .project-card {
        margin-bottom: 24px;
    }
    .desktop-nav {
        display: none !important;
    }
    .header-container > .btn-outline {
        display: none !important;
    }
    .menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-cubic), transform 0.8s var(--ease-out-cubic);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-transition {
    animation: fadeInPage 0.6s var(--ease-out-cubic) forwards;
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bounce {
    animation: bounce 2s infinite ease-in-out;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ==========================================================================
   PAGE: HOME
   ========================================================================== */
/* Hero */
.hero-section, .page-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center bottom;
    filter: grayscale(80%);
    z-index: -2;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(80%); /* Saturation reduced as requested */
    z-index: -2;
    transition: opacity 0.8s ease;
    opacity: 1;
}
.hero-section.video-active .hero-bg {
    opacity: 0;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}
.hero-content {
    padding: 0 5%;
    max-width: 700px;
}
.hero-content h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    line-height: 1.15;
}
.hero-subtitle {
    font-family: var(--font-sans);
    color: #e0e0e0;
    font-size: 1rem;
    letter-spacing: 1px;
}
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5%;
    color: var(--bg-white);
}

/* Numbers */
.numbers-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 40px;
}
.number-block {
    text-align: center;
}
.number-block h2 {
    font-size: clamp(4rem, 8vw, 7rem);
    display: inline-block;
}
.number-plus {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    vertical-align: top;
    margin-left: 5px;
}
.number-block p {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.vertical-line {
    width: 1px;
    height: 80px;
    background-color: var(--line-color);
}
.numbers-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto;
}


/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* Home Mosaic */
.projects-grid.home-mosaic {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.projects-grid.home-mosaic .project-card {
    aspect-ratio: auto !important; /* override the default 4/3 */
}
/* Linha 1 */
.projects-grid.home-mosaic .project-card:nth-child(1) { grid-column: span 2; height: 500px; }
.projects-grid.home-mosaic .project-card:nth-child(2) { grid-column: span 3; height: 500px; }
/* Linha 2 */
.projects-grid.home-mosaic .project-card:nth-child(3) { grid-column: span 2; height: 300px; }
.projects-grid.home-mosaic .project-card:nth-child(4) { grid-column: span 2; height: 300px; }
.projects-grid.home-mosaic .project-card:nth-child(5) { grid-column: span 1; height: 300px; }

@media (max-width: 768px) {
    .projects-grid.home-mosaic {
        grid-template-columns: 1fr;
    }
    .projects-grid.home-mosaic .project-card {
        grid-column: span 1 !important;
        height: 350px !important;
    }
}


/* Process */
.process-steps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
}
.step {
    border-top: 1px solid var(--line-color);
    padding-top: 24px;
}
.step-num {
    display: block;
    color: var(--accent-green);
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.step p {
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr !important;
    }
}

/* Carousel Testimonials */
.testimonials-carousel {
    margin: 60px 0;
    min-height: 200px;
    position: relative;
}
.testimonial {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.testimonial.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
}
.quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 24px;
}
.author {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   PAGE: ABOUT
   ========================================================================== */
.two-columns {
    display: flex;
    gap: 60px;
}
.col-40 { width: 40%; }
.col-50 { width: 50%; }
.col-60 { width: 60%; }
.lead-text {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.4;
}
.timeline {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-color);
}
.timeline-item {
    min-width: 250px;
}
.timeline-item .year {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 16px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.member-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    margin-bottom: 24px;
}
.member-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.member-role {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .two-columns { flex-direction: column; gap: 40px; }
    .col-40, .col-50, .col-60 { width: 100%; }
}

/* ==========================================================================
   PAGE: PROJECTS & ARCHITECTS
   ========================================================================== */
.filters {
    margin-bottom: 40px;
}
.filter-btn {
    background: none; border: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}
.filter-btn.active, .filter-btn:hover { color: var(--text-main); }
.filter-sep { color: var(--line-color); margin: 0 16px; }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.pillar .icon { margin-bottom: 24px; color: var(--accent-green); }
.pillar h3 { margin-bottom: 16px; }
.pillar p { color: var(--text-muted); font-size: 0.875rem; }

/* ==========================================================================
   FORMS & CONTACT
   ========================================================================== */
.minimal-form .form-group {
    margin-bottom: 24px;
    position: relative;
}
.minimal-form input, .minimal-form textarea, .minimal-form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 0;
    color: var(--bg-white);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}
.minimal-form input::placeholder, .minimal-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.minimal-form input:focus, .minimal-form textarea:focus, .minimal-form select:focus {
    border-bottom-color: var(--bg-white);
}
.dark-form input, .dark-form textarea, .dark-form select {
    color: var(--text-main);
    border-bottom-color: var(--line-color);
}
.dark-form input::placeholder, .dark-form textarea::placeholder {
    color: var(--text-muted);
}
.dark-form input:focus, .dark-form textarea:focus, .dark-form select:focus {
    border-bottom-color: var(--text-main);
}
.w-full { width: 100%; }

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    pointer-events: none;
}
.contact-info .info-group { margin-bottom: 32px; }
.contact-info h3 { font-size: 1.25rem; margin-bottom: 8px; }
.contact-info p { color: var(--text-muted); }
.map-container { width: 100%; height: 500px; margin-top: 80px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 80px 5%;
    background-color: #0D0D0D;
    color: var(--bg-white);
}
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col a { color: var(--text-muted); transition: color 0.3s ease; font-size: 0.875rem; }
.footer-col a:hover { color: var(--bg-white); }
.footer-bottom {
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    background-color: #0D0D0D;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   WHATSAPP
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background-color: var(--accent-green);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 99;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #152A20;
}

/* ==========================================================================
   GALLERY LIGHTBOX
   ========================================================================== */
.gallery-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-cubic);
}
.gallery-modal.active {
    opacity: 1;
    pointer-events: all;
}
.gallery-content {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-content img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    user-select: none;
}
.gallery-close {
    position: absolute;
    top: 30px; right: 40px;
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}
.gallery-close:hover { color: var(--text-muted); }
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-prev:hover { transform: translateY(-50%) translateX(-5px); color: var(--text-muted); }
.gallery-next:hover { transform: translateY(-50%) translateX(5px); color: var(--text-muted); }

.gallery-counter {
    position: absolute;
    bottom: 30px;
    color: var(--bg-white);
    font-family: var(--font-sans);
    letter-spacing: 2px;
    font-size: 0.875rem;
}




.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.project-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay .btn-outline { pointer-events: none; }

.card-meta {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--bg-white);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-cubic);
    z-index: 5;
}
.project-card:hover .card-meta { transform: translateY(0); }
.project-card:hover .card-img { transform: scale(1.05); }






/* FIX BROKEN GRID */
.projects-grid:not(.home-mosaic) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin-bottom: 60px !important;
}
@media (max-width: 768px) {
    .projects-grid:not(.home-mosaic) {
        grid-template-columns: 1fr !important;
    }
}


/* Base Card */
.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--card-bg);
    width: 100%;
}
.card-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

/* Projects Masonry Grid (Default) */
.projects-grid:not(.home-mosaic) {
    display: block !important;
    column-count: 3;
    column-gap: 24px;
    margin-bottom: 60px;
}
.projects-grid:not(.home-mosaic) .project-card {
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
}

/* Home Mosaic Overrides */
.projects-grid.home-mosaic .card-img {
    height: 100% !important;
    object-fit: cover;
}

@media (max-width: 768px) {
    .projects-grid:not(.home-mosaic) {
        column-count: 1;
    }
}




.architects-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.architects-section .quote {
    font-size: 1.25rem;
}


/* ==========================================================================
   MOBILE OPTIMIZATIONS (Safety Net)
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout & Sections */
    section { padding: 80px 0; }
    .pt-header { padding-top: calc(80px + var(--header-height)); }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }
    .page-title { font-size: 2.5rem; }
    
    /* Hero */
    .hero-content h1 { font-size: 2.2rem; }
    
    /* Numbers Section */
    .numbers-container { flex-direction: column; gap: 40px; }
    .vertical-line { width: 80px; height: 1px; }
    
    /* Grids */
    .projects-grid, 
    .projects-grid.mixed-proportions, 
    .team-grid, 
    .pillars-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 40px;
        padding: 60px 5%;
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* WhatsApp Button */
    .whatsapp-btn {
        width: 45px; height: 45px;
        bottom: 20px; right: 20px;
    }
    
    .map-container { height: 300px; margin-top: 40px; }

    /* Gallery Lightbox */
    .gallery-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
    .gallery-prev, .gallery-next {
        font-size: 1.5rem;
        padding: 10px;
    }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    .gallery-counter {
        bottom: 20px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   SEÇÃO: DO TERRENO À ESCRITURA (TIMELINE)
   ========================================================================== */
.timeline-steps-section {
    padding: 120px 0;
}
.timeline-steps-section .serif-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 2.75rem;
    margin-bottom: 16px;
    line-height: 1.25;
}
.timeline-steps-section .subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
}

/* Linha horizontal conectando as etapas no desktop */
.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 32px; /* Alinhado ao centro vertical do número (font-size 4rem / 2) */
    left: 40px;
    right: 40px;
    height: 1px;
    background-color: var(--line-color);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    background-color: var(--bg-white);
    padding-right: 12px;
}

.timeline-step .step-number {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 24px;
    background-color: var(--bg-white);
    padding-right: 16px;
}

.timeline-step .step-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.35rem;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--text-main);
}

.timeline-step .step-desc {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-steps-section .action-footer {
    margin-top: 60px;
}

/* Responsividade para telas menores */
@media (max-width: 1200px) {
    .timeline-horizontal {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px 24px;
    }
    .timeline-horizontal::before {
        display: none; /* remove a linha conectora quando as etapas quebram de linha */
    }
}

@media (max-width: 768px) {
    .timeline-steps-section {
        padding: 80px 0;
    }
    .timeline-steps-section .serif-title {
        font-size: 2.2rem;
    }
    .timeline-horizontal {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .timeline-step {
        padding-right: 0;
    }
    .timeline-step .step-number {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }
}


