/*
Theme Name: MOSHESHE House of Style
Theme URI: https://github.com/mosheshedesign/theme
Author: Antigravity
Author URI: https://deepmind.google/
Description: A premium commercial one-page luxury coming soon theme for MOSHESHE.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mosheshe
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* MOSHESHE House of Style - Premium Design System & Styles */

/* ==========================================
   Design Tokens & Variables
   ========================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #070707;
    --color-emerald-dark: #112518;
    --color-emerald: #1e3a27;
    --color-emerald-light: #2c5539;
    --color-gold: #c5a059;
    --color-gold-light: #dfc185;
    --color-gold-dark: #917238;
    --color-cream: #f4f1ea;
    --color-cream-dim: #b8b5ae;
    --color-overlay-dark: rgba(7, 7, 7, 0.85);
    
    /* Typography */
    --font-serif-logo: 'Cinzel Decorative', serif;
    --font-serif-body: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Animation Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================
   Global Reset & Base Setup
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    background-image: linear-gradient(var(--color-overlay-dark), var(--color-overlay-dark)), url('assets/satin_background.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-emerald-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-emerald) 0%, var(--color-gold) 100%);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* ==========================================
   Header Navigation Overlay
   ========================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 900;
    mix-blend-mode: difference;
    animation: fadeInHeader 1.5s var(--ease-out-expo) forwards;
}

.nav-logo {
    font-family: var(--font-serif-logo);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    text-decoration: none;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1) contrast(1.05);
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.social-nav {
    display: flex;
    gap: 1.5rem;
}

.social-icon-link {
    color: var(--color-cream);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icon-link:hover {
    opacity: 1;
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

/* ==========================================
   Layout Containers & Scrollstory Utility
   ========================================== */
section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 5% 4rem 5%;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Section Header Typography */
.section-title {
    font-family: var(--font-serif-logo);
    font-size: 2.2rem;
    letter-spacing: 0.25em;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #fff 30%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-align: center;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 4rem;
}

/* Scroll-triggered reveal states */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================
   Section 1: Hero Section (Video Background)
   ========================================== */
.hero-section {
    padding: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(7, 7, 7, 0.7) 0%, 
        rgba(7, 7, 7, 0.3) 50%, 
        rgba(7, 7, 7, 0.85) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.brand-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.brand-title {
    font-family: var(--font-serif-logo);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.35em;
    margin-right: -0.35em; /* Offset for center alignment due to tracking */
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, var(--color-gold) 50%, var(--color-emerald-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.7));
}

.brand-divider {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold) 50%, transparent 100%);
    margin: 1.5rem 0;
    animation: growDivider 2s var(--ease-out-expo) 0.5s forwards;
}

.brand-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 2.5vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.6em;
    margin-right: -0.6em;
    color: var(--color-cream);
    opacity: 0;
    animation: fadeInSubtitle 1.5s var(--ease-out-expo) 1s forwards;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeInSubtitle 1.5s var(--ease-out-expo) 1.5s forwards;
}

.scroll-text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--color-gold);
}

.scroll-arrow {
    width: 20px;
    height: 36px;
    border: 1.5px solid var(--color-gold);
    border-radius: 10px;
    position: relative;
}

.arrow-dot {
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: arrowScroll 2s infinite ease-in-out;
}

/* ==========================================
   Section 2: The Essence (Narrative Typography)
   ========================================== */
.essence-section {
    background-color: transparent;
}

.narrative-wrapper {
    max-width: 900px;
    text-align: center;
}

.narrative-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.narrative-text {
    font-family: var(--font-serif-body);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 300;
    line-height: 1.35;
    margin-bottom: 2rem;
    color: var(--color-cream);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.narrative-text.secondary {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--color-cream-dim);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.highlight {
    font-style: italic;
    color: var(--color-gold-light);
    font-weight: 400;
}

/* ==========================================
   Section 3: The Preview (Editorial Parallax)
   ========================================== */
.preview-section {
    background-color: transparent;
}

.mood-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
    width: 100%;
    margin-top: 2rem;
}

.gallery-item-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.8s var(--ease-out-expo);
}

/* Offset positioning for editorial feel */
.gallery-item-wrapper.speed-slow {
    transform: translateY(40px);
}

