/*
Theme Name: Bonum Consilium
Description: Custom WordPress theme for Bonum Consilium, featuring high-end animations and layout editing.
Author: Antigravity
Version: 1.0.0
Text Domain: bonum-consilium
*/

/* -------------------------------------------------------------
   Google Fonts Loaded via functions.php (Native WordPress Enqueue)
------------------------------------------------------------- */

/* -------------------------------------------------------------
   Design Tokens & Custom Properties
------------------------------------------------------------- */
:root {
    --color-bg-base: #FBFAF3;
    --color-text-dark: #1F1F1B;
    --color-text-muted: #A2A2A2;
    --color-accent-terracotta: #B5654A;
    --color-accent-terracotta-hover: #964A30;
    --color-white: #FFFFFF;
    
    --font-heading: 'Cormorant Infant', serif;
    --font-body: 'Inter', sans-serif;
    
    --container-max-width: 1760px;
    --header-height: 90px;
}

/* -------------------------------------------------------------
   Resets & Base Styles
------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-base);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Lenis smooth scroll helpers */
html.lenis {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis-stopped {
    overflow: hidden;
}

.lenis-scrolling iframe {
    pointer-events: none;
}


body {
    background-color: var(--color-bg-base);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}



body.home {
    overflow-x: hidden;
}

body.animating {
    overflow: hidden;
    height: 100vh;
}

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

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

/* -------------------------------------------------------------
   Layout Container
------------------------------------------------------------- */
.container {
    width: 91.6667%; /* 1760px / 1920px */
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* -------------------------------------------------------------
   Entrance Animation & Overlay
------------------------------------------------------------- */
#entrance-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-base);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

body.animation-done #entrance-animation {
    opacity: 0;
    display: none;
}

.genesis-logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 87px;
}

.genesis-logo-img {
    width: 92px;
    height: 87px;
    object-fit: contain;
    will-change: transform, opacity;
    opacity: 0; /* starts hidden for intro animation */
}

/* -------------------------------------------------------------
   Header Styling
------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 115px;
    padding-top: 25px;
    background-color: transparent;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    padding-bottom: 15px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease, transform 0.8s ease, background-color 0.3s ease, color 0.3s ease, top 0.3s ease, height 0.3s ease, padding 0.3s ease;
}

body.animation-done .site-header {
    opacity: 1;
    transform: translateY(0);
}

.site-header.scrolled {
    top: 20px !important;
    height: 90px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: #FBFAF3 !important;
    display: flex !important;
    align-items: center !important;
}

.site-header .btn {
    height: 50px !important;
}

/* Force dark logo and text when scrolled, even if light-theme class is active */
.site-header.scrolled .logo-dark {
    display: block !important;
}

.site-header.scrolled .logo-light {
    display: none !important;
}

.site-header.scrolled,
.site-header.scrolled .nav-menu li > a:not(.btn),
.site-header.scrolled .lang-switcher a.active,
.site-header.scrolled .btn-outline {
    color: var(--color-text-dark) !important;
}

.site-header.scrolled .nav-menu li > a:not(.btn)::after {
    background-color: var(--color-accent-terracotta) !important;
}

.site-header.scrolled .lang-switcher a,
.site-header.scrolled .lang-separator {
    color: var(--color-text-muted) !important;
}

.site-header.scrolled .btn-outline {
    border-color: var(--color-text-dark) !important;
}

.site-header.scrolled .btn-outline::before {
    background-color: var(--color-text-dark) !important;
}

.site-header.scrolled .btn-outline:hover {
    color: var(--color-bg-base) !important;
}

.site-header.scrolled .btn-outline:hover svg path {
    fill: var(--color-bg-base) !important;
}

.site-header.scrolled .menu-toggle span {
    background-color: var(--color-text-dark) !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 91.6667%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 3.4vw, 4.0625rem); /* Proportional gap, max 65px */
}

.logo-link img {
    width: 232px;
    height: 38px;
    object-fit: contain;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 3.75vw, 4.5rem); /* Proportional gap, max 72px */
}

.mobile-menu-logo-item,
.mobile-menu-lang-item {
    display: none !important;
}

.nav-menu li > a:not(.btn) {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300; /* Lighter weight */
    text-transform: uppercase;
    color: var(--color-text-dark);
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-menu li > a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #B5654A; /* Terracotta hover underline */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-menu li > a:not(.btn):hover {
    color: var(--color-text-dark);
}

.nav-menu li > a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
}

.lang-switcher a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    padding: 0 4px;
}

.lang-switcher a.active {
    color: var(--color-text-dark);
    font-weight: 600;
}

.lang-separator {
    color: var(--color-text-muted);
    user-select: none;
    margin: 0 2px;
}

/* Buttons */
.btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* General Button Structure with Sliding Hover */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 25px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
    transition: color 0.4s ease, border-color 0.4s ease;
    z-index: 1;
    white-space: nowrap; /* Prevent button text wrapping */
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* Primary Button (Terracotta) */
.btn-primary {
    background-color: var(--color-accent-terracotta);
    color: var(--color-bg-base);
}

.btn-primary::before {
    background-color: var(--color-accent-terracotta-hover);
}

.btn-primary img, .btn-primary svg {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Rotate arrow to point right on hover */
.btn-primary:hover img, .btn-primary:hover svg {
    transform: rotate(45deg);
}

/* Outline Button (Tour 360) */
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-text-dark);
    color: var(--color-text-dark);
    min-width: 206px;
    width: auto;
}

.btn-outline::before {
    background-color: var(--color-text-dark);
}

.btn-outline svg path {
    transition: fill 0.4s ease, stroke 0.4s ease;
}

.btn-outline:hover {
    color: var(--color-bg-base);
}

.btn-outline:hover svg path {
    fill: var(--color-bg-base);
}

/* -------------------------------------------------------------
   Hero Section
------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 160px; /* Aligned nicely in natural flow */
    background-color: transparent;
    overflow: visible;
}

.hero-content-wrapper {
    position: relative;
    text-align: center;
    width: 91.6667%;
    max-width: 850px; /* Reduced to make text width smaller */
    margin: 0 auto;
    z-index: 102;
}

.hero-btn-group-mobile {
    display: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.8vw, 3.8rem); /* Slightly smaller H1 */
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    white-space: pre-line;
    opacity: 0;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.8vw, 1.75rem); /* Max 28px */
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

body.animating .hero-title,
body.animating .hero-subtitle,
body.animation-done .hero-title,
body.animation-done .hero-subtitle {
    opacity: 1;
}

/* Line mask utilities */
.mask-line {
    display: block;
    overflow: hidden;
    line-height: inherit;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.mask-text {
    display: inline-block;
    will-change: transform;
}

/* Hero Background Video / Image Container */
.hero-video-pin-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 15; /* Sits between content and background */
    pointer-events: none;
}

