/* ==========================================================================
   TEST2 — copy of rawhouseathens.gr/en/studio/ hero + navbar.
   Hero: black full-screen, giant white "CLICK ME" (Noto Sans 800) with the
   red 3D long-shadow (see long-shadow.css). Scroll is replaced by a zoom
   into the letter K. Navbar: red pill copy of their fixed header.
   Colors pulled from their CSS: primary #f8485e, secondary #cb6ce6.
   ========================================================================== */

/* The Test page is standalone (Layout = null) — no site.css is loaded, so
   reset the browser's default 8px body margin and paint the body black.
   Without this a white strip of body shows around the hero edges */
html, body {
    margin: 0;
    padding: 0;
    background: #000;
}

/* ============================ NAVBAR (copy) ============================ */

/* Fixed wrapper — "pl-8 pr-2 lg:px-8 fixed w-full top-1 z-40 flex items-center" */
.raw2-nav-wrap {
    position: fixed;
    top: 4px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 8px 0 32px;
}

.raw2-nav {
    width: 100%;
}

/* "relative w-full px-2 py-2.5 sm:px-4 max-w-[1700px] mx-auto flex items-center justify-between" */
.raw2-nav-container {
    position: relative;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 10px 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-family: 'Manrope', 'Poppins', sans-serif;
}

.raw2-nav-left {
    display: flex;
    align-items: center;
    position: relative;
}

/* Logo button — their menu toggle: red circle, black hand-drawn logo.
   Hover: circle goes purple (secondary), logo turns white. */
.raw2-logo-btn {
    position: relative;
    display: block;
    height: max-content;
    width: max-content;
    z-index: 10;
    text-decoration: none;
    transition: all 0.3s ease;
}

.raw2-logo-circle {
    display: block;
    background: #f8485e;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 6px;
    margin: 6px;
    transition: background 0.3s ease;
}

.raw2-logo-svg {
    display: block;
    width: 64px;
    color: #000;
    transition: color 0.3s ease;
}

