/* =========================
   NAV LOGO
========================= */
.nav-logo {
    height: 72px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-logo-dark {
    display: none;
}

#navbar.scrolled .nav-logo-light {
    display: none;
}

#navbar.scrolled .nav-logo-dark {
    display: block;
}

/* Footer logo — dark background so no filter needed */
.footer-logo {
    height: 80px;
    width: auto;
    filter: none;
}

/* =========================
   RESET / GLOBAL
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

body > * {
    max-width: 100%;
}

/* Prevent accidental horizontal overflow from sections/wrappers */
section,
header,
nav,
footer,
div {
    max-width: 100%;
}

/* =========================
   SMOOTH FADE-IN ANIMATION
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurns {
    from { transform: scale(1.10); }
    to   { transform: scale(1.00); }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* =========================
   NAVBAR
========================= */
#navbar {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    width: 100%;
    left: 0;
    right: 0;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(28, 28, 30, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

#navbar .nav-brand,
#navbar .nav-links a,
#navbar a.nav-links,
#navbar .nav-menu-btn {
    color: white;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-brand,
#navbar.scrolled .nav-links a,
#navbar.scrolled a.nav-links,
#navbar.scrolled .nav-menu-btn {
    color: #1C1C1E;
}

/* Nav link slide-underline */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C5A880;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#navbar .nav-cta {
    transition: all 0.3s ease;
}

#navbar.scrolled .nav-cta {
    background: #1C1C1E;
    color: white;
    border-color: transparent;
}

#navbar.scrolled .nav-cta:hover {
    background: #C5A880;
    color: white;
}

/* =========================
   HERO SECTION
========================= */
#hero,
header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#hero > .absolute,
header > .absolute {
    inset: 0;
}

.hero-img,
#hero img,
header img.hero-img,
header > .absolute img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    animation: kenBurns 10s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.16)),
        linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
}

/* =========================
   PREMIUM SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAFAF8;
}

::-webkit-scrollbar-thumb {
    background: #EBE9E4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C5A880;
}

/* =========================
   REVEAL ON SCROLL
========================= */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 {
    transition-delay: 120ms;
}

.reveal.delay-200 {
    transition-delay: 240ms;
}

.reveal.delay-300 {
    transition-delay: 360ms;
}

.reveal.delay-400 {
    transition-delay: 480ms;
}

/* Gold pulse glow for primary CTA button */
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(197, 168, 128, 0.30); }
    50%       { box-shadow: 0 0 36px rgba(197, 168, 128, 0.60); }
}

.btn-gold-pulse {
    animation: goldPulse 2.8s ease-in-out infinite;
}

/* =========================
   WINDOW STYLE SHOWCASE
========================= */
.style-image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    background: #1C1C1E;
}

.style-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition:
        opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.style-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.style-nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.style-nav-btn:hover {
    background: #C5A880;
    border-color: #C5A880;
    transform: translateY(-2px);
}

.style-content-wrap {
    position: relative;
}

.style-content-block {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-content-block.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.style-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(28, 28, 30, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-dot.active {
    background: #C5A880;
    width: 44px;
}

.style-dot:hover {
    background: rgba(197, 168, 128, 0.5);
}

/* Product cutout showcase (transparent PNGs, no card/frame) */
.style-showcase {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9% 13%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.style-showcase.active {
    opacity: 1;
    visibility: visible;
}

.style-showcase-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 35px 45px rgba(28, 28, 30, 0.22))
            drop-shadow(0 8px 14px rgba(28, 28, 30, 0.12));
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-showcase-closed {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    z-index: 2;
}

.style-showcase-open {
    opacity: 0;
    transform: scale(1.04) rotate(-1deg);
    z-index: 1;
}

.style-showcase:has(.style-showcase-open):hover .style-showcase-closed {
    opacity: 0;
    transform: scale(0.98);
}

.style-showcase:hover .style-showcase-open {
    opacity: 1;
    z-index: 3;
    transform: scale(1) rotate(0deg);
}

/* Soft ambient "ground" glow beneath the product for depth */
.style-showcase-glow {
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 64%;
    height: 16%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(28, 28, 30, 0.16) 0%, rgba(28, 28, 30, 0) 75%);
    filter: blur(14px);
    z-index: 0;
}

.style-showcase-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(28, 28, 30, 0.35);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 4;
    pointer-events: none;
}

