/*
Theme Name: FA1TH Watch Company
Theme URI: https://fa1th.com
Author: FA1TH
Author URI: https://fa1th.com
Description: A dark-cinematic luxury watch brand theme for FA1TH - Faith Over Fear
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fa1th
Tags: luxury, watches, dark, minimal, ecommerce
*/

/* FA1TH Global Styles */
:root {
    --color-black: #000000;
    --color-silver: #A9A9A9;
    --color-cream: #F5F5E9;
    --color-white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Fluid Typography using clamp(min, preferred, max) */
    --font-size-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --font-size-h2: clamp(2rem, 4vw + 1rem, 3.5rem);
    --font-size-h3: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    --font-size-body: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);

    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(2rem, 4vw, 3rem);
    --spacing-lg: clamp(4rem, 8vw, 6rem);
    --spacing-xl: clamp(6rem, 12vw, 10rem);
}

/* Launch Blur Effect */
body.launch-mode {
    overflow: hidden; /* Prevent scrolling while blurred? Optional */
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 900;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
    pointer-events: all;
}

.blur-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure Timer is visible above blur */
.launch-timer-container {
    position: relative;
    z-index: 1000 !important;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background: transparent; /* Or semi-transparent black if needed */
}

/* Countdown Styles (Targeting expected structure) */
.launch-timer-container h2, 
.launch-timer-header {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    color: var(--color-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-silver);
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.launch-date {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #666;
    margin-top: var(--spacing-md);
    letter-spacing: 0.1em;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-black);
    color: var(--color-cream);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-silver);
}

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

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 2000;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.page-transition.active {
    opacity: 0;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    /* Reduced padding */
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== CUSTOM HOMEPAGE FIXES ===== */
.custom-hero-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: -150px;
    /* Desktop overlapping */
    min-height: 90vh;
    /* Ensure it takes up most of the screen */
    background-color: var(--color-black);
    /* Seamless background */
}

.custom-hero-img {
    display: block;
    width: auto;
    /* Allow width to shrink */
    max-width: 100%;
    /* Prevent overflow */
    max-height: 90vh;
    /* Prevent it from becoming too tall on wide screens */
    height: auto;
    object-fit: contain;
}

/* Logo Styles */
.logo {
    display: block;
    width: 50px;
}

.logo img {
    width: 100%;
    height: auto;
}

.text-logo {
    height: 1.5em;
    vertical-align: middle;
    margin: 0 2px;
}

.text-logo-hero {
    width: 600px;
    /* 200% larger than OVER FEAR text */
    height: auto;
    display: block;
    margin-bottom: 1.5rem;
    max-width: 90vw;
    /* Responsive on mobile */
    mix-blend-mode: screen;
    /* Makes dark background transparent */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Password Protection Overlay */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
}

#password-overlay h2 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

#password-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-silver);
    color: var(--color-white);
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    outline: none;
}

#password-form button {
    display: block;
    margin: var(--spacing-sm) auto 0;
}

.error-msg {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: var(--spacing-sm);
    display: none;
}

/* Pop-up */
#newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 500;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: var(--color-black);
    border: 1px solid var(--color-silver);
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #222;
    margin-top: var(--spacing-xl);
    text-align: center;
}

.footer-links {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    margin: 0 var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--color-silver);
}

.copyright {
    font-size: 0.7rem;
    color: #444;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {

    /* Main Layout for Mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-black);
        flex-direction: column;
        padding: var(--spacing-md);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Fixed Hero Layout for Mobile */
    .hero {
        display: flex;
        flex-direction: column;
        /* Stack vertically to prevent overlap */
        justify-content: flex-start;
        /* Ensure content starts at top */
        height: auto;
        /* Allow height to grow with content */
        min-height: 100vh;
        /* Ensure full screen */
        padding-top: 100px;
        /* Space for fixed header */
        position: relative;
    }

    .hero-content {
        order: 1;
        /* Text first */
        margin-bottom: 20px;
        z-index: 10;
        /* Above image */
    }

    /* Adjust spotlight section if it overlaps */
    .spotlight-img {
        order: 2;
        /* Image after text */
        height: 300px;
        /* Constrain height */
        width: 100%;
        position: relative;
    }

    /* Ensure title size is manageable */
    .hero h1 {
        font-size: 2rem;
    }
}

/* Home Page Specific Styles */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-slide.active {
    opacity: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.3em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-silver);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

/* Custom Text Section Blending */
.custom-text-section {
    position: relative;
    /* Gradient from Transparent -> Solid Black -> Solid Black */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 100%);
    margin-top: -100px;
    /* Pull up into the hero gradient */
    padding: 100px 20px 80px;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure Text Visibilty & Premium Style */
.custom-text-title {
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    /* Larger, responsive */
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.15em;
    /* Elegant spacing */
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    /* Premium Glow */
    margin-bottom: 40px;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.5s;
    /* Wait for header */
    opacity: 0;
}

.custom-text-body {
    color: #A9A9A9;
    /* Silver */
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 0.05em;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/* Contact Page Styles */
.contact-page-header {
    text-align: center;
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    position: relative;
    background-color: transparent;
    /* Changed from black to transparent/image blend */
}

.header-img {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    /* Adjust based on image preference */
    height: auto;
    display: block;
}

.contact-sub-header {
    margin-top: var(--spacing-sm);
    text-align: center;
}

.fade-in-text {
    font-size: 1.5rem;
    color: var(--color-silver);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeIntext 3s ease-in forwards;
}

@keyframes fadeIntext {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

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

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle container background */
    border: 1px solid #333;
    border-radius: 4px;
    /* Animation Sequence */
    opacity: 0;
    animation: fadeInForm 1s ease-out forwards;
    animation-delay: 1s;
    /* Starts after text fade begins */
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.brand-meaning {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: #050505;
}

.brand-meaning p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-silver);
}

.spotlight {
    padding: var(--spacing-xl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.spotlight-img {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.spotlight-content {
    padding-right: var(--spacing-lg);
}

.spotlight-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.spotlight-content .price {
    font-size: 1.2rem;
    color: var(--color-silver);
    margin-bottom: var(--spacing-md);
    display: block;
}


/* --- MOBILE RENDERING FIX --- */
/* Fix for blur overlay covering content on mobile */
#explosion-flash {
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Ensure content stays above the background */
.hero-content, 
.storefront-hero,
.site-header,
.site-content {
    position: relative;
    z-index: 100 !important;
}

/* Fix potential fixed-width scaling issues */
@media (max-width: 768px) {
    body, html {
        width: 100% !important;
        min-width: 320px !important; /* overwrite any 500px fixed width */
        overflow-x: hidden !important;
    }
    /* Ensure hero text is visible */
    .hero-title, .hero-subtitle {
        position: relative; 
        z-index: 101;
    }
}
