/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF2F2; }
::-webkit-scrollbar-thumb { background: #E8979E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C04A58; }

/* ── Selection ── */
::selection { background: #F2BFC6; color: #3D141B; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(253, 252, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C04A58;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    translate: 0;
    opacity: 1;
    pointer-events: all;
}
#mobileMenu.closed {
    translate: translateY(-10px);
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

.mobile-link {
    position: relative;
    display: block;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C04A58;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* ── Marquee ── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ── Reveal Animations ── */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
    .animate-marquee { animation: none; }
    img:hover { transform: none; }
}

/* JS-gated progressive enhancement */
.js-loaded .reveal-up,
.js-loaded .reveal-right {
    /* Default state remains visible — JS may add hidden state for scroll-triggered animation */
}

/* ── Menu Tabs ── */
.menu-tab {
    color: #7B2D3B;
    background: transparent;
    border: none;
    cursor: pointer;
}
.menu-tab.active {
    background: #7B2D3B;
    color: #FFFCFB;
    box-shadow: 0 4px 12px rgba(123, 45, 59, 0.25);
}
.menu-tab:not(.active):hover {
    background: #FDF2F2;
}

/* ── Button Focus ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #C04A58;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth image transitions ── */
img {
    transition: filter 0.3s ease;
}

/* ── Card hover lift ── */
.group:hover .rounded-xl {
    transform: scale(1.05);
}

/* ── Floating card animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.reveal-up:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

/* ── Hero decorative shapes ── */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}
#hero .rounded-full.blur-3xl {
    animation: pulse-slow 8s ease-in-out infinite;
}
#hero .rounded-full.blur-3xl:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
#hero .rounded-full.blur-3xl:nth-child(3) {
    animation-delay: -5s;
    animation-duration: 12s;
}

/* ── Image hover zoom ── */
.rounded-3xl.overflow-hidden,
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}
.rounded-3xl.overflow-hidden img,
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.rounded-3xl.overflow-hidden:hover img,
.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* ── Custom cursor for interactive elements ── */
a[href^="tel:"], button {
    cursor: pointer;
}

/* ── Print styles ── */
@media print {
    #navbar, .animate-marquee, #menuBtn { display: none; }
    body { background: white; color: black; }
    a[href^="tel:"]::after { content: attr(href); }
}
