/* ============================================
   Lark's Grooming Station — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 251, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
}

.nav-text {
    transition: color 0.5s ease;
}

.nav-subtext {
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-text {
    color: #722F37;
}

#navbar.scrolled .nav-subtext {
    color: #b52d4f;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: #c9a84c;
    transition: width 0.3s ease, left 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

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

.menu-line {
    transition: transform 0.4s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-line:nth-child(1) {
    transform-origin: top;
}

.menu-line:nth-child(3) {
    transform-origin: bottom;
}

body.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

.mobile-nav-link {
    position: relative;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   About Section
   ============================================ */
.about-image {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-reveal:nth-child(2) { transition-delay: 0.1s; }
.about-reveal:nth-child(3) { transition-delay: 0.2s; }
.about-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   Gallery
   ============================================ */
.gallery-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial-reveal {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-reveal.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-reveal {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-info-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-form-reveal {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-form-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   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;
    }
    
    .service-card,
    .about-image,
    .about-reveal,
    .gallery-reveal,
    .testimonial-reveal,
    .contact-reveal,
    .contact-info-reveal,
    .contact-form-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title::after {
        content: 'Elevated';
        display: block;
        font-style: italic;
        color: #c9a84c;
    }
}

@media (min-width: 768px) {
    .hero-title br {
        display: block;
    }
    
    .hero-title::after {
        content: '';
        display: block;
    }
}

/* ============================================
   Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background-color: rgba(114, 47, 55, 0.15);
    color: #4a1e28;
}
