/* ============================================
   AMC Lifestyle Support — Custom Styles
   Classic & Elegant | Emerald + Cream
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #bbf7d0;
    color: #052e16;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.97);
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
    backdrop-filter: blur(12px);
}

#navbar.scrolled .font-display,
#navbar.scrolled .font-display + span {
    color: #052e16;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #16a34a;
    transition: width 0.3s ease;
}

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

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    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);
}

/* For reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group img {
        transition: none;
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

/* ============================================
   Image aspect ratios
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    header, footer, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