.raw2-logo-btn:hover .raw2-logo-circle { background: #cb6ce6; }
.raw2-logo-btn:hover .raw2-logo-svg { color: #fff; }

/* Rotated "RAW" sticker overlapping the circle's top-left edge
   ("absolute top-2 -left-2/5 -rotate-9 -translate-x-1") */
.raw2-logo-sticker {
    position: absolute;
    top: 8px;
    left: -40%;
    transform: rotate(-9deg) translateX(-4px);
    pointer-events: none;
    line-height: 0;
}

/* Links pill — "lg:bg-primary lg:border-black/20 lg:border rounded-full px-3 lg:ml-3" */
.raw2-links-wrap {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: max-content;
    width: max-content;
    border-radius: 100px;
    background: #f8485e;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-left: 12px;
}

.raw2-links {
    display: flex;
    align-items: center;
    gap: 8px;
    height: max-content;
    padding: 12px;
    margin: 0;
    list-style: none;
}

.raw2-links a {
    display: inline-block;
    padding: 8px 16px;
    color: #000;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 100px;
    transition: background 0.25s ease;
}
.raw2-links a:hover { background: #fff; }

/* Right cluster — "items-center gap-2 lg:gap-4 flex justify-end pr-2 xs:pr-4" */
.raw2-nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding-right: 8px;
    margin: 0;
    list-style: none;
}

/* "Book now" — red outer pill, inner button flashes white on hover */
.raw2-book {
    background: #f8485e;
    padding: 12px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.raw2-book-btn {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}
.raw2-book-btn:hover { background: #fff; }

/* Globe — red circle, icon inverts to white on hover */
.raw2-globe {
    display: flex;
    align-items: center;
    background: #f8485e;
    border-radius: 50%;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.raw2-globe button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    color: #000;
    cursor: pointer;
    transition: color 0.2s ease;
}
.raw2-globe button:hover { color: #fff; }
.raw2-globe svg { width: 28px; height: 28px; }

/* ============================= HERO (copy) ============================= */

/* Their section: "h-svh w-screen flex items-center justify-center overflow-hidden bg-black" */
.test2-hero {
    height: 100svh;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    overflow: hidden;
    background: #000;
    position: relative;
    --mxl: 50%;
    --myl: 50%;
    cursor: pointer;
}

/* Red background — sits behind the black overlay, revealed by the flashlight.
   Rendered like light hitting a wall: overexposed near-white hotspot at the
   beam center, vivid red mid-beam, falling off to near-black red in the dark. */
.test2-red-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 420px at var(--mxl) var(--myl),
            rgba(255, 205, 170, 0.35) 0%,
            rgba(255, 205, 170, 0.12) 30%,
            rgba(255, 205, 170, 0) 55%),
        radial-gradient(circle 780px at var(--mxl) var(--myl),
            #ffeef0 0%,
            #ffb9c4 5%,
            #ff6a82 14%,
            #f8485e 32%,
            #d93a50 50%,
            #a32436 68%,
            #6b1420 84%,
            #38080f 100%);
    z-index: 0;
}

/* Black 3D extrusion for the hidden texts (brand + subtitle).
   Same technique as the title's long-shadow but black and shallower;
   --d scales the depth (smaller on mobile). */
.long-shadow-black {
    --d: 0.5;
    text-shadow: calc(var(--d) * 1px) calc(var(--d) * 1px) 0 #000,
        calc(var(--d) * 2px) calc(var(--d) * 2px) 0 #000,
        calc(var(--d) * 3px) calc(var(--d) * 3px) 0 #000,
        calc(var(--d) * 4px) calc(var(--d) * 4px) 0 #000,
        calc(var(--d) * 5px) calc(var(--d) * 5px) 0 #000,
        calc(var(--d) * 6px) calc(var(--d) * 6px) 0 #000,
        calc(var(--d) * 7px) calc(var(--d) * 7px) 0 #000,
        calc(var(--d) * 8px) calc(var(--d) * 8px) 0 #000,
        calc(var(--d) * 9px) calc(var(--d) * 9px) 0 #000,
        calc(var(--d) * 10px) calc(var(--d) * 10px) 0 #000,
        calc(var(--d) * 11px) calc(var(--d) * 11px) 0 #000,
        calc(var(--d) * 12px) calc(var(--d) * 12px) 0 #000,
        calc(var(--d) * 13px) calc(var(--d) * 13px) 0 #000,
        calc(var(--d) * 14px) calc(var(--d) * 14px) 0 #000,
        calc(var(--d) * 15px) calc(var(--d) * 15px) 0 #000,
        calc(var(--d) * 16px) calc(var(--d) * 16px) 0 #000,
        calc(var(--d) * 17px) calc(var(--d) * 17px) 0 #000,
        calc(var(--d) * 18px) calc(var(--d) * 18px) 0 #000,
        calc(var(--d) * 19px) calc(var(--d) * 19px) 0 #000,
        calc(var(--d) * 20px) calc(var(--d) * 20px) 0 #000,
        calc(var(--d) * 21px) calc(var(--d) * 21px) 0 #000,
        calc(var(--d) * 22px) calc(var(--d) * 22px) 0 #000,
        calc(var(--d) * 23px) calc(var(--d) * 23px) 0 #000,
        calc(var(--d) * 24px) calc(var(--d) * 24px) 0 #000;
}

/* Brand text above the title — big, sleek, white with a black 3D extrusion.
   On the red layer, hidden by the black overlay until the beam finds it */
.test2-brand {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0);
    margin: 0;
    padding: 0 20px;
    color: #fff;
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 5vw, 3rem);
    letter-spacing: 5px;
    text-transform: lowercase;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

/* Subtitle under the title — same hidden red-layer treatment */
.test2-subtitle {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translate(-50%, 0);
    margin: 0;
    padding: 0 20px;
    color: #fff;
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 4vw, 2.7rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

/* Black overlay — covers the red + hidden texts. When the light is on, the
   mask opens a beam with a natural falloff: fully clear hotspot, smooth
   penumbra, then a long dim ambient spill before the room goes dark again. */
.test2-black-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 2;
    pointer-events: none;
}

.test2-hero.flashlight-on .test2-black-overlay {
    mask-image: radial-gradient(circle 900px at var(--mxl) var(--myl),
        transparent 0%,
        transparent 13%,
        rgba(0, 0, 0, 0.2) 22%,
        rgba(0, 0, 0, 0.5) 34%,
        rgba(0, 0, 0, 0.8) 48%,
        rgba(0, 0, 0, 0.95) 62%,
        black 76%);
    -webkit-mask-image: radial-gradient(circle 900px at var(--mxl) var(--myl),
        transparent 0%,
        transparent 13%,
        rgba(0, 0, 0, 0.2) 22%,
        rgba(0, 0, 0, 0.5) 34%,
        rgba(0, 0, 0, 0.8) 48%,
        rgba(0, 0, 0, 0.95) 62%,
        black 76%);
}

/* Flashlight source — two layers:
   ::before = tiny white-hot filament core,
   ::after  = large additive warm glow that bleeds into the dark.
   The OS cursor is hidden while the light is on. */
.test2-hero.flashlight-on::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: var(--mxl);
    top: var(--myl);
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow:
        0 0 10px 3px rgba(255, 255, 255, 0.95),
        0 0 26px 8px rgba(255, 214, 190, 0.6),
        0 0 60px 18px rgba(248, 72, 94, 0.35);
    z-index: 21;
    pointer-events: none;
    animation: test2-flicker 4s infinite;
}

.test2-hero.flashlight-on::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    left: var(--mxl);
    top: var(--myl);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 240, 225, 0.45) 8%,
        rgba(255, 208, 190, 0.2) 16%,
        rgba(255, 150, 150, 0.08) 28%,
        rgba(248, 72, 94, 0.03) 42%,
        transparent 62%);
    mix-blend-mode: screen;
    filter: blur(2px);
    z-index: 20;
    pointer-events: none;
    animation: test2-flicker 4s infinite;
}

