/*
Theme Name:  NAMA — Coming Soon
Theme URI:   https://nama-restaurant.com
Description: Coming Soon splash for NAMA. Full-screen photo/video background with adjustable opacity over black, a spinning brand logo with natural flick-and-decay physics, editable headline, and Instagram/Facebook links. Shares the Aethelgard Noir design system (Noto Serif + Work Sans, gold/obsidian palette) of the main NAMA theme.
Version:     1.0.0
Author:      NAMA
Author URI:  https://nama-restaurant.com
Text Domain: nama-coming-soon
*/

/* ═══════════════════════════════════════════════════════════════════════════
   NAMA — Coming Soon
   Aethelgard Noir design system (shared with the main NAMA theme)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────────────────────── */
:root {
    --gold:        #C5A059;
    --gold-light:  #E9C176;
    --obsidian:    #131313;
    --silver:      #E5E2E1;
    --taupe:       #D1C5B4;
    --font-serif:  'Noto Serif', Georgia, serif;
    --font-sans:   'Work Sans', system-ui, sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html, body { width: 100%; height: 100%; }

body {
    background-color: #000;
    color: var(--silver);
    font-family: var(--font-sans);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Stage ─────────────────────────────────────────────────────────────────── */
.cs-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #000;   /* pure black base — the media fades into this */
}

/* ── Background media ──────────────────────────────────────────────────────── */
/* Opacity is set inline from the Customizer (--cs-bg-opacity). Lower opacity =
   the photo/video bleeds into the black base, i.e. a darker background. */
.cs-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: var(--cs-bg-opacity, 0.7);
}
.cs-bg img,
.cs-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(var(--cs-bg-blur, 0px));
    /* slight overscale so blur doesn't feather a dark edge into the viewport */
    transform: scale(1.1);
}

/* ── Darkening overlay ─────────────────────────────────────────────────────── */
/* A vignette + bottom gradient so the frame "gets darker" toward the edges and
   base, keeping the centered logo / headline legible over any media. */
.cs-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0)    32%,
            rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.28) 0%,
            rgba(0, 0, 0, 0.12) 42%,
            rgba(0, 0, 0, 0.78) 100%);
}

/* ── Content ───────────────────────────────────────────────────────────────── */
.cs-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 4.5vh, 3rem);
    text-align: center;
    padding: 6vmin;
    pointer-events: none; /* let clicks fall through to the bottom bar */
}

/* ── Spinning logo ─────────────────────────────────────────────────────────── */
.cs-logo-wrap {
    width: clamp(140px, 18vw, 240px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-logo {
    width: 100%;
    height: auto;
    transform-origin: 50% 50%;
    will-change: transform;
    filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.55));
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}
/* Typographic fallback when no logo is uploaded */
.cs-logo-text {
    display: inline-block;     /* required so the spin transform applies */
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: 0.3em;
    text-indent: 0.3em;        /* re-center against trailing letter-spacing */
    color: var(--gold);
    transform-origin: 50% 50%;
    will-change: transform;
}

/* ── Headline + subtitle group ─────────────────────────────────────────────── */
.cs-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.7rem, 1.6vh, 1.2rem);  /* tight: subtitle hugs the headline */
}
.cs-title {
    font-family: var(--font-serif);
    font-weight: 300;
    /* Scales WITH viewport width (small on narrow/mobile, larger on desktop)
       and stays on a single line so the phrase never breaks mid-way. */
    font-size: clamp(1.3rem, 5.5vw, 3rem);
    white-space: nowrap;
    letter-spacing: 0.28em;
    text-indent: 0.28em;       /* re-center against trailing letter-spacing */
    line-height: 1.25;
    color: var(--silver);
}

.cs-subtitle {
    max-width: 42ch;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.8rem, 1.5vw, 1.05rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;       /* re-center against trailing letter-spacing */
    line-height: 1.7;
    color: var(--taupe);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM BAR — identical to the NAMA home section
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Desktop footer (phone/email · address · social) ───────────────────────── */
.home-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 1.4vw 3vw;
    z-index: 5;             /* above the darkening overlay */
}

