/* ===== Custom Styles for Salty Dawg Grooming ===== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(253, 249, 243, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08), 0 4px 20px rgba(6, 78, 59, 0.06);
}

.nav-scrolled .logo-text {
    color: #064E3B !important;
}

/* ===== Floating Cards ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #064E3B, #145A3A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 8rem;
    color: rgba(6, 78, 59, 0.04);
    line-height: 1;
    pointer-events: none;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal hidden state (progressive enhancement - JS adds .revealed) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #145A3A;
}

/* ===== Selection ===== */
::selection {
    background: rgba(6, 78, 59, 0.15);
    color: #064E3B;
}

/* ===== Form Focus States ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.08);
}

/* ===== Button Ripple Effect ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Image Hover ===== */
.rounded-2xl.overflow-hidden img {
    display: block;
}

/* ===== Print Styles ===== */
@media print {
    nav, #contactForm, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
