@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-bottom: 3.5rem;
}

/* Original was overflow:hidden (single screen). Scroll is unlocked so #about / #arrangements / #contact work. */
body {
    background-color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding-bottom: 2.75rem;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

a { color: inherit; }

/* Hero is the original Loopstack frame, now a 100vh section */
.hero {
    position: relative;
    isolation: isolate;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    background: #000000;
}

/* Top gradient: pinned to the top of the hero, overlays the background video */
#top-gradient {
    position: absolute;
    top: -30vh;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    pointer-events: none;
}

/* Container for the background video: occupies 90% of the hero */
.video-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
    overflow: hidden;
    z-index: 0;
}

/* Background video: stretched, scaled, and positioned higher up */
#bg-video {
    width: 100%;
    height: 110%;
    object-fit: cover;
    display: block;
    transform: translateY(0%);
}

/* Hero Content Area: positioned at the top-center */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 6vh;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Elegant serif heading matching the user's reference image */
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 2.2rem;
    letter-spacing: -0.015em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Premium fully-rounded black button */
.hero-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1.3rem 2.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    outline: none;
}

/* Premium button hover and active states */
.hero-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn:active {
    transform: translateY(0);
}

/* Blinking lime-green dot with glowing wave effect */
.blinking-dot {
    width: 10px;
    height: 10px;
    background-color: #39FF14;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    animation: pulse-glow 2s infinite ease-in-out;
}

/* Secondary outer expanding ring/glow */
.blinking-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-color: rgba(57, 255, 20, 0.45);
    border-radius: 50%;
    animation: wave-expand 2s infinite ease-in-out;
}

/* Keyframe Animations */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.85);
        box-shadow: 0 0 4px rgba(57, 255, 20, 0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(57, 255, 20, 0.9);
    }
}

@keyframes wave-expand {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.3);
        opacity: 0;
    }
}

/* Footer Container: centered vertically at 50vh, with 20px side margins */
.footer-container {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
}

/* Layout above the line */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0 5px;
}

.footer-title {
    font-family: 'General Sans', -apple-system, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.015em;
    margin: 0;
}

.footer-title.quote {
    text-transform: none;
}

/* Semi-transparent white horizontal line */
.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1.6rem 0;
    width: 100%;
}

/* Layout below the line */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5px;
}

/* Social icons on the left */
.footer-socials {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex: 1;
}

.social-icon {
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* 4 Anchor links centered */
.footer-links {
    display: flex;
    gap: 2.8rem;
    justify-content: center;
    align-items: center;
    flex: 2;
}

.footer-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

/* Copyright and company name on the right */
.footer-copyright {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    flex: 1;
    letter-spacing: 0.02em;
}

/* Footer Signature Logo: pinned to the very bottom of the hero */
.footer-logo-wrap {
    position: absolute;
    bottom: calc(2.75rem + 8px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    margin: 0;
}

.footer-logo-text {
    font-family: 'General Sans', -apple-system, sans-serif;
    font-size: 15vw;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-right: -0.03em;
    transform: translateX(-12px);
    line-height: 0.8;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    text-align: center;
    width: 100%;
    pointer-events: none;
    opacity: 0.95;
    text-shadow: none;
    white-space: nowrap;
}

/* Staggered letter-by-letter masked reveal (left to right) */
.footer-logo-text .letter-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 0.8;
}

.footer-logo-text .letter-inner {
    display: inline-block;
    opacity: 0;
    transform: translateX(-105%);
    filter: blur(20px);
    animation: letter-reveal-mask 1.2s cubic-bezier(0.05, 0.9, 0.1, 1) forwards;
}

@keyframes letter-reveal-mask {
    0% {
        opacity: 0;
        transform: translateX(-105%);
        filter: blur(20px);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0.95;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Word Masking and Entrance Animation for the Hero Title */
.hero-title .word-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.hero-title .word-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(105%);
    filter: blur(20px);
    animation: word-reveal-mask 1.3s cubic-bezier(0.05, 0.9, 0.1, 1) forwards;
}

@keyframes word-reveal-mask {
    0% {
        opacity: 0;
        transform: translateY(105%);
        filter: blur(20px);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Glassmorphism Floating Cursor Card */
.glass-cursor-card {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-cursor-card.active {
    opacity: 1;
}

/* Черный стеклянный режим плашки при наведении на кнопку Book a visit */
.glass-cursor-card.dark-mode {
    background: rgba(0, 0, 0, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.cursor-card-text {
    font-family: 'General Sans', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #39FF14;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.45);
}

.cursor-card-text .text-white {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Outlined Cursor Ring */
.cursor-ring-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    z-index: 99998;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.cursor-ring-outline.active {
    opacity: 1;
}

/* Эффект расширения и затухания кружка при наведении на интерактивные элементы */
.cursor-ring-outline.expanded {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Below-fold panels — same black / Playfair / hairline language as the hero */
.panel {
    position: relative;
    z-index: 4;
    background: #000000;
    color: #ffffff;
    padding: clamp(4.5rem, 10vw, 7.5rem) 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1rem;
}

.panel h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 16ch;
}

.lede {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    max-width: 36rem;
    margin: 1.4rem 0 0;
}

.offerings {
    list-style: none;
    margin: 2.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.offering {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 1rem;
    padding: 1.6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.offering:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.offering .idx {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #39FF14;
    letter-spacing: 0.08em;
    padding-top: 0.35rem;
}

.offering h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 400;
    margin: 0 0 0.35rem;
}

.offering p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    font-size: 0.98rem;
}

.visit {
    display: grid;
    gap: 2.4rem;
}

.visit form {
    display: grid;
    gap: 0.9rem;
    max-width: 28rem;
}

.visit input {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.85rem 0;
    outline: none;
}

.visit input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.visit input:focus {
    border-bottom-color: #39FF14;
}

.visit .hero-btn {
    margin-top: 0.6rem;
    justify-self: start;
}

#sample-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.85rem;
    background: #000000;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#sample-bar p { margin: 0; }
#sample-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#sample-bar .links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
#sample-bar .pill {
    background: #ffffff;
    color: #000000;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 860px) {
    .visit {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }
}

@media (max-width: 820px) {
    .hero-title { font-size: 1.85rem; }
    .footer-title { font-size: 1.05rem; }
    .footer-links { gap: 1.15rem; }
    .footer-link { font-size: 0.82rem; }
    .footer-logo-text { font-size: 13vw; }
}

@media (max-width: 720px) {
    .footer-socials,
    .footer-copyright { display: none; }
    .footer-links {
        flex: 1;
        justify-content: space-between;
        gap: 0.8rem;
    }
    #sample-bar { font-size: 10px; }
}

@media (hover: none) {
    .glass-cursor-card,
    .cursor-ring-outline { display: none; }
}
