/* ========================================
   Team Perry — Custom Styles
   Bold Editorial Real Estate Website
======================================= */

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

body {
    overflow-x: hidden;
}

::selection {
    background: #4ade80;
    color: #0a1628;
}

/* ========================================
   Navigation
======================================= */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu:not(.open) {
    transform: translateX(100%);
}

.menu-line:last-child {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:last-child {
    width: 24px;
    margin-left: 0;
}

.mobile-menu-link {
    opacity: 1;
    transform: none;
}

/* ========================================
   Hero Section
======================================= */
.hero-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.hero-headline {
    opacity: 1;
    transform: translateY(0);
}

.hero-subheadline {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    opacity: 1;
    transform: translateY(0);
}

.hero-scroll {
    opacity: 1;
}

/* ========================================
   Stats Section
======================================= */
.stat-item {
    opacity: 1;
}

.stat-item::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #4ade80;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ========================================
   Services Section
======================================= */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   About Section
======================================= */
.about-image {
    opacity: 1;
}

.about-content {
    opacity: 1;
}

/* ========================================
   Testimonials
======================================= */
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Contact Form
======================================= */
.contact-info {
    opacity: 1;
}

.contact-form-wrapper {
    opacity: 1;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — content is
   visible by default; JS adds animation.
======================================= */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Utility & Reset
======================================= */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}
