/* Homepage-only CSS: lock the entire viewport, neutralize WP root padding so the hero video fills edge-to-edge with no scrolling */

/* Lock the page to a single viewport when the hero is present */
html.pot-home-locked,
body.pot-home-locked {
    overflow: hidden !important;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
}
/* Neutralize WordPress root padding (useRootPaddingAwareAlignments) on the homepage */
body.pot-home-locked .wp-site-blocks,
body.pot-home-locked .is-root-container,
body.pot-home-locked .wp-block-post-content,
body.pot-home-locked .wp-block-template-part {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
/* Hero locks to the entire viewport */
#pot-home-hero {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    background-color: #000;
    overflow: hidden;
}
/* Keep the header rendered above the hero video */
body.pot-home-locked > header,
body.pot-home-locked header.wp-block-template-part,
body.pot-home-locked .wp-block-template-part[data-type="header"],
body.pot-home-locked header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}
/* Force every wrapper inside the homepage header to be transparent (overrides the
   global black backgrounds set in style.css for .wp-block-group, .wp-block-navigation, etc.) */
body.pot-home-locked header,
body.pot-home-locked header *,
body.pot-home-locked header .wp-block-group,
body.pot-home-locked header .wp-block-template-part,
body.pot-home-locked header .wp-block-navigation,
body.pot-home-locked header .wp-block-navigation__container,
body.pot-home-locked header .wp-block-navigation__responsive-container,
body.pot-home-locked header .wp-block-navigation__responsive-container-content,
body.pot-home-locked #page,
body.pot-home-locked #page > .wp-block-group {
    background-color: transparent !important;
}
/* Mobile menu (when opened) keeps the dark backdrop so it remains readable */
body.pot-home-locked header .wp-block-navigation__responsive-container.is-menu-open,
body.pot-home-locked header .wp-block-navigation__responsive-container.is-menu-open *,
body.pot-home-locked header .wp-block-navigation__responsive-container.has-modal-open,
body.pot-home-locked header .wp-block-navigation__submenu-container {
    background-color: #000 !important;
}

/* Only keeping essential custom CSS that can't be handled by Tailwind */
.pot-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Main video container animation */
.main-video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1); /* Start at full size */
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

/* Subtle word-by-word reveal animation on the hero heading */
.pot-reveal-heading {
    display: inline-block;
    overflow: hidden;
}
.pot-reveal-heading .pot-reveal-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.15;
    padding: 0 0.05em;
}
.pot-reveal-heading .pot-reveal-word > span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    filter: blur(8px);
    animation: potRevealWord 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes potRevealWord {
    0% {
        transform: translateY(110%);
        opacity: 0;
        filter: blur(8px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* CTA reveal animation - emerges 5s after page load */
.pot-cta-reveal {
    opacity: 0;
    transform: translate(-50%, 32px);
    animation: potCtaReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 5s forwards;
    pointer-events: auto;
}

@keyframes potCtaReveal {
    from {
        opacity: 0;
        transform: translate(-50%, 32px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
        filter: blur(0);
    }
}

/* --- CTA button design --- */
.pot-cta-button {
    isolation: isolate;
    letter-spacing: 0.03em;
    text-decoration: none;
    background: url('../svgs/marker-yellow-v1.svg') no-repeat center center / 100% 100%;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.35s ease;
}

/* Arrow icon */
.pot-cta-arrow {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background-color 0.35s ease;
}

/* Hover / focus states */
.pot-cta-button:hover,
.pot-cta-button:focus-visible {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.1);
}

.pot-cta-button:hover .pot-cta-arrow,
.pot-cta-button:focus-visible .pot-cta-arrow {
    transform: translateX(4px);
    background-color: rgba(0, 0, 0, 0.3);
}

.pot-cta-button:active {
    transform: translateY(0);
}

/* Reduced-motion users get the static state */
@media (prefers-reduced-motion: reduce) {
    .pot-cta-reveal {
        animation-duration: 0.01s;
    }
}

/* Logo zoom and blur animation */
.zoom-in-blur {
    animation: zoomInBlur 2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    filter: blur(20px);
}

@keyframes zoomInBlur {
    0% {
        transform: scale(1.5);
        opacity: 0;
        filter: blur(20px);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* Fade in animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.fade-in-delayed {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
