/* =====================================================
   MidCity Medical Center — brand styles (on Bootstrap 5)
   ===================================================== */

:root {
    --mc-navy:      #1F3E90;
    --mc-navy-deep: #142A66;
    --mc-navy-ink:  #0E1E4A;
    --mc-red:       #E32330;
    --mc-red-deep:  #B81824;
    --mc-sky:       #EDF2FB;
    --mc-sky-2:     #DDE7F7;
    --mc-rose:      #FDEEEF;
    --mc-ink:       #22293B;
    --mc-muted:     #5B6478;
    --font-display: "Archivo", sans-serif;
    --font-body:    "Public Sans", sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--mc-ink);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-font {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--mc-navy-ink);
}

.text-brand-red  { color: var(--mc-red) !important; }
.text-brand-navy { color: var(--mc-navy) !important; }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mc-red);
}
.section-kicker::before {
    content: "";
    width: 34px; height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mc-red), var(--mc-navy));
}

/* ---------- buttons ---------- */
.btn-mc-red {
    --bs-btn-bg: var(--mc-red);
    --bs-btn-border-color: var(--mc-red);
    --bs-btn-hover-bg: var(--mc-red-deep);
    --bs-btn-hover-border-color: var(--mc-red-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 50rem;
    padding: .7rem 1.6rem;
}
.btn-mc-navy {
    --bs-btn-bg: var(--mc-navy);
    --bs-btn-border-color: var(--mc-navy);
    --bs-btn-hover-bg: var(--mc-navy-deep);
    --bs-btn-hover-border-color: var(--mc-navy-deep);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 50rem;
    padding: .7rem 1.6rem;
}
.btn-mc-ghost {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255,255,255,.55);
    --bs-btn-hover-bg: rgba(255,255,255,.12);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 50rem;
    padding: .7rem 1.6rem;
}

/* ---------- top utility bar ---------- */
.topbar {
    background: var(--mc-navy-ink);
    color: #C6D2EE;
    font-size: .82rem;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .bi { color: var(--mc-red); margin-right: .35rem; }

/* ---------- navbar ---------- */
.navbar-mc {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 18px rgba(14,30,74,.08);
}
.navbar-mc .navbar-brand { display: flex; align-items: center; gap: .65rem; }
.navbar-mc .brand-lockup { height: 54px; width: auto; }
@media (max-width: 575.98px) { .navbar-mc .brand-lockup { height: 42px; } }
.brand-word {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--mc-navy);
}
.brand-word span { color: var(--mc-red); }
.brand-sub {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .6rem;
    letter-spacing: .38em;
    color: var(--mc-navy-ink);
    margin-top: .22rem;
    text-transform: uppercase;
}
.navbar-mc .nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--mc-navy-ink);
    padding: .5rem .9rem !important;
}
.navbar-mc .nav-link:hover { color: var(--mc-red); }
.navbar-mc .nav-link.active {
    color: var(--mc-red);
    position: relative;
}
@media (min-width: 992px) {
    .navbar-mc .nav-link.active::after {
        content: "";
        position: absolute;
        left: .9rem; right: .9rem; bottom: 0;
        height: 3px; border-radius: 2px;
        background: var(--mc-red);
    }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(227,35,48,.35), transparent 55%),
        radial-gradient(700px 480px at -10% 110%, rgba(227,35,48,.18), transparent 55%),
        linear-gradient(140deg, var(--mc-navy-ink) 0%, var(--mc-navy) 55%, var(--mc-navy-deep) 100%);
    overflow: hidden;
}
.hero::before {           /* faint plus-sign pattern */
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.3px);
    background-size: 26px 26px;
    opacity: .35;
    mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 95%);
}
.hero h1 {
    color: #fff;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
}
.hero h1 .underline-red {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--mc-red);
    text-decoration-thickness: .1em;
    text-underline-offset: .22em;
}
.hero .lead { color: #D4DEF5; max-width: 34rem; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(227,35,48,.16);
    border: 1px solid rgba(227,35,48,.55);
    color: #FFD9DC;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 50rem;
    padding: .45rem 1.1rem;
}
.hero-badge .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #FF6B75;
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,107,117,.6); }
    70%  { box-shadow: 0 0 0 9px rgba(255,107,117,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,107,117,0); }
}
.hero-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-logo-wrap img {
    /* native width of the emblem crop — rendering larger blurs it */
    width: min(206px, 60%);
    filter: drop-shadow(0 24px 50px rgba(0,0,0,.35));
}
.hero-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    border-radius: 1.2rem;
    color: #E5ECFA;
}
.hero-card .h-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: .95rem;
}
.hero-wave { display: block; margin-bottom: -1px; }

