/* ============================================
   Boyd & Steenstra Homes — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    background-color: #0D1B2A;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Selection */
::selection {
    background: #4FD4C2;
    color: #050D17;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D1B2A;
}
::-webkit-scrollbar-thumb {
    background: #4FD4C2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7EE8D5;
}

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

.shape-circle-1 {
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(79, 212, 194, 0.12);
    animation: float 8s ease-in-out infinite;
}

.shape-rect-1 {
    top: 20%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(79, 212, 194, 0.06);
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-triangle {
    bottom: 15%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(79, 212, 194, 0.08);
    animation: float 10s ease-in-out infinite;
}

.shape-dots {
    top: 35%;
    right: 15%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(79, 212, 194, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.6;
}

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

.shape-triangle {
    animation-name: floatTriangle;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(5, 13, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(5, 13, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Mobile Nav
   ============================================ */
#mobileNav.open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
.reveal {
    /* Default: always visible — no JS required */
    opacity: 1;
    transform: none;
    transition: none;
}

/* When JS is enabled and user prefers motion, add scroll-reveal */
.js-enabled.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.js-enabled .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .js-enabled.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #0D1B2A;
    color: #ffffff;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }
    .shape-triangle {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\\:col-span-7 {
        padding-right: 2rem;
    }
}