.hero-video-wrapper {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 880px; /* Reduced by 50% to make the building smaller */
    aspect-ratio: 16 / 9; /* Enforce proportional 16:9 aspect ratio */
    height: auto;
    overflow: hidden;
    transform-origin: center center;
    pointer-events: auto;
    will-change: transform, width, height, top, left, opacity;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* -------------------------------------------------------------
   Scroll Pin Container & Desktop Layering
------------------------------------------------------------- */
body.animating .hero-section {
    z-index: 110;
}
body.animating .hero-video-pin-container {
    z-index: 105;
}

@media (min-width: 992px) {
    html {
        scroll-behavior: auto !important;
    }
    body.desktop-pin-active {
        overflow: hidden !important;
        height: 100vh !important;
    }
    .scroll-pin-container {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .hero-section {
        position: relative;
        width: 100%;
        height: 100vh;
        z-index: 12;
        background-color: transparent;
    }
    .hero-video-pin-container {
        z-index: 8;
    }
    .feature-item {
        width: 210px;
    }
    .uniqueness-section,
    .valencia-section,
    .stats-section,
    .team-section {
        height: 100vh !important;
        overflow: hidden !important;
    }
    .building-images-wrapper {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
    }
    .building-image-back,
    .building-image-front {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .building-image-back img,
    .building-image-front img {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        transform: none !important;
    }
    .building-title {
        margin-top: -350px !important;
    }
}

/* -------------------------------------------------------------
   Section 2: Uniqueness Section
   ------------------------------------------------------------- */
.uniqueness-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 20;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.uniqueness-section.active {
    pointer-events: auto;
}

.uniqueness-container {
    width: 91.6667%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 410px 1fr 300px; /* Left column 410px, flexible center, right column 300px to prevent text overlap */
    align-items: center;
    gap: 60px;
}

.uniqueness-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.uniqueness-title {
    color: #1F1F1B;
    font-family: var(--font-heading);
    font-size: 72px;
    font-style: normal;
    font-weight: 500;
    line-height: 72px;
    margin-bottom: 25px;
}

.uniqueness-subtitle {
    width: 100%;
    max-width: 410px;
    color: #1F1F1B;
    font-family: var(--font-heading);
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
}

.uniqueness-center-placeholder {
    width: 100%;
    height: 80vh; /* Desktop target height increased from 55vh (~50% larger) */
}

.uniqueness-right {
    width: 300px; /* Increased from 210px to accommodate longer words */
    display: flex;
    flex-direction: column;
    gap: 94px; /* 94px gap between containers */
    justify-content: center;
    align-items: flex-start;
    justify-self: end;
}

.feature-item {
    display: flex;
    align-items: stretch;
    gap: 13px; /* 13px gap between line and texts */
    width: 100%; /* Takes full width of the 300px column */
    opacity: 0;
    transform: translateY(20px);
}

.feature-line {
    width: 2px;
    flex-shrink: 0; /* Prevent line from shrinking to 0 width if text overflows */
    background: #B5654A; /* Terracotta line */
    transform: scaleY(0);
    transform-origin: center center;
    will-change: transform;
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.feature-title {
    color: #1F1F1B;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
}

.feature-subtitle {
    color: #A2A2A2;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------
   Section 3: Valencia Section
------------------------------------------------------------- */
.valencia-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 21;
    background-color: var(--color-bg-base);
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.valencia-container {
    width: 91.6667%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(30px, 3.5vw, 70px);
}

.valencia-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 1; /* Allow columns to shrink on smaller viewports */
}

.val-col-1 {
    flex: 2;
    max-width: 607px;
    width: 100%;
}

.val-col-2 {
    flex: 1;
    max-width: 284px;
    width: 100%;
}

.val-col-3 {
    flex: 1.9;
    max-width: 573px;
    width: 100%;
}

.image-reveal-wrapper {
    position: relative;
    overflow: hidden;
    background: #eaeaea; /* fallback */
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); /* Initial closed state (reveals from left) */
    will-change: clip-path;
    margin-bottom: 35px; /* Spacing below image */
}

.val-col-2 .image-reveal-wrapper {
    margin-top: 35px;
    margin-bottom: 0;
}

.reveal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.col-img-1 {
    width: 100%;
    aspect-ratio: 607 / 327;
    height: auto;
}

.col-img-2 {
    width: 100%;
    aspect-ratio: 282 / 298;
    height: auto;
}

.col-img-3 {
    width: 100%;
    aspect-ratio: 569 / 189;
    height: auto;
}

.valencia-col-title {
    color: #1F1F1B;
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 500;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.val-col-title-1 {
    max-width: 607px;
    font-size: clamp(32px, 3.2vw, 50px);
    line-height: 1.25;
}

.val-col-title-2 {
    max-width: 284px;
    font-size: clamp(32px, 3.3vw, 52px);
    line-height: 1.2;
}

.val-col-title-3 {
    max-width: 569px;
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.25;
}

.valencia-col-text {
    color: #1F1F1B;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 200% */
    width: 100%;
    max-width: 100%;
}

.val-col-text-1 {
    max-width: 598px;
}

.val-col-text-2 {
    max-width: 283px;
}

.val-col-text-3 {
    max-width: 573px;
}

/* -------------------------------------------------------------
   Section 4: Stats Section
------------------------------------------------------------- */
.stats-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 22;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.stats-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-section-title {
    width: 91.6667%;
    max-width: var(--container-max-width);
    text-align: center;
    color: #000;
    font-family: "Cormorant Infant", serif;
    font-size: clamp(36px, 4vw, 62px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: clamp(30px, 4vh, 50px);
}

/* Infinite Loop Marquee Image Slider */
.stats-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
    padding: 10px 0;
}

.stats-slider-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: infiniteMarquee 35s linear infinite;
}

.stats-slider-container:hover .stats-slider-track {
    animation-play-state: paused;
}

.stats-slide {
    width: clamp(180px, 20vw, 276px);
    height: clamp(140px, 16vw, 227px);
    flex-shrink: 0;
    margin-right: clamp(15px, 2vw, 25px); /* Spacing between images */
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

@keyframes infiniteMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-25%, 0, 0); /* Moves exactly 1/4 since content is repeated 4 times */
    }
}

/* Stats Bullets styling */
.stats-bullets-row {
    width: 91.6667%;
    max-width: var(--container-max-width);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.stat-bullet-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: none;
}

.stat-bullet-value {
    color: #1F1F1B;
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.5vw, 52px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 10px;
}

.stat-bullet-label {
    color: #1F1F1B;
    font-family: var(--font-body);
    font-size: clamp(13px, 1.2vw, 16px);
    font-style: normal;
    font-weight: 300;
    line-height: 1.6;
}

.stats-separator {
    width: 1px;
    height: clamp(60px, 8vh, 115px);
    opacity: 0.2;
    background: #000000;
    align-self: center;
    flex-shrink: 0;
}

.stats-bullets-track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.stats-bullets-row .loop-2,
.stats-bullets-row .separator-loop-2 {
    display: none !important;
}

/* -------------------------------------------------------------
   Section 5: Team Section
------------------------------------------------------------- */
.team-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 23;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.team-container {
    width: 91.6667%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.team-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    min-width: 300px;
    max-width: 615px;
}

.team-section-title {
    width: 100%;
    max-width: 615px;
    color: #000000;
    font-family: "Cormorant Infant", serif;
    font-size: clamp(38px, 4vw, 62px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 35px;
}

.team-section-desc {
    width: 100%;
    max-width: 386px;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 200% */
}

.team-right {
    display: flex;
    gap: clamp(15px, 2vw, 30px);
    align-items: center;
    flex: 2;
    justify-content: flex-end;
}

/* Card Styling */
.team-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 500 / 642;
    height: auto;
    overflow: hidden;
    flex-shrink: 1;
    /* Enforce no border radius */
    border-radius: 0;
}

.team-card-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); /* clip path for desktop entrance animation */
    will-change: clip-path;
}