/* ---------- doctor cards ---------- */
.doctor-card {
    border: 0;
    border-radius: 1.4rem;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 14px 40px rgba(14,30,74,.10);
    transition: transform .25s ease, box-shadow .25s ease;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(14,30,74,.16); }
.doctor-card.accent-blue { background: var(--mc-sky); border-top: 6px solid var(--mc-navy); }
.doctor-card.accent-red  { background: var(--mc-rose); border-top: 6px solid var(--mc-red); }
.doctor-photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(14,30,74,.14);
}
.doctor-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    flex-shrink: 0;
}
.accent-blue .doctor-avatar { background: var(--mc-navy); }
.accent-red  .doctor-avatar { background: var(--mc-red); }
.doctor-note {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
}
.accent-blue .doctor-note { color: var(--mc-red); }
.accent-red  .doctor-note { color: var(--mc-navy); }
.hours-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-radius: .9rem;
    padding: .7rem 1.1rem;
    box-shadow: 0 3px 10px rgba(14,30,74,.06);
}
.hours-pill .days { font-weight: 700; color: var(--mc-navy-ink); }
.hours-pill .time {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    background: var(--mc-navy);
    border-radius: 50rem;
    padding: .3rem .9rem;
    white-space: nowrap;
}
.accent-red .hours-pill .time { background: var(--mc-red); }
.doctor-card .hours-pill { width: 100%; text-align: left; }
.team-hours { max-width: 24rem; }
.team-hours .hours-pill { width: 100%; }

