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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 300;
    color: #1c1c1e;
    background: #faf9f7;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3.5rem;
}

/* ===========================
   LAYOUT: FIXED SIDEBAR + SCROLL
=========================== */
.main-content {
    margin-left: 200px;
}

/* ===========================
   HERO
=========================== */
#hero {
    width: 100%;
    height: 100vh;
    min-height: 580px;
    position: relative;
    overflow: hidden;
}

/* --- SIDEBAR (FIXED) --- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 2.8rem 2rem 2.8rem 2.2rem;
    border-right: 1px solid #ede9e3;
    z-index: 100;
    overflow-y: auto;
}

/* --- LOGO --- */
.sidebar-logo {
    margin-bottom: 3rem;
    margin-left: -2.2rem;
    margin-right: -2rem;
}

.sidebar-logo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.logo-wordmark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #1c1c1e;
}

.logo-dot {
    color: #b01c0a;
    font-weight: 300;
}

.logo-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b0a898;
    margin-top: 0.5rem;
}

/* --- NAV --- */
.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sidebar-nav ul li a {
    display: block;
    padding: 0.6rem 0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #9e9890;
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
    border-bottom: 1px solid #f0ece6;
}

.sidebar-nav ul li:last-child a {
    border-bottom: none;
}

.sidebar-nav ul li a:hover {
    color: #1c1c1e;
}

.sidebar-nav ul li.nav-active a {
    color: #b01c0a;
    font-weight: 400;
}

/* ===========================
   SLIDER (inside hero)
=========================== */

/* --- SLIDER --- */
.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- CAPTION — bottom left, minimal --- */
.slide-caption {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.slide-caption::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.6rem;
}

.slide-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.03em;
}

.slide-location {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* --- MINIMAL ARROWS --- */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s ease;
    z-index: 5;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.slider-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

.slider-btn.prev { left: 0.5rem; }
.slider-btn.next { right: 0.5rem; }

/* --- SLIDE COUNTER — bottom right --- */
.slide-counter {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.12em;
    z-index: 5;
}

.counter-sep {
    color: rgba(255, 255, 255, 0.2);
}

/* ===========================
   SHARED SECTION STYLES
=========================== */
section:not(#hero) {
    padding: 9rem 0;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #b0a898;
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 3.5rem;
    color: #1c1c1e;
    letter-spacing: -0.01em;
}

.section-title em {
    font-style: italic;
    font-weight: 300;
}

/* ===========================
   ABOUT
=========================== */
#about {
    background: #EDE6D8;
    padding-top: 5rem;
}

#about .section-label { color: #B0A090; }
#about .section-title { color: #1C1A16; }

.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-bottom: 1.6rem;
    font-size: 1rem;
    color: #6A6058;
    line-height: 1.9;
}

.about-text strong {
    color: #1C1A16;
    font-weight: 400;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    padding-top: 0.5rem;
    border-left: 1px solid #D4C9B8;
    padding-left: 3rem;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3.8rem;
    color: #1C1A16;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B0A090;
    margin-top: 0.5rem;
}

/* ===========================
   PROJECTS — FIXED FULLSCREEN OVERLAY
=========================== */
#projects {
    height: 300vh;   /* scroll zone — drives the pan */
    position: relative;
}

/* Fixed overlay — direct child of body, above EVERYTHING */
.masonry-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;     /* above sidebar (100) and everything else */
    background: #111;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.masonry-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Title — top left */
.masonry-pin-label {
    position: absolute;
    top: 3rem;
    left: 3.5rem;
    z-index: 10;
}

.masonry-pin-label .section-label {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.28em;
}

.masonry-pin-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    margin-top: 0.5rem;
}

/* Moving image track */
.masonry-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
}

.masonry-track .masonry-item {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.masonry-track .masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    transition: opacity 0.3s ease;
}

.masonry-track .masonry-item:hover img {
    opacity: 1;
}


/* ===========================
   SPECIALIZATIONS CAROUSEL
=========================== */
#specializations {
    background: #faf9f7;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.spec-header {
    margin-bottom: 2.5rem;
}

.spec-track-wrapper {
    overflow: hidden;
    width: 100%;
    /* Fade edges for premium feel */
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.spec-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.spec-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* -50% = back to start since cards are doubled */
}

.spec-card {
    width: 340px;
    flex-shrink: 0;
    cursor: default;
}

.spec-card-img {
    height: 240px;
    overflow: hidden;
}

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

.spec-card:hover .spec-card-img img {
    transform: scale(1.06);
}

.spec-card-label {
    padding: 1rem 0 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: #1c1a16;
    letter-spacing: 0.01em;
}

/* ===========================
   SERVICES
=========================== */
#services {
    background: #faf9f7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.service-card {
    padding: 2.5rem 2.5rem 2.5rem 0;
    border-top: 1px solid #e8e2da;
}

.service-card:nth-child(3n) {
    padding-right: 0;
}

.service-number {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: #c8c0b4;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1c1c1e;
    letter-spacing: 0.01em;
}

.service-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #8a8480;
    line-height: 1.8;
}

/* ===========================
   CLIENTS
=========================== */
#clients {
    background: #ffffff;
}

#clients .section-label { color: #B0A090; }
#clients .section-title { color: #1C1A16; }

.clients-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #9e9890;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-top: -2rem;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid #EDEAE4;
    border-left: 1px solid #EDEAE4;
}

