/* ============================================
   In Style Barber Shop — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- Hero Zoom Animation ---- */
@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .service-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, background 0.5s ease;
    }

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

    .gallery-item {
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .gallery-item.revealed {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---- Navbar Scroll State ---- */
.nav-scrolled {
    background: rgba(8, 8, 8, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-scrolled .menu-line {
    background: #e0e0e0;
}

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

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

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #616161;
}

/* ---- Selection Color ---- */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #f5f5f5;
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ---- Button Micro-interactions ---- */
a[href="tel:17722052953"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="tel:17722052953"]::after,
button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

a[href="tel:17722052953"]:active::after,
button[type="submit"]:active::after {
    width: 300px;
    height: 300px;
}

/* ---- Form Styles ---- */
input, textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f5f5f5 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

input:focus, textarea:focus {
    border-color: rgba(212, 168, 83, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1) !important;
    outline: none !important;
}

input::placeholder, textarea::placeholder {
    color: #757575 !important;
}

/* ---- Map Invert Fix ---- */
iframe[src*="google.com/maps"] {
    border-radius: 0;
}

/* ---- Utility ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---- Mobile Menu Animation ---- */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-open {
    animation: slideDown 0.4s ease forwards;
}

/* ---- Gold Shimmer on Hover ---- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-gold-shimmer:hover {
    background: linear-gradient(90deg, #d4a853, #e8c97a, #d4a853);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}