/* ---------- accepting new patients ribbon ---------- */
.ribbon {
    background:
        linear-gradient(90deg, var(--mc-navy) 0%, var(--mc-navy-deep) 60%, var(--mc-red-deep) 130%);
    color: #fff;
    border-radius: 1.4rem;
    position: relative;
    overflow: hidden;
}
.ribbon::after {
    content: "+";
    position: absolute;
    right: -1.5rem; top: -4.5rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 16rem;
    line-height: 1;
    color: rgba(255,255,255,.07);
}
.ribbon h2 { color: #fff; font-weight: 900; }

/* ---------- services ---------- */
.service-card {
    border: 1px solid var(--mc-sky-2);
    border-radius: 1.2rem;
    padding: 1.8rem 1.5rem;
    height: 100%;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 18px 44px rgba(14,30,74,.12);
}
.service-icon {
    width: 62px; height: 62px;
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: var(--mc-navy);
    margin-bottom: 1.1rem;
}
.service-card:nth-child(even) .service-icon,
.service-icon.red { background: var(--mc-red); }
.service-card h5 { font-size: 1.08rem; }
.service-card p { color: var(--mc-muted); font-size: .92rem; margin: 0; }

/* ---------- services band (flyer-style icon badges) ---------- */
.services-band {
    background:
        radial-gradient(700px 320px at 8% 0%, rgba(31,62,144,.06), transparent 60%),
        radial-gradient(700px 320px at 92% 100%, rgba(227,35,48,.06), transparent 60%),
        var(--mc-sky);
}
.svc-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.svc-item {
    text-align: center;
    padding: 1.4rem 1rem;
    position: relative;
}
.svc-item + .svc-item::before {
    content: "";
    position: absolute;
    left: -0.5rem; top: 18%;
    height: 64%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--mc-sky-2) 30%, var(--mc-sky-2) 70%, transparent);
}
.svc-badge {
    width: 112px; height: 112px;
    margin: 0 auto 1.3rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    color: #fff;
    background: var(--mc-navy);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--mc-navy), 0 12px 26px rgba(14,30,74,.18);
    transition: transform .25s ease;
}
.svc-badge.red { background: var(--mc-red); box-shadow: 0 0 0 3px var(--mc-red), 0 12px 26px rgba(184,24,36,.22); }
.svc-item:hover .svc-badge { transform: translateY(-6px) scale(1.04); }
.svc-item h5 { font-size: 1.18rem; margin-bottom: .6rem; }
.svc-item p { color: var(--mc-muted); font-size: .95rem; margin: 0; }
@media (max-width: 1199.98px) {
    .svc-badge { width: 96px; height: 96px; font-size: 2.2rem; }
    .svc-item h5 { font-size: 1.05rem; }
}
@media (max-width: 991.98px) {
    .svc-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
    .svc-item + .svc-item::before { display: none; }
    .svc-row .svc-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    /* mobile: compact badges so the two-column grid fits comfortably */
    .svc-badge {
        width: 52px; height: 52px;
        font-size: 1.4rem;
        margin-bottom: .8rem;
        border-width: 3px;
        box-shadow: 0 0 0 2px var(--mc-navy), 0 6px 14px rgba(14,30,74,.16);
    }
    .svc-badge.red { box-shadow: 0 0 0 2px var(--mc-red), 0 6px 14px rgba(184,24,36,.2); }
    .svc-item { padding: .8rem .5rem; }
    .svc-item h5 { font-size: .95rem; }
    .svc-item p { font-size: .85rem; }
}
.script-note {
    font-family: "Caveat", cursive;
    font-size: 2rem;
    color: var(--mc-navy-ink);
}
.script-note span {
    color: var(--mc-red);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* ---------- doctor slider (homepage) ---------- */
.doc-slider-wrap {
    position: relative;
    padding: 0 3.2rem;
}
.doc-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .5rem .1rem 1.25rem;
    scrollbar-width: none;
}
.doc-slider::-webkit-scrollbar { display: none; }
.doc-slide {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    scroll-snap-align: start;
    min-width: 0;
}
@media (max-width: 991.98px) { .doc-slide { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (max-width: 767.98px) { .doc-slide { flex-basis: 100%; } }
.doc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--mc-navy);
    color: #fff;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(14,30,74,.25);
    transition: background .2s ease, transform .2s ease;
}
.doc-nav:hover { background: var(--mc-red); transform: translateY(-50%) scale(1.08); }
.doc-prev { left: 0; }
.doc-next { right: 0; }
@media (max-width: 575.98px) {
    .doc-slider-wrap { padding: 0 2.6rem; }
    .doc-nav { width: 38px; height: 38px; }
}

/* ---------- doctor row cards (homepage featured) ---------- */
.doc-row-card {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: #fff;
    border-radius: 1.3rem;
    padding: 1.8rem 1.7rem;
    height: 100%;
    border: 1px solid var(--mc-sky-2);
    border-left: 6px solid var(--mc-navy);
    box-shadow: 0 10px 28px rgba(14,30,74,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.doc-row-card.accent-red { border-left-color: var(--mc-red); }
.doc-row-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(14,30,74,.13); }
.doc-row-card img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mc-sky);
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--mc-navy);
}
.doc-row-card.accent-red img { box-shadow: 0 0 0 2px var(--mc-red); }
.doc-row-card h3, .doc-row-card .h6 { margin: 0 0 .3rem; font-size: 1.25rem; }
.doc-qual {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mc-red);
}
.doc-row-card.accent-red .doc-qual { color: var(--mc-navy); }
.doctor-card.accent-red .doc-qual { color: var(--mc-navy); }

