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

body {
    overflow-x: hidden;
}

/* ── Navbar scroll state ── */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled .font-display {
    color: #7B2D3B;
}

/* ── Hero decorative blobs ── */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 184, 184, 0.6) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.15) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.hero-blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(249, 216, 216, 0.7) 0%, transparent 70%);
    top: 40%;
    left: 45%;
    animation: blobFloat 6s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Mobile nav links ── */
.mobile-nav-link {
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mobile-nav-link:hover {
    background: rgba(123, 45, 59, 0.05);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFCFA;
}
::-webkit-scrollbar-thumb {
    background: #E8C0C7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D99A9F;
}

/* ── Selection color ── */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #3E171F;
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth image loading ── */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}
