/* ========================================
   M Boutique — Custom Styles
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Skip Link */
.skip-link {
    background: #1a3c2a;
    color: #faf8f0;
    padding: 1rem 1.5rem;
    z-index: 9999;
    font-size: 0.875rem;
    text-decoration: none;
}

.skip-link:focus {
    outline: 2px solid #5ec98d;
    outline-offset: 2px;
}

/* Navbar */
#navbar {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.98);
    box-shadow: 0 1px 20px rgba(26, 60, 42, 0.08);
}

.nav-logo-text {
    color: #1a3c2a !important;
}

#navbar.scrolled .nav-logo-text {
    color: #1a3c2a !important;
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .mobile-nav-link {
    animation: fadeUp 0.5s ease-out forwards;
}

#mobile-menu.active .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }

.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 6rem;
}

/* Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Collection Cards */
.collection-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.collection-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Cards */
.service-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Form Styles */
.form-input {
    width: 100%;
}

.form-input:focus {
    border-bottom-color: #146d40 !important;
}

.form-input::placeholder {
    color: rgba(26, 60, 42, 0.25);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #faf8f0 inset !important;
    -webkit-text-fill-color: #1a3c2a !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Back to Top */
.back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    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);
}

/* Smooth Scroll Padding */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection */
::selection {
    background: rgba(20, 109, 64, 0.15);
    color: #1a3c2a;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #146d40;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .marquee-content {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    #navbar, #mobile-menu, .back-to-top, .hero-scroll {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* Ultra Wide */
@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
}
