/*
Theme Name: Hundred/Ml Luxury Theme
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@300;400;600&family=Inter:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&display=swap');

:root {
    --gold:        #D4AF37;
    --gold-dark:   #8B6914;
    --gold-subtle: rgba(212,175,55,0.15);
    --font-display: 'Cinzel', serif;
    --font-body:    'Inter', sans-serif;
    --font-edit:    'Cormorant Garamond', serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: #000;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* Hide header logo exclusively on the home page as requested, but reveal it when scrolled past the hero */
body.home .site-logo-link {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.home.scrolled-past-hero .site-logo-link {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============ FIXED VIDEO BACKGROUND ============ */
.video-bg-fixed {
    position: fixed;
    top: 80px; left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    z-index: 0;
    background: #000;
    display: block;
}

/* ============ SCROLLABLE CONTENT (z-index above video) ============ */
.page-scroll-content {
    position: relative;
    z-index: 2;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0; left: 0; right: 0;
    height: 80px;
    z-index: 100;
    background: #000; /* Solid background so it sits above video */
    padding: 0 5%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* Scrolled state is no longer needed since background is always solid */
.site-header.scrolled {
    border-color: rgba(212,175,55,0.12);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.site-logo-link { display: flex; align-items: center; }
.site-logo-img  { height: 46px; width: auto; object-fit: contain; }
.site-branding  { display: none; }

.nav-fallback-links, .main-navigation ul {
    list-style: none; display: flex; gap: 2.5rem;
}
.nav-fallback-links li a, .main-navigation a {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-fallback-links li a:hover, .main-navigation a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; }
.header-cart-btn {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(212,175,55,0.35);
    padding: 0.45rem 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex; align-items: center; gap: 0.4rem;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.5rem;
}
.lang-link {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.3rem 0.2rem;
}
.lang-link.active {
    color: var(--gold);
    pointer-events: none;
}
.lang-link:hover {
    color: var(--gold);
    text-decoration: none;
}
.lang-sep {
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
}
.header-cart-btn:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
.cart-count {
    background: var(--gold); color: #000;
    border-radius: 50%; width: 15px; height: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.55rem; font-weight: 700;
}

/* ============ HERO SECTION ============ */
/* Pushes content below fixed header */
.hero-section-old {
    /* Kept for reference but class not used anymore */
}
.hero-left-panel { max-width: 400px; }

.hero-logo {
    width: 120px; height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}
.hero-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.hero-desc {
    font-family: var(--font-edit);
    font-style: italic;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 2.2rem;
}
.hero-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: all 0.4s var(--ease);
}
.hero-cta:hover { background: var(--gold); color: #000; text-decoration: none; }

/* ============ COMING SOON OVERLAY ============ */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.95) 100%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}
.coming-soon-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.coming-soon-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 1.5s ease-in-out;
}
.coming-soon-overlay.active .coming-soon-content {
    transform: translateY(0);
}

/* Glow Text Animation */
.glow-text {
    font-family: var(--font-edit);
    font-style: italic;
    font-size: clamp(3rem, 6vw, 6rem);
    color: #fff;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.2), 0 0 30px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.3);
    animation: pulse-glow 3s infinite alternate ease-in-out;
}
@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 0 20px rgba(212, 175, 55, 0.2);
        transform: scale(0.98);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 25px rgba(212, 175, 55, 0.6), 0 0 35px rgba(212, 175, 55, 0.4);
        transform: scale(1.02);
    }
}

/* Contact Info Buttons */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}
.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.contact-btn .icon {
    color: var(--gold);
    font-size: 1.1rem;
    font-family: sans-serif;
}
.contact-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    text-decoration: none;
    color: #fff;
}

/* Copy Tooltip */
.copy-tooltip {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: var(--gold);
    color: #000;
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
    border-radius: 2px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.contact-btn:hover .copy-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.contact-btn.copied .copy-tooltip {
    background: #4caf50;
    color: #fff;
}

/* Back Button */
.back-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 1rem;
}
.back-btn:hover {
    color: var(--gold);
}


