/* ============================================
   DR. GULLETT — Primary Care Website 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;
    overflow-x: hidden;
}

::selection {
    background: #10b981;
    color: #fff;
}

/* --- Geometric Hero Shapes --- */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #34d399;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #6ee7b7;
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #a7f3d0;
    top: 20%;
    left: 8%;
    opacity: 0.15;
    animation: spin 20s linear infinite;
}

.shape-square {
    width: 120px;
    height: 120px;
    background: #a7f3d0;
    top: 60%;
    right: 10%;
    opacity: 0.1;
    animation: spin 15s linear infinite;
    border-radius: 20px;
}

.shape-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid #6ee7b7;
    top: 15%;
    right: 20%;
    opacity: 0.12;
    animation: float 6s ease-in-out infinite;
}

.shape-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #34d399;
    top: 40%;
    left: 5%;
    opacity: 0.3;
    animation: pulse-dot 3s ease-in-out infinite;
}

.shape-wavy {
    bottom: 15%;
    left: 15%;
    opacity: 0.08;
}

.shape-wavy svg {
    width: 200px;
    height: 60px;
    animation: wave 4s ease-in-out infinite;
}

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

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

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

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

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(5, 150, 105, 0.1);
}

#navbar.scrolled .font-display {
    color: #064e3b !important;
}

#navbar.scrolled .text-emerald-600 {
    color: #059669 !important;
}

#navbar.scrolled a:not(.bg-emerald-600):not(.bg-white) {
    color: #065f46 !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #34d399, #6ee7b7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #a7f3d0;
}

/* --- Smooth Scroll Offset --- */
section[id] {
    scroll-margin-top: 80px;
}

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

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

    .shape-triangle {
        display: none;
    }

    .shape-square {
        width: 60px;
        height: 60px;
    }

    .shape-ring {
        width: 100px;
        height: 100px;
        border-width: 10px;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}
