/* ===========================================
   DERECH HAMELECH - LANDING PAGE STYLES
   
   Architecture & Design Portfolio
   Supports LTR (English) and RTL (Hebrew) layouts
   Uses CSS logical properties for direction-agnostic design
   =========================================== */

/* ===========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   =========================================== */
:root {
    /* Color Palette */
    --color-white: #FFFFFF;
    --color-cream: #CCC5B9;
    --color-light: #F8F9FA;
    --color-gray: #403D39;
    --color-dark: #252422;
    --color-gold: #B8860B;

    /* Typography - Modern & Elegant */
    --font-primary: 'Assistant', sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-hebrew-serif: 'Heebo', 'Frank Ruhl Libre', 'David Libre', sans-serif;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1400px;
    --container-padding: clamp(1rem, 5vw, 4rem);
    --navbar-height: 80px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 800ms ease;

    /* Z-index Scale */
    --z-background: -1;
    --z-default: 1;
    --z-content: 10;
    --z-overlay: 50;
    --z-navbar: 100;
    --z-modal: 1000;
}

/* ===========================================
   ENGLISH ACCENT TYPOGRAPHY (Premium Design)
   - Ornamental English text as visual design element
   - Serif fonts, uppercase, generous spacing
   - Muted, luxurious colors
   =========================================== */

/* Base English Accent Class */
.english-accent {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: rgba(64, 61, 57, 0.45);
    direction: ltr;
    unicode-bidi: isolate;
}

/* Hero Section English Accent */
.hero-english-accent {
    position: absolute;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 400;
    color: rgba(64, 61, 57, 0.15);
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    direction: ltr;
}

.hero-english-accent.top-left {
    inset-block-start: calc(var(--navbar-height) + 2rem);
    inset-inline-start: var(--container-padding);
}

.hero-english-accent.top-right {
    inset-block-start: calc(var(--navbar-height) + 2rem);
    inset-inline-end: var(--container-padding);
}

.hero-english-accent.bottom-left {
    inset-block-end: calc(25% + 2rem);
    inset-inline-start: var(--container-padding);
}

/* Section Divider English Labels */
.section-english-label {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 400;
    font-size: 0.7rem;
    color: rgba(204, 197, 185, 0.9);
    text-align: center;
    margin-block-end: var(--space-sm);
    direction: ltr;
    unicode-bidi: isolate;
}

/* Footer English Signature */
.footer-english-signature {
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    font-size: 0.7rem;
    color: rgba(64, 61, 57, 0.5);
    margin-block-start: var(--space-md);
    direction: ltr;
    unicode-bidi: isolate;
}

/* ===========================================
   CSS RESET & BASE STYLES
   =========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *:not(.testimonials-track),
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* ===========================================
   GLOBAL TYPOGRAPHY
   - Base sizes for heading and paragraph tags
   - All sections inherit from these
   =========================================== */
h1 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}

h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-dark);
}

h3 {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

p {
    font-family: var(--font-primary);
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-gray);
}

html {
    overflow-x: clip;
    width: 100%;
}

/* RTL/LTR Direction Support */
body[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

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

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

/* Direction Awareness for Fixed Elements */
body[dir="rtl"] #preloader {
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
}

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

/* ===========================================
   NAVBAR STYLES
   - Elegant horizontal navigation
   - Logo at inline-start, navigation links spread
   - Uses logical properties for RTL support
   =========================================== */
.navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: var(--z-navbar);
    padding-block: var(--space-lg);
    background: transparent;
    transition: background-color var(--transition-base),
        backdrop-filter var(--transition-base),
        -webkit-backdrop-filter var(--transition-base),
        padding var(--transition-base);
}

/* Navbar becomes blurred when scrolled - dissolving bottom edge */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    padding-block: var(--space-sm);
}

.navbar-container {
    max-width: 1700px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(0);
    /* Dark logo by default */
    transition: filter var(--transition-base), height var(--transition-base);
}

.navbar.scrolled .navbar-logo img {
    height: 45px;
}

/* Desktop Navigation Links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition-base), opacity var(--transition-base);
    position: relative;
}

/* Navbar on hero video - white text */
.navbar:not(.scrolled) .nav-link {
    color: var(--color-white);
}

.navbar:not(.scrolled) .navbar-logo img {
    filter: brightness(0) invert(1);
}

.navbar:not(.scrolled) .hamburger-line {
    background-color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -4px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-base);
}

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

.nav-link:hover {
    opacity: 0.7;
}

/* Responsive Navbar Padding */
@media (max-width: 768px) {
    .navbar {
        padding-block: var(--space-sm);
    }

    .navbar.scrolled {
        padding-block: var(--space-xs);
    }
}

/* Hamburger Menu Button - Hidden on desktop */
.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-navbar) + 10);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 36px;
    height: 26px;
    gap: 6px;
}

.hamburger-line {
    display: block;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 0;
    transition: width var(--transition-base), transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
}

/* Force white lines when menu is active/open (against dark modal) */
.navbar-toggle.active .hamburger-line {
    background-color: var(--color-white) !important;
}

/* Staggered line widths - middle line shorter */
.hamburger-line:nth-child(1) {
    width: 100%;
}

.hamburger-line:nth-child(2) {
    width: 75%;
}

.hamburger-line:nth-child(3) {
    width: 100%;
}

.navbar-toggle:hover .hamburger-line {
    width: 100%;
}

/* Active state transforms hamburger to X (when modal is open) */
.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    width: 100%;
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    width: 100%;
}

/* ===========================================
   NAVIGATION MODAL
   - Full-screen overlay navigation
   - Smooth open/close animations
   - RTL/LTR agnostic
   =========================================== */
.nav-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.nav-modal.active {
    visibility: visible;
    pointer-events: auto;
}

/* Dark overlay background */
.nav-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(37, 36, 34, 0.97);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.nav-modal.active .nav-modal-overlay {
    opacity: 1;
}

/* Modal content container */
.nav-modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-3xl) var(--container-padding);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.nav-modal.active .nav-modal-content {
    opacity: 1;
    transform: translateY(0);
}

/* Close button inside modal - Hidden as we use the main toggle */
.nav-modal-close {
    display: none !important;
}