/* ============ FOOTER ============ */
.site-footer {
    background: rgba(0,0,0,0.9);
    border-top: 1px solid rgba(212,175,55,0.1);
    padding: 4rem 5% 2rem;
    position: relative;
    z-index: 2;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo-col .footer-logo img {
    height: 38px; width: auto;
}
.footer-tagline {
    font-family: var(--font-edit);
    font-style: italic;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: 1rem;
    line-height: 1.7;
}
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.55rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.5rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
}

/* ============ INNER PAGES ============ */
body:not(.home) {
    background: #FAF7F2;
    color: #1A1A1A;
}
body:not(.home) .site-header {
    position: sticky;
    background: rgba(250,247,242,0.95) !important;
    border-bottom: 1px solid #DDD5C8 !important;
    backdrop-filter: blur(10px);
}
body:not(.home) .site-logo-img { filter: none; }
body:not(.home) .nav-fallback-links li a,
body:not(.home) .main-navigation a { color: #5A4F44; }
body:not(.home) .nav-fallback-links li a:hover,
body:not(.home) .main-navigation a:hover { color: var(--gold-dark); }
body:not(.home) .header-cart-btn { color: #5A4F44; border-color: #DDD5C8; }
body:not(.home) .header-cart-btn:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* Inner page content wrapper */
.hundred-ml-main-content-wrapper {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 5%;
}

/* ============ WOOCOMMERCE SHOP ============ */
body:not(.home) .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
}
body:not(.home) .woocommerce ul.products li.product {
    background: #F2EDE5;
    border: 1px solid #DDD5C8;
    transition: all 0.4s var(--ease);
    float: none !important; margin: 0 !important; width: 100% !important;
}
body:not(.home) .woocommerce ul.products li.product:hover {
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}
body:not(.home) .woocommerce ul.products li.product img {
    width: 100%; aspect-ratio: 1;
    object-fit: contain; padding: 1.5rem; background: #fff;
}
body:not(.home) .woocommerce ul.products li.product h2 {
    font-family: var(--font-display);
    font-size: 0.8rem; letter-spacing: 2px;
    color: #1A1A1A; padding: 1rem 1rem 0.3rem;
}
body:not(.home) .woocommerce ul.products li.product .price {
    color: var(--gold-dark);
    font-family: var(--font-display);
    padding: 0 1rem 0.5rem; font-size: 0.9rem;
}
body:not(.home) .woocommerce ul.products li.product .button {
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--gold-dark);
    font-family: var(--font-display);
    font-size: 0.55rem; letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 1rem 1rem; padding: 0.6rem 1rem;
    width: calc(100% - 2rem);
    border-radius: 0; transition: all 0.3s var(--ease);
}
body:not(.home) .woocommerce ul.products li.product .button:hover {
    background: var(--gold-dark); color: #fff;
}

/* ════ HERO SECTION ════ */
/* 100vh = 1 full screen (no scroll needed) */
.hero-section {
    position: relative;
    height: 100vh;
    z-index: 2;
}
/* Sticky wrapper stays on screen for the full 200vh scroll */
.hero-sticky-inner {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Center it vertically */
    justify-content: flex-start;
    overflow: hidden;
}
.admin-bar .hero-sticky-inner {
    top: 32px; /* Fix for WordPress admin bar pushing it down */
}

/* LEFT PANEL */
.hero-left-panel {
    position: relative;
    left: 6%;
    z-index: 10;
    width: 48%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
html[dir="rtl"] .hero-left-panel {
    align-items: flex-end; /* Align right for Arabic */
}

/* Glass Card - Ultra Premium Design */
.hero-glass-card {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.5), 
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 0 30px rgba(255,255,255,0.03);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0.8s;
    cursor: pointer; /* Indicates it can be clicked to hide */
}
.hero-glass-card.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px) scale(0.95);
    pointer-events: none;
}

