/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::selection { background: #d4a017; color: #1e3a5f; }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    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; }

@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(32px); }
    .reveal.revealed { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #eabb38;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-link:last-child { border-bottom: none; }

/* ── Hero Image Float ── */
.hero-float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── Cards ── */
.menu-card {
    position: relative;
    overflow: hidden;
}
.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.menu-card:hover::before { opacity: 1; }

/* ── Process Steps ── */
.step-line {
    position: absolute;
    top: 48px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: repeating-linear-gradient(to right, #f5d89a 0px, #f5d89a 8px, transparent 8px, transparent 16px);
}

/* ── Gallery ── */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0);
    transition: background 0.4s ease;
    border-radius: inherit;
}
.gallery-item:hover::after {
    background: rgba(30, 58, 95, 0.15);
}

/* ── Back to Top ── */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Form ── */
input:focus, textarea:focus {
    outline: none;
}
input::placeholder, textarea::placeholder {
    color: #a8a8a8;
}

/* ── Smooth image loading ── */
img {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}
