/* ───────────────────────────────────────────────────────────────────────────
   Ready Set Glow – Custom Styles
   Classic & Elegant | Forest Green + Off-White | Playfair Display + Lato
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Smooth scrolling ── */
html {
    scroll-behavior: smooth;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6ef;
}
::-webkit-scrollbar-thumb {
    background: #85b085;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5c8f5c;
}

/* ── Selection color ── */
::selection {
    background: #d8e8d8;
    color: #1e3420;
}

/* ── Navbar transition states ── */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 52, 32, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1e3420 !important;
}

#navbar.scrolled .nav-link:hover {
    color: #3d6b3d !important;
}

#navbar.scrolled a {
    color: #1e3420 !important;
}

/* ── Mobile menu active state ── */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.active .mobile-nav-link {
    animation: fadeSlideIn 0.4s ease forwards;
}

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

/* ── Service cards ── */
.service-card {
    border: 1px solid rgba(133, 176, 133, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ── Gallery items ── */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* ── Testimonial cards ── */
.testimonial-card {
    border: 1px solid rgba(133, 176, 133, 0.12);
}

/* ── Scroll reveal (progressive enhancement — only when JS runs) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .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; }
}

/* ── Keyframes ── */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile menu link animation ── */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(16px);
}

/* ── Contact form ── */
.contact-input {
    border: 1px solid rgba(133, 176, 133, 0.3);
    background: rgba(253, 252, 250, 0.8);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: #5c8f5c;
    box-shadow: 0 0 0 3px rgba(92, 143, 92, 0.1);
}

.contact-input::placeholder {
    color: #85b085;
}

/* ── Success message ── */
.success-message {
    animation: fadeSlideIn 0.5s ease forwards;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
