/* ============================================================
   SMC Diagnostic Center — Header & Hero Redesign
   Loaded after main.css — overrides scoped to new classes so
   nothing else on the site is affected.
============================================================ */

/* ---------- shared helpers ---------- */
.smc-header, .smc-header * { box-sizing: border-box; }

/* ============================================================
   1. TOP UTILITY BAR
============================================================ */
.smc-topbar {
  background: linear-gradient(90deg, var(--header) 0%, var(--brand-blue) 100%);
  color: rgba(255,255,255,.92);
  font-size: 13.5px;
}
.smc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  gap: 20px;
}
.smc-topbar-info {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.smc-topbar-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  white-space: nowrap;
}
.smc-topbar-info li i {
  color: var(--white);
  font-size: 13px;
}
.smc-topbar-info li a {
  color: rgba(255,255,255,.92);
  transition: color .2s;
}
.smc-topbar-info li a:hover { color: var(--theme); }

.smc-topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.smc-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
}
.smc-topbar-badge i { color: #6CA8A9; }

.smc-topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.smc-topbar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all .25s var(--ease);
}
.smc-topbar-social a:hover {
  background: var(--theme);
  transform: translateY(-2px);
}

@media (max-width: 1199px) {
  .smc-topbar-info { gap: 16px; }
}
/* Short viewports: hide the utility topbar entirely pre-scroll so the
   header doesn't eat most of a short window before any page content
   is visible — it already disappears once .is-sticky is added on
   scroll, this just applies the same idea based on viewport height. */
@media (max-height: 500px) {
  .smc-topbar { display: none !important; }
  .smc-header .header-main { height: 70px; }
}

/* ============================================================
   2. MAIN HEADER
============================================================ */
.smc-header .header-main {
  height: 120px;
  border-bottom: 1px solid rgba(10,47,107,.07);
}
.smc-header.is-sticky .header-main {
  height: 80px;
}
.smc-header.is-sticky {
  box-shadow: 0 10px 40px rgba(10,47,107,.12);
}

/* logo */
.smc-header .site-logo img { max-height: 100px; }
.smc-header.is-sticky .site-logo img { max-height: 50px; }

/* nav — pill highlight instead of plain underline */
.smc-header .nav-menu {
  gap: 2px;
  /* background: rgba(10,47,107,.035); */
  padding: 6px;
  border-radius: 40px;
}
.smc-header .nav-menu > li { height: auto; }
.smc-header .nav-menu > li > a {
  height: auto;
  padding: 11px 20px;
  border-radius: 30px;
  font-size: 15px;
  transition: all .25s var(--ease);
}
.smc-header .nav-menu > li > a::after { display: none; }
.smc-header .nav-menu > li.tfb-open > a,
.smc-header .nav-menu > li > a:hover {
  background: var(--white);
  color: var(--theme);
  box-shadow: 0 6px 18px rgba(10,47,107,.1);
}
.smc-header .nav-menu > li > a.is-active,
.smc-header .nav-menu > li > a[aria-current="page"] {
  background: var(--theme);
  color: #fff !important;
}

/* header actions */
.smc-header .header-actions { gap: 14px; }

.smc-call-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: 40px;
  background: var(--body);
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.smc-call-chip:hover { background: var(--transparent); }
.smc-call-chip .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.smc-call-chip .txt { display: flex; flex-direction: column; line-height: 1.25; }
.smc-call-chip .txt small {
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.smc-call-chip .txt strong {
  font-size: 14.5px;
  color: var(--header);
  font-weight: 800;
  font-family: var(--header-font);
}

.smc-header #searchToggle i {
  background: var(--body);
  width: 48px;
  height: 48px;
}

.smc-cta-btn.ta-button-02 {
  background: linear-gradient(120deg, var(--theme) 0%, #FF7A3D 100%);
  border-radius: 40px;
  padding: 15px 26px;
  box-shadow: 0 10px 24px rgba(241,90,36,.28);
}
.smc-cta-btn.ta-button-02:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(241,90,36,.36);
}

