/* ========================================
   Rockstar Nails by Jamie — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ── Custom Properties ── */
:root {
    --nav-bg: rgba(254, 253, 248, 0.85);
    --nav-text: #1a2e1a;
    --nav-accent: #578050;
    --nav-scrolled-bg: rgba(254, 253, 248, 0.97);
    --nav-scrolled-shadow: 0 1px 20px rgba(87, 128, 80, 0.08);
}

/* ── Navbar ── */
.nav-fixed {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: var(--nav-scrolled-bg);
    border-bottom-color: rgba(87, 128, 80, 0.1);
    box-shadow: var(--nav-scrolled-shadow);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #578050;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Buttons ── */
.btn-primary {
    background: #578050;
    color: #fefdf8;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #41613c;
}

.btn-secondary {
    transition: all 0.3s ease;
}

/* ── Input Fields ── */
.input-field {
    border: 1.5px solid #e0e8dc;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #1a2e1a;
    background: #fefdf8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: inherit;
    width: 100%;
}

.input-field::placeholder {
    color: #a0b09e;
}

.input-field:focus {
    border-color: #769f6e;
    box-shadow: 0 0 0 3px rgba(118, 159, 110, 0.15);
}

/* ── Hero Badge ── */
.hero-badge {
    animation: badgeIn 0.8s ease-out both;
}

@keyframes badgeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Animations ── */
#hero .lg\\:col-span-7 {
    animation: heroTextIn 0.9s ease-out 0.2s both;
}

#hero .lg\\:col-span-5 {
    animation: heroImageIn 0.9s ease-out 0.4s both;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateX(30px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* ── Service Cards ── */
.service-card {
    transform: translateY(0);
}

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

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 46, 26, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.4s ease, background 0.4s ease;
}

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

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

.mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 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; }

/* ── Scroll Reveal (progressive enhancement) ── */
@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);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Selection ── */
::selection {
    background: rgba(87, 128, 80, 0.2);
    color: #1a2e1a;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf9ec;
}

::-webkit-scrollbar-thumb {
    background: #c5d9c0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9bbf96;
}
