@import url("https://fonts.googleapis.com/css2?family=Forum&display=swap");

:root {
  --bg: #f8f9fa;
  --surface: #fff;
  --text: #303a4d;
  --muted: #666;
  --accent: #303a4d;
  --accent-hover: #1a1f2e;
  --border: #e1e4eb;
  --max: 72.624rem;
  --narrow: 40rem;
  /* Body offset under fixed header (tune if bar height changes). */
  --header-height: 5.75rem;
  /* Overwritten by JS: real header height (px) when fixed, else 0. Fallback until script runs: */
  --header-scroll-offset: 5.75rem;
}

html {
  scroll-padding-top: 0;
}

/* In-page # targets: offset = header bottom, no extra cushion (offset is measured in JS). */
main#main,
main > section[id] {
  scroll-margin-top: var(--header-scroll-offset);
}

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

body {
  margin: 0;
  font-family: "Forum", serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-height);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0.938rem;
}

.narrow {
  max-width: var(--narrow);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.938rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo__img {
  height: auto;
  max-height: 2.5rem;
  width: auto;
  display: block;
}

.logo:hover .logo__img {
  opacity: 0.88;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}

.nav a:hover {
  color: var(--text);
}

.header-cta {
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.3s;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-hover);
}

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #303a4d;
  /* Navy scrim over photo so white type stays readable on bright or busy images */
  background-image: linear-gradient(
      rgba(26, 31, 46, 0.48),
      rgba(48, 58, 77, 0.36)
    ),
    url("img/monroe%20bridge.jpg");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  padding: 3rem 0.938rem 4rem;
  position: relative;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
  max-width: min(36ch, 100%);
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  margin: 0 auto 2rem;
  max-width: 33.375rem;
  font-size: 1.225rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 2.5rem;
  border-radius: 30px;
  background-color: var(--accent);
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-size: 1.2rem;
  line-height: 1.1;
  transition: background 0.3s;
}

.hero-cta:hover {
  background-color: var(--accent-hover);
}

.section {
  padding: 3.5rem 0;
}

/* Full-bleed location band; vertical rhythm comes from inner container */
.section--clinic-locations {
  padding-top: 0;
  padding-bottom: 0;
}

.section--viewer {
  padding-top: 2rem;
}

.viewer-title {
  margin-top: 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.section p,
.section ul {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.section p:last-child,
.section ul:last-child {
  margin-bottom: 0;
}

/* Surgery location cards (light section — same card rhythm as clinic maps) */
#surgery-locations .surgery-locations__wrap {
  padding-top: 0;
  padding-bottom: 0;
}

#surgery-locations .surgery-locations__heading {
  text-align: center;
  margin: 0 0 2.5rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

#surgery-locations .surgery-locations__row {
  display: grid;
  column-gap: 24px;
  row-gap: 48px;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

@supports selector(:has(*)) {
  #surgery-locations .surgery-locations__row:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }

  #surgery-locations .surgery-locations__row:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }

  #surgery-locations .surgery-locations__row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }

  #surgery-locations .surgery-locations__row:has(> :nth-child(1):last-child) {
    grid-template-columns: max-content;
    max-width: fit-content;
    margin: 0 auto;
  }
}

#surgery-locations .surgery-locations__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 217px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  cursor: pointer;
  font-family: "Forum", serif;
  background: var(--surface);
}

#surgery-locations .surgery-locations__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

#surgery-locations .surgery-locations__map {
  width: 169px;
  height: 169px;
  margin-bottom: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#surgery-locations .surgery-locations__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

#surgery-locations .surgery-locations__address {
  text-align: center;
}

#surgery-locations .surgery-locations__title {
  max-width: 200px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 10px;
  font-size: 1.0625rem;
  color: var(--text);
}

