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

/* ── Navigation ── */
#nav {
    background: rgba(254, 253, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.4s ease;
}
#nav.scrolled {
    box-shadow: 0 1px 30px rgba(0,0,0,0.06);
}

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* ── Menu Toggle ── */
.menu-line { transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-open .menu-line:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ── */
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}
.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}
.hero-btn-primary {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}
.hero-btn-secondary {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}
.hero-image-col {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Section Eyebrow ── */
.section-eyebrow {
    animation: fadeIn 0.6s ease forwards;
}

/* ── Scroll Reveal ── */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Service Cards ── */
.service-card {
    transition: background-color 0.5s ease;
}

/* ── Contact Form ── */
.contact-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(140, 37, 60, 0.25);
}
.contact-btn:active {
    transform: translateY(0);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Selection ── */
::selection {
    background: rgba(140, 37, 60, 0.15);
    color: #5e1a2b;
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid #8c253c;
    outline-offset: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fefdfb; }
::-webkit-scrollbar-thumb { background: #d4c4c8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8c253c; }