/* Barely-there brightness wobble — sells that it's a real lamp, not a graphic */
@keyframes test2-flicker {
    0%, 100% { opacity: 1; }
    38%      { opacity: 0.98; }
    39%      { opacity: 0.94; }
    40%      { opacity: 0.99; }
    67%      { opacity: 0.97; }
    68%      { opacity: 1; }
}

.test2-hero.flashlight-on {
    cursor: none;
}

/* Their wrapper: "flex items-center relative".
   z-index 10 keeps the title above the black overlay (2) and white fade (9):
   on mobile the 90° rotation gives this wrapper a transform, which makes it a
   stacking context — without an explicit z-index the whole title would be
   painted UNDER the overlay and only show inside the flashlight beam */
.test2-title-wrap {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Their h1: uppercase, Noto Sans (font-titles), extrabold, white, long-shadow,
   text-7xl -> xs:8xl -> sm:9xl -> lg:180px -> xl:210px, centered, z-10.
   Scaled by JS for the zoom-into-K; transform-origin is set to the K.
   The shadow lives on its own layer behind the text (like their single-text-node
   h1) so a left-pointing shadow can never paint over a neighbouring letter. */
.test2-title {
    margin: 0;
    padding: 0 20px;
    text-transform: uppercase;
    color: #fff;
    font-family: 'Noto Sans', ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 16vw, 210px);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    will-change: transform;
    user-select: none;
}

/* Shadow-only layer — transparent text, only the red extrusion shows.
   Same box/metrics as the front layer, so glyphs align pixel-perfect. */
.test2-shadow {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    color: transparent;
    pointer-events: none;
}

