/* ========================================
   Dr. Jeffrey Owen — Medical Practice
   Custom Styles
   ======================================== */

/* Base */
html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.07;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #527f3a 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #74a056 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #3d612b;
    border-radius: 20px;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #9abb82;
    top: 60%;
    left: 3%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #c5d9b0 0%, transparent 70%);
    border-radius: 50%;
    top: 75%;
    right: 15%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

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

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

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 217, 176, 0.3);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 20px rgba(45, 63, 30, 0.08);
}

.nav-logo-text {
    color: #223419;
}

.nav-link {
    color: #314e23;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #527f3a, #74a056);
    transition: height 0.3s ease;
    border-radius: 0 0 4px 0;
}

.service-card:hover::before {
    height: 100%;
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    padding-left: 8px;
    color: #527f3a;
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 127, 58, 0.15);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-square-1 {
        width: 80px;
        height: 80px;
    }
    
    .geo-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid #9abb82;
    }
}

@media (max-width: 640px) {
    .geo-circle-2,
    .geo-circle-3 {
        display: none;
    }
}
