/*
   BestDoctor247.com - Responsive overrides
   Loaded after style.css. No inline CSS is required.
*/

/* =========================
   Fixed desktop banner layout
   ========================= */
@media (min-width: 769px) {
  .hero-new {
    height: 720px;
    min-height: 720px;
    align-items: center;
  }

  .hero-new .container {
    height: 100%;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    justify-content: center;
  }

  .hero-new .hero-inner {
    width: 100%;
    max-width: 50%;
    margin: 0;
  }

  .hero-new h1,
  .hero-new .hero-sub,
  .hero-new .hero-cvp,
  .hero-new .hero-actions {
    margin-left: 0;
    margin-right: 0;
  }
}

/* =========================
   Banner trust strip
   ========================= */
.bnr-dn {
  padding: 28px 0 52px;
  background: linear-gradient(135deg, #143d80 0%, #021e4e 100%);
}

.bnr-dn .hero-trust-fullwidth.hero-trust-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: 0;
}

.bnr-dn .hero-trust-item {
  min-height: 148px;
  padding: 25px 15px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #e2e8f0;
  background: linear-gradient(180deg, rgba(18, 32, 62, 0.88) 0%, rgba(12, 22, 44, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.bnr-dn .hero-trust-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 230, 0.28);
  background: linear-gradient(180deg, rgba(22, 38, 72, 0.92) 0%, rgba(14, 26, 52, 0.96) 100%);
}

.bnr-dn .trust-icon {
  position: static;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.bnr-dn .trust-icon svg {
  width: 18px;
  height: 18px;
  stroke: #00e5e6;
  flex: none;
}

.bnr-dn .trust-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bnr-dn .trust-content strong {
  display: block;
  padding: 0;
  color: #ffffff;
  font-size: 16.5px;
  line-height: 1.35;
}

.bnr-dn .trust-content span {
  display: block;
  padding: 0;
  margin: 0;
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.55;
}

/* =========================
   Tablet layout
   ========================= */
@media (max-width: 1200px) and (min-width: 993px) {
  .hero-new {
    height: 700px;
    min-height: 700px;
  }

  .hero-new .hero-inner {
    max-width: 62%;
  }

  .hero-new h1 {
    font-size: 38px;
  }

  .bnr-dn .hero-trust-fullwidth.hero-trust-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .hero-new {
    height: 710px;
    min-height: 710px;
  }

  .hero-new .hero-inner {
    max-width: 66%;
  }

  .hero-new .hero-bg-image {
    width: 52%;
    opacity: 0.68;
  }

  .hero-new h1 {
    font-size: 36px;
  }

  .bnr-dn .hero-trust-fullwidth.hero-trust-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   Mobile header and banner
   ========================= */
@media (max-width: 768px) {
  .header-main-inner {
    gap: 8px;
    padding: 10px 0;
  }
.container {
  max-width: 100%;}
  .brand img {
    height: 44px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions > .btn {
    display: none;
  }

  .nav-phone {
    padding: 8px 10px;
  }

  .burger {
    padding: 6px;
  }

  .hero-new {
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .hero-new .container {
    height: auto;
    min-height: 0;
    padding: 46px 20px 44px;
    justify-content: flex-start;
  }

  .hero-new .hero-bg-image {
    width: 100%;
    height: 100%;
    opacity: 10;
    background-position: center center;
  }

  .hero-new .hero-bg-image::after {
    background: linear-gradient(180deg, rgba(4, 15, 39, 0) 0%, rgba(4, 15, 39, 0.2) 48%, rgba(4, 15, 39, 0.66) 100%);
  }

  .hero-new .hero-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .hero-new .pill-eyebrow {
    max-width: 100%;
    margin-bottom: 16px;
    padding: 6px 10px;
    font-size: 8.5px;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .hero-new h1 {
    max-width: 100%;
    font-size: clamp(26px, 7.2vw, 30px);
    line-height: 1.17;
    margin-bottom: 7px;
  }

  .hero-new .hero-sub {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.62;
    margin-bottom: 18px;
  }

  .hero-new .hero-cvp {
    max-width: 100%;
    padding: 13px 14px;
    margin-bottom: 20px;
    font-size: 12.5px;
    line-height: 1.58;
  }

  .hero-new .hero-actions-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-new .hero-actions-new .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 11px 14px;
    font-size: 12.5px;
  }

  .bnr-dn {
    padding: 24px 0 36px;
  }

  .bnr-dn .hero-trust-fullwidth.hero-trust-4col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bnr-dn .hero-trust-item {
    min-height: 0;
    padding: 16px;
  }

  .svc-row {
    gap: 36px;
    margin-bottom: 72px;
  }

  .svc-media img {
    aspect-ratio: 16 / 10;
  }

  .compare-table-wrap {
    margin-top: 30px;
  }

  .book-grid {
    gap: 34px;
  }

  .content-width-bottom-64 {
  margin-bottom: 23px;
}
.svc-tag {
  font-size: 10px;}

.dfx{  display: grid;grid-template-columns: repeat(1, 1fr);gap: 24px;}
.hero-new .hero-bg-image {
  background-position: 87% center !important;}
}

/* Smaller phones */
@media (max-width: 480px) {
  .hero-new .container {
    padding: 236px 16px 0px;
  }

  .hero-new h1 {
    font-size: 25px;
  }

  .hero-new .hero-sub {
    font-size: 13.5px;
  }

  .hero-new .hero-cvp {
    font-size: 12px;
  }

  .bnr-dn .hero-trust-item {
    padding: 15px;
  }

  .bnr-dn .trust-content strong {
    font-size: 13px;
  }

  .bnr-dn .trust-content span {
    font-size: 12px;
  }

    #compassionate-care .care-intro__container {
    width: calc(100% - 0px);
    gap: 34px;
  }

.title {
  line-height: 1.5;
}

}

/* =========================================================
   Mobile: "In-Home vs Traditional Clinic" comparison table
   -> converts the horizontal-scroll table into stacked cards.
   Layout-only: same colors, backgrounds, borders and content.
   ========================================================= */
@media (max-width: 768px) {
  .compare-table-wrap {
    overflow: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .compare-table {
    display: block;
    width: 100%;
    min-width: 0;
    background: transparent;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: block;
  }

  .compare-table tr {
    display: block;
    background: #ffffff;
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 16px;
  }

  .compare-table td {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border-bottom: 1px solid var(--divider);
    font-size: 14.5px;
    vertical-align: middle;
  }

  .compare-table tr td:last-child {
    border-bottom: none;
  }

  /* Metric name becomes the card header strip (same tint as the desktop column head) */
  .compare-table td.metric-title {
    padding: 13px 16px;
    font-size: 15px;
    background: #f1f5f9;
  }

  /* Column caption so each cell still shows which side it belongs to */
  .compare-table td.bestdoctor-cell::before,
  .compare-table td.clinic-cell::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .compare-table td.bestdoctor-cell::before {
    color: var(--accent);
  }

  .compare-table td.clinic-cell::before {
    color: #475569;
  }

  /* Keep the exact desktop cell skin inside the stacked card */
  .compare-table td.bestdoctor-cell {
    background: rgba(239, 246, 255, 0.71);
    color: #0f172a;
    font-weight: 600;
    border-left: none;
    border-right: none;
  }

  .compare-table td.clinic-cell {
    color: #64748b;
  }

  /* Touch devices: freeze the hover colors so taps don't leave cells highlighted */
  .compare-table tr:hover td {
    background: #ffffff;
  }

  .compare-table tr:hover td.metric-title {
    background: #f1f5f9;
  }

  .compare-table tr:hover td.bestdoctor-cell {
    background: rgba(239, 246, 255, 0.71);
  }

  .status-badge {
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   Mobile: floating WhatsApp + Call buttons appear ONLY while
   the user is actively scrolling, then slide away again.
   (The .is-scrolling class is toggled by the script added
   at the bottom of index.html. Desktop is not affected.)
   ========================================================= */
@media (max-width: 768px) {
  .float-actions .fab {
    opacity: 0;
    visibility: hidden;
    transform: translateX(84px);
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.32s;
  }

  .float-actions.is-scrolling .fab {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
  }

   .float-actions {
    bottom: 15px;
  }
}