/* Ensure navbar stays on top of modal when open */
body.nav-open .navbar {
    z-index: calc(var(--z-modal) + 1);
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Force elements to be white/correct style when over dark modal */
body.nav-open .navbar-logo img {
    filter: brightness(0) invert(1) !important;
}

/* Old close button style (kept but hidden) */
.nav-modal-close-hidden {
    position: absolute;
    inset-block-start: var(--space-lg);
    inset-inline-end: var(--container-padding);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.close-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.close-line {
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    width: 24px;
    height: 2.5px;
    background-color: var(--color-white);
    border-radius: 1px;
    transform-origin: center;
}

.close-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-modal-close:hover .close-line {
    background-color: var(--color-cream);
}

/* Navigation list */
.nav-modal-nav {
    text-align: center;
}

.nav-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-modal-list li {
    margin-block-end: var(--space-lg);
}

.nav-modal-link {
    display: inline-block;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-base), transform var(--transition-base);
    position: relative;
}

.nav-modal-link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -4px;
    width: 0;
    height: 2px;
    background-color: var(--color-cream);
    transition: width var(--transition-base);
}

.nav-modal-link:hover,
.nav-modal-link.active {
    color: var(--color-cream);
}

.nav-modal-link:hover::after,
.nav-modal-link.active::after {
    width: 100%;
}

/* Modal footer with language switch */
.nav-modal-footer {
    margin-block-start: var(--space-3xl);
}

.nav-lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.nav-lang-switch:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Body scroll lock when modal is open */
body.nav-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .nav-modal-list li {
        margin-block-end: var(--space-md);
    }

    .nav-modal-link {
        font-size: 1.5rem;
    }

    .nav-modal-footer {
        margin-block-start: var(--space-xl);
    }
}

/* ===========================================
   HERO SECTION (NEW DESIGN)
   - Background video with dark overlay
   - White text overlay on video
   - Marquee image carousel at bottom
   =========================================== */
.hero-new {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-color: var(--color-dark);
}

/* Video Background Styles */
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

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

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

/* Hero with video - white text and accents */
.hero-video .hero-english-accent {
    color: rgba(255, 255, 255, 0.4);
}

.hero-video .hero-subtitle-new {
    color: rgba(255, 255, 255, 0.85);
}

.hero-video .hero-headline-new {
    color: var(--color-white);
}

.hero-video .hero-headline-new em {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Content - Centered Typography */
.hero-content-new {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--navbar-height) + var(--space-md)) var(--container-padding);
    position: relative;
    z-index: 2;
}

.hero-subtitle-new {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray);
    letter-spacing: 0.15em;
    margin-block-end: var(--space-xl);
    text-transform: uppercase;
    direction: ltr;
}

.hero-headline-new {
    font-family: var(--font-primary);
    font-size: clamp(2.25rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-dark);
    letter-spacing: -0.01em;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-headline-new em {
    font-style: normal;
    font-weight: 900;
}

/* Gold Hero Headline - Royal Standard Typography */
.hero-headline-gold {
    text-align: center;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-headline-gold .headline-line-1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 5.5vw, 4.5rem);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-block-end: 0;
    /* Professional soft black outer glow - subtle and elegant */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Each row displays as block to force 2 lines */
.hero-headline-gold .headline-line-1 .headline-row {
    display: block;
    white-space: nowrap;
    text-align: center;
}

.hero-headline-gold .headline-line-2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 3.3vw, 2.7rem);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    margin-block-start: 0.6rem;
    white-space: nowrap;
    opacity: 0.9;
    /* Professional soft shadow for tagline */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 0, 0, 0.2);
}

