/**
 * Landing page layout fixes — navbar alignment + mobile responsiveness.
 * Loaded after mode2.css, ls.css, navm2.css.
 */

body.landing-mode2 {
  overflow-x: hidden;
}

body.landing-mode2 #navbar-container {
  width: 100%;
}

/* ——— Navbar shell ——— */
body.landing-mode2 .all-navbar {
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  height: auto;
  padding: 0;
  box-sizing: border-box;
}

body.landing-mode2 .all-navbar-inner {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 10px clamp(14px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

body.landing-mode2 .all-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
}

body.landing-mode2 .all-logo img,
body.landing-mode2 .all-logo .logo-img--full {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
}

body.landing-mode2 .all-navbar-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  flex: 1 1 auto;
  min-width: 0;
}

body.landing-mode2 .all-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.4vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

body.landing-mode2 .all-nav-links > li {
  flex-shrink: 0;
}

body.landing-mode2 .all-nav-item,
body.landing-mode2 .all-dropdown-trigger {
  height: 40px;
  padding: 8px 10px;
  font-size: clamp(13px, 1.1vw, 15px);
  white-space: nowrap;
}

body.landing-mode2 .all-nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  margin-left: 0;
}

body.landing-mode2 .all-nav-secondary-btn,
body.landing-mode2 .all-nav-primary-btn {
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 14px;
  min-height: 40px;
}

body.landing-mode2 .all-nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  color: #0284c7;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ——— Hero + sections ——— */
body.landing-mode2 .hero-section {
  position: relative;
  min-height: auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 80px);
  box-sizing: border-box;
}

body.landing-mode2 .hero-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

body.landing-mode2 .hero-left {
  flex: 1 1 360px;
}

