*, *::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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #781f37;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    z-index: 100;
    font-size: 0.875rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(245, 230, 204, 0.6);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(120, 31, 55, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #781f37;
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* Mobile menu */
.mobile-menu {
    box-shadow: inset 0 1px 0 rgba(245, 230, 204, 0.6);
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

.mobile-nav-link {
    display: block;
}

.menu-line {
    display: block;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

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

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

/* ─── Buttons ─── */
.btn-primary {
    background: #781f37;
    color: #fff;
    padding: 0.8125rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid #781f37;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #5c1a2b;
    border-color: #5c1a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 31, 55, 0.3);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #781f37;
    padding: 0.8125rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid #f4a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #fce7eb;
    border-color: #f4a3b8;
    transform: translateY(-2px);
    color: #781f37;
}

/* ─── Labels ─── */
.label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #781f37;
    background: #fce7eb;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
}

.label-light {
    color: #f9cfd7;
    background: rgba(249, 207, 215, 0.15);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    background: linear-gradient(135deg, #fefdfb 0%, #fdf9f3 40%, #ffede6 100%);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255, 237, 230, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(252, 231, 235, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle, #781f37 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-image-wrapper {
    position: relative;
    max-width: 520px;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(120, 31, 55, 0.15), 0 8px 20px rgba(120, 31, 55, 0.1);
    display: block;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.01);
}

.hero-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 30px rgba(120, 31, 55, 0.12);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ─── Sections ─── */
.section-menu,
.section-about,
.section-community,
.section-visit {
    scroll-margin-top: 80px;
}

/* ─── Menu Cards ─── */
.card-menu {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(120, 31, 55, 0.06);
    transition: all 0.35s ease;
    border: 1px solid rgba(245, 230, 204, 0.5);
}

.card-menu:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(120, 31, 55, 0.12);
}

.card-menu-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-menu:hover .card-menu-img img {
    transform: scale(1.06);
}

.card-menu-body {
    padding: 1.5rem;
}

.badge-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #781f37;
    background: #fce7eb;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

/* ─── About ─── */
.about-img-main {
    position: relative;
    z-index: 1;
}

.about-img-float {
    position: absolute;
    bottom: -24px;
    right: -24px;
    z-index: 2;
    box-shadow: 0 16px 40px rgba(120, 31, 55, 0.15);
    border: 4px solid #fff;
    border-radius: 20px;
    overflow: hidden;
}

.about-decor {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 0;
    opacity: 0.6;
}

/* ─── Community ─── */
.community-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.card-community {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.card-community:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.card-community-icon {
    width: 56px;
    height: 56px;
    background: rgba(249, 207, 215, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* ─── CTA ─── */
.cta-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(252, 231, 235, 0.5) 0%, transparent 70%);
    top: -150px;
    right: -100px;
}

.cta-circle-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(249, 207, 215, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
}

/* ─── Footer ─── */
.site-footer {
    scroll-margin-top: 80px;
}

/* ─── Scroll to Top ─── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #781f37;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(120, 31, 55, 0.3);
    z-index: 40;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #5c1a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(120, 31, 55, 0.4);
}

/* ─── Reveal animations (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .card-menu.reveal {
        transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.35s ease;
    }

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

/* When JS is unavailable, all content is visible by default */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .hero {
        padding-top: 5rem;
    }

    .hero-image-wrapper {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .hero-badge {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-img-float {
        display: none;
    }

    .about-decor {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        padding-top: 6rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 5rem;
    }
}
