/* ============================================
   Dr. Linda M Hearn — Medical Website Styles
   Palette: Deep Navy (#0a1d36) + Warm Gold (#d4a017)
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

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

.circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid #d4a017;
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: #d4a017;
    border-radius: 50%;
    bottom: 20%;
    right: 15%;
    animation: float-medium 14s ease-in-out infinite;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid #f2c240;
    border-radius: 50%;
    top: 30%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.diamond-1 {
    width: 80px;
    height: 80px;
    background: #d4a017;
    transform: rotate(45deg);
    top: 25%;
    left: 5%;
    opacity: 0.06;
    animation: float-medium 16s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #f2c240;
    opacity: 0.05;
    bottom: 30%;
    left: 10%;
    animation: float-slow 22s ease-in-out infinite;
}

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

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

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

#navbar.scrolled {
    background-color: rgba(10, 29, 54, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: #fff;
}

/* ============================================
   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, #1e4a82, #d4a017);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 29, 54, 0.15);
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement: content is visible
   by default; JS adds the animated state.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
}

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

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 span {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ============================================
   Selection color
   ============================================ */
::selection {
    background: #d4a017;
    color: #0a1d36;
}

::-moz-selection {
    background: #d4a017;
    color: #0a1d36;
}

/* ============================================
   Focus visible for accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    .geo-shape,
    button,
    iframe {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