/* Medium Screens & Tablets (Landscape/Portrait) */
@media (max-width: 1024px) {
    .hero-headline-gold .headline-line-1 {
        font-size: clamp(1.8rem, 5.5vw, 3.2rem);
    }

    .hero-headline-gold .headline-line-2 {
        font-size: clamp(0.8rem, 3.5vw, 1.6rem);
        letter-spacing: 0.25em;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hero-headline-gold .headline-line-1 {
        font-size: clamp(1.4rem, 8.5vw, 2.8rem);
        line-height: 1.15;
    }

    .hero-headline-gold .headline-line-1 .headline-row {
        white-space: normal;
        word-break: keep-all;
    }

    .hero-headline-gold .headline-line-2 {
        font-size: clamp(0.7rem, 4vw, 1.2rem);
        letter-spacing: 0.18em;
        margin-block-start: 0.6rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero-headline-gold .headline-line-1 {
        font-size: clamp(1.2rem, 9vw, 2.2rem);
        letter-spacing: 0.01em;
    }

    .hero-headline-gold .headline-line-2 {
        font-size: clamp(0.6rem, 3.5vw, 0.9rem);
        letter-spacing: 0.15em;
    }
}

/* Very Small Devices */
@media (max-width: 380px) {
    .hero-headline-gold .headline-line-1 {
        font-size: clamp(1.1rem, 9.5vw, 1.8rem);
    }

    .hero-headline-gold .headline-line-2 {
        font-size: clamp(0.5rem, 3vw, 0.7rem);
        letter-spacing: 0.1em;
    }
}

/* ===========================================
   MARQUEE IMAGE CAROUSEL
   - Smooth horizontal scroll animation
   - Pauses on hover
   - Images pop out on hover
   =========================================== */
.hero-marquee-container {
    position: relative;
    width: 100%;
    padding-block-start: var(--space-lg);
    /* Force LTR for marquee animation in RTL document */
    direction: ltr;
    unicode-bidi: isolate;
    z-index: 2;
}

/* ===========================================
   MARQUEE SECTION (Standalone)
   =========================================== */
.marquee-section {
    background-color: var(--color-white);
    padding-block: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.marquee-section .hero-marquee-container {
    padding-block-start: var(--space-md);
}

/* Location Labels */
.marquee-label {
    position: absolute;
    inset-block-start: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.marquee-label-left {
    inset-inline-start: var(--container-padding);
}

.marquee-label-center {
    inset-inline-start: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.marquee-label-right {
    inset-inline-end: var(--container-padding);
    text-align: end;
}

.label-location,
.label-company {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray);
    letter-spacing: 0.1em;
}

.label-time,
.label-since {
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    color: var(--color-gray);
}

/* Marquee Track */
.hero-marquee {
    width: 100%;
    overflow: hidden;
    padding-block: var(--space-lg) var(--space-sm);
}

.marquee-track {
    display: flex;
    gap: var(--space-sm);
    animation: marqueeScroll 280s linear infinite;
    width: max-content;
    will-change: transform;
    transition: gap 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pause animation, increase gaps, and zoom out on hover */
.hero-marquee:hover .marquee-track {
    animation-play-state: paused;
    gap: var(--space-xl);
    transform: scale(0.95);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Marquee Items */
.marquee-item {
    flex-shrink: 0;
    width: clamp(200px, 45vw, 350px);
    height: clamp(180px, 40vw, 280px);
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

@media (max-width: 768px) {
    .marquee-item {
        width: 260px;
        height: 200px;
    }
}

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

/* Hero fade-in animation */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content-new {
    animation: heroFadeIn var(--transition-slower) ease-out forwards;
}

.hero-marquee-container {
    animation: heroFadeIn var(--transition-slower) 200ms ease-out forwards;
}

/* ===========================================
   ARCHITECTURE SECTION
   - Large heading with measurement lines
   - Technical/editorial aesthetic
   =========================================== */
.architecture-section {
    padding-block: var(--space-2xl);
    background-color: var(--color-white);
}

.section-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.architecture-heading {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-dark);
    text-align: center;
    letter-spacing: -0.02em;
    margin-block-end: var(--space-2xl);
}

/* Measurement Lines Container */
.measurement-lines {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(2rem, 8vw, 8rem);
    padding-block: var(--space-3xl);
    margin-block-end: var(--space-3xl);
}

.measurement-line {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grow animation for measurement lines */
@keyframes growLine {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: var(--line-height);
        opacity: 1;
    }
}

.measurement-line .line {
    width: 1px;
    --line-height: 200px;
    height: 0;
    background-color: var(--color-dark);
    transform-origin: bottom;
}

/* Different line weights and heights for each measurement line */
.measurement-line:nth-child(1) .line {
    width: 1px;
    --line-height: 280px;
    animation-delay: 0.1s;
}

.measurement-line:nth-child(2) .line {
    width: 2.5px;
    --line-height: 380px;
    animation-delay: 0.2s;
}

.measurement-line:nth-child(3) .line {
    width: 1px;
    --line-height: 120px;
    animation-delay: 0.3s;
}

.measurement-line:nth-child(4) .line {
    width: 2px;
    --line-height: 320px;
    animation-delay: 0.4s;
}

.measurement-line:nth-child(5) .line {
    width: 1px;
    --line-height: 200px;
    animation-delay: 0.5s;
}

.measurement-line:nth-child(6) .line {
    width: 2px;
    --line-height: 260px;
    animation-delay: 0.6s;
}

.measurement-line .value {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray);
    margin-block-start: var(--space-sm);
    letter-spacing: 0.05em;
    opacity: 0;
}

/* Trigger animations when container is revealed */
.measurement-lines.revealed .measurement-line .line {
    animation: growLine 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.measurement-lines.revealed .measurement-line .value {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Stagger delays for values (relative to line start) */
.measurement-lines.revealed .measurement-line:nth-child(1) .value {
    animation-delay: 0.9s;
}

.measurement-lines.revealed .measurement-line:nth-child(2) .value {
    animation-delay: 1.0s;
}

.measurement-lines.revealed .measurement-line:nth-child(3) .value {
    animation-delay: 1.1s;
}

.measurement-lines.revealed .measurement-line:nth-child(4) .value {
    animation-delay: 1.2s;
}

.measurement-lines.revealed .measurement-line:nth-child(5) .value {
    animation-delay: 1.3s;
}

.measurement-lines.revealed .measurement-line:nth-child(6) .value {
    animation-delay: 1.4s;
}

/* Override default fade-up for measurement lines container to avoid double opacity */
.measurement-lines[data-parallax="fade-up"] {
    opacity: 1;
    transform: none;
    transition: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial Block */
.testimonial-block {
    text-align: center;
    padding-block-start: var(--space-3xl);
    border-block-start: 1px solid rgba(0, 0, 0, 0.08);
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-block-end: var(--space-sm);
}

.testimonial-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ===========================================
   WHAT WE DO SECTION
   - Professional bento-style grid layout
   - Service offerings with descriptions
   - Strategic image placement
   =========================================== */
.what-we-do-section {
    padding-block: var(--space-2xl);
    background-color: var(--color-white);
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.intro-item .section-english-label {
    text-align: right;
    margin-block-end: var(--space-xs);
}

@media (max-width: 768px) {
    .what-we-do-section {
        padding-block: var(--space-2xl);
    }

    .what-we-do-header .section-subheading {
        display: block;
        font-size: 1rem;
        padding-inline: var(--space-md);
    }

    .intro-item .section-english-label {
        text-align: center;
    }

    .intro-item .wwd-item-desc {
        text-align: center;
    }
}

/* Section Header */
.what-we-do-header {
    text-align: center;
    padding-inline: var(--container-padding);
    margin-block-end: var(--space-2xl);
}

.section-heading-large {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.02em;
    margin-block-end: var(--space-sm);
}

.section-subheading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-gray);
    max-width: 600px;
    margin-inline: auto;
}

/* Content Layout */
.what-we-do-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-2xl) var(--space-xl);
    /* Small but distinct separation between main rows */
    max-width: 1700px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Items */
.wwd-item {
    display: flex;
    flex-direction: column;
}

/* Top Left Group Wrapper */
.wwd-top-left-group {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    align-self: center;
    /* Determine vertical center relative to image */
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    padding-inline-end: var(--space-2xl);
}

/* Intro Item (Now inside wrapper) */
.intro-item {
    /* Reset grid placement as it's now flex child */
    padding-inline-end: 0;
    align-self: auto;
    margin-block-end: 0;
}

.wwd-item-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-block-end: var(--space-xs);
    line-height: 1.15;
}

.wwd-item-desc {
    font-size: 1.125rem;
    color: var(--color-gray);
    line-height: 1.6;
    max-width: 100%;
}

/* Service Group 1 (Now inside wrapper) */
.service-group-1 {
    /* Reset grid placement */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-content: start;
    padding-block-start: 0;
}

/* Service Group 2 (Bottom Right - Spans 2 cols) */
.service-group-2 {
    grid-column: 2 / 4;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-content: center;
    /* Center content internally */
    align-self: center;
    /* Center the whole group in the row */
}

/* Image Items */
.img-right {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    height: 100%;
    align-self: stretch;
}

.img-left {
    grid-column: 1 / 2;
    grid-row: 3;
    width: 100%;
    height: 100%;
    align-self: stretch;
}

/* Hover Animations */
.image-item {
    overflow: hidden;
    border-radius: 6px;
    /* Ensure mask for scale */
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-item:hover img {
    transform: scale(1.05);
    /* Smooth zoom */
}

/* Individual Service Items */
.wwd-service-item {
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base);
}

.wwd-service-item:hover .wwd-title {
    color: var(--color-primary);
    /* Highlight title on hover */
}

.wwd-service-item:hover {
    transform: translateY(-2px);
    /* Subtle lift */
}


/* Responsive Layout */
@media (max-width: 1200px) {
    .what-we-do-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: var(--space-2xl);
    }

    /* Stack Top Left Group */
    .wwd-top-left-group {
        grid-column: 1 / -1;
        grid-row: auto;
        padding-inline-end: 0;
    }

    /* Images move below or stacking */
    .img-right {
        grid-column: 1 / -1;
        grid-row: auto;
        aspect-ratio: 16/9;
        height: auto;
    }

    .img-left {
        grid-column: 1 / 2;
        grid-row: auto;
        aspect-ratio: 1;
        height: auto;
    }

    .service-group-2 {
        grid-column: 2 / 3;
        grid-row: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .what-we-do-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .wwd-top-left-group,
    .img-right,
    .img-left,
    .service-group-2 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .service-group-1 {
        grid-template-columns: 1fr;
        /* Stack internal services */
    }

    .img-right,
    .img-left {
        aspect-ratio: 16/9;
    }

    .service-group-2 {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
}



/* ===========================================
   ABOUT SECTION
   - Two column layout
   - Parallax background image
   =========================================== */
.about-section {
    padding-block: var(--space-2xl);
    background-color: var(--color-white);
    overflow-x: clip;
}

.about-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text-column {
    padding-inline-end: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-body-first {
    margin-block-start: 0;
}

.about-intro {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-block-end: var(--space-xs);
}

.about-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-block-end: var(--space-xs);
}

.about-body {
    font-size: 0.9375rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-block-start: var(--space-lg);
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    margin-block-start: var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark);
    transition: color var(--transition-base);
}

.link-line {
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-dark);
    transition: width var(--transition-base);
}

.about-link:hover .link-line {
    width: 60px;
}

/* Quote Column */
.about-quote-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.featured-quote {
    text-align: end;
}

.quote-text {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--color-cream);
    line-height: 1.4;
}

/* Fixed Background Underlay */
#fixed-bg-underlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -5;
    background-image: url('assets/fwd/16_.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure all content sections have a background to hide the fixed image */
/* margin-block-start: -1px prevents sub-pixel gaps (from browser translation/zoom)
   that would reveal the fixed parallax background between sections */
.hero-new,
.marquee-section,
.what-we-do-section,
.about-section,
.projects-section,
.flooring-colors-section,
.flooring-types-section,
.testimonials-section,
.contact-section,
.footer {
    position: relative;
    z-index: 1;
    background-color: var(--color-white);
    box-shadow: 0 -1px 0 0 var(--color-white);
}

/* Rendering optimisation: skip layout/paint for off-screen sections */
.projects-section,
.about-section,
.flooring-types-section,
.testimonials-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* Parallax Window ("The Hole") */
.about-image-parallax {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: transparent;
    /* Allows fixed bg to show through */
    position: relative;
    z-index: 0;
    /* Behind other content but above fixed bg */
}

/* FIX: Mobile Background Handling 
   - Disables fixed background to prevent overscroll showing image at top/bottom
   - Applies image directly to the parallax div instead
*/
@media (max-width: 1024px) {
    #fixed-bg-underlay {
        display: none;
    }

    .about-image-parallax {
        background-image: url('assets/fwd/16_.webp');
        background-size: cover;
        /* Fallback */
        background-size: auto 130%;
        /* Zoom in slightly to allow parallax movement without whitespace */
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        /* Normal scrolling on mobile */
    }

    html {
        background-color: var(--color-dark);
        /* Dark overscroll at top */
    }

    body {
        background-color: var(--color-white);
        /* Content background */
    }
}

/* Removed old .parallax-image rules as we use CSS-only global fixed bg now */

/* ===========================================
   QUOTE SECTION
   - Centered quote with decorative elements
   =========================================== */
.quote-section {
    padding-block: var(--space-3xl);
    background-color: var(--color-white);
}

.quote-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    text-align: center;
    position: relative;
}

.quote-marks {
    font-size: clamp(10rem, 20vw, 20rem);
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    /* Very faint background */
    line-height: 1;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
}

.quote-marks svg {
    width: 1em;
    height: 1em;
    stroke: none;
    fill: currentColor;
    /* Matches the color defined in parent */
}

.center-quote {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-gray);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.center-quote p {
    margin-block-end: var(--space-xs);
}

/* Quote Measurement */
.quote-measurement {
    position: absolute;
    inset-inline-end: var(--container-padding);
    inset-block-start: 50%;
    /* Center vertically relative to container */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.quote-measurement .line {
    width: 1px;
    height: 100px;
    background-color: var(--color-dark);
}

.quote-measurement .value {
    writing-mode: vertical-rl;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-gray);
    margin-block-start: var(--space-sm);
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    padding-block-start: var(--space-3xl);
}

.divider-value {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

/* ===========================================
   PROJECTS SECTION
   - Large heading
   - Three category cards
   =========================================== */
.projects-section {
    padding-block: var(--space-2xl);
    background-color: var(--color-white);
    overflow-x: clip;
}

.projects-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.projects-heading {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-dark);
    text-align: center;
    letter-spacing: -0.02em;
    margin-block-end: var(--space-2xl);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* Project Card */
.project-card {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
}

.card-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            transparent 100%);
    transition: opacity var(--transition-base);
}

.project-card:hover .card-image {
    transform: scale(1.05);
}

.project-card:hover .card-overlay {
    opacity: 0.8;
}

/* Card Content */
.card-content {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: var(--space-xl);
    color: var(--color-white);
    z-index: var(--z-content);
}

.card-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-block-end: var(--space-xs);
    color: var(--color-light);
}

