/* UCHC public website. No third-party fonts, scripts or trackers: this is a
   medical site that tells visitors it does not use their data for advertising,
   so it loads nothing from anyone else. */

:root {
  --brand: #0189fc;          /* logo blue: graphics and accents only */
  --brand-strong: #0067c2;   /* buttons and links: 5.6:1 against white */
  --brand-deep: #004f96;
  --navy: #0b2a4a;
  --navy-deep: #071c33;
  --ink: #1b2b3c;
  --muted: #4b5d70;
  --tint: #eef6ff;
  --line: #d7e4f2;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 14px; }
section { scroll-margin-top: 90px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

/* ---------- utility bar + header ---------- */
.utility { background: var(--navy); color: #dbe9f8; font-size: .9rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.utility a { color: #fff; font-weight: 600; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: .98rem; }
.nav ul a:hover { color: var(--brand-strong); }
.burger { display: none; }

.signin { position: relative; }
.signin summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  color: var(--brand-strong); border: 2px solid var(--brand-strong); background: #fff;
}
.signin summary::-webkit-details-marker { display: none; }
.signin summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.signin[open] summary { background: var(--brand-strong); color: #fff; }
.signin .menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 340px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
}
.signin .menu a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--navy); }
.signin .menu a:hover { background: var(--tint); }
.signin .menu strong { display: block; font-size: 1rem; }
.signin .menu span { display: block; font-size: .87rem; color: var(--muted); font-weight: 400; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-strong); border-color: var(--brand-strong); }
.btn-outline:hover { background: var(--tint); color: var(--brand-deep); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.textlink { font-weight: 700; text-decoration: none; padding: 10px 4px; color: var(--brand-strong); }
.textlink:hover { text-decoration: underline; }

/* ---------- hero ---------- */
/* ⚠️ THE PICTURE IS NEVER CROPPED. It shows whole at its own proportions (the file is 1672x941) and
   scales with the screen. It used to be cropped with object-fit: cover to a fixed 16:10 box, but the
   <img> carries height="941", which beats aspect-ratio, so at column width it rendered about 940px tall:
   the clinician's head was cut off and the text, centred beside it, left a band of empty space above. */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 88% 4%, rgba(1, 137, 252, .14), transparent 70%),
    radial-gradient(520px 320px at 4% 100%, rgba(1, 137, 252, .07), transparent 70%),
    linear-gradient(180deg, var(--tint), #fff 92%);
  padding: clamp(28px, 4vw, 56px) 0 clamp(84px, 9vw, 112px);
}
.hero .container { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(24px, 4.5vw, 60px); align-items: center; }
.hero h1 span { color: var(--brand-strong); }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.hero .sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 20px; }
.ribbon { display: inline-block; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero figure { margin: 0 0 22px; position: relative; }
.hero figure::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 28px; background: linear-gradient(135deg, rgba(1, 137, 252, .22), rgba(1, 137, 252, .04)); z-index: 0; }
.hero figure img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; border-radius: 24px; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--tint); }
.badge { position: absolute; z-index: 2; left: 18px; bottom: -22px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; padding: 11px 16px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; max-width: min(300px, calc(100% - 36px)); }
.badge strong { display: block; color: var(--navy); }

/* ---------- value cards (overlap the hero) ---------- */
.values { margin-top: -64px; position: relative; z-index: 2; }
.values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--muted); font-size: .98rem; margin: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; }

/* ---------- conditions ---------- */
.alt { background: var(--tint); }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 20px; }
.chips li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--navy); }
.chips li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- care cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--brand); }
.card p { color: var(--muted); margin: 0; }

/* ---------- physician ---------- */
.physician { background: var(--navy); color: #dbe9f8; }
.physician h2, .physician h3 { color: #fff; }
.physician .container { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.physician h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
/* ⚠️ THE PORTRAIT IS NEVER CROPPED: it shows whole at its own proportions (481x418) and scales with the column. */
.physician .doctor { margin: 0; }
.physician .doctor img { display: block; width: 100%; max-width: 481px; height: auto; aspect-ratio: 481 / 418; object-fit: contain; border-radius: 22px; border: 4px solid rgba(255, 255, 255, .92); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); background: var(--navy-deep); }
.physician .eyebrow { color: #7cc2ff; }
.physician .creds { color: #fff; font-weight: 600; font-size: 1.1rem; }
.cert-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cert-list li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: #fff; font-size: .95rem; }
.stat { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1; }
.stat small { display: block; font-size: 1rem; font-weight: 600; color: #9fd0ff; margin-top: 8px; }

/* ---------- locations ---------- */
.locs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.loc { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.loc.open { border-color: var(--brand); box-shadow: var(--shadow); }
.loc .tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; background: #e6f6ec; color: #11633a; }
.loc.soon .tag { background: #f1f3f6; color: #4b5d70; }
.loc.soon { background: #fafbfd; color: var(--muted); }
.loc address { font-style: normal; margin-bottom: 14px; }
.loc .note { color: var(--muted); }


/* ---------- contact band ---------- */
.contact { background: linear-gradient(135deg, var(--brand-deep), var(--brand-strong) 60%, #1b8ee6); color: #fff; }
.contact h2 { color: #fff; }
.contact .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact .big { font-size: 1.2rem; color: #e6f2ff; }
.contact dl { margin: 0; display: grid; gap: 16px; }
.contact dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #bfe0ff; font-weight: 700; }
.contact dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; }
.contact a:not(.btn) { color: #fff; }
.safety { font-size: .95rem; color: #d7eaff; margin-top: 22px; max-width: 52ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9cde3; font-size: .95rem; padding: 48px 0 36px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d7e8fb; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .88rem; color: #93aac4; }
.site-footer .legal p { margin: 0 0 6px; }

/* ---------- document page (Security & HIPAA) ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.doc .container { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc h3 { font-size: 1.1rem; margin: 1.6em 0 .3em; }
.doc address { font-style: normal; background: var(--tint); border-left: 5px solid var(--brand); padding: 16px 20px; border-radius: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .physician .container { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .physician .doctor { grid-row: span 2; }
  .values ul { grid-template-columns: repeat(2, 1fr); }
  .locs { grid-template-columns: 1fr 1fr; }
  .locs .loc.open { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .hero .container, .physician .container, .contact .container { grid-template-columns: 1fr; }
  .hero figure { margin-bottom: 0; }
  .physician .doctor { grid-row: auto; max-width: 520px; }
  .hero figure::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .container > :first-child { grid-column: 1 / -1; }

  .burger { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px 22px; flex-direction: column; align-items: stretch; gap: 14px; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .signin summary { width: 100%; justify-content: center; }
  .signin .menu { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .values { margin-top: -40px; }
  .values ul, .locs, .site-footer .container { grid-template-columns: 1fr; }
  .utility .hide-sm { display: none; }
  .btn { width: 100%; }
  .badge { position: static; max-width: none; margin-top: 12px; box-shadow: none; border: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .utility, .site-header, .cta-row, .contact .btn { display: none !important; } }
