/* ============================================
   Aues Home & Repair — Custom Styles
   Classic & Elegant | Emerald + Cream
   ============================================ */

/* --- Reset & 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 {
    background-color: #14532d;
    color: #fdfcf8;
}

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

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation-name: fadeIn;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-fade-in {
        animation: none;
        opacity: 1;
    }
}

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

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

#navbar.scrolled .nav-logo-text {
    color: #14532d;
}

#navbar.scrolled .nav-link {
    color: #14532d;
}

#navbar.scrolled .menu-line {
    background-color: #14532d;
}

/* --- Mobile Menu --- */
.mobile-link {
    font-size: 1.25rem;
    color: #14532d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #16a34a;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* --- Buttons --- */
button, input, select, textarea {
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

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

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

/* --- Form focus styles --- */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

/* --- Print styles --- */
@media print {
    #navbar, #mobile-menu, button {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
