/* ==========================================================================
   HOMLY STAYS — STYLING SYSTEM & DESIGN TOKENS
   ========================================================================== */

:root {
    /* Color Palette */
    --color-bg-dark: #06080c;
    --color-text-main: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.78);
    --color-accent-gold: #e5be75;
    --color-accent-gold-light: #faecd5;
    --color-accent-glow: rgba(229, 190, 117, 0.4);
    
    /* Typography: Quicksand Medium */
    --font-quicksand: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Dynamic Spacing & Layout */
    --header-height: 80px;
    --footer-height: 70px;
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-quicksand);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

/* Main Viewport Container */
.viewport-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   BACKGROUND & VIGNETTE LAYERS
   -------------------------------------------------------------------------- */
.bg-layer {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: kenBurns 40s infinite alternate ease-in-out;
    filter: brightness(0.9) contrast(1.08);
}

@keyframes kenBurns {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.06) translate(-10px, -5px);
    }
}

/* Soft Vignette Overlay */
.overlay-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: 
        radial-gradient(ellipse at center, rgba(6, 8, 12, 0.05) 0%, rgba(6, 8, 12, 0.35) 75%, rgba(6, 8, 12, 0.75) 100%),
        linear-gradient(to bottom, rgba(6, 8, 12, 0.3) 0%, rgba(6, 8, 12, 0.02) 40%, rgba(6, 8, 12, 0.5) 100%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   FEATHER-LIGHT DREAMY SMOKE LAYER (LIGHTEN BLEND MODE, SOFT DRIFT)
   -------------------------------------------------------------------------- */
.smoke-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.smoke-drift-layer {
    position: absolute;
    top: -15%;
    right: -100%;
    width: 300%;
    height: 130%;
    background-image: url('public/smoke_dreamy.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: repeat-x;
    mix-blend-mode: lighten;
    opacity: 0.16; /* Soft and delicate wisp opacity */
    will-change: transform;
    filter: blur(4px) brightness(1.1); /* Feathered soft edges */
    animation: driftRightToLeft 55s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

@keyframes driftRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Canvas Smoke Particles Overlay */
.smoke-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: lighten;
}

/* --------------------------------------------------------------------------
   HEADER NAVIGATION
   -------------------------------------------------------------------------- */
.header {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInDown 1.2s ease-out forwards;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent-gold);
    box-shadow: 0 0 12px var(--color-accent-gold);
    animation: pulseGlow 2s infinite ease-in-out;
}

.brand-subtext {
    font-family: var(--font-quicksand);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   HERO SECTION & QUICKSAND TYPOGRAPHY (FIXED DESCENDER CLIPPING)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 0 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.accent-line {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
    margin-bottom: 0.25rem;
    border-radius: 2px;
    animation: scaleWidth 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Main Title: Homly Stays (Fixed 'y' Descender Clipping) */
.main-title {
    font-family: var(--font-quicksand);
    font-size: clamp(3.8rem, 8.5vw, 7.8rem);
    font-weight: 500;
    line-height: 1.25; /* Increased to allow full descenders */
    padding-bottom: 0.25em; /* Prevents background-clip text clipping 'y' */
    padding-top: 0.05em;
    padding-left: 0.1em;
    padding-right: 0.1em;
    display: inline-block;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 0%, #faecd5 45%, var(--color-accent-gold-light) 75%, var(--color-accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    filter: drop-shadow(0 0 35px rgba(229, 190, 117, 0.3));
}

/* Subtitle: COMING SOON (Quicksand Medium) */
.subtitle {
    font-family: var(--font-quicksand);
    font-size: clamp(1.1rem, 2.5vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--color-accent-gold-light);
    margin-top: -0.5rem;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    text-shadow: 0 0 20px rgba(229, 190, 117, 0.45);
}

/* --------------------------------------------------------------------------
   FOOTER BAR
   -------------------------------------------------------------------------- */
.footer-bar {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    height: var(--footer-height);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeInUp 1.2s ease-out forwards;
}

.location-tag {
    font-family: var(--font-quicksand);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-tag i {
    color: var(--color-accent-gold);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--color-accent-gold);
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--color-accent-glow);
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleWidth {
    from { width: 0; }
    to { width: 70px; }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header {
        padding: 0 1.25rem;
    }

    .brand-subtext {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }

    .hero-section {
        padding: 0 1rem;
    }

    .subtitle {
        letter-spacing: 0.3em;
    }

    .footer-bar {
        padding: 0 1.25rem;
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
        height: auto;
        padding-bottom: 1.5rem;
    }
}
