/* ============================================
   Barber Shop Salon — Custom Styles
   Burgundy + Blush | Fresh & Airy
   ============================================ */

/* --- Custom Font Imports (handled in HTML) --- */

/* --- Custom Properties --- */
:root {
    --color-burgundy-950: #4c0519;
    --color-burgundy-900: #7c2d12;
    --color-burgundy-800: #9f1239;
    --color-burgundy-700: #be185d;
    --color-burgundy-600: #db2777;
    --color-burgundy-500: #e11d48;
    --color-blush-50: #fff1f2;
    --color-blush-100: #ffe4e6;
    --color-blush-200: #fecdd3;
    --color-blush-300: #fda4af;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-400: #a8a29e;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-700: #44403c;
    --color-stone-800: #292524;
    --color-stone-950: #0c0a09;
}

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--color-stone-800);
    background-color: var(--color-stone-50);
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-dm-sans {
    font-family: 'DM Sans', system-ui, sans-serif;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(124, 45, 18, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-burgundy-700);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-link {
    border-radius: 0.75rem;
}

#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* --- Hero Blobs --- */
.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.hero-blob:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-blob:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* --- Service Cards --- */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.5s ease, border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(124, 45, 18, 0.08);
}

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

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

.gallery-item img {
    transition: transform 0.7s ease;
}

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

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Back to Top --- */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    box-shadow: 0 8px 25px rgba(124, 45, 18, 0.3);
}

/* --- Selection --- */
::selection {
    background: var(--color-blush-200);
    color: var(--color-burgundy-900);
}

/* --- Focus styles --- */
:focus-visible {
    outline: 2px solid var(--color-burgundy-700);
    outline-offset: 2px;
}

/* --- Input autofill --- */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fafaf9 inset !important;
    -webkit-text-fill-color: #292524 !important;
}

/* --- Print --- */
@media print {
    #navbar, #backToTop, .hero-blob { display: none; }
    body { background: white; }
}
