/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ── Utility ─────────────────────────────────────── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a1681c;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: #e8541e;
}

/* ── Navigation ──────────────────────────────────── */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
#nav.scrolled {
    background: rgba(254, 253, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(58, 34, 24, 0.08);
}
.nav-text { transition: color 0.4s ease; }
#nav.scrolled .nav-text { color: #3a2218; }

/* ── Mobile menu ─────────────────────────────────── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.menu-line { transition: all 0.3s ease; }
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 2rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Hero ────────────────────────────────────────── */
.hero-eyebrow {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}
#hero h1 {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}
#hero p {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}
#hero a,
#hero .mt-16 {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}
#hero .mt-16 { animation-delay: 1s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Offer cards ─────────────────────────────────── */
.offer-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
.offer-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.offer-card:nth-child(2) { transition-delay: 0.15s; }
.offer-card:nth-child(3) { transition-delay: 0.3s; }

/* ── Gallery items ───────────────────────────────── */
.gallery-item {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ── Testimonial cards ───────────────────────────── */
.testimonial-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Scroll reveal (below-the-fold only) ─────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fallback: always visible if JS is disabled */
.no-js .reveal,
.no-js .offer-card,
.no-js .gallery-item,
.no-js .testimonial-card {
    opacity: 1;
    transform: none;
}

/* ── Smooth anchor offset ────────────────────────── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Focus visible ───────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e8541e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ────────────────────────────────────── */
::selection {
    background: #e8541e;
    color: #fefdf9;
}
