/* ============================================
   BALCONY COFFEE AND TEA — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.2);
    color: #0a1628;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

/* ---- Typography ---- */
.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #c9a84c;
}

.section-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: #0a1628;
    letter-spacing: -0.01em;
}

.body-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.85;
    color: #4a5568;
    letter-spacing: 0.01em;
}

/* ---- Divider ---- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 22, 40, 0.12) 20%, rgba(10, 22, 40, 0.12) 80%, transparent);
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn-primary {
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(201, 168, 76, 0.35);
    transform: translateY(-1px);
}

.btn-secondary:hover {
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}

/* ---- Menu Items ---- */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding-left 0.3s ease;
}
.menu-item:last-child {
    border-bottom: none;
}
.menu-item:hover {
    padding-left: 0.5rem;
}

/* ---- Visit Items ---- */
.visit-item {
    transition: transform 0.3s ease;
}
.visit-item:hover {
    transform: translateX(4px);
}

/* ---- Navigation ---- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ---- Scroll Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(0);
}
.reveal-left {
    transform: translateX(0);
}
.reveal-right {
    transform: translateX(0);
}

/* Animated states — applied by JS */
.reveal-up.animated {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left.animated {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Default hidden state for reduced motion — JS adds .animated */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-24px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(24px);
    }
}

/* ---- Hero Animations ---- */
.hero-subtitle {
    opacity: 1;
    animation: fadeDown 0.8s 0.3s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-headline {
    opacity: 1;
    animation: fadeUp 0.9s 0.5s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-body {
    opacity: 1;
    animation: fadeUp 0.9s 0.7s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-cta {
    opacity: 1;
    animation: fadeUp 0.9s 0.9s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Scroll Line Animation ---- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ---- Image Parallax ---- */
#hero .absolute img {
    will-change: transform;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section-heading {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    #hero .absolute img {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .max-w-6xl {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
