/* ===== HILLS AT SHARYLAND — Custom Styles ===== */

/* Base reset refinements */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(91, 189, 150, 0.3);
    color: #ffffff;
}

/* ===== NAVBAR SCROLL BEHAVIOR ===== */
#navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(6, 14, 30, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 189, 150, 0.1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    transform: translateX(0);
}

/* ===== HERO DECORATIVE ELEMENTS ===== */
.hero-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(91, 189, 150, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 189, 150, 0.3), transparent);
}

/* ===== CARD SHADOWS ===== */
.card-lift {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== BUTTON FOCUS STATES ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(91, 189, 150, 0.6);
    outline-offset: 2px;
}

/* ===== INPUT AUTO-FILL ===== */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a1831 inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ===== IMAGE LAZY LOAD FALLBACK ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

    .float-slow,
    .float-medium {
        animation: none;
    }

    .card-lift:hover {
        transform: none;
    }

    .accent-line {
        width: 80px;
    }
}

/* ===== TABLET ===== */
@media (max-width: 768px) {
    .hero-scene {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 360px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1280px) {
    .hero-scene {
        min-height: 100vh;
        min-height: 100dvh;
    }
}