/* ---------- team directory rows (doctors page) ---------- */
.team-group-head {
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--mc-sky-2);
}
.team-row {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: #fff;
    border: 1px solid var(--mc-sky-2);
    border-left: 6px solid var(--mc-navy);
    border-radius: 1.3rem;
    padding: 1.9rem 2rem;
    box-shadow: 0 8px 24px rgba(14,30,74,.06);
    transition: transform .22s ease, box-shadow .22s ease;
}
.team-info h3 { font-size: 1.4rem; }
.team-row:hover { transform: translateX(6px); box-shadow: 0 14px 34px rgba(14,30,74,.12); }
.team-row.accent-red { border-left-color: var(--mc-red); }
.team-avatar {
    flex-shrink: 0;
    width: 116px; height: 116px;
    border-radius: 50%;
    background: var(--mc-sky);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--mc-navy);
}
.team-row.accent-red .team-avatar { box-shadow: 0 0 0 2px var(--mc-red); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-info { flex: 1 1 auto; min-width: 0; }
.team-qual {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .84rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mc-navy);
    background: var(--mc-sky);
    border-radius: 50rem;
    padding: .3rem .85rem;
}
.team-row.accent-red .team-qual { color: var(--mc-red); background: var(--mc-rose); }
.team-action { flex-shrink: 0; }
@media (max-width: 767.98px) {
    .team-row { flex-direction: column; text-align: center; gap: 1rem; }
    .team-row:hover { transform: none; }
    .team-action .btn { width: 100%; }
}

/* ---------- pharmacy panel ---------- */
.pharmacy-panel {
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(227,35,48,.25), transparent 60%),
        linear-gradient(135deg, var(--mc-navy-ink), var(--mc-navy));
    color: #D8E1F6;
    border-radius: 1.6rem;
    overflow: hidden;
    position: relative;
}
.pharmacy-panel h2, .pharmacy-panel h3 { color: #fff; }
.manager-chip {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50rem;
    padding: .5rem 1.2rem .5rem .5rem;
}
.manager-chip .avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--mc-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
}
.manager-chip small { display: block; color: #B9C6E6; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.manager-chip strong { color: #fff; font-family: var(--font-display); }

/* ---------- appointment form ---------- */
.apt-card {
    background: #fff;
    border-radius: 1.4rem;
    padding: 2rem;
    border: 1px solid var(--mc-sky-2);
    box-shadow: 0 18px 50px rgba(14,30,74,.10);
}
.apt-card .form-control,
.apt-card .form-select {
    padding: .8rem 1rem;
    border-radius: .8rem;
    border-color: var(--mc-sky-2);
    font-size: .95rem;
}
.apt-card .form-control:focus,
.apt-card .form-select:focus {
    border-color: var(--mc-navy);
    box-shadow: 0 0 0 .2rem rgba(31,62,144,.12);
}

/* ---------- contact ---------- */
.contact-tile {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1.6rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(14,30,74,.08);
}
.contact-tile .bi {
    font-size: 1.6rem;
    color: var(--mc-red);
}
.map-frame {
    border: 0;
    border-radius: 1.4rem;
    width: 100%;
    height: 100%;
    min-height: 340px;
    box-shadow: 0 14px 40px rgba(14,30,74,.12);
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
    background:
        radial-gradient(700px 380px at 90% -20%, rgba(227,35,48,.35), transparent 60%),
        linear-gradient(140deg, var(--mc-navy-ink), var(--mc-navy));
    color: #fff;
}
.page-hero h1 { color: #fff; font-weight: 900; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #8FA3D4; margin: 0; }
.page-hero .breadcrumb a { color: #C6D2EE; text-decoration: none; }
.page-hero .breadcrumb .active { color: #fff; }

/* ---------- footer ---------- */
.footer {
    background: var(--mc-navy-ink);
    color: #AEBBDD;
}
.footer-brand-card {
    display: inline-block;
    background: #fff;
    border-radius: .9rem;
    padding: .65rem 1rem;
}
.footer-brand-card img { height: 48px; width: auto; max-width: 100%; }
.footer h6 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
    margin-bottom: 1rem;
}
.footer a { color: #AEBBDD; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand-word { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem;
}
.footer .bi { color: var(--mc-red); }

/* ---------- reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 575.98px) {
    .hours-pill { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .ribbon::after { font-size: 10rem; }
}
