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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #C0603A;
    color: #FDF8F0;
}

/* ===== Nav ===== */
.nav-link {
    position: relative;
}

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

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

/* ===== Navbar States ===== */
#navbar.transparent {
    background: transparent;
}

#navbar.transparent .nav-link {
    color: #fff;
}

#navbar.transparent .nav-link::after {
    background: rgba(255, 255, 255, 0.6);
}

#navbar.transparent .mobile-link {
    color: #2C1810;
}

#navbar.solid {
    background: rgba(253, 248, 240, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(44, 24, 16, 0.08);
}

#navbar.solid .nav-link {
    color: #2C1810;
}

#navbar.solid .nav-link::after {
    background: #C0603A;
}

#navbar.solid .mobile-link {
    color: #2C1810;
}

/* ===== Hero ===== */
.hero-gradient {
    background: linear-gradient(135deg, #5C2B1E 0%, #C0603A 40%, #E26A4A 70%, #D9BC7A 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

.hero-vignette {
    background: radial-gradient(ellipse at center, transparent 40%, rgba(44, 24, 16, 0.3) 100%);
}

/* Hero Animations */
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-tagline {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

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

/* ===== Buttons ===== */
.btn-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    transition: color 0.2s ease;
}

/* ===== Tabs ===== */
.tab-btn {
    color: #7D5E33;
    background: transparent;
}

.tab-btn.active {
    background: #fff;
    color: #C0603A;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:not(.active):hover {
    color: #C0603A;
    background: rgba(255, 255, 255, 0.5);
}

/* ===== Menu ===== */
.menu-item {
    border-bottom: 1px solid rgba(201, 168, 92, 0.15);
    padding-bottom: 0.75rem;
}

.menu-item:last-child {
    border-bottom: none;
}

/* ===== Inputs ===== */
.input-field {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    border-color: #C0603A;
    box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}

/* ===== Scroll Reveal ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== Atmosphere Pattern ===== */
.atmosphere-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }

    .hero-gradient {
        background: linear-gradient(160deg, #5C2B1E 0%, #C0603A 50%, #D9BC7A 100%);
    }
}

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