#surgery-locations .surgery-locations__text {
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.45;
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 48rem) {
  #surgery-locations .surgery-locations__row {
    grid-template-columns: 1fr;
    row-gap: 28px;
    max-width: 100% !important;
    margin: 0 !important;
    justify-items: center;
  }

  @supports selector(:has(*)) {
    #surgery-locations .surgery-locations__row:has(> :nth-child(4):last-child),
    #surgery-locations .surgery-locations__row:has(> :nth-child(3):last-child),
    #surgery-locations .surgery-locations__row:has(> :nth-child(2):last-child),
    #surgery-locations .surgery-locations__row:has(> :nth-child(1):last-child) {
      grid-template-columns: 1fr !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }

  #surgery-locations .surgery-locations__item {
    max-width: fit-content;
    padding: 1rem;
  }

  #surgery-locations .surgery-locations__map {
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
  }

  #surgery-locations .surgery-locations__heading {
    margin-bottom: 1.75rem;
    font-size: 2rem;
  }

  #surgery-locations .surgery-locations__title {
    font-size: 1.125rem;
    max-width: none;
  }
}

/* Spokane ENT–style location cards; hero-style scrim over background photo */
#clinic-locations .locations {
  background-color: #303a4d;
  background-image: linear-gradient(
      rgba(26, 31, 46, 0.48),
      rgba(48, 58, 77, 0.36)
    ),
    url("img/spokane%20falls.jpg");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  position: relative;
}

#clinic-locations .locations__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 0.938rem 4rem;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

#clinic-locations .locations__heading {
  text-align: center;
  margin: 0 0 3rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 20px rgba(0, 0, 0, 0.35);
}

#clinic-locations .locations__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

@supports selector(:has(*)) {
  #clinic-locations .locations__row:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }

  #clinic-locations .locations__row:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }

  #clinic-locations .locations__row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, max-content);
    max-width: fit-content;
    margin: 0 auto;
  }

  #clinic-locations .locations__row:has(> :nth-child(1):last-child) {
    grid-template-columns: max-content;
    max-width: fit-content;
    margin: 0 auto;
  }
}

#clinic-locations .locations__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 217px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  cursor: pointer;
  font-family: "Forum", serif;
}

#clinic-locations .locations__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#clinic-locations .locations__map {
  width: 169px;
  height: 169px;
  margin-bottom: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

#clinic-locations .locations__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

#clinic-locations .locations__address {
  text-align: center;
}

#clinic-locations .locations__address-title {
  max-width: 169px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 12px;
  font-size: 1.125rem;
  color: #fff;
}

#clinic-locations .locations__address-text {
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 328px;
  margin: 0 0 20px;
  color: #fff;
  font-size: 1rem;
}

#clinic-locations .locations__card-note {
  margin: -8px 0 0;
  max-width: 200px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

#clinic-locations .locations__item--washington .locations__address-text {
  margin-bottom: 12px;
}

/* Washington card: wrapper is a div so the practice link is not nested inside the maps <a>. */
#clinic-locations .locations__item--washington {
  cursor: default;
}

#clinic-locations .locations__item--washington .locations__item-cardlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#clinic-locations .locations__card-note-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#clinic-locations .locations__card-note-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 48rem) {
  #clinic-locations .locations__row {
    grid-template-columns: 1fr;
    row-gap: 30px;
    column-gap: 16px;
    max-width: 100% !important;
    margin: 0 !important;
    justify-items: center;
  }

  @supports selector(:has(*)) {
    #clinic-locations .locations__row:has(> :nth-child(4):last-child),
    #clinic-locations .locations__row:has(> :nth-child(3):last-child),
    #clinic-locations .locations__row:has(> :nth-child(2):last-child),
    #clinic-locations .locations__row:has(> :nth-child(1):last-child) {
      grid-template-columns: 1fr !important;
      max-width: 100% !important;
      margin: 0 !important;
    }
  }

  #clinic-locations .locations__item {
    max-width: fit-content;
    width: auto;
    padding: 1rem;
  }

  #clinic-locations .locations__map {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  #clinic-locations .locations__heading {
    margin-bottom: 2rem;
    font-size: 2rem;
  }

  #clinic-locations .locations__address-title {
    font-size: 1.25rem;
    max-width: none;
  }
}

