/* Tap Telehealth — one site stylesheet. Palette taken from the live brand. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.gxbsites.com/blobs/dab7c8ededdf25634b22c5ff490d61bef9cb7fba361316ec532ed138e7fb2347/asset.woff2") format("woff2");
}

:root {
  --teal: #0e687c;
  --teal-dark: #0a4e5e;
  --teal-tint: #edf5f6;
  --ink: #183f47;
  --body: #2c2c2c;
  --muted: #5b6b73;
  --line: #d7e4e7;
  --cream: #f4f1e9;
  --white: #fff;
  --radius: 12px;
  --wrap: 1120px;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); font-weight: 600; margin-top: 1.5em; }
h4 { font-size: 1.08rem; font-weight: 600; margin-top: 1.4em; }
h5, h6 { font-size: 1rem; font-weight: 600; margin-top: 1.2em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin: 0 0 .45em; }
li > p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
small { font-size: .875em; color: var(--muted); }
strong { font-weight: 700; color: var(--ink); }
blockquote {
  margin: 1.5em 0; padding: .2em 0 .2em 1.1em;
  border-left: 3px solid var(--teal); color: var(--ink); font-style: italic;
}

table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
th, td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--teal-tint); color: var(--ink); font-weight: 600; }

figure { margin: 1.6em 0; }
figure img { border-radius: var(--radius); width: 100%; max-height: 460px; object-fit: cover; }
.hero figure { max-width: 680px; }
.hero figure img { max-height: 340px; }
.article-body figure img { max-height: 520px; }
figcaption { margin-top: .5em; font-size: .85rem; color: var(--muted); }

/* the source sized these in CSS: a 512-square avatar must not fill the column */
img.avatar, figure img.avatar {
  width: 96px; height: 96px; max-height: 96px;
  border-radius: 50%; object-fit: cover;
}
img.logo, figure img.logo {
  width: auto; max-width: 190px; max-height: 60px;
  object-fit: contain; border-radius: 0;
}
figure:has(img.avatar), figure:has(img.logo) { margin: 1rem 0; }

details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1.1rem; margin: 0 0 .7rem; background: var(--white);
}
details[open] { background: var(--teal-tint); }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details > div > :last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sec { padding: 3rem 0; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 0; }
.sec.alt { background: var(--teal-tint); border-top: 0; }
.sec > .wrap > :first-child { margin-top: 0; }

