/* ==========================================
   Jay Marks Real Estate South
   Custom Styles
   ========================================== */

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

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #c44425;
    color: #fff;
}

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

#navbar.scrolled {
    background-color: rgba(26, 21, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

#navbar.scrolled .nav-logo-sub {
    color: rgba(255, 255, 255, 0.6);
}

#navbar.scrolled .nav-logo-path {
    stroke: #f5c0ab;
}

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

.nav-logo-text {
    color: #fff;
    transition: color 0.4s ease;
}

.nav-logo-sub {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.4s ease;
}

.nav-logo-path {
    stroke: #f5c0ab;
    transition: stroke 0.4s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Hamburger Animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   Hero Section
   ========================================== */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 21, 16, 0.85) 0%, rgba(26, 21, 16, 0.6) 50%, rgba(26, 21, 16, 0.4) 100%);
    z-index: 1;
}

#hero > * {
    position: relative;
    z-index: 2;
}

/* ==========================================
   Scroll Reveal Animations
   (Progressive Enhancement - content visible without JS)
   ========================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal[data-animate="true"] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal[data-animate="true"].revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ==========================================
   Form Styles
   ========================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #b8ada0;
}

select {
    appearance: none;
    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='%239c8e7e' 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;
}

/* ==========================================
   Smooth Image Loading
   ========================================== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ==========================================
   Custom Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2a231c;
}

::-webkit-scrollbar-thumb {
    background: #c44425;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d45732;
}

/* ==========================================
   Focus Visible Styles
   ========================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c44425;
    outline-offset: 2px;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    #navbar,
    #mobile-menu,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
    }
}
