/* ============================================
   Snodgrass Real Estate Consulting
   Custom Styles — Classic & Elegant
   ============================================ */

/* ---- 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: #C9A84C;
    color: #0F1C3F;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F1C3F;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e3b344;
}

/* ---- Navbar ---- */
.nav-fixed {
    background: transparent;
    color: #ffffff;
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.nav-fixed.scrolled {
    background: rgba(15, 28, 63, 0.97);
    color: #ffffff;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
}

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

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

.nav-fixed .nav-link {
    color: #ffffff;
}

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

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* ---- Reveal Animations (Progressive Enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* When JS is active, add the initial hidden state via JS */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .js-enabled .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Hero Asymmetric Layout ---- */
#hero .lg\:flex {
    align-items: flex-end;
}

/* ---- Custom Select ---- */
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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%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;
}

/* ---- Testimonial Quote Mark ---- */
.testimonial-quote {
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(201, 168, 76, 0.1);
    pointer-events: none;
    user-select: none;
}

/* ---- Gold Divider Accent ---- */
.gold-divider {
    display: inline-block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #C9A84C, #e3b344);
}

/* ---- Image Hover Effect ---- */
.overflow-hidden img {
    transition: transform 0.6s ease;
}

.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* ---- Form Focus States ---- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ---- Button Ripple Effect ---- */
button, a[role="button"] {
    position: relative;
    overflow: hidden;
}

/* ---- Print Styles ---- */
@media print {
    .nav-fixed,
    #menu-btn,
    #mobile-menu {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-navy-800,
    .bg-navy-950 {
        background: #fff !important;
        color: #000 !important;
    }
}