.logo-item {
    border-right: 1px solid #EDEAE4;
    border-bottom: 1px solid #EDEAE4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    transition: background 0.25s ease;
}

.logo-item:hover {
    background: #FAF9F7;
}

.logo-item img {
    max-width: 120px;
    max-height: 60px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ===========================
   CONTACT
=========================== */
#contact {
    background: #faf9f7;
}

.contact-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #b0a898;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: -2.5rem;
}


/* ===========================
   FOOTER
=========================== */
footer {
    background: #EDE6D8;
    padding: 4.5rem 0 3.5rem;
    border-top: 1px solid #D4C9B8;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

/* Left column — brand */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    width: 200px;
    height: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 1.6rem;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2.4rem;
    color: #1C1A16;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.footer-dot {
    color: #b01c0a;
}

.footer-ent {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6A6058;
    margin-bottom: 2rem;
}

.footer-pillars {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B0A090;
    line-height: 2.2;
}

/* Right column — info */
.footer-info {
    border-left: 1px solid #D4C9B8;
    padding-left: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-address {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    color: #1C1A16;
    line-height: 1.9;
    margin-bottom: 1.8rem;
}

.footer-copy {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #1C1A16;
    margin-bottom: 0.6rem;
}

.footer-gst {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6A6058;
}

/* ===========================
   FLOATING CONTACT BUTTONS
=========================== */
.floating-contact {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.65rem;
    z-index: 550;
}

.floating-contact a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1C1A16;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.25s ease, transform 0.3s ease, border-color 0.25s ease;
}

.floating-contact a:hover {
    transform: scale(1.1);
}

.floating-contact a.fc-whatsapp:hover {
    background: #25D366;
}

.floating-contact a.fc-phone:hover {
    background: #b01c0a;
}

.floating-contact a.fc-email:hover {
    background: #6A6058;
}

.floating-contact a svg {
    width: 20px;
    height: 20px;
    fill: #faf9f7;
}

/* ===========================
   MOBILE BOTTOM NAV
   (hidden on desktop)
=========================== */
.mobile-nav {
    display: none;
}

/* ===========================
   RESPONSIVE — ≤ 768px
=========================== */
@media (max-width: 768px) {

    /* ---- Floating contact — above mobile nav ---- */
    .floating-contact {
        right: 1rem;
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        gap: 0.5rem;
    }

    .floating-contact a {
        width: 40px;
        height: 40px;
    }

    .floating-contact a svg {
        width: 18px;
        height: 18px;
    }

    /* ---- Bottom nav — floating glass pill ---- */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
        left: 1rem;
        right: 1rem;
        z-index: 600;
        background: rgba(14, 12, 10, 0.72);
        backdrop-filter: blur(32px) saturate(180%);
        -webkit-backdrop-filter: blur(32px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 22px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
        padding: 0.45rem 0.5rem;
        justify-content: space-around;
        align-items: center;
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.32);
        flex: 1;
        padding: 0.4rem 0.2rem;
        border-radius: 14px;
        transition: color 0.25s ease, background 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mob-nav-item svg {
        width: 21px;
        height: 21px;
    }

    .mob-nav-item span {
        font-family: 'Inter', sans-serif;
        font-weight: 300;
        font-size: 0.52rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .mob-nav-item.mob-active {
        color: #b01c0a;
        background: rgba(176, 28, 10, 0.1);
    }

    /* ---- Hide desktop sidebar ---- */
    .sidebar {
        display: none;
    }

    /* ---- Main layout ---- */
    .main-content {
        margin-left: 0;
    }

    /* ---- Container ---- */
    .container {
        padding: 0 1.4rem;
    }

    /* ---- Section padding ---- */
    section:not(#hero) {
        padding: 4.5rem 0;
    }

    .section-title {
        margin-bottom: 2.2rem;
    }

    /* ---- Hero ---- */
    #hero {
        min-height: 100svh;
        min-height: 100vh; /* fallback */
    }

    .slide-caption {
        left: 1.4rem;
        bottom: 5.5rem; /* clears bottom nav */
    }

    .slide-counter {
        right: 1.4rem;
        bottom: 5.5rem;
    }

    .slider-btn.prev { left: 0; }
    .slider-btn.next { right: 0; }

    /* ---- About ---- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.8rem 3rem;
        border-left: none;
        border-top: 1px solid #D4C9B8;
        padding-left: 0;
        padding-top: 2rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    /* ---- Specializations ---- */
    .spec-card {
        width: 220px;
    }

    .spec-card-img {
        height: 160px;
    }

    /* ---- Services ---- */
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card {
        padding: 1.8rem 1.2rem 1.8rem 0;
    }

    /* fix right-padding rule that only applied to every 3rd on desktop */
    .service-card:nth-child(3n) {
        padding-right: 1.2rem;
    }
    .service-card:nth-child(2n) {
        padding-right: 0;
    }

    /* ---- Projects masonry ---- */
    .masonry-track {
        grid-template-columns: repeat(2, 1fr);
    }

    /* keep masonry overlay above page but bottom nav sits above it */
    .masonry-overlay {
        bottom: 0;
    }

    /* ---- Clients logo grid ---- */
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ---- Footer — stack columns, clearance for floating nav ---- */
    footer {
        padding-bottom: calc(3rem + 90px + env(safe-area-inset-bottom, 0px));
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-info {
        border-left: none;
        border-top: 1px solid #D4C9B8;
        padding-left: 0;
        padding-top: 2.5rem;
    }

}
