/* 
   Monreal Costa Esmeralda - Premium Landing Page Stylesheet
   Design System, Typography, Layout, Responsive Rules, and Animations
*/

/* ==========================================================================
   1. DESIGN VARIABLES & RESET
   ========================================================================== */
:root {
    --color-white: #FFFFFF;
    --color-offwhite: #F8F7F5;
    --color-green: #1F3D2E;
    --color-black: #0D0D0D;
    --color-gray: #8C8C8C;
    --color-gray-dark: #333333;
    --color-gray-light: #E0DFDB;
    
    --font-primary: 'Montserrat', sans-serif;
    
    --header-height: 90px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   2. TYPOGRAPHY SYSTEM
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300; /* Montserrat Light */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-black);
}

/* Large letter-spacing as the main sophistication element */
.section-title {
    font-size: 2.25rem;
    line-height: 1.3;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-weight: 400; /* Montserrat Regular */
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 3.5rem;
}

.section-desc {
    font-family: var(--font-primary);
    font-weight: 400; /* Montserrat Regular */
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.text-white {
    color: var(--color-white) !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-light-gray {
    color: var(--color-gray-light) !important;
}

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

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

/* ==========================================================================
   3. LAYOUT CONTAINERS & REUSABLES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Base button structure with fill transition (left-to-right) */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
    transition: color 300ms ease, border-color 300ms ease;
    border-radius: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-green);
    z-index: -1;
    transition: width 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    color: var(--color-white) !important;
    border-color: var(--color-green) !important;
}

.btn-outline {
    border: 1px solid var(--btn-border-color, var(--color-white));
    color: var(--btn-text-color, var(--color-white));
    background-color: transparent;
}

/* Toggle button text */
.btn-text-mobile {
    display: none;
}
.btn-text-desktop {
    display: inline;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--color-green);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-floating:hover {
    transform: scale(1.08);
    background-color: #274d3a;
}

/* Lazy Load placeholder styling */
.lazy-image {
    opacity: 0;
    transition: opacity 1s ease;
    background-color: var(--color-offwhite);
}

.lazy-image.loaded {
    opacity: 1;
}

/* ==========================================================================
   4. ANIMATIONS & INTERACTION STATES
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms cubic-bezier(0.25, 1, 0.5, 1),
                transform 700ms cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Photo Hover Zoom */
.zoom-effect {
    overflow: hidden;
}

.zoom-effect img {
    transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Down arrow bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* ==========================================================================
   5. HEADER SECTION (FIXED & MINIMAL)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.4s ease, border-bottom 0.4s ease, height 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header.scrolled {
    background-color: var(--color-white);
    height: 75px;
    border-bottom: 1px solid var(--color-gray-light);
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    transition: color 0.4s ease;
}

.main-header.scrolled .logo-wrapper {
    color: var(--color-green);
}

.logo-svg {
    transition: transform 0.4s ease;
}

.logo-wrapper:hover .logo-svg {
    transform: rotate(5deg) scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 400; /* Regular */
    font-size: 1rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

.brand-subtitle {
    font-weight: 300; /* Light */
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    margin-top: 0.15rem;
    opacity: 0.8;
}

/* Image Logo Custom Styles & Filters */
.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: filter 0.4s ease, height 0.4s ease;
}

.main-header:not(.scrolled) .brand-logo-img {
    height: 58px;
    filter: brightness(0) invert(1);
}

.main-header.scrolled .brand-logo-img {
    filter: none;
}

.brand-logo-img-large {
    height: 130px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Forces logo to be solid white on hero */
}

.brand-logo-img-footer {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Forces logo to be solid white in footer */
}

.logo-img-container, .logo-img-container-large {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hide {
    display: none !important;
}

/* Header button responsive color */
.main-header .btn-outline {
    --btn-border-color: var(--color-white);
    --btn-text-color: var(--color-white);
}

.main-header.scrolled .btn-outline {
    --btn-border-color: var(--color-green);
    --btn-text-color: var(--color-green);
}

/* ==========================================================================
   6. SEÇÃO 1 - HERO
   ========================================================================== */
.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    opacity: 0.4;
    z-index: -1;
}

/* Static image fallback styled to fill the container behind the video */
.hero-static-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    display: block;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.logo-svg-large {
    color: var(--color-white);
}

.hero-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-title-large {
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    line-height: 1.1;
    color: var(--color-white);
}

.brand-subtitle-large {
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 2rem;
    font-weight: 300; /* Light */
    line-height: 1.4;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-weight: 400; /* Regular */
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--color-gray-light);
}

