/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: #f6e0a0;
    color: #102a43;
}

/* ===== NAVIGATION ===== */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #eab300;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

#nav.scrolled .nav-link {
    color: #243b53;
}

#nav.scrolled .nav-link::after {
    background: #c99700;
}

/* Mobile menu */
#mobileMenu {
    z-index: 50;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 100%;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== HERO ANIMATIONS ===== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.8s ease forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-img-anim {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImgIn 1s ease 0.3s forwards;
}

@keyframes heroImgIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered reveals */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===== BUTTONS ===== */
button, a {
    cursor: pointer;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #eab300;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SMOOTH SCROLL OFFSET ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    #about, #products, #gallery, #visit, #contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* ===== CARD HOVER EFFECTS ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== SUBTLE SHIMMER ON GOLD ELEMENTS ===== */
.bg-gold-400 {
    position: relative;
    overflow: hidden;
}

.bg-gold-400::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.bg-gold-400:hover::after {
    left: 100%;
}