.home-footer-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;                /* three equal-width columns */
}
.home-footer-group:first-child   { align-items: flex-start; }
.home-footer-group--center       { align-items: center; text-align: center; }
.home-footer-group--right        { align-items: flex-end; text-align: right; }

.home-footer-link,
.home-footer-text {
    font-family: var(--font-sans);
    font-size: 0.65vw;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe);
    transition: color var(--transition-fast);
    margin: 0;
}
.home-footer-link:hover { color: var(--gold); }

.home-social-links {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 1.2vw;
}
.home-social-link {
    font-family: var(--font-sans);
    font-size: 0.65vw;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--taupe);
    transition: color var(--transition-fast);
}
.home-social-link:hover { color: var(--gold); }

/* Mobile docked bar is hidden on desktop */
.home-docked-bar { display: none; }
.home-dock-panel { display: none; }

/* ── Mobile bottom bar (≤768px): hide footer, show glass docked bar ────────── */
@media (max-width: 768px) {

    .home-footer { display: none; }

    /* keep the centered logo/headline clear of the fixed docked bar */
    .cs-content { padding-bottom: 26vw; }

    .home-docked-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;

        /* Pure glassmorphism */
        background: rgba(25, 25, 25, 0.5);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(213, 197, 180, 0.15);

        display: flex;
        flex-direction: column;
        z-index: 500;
        transition: transform 0.3s ease;
    }
    .home-docked-bar.is-hidden {
        transform: translateY(100%);
        pointer-events: none;
    }

    .home-dock-panels-wrapper { width: 100%; }

    .home-dock-panel {
        display: flex;
        align-items: center;
        width: 100%;

        /* collapsed */
        max-height: 0;
        padding: 0 8vw;
        opacity: 0;
        transform: translateY(10px);
        overflow: hidden;
        pointer-events: none;

        transition:
            max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
            padding    0.4s cubic-bezier(0.25, 1, 0.5, 1),
            transform  0.4s cubic-bezier(0.25, 1, 0.5, 1),
            opacity    0.3s ease;
    }
    .home-dock-panel.is-visible {
        max-height: 15vw;
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        padding: 3vw 8vw 3vw 8vw;
    }

    /* space-evenly => one item sits centered; two items get equal spacing
       from the left edge, between them, and to the right edge. */
    #dockSocialPanel,
    #dockContactPanel { justify-content: space-evenly; }
    #dockLocationPanel { justify-content: center; }

    .home-dock-panel-link {
        font-family: var(--font-sans);
        font-size: 2.8vw;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--taupe);
        text-decoration: none;
    }
    .home-dock-panel-link.text-center { text-align: center; line-height: 1.5; }

    .home-dock-buttons {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        width: 100%;
        height: auto;
        padding: 3vw 0;
    }

    .home-dock-btn {
        background: transparent;
        border: none;
        color: var(--taupe);
        transition: color 0.25s ease;
        cursor: pointer;
        font-size: 2.8vw;
        padding: 2vw 0;
        margin: 0;
        line-height: 1;
        position: relative;
    }
    .home-dock-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 1px;
        background: var(--gold);
        transform: translateX(-50%);
        transition: width 0.25s ease;
    }
    .home-dock-btn:hover,
    .home-dock-btn.is-active { color: var(--gold); }
    .home-dock-btn:hover::after,
    .home-dock-btn.is-active::after { width: 100%; }

    .home-dock-label {
        font-family: var(--font-sans);
        line-height: 1;
        margin: 0;
        padding: 0;
        font-size: 2.8vw;
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }
}

/* ── Mobile tweaks ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cs-logo-wrap { width: clamp(120px, 42vw, 180px); }
    .cs-title     { letter-spacing: 0.2em; text-indent: 0.2em; }
}

/* ── Reduced motion ────────────────────────────────────────────────────────── */
/* The spin physics also bail out in JS; this keeps the logo upright if any
   transform was applied before the preference was detected. */
@media (prefers-reduced-motion: reduce) {
    .cs-logo,
    .cs-logo-text { transform: none !important; }
}
