/* ============================================
   Enchanted Gardens — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(212, 168, 50, 0.3);
    color: #0d1823;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d1823;
}
::-webkit-scrollbar-thumb {
    background: #4168af;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a832;
}

/* ============================================
   Reveal Animations (progressive enhancement)
   Only active when JS runs and user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-up {
        transform: translateY(0);
    }
    .reveal-left {
        transform: translateX(0);
    }
    .reveal-right {
        transform: translateX(0);
    }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
.navbar-scrolled {
    background: rgba(13, 24, 35, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* ============================================
   Button Hover Effects
   ============================================ */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

/* ============================================
   Image Optimization
   ============================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ============================================
   Subtle Parallax for Hero
   ============================================ */
#hero {
    will-change: transform;
}

/* ============================================
   Gold Accent Line
   ============================================ */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4a832, transparent);
}

/* ============================================
   Card Hover Lift
   ============================================ */
.group {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   Smooth Page Transitions
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: background-color 0.4s ease,
                    border-color 0.4s ease,
                    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #hero, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
