/* ========================================
   Omaira Rodriguez — Real Estate
   Classic & Elegant · Forest Green + Cream
   ======================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #4a7a35;
    color: #faf9f6;
}

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

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

/* ---- Scroll Reveal ---- */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll[data-reveal="hidden"] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ---- Navigation ---- */
.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 {
    width: 100%;
}

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

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

/* ---- 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 12 12'%3E%3Cpath fill='%234a7a35' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-size: 12px;
}

select:focus {
    outline: none;
    border-color: #4a7a35;
    box-shadow: 0 0 0 1px #4a7a35;
}

/* ---- Input Focus ---- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4a7a35;
    box-shadow: 0 0 0 1px #4a7a35;
}

/* ---- Button Hover Glow ---- */
button[type="submit"]:hover {
    box-shadow: 0 4px 20px rgba(44, 77, 33, 0.3);
}

/* ---- Image Hover ---- */
.group:hover img {
    transform: scale(1.05);
}

/* ---- Gold Accent Line ---- */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, transparent);
}

/* ---- Card Shadow ---- */
.card-shadow {
    box-shadow: 0 4px 24px rgba(15, 26, 11, 0.08);
}

.card-shadow:hover {
    box-shadow: 0 8px 40px rgba(15, 26, 11, 0.12);
}

/* ---- Smooth Scroll Offset ---- */
section[id] {
    scroll-margin-top: 80px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-on-scroll[data-reveal="hidden"] {
        opacity: 1;
        transform: none;
    }
}

/* ---- Print ---- */
@media print {
    header, footer, #contact-form, .reveal-on-scroll {
        display: none;
    }

    body {
        color: #1c3315;
        background: white;
    }
}
