/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header scroll state ── */
#header {
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
#header.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* ── Nav links ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Mobile menu ── */
.menu-line { transition: transform 0.3s ease, opacity 0.3s ease; }
#mobile-menu-btn.active .menu-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#mobile-menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
#mobile-menu-btn.active .menu-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav-link { border-radius: 8px; padding-left: 8px; }
.mobile-nav-link:hover { background: rgba(123, 45, 59, 0.05); }

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%        { transform: translate(18px, -20px) scale(1.05); }
    66%        { transform: translate(-12px, 10px) scale(0.97); }
}
@keyframes floatDelay {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%        { transform: translate(-20px, 16px) scale(1.03); }
    66%        { transform: translate(14px, -14px) scale(0.98); }
}
@keyframes floatSlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%        { transform: translate(-48%, -52%) scale(1.06); }
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

.animate-fade-in-up   { animation: fadeInUp 0.7s ease forwards; }
.animate-float        { animation: float 8s ease-in-out infinite; }
.animate-float-delay  { animation: floatDelay 10s ease-in-out infinite; }
.animate-float-slow   { animation: floatSlow 12s ease-in-out infinite; }
.animate-scroll-line  { animation: scrollLine 2s ease-in-out infinite; }

/* ── Scroll reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ── Smooth image loading ── */
img { background-color: rgba(123, 45, 59, 0.05); }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf2f4; }
::-webkit-scrollbar-thumb { background: #e995a8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c24056; }

/* ── Select dropdown fix ── */
select option {
    padding: 8px 12px;
    font-size: 14px;
}
