/* ============================================
   Otis Brown Insurance Agency — 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: #1B5E20;
    color: #FAFAF6;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27,94,32,0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(27,94,32,0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 120px 120px;
    border-color: transparent transparent rgba(27,94,32,0.05) transparent;
    top: 15%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-square--1 {
    width: 80px;
    height: 80px;
    background: rgba(27,94,32,0.04);
    border-radius: 16px;
    top: 30%;
    right: 8%;
    transform: rotate(45deg);
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    background-image: radial-gradient(circle, rgba(27,94,32,0.12) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
}

/* ============================================
   Floating Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s 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; }

/* ============================================
   Navbar Scroll State
   ============================================ */
.nav-scrolled {
    background: rgba(250, 250, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

.nav-scrolled .font-serif {
    color: #0D3310 !important;
}

.nav-scrolled .tracking-widest {
    color: #1B5E20 !important;
}

/* ============================================
   Service Card Tilt Effect (subtle)
   ============================================ */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ============================================
   Form Styles
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B5E20' stroke-width='2.5' 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;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #1B5E20;
    padding-left: 0.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 250px;
        height: 250px;
    }

    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }

    .geo-triangle {
        border-width: 0 0 60px 60px;
    }

    .geo-square--1 {
        width: 40px;
        height: 40px;
    }

    .geo-dots {
        width: 60px;
        height: 60px;
        background-size: 12px 12px;
    }
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1B5E20;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #contact, footer { display: none; }
    body { color: #000; background: #fff; }
    .geo-circle, .geo-triangle, .geo-square, .geo-dots { display: none; }
}
