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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #1B4332;
    color: #FDF8F0;
}

/* ===== Header ===== */
.site-header {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1B4332;
    border-radius: 1px;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

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

/* ===== Mobile Menu ===== */
.mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    position: relative;
}

/* ===== Background Shapes ===== */
.bg-shapes {
    z-index: 0;
    pointer-events: none;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-circle--1 {
    width: 400px;
    height: 400px;
    background: #1B4332;
    top: 10%;
    right: -100px;
}

.shape-circle--2 {
    width: 200px;
    height: 200px;
    background: #D4A574;
    bottom: 20%;
    left: -50px;
}

.shape-circle--3 {
    width: 120px;
    height: 120px;
    background: #E8A84C;
    top: 60%;
    right: 10%;
    opacity: 0.06;
}

.shape-triangle {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.06;
}

.shape-triangle--1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #1B4332;
    top: 45%;
    left: 5%;
    transform: rotate(15deg);
}

.shape-square {
    position: absolute;
    opacity: 0.06;
}

.shape-square--1 {
    width: 100px;
    height: 100px;
    background: #D4A574;
    bottom: 15%;
    right: 5%;
    border-radius: 20px;
    transform: rotate(30deg);
}

/* ===== Floating Cards (Hero) ===== */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-coffee {
    animation-delay: 0s;
}

.card-pastries {
    animation-delay: -2s;
}

.card-creamery {
    animation-delay: -4s;
}

.card-community {
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-12px) rotate(1deg);
    }
    66% {
        transform: translateY(6px) rotate(-1deg);
    }
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Section Spacing ===== */
.section-relative {
    position: relative;
    z-index: 1;
}

/* ===== Menu Cards ===== */
.menu-card {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Feature Cards ===== */
.feature-card {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2a5c2a;
}
