/* Medura Theme A — Clinical Clarity
   Persona: Healthcare professional reviewing the site on a lunch break.
   Warm, trustworthy, clean. The existing site polished to a higher standard.
   Primary: forest green #0f8465 | Accent: teal #00c2cb | BG: pure white */

/* ===== HEADER ===== */
.uc-header .uc-navbar-container,
.uc-navbar-container.uc-navbar-transparent {
  background: rgba(255, 255, 255, 0.0) !important;
  border-bottom-color: transparent !important;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease !important;
}

.uc-navbar-container.uc-navbar-sticky {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 20px rgba(15, 132, 101, 0.06) !important;
}

/* Logo: slight green tint mark on header */
.uc-logo {
  position: relative;
}

/* Desktop nav links */
.uc-navbar-nav > li > a.nav-links {
  font-size: 0.925rem !important;
  font-weight: 500 !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 0.5rem !important;
  transition: background 0.15s, color 0.15s !important;
}

.uc-navbar-nav > li > a.nav-links:hover {
  background: rgba(15, 132, 101, 0.07) !important;
  color: #0f8465 !important;
}

/* CTA buttons */
.btn.btn-primary,
.tg-btn.btn-primary {
  background: #0f8465 !important;
  border-color: #0f8465 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn.btn-primary:hover,
.tg-btn.btn-primary:hover {
  background: #0b6b52 !important;
  border-color: #0b6b52 !important;
  transform: translateY(-1px) !important;
}

/* ===== HERO SECTION ===== */
@media (max-width: 767px) {
  /* Give the hero section breathing room (aligns with medura-hero-title --padding-top) */
  body.home .elementor-7599 .e-con.e-parent:first-child,
  body.home [data-elementor-id="7599"] .e-con.e-parent:first-child {
    padding-top: 7.5rem !important;
  }

  .elementor-7599 .e-con.e-parent:first-child,
  [data-elementor-id="7599"] .e-con.e-parent:first-child {
    padding-top: 5rem !important;
  }

  /* Center-align hero text on mobile */
  .elementor-widget-tg-heading .title,
  .elementor-heading-title {
    text-align: center !important;
  }

  /* Hero subtext */
  .elementor-widget-text-editor p {
    text-align: center !important;
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
  }

  /* Hero CTA buttons: stack and full-width */
  .elementor-widget-tg-button .elementor-widget-container,
  .elementor-widget-button .elementor-widget-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }

  .elementor-widget-tg-button .tg-btn,
  .elementor-widget-button .elementor-button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
}

/* ===== FEATURE CARDS ===== */
@media (max-width: 767px) {
  /* Feature rows: stacked, tighter */
  .feature-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
  }

  .feature-row.reverse {
    direction: ltr !important;
  }

  .feature-card-mock {
    min-height: 180px !important;
    border-radius: 1rem !important;
  }

  /* Feature text */
  .feature-text h3 {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
  }
}

/* ===== PRICING CARDS ===== */
@media (max-width: 767px) {
  .pr-cards {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .price-card-inner {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .price-features {
    grid-template-columns: 1fr !important;
  }
}

/* ===== INTEGRATIONS GRID ===== */
@media (max-width: 767px) {
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .int-card {
    padding: 1.25rem !important;
  }
}

/* ===== TESTIMONIALS ===== */
@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  .testi-card {
    padding: 1.5rem !important;
  }
}

/* ===== STATS BAR ===== */
.ms-stats {
  background: linear-gradient(135deg, #0b6b52 0%, #0f8465 50%, #12a07c 100%) !important;
}

/* ===== FINAL CTA SECTION ===== */
@media (max-width: 767px) {
  .cta-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }

  .cta-text h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  .cta-action .btn-primary {
    width: 100% !important;
    max-width: 360px !important;
  }
}

/* ===== FOOTER ===== */
.site-footer .footer-topbar {
  /* Remove debug grid guides left in production */
  border: none !important;
  background-image: none !important;
}

@media (max-width: 767px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .site-footer .footer-bottom-inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  .site-footer .footer-bottom-inner .footer-socials {
    justify-content: center !important;
  }

  .site-footer .footer-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  .site-footer .footer-subscribe-form {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .site-footer .footer-subscribe-form input,
  .site-footer .footer-subscribe-form button {
    width: 100% !important;
    border-radius: 0.625rem !important;
  }
}

/* ===== STICKY CTA — green to match theme ===== */
.medura-sticky-cta {
  background: #fff !important;
  border-top-color: rgba(15, 132, 101, 0.12) !important;
}

.medura-sticky-cta__link {
  background: linear-gradient(135deg, #0f8465, #12a07c) !important;
  box-shadow: 0 4px 16px rgba(15, 132, 101, 0.3) !important;
}

.medura-sticky-cta__link:hover {
  background: linear-gradient(135deg, #0b6b52, #0f8465) !important;
}

/* ===== THEME TRIGGER DOT COLOR ===== */
body.medura-theme-a .medura-theme-trigger {
  background: #0f8465 !important;
}