.intro {
  max-width: 42rem;
  margin-bottom: 1.5rem !important;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem;
}

.card--practice .card__brand {
  margin: 0 0 1.25rem;
  min-height: clamp(4.5rem, 10vw, 6.5rem);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--practice .card__logo {
  display: block;
  height: auto;
  max-height: 2.75rem;
  width: auto;
  max-width: 100%;
}

.card--practice .card__logo--favicon {
  max-height: clamp(4.5rem, 10vw, 6.5rem);
  max-width: clamp(4.5rem, 10vw, 6.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.card--practice .card__logo--wordmark {
  max-height: clamp(3rem, 8vw, 4rem);
  max-width: min(100%, 20rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.card--practice .card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card p {
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent-hover);
}

button.btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn--soon:disabled,
.btn--soon[disabled] {
  background: var(--muted);
  color: #fff !important;
  opacity: 0.85;
  cursor: not-allowed;
}

.btn--soon:disabled:hover,
.btn--soon[disabled]:hover {
  background: var(--muted);
}

.btn-secondary {
  background: var(--text);
}

.btn-secondary:hover {
  background: var(--accent-hover);
}

.embed-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.embed-note--tight {
  margin: 0;
}

.gateway-panel {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
  color: var(--muted);
}

.footer-inner p {
  margin: 0.35rem 0;
}

.footer-links a {
  color: var(--accent);
}

/* Board of directors — same card pattern as ENT / general surgery team grids */
.board-team__title {
  text-align: center;
  margin: 0 auto 3rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.board-team .team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 64px;
  grid-template-columns: repeat(auto-fill, minmax(217px, 1fr));
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

.board-team .team__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 217px;
}

.board-team .item-team__img {
  width: 169px;
  height: 169px;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.board-team .item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 15%;
}

.board-team .item-team__name {
  max-width: 169px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 12px;
  color: var(--text);
}

.board-team .item-team__role {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--muted);
  max-width: 169px;
}

.board-team .item-team__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 217px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.board-team .item-team__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.board-team .item-team__link:hover .item-team__name {
  color: var(--accent);
}

.board-team .item-team__link--static {
  cursor: default;
  pointer-events: none;
}

.board-team .item-team__link--static:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.board-team .item-team__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  box-sizing: border-box;
}

.board-team .item-team__placeholder-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 0 0.5rem;
  line-height: 1.3;
}

/* ── Bio / leadership detail page ── */
.bio-hero {
  background: url("img/spokane-glassy-river-large.jpg") center / cover no-repeat;
  color: #fff;
  padding: 0;
  text-align: center;
  height: 338px;
  min-height: 338px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  pointer-events: none;
}

.bio-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  position: relative;
  z-index: 1;
}

.bio-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bio-top {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.bio-photo {
  flex-shrink: 0;
  width: 240px;
}

.bio-photo img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 3 / 3.5;
}

.bio-about {
  flex: 1;
}

.bio-about__name {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.bio-about__title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
}

.bio-about p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.bio-about p:last-child {
  margin-bottom: 0;
}

.bio-accordion {
  border-top: 1px solid var(--border);
}

.bio-accordion__item {
  border-bottom: 1px solid var(--border);
}

.bio-accordion__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.bio-accordion__button:hover {
  color: var(--accent);
}

.bio-accordion__icon {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.bio-accordion__item--open .bio-accordion__icon {
  transform: rotate(180deg);
}

.bio-accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.bio-accordion__item--open .bio-accordion__content {
  max-height: 600px;
}

.bio-accordion__inner {
  padding: 0 0 1.5rem;
}

.bio-accordion__inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bio-accordion__inner li {
  padding: 0.5rem 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.bio-accordion__inner li:last-child {
  border-bottom: none;
}

.bio-accordion__inner li strong {
  color: var(--text);
}

@media (max-width: 48rem) {
  .bio-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-photo {
    width: 180px;
  }

  .bio-about__name,
  .bio-about__title {
    text-align: center;
  }
}

@media (max-width: 48rem) {
  body {
    padding-top: 0;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
}