.style-image-wrap:hover .style-showcase-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.style-showcase:hover .style-showcase-hint {
    opacity: 0;
}

/* When a product showcase is active, drop the photo-card chrome entirely —
   the transparent PNG sits directly on the section's cream background */
.style-image-wrap.showcase-mode {
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.style-image-wrap.showcase-mode .style-gradient-overlay,
.style-image-wrap.showcase-mode .style-img {
    display: none;
}

.style-image-wrap.showcase-mode .style-counter {
    color: #1C1C1E;
}

.style-image-wrap.showcase-mode .style-counter .text-white\/50 {
    color: rgba(28, 28, 30, 0.4);
}

.style-image-wrap.showcase-mode .style-nav-btn {
    background: rgba(28, 28, 30, 0.05);
    border-color: rgba(28, 28, 30, 0.12);
    color: #1C1C1E;
}

.style-image-wrap.showcase-mode .style-nav-btn:hover {
    background: #C5A880;
    border-color: #C5A880;
    color: #fff;
}

@media (max-width: 768px) {
    .style-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .style-showcase-hint {
        display: none;
    }
}

/* =========================
   PRODUCT CARD SYSTEM
========================= */
.card-3d-wrapper {
    width: 100%;
    overflow: visible;
}

.card-3d-inner {
    position: relative;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease,
        filter 0.45s ease;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ddd;
}

.card-3d-wrapper:hover .card-3d-inner {
    transform: translateY(-12px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18);
    filter: brightness(1.02);
}

/* subtle luxury sheen */
.card-3d-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.05) 18%,
        rgba(255, 255, 255, 0) 42%
    );
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* optional added highlight on hover */
.card-3d-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0.02) 22%,
        rgba(255,255,255,0) 45%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.card-3d-wrapper:hover .card-3d-inner::before {
    opacity: 1;
}

.card-content-pop {
    position: relative;
    z-index: 3;
    transform: none;
    transition: transform 0.35s ease;
}

.card-3d-wrapper:hover .card-content-pop {
    transform: translateY(-2px);
}

/* =========================
   PRODUCT CARD IMAGE CONTROL
========================= */
.product-card-image,
.card-3d-inner .product-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.7s ease;
    will-change: transform;
    z-index: 0;
}

.card-3d-wrapper:hover .product-card-image,
.card-3d-wrapper:hover .card-3d-inner .product-card-image {
    transform: scale(1.1);
}

/* =========================
   RESPONSIVE IMAGE SAFETY
========================= */
section img,
.card-3d-inner img {
    width: 100%;
    height: auto;
}

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

/* product card images must stay full-bleed */
.card-3d-inner .product-card-image {
    width: 100%;
    height: 100%;
}

/* =========================
   LARGE TABLET / SMALL LAPTOP
========================= */
@media (max-width: 1024px) {
    #hero,
    header {
        min-height: 100vh;
        min-height: 100svh;
    }

    .card-3d-inner {
        border-radius: 26px;
    }
}

/* =========================
   TABLET / MOBILE
========================= */
@media (max-width: 768px) {
    #hero,
    header {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-img,
    #hero img,
    header img.hero-img,
    header > .absolute img {
        object-position: center center;
    }

    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.18)),
            linear-gradient(to top, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.14));
    }

    .card-3d-inner {
        border-radius: 24px;
    }

    .card-3d-wrapper:hover .card-3d-inner {
        transform: translateY(-8px);
    }

    .card-3d-wrapper:hover .card-content-pop {
        transform: translateY(-1px);
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 640px) {
    #hero,
    header {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-img,
    #hero img,
    header img.hero-img,
    header > .absolute img {
        object-position: 58% center;
    }

    .card-3d-inner {
        border-radius: 22px;
    }
}

/* =========================
   EXTRA SMALL DEVICES
========================= */
@media (max-width: 480px) {
    .hero-img,
    #hero img,
    header img.hero-img,
    header > .absolute img {
        object-position: 60% center;
    }

    .card-3d-wrapper:hover .card-3d-inner {
        transform: translateY(-5px);
    }
}
