/* === Base & Typography === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #781f2d;
    color: #fdf8f6;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
}

/* === Hero Animations === */
@media (prefers-reduced-motion: no-preference) {
    .hero-headline {
        opacity: 0;
        transform: translateY(40px);
        animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    }

    .hero-badge {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    }

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

/* === Header === */
#site-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#site-header.scrolled .header-logo-text {
    color: #3d312b;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #781f2d !important;
}

/* === Section Styles === */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #781f2d;
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 1.5px;
    background-color: #781f2d;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.1;
    color: #3d312b;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #7d6559;
}

/* === Quick Info === */
.quick-info-item {
    transition: background-color 0.3s ease;
}

.quick-info-item:hover {
    background-color: #fdf0f1;
}

/* === Menu Tabs === */
.menu-tab {
    background: transparent;
    border: 1.5px solid #e8ddd7;
    color: #9c8274;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: #f0a5ad;
    color: #781f2d;
}

.menu-tab.active {
    background-color: #781f2d;
    border-color: #781f2d;
    color: #ffffff;
}

.menu-tab.active:hover {
    background-color: #6b1a26;
    border-color: #6b1a26;
    color: #ffffff;
}

/* === Menu Items === */
.menu-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #f4efec;
}

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

/* === Gallery === */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 49, 43, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* === Testimonial === */
.testimonial-dot {
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: #781f2d;
    transform: scale(1.2);
}

/* === Mobile Menu === */
.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
}

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

/* === Focus Styles === */
:focus-visible {
    outline: 2px solid #781f2d;
    outline-offset: 2px;
}

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

    .quick-info-item {
        border-right: none !important;
        border-bottom: 1px solid #f4efec;
    }

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

/* === Print === */
@media print {
    #site-header,
    .gallery-item,
    .reveal {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
