/* ============================================
   Children's Health — Dallas Campus
   Teal + Slate | Confident Corporate
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- SECTION HEADERS --- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 16px;
}
.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #0d9488;
    display: inline-block;
}
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.0625rem;
    color: #475569;
    max-width: 600px;
    line-height: 1.7;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn--primary {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
}
.btn--primary:hover { background: #0f766e; border-color: #0f766e; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,148,136,0.3); }
.btn--ghost {
    background: transparent;
    color: #0f766e;
    border-color: #0f766e;
}
.btn--ghost:hover { background: #f0fdfa; transform: translateY(-1px); }
.btn--light {
    background: #ffffff;
    color: #0d9488;
    border-color: #ffffff;
}
.btn--light:hover { background: #f0fdfa; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.2); }
.btn--outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: #ffffff; transform: translateY(-1px); }
.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,0.08); }
.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav__logo { width: 40px; height: 40px; flex-shrink: 0; }
.nav__name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: #0f172a;
}
.nav__sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d9488;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a:not(.nav__cta) {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
    position: relative;
}
.nav__links a:not(.nav__cta):hover { color: #0d9488; }
.nav__links a:not(.nav__cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.2s;
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff !important;
    background: #0d9488;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: #0f766e; transform: translateY(-1px); }
.nav__cta svg { width: 16px; height: 16px; }
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav__bar {
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- MOBILE NAV --- */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav__inner {
    position: absolute;
    right: 0;
    top: 72px;
    bottom: 0;
    width: min(320px, 85vw);
    background: #ffffff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-nav.open .mobile-nav__inner { transform: translateX(0); }
.mobile-nav__link {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #1e293b;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}
.mobile-nav__link:hover { color: #0d9488; }
.mobile-nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #0d9488;
    padding: 14px 24px;
    border-radius: 8px;
    justify-content: center;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
    padding-top: 72px;
}
.hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(13,148,136,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13,148,136,0.08) 0%, transparent 40%);
    pointer-events: none;
}
.hero__grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2dd4bf;
    margin-bottom: 24px;
}
.hero__eyebrow svg { width: 16px; height: 16px; }
.hero__headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}
.hero__lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 520px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}
.hero__actions .btn--ghost { color: #2dd4bf; border-color: #2dd4bf; }
.hero__actions .btn--ghost:hover { background: rgba(45,212,191,0.1); }
.hero__stats {
    display: flex;
    gap: 32px;
    align-items: center;
}
.hero__stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}
.hero__stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}
.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(100,116,139,0.4);
}
.hero__visual { position: relative; }
.hero__image-stack {
    position: relative;
    height: 600px;
}
.hero__img {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.hero__img--main {
    width: 75%;
    height: 100%;
    top: 0;
    right: 0;
}
.hero__img--main img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--accent {
    width: 55%;
    height: 45%;
    bottom: 0;
    left: 0;
    border: 4px solid #0f172a;
}
.hero__img--accent img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
    position: absolute;
    bottom: 42%;
    left: -8%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    z-index: 2;
}
.hero__badge svg { width: 24px; height: 24px; color: #0d9488; flex-shrink: 0; }
.hero__badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

/* --- SERVICES --- */
.services {
    padding: 120px 0;
    background: #f8fafc;
}
.services__header {
    text-align: center;
    margin-bottom: 64px;
}
.services__header .section-subtitle { margin: 0 auto; }
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15,23,42,0.1);
    border-color: #0d9488;
}
.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f0fdfa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.service-card__icon svg { width: 28px; height: 28px; color: #0d9488; }
.service-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.service-card__desc {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
}

/* --- ABOUT --- */
.about {
    padding: 120px 0;
    background: #ffffff;
}
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about__visual {
    position: relative;
    height: 640px;
}
.about__image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 72%;
    height: 85%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15,23,42,0.12);
}
.about__image-main img { width: 100%; height: 100%; object-fit: cover; }
.about__image-side {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 58%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15,23,42,0.12);
    border: 4px solid #ffffff;
}
.about__image-side img { width: 100%; height: 100%; object-fit: cover; }
.about__text {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}
.about__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.5;
}
.highlight svg { width: 20px; height: 20px; color: #0d9488; flex-shrink: 0; margin-top: 2px; }

/* --- CTA BANNER --- */
.cta-banner {
    padding: 96px 0;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.cta-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-banner__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}
.cta-banner__text {
    font-size: 1.0625rem;
    color: #99f6e4;
    max-width: 480px;
    line-height: 1.7;
}
.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- LOCATION --- */
.location {
    padding: 120px 0;
    background: #f8fafc;
}
.location__header {
    text-align: center;
    margin-bottom: 64px;
}
.location__header .section-subtitle { margin: 0 auto; }
.location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.location__map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(15,23,42,0.1);
    aspect-ratio: 4/3;
    background: #e2e8f0;
}
.location__map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #475569;
}
.location__map-placeholder svg { width: 48px; height: 48px; color: #0d9488; }
.location__map-placeholder span { font-size: 1rem; font-weight: 500; }
.location__map-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d9488;
    padding: 10px 20px;
    border: 2px solid #0d9488;
    border-radius: 8px;
    transition: all 0.2s;
}
.location__map-link:hover { background: #0d9488; color: #ffffff; }
.location__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.location__info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #e2e8f0;
}
.location__info-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 12px;
}
.location__address {
    font-size: 1.0625rem;
    color: #1e293b;
    line-height: 1.7;
}
.location__phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.2s;
}
.location__phone:hover { color: #0d9488; }
.location__hours { display: flex; flex-direction: column; gap: 8px; }
.location__hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.location__hours li:last-child { border-bottom: none; }
.location__hours li span:first-child { color: #475569; }
.location__hours li span:last-child { font-weight: 600; color: #0f172a; }
.location__parking {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.7;
}

/* --- CONTACT --- */
.contact {
    padding: 120px 0;
    background: #ffffff;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact__text {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 40px;
}
.contact__direct {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact__direct-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact__direct-item svg {
    width: 24px;
    height: 24px;
    color: #0d9488;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact__direct-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}
.contact__direct-value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
}
.contact__direct-value a { color: #0d9488; transition: color 0.2s; }
.contact__direct-value a:hover { color: #0f766e; }

/* --- FORM --- */
.contact__form-wrap {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { margin-bottom: 20px; }
.form__group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: #94a3b8; }
.form__group textarea { resize: vertical; min-height: 120px; }
.contact__success {
    text-align: center;
    padding: 48px 24px;
}
.contact__success svg { width: 56px; height: 56px; color: #0d9488; margin: 0 auto 16px; }
.contact__success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 8px;
}
.contact__success p { color: #475569; line-height: 1.7; }

/* --- FOOTER --- */
.footer {
    background: #0f172a;
    padding: 80px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(100,116,139,0.2);
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer__logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.footer__logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.3;
}
.footer__tagline {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 280px;
}
.footer__heading {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2dd4bf;
    margin-bottom: 20px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 12px; }
.footer__links a {
    font-size: 0.9375rem;
    color: #94a3b8;
    transition: color 0.2s;
}
.footer__links a:hover { color: #ffffff; }
.footer__links address {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 12px;
}
.footer__phone {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #2dd4bf;
    transition: color 0.2s;
}
.footer__phone:hover { color: #ffffff; }
.footer__bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__bottom p {
    font-size: 0.8125rem;
    color: #64748b;
}
.footer__disclaimer { font-size: 0.75rem !important; color: #475569 !important; }

/* --- SCROLL REVEAL (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero__grid { gap: 48px; }
    .about__grid { gap: 48px; }
    .about__visual { height: 480px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__toggle { display: flex; }
    .hero__grid {
        grid-template-columns: 1fr;
        padding: 48px 24px 64px;
        gap: 48px;
    }
    .hero__visual { order: -1; }
    .hero__image-stack { height: 360px; }
    .hero__badge { left: 4%; bottom: 38%; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { justify-content: center; }
    .hero__stats { flex-direction: column; gap: 20px; align-items: flex-start; }
    .hero__stat-divider { display: none; }
    .services__grid { grid-template-columns: 1fr; }
    .about__grid { grid-template-columns: 1fr; }
    .about__visual { height: 400px; order: -1; }
    .about__highlights { grid-template-columns: 1fr; }
    .cta-banner__inner { flex-direction: column; text-align: center; }
    .location__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; gap: 48px; }
    .form__row { grid-template-columns: 1fr; }
    .contact__form-wrap { padding: 24px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero__image-stack { height: 280px; }
    .hero__img--accent { width: 60%; height: 40%; }
    .hero__badge { display: none; }
    .services { padding: 80px 0; }
    .about { padding: 80px 0; }
    .location { padding: 80px 0; }
    .contact { padding: 80px 0; }
}
