/* ==========================================================================
   Company pages: about, contact, common questions, insurance, patient forms,
   privacy policy (also the template for terms and account deletion).
   Loaded after style.css and inner.css. Uses only the tokens from style.css.
   ========================================================================== */

/* Vertical rhythm inside the sheet: each block is a section of its own */
.co-stack { display: grid; gap: var(--section); }
.co-stack > .cta-band { margin-top: calc(var(--section) * -.35); }

/* Page hero: inner.css gives .page-hero__in a max-width, which on a .wrap
   centres the block. Keep the full wrap width so the hero lines up left with
   the header, and cap the text instead. */
.page-hero .wrap.page-hero__in { max-width: none; justify-items: start; }
.page-hero__in > h1 { max-width: 52rem; }

/* Page hero: small extras */
.co-updated { font-size: var(--fs-small) !important; color: var(--water-mute); }

/* Closing band: text column */
.co-cta__text { display: grid; gap: .75rem; max-width: 40rem; }
.co-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }

/* Badge line, as in the hero and footer */
.co-badge { display: flex; align-items: center; gap: .9rem; max-width: 22rem; font-size: var(--fs-small); line-height: 1.4; }
.co-badge img { width: 3.25rem; flex: none; }

/* Quiet note strip (reuses .visit__forms from the homepage) */
.co-note { margin-top: 0; }
.co-note .link { white-space: nowrap; }

/* Jump links in a side card */
.co-jump ul { border-top: 1px solid var(--rule); }
.co-jump li { border-bottom: 1px solid var(--rule); }
.co-jump a {
  display: block; padding: .6rem 0;
  font-size: var(--fs-small); color: var(--water); text-decoration: none;
}
.co-jump a:hover { color: var(--spring-ink); text-decoration: underline; text-underline-offset: .22em; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.co-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem); row-gap: clamp(2rem, 4vw, 3.5rem);
}
.co-intro__photo { grid-column: 1 / span 7; }
.co-intro__photo .unveil { border-radius: var(--leaf-a); overflow: hidden; }
.co-intro__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.co-intro__text { grid-column: 8 / -1; align-self: center; display: grid; gap: 1.1rem; }

.co-doctor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.co-doctor__photo { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.co-doctor__photo .unveil { border-radius: var(--leaf-b); overflow: hidden; background: var(--spring-tint); }
.co-doctor__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.co-doctor__text { display: grid; gap: 1.1rem; max-width: 42rem; }
.co-doctor__text .person__role { margin-bottom: -.4rem; }
.co-doctor__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: .6rem; }

.co-team { display: grid; }
.co-team .section-head { margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.profile {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.profile .person__photo { margin-bottom: 0; }
.profile__text { display: grid; gap: .9rem; max-width: 44rem; }
.profile__text h3 { font-size: var(--fs-h3); }
.profile__text .person__role { margin-top: -.6rem; }
.profile .profile__text p:last-child { font-size: var(--fs-body); margin-top: 0; }

.co-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.co-why__photo { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.co-why__photo .unveil { border-radius: var(--leaf-a); overflow: hidden; }
.co-why__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.co-why__text { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.co-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.co-why__list > div { display: grid; gap: .5rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.co-why__list dt { position: relative; padding-left: 1.4rem; font-size: var(--fs-h3); font-weight: 450; letter-spacing: -.01em; line-height: 1.25; color: var(--water); }
.co-why__list dt::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .7rem; height: .7rem;
  background: var(--leaf); border-radius: 0 100% 0 100%;
}
.co-why__list dd { margin: 0; font-size: var(--fs-small); }

.co-quote {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 6vw, 5rem);
  background: var(--leaf-tint); border-radius: var(--leaf-b);
}
.co-quote blockquote { margin: 0; max-width: 54rem; }
.co-quote p {
  font-size: clamp(1.45rem, 1.05rem + 1.8vw, 2.5rem); font-weight: 300;
  line-height: 1.25; letter-spacing: -.02em; color: var(--water); text-wrap: balance;
}
.co-quote p::before { content: "\201C"; }
.co-quote p::after { content: "\201D"; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.co-contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.co-contact__main { display: grid; justify-items: start; }
.co-contact__main .contact__phone { margin-block: 1rem 2.25rem; }
.co-ways { display: grid; width: 100%; border-top: 1px solid var(--rule); }
.co-ways li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--rule); }
.co-ways__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--spring-tint); color: var(--spring-ink);
}
.co-ways h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.co-ways address { margin-bottom: .45rem; color: var(--water-soft); }
.co-ways .link { overflow-wrap: anywhere; }

.co-contact__photo { position: relative; }
.co-contact__photo .unveil { border-radius: var(--leaf-b); overflow: hidden; }
.co-contact__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; }
.co-contact__photo .spot__chip { right: auto; left: -1.25rem; bottom: 2.5rem; max-width: calc(100% + .5rem); white-space: normal; }

.co-plan { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.co-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.co-card {
  display: grid; gap: .8rem; align-content: start; justify-items: start;
  padding: clamp(1.5rem, 3vw, 2rem); background: var(--mist); border-radius: var(--r-l);
}
.co-card:nth-child(2) { background: var(--spring-tint); }
.co-card:nth-child(3) { background: var(--leaf-tint); }
.co-card__icon { width: 1.75rem; height: 1.75rem; color: var(--spring-ink); }
.co-card p { font-size: var(--fs-small); }
.co-card .link { margin-top: .3rem; }

/* --------------------------------------------------------------------------
   Common questions
   -------------------------------------------------------------------------- */
.co-faqs { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.co-faq h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.co-faq .faq__panel a { color: var(--spring-ink); font-weight: 450; text-underline-offset: .2em; }
.co-faq .faq__panel a:hover { color: var(--water); }

/* --------------------------------------------------------------------------
   Insurance
   -------------------------------------------------------------------------- */
.co-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: .9rem; }
.co-logos li {
  display: grid; place-items: center; min-height: 6.25rem; padding: 1.25rem 1.5rem;
  background: var(--paper); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--rule);
}
.co-logos img { width: auto; height: auto; max-width: 100%; max-height: 2.6rem; }

