/* ============================================
   Tri-Parish Pediatrics — Custom Styles
   ============================================ */

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Selection ---- */
::selection {
    background: #d4af37;
    color: #0a1628;
}

/* ---- Section Labels ---- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d4af37;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background: #d4af37;
}

/* ---- Section Titles ---- */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #102a43;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #d4af37;
    color: #0a1628;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid #d4af37;
}

.btn-primary:hover {
    background: #b8860b;
    border-color: #b8860b;
    color: #0a1628;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #f0f4f8;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-2px);
}

/* ---- Service Cards ---- */
.service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #d9e2ec;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #d4af37;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.08);
}

/* ---- Nav Links ---- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.25s ease;
}

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

/* ---- Mobile Nav Links ---- */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.25s ease;
    margin: 0.25rem auto 0;
}

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

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ---- Header shadow on scroll ---- */
header.scrolled {
    box-shadow: 0 4px 20px rgba(16, 42, 67, 0.08);
}

/* ---- Form focus states ---- */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* ---- Image hover ---- */
img {
    display: block;
    max-width: 100%;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .btn-primary,
    .btn-secondary,
    .service-card,
    .nav-link::after {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}
