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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(92, 45, 31, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 60%;
}

/* Hamburger animation */
#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 6px;
}

/* ===== HERO ===== */
.hero-bg {
    transition: transform 8s ease;
}

#hero:hover .hero-bg {
    transform: scale(1.02);
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    will-change: transform;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* Default visible state for reduced motion / no-JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTON HOVER EFFECTS ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* ===== SELECTION ===== */
::selection {
    background: rgba(192, 96, 58, 0.2);
    color: inherit;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f5;
}

::-webkit-scrollbar-thumb {
    background: #d4b896;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* ===== MOBILE MENU FULLSCREEN ===== */
@media (max-width: 767px) {
    #mobileMenu {
        top: 72px;
    }

    .mobile-link {
        font-size: 1.5rem;
    }
}

/* ===== MAP CONTAINER ===== */
iframe {
    border-radius: 1rem;
}

/* ===== UTILITY ===== */
.no-underline {
    text-decoration: none;
}