.hero { background: var(--teal); color: #eaf4f6; border-top: 0; padding: 3.5rem 0 3rem; }
.hero h1, .hero h2, .hero h3, .hero h4, .hero strong { color: #fff; }
.hero a { color: #bfe5ee; }
.hero small, .hero .kicker { color: #bfe5ee; }
.hero figure img { box-shadow: 0 14px 40px rgba(0, 0, 0, .2); }

.kicker {
  font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .4em;
}
.stat {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 700;
  color: var(--teal); line-height: 1.05; margin-bottom: .1em;
}
.hero .stat { color: #fff; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1rem;
  padding-top: .7rem; padding-bottom: .7rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { width: 108px; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.05rem; margin-left: auto; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 600;
  padding: .35rem 0; white-space: nowrap;
}
.site-nav a:hover { color: var(--teal); text-decoration: underline; }

.btn, .site-nav a.btn {
  display: inline-block; background: var(--teal); color: #fff !important;
  padding: .62rem 1.15rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: .95rem; border: 1px solid var(--teal);
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal) !important; }
.btn-ghost:hover { background: var(--teal-tint); color: var(--teal-dark) !important; }
.hero .btn { background: #fff; color: var(--teal) !important; border-color: #fff; }
.hero .btn:hover { background: #e3f1f4; }
.hero .btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .6); }

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
p.cta { display: inline-block; margin: .3rem .6rem .5rem 0; }
p.cta + p.cta { margin-left: 0; }
.card p.cta, .index-item p.cta { display: block; }
.card p.cta a.btn, li p.cta a.btn {
  background: transparent; color: var(--teal) !important; border: 0; padding: 0;
  text-decoration: underline; font-size: .93rem;
}

/* ---------- cards ---------- */
.cards { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

a.card, .card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem; background: var(--white); text-decoration: none; color: var(--body);
}
a.card:hover { border-color: var(--teal); box-shadow: 0 6px 22px rgba(14, 104, 124, .09); }
a.card h3, a.card h4 { margin-top: 0; }
a.card figure { margin: -1.15rem -1.15rem 1rem; }
a.card figure img { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 9; object-fit: cover; }
.card > :last-child { margin-bottom: 0; }

/* ---------- index lists ---------- */
.index-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .index-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .index-list { grid-template-columns: repeat(3, 1fr); } }
.index-list li { margin: 0; }
.index-item {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white); text-decoration: none; color: var(--body);
}
.index-item:hover { border-color: var(--teal); box-shadow: 0 6px 22px rgba(14, 104, 124, .09); }
.index-item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.index-item .body { padding: 1rem 1.1rem 1.15rem; }
.index-item h3 { margin: .1rem 0 .45rem; font-size: 1.08rem; }
.index-item p { margin: 0; font-size: .92rem; color: var(--muted); }
.meta { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.group-head { margin-top: 2.5rem; }

/* ---------- article ---------- */
.article { max-width: 44rem; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; margin-bottom: 1.6rem; }
.article-head h1 { margin-bottom: .35em; }
.article-body { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body summary { font-family: var(--sans); }
.article-body > h1:first-child { margin-top: 0; }
.article-body > h1 + p em { font-style: normal; color: var(--muted); font-size: .92rem; }
.article-body p > img:only-child { border-radius: var(--radius); margin: 1.6rem 0; }
.article-body a.anchor { display: none; }
.article-hero img { border-radius: var(--radius); margin-bottom: 1.6rem; }

/* ---------- forms ---------- */
.form-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; background: var(--teal-tint); max-width: 34rem;
}
.form-card label { display: block; margin: 0 0 .9rem; font-weight: 600; color: var(--ink); font-size: .93rem; }
.form-card input, .form-card select, .form-card textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .62rem .75rem;
  font: inherit; font-weight: 400; color: var(--body);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.form-card textarea { min-height: 7rem; resize: vertical; }
.form-card button {
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--teal); color: #fff; border: 0;
  padding: .7rem 1.4rem; border-radius: 999px;
}
.form-card button:hover { background: var(--teal-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-form-result] { margin-top: .9rem; font-weight: 600; color: var(--teal-dark); }
[data-form-result]:not([data-form-state]) { display: none; }
[data-form-result][data-form-state="error"] { color: #8c2f16; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- video ---------- */
.film { margin: 1.6rem 0; }
.film video { width: 100%; border-radius: var(--radius); background: #000; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c8dade; padding: 3rem 0 2rem; margin-top: 3rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot h2 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 .7rem; }
.foot-grid { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 .45rem; font-size: .93rem; }
.site-foot address { font-style: normal; font-size: .93rem; line-height: 1.7; }
.foot-bottom {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .82rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
}
.emergency {
  background: var(--cream); color: #6b3a12; border-radius: var(--radius);
  padding: .8rem 1.1rem; font-size: .9rem; margin: 1.4rem 0;
}

dl { margin: 1.4rem 0; display: grid; gap: .2rem 1.4rem; }
@media (min-width: 720px) { dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
dl dd {
  margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 700; color: var(--teal); line-height: 1.1;
}
dl dt { margin: 0 0 1rem; font-size: .95rem; color: var(--muted); }
.hero dl dd { color: #fff; }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--teal-tint); padding: 1rem 1.3rem; margin: 0 0 2rem;
  max-width: 34rem;
}
.toc h2 { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: 0 0 .2rem; font-size: .93rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 99; }