.card-subtitle {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(0.65rem, 1.2vw, 0.85rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.75;
    margin-block-end: var(--space-sm);
    direction: ltr;
    unicode-bidi: isolate;
    text-align: end;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.card-link-line {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-white);
    transition: width var(--transition-base);
}

.project-card:hover .card-link-line {
    width: 40px;
}

/* Projects Progress Bar */
.projects-progress {
    margin-block-start: var(--space-3xl);
    display: flex;
    justify-content: center;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-fill {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    height: 100%;
    width: 50%;
    background-color: var(--color-dark);
}

/* Projects Intro Content */
.projects-intro-content {
    max-width: 900px;
    margin: 0 auto var(--space-3xl);
    text-align: center;
}

.intro-lead {
    font-weight: 500;
    color: var(--color-dark);
    margin-block-end: var(--space-xl);
}

.client-types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
    list-style: none;
    padding: 0;
    margin-block-end: var(--space-2xl);
}

.client-types-grid li {
    position: relative;
    font-weight: 500;
}

/* Add elegant separators between items on all screens */
.client-types-grid li:not(:last-child)::after {
    content: "•";
    /* Bullet separator */
    position: absolute;
    inset-inline-end: calc(var(--space-xl) * -0.6);
    inset-block-start: 50%;
    transform: translateY(-50%);
    color: var(--color-cream);
    font-size: 0.8em;
    font-family: var(--font-primary);
    font-style: normal;
}

.intro-description {
    font-size: 1.0625rem;
    color: var(--color-gray);
    line-height: 1.8;
    max-width: 750px;
    margin-inline: auto;
}

.intro-description p {
    margin-block-end: var(--space-md);
}

.intro-highlight {
    color: var(--color-dark);
    font-weight: 500;
}


/* ===========================================
   FOOTER
   =========================================== */
.footer {
    padding-block: var(--space-3xl);
    background-color: var(--color-white);
    border-block-start: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    text-align: center;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-gray);
}

