/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #d95530;
    color: #fdfbf7;
}

/* ── Hero animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal:not(.revealed) {
    opacity: 1;
    transform: translateY(20px);
}

/* ── Mobile menu transitions ── */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open #menu-icon {
    /* Show close icon */
}

/* ── Smooth focus styles ── */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal:not(.revealed) {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-sub,
    .hero-title,
    .hero-desc,
    .hero-cta {
        opacity: 1;
        animation: none;
    }
}

/* ── Mobile menu ── */
@media (max-width: 767px) {
    #mobile-menu {
        opacity: 0;
        pointer-events: none;
    }

    #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    .mobile-link {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    #mobile-menu.open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
    #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
    #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
    #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
    #mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.25s; }
}

/* ── Navbar background on scroll ── */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

nav.scrolled a,
nav.scrolled svg {
    color: inherit;
}

/* ── Form focus underline animation ── */
input:focus,
textarea:focus {
    border-bottom-color: #d95530 !important;
}

/* ── Button hover lift ── */
button,
a {
    transition: all 0.3s ease;
}

/* ── Image hover zoom ── */
.aspect-\[4\/5\] img,
.aspect-\[16\/9\] img {
    transition: transform 0.6s ease;
}

.aspect-\[4\/5\]:hover img,
.aspect-\[16\/9\]:hover img {
    transform: scale(1.02);
}
