/* drcoopmd.com — William A. Cooper, MD, MBA
 * Brand carried from the original site: black header and footer, white
 * "Dr COOPER" logo, Archivo headings, Montserrat text, blue #2072A9 with the
 * light blue #68BBE3 accent. Buttons use the deeper blue so white text passes
 * WCAG AA; the light blue is reserved for accents on dark backgrounds.
 */
:root {
  --black: #0e0e0e;
  --ink: #15181c;
  --muted: #555c64;
  --line: #d9dde1;
  --paper: #ffffff;
  --band: #f1f2f3;
  --blue: #2072a9;
  --blue-dark: #185c8a;
  --sky: #68bbe3;
  --sky-soft: #e4f2fa;
  --heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.band { background: var(--band); }
.dark { background: var(--black); color: #f3f4f5; }
.dark a { color: var(--sky); }
.blue { background: var(--blue); color: #fff; }
.blue a { color: #fff; }
.kicker { font: 600 .8rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 .8em; }
.dark .kicker, .blue .kicker { color: var(--sky); }
.blue .kicker { color: #cfe9f7; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 46ch; }
.dark .lede { color: #c9ced3; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--text);
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.dark .btn-ghost, .blue .btn-ghost { color: #fff; border-color: #fff; }
.dark .btn-ghost:hover, .blue .btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo img { width: 150px; height: auto; }
.nav-toggle { display: none; background: none; border: 1px solid #555; color: #fff; padding: 8px 14px; border-radius: var(--radius); font: 600 .9rem var(--text); cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; color: #e8eaec; text-decoration: none; font: 500 .95rem/1.2 var(--text); padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sky); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--black); border-top: 3px solid var(--sky); padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { width: 100%; padding-bottom: 14px; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid #262626; }
  .has-sub > a::after { display: none; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
}

/* Home hero */
.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { object-position: 30% 4%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.78) 100%); }
.hero-copy { position: relative; z-index: 1; min-height: min(86vh, 820px); display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; padding: 80px 0; }
.hero-copy > * { max-width: 560px; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p { font-size: 1.2rem; color: #eef0f2; }
@media (max-width: 760px) {
  .hero-media { position: relative; aspect-ratio: 4 / 4.4; }
  .hero-media img { object-position: 30% 18%; }
  .hero::after { display: none; }
  .hero-copy { min-height: 0; align-items: flex-start; text-align: left; padding: 36px 0 48px; }
}

.as-seen { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.as-seen p { text-align: center; margin: 0 0 12px; font: 600 .75rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.as-seen img { width: 100%; max-width: 1100px; margin: 0 auto; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--black); color: #fff; padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 84px); overflow: hidden; }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.25) 100%); }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { color: #d8dce0; max-width: 54ch; }
.page-hero .kicker { color: var(--sky); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.wide-text { grid-template-columns: 5fr 7fr; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split, .split.wide-text { grid-template-columns: 1fr; } }

/* Checklist */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: .75em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }

/* Video facades */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.videos.featured { grid-template-columns: repeat(4, 1fr); align-items: start; }
.videos.featured .yt-card:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.videos.featured .yt-card:first-child figcaption { font-size: 1.1rem; }
@media (max-width: 900px) { .videos.featured { grid-template-columns: repeat(2, 1fr); } .videos.featured .yt-card:first-child { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 520px) { .videos.featured { grid-template-columns: 1fr; } }
.yt-card { margin: 0; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .3s; }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: rgba(0,0,0,.72); border-radius: 12px; transition: background .2s; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: #c4302b; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-card figcaption { font: 600 .95rem/1.4 var(--text); margin-top: 10px; color: var(--ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .cards.four, .cards.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards.four, .cards.five { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.blue .card, .dark .card, .blue .card:hover, .dark .card:hover { color: var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .meta { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--blue); }

.tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--black); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .82; }
.tile:hover img { transform: scale(1.04); opacity: .7; }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 20px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font: 700 1.05rem/1.3 var(--heading); letter-spacing: .02em; text-transform: uppercase; }
.tile span::after { content: " \2192"; color: var(--sky); }
.tile:hover { color: #fff; }

.news-card img { aspect-ratio: 1; object-position: center top; }

/* Book */
.book { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.book img { box-shadow: 0 18px 40px rgba(0,0,0,.25); }
@media (max-width: 680px) { .book { grid-template-columns: 1fr; } .book img { max-width: 220px; } }

/* Prose */
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--sky); font-style: italic; color: var(--muted); }
.prose a { word-break: break-word; }
.pull { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.3 var(--heading); color: var(--ink); border-left: 5px solid var(--sky); padding-left: 24px; margin: 0; }

/* Article */
.post-head { background: var(--black); color: #fff; padding: clamp(48px, 7vw, 88px) 0 0; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.post-meta { color: #c9ced3; font-size: .95rem; margin-bottom: 28px; }
.post-meta a { color: var(--sky); }
.post-hero { margin-bottom: -1px; }
.post-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-weight: 600; }
.post-nav a { max-width: 46%; text-decoration: none; }
.post-nav .next { margin-left: auto; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags a { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--blue); }

/* Contact */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { width: 100%; font: 400 1rem/1.5 var(--text); padding: 12px 14px; border: 1px solid #aeb5bc; border-radius: var(--radius); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }
.form textarea { min-height: 170px; resize: vertical; }
.form .note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-confirm { background: var(--sky-soft); border-left: 4px solid var(--blue); padding: 14px 18px; margin: 0; }

/* Connect band */
.connect { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.connect h2 { margin: 0 0 .3em; }
.connect p { margin: 0; color: #c9ced3; max-width: 52ch; }
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px; border: 1px solid #3b3f44; border-radius: var(--radius); color: #fff; text-decoration: none; font: 600 .9rem var(--text); }
.social a:hover { border-color: var(--sky); color: var(--sky); }

/* Footer */
.site-footer { background: var(--black); color: #b9bfc5; font-size: .95rem; padding: 56px 0 32px; border-top: 1px solid #1f2225; }
.site-footer a { color: #e8eaec; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font: 600 .78rem/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: #8d949b; margin: 0 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid #222; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8d949b; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

.flyer-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.post-head .kicker, .post-head .kicker a { color: var(--sky); text-decoration: none; }
.post-head .kicker a:hover { text-decoration: underline; }
