/* ============================================
   HOMES BY O'BRIAN — Custom Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --burgundy-800: #7B2D3B;
    --burgundy-950: #3a0f17;
    --blush-300: #F4B09A;
    --cream: #FDF8F5;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* --- Hero Geometric Shapes --- */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 176, 154, 0.15) 0%, transparent 70%);
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 15%;
    left: 10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.08) 0%, transparent 70%);
    animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 25%;
    left: 3%;
    width: 80px;
    height: 80px;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: float-slow 6s ease-in-out infinite;
}

.geo-triangle-1 {
    bottom: 30%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(244, 176, 154, 0.12);
    animation: float-slow 7s ease-in-out infinite reverse;
}

.geo-dots {
    top: 20%;
    left: 45%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.1) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* --- Scroll Indicator --- */
.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--burgundy-800));
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { top: -40%; }
    100% { top: 120%; }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.25rem;
    border: 2px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    border-color: rgba(123, 45, 59, 0.2);
}

/* --- Neighborhood Cards --- */
.neighborhood-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.neighborhood-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(58, 15, 23, 0.25);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(123, 45, 59, 0.1);
}

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Mobile Menu --- */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: rgba(123, 45, 59, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 45, 59, 0.5);
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--burgundy-800);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: rgba(123, 45, 59, 0.15);
    color: var(--burgundy-950);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero-geo {
        display: none;
    }
    
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .scroll-indicator {
        display: none;
    }
}