/* ===========================================
   SCROLL ANIMATION STATES
   - Initial hidden state for elements with parallax
   - Revealed state when in viewport
   =========================================== */
/* Scroll animations replaced by AOS library */

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

/* Tablet */
@media (max-width: 1024px) {

    /* Hide desktop navigation links on tablet */
    .navbar-links {
        display: none;
    }

    /* Show hamburger menu on tablet */
    .navbar-toggle {
        display: flex;
    }

    /* New Hero - Tablet */
    .hero-headline-new {
        font-size: clamp(1.75rem, 4vw, 3rem);
    }

    .marquee-item {
        width: clamp(180px, 22vw, 280px);
        height: clamp(130px, 18vw, 220px);
    }



    /* Standardize Headings on Tablet */
    .architecture-heading,
    .projects-heading,
    .contact-heading {
        font-size: clamp(1.75rem, 5vw, 3rem);
        margin-block-end: var(--space-2xl);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-text-column {
        padding-inline-end: 0;
    }

    .about-quote-column {
        justify-content: flex-start;
    }

    .featured-quote {
        text-align: start;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /* Make the last odd item span full width for balance */
    .project-card:last-child {
        grid-column: 1 / -1;
    }

    .measurement-lines {
        gap: clamp(1rem, 5vw, 4rem);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .navbar {
        padding-block: var(--space-md);
    }

    .navbar-logo img {
        height: 50px;
    }

    /* New Hero - Mobile */
    .hero-new {
        height: 100vh;
        min-height: 600px;
    }

    .hero-content-new {
        padding: calc(var(--navbar-height) + var(--space-3xl)) var(--space-lg) var(--space-lg);
        flex: 1;
    }

    .hero-subtitle-new {
        font-size: 0.8125rem;
        margin-block-end: var(--space-lg);
    }

    .hero-headline-new {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-headline-new br {
        display: none;
    }

    /* Marquee Mobile - Show labels and larger images */
    .marquee-label {
        display: flex;
    }

    .marquee-label-left,
    .marquee-label-right {
        display: flex;
    }

    /* Adjusted padding to prevent labels overlapping images */
    .hero-marquee-container {
        padding-block-start: var(--space-lg);
    }

    .hero-marquee {
        padding-block: var(--space-md) var(--space-xs);
    }

    /* Smaller label text on mobile to fit better */
    .label-location,
    .label-company {
        font-size: 0.6875rem;
    }

    .label-time,
    .label-since {
        font-size: 0.625rem;
    }

    .marquee-item {
        width: 48vw;
        height: 35vh;
        min-height: 200px;
    }

    .hero-marquee:hover .marquee-track {
        gap: var(--space-md);
        transform: scale(0.96);
    }

    /* Architecture Mobile */
    .architecture-heading,
    .projects-heading,
    .contact-heading {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        margin-block-end: var(--space-xl);
    }

    .measurement-lines {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: center;
        gap: var(--space-xl);
        padding-inline: var(--space-md);
        padding-block-end: var(--space-md);
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .measurement-lines::-webkit-scrollbar {
        display: none;
    }

    .measurement-line .line {
        height: 60px;
    }

    .measurement-line.tall .line {
        height: 90px;
    }

    /* Projects Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .project-card:last-child {
        grid-column: auto;
    }

    .project-card {
        aspect-ratio: 4 / 3;
    }

    /* Quote Mobile */
    .quote-measurement {
        display: none;
    }

    /* About Mobile */
    .about-image-parallax {
        height: 35vh;
        min-height: 200px;
    }

    .section-heading-large {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-headline-new {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.25;
    }

    .hero-subtitle-new {
        font-size: 0.75rem;
    }

    .marquee-item {
        width: 60vw;
        height: 25vh;
        min-height: 150px;
    }

    /* Adjusted spacing for labels on very small screens */
    .hero-marquee-container {
        padding-block-start: var(--space-xl);
    }

    /* Even smaller label text on very small screens */
    .label-location,
    .label-company {
        font-size: 0.625rem;
    }

    .label-time,
    .label-since {
        font-size: 0.5625rem;
    }

    .quote-marks {
        font-size: 3rem;
    }
}

/* ===========================================
   RTL SPECIFIC ADJUSTMENTS
   - These apply only when dir="rtl"
   - Most layout handled by logical properties
   =========================================== */
/* New hero uses centered layout - no RTL adjustments needed */

/* ===========================================
   CONTACT SECTION STYLES
   - Minimalist form design
   - Uses same typography as rest of site
   =========================================== */
.contact-section {
    padding-block: var(--space-2xl);
    background-color: var(--color-white);
    overflow-x: clip;
}

.contact-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Decoration Lines */
.contact-decoration {
    width: 100%;
    margin-block: var(--space-2xl);
    display: flex;
    justify-content: center;
    opacity: 0.6;
}

.decoration-line {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Contact Heading - Matches other section headings */
.contact-heading {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-dark);
    text-align: center;
    letter-spacing: -0.02em;
    margin-block-end: var(--space-2xl);
    text-transform: uppercase;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
    margin-block-end: 0;
    /* Removed margin */
}

.contact-info-column {
    display: flex;
    flex-direction: column;
}

.contact-company {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-block-end: var(--space-md);
    line-height: 1.4;
}

.contact-address {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-gray);
    margin-block-end: var(--space-xl);
}

.contact-details-list {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
    margin-block-end: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-details-list li {
    list-style: none !important;
    padding: 0;
    display: flex;
    gap: var(--space-md);
    font-size: 1rem;
    color: var(--color-dark);
    align-items: baseline;
}

.detail-label {
    flex-shrink: 0;
    width: 100px;
    font-weight: 600;
    color: var(--color-gray);
}

.detail-link {
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.detail-value {
    color: var(--color-dark);
}

.contact-disclaimer {
    font-size: 0.8125rem;
    color: var(--color-gray);
    opacity: 0.8;
    line-height: 1.5;
    max-width: 480px;
}

/* Contact Social Text Buttons */
.contact-social-text-btns {
    display: flex;
    gap: 1rem;
    margin-block-start: 1rem;
    flex-wrap: wrap;
}

/* Form Adjustment */
.contact-form {
    margin: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Tagline */
.contact-tagline-wrapper {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.contact-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-style: italic;
    color: var(--color-gray);
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
    text-align: start;
    /* Automatic LTR/RTL support */
}

/* Form Inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    padding-block: var(--space-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-dark);
    border-radius: 0;
    /* Remove default border-radius on iOS */
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-dark);
    border-bottom-width: 2px;
}

/* Validation Styling */
.form-group.has-error label {
    color: #ef4444;
}

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

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-bottom-color: #ef4444;
    /* Error red for live typing */
}

/* Submit Button & Footer */
.form-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-block-start: var(--space-lg);
    position: relative;
}

.form-spacer {
    display: none;
    /* Just for spacing if needed */
}

.submit-btn {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 0.75rem 2.5rem;
    /* Reduced padding */
    border-radius: 50px;
    font-weight: 500;
    /* Slightly less bold */
    font-size: 0.9375rem;
    /* Slightly smaller font */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.submit-btn:hover {
    transform: translateY(-2px);
    background-color: #000;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: var(--space-xl);
    }

    .contact-form {
        gap: var(--space-xl);
    }

    .form-footer {
        /* Keep it row or column but aligned start */
        flex-direction: row;
        justify-content: flex-start;
        margin-block-start: var(--space-xl);
    }

    .contact-heading {
        font-size: 1.75rem;
        /* Smaller heading on mobile */
        margin-block-end: var(--space-xl);
    }
}

/* ===========================================
   SCROLL TO TOP BUTTON
   =========================================== */
#scrollToTopBtn {
    position: fixed;
    inset-block-end: var(--space-xl);
    inset-inline-start: var(--space-xl);
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--transition-base), transform var(--transition-base), background-color var(--transition-base), visibility var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background-color: #000;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    #scrollToTopBtn {
        inset-block-end: var(--space-lg);
        inset-inline-start: var(--space-lg);
        width: 44px;
        height: 44px;
    }
}

/* ===========================================
   FOOTER SOCIAL MEDIA ICONS
   =========================================== */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin-block-end: var(--space-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(64, 61, 57, 0.2);
    color: var(--color-dark);
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
    transform: translateY(-3px);
}

.social-link svg,
.social-link i {
    width: 20px;
    height: 20px;
}

/* ===========================================
   FLOATING WHATSAPP BUTTON
   =========================================== */
.whatsapp-float {
    position: fixed;
    inset-block-end: var(--space-xl);
    inset-inline-end: var(--space-xl);
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 95;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        inset-block-end: var(--space-lg);
        inset-inline-end: var(--space-lg);
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .footer-social {
        gap: var(--space-md);
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg,
    .social-link i {
        width: 18px;
        height: 18px;
    }
}

/* ===========================================
   WHATSAPP POPUP BUBBLE
   =========================================== */
.whatsapp-bubble {
    position: fixed;
    inset-block-end: calc(var(--space-xl) + 70px);
    inset-inline-end: var(--space-xl);
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 14px 20px;
    padding-inline-start: 35px;
    /* Extra inline-start padding for close btn (RTL-aware) */
    border-radius: 50px;
    border-end-end-radius: 4px;
    /* Pointed corner near the WhatsApp button (RTL-aware) */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
    cursor: pointer;
    /* Change cursor to indicate clickable */
}

.whatsapp-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* Arrow/Triangle - points down toward the WhatsApp button */
.whatsapp-bubble::after {
    content: '';
    position: absolute;
    inset-block-end: -6px;
    inset-inline-end: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--color-white);
}

/* Close Button (Integrated) */
.whatsapp-close-btn {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: transparent;
    color: #adb5bd;
    /* Subtle gray */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
    z-index: 10;
}

.whatsapp-close-btn:hover {
    color: #495057;
    /* Darker gray on hover */
    background-color: transparent;
}

@media (max-width: 500px) {
    .whatsapp-bubble {
        inset-inline-end: var(--space-lg);
        inset-block-end: calc(var(--space-lg) + 70px);
        /* Increased clearance */
        font-size: 0.85rem;
        padding: 12px 18px;
        padding-inline-start: 35px;
        max-width: calc(100vw - 40px);
        /* Responsive width limit */
        width: auto;
    }
}

/* ===========================================
   ABOUT SECTION - FOUNDERS IMAGE (B&W)
   =========================================== */
.about-image-wrapper {
    max-width: var(--container-max);
    margin: 0 auto var(--space-3xl);
    padding-inline: var(--container-padding);
}

.about-image-container {
    position: relative;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.about-founders-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: filter var(--transition-slow);
}

.about-image-container:hover .about-founders-image {
    filter: grayscale(0%) contrast(1);
}

.about-image-caption {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.caption-label {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.7);
}

.caption-names {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
}

/* ===========================================
   TESTIMONIALS SECTION - INFINITE SCROLL MARQUEE
   - Same CSS animation approach as image marquee
   - translateX(-50%) with cloned cards
   - Mouse/touch draggable, pauses on hover
   =========================================== */

.testimonials-section {
    padding-block-start: var(--space-2xl);
    padding-block-end: var(--space-3xl);
    background-color: var(--color-white);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.testimonials-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.testimonials-container .what-we-do-header {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Marquee Viewport */
.testimonials-marquee {
    width: 100%;
    margin-top: var(--space-3xl);
    cursor: grab;
    padding-block: var(--space-lg);
    -webkit-user-select: none;
    user-select: none;
    direction: ltr;
    overflow: visible;
}

.testimonials-marquee:active {
    cursor: grabbing;
}

/* Track - JS animation driven */
.testimonials-track {
    display: flex;
    gap: var(--space-lg);
    width: max-content;
    will-change: transform;
    direction: ltr;
}

/* Individual Card */
.testimonial-carousel-card {
    flex: 0 0 380px;
    min-width: 280px;
    max-width: 420px;
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-xl);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    direction: rtl;
}

.testimonial-carousel-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Quote Text */
.testimonial-quote {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray);
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}

/* Card Footer */
.testimonial-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* User Info */
.testimonial-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Avatar */
.testimonial-avatar-new {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar-new .avatar-initials {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

/* User Details */
.testimonial-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.testimonial-position {
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    color: var(--color-gray);
    opacity: 0.8;
}

/* Star Rating */
.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Progress Bar Indicators (3 bars) */
.testimonials-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-2xl);
}

.testimonials-dots .dot {
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.12);
    border: none;
    padding: 0;
    transition: all 0.6s ease;
    width: 32px;
}

