/* ============================================
   Riverside Gardens — Custom Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF6F0;
}
::-webkit-scrollbar-thumb {
    background: #b82844;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 194, 194, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 194, 194, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 194, 194, 0.2) 0%, transparent 70%);
    top: 10%;
    right: -150px;
    animation: float-slow 18s ease-in-out infinite;
}

.circle-4 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 194, 194, 0.25) 0%, transparent 70%);
    bottom: -80px;
    left: 10%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid rgba(244, 194, 194, 0.2);
    top: 30%;
    left: 5%;
    transform: rotate(-15deg);
    animation: float-slow 22s ease-in-out infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(244, 194, 194, 0.15);
    top: 20%;
    right: 15%;
    transform: rotate(20deg);
    animation: float-slow 16s ease-in-out infinite reverse;
}

.rect-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(244, 194, 194, 0.2);
    border-radius: 24px;
    bottom: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: float-slow 25s ease-in-out infinite;
}

.rect-2 {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(244, 194, 194, 0.15);
    border-radius: 20px;
    top: 40%;
    left: 5%;
    transform: rotate(30deg);
    animation: float-slow 20s ease-in-out infinite reverse;
}

.dot-pattern {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(244, 194, 194, 0.3) 1px, transparent 1px);
    background-size: 16px 16px;
    bottom: 15%;
    right: 20%;
    animation: float-slow 14s ease-in-out infinite;
}

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

.triangle-1 { --rotation: -15deg; }
.triangle-2 { --rotation: 20deg; }
.rect-1 { --rotation: 45deg; }
.rect-2 { --rotation: 30deg; }

/* ============================================
   Navigation
   ============================================ */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F4C2C2;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 246, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-scrolled .nav-link {
    color: #5e1f29;
}
.nav-scrolled .nav-link::after {
    background: #b82844;
}
.nav-scrolled .font-display {
    color: #7B2D3B !important;
}

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

/* ============================================
   Hero Scroll Indicator
   ============================================ */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce-down 2s ease-in-out infinite;
}

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    perspective: 1000px;
}

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

/* ============================================
   Neighborhood Cards
   ============================================ */
.neighborhood-card {
    transition: transform 0.4s ease;
}
.neighborhood-card:hover {
    transform: translateY(-6px);
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Scroll Reveal Animations
   Only applied when JS is available and
   prefers-reduced-motion is not set to reduce
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .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; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.08;
    }
    .circle-1 { width: 300px; height: 300px; }
    .circle-2 { width: 200px; height: 200px; }
    .circle-3 { width: 250px; height: 250px; }
    .circle-4 { width: 150px; height: 150px; }
    .triangle-1 { border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 100px solid rgba(244,194,194,0.15); }
    .triangle-2 { border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 70px solid rgba(244,194,194,0.12); }
    .rect-1 { width: 100px; height: 100px; }
    .rect-2 { width: 80px; height: 80px; }
}
