/* ============================================
   Zack Bobo Real Estate — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

/* ── Base & Typography ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(58, 157, 110, 0.2);
    color: #1e3a5f;
}

/* ── Navigation ── */
#main-header {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#main-header.scrolled {
    background: rgba(253, 252, 248, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(30, 58, 95, 0.08);
}

.nav-text-color {
    color: #1e3a5f;
}

#main-header.scrolled .nav-text-color {
    color: #1e3a5f;
}

#hero ~ * .nav-text-color,
#main-header:not(.scrolled) .nav-text-color {
    color: #ffffff;
}

#main-header:not(.scrolled) .w-9 {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#main-header:not(.scrolled) .w-9 svg {
    stroke: #ffffff !important;
}

#main-header:not(.scrolled) .hamburger span {
    background: #ffffff !important;
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* ── Hero ── */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #fdfcf8, transparent);
    pointer-events: none;
    z-index: 1;
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a5f, #3a9d6e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(58, 157, 110, 0.07);
    pointer-events: none;
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.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 Focus States ── */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ── Button Hover Glow ── */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* ── 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;
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    #hero::after {
        height: 60px;
    }

    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        padding: 1.5rem !important;
    }
}

/* ── Print Styles ── */
@media print {
    #main-header,
    #mobile-menu-btn {
        display: none;
    }

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

    #hero {
        min-height: auto;
        padding: 2rem 0;
    }

    #hero img {
        display: none;
    }
}