.testimonials-dots .dot.active {
    background: var(--color-dark);
    width: 56px;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .testimonials-marquee {
        margin-top: var(--space-2xl);
    }

    .testimonial-carousel-card {
        flex: 0 0 45vw;
        /* Use percentage of screen for fluid scaling */
        min-width: 320px;
        max-width: none;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .testimonial-carousel-card {
        flex: 0 0 calc(100vw - 60px);
        /* Takes up almost full screen on mobile */
        min-width: 260px;
        max-width: none;
        padding: var(--space-lg);
    }

    .testimonial-quote {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .testimonial-card-footer {
        flex-direction: row;
        /* Keep it row for better space usage if possible, or stack if tiny */
        align-items: center;
        justify-content: space-between;
        gap: var(--space-sm);
    }

    .testimonial-avatar-new {
        width: 40px;
        height: 40px;
    }

    .testimonial-name {
        font-size: 0.875rem;
    }

    .testimonials-marquee {
        padding-block: var(--space-md);
    }
}

@media (max-width: 480px) {
    .testimonial-carousel-card {
        flex: 0 0 calc(100vw - 40px);
    }

    .testimonial-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Trust Indicators - Premium Redesign */
.trust-indicators-wrapper {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.trust-indicators-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3xl) var(--space-3xl);
    background: var(--color-white);
    border-radius: 20px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay - removed for light bg */

.trust-indicators-inner .trust-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.trust-indicators-inner .trust-item:hover {
    transform: translateY(-3px);
}

/* Icon Wrapper */
.trust-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-light) 0%, rgba(0, 0, 0, 0.02) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.trust-indicators-inner .trust-item:hover .trust-icon-wrapper {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray) 100%);
    border-color: var(--color-dark);
    transform: scale(1.05);
}

