/* =============================================
   Hasbro Children's Hospital — Pediatric Pulmonology
   Custom Styles
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: #7B2D8E;
    color: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 100;
    font-size: 0.875rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ---- Navigation ---- */
.nav-scroller {
    transition: box-shadow 0.3s ease;
}

.nav-scroller.scrolled {
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.menu-line {
    width: 1.125rem;
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(2.5px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-2.5px) rotate(-45deg);
    width: 1.125rem;
}

.mobile-nav-link {
    border-color: rgba(123, 45, 142, 0.06) !important;
}

/* ---- Buttons ---- */
.btn-primary {
    background: #F5C518;
    color: #240c2b;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ---- Hero ---- */
.hero-gradient {
    background: linear-gradient(
        145deg,
        #240c2b 0%,
        #3e1647 15%,
        #7B2D8E 42%,
        #b87cc0 68%,
        #e8d0ee 85%,
        #f3e8f7 100%
    );
}

.hero-blob {
    animation: blob-float 20s ease-in-out infinite;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.3), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 124, 192, 0.4), transparent 70%);
    bottom: 5%;
    left: -3%;
    animation-delay: -7s;
}

.hero-blob-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 226, 102, 0.3), transparent 70%);
    top: 40%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* Decorative lines */
.h-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.h-line-1 { top: 20%; left: 0; right: 0; }
.h-line-2 { top: 45%; left: 5%; right: 10%; }
.h-line-3 { top: 75%; left: 0; right: 15%; }

.v-line {
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05), transparent);
}

.v-line-1 { top: 0; bottom: 0; left: 15%; }
.v-line-2 { top: 10%; bottom: 0; right: 20%; }

/* Hero badge animation */
.hero-badge {
    animation: badge-in 0.8s ease-out both;
}

@keyframes badge-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Section Labels ---- */
.label-service,
.label-about,
.label-conditions,
.label-insurance,
.label-contact {
    letter-spacing: 0.2em;
}

/* ---- Service Cards ---- */
.service-card {
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(123, 45, 142, 0.06);
    background: #fff;
    transition: all 0.35s ease;
}

.service-card:hover {
    border-color: rgba(123, 45, 142, 0.12);
    box-shadow: 0 8px 40px rgba(123, 45, 142, 0.06);
    transform: translateY(-3px);
}

/* ---- Condition Cards ---- */
.condition-card {
    transition: all 0.3s ease;
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Form ---- */
#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgb(180, 160, 190);
}

/* ---- Responsive ---- */
@media (max-width: 639px) {
    html {
        scroll-padding-top: 64px;
    }

    .font-serif.text-5xl {
        font-size: 2.5rem;
    }

    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .font-serif.text-5xl {
        font-size: 3rem;
    }
}

/* ---- Focus Visible ---- */
*:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #7B2D8E;
    outline-offset: 2px;
}