/* Linear gradient overlay for readability of white text */
.team-card-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 2;
}

.team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
#team-card-1 .team-card-image {
    object-position: center 15% !important;
}

.team-card:hover .team-card-image {
    transform: scale(1.04);
}

.team-card-logo-wrapper {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 15 !important;
    opacity: 0; /* Animated in timeline */
}

.team-card-logo {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

/* Overlay Info text styling */
.team-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 40px;
    z-index: 5;
}

.team-card-name {
    color: #FFFFFF;
    font-family: "Cormorant Infant", serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.team-card-role {
    color: #FFFFFF;
    text-align: right;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 200% */
}

/* -------------------------------------------------------------
   Responsive Mobile Header & Hamburger
------------------------------------------------------------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: all 0.3s ease;
}

/* -------------------------------------------------------------
   Media Queries
------------------------------------------------------------- */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 25px;
    }
    
    .header-left {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .site-header,
    .site-header.scrolled {
        top: 0 !important;
        height: 70px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        transform: translate(0px, 0px) !important;
    }

    /* Mobile Menu Drawer */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh !important;
        background-color: var(--color-bg-base);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        padding: 80px 0 60px 0;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 1050;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li > a:not(.btn) {
        font-size: 20px;
    }

    .mobile-menu-logo-item {
        display: flex !important;
        justify-content: center;
        margin-bottom: auto;
    }
    
    .mobile-menu-logo-item img {
        width: 180px;
        height: auto;
    }

    .mobile-menu-lang-item {
        display: flex !important;
        justify-content: center;
        margin-top: auto;
    }

    .mobile-menu-lang-item .lang-switcher {
        display: flex;
        font-size: 16px;
        gap: 8px;
    }

    .mobile-menu-lang-item .lang-switcher a {
        font-size: 16px !important;
    }

    .header-right {
        gap: 15px;
    }
    
    .btn-group {
        display: none; /* Hide CTAs on very small headers or adjust below */
    }
    
    .lang-switcher {
        margin-right: 15px;
    }

    .hero-btn-group-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 35px;
        z-index: 102;
        position: relative;
        width: 100%;
    }
    
    .hero-btn-group-mobile .btn {
        width: 100%;
        max-width: 280px;
        height: 50px;
    }

    .scroll-pin-container {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .hero-section {
        position: relative;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 160px;
        box-sizing: border-box;
        z-index: 20;
    }

    .hero-video-pin-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 15;
        pointer-events: none;
    }

    .hero-video-wrapper {
        position: absolute;
        bottom: 0;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 600px;
        aspect-ratio: 16 / 9; /* Enforce proportional 16:9 aspect ratio */
        height: auto;
        overflow: hidden;
        transform-origin: center center;
        pointer-events: auto;
    }

    /* Note: .hero-video-pin-container and .hero-video-wrapper relative overrides removed to inherit desktop absolute positioning and enable ScrollTrigger pinning on mobile */

    .uniqueness-section {
        position: relative;
        width: 100%;
        height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .uniqueness-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 115px 15px 20px 15px;
        box-sizing: border-box;
        max-width: 600px;
        margin: 0 auto;
        gap: 10px;
    }

    .uniqueness-left {
        text-align: center;
        align-items: center;
    }

    .uniqueness-title {
        font-size: 34px !important;
        line-height: 38px !important;
        margin-bottom: 10px;
    }

    .uniqueness-subtitle {
        font-size: 16px !important;
        line-height: 22px !important;
        width: 100%;
        max-width: 100%;
    }

    .uniqueness-center-placeholder {
        display: block;
        width: 100%;
        height: 28vh !important; /* Reduced to fit mobile vertical viewport and prevent clipping features */
        flex-shrink: 0;
    }

    .uniqueness-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 15px;
        width: 100%;
        justify-content: center;
        justify-self: center;
    }

    .feature-item {
        opacity: 0; /* Animated by GSAP timeline */
        width: 100%;
        display: flex;
        align-items: stretch;
        gap: 13px;
    }

    .feature-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .feature-line {
        width: 2px;
        background: #B5654A;
        transform: scaleY(0);
        transform-origin: center center;
        will-change: transform;
    }

    .feature-subtitle {
        order: 1;
        font-family: var(--font-body);
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--color-text-muted);
        line-height: 1.4;
    }

    .feature-title {
        order: 2;
        font-family: var(--font-heading);
        font-size: 20px;
        font-style: italic;
        font-weight: 500;
        line-height: 1.2;
        color: var(--color-text-dark);
    }

    /* Section 3 Mobile Layout */
    .valencia-section {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        opacity: 1;
        pointer-events: auto;
        padding: 60px 0 100px 0;
    }

    .valencia-container {
        display: flex;
        flex-direction: column;
        gap: 60px;
        width: 91.6667%;
        max-width: 600px;
        align-items: center;
    }

    .valencia-column {
        width: 100% !important;
        max-width: 100% !important;
        align-items: center;
        text-align: center;
    }

    .valencia-column.val-col-2 {
        display: flex !important;
        flex-direction: column !important;
    }

    .valencia-column.val-col-2 .image-reveal-wrapper {
        order: -1 !important;
        margin-top: 0 !important;
        margin-bottom: 25px !important;
    }

    .image-reveal-wrapper {
        margin-bottom: 25px;
    }

    .col-img-1,
    .col-img-2,
    .col-img-3 {
        width: 351px !important;
        height: 189px !important;
        max-width: 100% !important;
        aspect-ratio: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .valencia-col-title {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }

    .val-col-title-1,
    .val-col-title-2 {
        font-family: "Cormorant Infant", serif !important;
        font-size: 32px !important;
        font-weight: 500 !important;
        color: #1F1F1B !important;
        line-height: normal !important;
    }

    .val-col-title-3 {
        font-family: "Cormorant Infant", serif !important;
        font-size: 25px !important;
        font-weight: 500 !important;
        color: #1F1F1B !important;
        line-height: normal !important;
    }

    .valencia-col-text {
        width: 100% !important;
        max-width: 100% !important;
        font-family: Inter, sans-serif !important;
        font-size: 14px !important;
        font-weight: 300 !important;
        color: #1F1F1B !important;
        line-height: 23px !important; /* 164.286% */
    }

    /* Section 4 Mobile Layout */
    .stats-section {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        opacity: 1 !important;
        pointer-events: auto;
        padding: 60px 0 100px 0;
    }

    .stats-container {
        width: 91.6667%;
        max-width: 600px;
        margin: 0 auto;
    }

    .stats-section-title {
        width: 100%;
        font-size: clamp(32px, 5.5vw, 42px) !important;
        line-height: 1.25 !important;
        margin-bottom: 30px;
    }

    .stats-slider-container {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .stats-slider-container::-webkit-scrollbar {
        display: none !important;
    }
    .stats-slider-track {
        animation: none !important;
    }

    .stats-slider-container .stats-slide {
        height: 150px !important;
        width: 200px !important;
        margin-right: 15px !important;
    }

    .stats-bullets-row {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        position: relative !important;
        margin-top: 15px !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding: 10px 0 !important;
        display: block !important;
    }

    .stats-bullets-track {
        display: flex !important;
        width: max-content !important;
        will-change: transform !important;
        animation: infiniteMarqueeBullets 25s linear infinite !important;
        align-items: center !important;
    }

    .stats-bullets-row .loop-2 {
        display: flex !important;
    }

    .stats-bullets-row .separator-loop-2 {
        display: block !important;
    }

    .stat-bullet-item {
        width: 120px !important;
        flex-shrink: 0 !important;
        align-items: center !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .stat-bullet-value {
        font-size: 24px !important;
        line-height: 28px !important;
        margin-bottom: 3px !important;
    }

    .stat-bullet-label {
        font-size: 10px !important;
        line-height: 14px !important;
    }

    .stats-separator {
        width: 1px !important;
        height: 20px !important;
        background-color: rgba(31, 31, 27, 0.2) !important;
        flex-shrink: 0 !important;
        margin: 0 15px !important;
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
    }

    @keyframes infiniteMarqueeBullets {
        0% {
            transform: translate3d(-50%, 0, 0);
        }
        100% {
            transform: translate3d(0, 0, 0);
        }
    }
    /* Section 5 Mobile Layout */
    .team-section {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        opacity: 1 !important;
        pointer-events: auto;
        padding: 60px 0 40px 0 !important;
    }

    .team-container {
        display: flex;
        flex-direction: column;
        gap: 50px;
        width: 91.6667%;
        max-width: 600px;
        align-items: center;
    }

    .team-left {
        align-items: center;
        text-align: center;
        flex-shrink: 1;
    }

    .team-section-title {
        width: 100%;
        font-size: clamp(28px, 4.5vw, 36px) !important;
        line-height: 1.25 !important;
        margin-bottom: 20px;
    }

    .team-section-desc {
        width: 100%;
        max-width: 100%;
        font-size: 15px !important;
        line-height: 28px !important;
    }

    .team-right {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        align-items: center;
    }

    .team-card {
        width: 100% !important;
        height: auto !important;
        max-width: 500px;
        aspect-ratio: 500 / 642;
    }

    .team-card-image-wrapper {
        clip-path: none !important; /* Always open on mobile */
    }

    .team-card-logo-wrapper {
        opacity: 1 !important;
        top: clamp(20px, 4vw, 40px);
        left: clamp(20px, 4vw, 40px);
        right: auto;
    }

    .team-card-info {
        padding: clamp(20px, 4vw, 40px);
    }

    .team-card-name {
        font-size: clamp(24px, 4vw, 36px) !important;
    }

    .team-card-role {
        font-size: clamp(13px, 2.5vw, 16px) !important;
        line-height: 1.5 !important;
    }

    /* Force text mask to display naturally on mobile except for Hero, Uniqueness & Valencia sections */
    .stats-section .mask-text,
    .team-section .mask-text,
    .building-section .mask-text {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .logo-link img {
        width: 180px;
        height: auto;
    }
    
    .hero-section {
        height: 100vh !important;
        padding-top: 120px !important;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .uniqueness-title {
        font-size: 40px;
        line-height: 40px;
    }
    
    .uniqueness-subtitle {
        font-size: 20px;
        line-height: 26px;
    }
}

/* -------------------------------------------------------------
   Section 5: Team Hover Overlay Additions
   ------------------------------------------------------------- */
.team-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 31, 27, 0.8) !important;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    padding: clamp(20px, 4vw, 40px);
    box-sizing: border-box;
    pointer-events: none;
    text-align: center !important;
}
.team-card:hover .team-card-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}
.team-card-hover-content {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2vw, 30px);
    text-align: center !important;
    align-items: center !important;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    box-sizing: border-box;
}
.team-card-hover-desc {
    color: #F7F7F3;
    font-family: var(--font-body);
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 177.778% */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.team-card-hover-quote {
    color: #CFB797;
    font-family: var(--font-body);
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
}

/* -------------------------------------------------------------
   Section 6: The Building Section
   ------------------------------------------------------------- */
.building-section {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 25;
    background-color: transparent;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.building-container {
    width: 91.6667%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.building-slider-nav {
    display: none;
}
.building-images-wrapper {
    position: absolute;
    width: 100%;
    height: calc(100% + 100px);
    top: -100px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.building-image-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}
.building-image-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.building-title {
    color: #000;
    font-family: "Cormorant Infant", serif;
    font-size: clamp(80px, 12vw, 222.745px);
    font-style: normal;
    font-weight: 500;
    line-height: 0.9;
    text-align: center;
    position: absolute;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}
.building-image-front {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}
.building-image-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4 Cards Overlay Styles */
.building-cards-container {
    display: flex;
    gap: clamp(15px, 2vw, 30px);
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 50px;
    z-index: 6;
}
.building-card {
    width: 425px;
    min-height: 305px;
    height: auto;
    background: #FBFAF7;
    padding: clamp(25px, 3vw, 40px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 0; /* Enforce no border radius */
}
.building-card-title {
    color: #000;
    font-family: "Cormorant Infant", serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
}
.building-card-text {
    color: #1F1F1B;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px; /* 200% */
}

/* Bottom transition gradient */
.building-bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(180deg, rgba(31, 31, 27, 0.00) 50.2%, #1F1F1B 100%);
    pointer-events: none;
    z-index: 5;
}

/* -------------------------------------------------------------
   Section 7: Side Slide Section (Horizontal Scroll)
   ------------------------------------------------------------- */
.horizontal-scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 24;
    background-color: #FBFAF3;
    display: flex;
    align-items: center;
    opacity: 1;
    overflow: hidden;
}
.horizontal-scroll-wrapper {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: max-content;
    will-change: transform;
    background: linear-gradient(90deg, #1F1F1B 0%, #1F1F1B 12%, #173A5E 100%);
    gap: 81px;
    align-items: center;
    padding-right: clamp(20px, 8.3333vw, 160px);
}
.horizontal-slide {
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 80px 0;
    background: transparent;
}
.horizontal-slide.slide-1 {
    width: 615px;
    margin-left: max(4.1667vw, calc((100vw - var(--container-max-width)) / 2));
}
.horizontal-slide.slide-img {
    width: 700px;
}
.horizontal-slide.slide-img .sidescroll-image-reveal {
    width: 700px;
    height: 580px;
}
.horizontal-slide.slide-text-salones,
.horizontal-slide.slide-text-cocina,
.horizontal-slide.slide-text-banos {
    width: 425px;
}
.val-width-salones,
.val-width-cocina,
.val-width-banos {
    margin-left: 0;
    max-width: 425px;
    width: 425px;
}
.val-width-salones .sidescroll-title,
.val-width-cocina .sidescroll-title,
.val-width-banos .sidescroll-title {
    font-family: "Cormorant Infant", serif;
    font-size: 52px;
    font-style: normal;
    font-weight: 500;
    line-height: 62px;
    width: 425px;
    max-width: 100%;
    color: #FFF;
}
.val-width-salones .sidescroll-desc,
.val-width-cocina .sidescroll-desc,
.val-width-banos .sidescroll-desc {
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px;
    width: 391px;
    max-width: 100%;
    color: #FFF;
}

/* -------------------------------------------------------------
   Mobile & Responsive Adaptations for Sections 5, 6, and 7
   ------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Section 5 Hover Overlay mobile adjustments */
    .team-card {
        position: relative !important;
        width: 100% !important;
        max-width: 500px !important;
        aspect-ratio: 500 / 642 !important;
        height: auto !important;
        overflow: visible !important;
        perspective: 1000px !important;
        transform-style: preserve-3d !important;
        -webkit-transform-style: preserve-3d !important;
    }
    .team-card::before {
        content: "" !important;
        display: block !important;
        padding-top: 128.4% !important; /* 642/500 = 128.4% aspect ratio fallback for Webkit height collapse */
        width: 100% !important;
        pointer-events: none !important;
    }
    .team-card-image-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        clip-path: none !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
        transform: rotateY(0deg) !important;
        z-index: 2 !important;
        transform-style: preserve-3d !important;
        -webkit-transform-style: preserve-3d !important;
    }
    .team-card-hover-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        background: rgba(31, 31, 27, 0.95) !important;
        padding: 20px 15px !important; /* Slightly smaller padding on mobile to maximize text area */
        box-sizing: border-box !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Center child vertically */
        align-items: center !important;
        overflow: visible !important; /* CRITICAL: No overflow to prevent iOS Safari 3D flattening */
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
        transform: rotateY(180deg) !important;
        z-index: 1 !important;
        transform-style: preserve-3d !important;
        -webkit-transform-style: preserve-3d !important;
    }
    .team-card-hover-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        align-items: center !important;
        margin: auto 0 !important; /* Centering when small, scroll from top when overflowing */
        width: 100% !important;
        max-height: 100% !important; /* Limit height to parent card */
        overflow-y: auto !important; /* Scroll overflowed content here */
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
        padding-right: 5px !important; /* Padding for scrollbar */
        box-sizing: border-box !important;
    }
    .team-card-hover-desc, .team-card-hover-quote {
        font-size: clamp(13px, 3.2vw, 15px) !important;
        line-height: clamp(20px, 5vw, 24px) !important;
    }
    .team-card.flipped .team-card-image-wrapper {
        transform: rotateY(-180deg) !important;
    }
    .team-card.flipped .team-card-hover-overlay {
        transform: rotateY(0deg) !important;
        z-index: 3 !important;
    }
    .team-card-logo-wrapper {
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease !important;
        transform: rotateY(0deg) translateZ(1px) !important;
        z-index: 10 !important;
    }
    .team-card.flipped .team-card-logo-wrapper {
        transform: rotateY(-180deg) !important;
        opacity: 0 !important;
    }

    /* Section 6 Mobile Stack and Card Slider */
    .building-section {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        opacity: 1 !important;
        pointer-events: auto;
        margin-top: 0 !important; /* Removed overlap, no cut off! */
        padding: 40px 0 80px 0 !important; /* Adjusted top padding */
        background: linear-gradient(180deg, #FBFAF3 0%, #FBFAF3 400px, #1F1F1B 520px, #1F1F1B 100%) !important;
        display: block !important;
    }
    .building-container {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-top: -120px !important; /* Overlay cards slightly on the bottom of the image */
        position: relative;
        z-index: 10;
        gap: 0 !important;
    }
    .building-images-wrapper {
        position: relative !important;
        height: 520px !important; /* Restored wrapper height to prevent excessive stretching */
        width: 100% !important;
        margin: 0 auto !important;
        overflow: hidden;
        display: block !important;
        z-index: 1 !important;
    }
    .building-image-front {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important; /* Touch the top of the wrapper */
        width: 100% !important;
        height: 520px !important;
        z-index: 2 !important;
        display: block !important;
    }
    .building-image-front img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    .building-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 80px auto 10px auto !important; /* Center horizontally with clean margin top */
        text-align: center !important;
        font-size: clamp(80px, 15vw, 100px) !important;
        line-height: 0.95 !important;
        white-space: normal !important;
        z-index: 5 !important; /* Crucial: render above the image (z-index 2) */
        display: block !important;
        color: #000000 !important;
    }
    
    /* Turn cards into mobile slider */
    .building-cards-container {
        position: relative !important;
        bottom: auto !important;
        display: block !important;
        width: 100% !important;
        height: 325px !important; /* height to contain card with shadow */
        padding: 0 !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }
    .building-card {
        position: absolute !important;
        top: 0;
        left: 50%;
        transform: translate3d(-50%, 15px, 0);
        width: calc(100% - 40px) !important;
        max-width: 425px !important;
        min-height: 305px !important;
        height: auto !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        background: #FBFAF7 !important;
        opacity: 0 !important;
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        padding: 30px 25px !important;
        margin: 0 !important;
    }
    .building-card.active {
        opacity: 1 !important;
        pointer-events: auto;
        transform: translate3d(-50%, 0, 0);
    }
    .building-bottom-gradient {
        display: block !important;
        position: absolute !important;
        top: 320px !important; /* Start at y = 320px (height 520px - 200px) */
        left: 0 !important;
        width: 100% !important;
        height: 200px !important;
        background: linear-gradient(180deg, rgba(31, 31, 27, 0) 0%, #1F1F1B 100%) !important;
        z-index: 3 !important; /* Position between image (z-index 2) and cards (z-index 10) */
        pointer-events: none !important;
    }

    /* Mobile Arrow Navigation */
    .building-slider-nav {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 40px !important;
        width: 100% !important;
        z-index: 15 !important;
    }
    .building-slider-arrow {
        width: 55px !important;
        height: 55px !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        color: #FFFFFF !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
    .building-slider-arrow:hover {
        border-color: #FFFFFF !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    .building-slider-arrow svg {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* Section 7 Mobile Horizontal Pinning & Scroll */
    .horizontal-scroll-section {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 100vh !important;
        opacity: 1 !important;
        pointer-events: auto;
        overflow: hidden !important;
        background-color: #FBFAF3 !important;
    }
    .horizontal-scroll-wrapper {
        display: flex;
        flex-direction: row;
        width: max-content;
        height: 100vh;
        gap: 30px;
        padding: 0 20px;
    }
    .horizontal-slide {
        height: 100vh;
        width: auto;
        padding: 40px 0;
    }
    .horizontal-slide.slide-1 {
        width: 85vw;
        margin-left: 0 !important;
    }
    .horizontal-slide.slide-img {
        width: 80vw;
    }
    .horizontal-slide.slide-img .sidescroll-image-reveal {
        width: 80vw;
        height: 45vh;
        box-shadow: none;
    }
    .horizontal-slide.slide-text-salones,
    .horizontal-slide.slide-text-cocina,
    .horizontal-slide.slide-text-banos {
        width: 85vw;
    }
    .sidescroll-text-container {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .val-width-salones,
    .val-width-cocina,
    .val-width-banos {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
    .val-width-salones .sidescroll-title,
    .val-width-cocina .sidescroll-title,
    .val-width-banos .sidescroll-title {
        font-size: 36px !important;
        line-height: 44px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .val-width-salones .sidescroll-desc,
    .val-width-cocina .sidescroll-desc,
    .val-width-banos .sidescroll-desc {
        font-size: 15px !important;
        line-height: 28px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* -------------------------------------------------------------
   Section 7 Content, Typography, CTAs & Center Reveal Styling
   ------------------------------------------------------------- */
.sidescroll-text-container {
    max-width: 615px;
    margin-left: 0;
    color: #FFF;
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2.5vh, 32px);
    text-align: left;
}

.sidescroll-title {
    color: #FFF;
    font-family: "Cormorant Infant", serif;
    font-size: 62px;
    font-style: normal;
    font-weight: 500;
    line-height: 72px; /* 116.129% */
}

.sidescroll-subtitle {
    color: #FFF;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px; /* 200% */
}

.sidescroll-desc {
    color: #FFF;
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px;
}

.sidescroll-btn-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Light Outline Button (color #F7F7F3) */
.btn-outline-light {
    border-color: #F7F7F3 !important;
    color: #F7F7F3 !important;
    background-color: transparent !important;
}

.btn-outline-light::before {
    background-color: #F7F7F3 !important;
}

.btn-outline-light:hover {
    color: #1F1F1B !important;
}

.btn-outline-light:hover svg path {
    fill: #1F1F1B !important;
    stroke: #1F1F1B !important;
}

/* Slide 2 Center Image Reveal Styling */
.sidescroll-image-reveal {
    width: clamp(320px, 65vw, 1400px);
    height: clamp(250px, 65vh, 750px);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    will-change: transform;
}

.sidescroll-image-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* -------------------------------------------------------------
   Header Light-Theme Mode (For Dark Slides)
   ------------------------------------------------------------- */
.site-header.light-theme {
    color: #FFFFFF;
    background-color: transparent !important;
}

.site-header.light-theme .logo-dark {
    display: none !important;
}

.site-header.light-theme .logo-light {
    display: block !important;
}

.site-header.light-theme .nav-menu a {
    color: #FFFFFF;
}

.site-header.light-theme .nav-menu a::after {
    background-color: #FFFFFF;
}

.site-header.light-theme .lang-switcher a {
    color: rgba(255, 255, 255, 0.6);
}

.site-header.light-theme .lang-switcher a.active {
    color: #FFFFFF;
}

.site-header.light-theme .lang-separator {
    color: rgba(255, 255, 255, 0.4);
}

.site-header.light-theme .btn-outline {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.site-header.light-theme .btn-outline::before {
    background-color: #FFFFFF;
}

.site-header.light-theme .btn-outline:hover {
    color: #1F1F1B;
}

.site-header.light-theme .btn-outline:hover svg path {
    fill: #1F1F1B;
}

.site-header.light-theme .menu-toggle span {
    background-color: #FFFFFF;
}

/* Scrolled Light Theme Overrides (For scrolled header over dark Section 7 slides) */
.site-header.scrolled.light-theme {
    height: 90px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: transparent !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
}

@media (max-width: 991px) {
    .site-header.scrolled.light-theme {
        height: 70px !important;
        transform: translate(0px, 0px) !important;
    }
}
.site-header.scrolled.light-theme .logo-dark {
    display: none !important;
}
.site-header.scrolled.light-theme .logo-light {
    display: block !important;
}
.site-header.scrolled.light-theme .nav-menu a {
    color: #FFFFFF !important;
}
.site-header.scrolled.light-theme .lang-switcher a {
    color: rgba(255, 255, 255, 0.6) !important;
}
.site-header.scrolled.light-theme .lang-switcher a.active {
    color: #FFFFFF !important;
}
.site-header.scrolled.light-theme .lang-separator {
    color: rgba(255, 255, 255, 0.4) !important;
}
.site-header.scrolled.light-theme .btn-outline {
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}
.site-header.scrolled.light-theme .btn-outline::before {
    background-color: #FFFFFF !important;
}
.site-header.scrolled.light-theme .btn-outline:hover {
    color: #1F1F1B !important;
}
.site-header.scrolled.light-theme .btn-outline:hover svg path {
    fill: #1F1F1B !important;
}
.site-header.scrolled.light-theme .menu-toggle span {
    background-color: #FFFFFF !important;
}

/* Mobile specific styling overrides for Slide 1 content */
@media (max-width: 991px) {
    .sidescroll-text-container {
        margin-left: 0;
        padding: 0 15px;
    }
    .sidescroll-title {
        font-size: 40px;
        line-height: 48px;
    }
    .sidescroll-image-reveal {
        width: 90vw;
        height: 50vh;
    }
}

/* -------------------------------------------------------------
   Section 7 Slide 8: Accordion Section
   ------------------------------------------------------------- */
.horizontal-slide.slide-accordion {
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-slide-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 91.6667%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: 80px;
    box-sizing: border-box;
}

.accordion-left-image {
    width: 55%;
    max-width: 960px;
    height: auto;
    max-height: 703px;
    aspect-ratio: 960 / 703;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-left-image-reveal {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    will-change: transform;
}

.accordion-left-image-reveal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.accordion-right-container {
    flex: 1;
    max-width: 722px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.accordion-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    user-select: none;
}

.accordion-header-text {
    color: #FBFAF7;
    font-family: "Cormorant Infant", serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.accordion-header-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.accordion-header-arrow img {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header-arrow img {
    transform: rotate(180deg);
}

.accordion-underline {
    width: 100%;
    max-width: 722px;
    height: 1px;
    opacity: 0.2;
    background: #FBFAF7;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-content-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 10px 0 30px 0;
}

.accordion-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-content-title {
    color: #FBFAF7;
    font-family: "Cormorant Infant", serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.accordion-content-desc {
    width: 342px;
    max-width: 100%;
    color: #FBFAF7;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px; /* 150% */
    margin: 0;
}

.accordion-content-bullets {
    color: #FBFAF7;
    font-family: "Cormorant Infant", serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

.accordion-content-right {
    width: 333px;
    height: 233px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.accordion-image-wrapper {
    width: 333px;
    height: 233px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

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

.accordion-expand-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(31, 31, 27, 0.4);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.accordion-expand-btn:hover {
    background: rgba(31, 31, 27, 0.7);
}

.accordion-expand-btn img {
    width: 16px;
    height: 16px;
    display: block;
}

/* Lightbox modal for accordion image zoom */
.accordion-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(31, 31, 27, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.accordion-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #FBFAF7;
    font-size: 50px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 100001;
}

.lightbox-close:hover {
    color: #B5654A;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-img.dragging {
    transition: none !important;
}

.accordion-lightbox.show .lightbox-img {
    transform: scale(1);
}

.accordion-lightbox.zoomed .lightbox-img {
    cursor: grab;
}

.accordion-lightbox.zoomed .lightbox-img.dragging {
    cursor: grabbing;
}

/* Zoom controls styling */
.lightbox-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(31, 31, 27, 0.85);
    border: 1px solid rgba(251, 250, 243, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    z-index: 100001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-zoom-btn {
    background: transparent;
    border: none;
    color: #FBFAF7;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    padding: 0;
    outline: none;
}

.lightbox-zoom-btn:hover {
    background: rgba(251, 250, 243, 0.1);
    color: #B5654A;
}

.lightbox-zoom-btn svg {
    display: block;
    pointer-events: none;
}

@media (max-width: 991px) {
    .lightbox-close {
        top: 20px;
        right: 25px;
        font-size: 40px;
    }
    .lightbox-controls {
        bottom: 30px;
        gap: 10px;
        padding: 6px 12px;
    }
    .lightbox-zoom-btn {
        width: 38px;
        height: 38px;
    }
    .lightbox-img {
        max-width: 95%;
        max-height: 75%;
    }
}

/* Mobile specific styling overrides for Slide 8 Accordion */
@media (max-width: 991px) {
    .horizontal-slide.slide-accordion {
        width: 100vw !important;
        height: 100vh !important;
        overflow-y: auto;
        padding: 80px 20px 40px 20px !important;
        display: block !important;
    }
    
    .accordion-slide-content {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 !important;
        height: auto !important;
        display: flex !important;
    }
    
    .accordion-left-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .accordion-left-image-reveal {
        max-width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
    }
    
    .accordion-left-image-reveal img {
        max-height: 250px !important;
        object-fit: contain !important;
    }
    
    .accordion-right-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .accordion-header {
        padding: 18px 0 !important;
    }
    
    .accordion-header-text {
        font-size: 20px !important;
    }
    
    .accordion-content-inner {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 15px 0 !important;
    }
    
    .accordion-content-left {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .accordion-content-title {
        font-size: 22px !important;
    }
    
    .accordion-content-desc {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 22px !important;
    }
    
    .accordion-content-bullets {
        font-size: 16px !important;
    }
    
    .accordion-content-right {
        width: 100% !important;
        height: 180px !important;
    }
    
    .accordion-image-wrapper {
        width: 100% !important;
        height: 100% !important;
    }
}

/* -------------------------------------------------------------
   Section 8: Finishes Customization Section
   ------------------------------------------------------------- */
.finishes-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #FBFAF3;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.finishes-container {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.finishes-title {
    color: #000;
    font-family: "Cormorant Infant", serif;
    font-size: clamp(38px, 4vw, 62px);
    font-style: normal;
    font-weight: 500;
    line-height: clamp(48px, 5vw, 72px);
    text-align: center;
    margin: 0 0 24px 0;
}

.finishes-subtitle {
    color: #1F1F1B;
    font-family: "Cormorant Infant", serif;
    font-size: clamp(20px, 2vw, 28px);
    font-style: normal;
    font-weight: 500;
    line-height: clamp(28px, 3.5vw, 36px);
    text-align: center;
    max-width: 658px;
    width: 100%;
    margin: 0 0 clamp(40px, 5vw, 64px) 0;
}

.finishes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.finishes-card {
    width: 100%;
    max-width: 425px;
    height: 212px;
    background: #FBFAF7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finishes-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.finishes-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.finishes-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finishes-card-title {
    color: #000;
    font-family: "Cormorant Infant", serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

.finishes-card-text {
    color: #1F1F1B;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px;
    margin: 0;
}

.finishes-card-circles {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.finish-circle {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-sizing: border-box;
}

.finishes-card-footer {
    width: 100%;
}

.finishes-card-bullets {
    color: #1F1F1B;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 32px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finishes-bottom-text {
    color: #1F1F1B;
    text-align: center;
    font-family: "Cormorant Infant", serif;
    font-size: clamp(16px, 1.5vw, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
    margin: 0 0 24px 0;
}

.finishes-action {
    display: flex;
    justify-content: center;
    width: 100%;
}

.finishes-action .btn-outline {
    min-width: 280px;
}

/* -------------------------------------------------------------
   Section 9: Video Transition Section
   ------------------------------------------------------------- */
.video-transition-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #FBFAF3;
    z-index: 24;
    overflow: hidden;
}

.video-transition-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
}

#video-transition-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive Media Queries */
@media (max-width: 1700px) {
    .finishes-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 991px) {
    .finishes-section {
        height: auto !important;
        padding: 80px 0;
    }

    .finishes-container {
        padding: 0 20px;
    }
    
    .finishes-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .finishes-card {
        width: 100%;
        max-width: 425px;
        height: auto;
        min-height: 200px;
        padding: 24px;
    }
    
    .finishes-card-bullets {
        white-space: normal;
        line-height: 20px;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .finishes-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
   Section 10: Contact Section
   ------------------------------------------------------------- */
.contact-section {
    position: relative;
    width: 100%;
    background-color: #FBFAF3;
    z-index: 24;
    padding: clamp(80px, 8vw, 120px) 0 80px 0;
    box-sizing: border-box;
}

.contact-container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.contact-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    width: 100%;
    margin-bottom: clamp(60px, 6vw, 100px);
}

.contact-left-col {
    flex: 1;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-title {
    color: #000;
    font-family: "Cormorant Infant", serif;
    font-size: clamp(38px, 4.5vw, 62px);
    font-style: normal;
    font-weight: 500;
    line-height: clamp(48px, 5.5vw, 72px);
    margin: 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
    width: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
}

.contact-info-line {
    width: 1px;
    height: 55px;
    background: #B5654A;
    flex-shrink: 0;
}

.contact-info-content {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-title {
    color: #000;
    font-family: "Cormorant Infant", serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

.contact-info-text {
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
}

.contact-info-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: #B5654A;
}

.contact-right-col {
    width: 620px;
    flex-shrink: 0;
}

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

.contact-form .form-group {
    width: 100%;
}

.contact-form .form-control {
    width: 100%;
    height: 70px;
    background: transparent;
    border: 1px solid rgba(31, 31, 27, 0.2);
    box-sizing: border-box;
    padding: 0 24px;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: rgba(31, 31, 27, 0.8);
}

.contact-form .textarea-control {
    height: 120px;
    padding: 20px 24px;
    resize: vertical;
}

.form-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.contact-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.contact-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.contact-checkbox-custom {
    height: 18px;
    width: 18px;
    border: 1px solid #000;
    box-sizing: border-box;
    display: inline-block;
    margin-right: 12px;
    position: relative;
    background: transparent;
}

.contact-checkbox-container input:checked ~ .contact-checkbox-custom::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-checkbox-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000;
}

.contact-submit-btn {
    min-width: 180px;
}

.form-status-message {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-top: 10px;
    display: none;
    transition: opacity 0.3s ease;
}

.form-status-message.success {
    color: #2e7d32;
}

.form-status-message.error {
    color: #c62828;
}

.contact-form .form-control.error {
    border-color: #c62828 !important;
}

.contact-checkbox-custom.error {
    border-color: #c62828 !important;
}

.contact-checkbox-label.error {
    color: #c62828 !important;
}

/* Map Style */
.contact-map-wrapper {
    width: 100%;
    height: 380px;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

#contact-map {
    width: 100%;
    height: 100%;
    display: block;
}

/* Grayscale filter for Leaflet tiles to match the elegant design system, transitions to color on hover */
.leaflet-tile-container {
    filter: grayscale(100%) contrast(1.15) brightness(0.95);
    transition: filter 0.5s ease;
}

.contact-map-wrapper:hover .leaflet-tile-container {
    filter: grayscale(0%) contrast(1.0) brightness(1.0);
}

/* Custom Leaflet Map Pin styling */
.custom-pin-container {
    position: relative;
    width: 30px;
    height: 30px;
}

.custom-map-pin {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-dot {
    width: 14px;
    height: 14px;
    background-color: var(--color-accent-terracotta);
    border: 2px solid #FBFAF7;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    z-index: 2;
    position: absolute;
    cursor: pointer;
}

.pin-pulse {
    width: 30px;
    height: 30px;
    background: rgba(181, 101, 74, 0.4);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    animation: pinPulse 2s infinite ease-out;
}

@keyframes pinPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Leaflet Popup Premium Theme overrides */
.leaflet-popup-content-wrapper {
    background: #FBFAF7 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(31, 31, 27, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 2px !important;
}

.leaflet-popup-tip {
    background: #FBFAF7 !important;
}

.leaflet-popup-content {
    margin: 8px 12px !important;
    line-height: 1.4 !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--color-text-muted) !important;
    padding: 6px 4px 0 0 !important;
}

/* Disclaimer Style */
.disclaimer-container {
    max-width: 1464px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-disclaimer {
    width: 100%;
    color: #000;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    opacity: 0.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .contact-container {
        padding: 0 20px;
    }
    
    .contact-columns {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .contact-left-col {
        width: 100%;
        max-width: 620px;
    }
    
    .contact-right-col {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .contact-submit-btn {
        width: 100%;
    }
    
    .contact-map-wrapper {
    }
}

/* Desktop Premium Transitions: Overlay Finishes, WebP Transition & Contact Section */
@media (min-width: 992px) {
    .finishes-transition-contact-group {
        position: relative;
        width: 100%;
        height: calc(100vh + 640px);
        background-color: #FBFAF3;
    }

    .finishes-section {
        position: relative;
        width: 100%;
        height: 100vh !important;
        background-color: transparent !important;
        z-index: 22;
        overflow: hidden;
    }

    .video-transition-section {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 23 !important;
        opacity: 0;
        pointer-events: none;
        background-color: #FBFAF3 !important;
    }

    .contact-section {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh + 640px) !important;
        z-index: 24 !important;
        opacity: 0;
        pointer-events: none;
        background-color: #FBFAF3 !important;
        padding: 250px 0 80px 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .contact-section.active-contact {
        pointer-events: auto !important;
    }

    .contact-section .contact-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        z-index: 25 !important;
    }

    .contact-section .contact-map-wrapper {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 800px !important;
        margin: 30px 0 !important;
    }

    .contact-section .disclaimer-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
}

/* =============================================================
   Global Footer Styling
   ============================================================= */
.site-footer {
    background-color: #1F1F1B;
    color: #FBFAF3;
    padding: 80px 0 40px 0;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(251, 250, 243, 0.1);
    position: relative;
    z-index: 25;
}
.footer-container {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col {
    display: flex;
    flex-direction: column;
}
.footer-logo {
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(251, 250, 243, 0.7);
    margin-bottom: 20px;
    max-width: 280px;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    color: #FBFAF3;
    opacity: 0.7;
    font-size: 16px;
    transition: opacity 0.3s ease;
}
.footer-socials a:hover {
    opacity: 1;
}
.footer-col-title {
    font-family: 'Cormorant Infant', serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #FBFAF3;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(251, 250, 243, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #FBFAF3;
}
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(251, 250, 243, 0.7);
}
.footer-contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contact-info a:hover {
    color: #FBFAF3;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(251, 250, 243, 0.1);
    padding-top: 30px;
    font-size: 12px;
    color: rgba(251, 250, 243, 0.5);
}
.footer-copy {
    margin: 0;
}
.footer-credit {
    margin: 0;
}
.footer-credit a {
    color: #FBFAF3;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.footer-credit a:hover {
    opacity: 1;
}

/* Responsive Footer styling */
@media (max-width: 991px) {
    .site-footer {
        padding: 60px 0 30px 0;
    }
    .footer-container {
        padding: 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
        margin-bottom: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Cookie Consent Banner Styling */
.bonom-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(31, 31, 27, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 250, 243, 0.1);
    border-radius: 12px;
    padding: 20px 25px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(150%); /* Start hidden off-screen */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
}

.bonom-cookie-banner.cookie-banner-active {
    transform: translateY(0) !important; /* Slide up into position */
    opacity: 1 !important;
}

.bonom-cookie-banner.cookie-banner-fade-out {
    opacity: 0;
    transform: translateY(150%);
}

.cookie-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-banner-text {
    color: var(--color-bg-base);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    flex-grow: 1;
}

.cookie-banner-text a {
    color: var(--color-accent-terracotta);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: var(--color-accent-terracotta-hover);
}

.cookie-banner-btn {
    flex-shrink: 0;
    padding: 10px 20px !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    background-color: var(--color-accent-terracotta) !important;
    color: var(--color-bg-base) !important;
    border: none !important;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-btn:hover {
    background-color: var(--color-accent-terracotta-hover) !important;
    transform: scale(1.02);
}

/* Align and position banner beautifully on desktop */
@media (min-width: 768px) {
    .bonom-cookie-banner {
        left: auto;
        right: 40px;
        bottom: 40px;
        width: 420px;
        transform: translateY(150%);
    }
    
    .bonom-cookie-banner.cookie-banner-active {
        transform: translateY(0);
    }
    
    .cookie-banner-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-banner-btn {
        align-self: flex-end;
    }
}

/* Mobile Menu CTA Buttons */
.mobile-menu-btn-item {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-menu-btn-item {
        display: block !important;
        width: 80%;
        max-width: 320px;
        margin: 10px auto;
    }

    .mobile-menu-btn-item .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .mobile-menu-btn-item .btn {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        display: inline-flex !important;
    }

    .mobile-menu-btn-item .btn-outline {
        border: 1px solid var(--color-text-dark) !important;
        color: var(--color-text-dark) !important;
    }

    .mobile-menu-btn-item .btn-outline::before {
        background-color: var(--color-text-dark) !important;
    }

    .mobile-menu-btn-item .btn-outline:hover {
        color: var(--color-bg-base) !important;
    }
}