.hero-scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    animation: bounce 2s infinite;
    z-index: 5;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-scroll-down:hover {
    opacity: 1;
}

/* ==========================================================================
   7. SEÇÃO 2 - O PROJETO
   ========================================================================== */
.section-project {
    background-color: var(--color-white);
    padding: 9rem 0;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-block {
    padding: 2.5rem 0;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-weight: 300; /* Montserrat Light */
    font-size: 4.5rem;
    line-height: 1;
    color: var(--color-green);
    margin-bottom: 0.75rem;
}

.stat-label {
    font-family: var(--font-primary);
    font-weight: 400; /* Regular */
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    color: var(--color-gray);
    text-transform: uppercase;
}

.stat-divider {
    height: 0.5px;
    background-color: var(--color-gray-light);
    width: 100%;
}

/* ==========================================================================
   8. SEÇÃO 3 - POR QUE PORTO BELO
   ========================================================================== */
.section-why-pb {
    background-color: var(--color-offwhite);
    padding: 0;
    overflow: hidden;
}

.why-pb-wrapper {
    display: flex;
    min-height: 550px;
}

.why-pb-media {
    width: 45%;
    position: relative;
    overflow: hidden;
}

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

.why-pb-media:hover .panoramic-img {
    transform: scale(1.02);
}

.why-pb-content {
    width: 55%;
    padding: 5rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.why-pb-attributes {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.attribute-item {
    font-family: var(--font-primary);
    font-weight: 400; /* Regular */
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
    color: var(--color-gray-dark);
    text-transform: uppercase;
}

.attribute-divider {
    height: 0.5px;
    background-color: var(--color-gray-light);
    width: 100%;
}

/* ==========================================================================
   9. SEÇÃO 4 - COMO TRABALHAMOS
   ========================================================================== */
.section-process {
    background-color: var(--color-white);
    padding: 9rem 0;
}

.process-header {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    width: 100%;
    margin-top: 6rem;
    padding: 2rem 0;
}

/* The horizontal line connecting the timeline stages */
.timeline-line {
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 0.5px;
    background-color: var(--color-gray-light);
    z-index: 1;
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-item {
    width: 17%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-node {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 0.5px solid var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:hover .timeline-node {
    border-color: var(--color-green);
    box-shadow: 0 10px 25px rgba(31, 61, 46, 0.08);
}

.node-number {
    font-family: var(--font-primary);
    font-weight: 300; /* Light */
    font-size: 1.5rem;
    color: var(--color-green);
}

.timeline-content {
    padding: 0 0.5rem;
}

.step-title {
    font-size: 0.8125rem;
    font-weight: 400; /* Regular */
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--color-black);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-desc {
    font-family: var(--font-primary);
    font-weight: 300; /* Light */
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--color-gray);
}

/* ==========================================================================
   10. SEÇÃO 5 - PARA ARQUITETOS
   ========================================================================== */
.section-architects {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 9rem 0;
}

.architects-header {
    max-width: 800px;
    margin: 0 auto;
}

.architects-differentials {
    margin-top: 5rem;
    margin-bottom: 7rem;
}

.diff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.diff-icon {
    color: var(--color-white);
    margin-bottom: 2rem;
    opacity: 0.95;
    transition: transform 0.4s ease;
}

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

.diff-title {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 400; /* Regular */
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.diff-desc {
    font-family: var(--font-primary);
    font-weight: 300; /* Light */
    font-size: 0.8125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Fine vertical dividing lines */
.diff-line-divider {
    width: 0.5px;
    background-color: rgba(255, 255, 255, 0.2);
    align-self: stretch;
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 5rem;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    position: relative;
    min-height: 220px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease, visibility 600ms ease;
    text-align: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative; /* Give height to track */
}

.testimonial-quote {
    font-family: var(--font-primary);
    font-weight: 300; /* Light */
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-white);
    margin-bottom: 2.25rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.author-name {
    font-family: var(--font-primary);
    font-weight: 400; /* Regular */
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
}

.author-office {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-dot.active {
    background-color: var(--color-white);
    transform: scale(1.2);
}

/* ==========================================================================
   11. SEÇÃO 6 - PORTFÓLIO DE REFERÊNCIA
   ========================================================================== */
.section-portfolio {
    background-color: var(--color-offwhite);
    padding: 9rem 0;
}

.portfolio-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

.portfolio-grid {
    margin-bottom: 4rem;
}

.portfolio-card {
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card-media {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.25, 1, 0.5, 1);
}

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

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-card:hover .card-hover-overlay {
    opacity: 1;
}

.hover-info {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--color-white);
    text-transform: uppercase;
}

.card-footer {
    padding: 1.5rem;
    background-color: var(--color-white);
}

.project-code {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    text-transform: uppercase;
}

.portfolio-actions {
    display: flex;
    justify-content: flex-end;
}

.portfolio-link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-black);
    border-bottom: 1px solid transparent;
    padding-bottom: 0.25rem;
    transition: border-color 0.3s ease, gap 0.3s ease;
}

.portfolio-link-more:hover {
    border-color: var(--color-black);
    gap: 1.25rem;
}

.portfolio-link-more svg {
    transition: transform 0.3s ease;
}

.portfolio-link-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   12. SEÇÃO 7 - CTA FINAL & CONTATO
   ========================================================================== */
.section-cta {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 9rem 0;
}

.cta-header {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 6rem;
}

.cta-grid {
    align-items: start;
    gap: 6rem;
}

/* Contact Form styling */
.cta-form-wrapper {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    font-family: var(--font-primary);
    font-weight: 400; /* Regular */
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--color-white);
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.contact-form textarea {
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-gray);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-white);
}

.form-error {
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    font-size: 0.625rem;
    color: #FF5A5F;
    letter-spacing: 0.05em;
    display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #FF5A5F;
}

.form-group.has-error .form-error {
    display: block;
}

/* Button submit style with left-to-right fill */
.btn-submit {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    background-color: transparent;
    padding: 1.15rem 2rem;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-submit .btn-text {
    position: relative;
    z-index: 2;
}

.btn-submit .btn-loader {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-white);
    animation: spin 0.8s linear infinite;
    position: absolute;
    z-index: 2;
}

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

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: block;
}

.form-message {
    display: none;
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: #4CAF50;
    margin-top: 1.5rem;
    text-align: center;
}

/* Direct contact sidebar */
.cta-contact-direct-wrapper {
    display: flex;
    gap: 6rem;
    height: 100%;
}

.cta-separator {
    width: 0.5px;
    background-color: rgba(255, 255, 255, 0.15);
    align-self: stretch;
}

.cta-contact-direct {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.direct-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.direct-icon-box {
    color: var(--color-white);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.direct-link:hover .direct-icon-box {
    transform: scale(1.05);
    opacity: 1;
    color: var(--color-green);
}

.direct-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.direct-number {
    font-family: var(--font-primary);
    font-weight: 300; /* Light */
    font-size: 1.35rem;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.direct-label {
    font-family: var(--font-primary);
    font-weight: 400; /* Regular */
    font-size: 0.75rem;
    color: var(--color-gray);
    letter-spacing: 0.08em;
}

/* ==========================================================================
   13. FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 0 0 4rem 0;
}

.footer-divider {
    height: 0.5px;
    background-color: rgba(255, 255, 255, 0.15);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 4rem 0;
}

.footer-left {
    display: flex;
    justify-content: flex-start;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.footer-site-link {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
}

.footer-site-link:hover {
    color: var(--color-white);
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-link:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-copyright-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.copyright-text {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.credit-text {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .timeline-line {
        left: 5%;
        right: 5%;
    }
    
    .timeline-item {
        width: 18%;
    }
    
    .timeline-node {
        width: 60px;
        height: 60px;
    }
    
    .node-number {
        font-size: 1.25rem;
    }
}

/* Small Tablets / Large Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }
    
    /* Toggle button text on mobile */
    .btn-text-mobile {
        display: inline;
    }
    .btn-text-desktop {
        display: none;
    }
    
    /* Header layout adjustments to prevent overlap on mobile */
    .header-container {
        padding: 0 1.25rem;
    }
    
    .logo-wrapper {
        gap: 0.5rem;
    }
    
    .brand-logo-img {
        height: 38px !important;
    }
    
    .main-header:not(.scrolled) .brand-logo-img {
        height: 44px !important;
    }
    
    .brand-subtitle {
        font-size: 0.5rem;
        letter-spacing: 0.15em;
    }
    
    .main-header .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .grid-3 {
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
    }
    
    .diff-line-divider {
        display: none;
    }
    
    /* Section 3 Layout Adjustment */
    .why-pb-wrapper {
        flex-direction: column;
    }
    
    .why-pb-media {
        width: 100%;
        height: 400px;
    }
    
    .why-pb-content {
        width: 100%;
        padding: 5rem 2rem;
    }
    
    /* Section 4 Horizontal Timeline -> Vertical Timeline */
    .timeline-line {
        top: 0;
        bottom: 0;
        left: 30px;
        width: 0.5px;
        height: 100%;
    }
    
    .timeline-items {
        flex-direction: column;
        gap: 3.5rem;
        align-items: flex-start;
        padding-left: 0.5rem;
    }
    
    .timeline-item {
        width: 100%;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .timeline-node {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-title {
        min-height: auto;
        justify-content: flex-start;
        margin-bottom: 0.5rem;
    }
    
    /* Section 7 CTA Grid */
    .cta-grid {
        gap: 4.5rem;
    }
    
    .cta-contact-direct-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cta-separator {
        width: 100%;
        height: 0.5px;
    }
    
    .cta-contact-direct {
        align-items: center;
        text-align: center;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        justify-items: center;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        justify-content: center;
    }
    
    .footer-copyright-wrapper {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .brand-title-large {
        font-size: 1.25rem;
    }
    
    .brand-subtitle-large {
        font-size: 0.6rem;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .testimonials-carousel-wrapper {
        padding-top: 3.5rem;
    }
    
    .testimonial-quote {
        font-size: 1rem;
    }
    
    .portfolio-actions {
        justify-content: center;
    }
    
    .whatsapp-floating {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.25rem;
        height: 3.25rem;
    }
    
    .direct-number {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   15. LIGHTBOX GALLERY MODAL
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 13, 13, 0.98);
    z-index: 2000;
    display: none; /* Controlled by JS */
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#lightboxImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    animation: fadeEffect 0.3s ease;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
}

.lightbox-caption {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    color: var(--color-white);
    text-transform: uppercase;
}

/* Close & Nav buttons */
.lightbox-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--color-white);
    font-size: 2rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2100;
}

.lightbox-close-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 2.5rem;
    opacity: 0.5;
    padding: 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2050;
}

.lightbox-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.nav-left {
    left: 2rem;
}

.nav-right {
    right: 2rem;
}

/* Thumbnails */
.lightbox-thumbnails-container {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 0 2rem;
}

.lightbox-thumbnails {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
}

.thumb-item {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border: 1px solid transparent;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.thumb-item:hover {
    opacity: 0.8;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--color-white);
}

/* Disable body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Responsive adjustment for Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-nav-btn {
        padding: 1rem;
    }
    
    .nav-left {
        left: 0.5rem;
    }
    
    .nav-right {
        right: 0.5rem;
    }
    
    .lightbox-close-btn {
        top: 1rem;
        right: 1rem;
    }
    
    .thumb-item {
        width: 45px;
        height: 35px;
    }
}
