/* ========================================
   Rockcastle River Family Health Clinic
   Custom Styles
======================================== */

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

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

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

/* Circles */
.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 163, 0.6) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 175, 199, 0.5) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 214, 226, 0.4);
    top: 30%;
    left: 10%;
    animation: float-medium 6s ease-in-out infinite;
}

/* Squares */
.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 122, 163, 0.3);
    border-radius: 24px;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 175, 199, 0.3);
    border-radius: 16px;
    bottom: 25%;
    right: 25%;
    transform: rotate(20deg);
    animation: float-medium 7s ease-in-out infinite;
}

/* Triangle */
.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid rgba(255, 122, 163, 0.2);
    top: 40%;
    left: 5%;
    transform: rotate(-15deg);
    animation: float-slow 9s ease-in-out infinite;
}

/* Dots pattern */
.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 20px 20px;
    top: 60%;
    right: 8%;
    animation: float-medium 5s ease-in-out infinite reverse;
}

/* ========================================
   Patient Section Shapes
======================================== */
.shape-diamond-1 {
    width: 200px;
    height: 200px;
    background: rgba(255, 122, 163, 0.15);
    border-radius: 32px;
    top: 10%;
    right: 5%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.shape-circle-dotted {
    width: 180px;
    height: 180px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 18px 18px;
    border-radius: 50%;
    bottom: 5%;
    left: 10%;
    animation: float-slow 8s ease-in-out infinite;
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* ========================================
   Scroll Reveal (Progressive Enhancement)
   Content is visible by default; JS adds animation
======================================== */
.reveal {
    /* Default: visible, no animation */
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Navbar
======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled span {
    color: #7B2D3B !important;
}

#navbar.scrolled a:not(.bg-burgundy-800):not(.bg-blush-500) {
    color: #4a5568 !important;
}

/* ========================================
   Mobile Menu
======================================== */
.mobile-link {
    display: block;
    color: #374151;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #7B2D3B;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ========================================
   Form Styles
======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
    
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
}