/* Front text — plain white letters, no shadow, always above the extrusion */
.test2-front {
    display: block;
    position: relative;
    z-index: 2;
}

/* White safety net — deep in the zoom we're inside the K's white stem,
   this guarantees the whole screen lands on pure white with no edge gaps */
.test2-white-fade {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 9;
    opacity: 0;
    pointer-events: none;
}

/* ============================ RESPONSIVE ============================ */

@media (min-width: 640px) {
    .test2-hero { padding: 0 28px; }
    .raw2-nav-container { padding: 10px 16px; }
}

@media (min-width: 1024px) {
    .raw2-nav-wrap { padding: 0 32px; }
}

/* Below lg their links pill collapses into the toggle menu */
@media (max-width: 1023px) {
    .raw2-links-wrap { display: none; }
    .raw2-logo-svg { width: 52px; }
    .raw2-logo-sticker { width: 80px; }
    .raw2-logo-sticker img { width: 80px; height: auto; }
    .raw2-book-btn { font-size: 0.875rem; }
    .raw2-globe svg { width: 24px; height: 24px; }
}

/* Small screens — keep everything on-screen and legible */
@media (max-width: 640px) {
    .test2-hero { padding: 0 8px; }

    /* 90° tilt for mobile — applied to the wrapper so the JS zoom
       (scale on the h1 itself) composes instead of overriding it */
    .test2-title-wrap { transform: rotate(90deg); }

    .test2-title { padding: 0 8px; }

    /* Mobile title shadow starts small — without this it sits at the
       .long-shadow defaults (-0.5/0.5 ≈ 70px) until the JS cycle kicks in */
    .test2-shadow {
        --ux: 0.06;
        --uy: 0.12;
    }

    .test2-brand {
        top: 13%;
        font-size: 1.15rem;
        letter-spacing: 3px;
        --d: 0.3;
    }
    .test2-subtitle {
        bottom: 12%;
        font-size: 1.05rem;
        line-height: 1.5;
        white-space: normal;
        max-width: 90vw;
        --d: 0.3;
    }
}

/* Their "Book now" pill only shows from 340px up */
@media (max-width: 339px) {
    .raw2-book { display: none; }
}

/* PC only — a bigger flashlight beam (~1.5x): wider mask opening,
   larger red glow on the wall, bigger bulb aura */
@media (min-width: 1025px) {
    .test2-red-bg {
        background:
            radial-gradient(circle 620px at var(--mxl) var(--myl),
                rgba(255, 205, 170, 0.35) 0%,
                rgba(255, 205, 170, 0.12) 30%,
                rgba(255, 205, 170, 0) 55%),
            radial-gradient(circle 1150px at var(--mxl) var(--myl),
                #ffeef0 0%,
                #ffb9c4 5%,
                #ff6a82 14%,
                #f8485e 32%,
                #d93a50 50%,
                #a32436 68%,
                #6b1420 84%,
                #38080f 100%);
    }

    .test2-hero.flashlight-on .test2-black-overlay {
        mask-image: radial-gradient(circle 1350px at var(--mxl) var(--myl),
            transparent 0%,
            transparent 13%,
            rgba(0, 0, 0, 0.2) 22%,
            rgba(0, 0, 0, 0.5) 34%,
            rgba(0, 0, 0, 0.8) 48%,
            rgba(0, 0, 0, 0.95) 62%,
            black 76%);
        -webkit-mask-image: radial-gradient(circle 1350px at var(--mxl) var(--myl),
            transparent 0%,
            transparent 13%,
            rgba(0, 0, 0, 0.2) 22%,
            rgba(0, 0, 0, 0.5) 34%,
            rgba(0, 0, 0, 0.8) 48%,
            rgba(0, 0, 0, 0.95) 62%,
            black 76%);
    }

    .test2-hero.flashlight-on::after {
        width: 330px;
        height: 330px;
    }
}