body.landing-mode2 .hero-right {
  flex: 1 1 420px;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

body.landing-mode2 .hero-dashboard {
  width: min(100%, 700px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

body.landing-mode2 .dashboard-ui {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 280px;
  box-sizing: border-box;
}

body.landing-mode2 .hero-doctor {
  display: block;
  width: auto;
  max-width: min(220px, 38%);
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

@media (min-width: 993px) {
  body.landing-mode2 .hero-dashboard {
    position: relative;
    overflow: visible;
  }

  body.landing-mode2 .hero-doctor {
    position: absolute;
    width: min(300px, 42%);
    max-width: 300px;
    left: -14%;
    bottom: -6%;
    z-index: 50;
    object-fit: cover;
    object-position: center top;
  }

  body.landing-mode2 .dashboard-ui {
    min-height: 420px;
  }
}

body.landing-mode2 .carousel-features-section {
  min-height: auto;
  padding: clamp(48px, 8vw, 80px) clamp(12px, 3vw, 24px);
}

body.landing-mode2 #featureCarousel {
  width: 100%;
  max-width: 1400px;
  padding: 0 clamp(8px, 2vw, 40px);
  margin: 0 auto;
}

body.landing-mode2 .comparison-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.landing-mode2 .comparison-table {
  min-width: 520px;
}

body.landing-mode2 .dco-search-section {
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 8%);
}

body.landing-mode2 .dco-search-left h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.15;
}

body.landing-mode2 .healthcare-section,
body.landing-mode2 .why-dconnect-section,
body.landing-mode2 .cta-section {
  padding-left: clamp(16px, 4vw, 8%);
  padding-right: clamp(16px, 4vw, 8%);
  box-sizing: border-box;
}

/* ——— Tablet ——— */
@media (max-width: 1100px) {
  body.landing-mode2 .all-nav-links {
    gap: 10px;
  }

  body.landing-mode2 .corporate-login-btn {
    display: none;
  }
}

/* ——— Mobile nav ——— */
@media (max-width: 992px) {
  body.landing-mode2 .all-navbar-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  body.landing-mode2 .all-nav-mobile-toggle {
    display: inline-flex;
  }

  body.landing-mode2 .all-navbar-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    padding-top: 4px;
  }

  body.landing-mode2 .all-navbar.is-mobile-open .all-navbar-panel {
    display: flex;
  }

  body.landing-mode2 .all-nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  body.landing-mode2 .all-nav-item,
  body.landing-mode2 .all-dropdown-trigger {
    width: 100%;
    justify-content: flex-start;
    height: auto;
    min-height: 44px;
  }

  body.landing-mode2 .all-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }

  body.landing-mode2 .all-dropdown.is-open .all-dropdown-menu {
    display: block;
  }

  body.landing-mode2 .all-dropdown:hover .all-dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.landing-mode2 .all-dropdown.is-open:hover .all-dropdown-menu,
  body.landing-mode2 .all-dropdown.is-open .all-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.landing-mode2 .all-nav-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  body.landing-mode2 .all-nav-right .all-nav-secondary-btn,
  body.landing-mode2 .all-nav-right .all-nav-primary-btn {
    width: 100%;
    justify-content: center;
  }

  body.landing-mode2 .corporate-login-btn {
    display: inline-flex;
  }

  body.landing-mode2 .hero-container {
    flex-direction: column;
    gap: 32px;
  }

  body.landing-mode2 .hero-left,
  body.landing-mode2 .hero-right {
    width: 100%;
    max-width: 100%;
  }

  body.landing-mode2 .hero-left h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    letter-spacing: -1px;
  }

  body.landing-mode2 .hero-dashboard {
    width: 100%;
    max-width: min(520px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }

  body.landing-mode2 .dashboard-ui {
    display: flex !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 240px;
    transform: none;
    transform-origin: center top;
    order: 1;
    border-radius: 16px;
    overflow: hidden;
  }

  body.landing-mode2 .hero-doctor {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(160px, 42vw);
    max-width: 160px;
    height: auto;
    margin: -28px auto 0;
    order: 2;
    z-index: 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
  }

  body.landing-mode2 .top-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  body.landing-mode2 .bottom-row {
    flex-direction: column;
    gap: 10px;
  }

  body.landing-mode2 .dashboard-sidebar {
    width: 72px;
    padding: 12px 8px;
  }

  body.landing-mode2 .dashboard-sidebar li {
    font-size: 9px;
    padding: 6px 4px;
    line-height: 1.2;
    text-align: center;
  }

  body.landing-mode2 .logo-box {
    width: 36px;
    height: 36px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  body.landing-mode2 .prescription-card,
  body.landing-mode2 .voice-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  body.landing-mode2 .all-logo img,
  body.landing-mode2 .all-logo .logo-img--full {
    height: 38px;
    max-width: min(200px, 72vw);
  }

  body.landing-mode2 .hero-section {
    padding-top: 24px;
    overflow-x: hidden;
  }

  body.landing-mode2 .hero-right {
    overflow: visible;
    justify-content: center;
  }

  body.landing-mode2 .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  body.landing-mode2 .secondary-btn {
    width: 100%;
    justify-content: center;
  }

  body.landing-mode2 .dashboard-ui {
    display: flex !important;
    min-height: 210px;
    border-radius: 14px;
  }

  body.landing-mode2 .dashboard-main {
    padding: 12px;
    min-width: 0;
  }

  body.landing-mode2 .dashboard-main h2 {
    font-size: 15px;
  }

  body.landing-mode2 .dashboard-main h5 {
    font-size: 11px;
  }

  body.landing-mode2 .top-card {
    min-height: 52px;
    padding: 8px;
  }

  body.landing-mode2 .top-card span {
    font-size: 9px;
  }

  body.landing-mode2 .top-card h3 {
    font-size: 14px;
    margin-top: 4px;
  }

  body.landing-mode2 .bottom-row {
    display: none;
  }

  body.landing-mode2 .hero-doctor {
    width: min(140px, 44vw);
    max-width: 140px;
    margin-top: -24px;
  }

  body.landing-mode2 .hero-dashboard {
    min-height: 0;
    text-align: center;
    padding: 0 0.25rem;
  }

  body.landing-mode2 .appointment-row img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
  }

  body.landing-mode2 .dco-search-left,
  body.landing-mode2 .dco-search-card {
    width: 100%;
  }

  body.landing-mode2 .dco-search-btn {
    width: 100%;
    justify-content: center;
  }

  body.landing-mode2 .cta-btn {
    width: 100%;
    text-align: center;
  }

  body.landing-mode2 #featureCarousel .carousel-control-prev,
  body.landing-mode2 #featureCarousel .carousel-control-next {
    display: none;
  }
}
