/* MCHS 2026 brand layer — tokens, lockups, solid accents (no color blends) */

:root {
  --primary-blue: #4191C9;
  --secondary-blue: #7CB2D9;
  --navy: #1D2E5D;
  --navy-mid: #204F70;
  --brand-green: #07A959;
  --brand-yellow: #FFC75B;
  --accent-light: #7CB2D9;
  --text-dark: #1D2E5D;
  --brand-surface-tint: #E8F3FA;
  --brand-overlay: rgba(29, 46, 93, 0.78);
  --site-header-offset: 140px;
  --btn-fill: var(--primary-blue);
  --btn-fill-hover: var(--navy-mid);
  --btn-outline: var(--primary-blue);
  --btn-outline-hover: var(--brand-green);
  --link-hover: var(--secondary-blue);
  --shadow-lg: 0 25px 50px -12px rgba(29, 46, 93, 0.15);
}

body,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea,
.btn, .section-title, .hero-typography h1 {
  font-family: "serenity", sans-serif;
}

body {
  font-weight: 600;
}

h1, h2, h3, .btn, .section-title, .hero-typography h1 {
  font-weight: 700;
}

.hero-typography h1 {
  font-weight: 800;
}

/* Header: secondary lockup desktop, icon mobile */
.logo,
.logo a {
  overflow: visible;
  line-height: 0;
}
.logo .logo-desktop { display: block; height: 96px; width: auto; max-width: min(420px, 46vw); object-fit: contain; }
.logo .logo-mobile { display: none; height: 48px; width: auto; max-width: 200px; object-fit: contain; }

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(29, 46, 93, 0.08);
  box-shadow: 0 1px 3px rgba(29, 46, 93, 0.04);
}

@media (max-width: 992px) {
  :root { --site-header-offset: 112px; }
  .logo .logo-desktop { display: none; }
  .logo .logo-mobile {
    display: block;
    height: 58px;
    width: auto;
    max-width: min(260px, 62vw);
    object-fit: contain;
  }
  .mobile-logo {
    height: 52px;
    width: auto;
    max-width: min(240px, 70vw);
    object-fit: contain;
  }
  .site-header .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .header-inner {
    padding: 0.7rem 0;
    gap: 0.75rem;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0.15rem;
  }
}

@media (max-width: 480px) {
  .logo .logo-mobile {
    height: 52px;
    max-width: min(220px, 68vw);
  }
}

.footer-logo-img {
  height: auto;
  width: auto;
  max-height: 120px;
  max-width: min(360px, 100%);
  object-fit: contain;
  display: block;
}

.footer-logo-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.footer-entity-lockup {
  display: block;
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-entity-lockup--on-dark,
.footer-clinic-lockup {
  filter: brightness(0) invert(1);
}

.footer-clinic-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-clinic-lockup {
  height: 28px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.card-lockup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 1.5rem 1.75rem;
  background: #fff;
}

.card-lockup {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  max-height: 104px;
  object-fit: contain;
  margin: 0 auto;
}

.single-location-lockup,
.location-clinic-lockup {
  display: block;
  width: auto;
  max-width: 280px;
  height: auto;
  max-height: 132px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.location-clinic-lockup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 1.15rem;
}

.location-clinic-lockup-wrap .location-clinic-lockup {
  margin: 0;
}

/* Yellow L-frame on people photos (brand p.15) */
.brand-photo-frame,
.provider-card-media {
  position: relative;
  overflow: hidden;
}

.brand-photo-frame::after,
.provider-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12%;
  bottom: 0;
  top: 18%;
  border-left: 10px solid var(--brand-yellow);
  border-bottom: 10px solid var(--brand-yellow);
  border-bottom-left-radius: 28px;
  pointer-events: none;
}

/* Provider cards: match photo radius to L and avoid clip hairline gap */
.provider-card-media {
  overflow: visible;
  border-radius: 10px;
  border-bottom-left-radius: 28px;
  background: #e2e8f0;
}

.provider-card-media img {
  border-radius: inherit;
}

.provider-card-media::after {
  left: -1px;
  bottom: -1px;
  right: calc(12% - 1px);
  top: calc(18% - 1px);
  border-bottom-left-radius: 29px;
}

.provider-profile-photo-wrap.brand-photo-frame {
  overflow: visible;
  border-radius: 14px;
  border-bottom-left-radius: 28px;
  background: #e2e8f0;
}

.provider-profile-photo-wrap.brand-photo-frame::after {
  left: -1px;
  bottom: -1px;
  right: calc(12% - 1px);
  top: calc(18% - 1px);
  border-bottom-left-radius: 29px;
}

.provider-profile-photo-wrap.brand-photo-frame .provider-profile-photo {
  border-radius: inherit;
}