.smc-header .hamburger {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--header);
}
.smc-header .hamburger:hover { background: var(--theme); }

@media (max-width: 991px) {
  .smc-header .header-main { height: 80px; }
  .smc-call-chip .txt { display: none; }
  .smc-call-chip { padding: 10px; }
}

/* ============================================================
   3. HERO BANNER — v2
============================================================ */
.smc-hero-v2 {
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
  background: linear-gradient(155deg, #071440 0%, var(--header) 45%, var(--brand-blue) 100%);
}

.smc-hero-v2-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.smc-hero-v2-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
}
.smc-hero-v2-bg .blob-orange {
  width: 480px; height: 480px;
  background: var(--theme);
  top: -140px; right: -100px;
  opacity: .3;
}
.smc-hero-v2-bg .blob-teal {
  width: 360px; height: 360px;
  background: var(--accent-teal);
  bottom: -140px; left: -80px;
  opacity: .2;
}
.smc-hero-v2-bg .dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,0) 75%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,0) 75%);
}

.smc-hero-v2 .container-fluid { position: relative; z-index: 2; }

/* --- badge --- */
.smc-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 9px 18px 9px 14px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.smc-badge-v2 .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6CA8A9;
  box-shadow: 0 0 0 4px rgba(110,231,183,.25);
  flex-shrink: 0;
}

/* --- heading --- */
.smc-hero-v2-title {
  color: #fff;
  font-size: 52px;
  line-height: 1.16;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.smc-hero-v2-title .accent {
  position: relative;
  color: #FF9A63;
  font-style: normal;
}
.smc-hero-v2-title .accent svg {
  position: absolute;
  left: 0; bottom: -10px;
  width: 100%;
  height: auto;
}
@media (max-width: 1399px) { .smc-hero-v2-title { font-size: 44px; } }
@media (max-width: 575px)  { .smc-hero-v2-title { font-size: 32px; } }

.smc-hero-v2-desc {
  color: rgba(255,255,255,.78);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}

/* --- inline feature chips --- */
.smc-hero-v2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.smc-hero-v2-chips .chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 40px;
  padding: 9px 16px 9px 9px;
}
.smc-hero-v2-chips .chip .ic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--theme);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.smc-hero-v2-chips .chip span {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

/* --- CTA buttons --- */
.smc-hero-v2-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.smc-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--theme) 0%, #FF7A3D 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 17px 28px;
  border-radius: 40px;
  box-shadow: 0 14px 30px rgba(241,90,36,.35);
  transition: all .3s var(--ease);
}
.smc-btn-solid:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(241,90,36,.45); }
.smc-btn-solid i { font-size: 13px; transition: transform .3s var(--ease); }
.smc-btn-solid:hover i { transform: translateX(4px); }

