/* ============================================
   Magic Shoe & Watch Repair — Custom Styles
   ============================================ */

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5E2230;
    --blush: #F5E6E0;
    --cream: #FDF8F6;
    --ink: #2A1B1B;
    --ink-light: rgba(42, 27, 27, 0.6);
    --ink-muted: rgba(42, 27, 27, 0.4);
}

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

body {
    background-color: var(--cream);
    color: var(--ink);
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--burgundy)/30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy)/50;
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.1);
}

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

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Hero animations */
.hero-tagline {
    animation: slideUp 0.8s ease forwards 0.2s;
}
.hero-headline {
    animation: slideUp 0.8s ease forwards 0.4s;
}
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.6s;
}
.hero-ctas {
    animation: slideUp 0.8s ease forwards 0.8s;
}
.hero-stats {
    animation: slideUp 0.8s ease forwards 1s;
}
.hero-scroll {
    animation: fadeIn 1s ease forwards 1.4s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s 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; }

/* Image hover effects */
.group img {
    will-change: transform;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }
    @supports (font-size: clamp(2.5rem, 8vw, 4rem)) {
        .hero-headline {
            font-size: clamp(2.5rem, 8vw, 4rem);
        }
    }
}

/* Print styles */
@media print {
    nav, .hero-scroll, #mobileMenu { display: none; }
    body { background: white; }
    section { padding: 20px 0; }
}