.provider-card-name {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Desktop color-block panels (brand p.16) */
.brand-panel,
.locations-section .card {
  border-top-left-radius: 36px;
}

.cta-patient-portal,
.cta-green {
  border-top-left-radius: 0;
}

.btn-primary,
.mobile-cta-btn:not(.mobile-cta-outline) {
  background: var(--btn-fill);
  color: #fff;
}

.btn-primary:hover,
.mobile-cta-btn:not(.mobile-cta-outline):hover {
  background: var(--btn-fill-hover);
  color: #fff;
}

/* Outline CTAs must keep readable navy/blue text on white — do not inherit solid fill */
.mobile-cta-btn.mobile-cta-outline {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--primary-blue);
  box-shadow: none;
}

.mobile-cta-btn.mobile-cta-outline:hover {
  background: var(--brand-surface-tint);
  color: var(--navy-mid);
  border-color: var(--navy-mid);
}

.mobile-cta-btn.mobile-cta-outline i {
  color: var(--primary-blue);
}

.hamburger {
  color: var(--navy);
}

.hamburger span {
  background: var(--navy);
}

/* Solid role-based accents — one secondary per context, never blended */
.brand-surface {
  background: #fff;
}

.brand-surface-tint {
  background: var(--brand-surface-tint);
}

.page-hero,
.page-headers-banner {
  background-color: var(--navy);
  position: relative;
}

.page-hero.has-photo::before,
.page-headers-banner.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-overlay);
  pointer-events: none;
}

.page-hero::after,
.page-headers-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--brand-yellow);
  z-index: 2;
}

.brand-accent--yellow.page-hero::after,
.brand-accent--yellow.page-headers-banner::after,
.brand-accent--green.page-hero::after,
.brand-accent--green.page-headers-banner::after,
.brand-accent--blue.page-hero::after,
.brand-accent--blue.page-headers-banner::after,
.brand-accent--primary.page-hero::after,
.brand-accent--primary.page-headers-banner::after {
  background: var(--brand-yellow);
}

.eyebrow {
  color: var(--brand-yellow);
}
.eyebrow::before {
  background: var(--brand-yellow);
}

.btn-outline {
  border-color: var(--btn-outline);
  color: var(--btn-outline);
}
.btn-outline:hover {
  border-color: var(--btn-outline-hover);
  color: var(--btn-outline-hover);
}

.tag,
.single-location-tags .tag {
  border-color: rgba(7, 169, 89, 0.35);
  background: rgba(7, 169, 89, 0.08);
  color: var(--navy);
}

a.tag.tag--link {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

a.tag.tag--link:hover,
a.tag.tag--link:focus-visible {
  background: rgba(7, 169, 89, 0.18);
  border-color: rgba(7, 169, 89, 0.55);
  color: var(--navy);
  text-decoration: underline;
  outline: none;
}

.location-clinic-card-accent {
  background: var(--brand-green) !important;
}

.section-title::after,
.common-page-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.75rem;
  border-radius: 0;
  background: var(--primary-blue);
}

.quick-nav-circle {
  border: 2px solid rgba(255, 199, 91, 0.55);
}

.quick-nav-item:hover .quick-nav-circle {
  background: var(--brand-yellow);
  color: var(--navy);
  border-color: var(--brand-yellow);
}

.hero-side-btn.btn-primary,
.welcome-section .btn-primary,
.cta-banner a.btn-cta-white[href^="tel:"] {
  background: var(--brand-yellow);
  color: var(--navy);
  border-color: var(--brand-yellow);
  box-shadow: 0 8px 24px rgba(29, 46, 93, 0.18);
}

.hero-side-btn.btn-primary:hover,
.welcome-section .btn-primary:hover,
.cta-banner a.btn-cta-white[href^="tel:"]:hover {
  background: var(--navy-mid);
  color: #fff;
  border-color: var(--navy-mid);
}

.provider-card {
  border-left: none;
}

/* Provider listing + detail — green top accent */
.provider-card,
.provider-profile-main,
.provider-profile-contact {
  border-top: 5px solid var(--brand-green);
}

/* Inner-page content blocks — yellow top accent */
.all-location-card,
.locations-section .card,
.map-address-card--plain,
.common-page-block,
.cms-dynamic-form {
  border-top: 5px solid var(--brand-yellow);
}

.location-clinic-card-accent {
  background: var(--brand-yellow) !important;
}

.service-list-section,
.careers-section,
.all-locations-section {
  background: var(--brand-surface-tint);
}

/* CMS body content must inherit approved Serenity theme fonts */
.single-location-description,
.common-page-block-body,
.common-page-block-body *,
.service-list-modal-body,
.service-list-modal-body *,
.welcome-section .content-body,
.welcome-section .content-body *,
.about-section .content-body,
.about-section .content-body * {
  font-family: inherit !important;
}
