/* ============================================
   Western Washington Medical Group
   Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* ---- Navbar ---- */
#navbar {
    background: rgba(254, 252, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 34, 57, 0.08);
}

#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    box-shadow: 0 4px 30px rgba(148, 34, 57, 0.08);
}

/* ---- Hero Geometric Shapes ---- */
.hero-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.shape-blob-1 {
    top: 10%;
    left: 5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 184, 163, 0.35) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobFloat 8s ease-in-out infinite;
}

.shape-circle-1 {
    top: 15%;
    right: 35%;
    width: 120px;
    height: 120px;
    background: rgba(148, 34, 57, 0.08);
    border-radius: 50%;
    animation: circleFloat 6s ease-in-out infinite;
}

.shape-rect-1 {
    bottom: 20%;
    left: 3%;
    width: 80px;
    height: 80px;
    background: rgba(148, 34, 57, 0.06);
    border: 2px solid rgba(148, 34, 57, 0.12);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: rectFloat 7s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 40%;
    right: 2%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(255, 184, 163, 0.2);
    animation: triangleFloat 9s ease-in-out infinite;
}

.shape-dot-pattern {
    top: 60%;
    left: 10%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(148, 34, 57, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.6;
    animation: dotPulse 4s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0, 0) scale(1); }
    25% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: translate(15px, -20px) scale(1.05); }
    50% { border-radius: 50% 60% 70% 40% / 50% 70% 30% 60%; transform: translate(-10px, 15px) scale(0.95); }
    75% { border-radius: 40% 60% 60% 40% / 70% 40% 60% 40%; transform: translate(10px, 10px) scale(1.02); }
}

@keyframes circleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 25px); }
}

@keyframes rectFloat {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(15px, -15px); }
}

@keyframes triangleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 20px); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #942239, #ff5c3f);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

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

/* ---- Mobile Menu ---- */
#mobile-menu {
    box-shadow: none;
}

#mobile-menu.open {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mobile-link {
    opacity: 1;
    transform: none;
}

/* ---- Form Focus States ---- */
input:focus, textarea:focus {
    outline: none;
}

/* ---- Smooth transitions for interactive elements ---- */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Selection Color ---- */
::selection {
    background: rgba(148, 34, 57, 0.15);
    color: #3a0d15;
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8f5;
}

::-webkit-scrollbar-thumb {
    background: #f5a4b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b52d4a;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 768px) {
    .shape-blob-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-rect-1 {
        width: 50px;
        height: 50px;
    }
    
    .shape-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(255, 184, 163, 0.2);
    }
}