.trust-indicators-inner .trust-item:hover .trust-icon {
    color: var(--color-white);
}

.trust-icon {
    width: 28px;
    height: 28px;
    color: var(--color-dark);
    stroke-width: 1.5;
    transition: color var(--transition-base);
}

/* Trust Content */
.trust-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.trust-indicators-inner .trust-number {
    font-family: var(--font-primary);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.03em;
    line-height: 1;
}

.trust-indicators-inner .trust-label {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0.01em;
}

.trust-sublabel {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 2px;
}

/* Vertical Divider */
.trust-divider-v {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.12), transparent);
    align-self: center;
}

/* Legacy support for old class */
.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    padding: var(--space-3xl);
    background: var(--color-white);
    border-radius: 12px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-width: var(--container-max);
    margin-inline: auto;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xs);
}

.trust-number {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

.trust-label {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray);
}

.trust-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Trust Indicators Responsive - Tablet */
@media (max-width: 1024px) {
    .trust-indicators-inner {
        padding: var(--space-2xl) var(--space-xl);
        gap: 0;
    }

    .trust-indicators-inner .trust-item {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .trust-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .trust-icon {
        width: 24px;
        height: 24px;
    }

    .trust-divider-v {
        height: 60px;
    }
}

/* Trust Indicators Responsive - Mobile */
@media (max-width: 768px) {
    .trust-indicators-inner {
        flex-direction: column;
        padding: var(--space-2xl);
        gap: var(--space-lg);
    }

    .trust-indicators-inner .trust-item {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: var(--space-md) 0;
        gap: var(--space-lg);
    }

    .trust-content {
        align-items: flex-start;
    }

    .trust-divider-v {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    }

    .trust-indicators {
        flex-direction: column;
        gap: var(--space-xl);
        padding: var(--space-2xl);
        margin-inline: var(--container-padding);
    }

    .trust-divider {
        width: 60px;
        height: 1px;
    }
}

/* Testimonials Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        padding-block: var(--space-3xl);
    }

    .testimonial-card {
        width: 280px;
        min-height: 180px;
        padding: var(--space-lg);
    }

    .testimonial-text {
        font-size: 0.8125rem;
    }

    .testimonials-marquee-row::before,
    .testimonials-marquee-row::after {
        width: 40px;
    }

    .trust-indicators {
        flex-direction: column;
        gap: var(--space-xl);
        padding: var(--space-2xl);
        margin-inline: var(--container-padding);
    }

    .trust-divider {
        width: 60px;
        height: 1px;
    }

    .about-image-container {
        max-width: 100%;
    }
}

/* ===========================================
   FLOORING SECTIONS (Colors & Types)
   - Grid layout for color/pattern showcases
   - Responsive grid
   =========================================== */
.flooring-colors-section {
    padding-block-start: var(--space-2xl);
    padding-block-end: var(--space-xl);
    background-color: var(--color-white);
    overflow-x: clip;
}

.flooring-types-section {
    padding-block: var(--space-xl);
    background-color: var(--color-white);
    overflow-x: clip;
}

/* ===========================================
   FOOTER TAGLINE
   =========================================== */
.footer-tagline {
    font-family: var(--font-hebrew-serif);
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: var(--space-sm);
    text-align: center;
}

/* ===========================================
   PRELOADER
   - Full screen loading state
   - Custom CSS animation
   =========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    /* Use fixed % instead of vh/vw to avoid browser UI interference */
    z-index: 2147483647 !important;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo Preloader */
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
}

/* Dots Loader */
.loader {
    color: #000;
    width: 4px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 19px 0 0 7px, 38px 0 0 3px, 57px 0 0 0;
    transform: translateX(-38px);
    animation: l21 .5s infinite alternate linear;
    margin-top: 1.5rem;
    /* Reduced space below logo */
    margin-bottom: 2rem;
}

@keyframes l21 {
    50% {
        box-shadow: 19px 0 0 3px, 38px 0 0 7px, 57px 0 0 3px
    }

    100% {
        box-shadow: 19px 0 0 0, 38px 0 0 3px, 57px 0 0 7px
    }
}

.preloader-logo {
    width: min(200px, 40vw);
    height: auto;
    object-fit: contain;
    animation: logo-fade-in-up 1.2s cubic-bezier(0.23, 1, 0.32, 1) both;
    filter: brightness(0);
}

