/* ============================================
   RC Dermatology Grinnell — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HERO Geometric Shapes
   ============================================ */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 93, 62, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(209, 150, 94, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(198, 93, 62, 0.06);
    top: 20%;
    left: 45%;
    border-radius: 24px;
    transform: rotate(45deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(209, 150, 94, 0.08);
    top: 35%;
    right: 8%;
    transform: rotate(-15deg);
}

.geo-dot-group {
    top: 60%;
    left: 3%;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.geo-dot-group span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(198, 93, 62, 0.15);
}

.geo-dot-group span:nth-child(1) { height: 8px; width: 8px; }
.geo-dot-group span:nth-child(2) { height: 12px; width: 12px; background: rgba(209, 150, 94, 0.2); }
.geo-dot-group span:nth-child(3) { height: 6px; width: 6px; }
.geo-dot-group span:nth-child(4) { height: 10px; width: 10px; background: rgba(209, 150, 94, 0.15); }
.geo-dot-group span:nth-child(5) { height: 8px; width: 8px; }

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #C65D3E, #D1965E);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ============================================
   Patient Cards
   ============================================ */
.patient-card {
    position: relative;
}

.patient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C65D3E, #D1965E);
    border-radius: 2rem 2rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.patient-card:hover::before {
    opacity: 1;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #C65D3E;
    transform: translateX(4px);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Button Focus Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C65D3E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(198, 93, 62, 0.2);
    color: #783324;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle {
        display: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    .hero-shape,
    #contactForm,
    #successMessage {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
