/* =============================================
   PENN LIQUOR — Custom Styles
   Classic & Elegant · Navy + Gold Palette
   ============================================= */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: rgba(200, 164, 94, 0.3);
    color: #FAF6F0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 94, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 164, 94, 0.5);
}

/* ---- Navbar ---- */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(6, 15, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 164, 94, 0.1);
}

#navbar.scrolled .menu-line {
    background: rgba(250, 246, 240, 0.8) !important;
}

/* ---- Mobile Menu ---- */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }

/* ---- Hero Animations ---- */
.hero-ornament {
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-subtitle-top {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-headline {
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.6s;
}

.hero-tagline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-scroll {
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.4s;
}

@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 fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Scroll Dot Animation ---- */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ---- Scroll Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---- Image Hover Glow ---- */
.group:hover img {
    filter: brightness(1.05);
}

/* ---- Button Focus States ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(200, 164, 94, 0.6);
    outline-offset: 2px;
}

/* ---- Link Underline Animation ---- */
a {
    text-decoration: none;
}

/* ---- Smooth Image Loading ---- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    @media (max-width: 380px) {
        .hero-headline {
            font-size: 2.25rem;
        }
    }
}

/* ---- Print Styles ---- */
@media print {
    #navbar,
    .hero-scroll,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