.plans { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.plans__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: end; }
.plans__head > div:first-child { display: grid; gap: .9rem; }
.plans__search { display: grid; gap: .5rem; }
.plans__search label { font-size: var(--fs-small); font-weight: 500; color: var(--water); }
.plans__field { position: relative; }
.plans__field .icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--water-mute); pointer-events: none; }
.plans__field input {
  width: 100%; min-height: 3.25rem; padding: .7rem 1.25rem .7rem 3.1rem;
  font: inherit; font-size: 1rem; color: var(--water);
  background: var(--paper); border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--water-mute);
  transition: box-shadow .2s;
}
.plans__field input::placeholder { color: var(--water-mute); opacity: 1; }
.plans__field input:hover { box-shadow: inset 0 0 0 1.5px var(--water); }
.plans__field input:focus-visible { outline: 3px solid var(--spring-ink); outline-offset: 3px; box-shadow: inset 0 0 0 1.5px var(--water); }
.plans__count { font-size: var(--fs-small); color: var(--water-mute); }
html:not(.js) .plans__search { display: none; }

.plans__grid {
  columns: 4 13rem; column-gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--mist); border-radius: var(--leaf-a-sm);
}
.plans__group { break-inside: avoid; padding-bottom: 1.25rem; }
.plans__letter {
  font-size: 1rem; font-weight: 500; color: var(--spring-ink);
  padding-bottom: .35rem; margin-bottom: .2rem; border-bottom: 1px solid var(--rule);
}
.plans__list { font-size: var(--fs-small); }
.plans__list li { padding-block: .3rem; }
.plans__empty { padding: 1.25rem 1.5rem; border-radius: var(--r-m); background: var(--leaf-tint); color: var(--water); }

/* --------------------------------------------------------------------------
   Patient forms
   -------------------------------------------------------------------------- */
.co-forms { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.co-forms h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 1.25rem; }
.form-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.1rem; height: 100%;
  padding: 1.5rem; background: var(--paper); border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none; color: var(--water-soft);
  transition: box-shadow .3s, transform .3s var(--ease), background-color .3s;
}
.form-card:hover { box-shadow: inset 0 0 0 1px var(--rule), var(--lift-1); transform: translateY(-2px); }
.form-card:focus-visible { border-radius: var(--r-l); }
.form-card__icon {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 1rem 2rem 1rem 2rem; background: var(--leaf-tint); color: var(--water);
}
.form-card__text { display: grid; gap: .3rem; align-content: start; }
.form-card__text strong { font-size: 1.1rem; font-weight: 450; line-height: 1.3; color: var(--water); }
.form-card__text span { font-size: var(--fs-small); line-height: 1.5; }
.form-card__cta {
  grid-column: 2; align-self: end;
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 500; color: var(--spring-ink);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .28em;
  text-decoration-color: rgba(11, 110, 121, .35);
}
.form-card__cta .icon { width: 1.1em; height: 1.1em; }
.form-card:hover .form-card__cta { color: var(--water); text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.co-legal .prose > h2:first-child { margin-top: 0; }
/* style.css removes list markers; give prose lists the leaf bullet */
.co-legal .prose ul { padding-left: 0; }
.co-legal .prose ul li { position: relative; padding-left: 1.6rem; }
.co-legal .prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: .7rem;
  background: var(--leaf); border-radius: 0 100% 0 100%;
}
.co-legal .prose h2 { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 69.99rem) {
  .co-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-cards .co-card:last-child { grid-column: 1 / -1; }
  .form-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 56.24rem) {
  .co-intro__photo, .co-intro__text { grid-column: 1 / -1; }
  .co-doctor, .co-why, .co-contact { grid-template-columns: minmax(0, 1fr); }
  .co-doctor__photo, .co-why__photo { position: static; max-width: 30rem; }
  .co-why__photo img { aspect-ratio: 4 / 3; }
  .co-contact__photo { max-width: 30rem; }
  .co-contact__photo .spot__chip { left: .75rem; bottom: 1.5rem; }
  .plans__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 37.49rem) {
  .co-stack > .cta-band { margin-top: calc(var(--section) * -.2); }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile .person__photo { max-width: 12rem; }
  .co-why__list { grid-template-columns: minmax(0, 1fr); }
  .co-cards { grid-template-columns: minmax(0, 1fr); }
  .co-cards .co-card:last-child { grid-column: auto; }
  .co-ways__icon { width: 2.5rem; height: 2.5rem; }
  .plans__grid { padding: 1.5rem 1.25rem; }
  .co-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .co-logos li { min-height: 4.75rem; padding: 1rem; }
  .co-logos img { max-height: 2rem; }
  .form-card { padding: 1.25rem; }
  .form-card__cta { grid-column: 1 / -1; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .co-note .link { white-space: normal; }
}

@media (max-width: 37.49rem) {
  .page-hero__actions { width: 100%; }
  .page-hero__actions .btn { flex: 1 1 100%; }
}
