/*
Theme Name: Medanta Labs
Theme URI: https://medanta.org/medanta-labs
Author: Medanta
Description: A clean, professional medical theme inspired by Medanta Labs - featuring service cards, package listings, navigation with dropdowns, and a hospital/diagnostic lab layout.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: medanta-labs
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #e84327;
  --red-dark:  #c9371e;
  --white:     #ffffff;
  --off-white: #f8f8f8;
  --light-gray:#f0f0f0;
  --text:      #333333;
  --text-light:#666666;
  --border:    #dddddd;
  --nav-bg:    #ffffff;
  --font:      'Poppins', 'Segoe UI', sans-serif;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --radius:    8px;
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #1a1a2e;
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  display: none; /* hidden on smaller breakpoints, enabled via media query */
}
@media (min-width: 992px) { .top-bar { display: block; } }
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.top-bar a { color: #ccc; transition: color .2s; }
.top-bar a:hover { color: #fff; }

/* ============================================================
   PRIMARY HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: 25px;

}
img.logo-image {
    height: 158px;
    width: 122px;
}
.site-logo .logo-icon {
  width: 42px;
  height: 42px;
}
.site-logo .logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.5px;
}
.site-logo .logo-text span { color: var(--text); }

/* Nav links */
.main-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.main-menu > li {
  position: relative;
}
.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.main-menu > li > a:hover,
.main-menu > li.active > a {
  color: var(--red);
  background: rgba(232,67,39,.06);
}
.main-menu > li > a .arrow {
  font-size: 10px;
  opacity: .7;
  transition: transform .2s;
}
.main-menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  z-index: 999;
}
.main-menu > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--light-gray);
  transition: background .15s, color .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--off-white); color: var(--red); }
.dropdown li a .icon { font-size: 16px; }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-callback {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white) !important;
  border: none;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-callback:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-callback .phone-icon { font-size: 16px; }
.lang-switcher {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   SECONDARY NAV (breadcrumb style nav)
   ============================================================ */
.secondary-nav {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.secondary-nav ul {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.secondary-nav ul::-webkit-scrollbar { display: none; }
.secondary-nav ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  transition: color .2s;
  position: relative;
}
.secondary-nav ul li a:hover { color: var(--red); }
.secondary-nav ul li.active a {
  color: var(--red);
  font-weight: 600;
}
.secondary-nav ul li.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}
.secondary-nav ul li + li::before {
  content: '•';
  color: var(--border);
  font-size: 10px;
  flex-shrink: 0;
  align-self: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}
.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-image: url('assets/hero-bg.jpg');
  opacity: .35;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
}
.hero-content h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 32px;
}
.btn-brochure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-brochure:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 60px 0;
}
.section-alt { background: var(--off-white); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.view-all:hover { color: var(--red); }
.view-all-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ============================================================
   CARDS GRID (Packages / Tests)
   ============================================================ */
.cards-wrapper {
  position: relative;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-4px);
  border-color: var(--red);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.service-card .card-badge {
  display: inline-block;
  background: rgba(232,67,39,.1);
  color: var(--red);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
.service-card p {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
  line-height: 1.6;
}
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn-book {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-book:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-know {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-know:hover { border-color: var(--red); color: var(--red); }

/* Package price on cards */
.service-card .card-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.service-card .card-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

/* Package test breakdown (single page content) */
.pkg-tests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 8px 0 4px;
}
.pkg-tests .pkg-cat {
  background: #fafafa;
  border: 1px solid #eee;
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
}
.pkg-tests .pkg-cat h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text);
  margin: 0 0 8px;
}
.pkg-tests .pkg-cat p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

/* Slider nav arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background .2s, color .2s;
  z-index: 10;
}
.slider-nav:hover { background: var(--red); color: var(--white); }
.slider-nav.prev { left: -18px; }
.slider-nav.next { right: -18px; }

/* ============================================================
   WHY MEDANTA LABS SECTION
   ============================================================ */
.why-section { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.feature-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--red);
  color: var(--white);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item .number {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .label {
  font-size: 13px;
  opacity: .9;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--red);
  border: none;
  border-radius: 30px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s;
}
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 30px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.btn-outline-white:hover { border-color: var(--white); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo-text { color: var(--white); font-size: 22px; font-weight: 700; }
.footer-brand .logo-text span { color: var(--red); }
.footer-brand p { font-size: 13.5px; color: #aaa; margin: 16px 0; line-height: 1.7; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #ccc;
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--red); color: #fff; }

.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13.5px; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #888;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #888; transition: color .2s; }
.footer-bottom a:hover { color: var(--red); }

/* ============================================================
   FLOATING CHAT BUTTON
   ============================================================ */
.chat-fab {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,67,39,.45);
  z-index: 9999;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,67,39,.5); }

/* Emergency badge */
.emergency-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 4px 18px rgba(232,67,39,.45);
  cursor: pointer;
}
.emergency-badge .icon { font-size: 18px; margin-bottom: 3px; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar-section {
  background: var(--off-white);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.search-bar {
  display: flex;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  gap: 10px;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}
.search-bar button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.search-bar button:hover { background: var(--red-dark); }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s;
}
.mobile-nav.open { display: block; }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel .close-btn {
  font-size: 22px;
  cursor: pointer;
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-end;
}
.mobile-nav-panel ul li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 15px;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-menu { display: none; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 38px; }
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 30px; }
  .section-header h2 { font-size: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .btn-callback { padding: 8px 14px; font-size: 12px; }
  .hero-content { padding: 60px 16px; }
}
