/* ═══════════════════════════════════════
   St Marys Woodworkers — Custom Styles
   ═══════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #020617;
    color: #e2e8f0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Header ── */
#site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#site-header.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.06), 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Card Float (hero stats) ── */
.card-float {
    animation: cardFloat 6s ease-in-out infinite;
}
.card-float:nth-child(2) { animation-delay: 1.5s; }
.card-float:nth-child(3) { animation-delay: 3s; }
.card-float:nth-child(4) { animation-delay: 4.5s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 201, 97, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before {
    opacity: 1;
}

/* ── Gallery ── */
.gallery-item {
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    pointer-events: none;
    transition: border-color 0.4s ease;
}
.gallery-item:hover::after {
    border-color: rgba(245, 201, 97, 0.2);
}

/* ── Process Steps ── */
.process-step {
    position: relative;
}
.process-step::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 201, 97, 0.3), rgba(20, 184, 166, 0.3));
    border-radius: 1px;
}
.process-step:last-child::after {
    display: none;
}

/* ── Testimonial Cards ── */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(245, 201, 97, 0.06);
    pointer-events: none;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Menu ── */
.mobile-nav-link {
    display: block;
}

/* ── Form ── */
select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* ── Selection ── */
::selection {
    background: rgba(245, 201, 97, 0.25);
    color: #f5c961;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }
