/* ============================================
   The Slagle Team — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #071a26;
}
::-webkit-scrollbar-thumb {
    background: #d49a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e4b23f;
}

/* ---- Selection ---- */
::selection {
    background: #d49a2a;
    color: #071a26;
}

/* ---- Navbar Transition States ---- */
.nav-link {
    color: rgba(255, 255, 255, 0.7);
}
.nav-link:hover {
    color: #d49a2a;
}

/* Solid navbar state */
.navbar-scrolled .nav-link {
    color: rgba(7, 26, 38, 0.7);
}
.navbar-scrolled .nav-link:hover {
    color: #b87d1c;
}

.navbar-scrolled .nav-logo-text {
    color: #071a26 !important;
}
.navbar-scrolled .nav-logo-sub {
    color: rgba(7, 26, 38, 0.5) !important;
}

/* Transparent navbar state */
.nav-logo-text {
    color: #ffffff;
}
.nav-logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Mobile Menu ---- */
.mobile-menu-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}
.mobile-menu-link:hover {
    color: #d49a2a;
}

/* ---- Hamburger Animation ---- */
.menu-line {
    background: currentColor;
    transition: all 0.3s ease;
}

#menuBtn.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.open .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Scroll Reveal Animations ---- */
.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);
}

/* These are progressive enhancement — content is visible by default */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(30px);
        opacity: 0;
    }
    .reveal-left {
        transform: translateX(-30px);
        opacity: 0;
    }
    .reveal-right {
        transform: translateX(30px);
        opacity: 0;
    }
}

/* ---- Button Focus States ---- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d49a2a;
    outline-offset: 2px;
}

/* ---- Form Select Arrow ---- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232d5a6e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ---- Image Loading ---- */
img {
    display: block;
    max-width: 100%;
}

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