.hero-logo {
    width: clamp(280px, 35vw, 450px); /* much larger logo */
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
    display: block;
}
.hero-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem); /* larger headline */
    font-weight: 300;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.15;
    margin-bottom: 1.4rem;
}
.hero-desc {
    font-family: var(--font-edit);
    font-style: italic;
    font-size: 1.25rem; /* larger description */
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}
.hero-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1rem 2.5rem;
    text-decoration: none;
    transition: all 0.4s var(--ease);
}
.hero-cta:hover {
    background: var(--gold);
    color: #000;
    text-decoration: none;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: hint-bob 2s ease infinite;
    z-index: 20; /* ensure it's clickable and visible */
}
.scroll-hint-line {
    width: 2px;
    height: 70px; /* larger line */
    background: linear-gradient(to bottom, var(--gold), transparent);
}
.scroll-hint span {
    font-family: var(--font-display);
    font-size: 0.65rem; /* larger text */
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--gold); /* clearer color */
}
@keyframes hint-bob {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(12px); } /* bigger bounce */
}

/* ============ RTL OVERRIDES (Arabic Typography) ============ */
/* Prevent browser from physically flipping the layout left-to-right */
html[dir="rtl"] .site-header,
html[dir="rtl"] .header-inner,
html[dir="rtl"] .hero-sticky-inner {
    direction: ltr !important; 
}
/* Ensure navigation menu items flow properly inside the right-aligned block */
html[dir="rtl"] .main-navigation ul, 
html[dir="rtl"] .nav-fallback-links {
    direction: rtl; 
}

/* Text panel stays on the physical left, but text inside is Arabic RTL */
html[dir="rtl"] .hero-left-panel {
    direction: rtl;
    text-align: right;
}
/* Arabic font specific adjustments for better flow and readability */
html[dir="rtl"] .hero-headline {
    line-height: 1.3;
    font-weight: 400; /* slightly heavier for Arabic elegance */
}
html[dir="rtl"] .hero-desc {
    font-family: var(--font-body); /* Body font often works better for Arabic description */
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    line-height: 2;
    font-style: normal; /* Remove italic for Arabic as it can look messy */
}

/* ============ TABLET & RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-left-panel {
        width: 65%;
        max-width: 500px;
        left: 5%;
    }
    .hero-headline {
        font-size: clamp(2.2rem, 4vw, 3rem);
    }
    .glow-text {
        font-size: clamp(3.5rem, 8vw, 5rem);
    }
}

/* ============ MOBILE LUXURY & RESPONSIVE ============ */
@media (max-width: 768px) {
    /* Hide Header Navigation completely for full cinematic experience */
    .site-header {
        background: transparent;
        border: none;
    }
    .nav-fallback-links, .main-navigation {
        display: none;
    }
    .header-actions {
        margin-right: 0;
    }
    .lang-switcher {
        margin-right: 0;
    }
    
    /* Main Hero Area: Position text gracefully below the video */
    .hero-sticky-inner {
        align-items: center; /* Horizontally center */
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding-top: 0;
        padding-bottom: 0;
    }
    html[dir="rtl"] .hero-sticky-inner {
        justify-content: center;
    }
    
    .hero-left-panel {
        width: 95%;
        max-width: none;
        left: 0;
        right: 0;
        text-align: center;
        margin-top: 5vh; /* Pulled UP significantly more to ensure it shows fully on all phones */
        padding: 0 1rem;
        background: transparent;
        align-items: center;
    }
    html[dir="rtl"] .hero-left-panel {
        text-align: center;
        right: 0;
        left: 0;
        align-items: center;
    }
    
    .hero-glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    /* Fluid Mobile Typography */
    .hero-logo {
        width: clamp(90px, 22vw, 120px);
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-eyebrow {
        font-size: clamp(0.55rem, 2vw, 0.65rem);
        letter-spacing: 3px;
        margin-bottom: 0.8rem;
    }
    .hero-headline {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
        letter-spacing: 1px;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    html[dir="rtl"] .hero-headline {
        line-height: 1.4; /* Extra breathing room for mobile Arabic */
    }
    .hero-desc {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .hero-cta {
        padding: 1rem 3rem;
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
    
    /* Header overrides for mobile */
    .header-inner {
        padding: 1rem 5%;
    }
    
    /* Coming Soon Mobile */
    .glow-text {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        margin-bottom: 2rem;
    }
    .contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    }
    
    .footer-logo-col .footer-logo img {
        height: 55px; /* Increase footer logo visibility on mobile */
    }
}
