/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

::selection { background: #f9d0d9; color: #7B2D3B; }

/* ── Navbar ── */
#navbar { transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease; }
#navbar.scrolled { background: rgba(255, 251, 245, 0.95); backdrop-blur: 16px; box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08); }

/* ── Hero Animations ── */
.hero-content > * { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s ease forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

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

/* ── Service Cards ── */
.service-card { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.service-card.visible { opacity: 1; transform: translateY(0); }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { 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; }

/* ── Mobile Menu ── */
.mobile-link { display: block; padding: 8px 0; font-size: 1.125rem; }
#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
#mobile-menu.open { max-height: 400px; }

/* ── Smooth image loading ── */
img { image-rendering: auto; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFFBF5; }
::-webkit-scrollbar-thumb { background: #f2a7b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c04162; }

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .font-serif { line-height: 1.15; }
}

/* ── Focus styles for accessibility ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}