.smc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.smc-btn-ghost .play-ic {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
  flex-shrink: 0;
}
.smc-btn-ghost:hover { color: #fff; }
.smc-btn-ghost:hover .play-ic { background: #fff; color: var(--header); transform: scale(1.06); }

/* --- trust row --- */
.smc-hero-v2-trust {
  display: flex;
  align-items: center;
  gap: 14px;
}
.smc-avatar-stack {
  display: flex;
}
.smc-avatar-stack span {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme), #FF7A3D);
  border: 2px solid var(--header);
  margin-left: -12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 800;
}
.smc-avatar-stack span:first-child { margin-left: 0; }
.smc-hero-v2-trust .stars { color: #FFC94A; font-size: 13px; letter-spacing: 2px; }
.smc-hero-v2-trust p { color: rgba(255,255,255,.8); font-size: 13.5px; margin: 2px 0 0; }
.smc-hero-v2-trust strong { color: #fff; }

/* --- visual side --- */
.smc-hero-v2-visual {
  position: relative;
  padding: 10px 20px 60px 10px;
}
.smc-hero-v2-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 5 / 4.3;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  border: 6px solid rgba(255,255,255,.08);
}
.smc-hero-v2-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.smc-hero-v2-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,35,79,.55) 0%, rgba(8,35,79,0) 45%);
}
.smc-hero-v2-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--theme);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  z-index: 3;
  border: none;
  transition: all .3s var(--ease);
}
.smc-hero-v2-play::before {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  animation: smcPulse 2.4s ease-out infinite;
}
@keyframes smcPulse {
  0% { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.smc-hero-v2-play:hover { background: var(--theme); color: #fff; }

/* floating cards over the image */
.smc-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 45px rgba(8,35,79,.25);
  z-index: 4;
}
.smc-float-card .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.smc-float-card strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--header);
  line-height: 1.1;
}
.smc-float-card span {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.card-accuracy {
  top: 26px; left: -18px;
}
.card-accuracy .ic { background: var(--transparent); color: var(--theme); }
.card-patients {
  bottom: 30px; right: -18px;
}
.card-patients .ic { background: var(--accent-teal-soft); color: var(--accent-teal); }

@media (max-width: 1399px) {
  .card-accuracy { left: 0; }
  .card-patients { right: 0; }
  /* Reducing just the link padding wasn't enough on its own — the
     nav + logo + "Book Appointment" button still didn't fit in the
     header at 1200–1399px, so the button was getting clipped off the
     right edge. Trim the nav pill's own padding/gap and the button's
     padding too so everything fits with room to spare. */
  .smc-header .nav-menu {
    gap: 0;
    padding: 4px;
  }
  .smc-header .nav-menu > li > a {
    padding: 11px 13px;
    font-size: 14px;
  }
  .smc-header .header-actions { gap: 8px; }
  .smc-header .smc-cta-btn.ta-button-02 {
    padding: 13px 18px;
    font-size: 14px;
  }
}
@media (max-width: 1199px) {
  .smc-float-card { padding: 10px 14px; gap: 9px; }
  .smc-float-card .ic { width: 38px; height: 38px; font-size: 15px; }
  .smc-float-card strong { font-size: 16px; }
}
@media (max-width: 575px) {
  .smc-float-card { display: none; }
}

/* --- bottom stat bar --- */
.smc-hero-v2-statbar-wrap { position: relative; z-index: 3; margin-top: 56px; }
.smc-hero-v2-statbar {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 30px 20px;
}
.smc-hero-v2-statbar .stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.smc-hero-v2-statbar .stat-item .ic {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--theme);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.smc-hero-v2-statbar .stat-item .num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #fff !important;
  font-family: var(--header-font);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}
.smc-hero-v2-statbar .stat-item p {
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  font-weight: 600;
  margin: 6px 0 0;
}
.smc-hero-v2-statbar .row > div {
  border-right: 1px solid rgba(255,255,255,.14);
}
.smc-hero-v2-statbar .row > div:last-child { border-right: none; }

@media (max-width: 991px) {
  .smc-hero-v2-statbar .row > div { border-right: none; }
  .smc-hero-v2-statbar .stat-item { justify-content: flex-start; }
}
@media (max-width: 575px) {
  .smc-hero-v2-title { line-height: 1.22; }
  .smc-hero-v2-cta { flex-direction: column; align-items: flex-start; }
  .smc-hero-v2-visual { padding: 10px 0 40px; }
}

/* room for the hero's own bottom stat bar before the page continues */
.smc-hero-v2 { padding-bottom: 70px; }

/* the "key benefits" bar right after the hero no longer needs to pull
   itself up over the old hero — give it normal breathing room instead */
.smc-hero-v2 + .container .smc-highlight-bar {
  margin-top: 40px;
}
@media (max-width: 991px) {
  .smc-hero-v2 + .container .smc-highlight-bar { margin-top: 20px; }
}
