/* ============================================
   SANA OVEN — Custom Styles
   Bold editorial · Terracotta + Sand palette
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::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: #C0603A;
    color: #FDF8F0;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D4AB6A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* ---------- Animations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* ---------- Scroll Indicator ---------- */
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, #C0603A, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: #C0603A;
    color: #FDF8F0;
    border: none;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    background: #a84e2e;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(192, 96, 58, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #3D2B1F;
    border: 2px solid #D4AB6A;
    border-radius: 9999px;
    padding: 0.8125rem 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background: #3D2B1F;
    color: #FDF8F0;
    border-color: #3D2B1F;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(61, 43, 31, 0.2);
}

/* ---------- Stat Cards ---------- */
.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 171, 106, 0.3);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(192, 96, 58, 0.15);
    border-color: rgba(192, 96, 58, 0.3);
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #C0603A;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6B5E54;
    font-weight: 400;
    line-height: 1.4;
}

/* ---------- Floating Badge ---------- */
.floating-badge {
    animation: float 5s ease-in-out infinite;
}

/* ---------- Hero Image Cards ---------- */
.hero-img-card {
    box-shadow: 0 20px 60px rgba(61, 43, 31, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(61, 43, 31, 0.25);
}

/* ---------- Menu Cards ---------- */
.menu-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(61, 43, 31, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 171, 106, 0.15);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(192, 96, 58, 0.12);
    border-color: rgba(192, 96, 58, 0.2);
}

/* ---------- Atmosphere Images ---------- */
.atm-img {
    box-shadow: 0 16px 48px rgba(61, 43, 31, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.atm-img:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 64px rgba(61, 43, 31, 0.3);
}

/* ---------- Feature Items ---------- */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(4px);
}

/* ---------- Info Cards ---------- */
.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(192, 96, 58, 0.08);
}

/* ---------- Navigation ---------- */
#navbar {
    background: rgba(253, 248, 240, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 171, 106, 0.15);
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 4px 32px rgba(61, 43, 31, 0.08);
}

.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;
    border-radius: 1px;
}

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

/* ---------- Mobile Menu ---------- */
.mobile-nav-link {
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-nav-link {
    animation: slideUp 0.4s ease forwards;
    opacity: 0;
}

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

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

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

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Form Styles ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5E54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select:focus {
    outline: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .stat-card {
        flex: 1;
        min-width: 0;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.6875rem;
    }

    .floating-badge {
        position: relative;
        -webkit-transform: none;
        transform: none;
        margin-top: 1rem;
        animation: none;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-img-card {
        box-shadow: 0 12px 40px rgba(61, 43, 31, 0.12);
    }
}
