/* ============================================
   Gail Strickrodt Realtor — Custom Styles
   Bold Editorial | Charcoal + Coral
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::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: rgba(232, 93, 74, 0.3);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #3D3D3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E85D4A;
}

/* ---------- Navbar ---------- */
#navbar {
    backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu lines animation */
#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuToggle.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Float Cards ---------- */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

.float-card-1 {
    animation: float1 6s ease-in-out infinite;
}

.float-card-2 {
    animation: float2 5s ease-in-out infinite;
    animation-delay: 1s;
}

.float-card-3 {
    animation: float3 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* ---------- Scroll Indicator ---------- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- Section Reveals (Progressive Enhancement) ---------- */
.js-enabled .section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default state: fully visible for non-JS */
.section-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* When JS is enabled, hide then reveal */
.js-enabled .section-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.js-enabled .section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.js-enabled .section-reveal:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .section-reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .section-reveal:nth-child(3) { transition-delay: 0.15s; }
.js-enabled .section-reveal:nth-child(4) { transition-delay: 0.2s; }
.js-enabled .section-reveal:nth-child(5) { transition-delay: 0.25s; }
.js-enabled .section-reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- 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; }
    .js-enabled .section-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Selection ---------- */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ---------- 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='%236B7280' 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;
}

/* ---------- Print ---------- */
@media print {
    nav, #mobileMenu, .scroll-line { display: none; }
    body { background: white; color: black; }
    .bg-charcoal-900, .bg-charcoal-800 { background: white !important; }
}