.gallery-item-wrapper.speed-fast {
    transform: translateY(-40px);
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.mood-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.8s var(--ease-out-expo);
}

.gallery-item:hover .mood-img {
    transform: scale(1.06);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 7, 0.65) 100%);
    pointer-events: none;
}

.item-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 0 0.5rem;
}

.item-number {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--color-gold);
}

.item-desc {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-cream);
}

/* ==========================================
   Section 4: The Countdown (Premium Flip Clock)
   ========================================== */
.countdown-section {
    background-color: transparent;
}

.flip-clock-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.clock-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.clock-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--color-gold);
}

/* Card 3D Flip System */
.flip-unit {
    position: relative;
    width: 120px;
    height: 110px;
    perspective: 400px;
}

.flip-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-emerald-dark) 0%, #0d1a11 100%);
    border: 1.5px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--color-gold);
    overflow: hidden;
}

/* Horizontal split line overlay to preserve flip clock visual split without cutting numbers */
.flip-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1.5px;
    background-color: rgba(7, 7, 7, 0.75);
    box-shadow: 0 0.5px 1px rgba(255, 255, 255, 0.15);
    z-index: 10;
}

/* Animation trigger classes for JS flip */
.flip-card.flip-anim {
    animation: flipCardAnim 0.6s var(--ease-in-out-cubic);
}

/* ==========================================
   Section 5: Follow Us Section (Bold Socials)
   ========================================== */
.follow-section {
    background-color: transparent;
}

.follow-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 4.5rem 3.5rem;
    background: linear-gradient(135deg, rgba(17, 37, 24, 0.25) 0%, rgba(7, 7, 7, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.follow-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--color-cream-dim);
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

.bold-socials-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

.bold-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    width: 140px;
    transition: transform 0.4s var(--ease-out-expo);
}

.social-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
    background-color: rgba(30, 58, 39, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: background-color 0.4s var(--ease-out-expo), 
                border-color 0.4s var(--ease-out-expo), 
                color 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.social-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.social-card-name {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-cream-dim);
    transition: color 0.4s var(--ease-out-expo);
}

/* Luxury hover animation for socials */
.bold-social-card:hover {
    transform: translateY(-6px);
}

.bold-social-card:hover .social-icon-wrapper {
    background-color: var(--color-emerald);
    border-color: var(--color-gold-light);
    color: #fff;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.4);
}

.bold-social-card:hover .social-card-name {
    color: #fff;
}

/* ==========================================
   Footer Component
   ========================================== */
.footer-container {
    padding: 4rem 5%;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    background-color: var(--color-bg-dark);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--color-cream-dim);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-link {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--color-cream-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--color-gold);
}

.separator {
    color: var(--color-gold-dark);
    font-size: 0.8rem;
}

/* ==========================================
   Animations Definitions (Keyframes)
   ========================================== */
@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growDivider {
    to {
        width: 150px;
    }
}

@keyframes fadeInSubtitle {
    to {
        opacity: 0.85;
    }
}

@keyframes arrowScroll {
    0% {
        top: 6px;
        opacity: 1;
        height: 6px;
    }
    50% {
        top: 18px;
        opacity: 0.4;
        height: 10px;
    }
    100% {
        top: 6px;
        opacity: 1;
        height: 6px;
    }
}

@keyframes flipCardAnim {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablet Portrait & Large Devices */
@media (max-width: 900px) {
    .mood-gallery {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-item-wrapper.speed-slow,
    .gallery-item-wrapper.speed-fast {
        transform: translateY(0);
    }
    
    .flip-clock-container {
        gap: 1.5rem;
    }
    
    .flip-unit {
        width: 90px;
        height: 85px;
    }
    
    .card-face {
        font-size: 2.8rem;
    }
    
    .header-nav {
        padding: 1.5rem 5%;
    }
}

/* Mobile Devices */
@media (max-width: 600px) {
    .nav-logo-img {
        height: 35px;
    }
    
    .flip-clock-container {
        gap: 1rem;
    }
    
    .flip-unit {
        width: 70px;
        height: 65px;
    }
    
    .card-face {
        font-size: 2.2rem;
    }
    
    .clock-label {
        font-size: 0.55rem;
        letter-spacing: 0.25em;
    }
    
    .form-wrapper {
        padding: 3rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
}