@keyframes logo-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===========================================
   WHAT WE DO - HIGHLIGHT
   =========================================== */
.wwd-item-desc.wwd-highlight {
    font-weight: 600;
    font-size: 1.5rem;
    /* Larger font size for emphasis */
    line-height: 1.5;
    color: var(--color-dark);
    margin-block-start: var(--space-md);
}

/* ===========================================
   SOCIAL OUTLINE BUTTONS
   =========================================== */
.social-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-outline-btn:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.social-outline-btn i,
.social-outline-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Flooring section rendering optimization removed — content-visibility:auto was causing freeze/stuck on scroll */

/* ===========================================
   FLOORING LAZY LOADING SPINNERS & FADE-IN
   =========================================== */

/* Spinner — visible loading indicator */
.fl-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 3px solid #d0d0d0;
    border-top-color: #333;
    border-radius: 50%;
    animation: flSpin 0.8s linear infinite;
    z-index: 5;
    pointer-events: none;
}

/* Light spinner for dark backgrounds (lightbox) */
.fl-spinner-light {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

@keyframes flSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Images start hidden, fade in when loaded */
.flooring-carousel-slide img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.flooring-carousel-slide img.fl-loaded {
    opacity: 1;
}

/* Modal grid images: no transition — just snap visible to avoid scroll lag */
.flooring-modal-grid-item img {
    opacity: 0;
}

.flooring-modal-grid-item img.fl-loaded {
    opacity: 1;
}

/* Lightbox image fade */
.flooring-lightbox-img-wrapper img {
    transition: opacity 0.3s ease;
}

.flooring-lightbox-img-wrapper img:not(.fl-loaded) {
    opacity: 0.15;
}

.flooring-lightbox-img-wrapper img.fl-loaded {
    opacity: 1;
}

/* Placeholder background for slides with unloaded images */
.flooring-carousel-slide {
    position: relative;
    background: #f0f0f0;
    min-height: 80px;
}

/* Lightbox wrapper needs relative for spinner */
.flooring-lightbox-img-wrapper {
    position: relative;
    min-width: 120px;
    min-height: 120px;
}

/* ===========================================
   SUBSECTION HEADINGS & FLOORING CAROUSEL (PREMIUM UI)
   =========================================== */
.subsection-heading {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
    text-align: start;
    letter-spacing: -0.01em;
}

.subsection-heading::after {
    display: none;
}

/* Flooring Container */
.flooring-container {
    max-width: 1800px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Flooring Subsection */
.flooring-subsection {
    margin-block-end: var(--space-3xl);
}

/* Subsection Header with "View All" button */
.flooring-subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-end: var(--space-lg);
    padding-inline: var(--space-sm);
}

/* View All Button */
.flooring-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1.5px solid var(--color-dark);
    color: var(--color-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
}

.flooring-view-all-btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.flooring-view-all-btn svg {
    transition: transform var(--transition-base);
}

.flooring-view-all-btn:hover svg {
    transform: translateX(3px);
}

/* Carousel Wrapper */
.flooring-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Carousel Viewport */
.flooring-carousel {
    overflow: hidden;
    flex: 1;
    border-radius: 8px;
}

/* Carousel Track */
.flooring-carousel-track {
    display: flex;
    gap: var(--space-md);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Carousel Slides */
.flooring-carousel-slide {
    flex: 0 0 calc((100% - var(--space-md) * 3) / 4);
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flooring-carousel-slide:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.flooring-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.flooring-carousel-slide:hover img {
    transform: scale(1.06);
}

/* Carousel Navigation Arrows */
.flooring-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    color: var(--color-dark);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.flooring-carousel-arrow:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flooring-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Carousel */
@media (max-width: 1200px) {
    .flooring-carousel-slide {
        flex: 0 0 calc((100% - var(--space-md) * 2) / 3);
    }
}

@media (max-width: 820px) {
    .flooring-carousel-slide {
        flex: 0 0 calc((100% - var(--space-md)) / 2);
    }

    .flooring-carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .flooring-carousel-slide {
        flex: 0 0 85%;
    }

    .flooring-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .flooring-carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .flooring-subsection-header {
        align-items: center;
        gap: var(--space-sm);
    }

    .flooring-view-all-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* ===========================================
   FLOORING GALLERY MODAL
   =========================================== */
.flooring-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.82);
    /* backdrop-filter removed — causes severe scroll lag with many images */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.flooring-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.flooring-modal {
    width: 94vw;
    max-width: 1400px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flooring-modal-overlay.active .flooring-modal {
    transform: translateY(0) scale(1);
}

.flooring-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.flooring-modal-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.flooring-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    color: var(--color-dark);
    cursor: pointer;
    transition: all var(--transition-base);
}

.flooring-modal-close:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
    transform: rotate(90deg);
}

.flooring-modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Custom scrollbar for modal body */
.flooring-modal-body::-webkit-scrollbar {
    width: 8px;
}

.flooring-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
}

.flooring-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.flooring-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* Firefox scrollbar */
.flooring-modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.04);
}

/* Modal Gallery Grid */
.flooring-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.flooring-modal-grid-item {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f0f0f0;
    /* Browser-native virtualization: skip rendering off-screen items */
    content-visibility: auto;
    contain-intrinsic-size: auto 220px 293px;
}

/* Scroll-reveal animation — applied via JS */
.flooring-modal-grid-item.modal-item-visible {
    animation: modalItemReveal 0.4s ease both;
}

@keyframes modalItemReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flooring-modal-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .flooring-modal {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .flooring-modal-header {
        padding: var(--space-md) var(--space-lg);
    }

    .flooring-modal-body {
        padding: var(--space-md);
    }

    .flooring-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .flooring-modal-title {
        font-size: 1.2rem;
    }
}

/* ===========================================
   FLOORING LIGHTBOX
   =========================================== */
.flooring-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flooring-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.flooring-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-base);
}

.flooring-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.flooring-lightbox-img-wrapper {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flooring-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.flooring-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-base);
}

.flooring-lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.flooring-lightbox-prev {
    left: 20px;
}

.flooring-lightbox-next {
    right: 20px;
}

.flooring-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .flooring-lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .flooring-lightbox-prev {
        left: 10px;
    }

    .flooring-lightbox-next {
        right: 10px;
    }

    .flooring-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .flooring-lightbox-img-wrapper {
        max-width: 95vw;
    }
}

/* ===========================================
   PROJECT CARD IMAGES (Fix for mobile stretching)
   =========================================== */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.project-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
    transition: background 0.3s ease;
}

.project-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}