/* ============================================
   Lighthouse Management, LLC — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* Selection */
::selection {
    background: #0f5e3a;
    color: #fdfcfa;
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 94, 58, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(111, 191, 152, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 94, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: -100px;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(15, 94, 58, 0.05);
    border: 2px solid rgba(15, 94, 58, 0.1);
    border-radius: 16px;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(111, 191, 152, 0.12);
    top: 35%;
    left: 5%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-diamond-1 {
    width: 60px;
    height: 60px;
    background: rgba(15, 94, 58, 0.08);
    border-radius: 8px;
    top: 30%;
    left: 15%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-dots {
    background-image: radial-gradient(circle, rgba(15, 94, 58, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 15%;
    opacity: 0.6;
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   Hero Badge Animation
   ============================================ */
.hero-badge {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

/* Fallback: always visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 31, 19, 0.08);
}

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

/* ============================================
   Custom Select Styling
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f5e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============================================
   Focus Visible
   ============================================ */
:focus-visible {
    outline: 2px solid #0f5e3a;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

@media (min-width: 768px) {
    /* Smooth scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #faf8f4;
    }
    ::-webkit-scrollbar-thumb {
        background: #a8d8c0;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #6fbf98;
    }
}
