/* Integration fixes for the supplied MEDIBRIDGE design. */
:root {
  --mb-card-radius: 14px;
  --mb-panel-radius: 16px;
  --mb-media-radius: 16px;
  --mb-surface-border: 1px solid #e9eef5;
  --mb-surface-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --mb-media-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html, body {
  max-width: 100%;
}

main {
  overflow: clip;
}

.site-content-image {
  display: block;
  width: 100%;
  height: auto;
  border: var(--mb-surface-border);
  border-radius: var(--mb-media-radius);
  box-shadow: var(--mb-media-shadow);
}

.tech-image .site-content-image {
  max-width: 100%;
}

.about-card,
.benefit-card,
.service-box,
.feature-box,
.specialty-box,
.security-item,
.tech-box,
.result-card {
  border: var(--mb-surface-border);
  border-radius: var(--mb-card-radius);
  box-shadow: var(--mb-surface-shadow);
}

.comparison-table,
.consultation-form,
.contact-card {
  border: var(--mb-surface-border);
  border-radius: var(--mb-panel-radius);
  box-shadow: var(--mb-surface-shadow);
}

.btn {
  border-radius: 10px;
}

.mobile-hero-image img {
  border: var(--mb-surface-border);
  border-radius: var(--mb-media-radius);
  box-shadow: var(--mb-media-shadow);
}

.about-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0d6efd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-content > p {
  max-width: 720px;
  color: #475569;
  line-height: 1.8;
}

.about-card {
  position: relative;
  padding-top: 58px;
}

.about-card-icon {
  position: absolute;
  top: 20px;
  left: 25px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #0d6efd;
  background: #eef5ff;
}

.about-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.about-action span {
  color: #64748b;
  font-size: 14px;
}

.trust-marquee {
  position: relative;
}

.marquee-track {
  flex-shrink: 0;
}

.marquee-item {
  flex-shrink: 0;
  white-space: nowrap;
  color: #e7f3ff;
}

.mobile-nav-toggle {
  padding: 0;
  border: 0;
  background: transparent;
}

.hero > img {
  object-fit: cover;
}

.header .logo .site-logo-image {
  width: 84px;
  max-height: 46px;
  margin: 0;
  object-fit: contain;
}

.header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1200px) {
  .header .site-header-container {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 24px;
  }

  .header .site-header-container .logo {
    justify-self: start;
    margin-right: 0 !important;
  }

  .header .site-header-container .navmenu {
    justify-self: center;
  }

  .header .site-header-container .cta-btn {
    justify-self: end;
    padding: 12px 18px;
    text-align: center;
  }

  .header .navmenu > ul {
    justify-content: center;
    gap: clamp(10px, 1.15vw, 22px);
  }

  .header .navmenu > ul > li {
    padding: 0;
  }

  .header .navmenu > ul > li > a,
  .header .navmenu > ul > li > a:focus {
    padding: 12px 0;
    font-size: 14px;
  }
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-brand-copy strong {
  color: #0f172a;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-brand-copy small {
  margin-top: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
}

.consultation-form [hidden] {
  display: none !important;
}

.consultation-form .loading,
.consultation-form .error-message,
.consultation-form .sent-message {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.consultation-form .error-message {
  color: #842029;
  background: #f8d7da;
}

.consultation-form .sent-message {
  color: #0f5132;
  background: #d1e7dd;
}

.consultation-form .loading {
  color: #084298;
  background: #cfe2ff;
}

.legal-page .page-title h1 {
  color: #fff;
}

.legal-page .legal-section > .container {
  max-width: 1040px;
}

.legal-page .legal-section h2 {
  scroll-margin-top: 160px;
}

.legal-page .legal-section a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cookies {
  scroll-margin-top: 180px;
}

@media (max-width: 1199px) {
  .header .cta-btn {
    display: none;
  }

  .navmenu .d-xl-none .btn {
    display: block;
    width: 100%;
    margin: 15px 0 10px;
    padding: 14px 20px;
    border-radius: 14px;
    color: #fff !important;
    background: #0b5ed7;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero .container {
    max-width: 960px;
  }

  .hero-line {
    font-size: 36px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .hero .container {
    max-width: 1140px;
  }

}

@media (min-width: 1400px) and (max-width: 1599px) {
  .hero .container {
    max-width: 1320px;
  }

}

@media (min-width: 1600px) {
  .container,
  .hero .container {
    max-width: 1680px;
  }

  .header .branding {
    min-height: 76px;
  }

  .header .logo .site-logo-image {
    width: 96px;
    max-height: 52px;
  }

  .site-brand-copy strong {
    font-size: 28px;
  }

  .site-brand-copy small {
    font-size: 11px;
  }

  .hero {
    min-height: 540px;
  }

  .hero-line {
    font-size: 44px;
  }

  .hero-highlight {
    font-size: 72px;
  }

  .hero p {
    max-width: 760px;
    font-size: 18px;
  }

  .section {
    padding-block: 84px;
  }

  .section-title {
    padding-bottom: 54px;
  }

  .section-title h2,
  .about .section-header h2 {
    font-size: 38px;
  }

  .section-title p {
    max-width: 1120px;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.75;
  }

  .about .content > p {
    font-size: 17px;
    line-height: 1.8;
  }

  .services .row > .col-lg-4 {
    width: 25%;
  }

  .service-box,
  .feature-box,
  .tech-box {
    padding: 28px;
  }

  .service-box h4,
  .feature-box h4 {
    font-size: 20px;
  }

  .service-box p,
  .feature-box p,
  .tech-box p {
    font-size: 15px;
  }

  .specialty-box {
    min-height: 138px;
  }

  .comparison-table {
    max-width: 1120px;
  }
}

@media (max-width: 991px) {
  .header .logo .site-logo-image {
    width: 68px;
    max-height: 38px;
  }

  .site-brand-copy strong {
    font-size: 21px;
  }

  .site-brand-copy small {
    margin-top: 4px;
    font-size: 9px;
  }

  .hero {
    flex-direction: column;
  }

  .hero > img {
    display: none !important;
  }

  .hero .container.position-relative {
    width: 100%;
    text-align: center;
  }

  .hero .row > div {
    margin-inline: auto;
  }

  .hero p {
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .header .topbar {
    height: auto;
    min-height: 40px;
    padding: 6px 0;
  }

  .header .contact-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    font-size: 12px;
  }

  .header .contact-info .ms-4 {
    margin-left: 0 !important;
  }

  .hero-line {
    font-size: 30px;
    white-space: normal;
  }

  .hero-highlight {
    font-size: clamp(36px, 10vw, 44px);
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .header .logo .site-logo-image {
    width: 58px;
    max-height: 32px;
  }

  .header .logo {
    gap: 7px;
  }

  .site-brand-copy strong {
    font-size: 18px;
  }

  .site-brand-copy small {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .consultation-form {
    padding: 24px 18px;
  }

  .consultation-form .form-control,
  .consultation-form .form-select {
    padding-inline: 13px;
    font-size: 14px;
  }

  .consultation-form .btn {
    padding-inline: 12px;
    font-size: 15px;
  }

  .comparison-header {
    font-size: 14px;
  }

  .comparison-header div,
  .comparison-row div {
    padding: 12px 9px;
  }

  .comparison-row div {
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
