/* ============================================
   EMMETT PEDIATRIC ASSOCIATES — STYLES
   ============================================ */

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

.geo-circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: #2dd4bf;
    top: -140px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f59e0b;
    bottom: 60px;
    left: 80px;
    animation: float 6s ease-in-out infinite reverse;
}

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

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #8b5cf6;
    top: 20%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
    opacity: 0.15;
}

.geo-dot {
    width: 16px;
    height: 16px;
    background: #2dd4bf;
    border-radius: 50%;
    top: 30%;
    right: 25%;
    animation: pulse-dot 3s ease-in-out infinite;
}

.geo-ring {
    width: 80px;
    height: 80px;
    border: 4px solid #f59e0b;
    border-radius: 50%;
    bottom: 25%;
    right: 10%;
    animation: spin-slow 12s linear infinite reverse;
    opacity: 0.2;
}

.geo-circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #2dd4bf;
    top: -200px;
    right: -150px;
    animation: float 10s ease-in-out infinite;
}

.geo-square-2 {
    width: 90px;
    height: 90px;
    background: #f59e0b;
    bottom: 10%;
    left: 5%;
    transform: rotate(20deg);
    animation: spin-slow 15s linear infinite;
}

.geo-circle-4 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #f59e0b;
    bottom: -120px;
    right: -80px;
    animation: float 9s ease-in-out infinite;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #ffffff 2px, transparent 2px);
    background-size: 16px 16px;
    top: 15%;
    left: 5%;
    opacity: 0.3;
}

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

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

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

/* --- Header --- */
header {
    transition: box-shadow 0.3s ease;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobileMenu .mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

#mobileMenu .mobile-link:hover {
    color: #0d9488;
    padding-left: 8px;
}

/* --- 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, #0d9488, #2dd4bf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* --- Testimonial Cards --- */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: #f0fdfa;
    line-height: 1;
    pointer-events: none;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection --- */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .geo-circle-1,
    .geo-circle-2,
    .geo-square-1,
    .geo-triangle-1,
    .geo-dot,
    .geo-ring,
    .geo-circle-3,
    .geo-square-2,
    .geo-circle-4 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card::before {
        transition: none;
    }
}

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

/* --- Mobile Menu Button --- */
.menu-line {
    transition: all 0.3s ease;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    margin-right: 0;
    transform: rotate(-45deg) translate(5px, -5px);
}
