/* =========================================================
   LABKESMAS 3 KALTENG — Modern Theme Layer
   Loaded AFTER style.css (Medicio). Overrides, not rewrite.
   Palette: teal/health modern + glassmorphism.
   ========================================================= */

:root {
  --brand: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --accent: #06b6d4;
  --brand-grad: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(20,184,166,.12) 0%, rgba(6,182,212,.12) 100%);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-brd: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 28px 60px rgba(13, 148, 136, 0.18);
  --radius: 20px;
  --radius-sm: 14px;
  --font-head: "Plus Jakarta Sans", "Poppins", sans-serif;
  --font-body: "Inter", "Open Sans", sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head) !important;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
a { color: var(--brand-600); transition: color .25s ease; }
a:hover { color: var(--brand); }
::selection { background: rgba(20,184,166,.22); color: var(--ink); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #eef2f7; }
::-webkit-scrollbar-thumb {
  background: var(--brand-grad);
  border-radius: 10px;
  border: 3px solid #eef2f7;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-grad-soft);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
}
.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff !important;
  background: var(--brand-grad);
  border: none;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(13,148,136,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(13,148,136,.45);
}
.text-gradient {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Topbar ---------- */
#topbar {
  background: var(--brand-grad) !important;
  height: 42px;
  font-size: .85rem;
  font-weight: 500;
  color: #fff;
}
#topbar .container { opacity: 1; }
.topbar-sep { opacity: .65; padding: 0 .15rem; }

/* ---------- Header / Nav ----------
   Base = solid glass (inner pages + scrolled state).
   Homepage only goes transparent while sitting over the hero. */
#header {
  top: 42px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
  transition: all .3s ease;
  padding: 10px 0;
}
#header .logo { color: var(--ink); }
#header #navbar .nav-link { color: var(--ink) !important; }
#header .mobile-nav-toggle { color: var(--ink); }

/* Homepage header stays solid (hero is now a contained card, not a full-bleed backdrop) */
body:has(#hero) #header:not(.header-scrolled) {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
body:has(#hero) #header:not(.header-scrolled) .logo { color: var(--brand-700); }
body:has(#hero) #header:not(.header-scrolled) #navbar .nav-link { color: var(--ink) !important; }
body:has(#hero) #header:not(.header-scrolled) .mobile-nav-toggle { color: var(--ink); }

#header.header-scrolled {
  top: 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
#header .logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: .8rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 1.25rem;
}
#header.header-scrolled .logo { color: var(--ink); }
#header .logo img {
  max-height: 42px;
  width: auto;
  transition: transform .3s ease;
}
#header .logo:hover img { transform: scale(1.06) rotate(-3deg); }

#navbar ul { align-items: center; }
#navbar .nav-link,
#navbar .dropdown > a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink) !important;
  padding: .5rem 1rem !important;
  position: relative;
}
#header.header-scrolled #navbar .nav-link { color: var(--ink) !important; }
#navbar .nav-link::after,
#navbar .dropdown > a::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 4px;
  height: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
#navbar .nav-link:hover::after,
#navbar .nav-link.active::after,
#navbar .dropdown:hover > a::after { transform: scaleX(1); }
#navbar .nav-link.active { color: var(--brand-600) !important; }

/* Dropdowns */
#navbar .dropdown ul {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  margin-top: 10px;
}
#navbar .dropdown ul li { background: transparent; }
#navbar .dropdown ul a {
  color: var(--ink) !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .5rem 1rem !important;
  border-radius: 10px;
}
#navbar .dropdown ul a:hover {
  background: var(--brand-grad-soft);
  color: var(--brand-700) !important;
}
#navbar .dropdown > a span,
#navbar .dropdown > a i { transition: transform .3s ease; }
#navbar .dropdown:hover > a i { transform: rotate(180deg); }

/* Appointment / login button in header */
.appointment-btn {
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: var(--brand-grad) !important;
  padding: .6rem 1.3rem !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(13,148,136,.35);
  transition: transform .25s ease;
}
.appointment-btn:hover { transform: translateY(-2px); color: #fff !important; }

/* Mobile nav toggle */
.mobile-nav-toggle { color: #fff; font-size: 1.7rem; }
#header.header-scrolled .mobile-nav-toggle { color: var(--ink); }
#navbar.navbar-mobile {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

/* ---------- Section title ---------- */
.section-title { margin-bottom: 3rem; }
.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: .6rem;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0; width: 64px; height: 4px;
  background: var(--brand-grad);
  border-radius: 4px;
}
.section-title p {
  color: var(--muted);
  max-width: 640px;
  margin: .9rem auto 0;
  font-size: 1.02rem;
}

/* ---------- Hero ---------- */
#hero {
  height: clamp(360px, 56vh, 560px) !important;
  min-height: 0 !important;
  width: 100%;
  margin: 96px 0 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--brand-700);
}
#hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,118,110,.82) 0%, rgba(6,182,212,.55) 55%, rgba(15,23,42,.7) 100%);
  z-index: 1;
}
#hero .carousel-item { transition: transform 1.2s ease, opacity 1.2s ease; align-items: center; justify-content: flex-start; }
#hero .carousel-item::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 80% 20%, rgba(6,182,212,.25), transparent 60%);
}
#hero .container {
  position: relative;
  z-index: 2;
  max-width: 760px;
  background: transparent !important;
  border: none !important;
  text-align: left;
  margin: 0 !important;
  padding: 0 1rem 0 clamp(1rem, 6vw, 5rem) !important;
}
#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 54px; height: 54px;
  top: 50%; transform: translateY(-50%);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  opacity: 1;
}
#hero .carousel-control-prev { left: 24px; }
#hero .carousel-control-next { right: 24px; }
#hero .carousel-control-prev-icon,
#hero .carousel-control-next-icon { filter: none; color: #fff; }
#hero .carousel-indicators { bottom: 28px; }
#hero .carousel-indicators li {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  border: none;
  transition: width .3s ease, background .3s ease;
}
#hero .carousel-indicators li.active { width: 34px; background: #fff; }

.hero-card {
  background: linear-gradient(120deg, rgba(15,118,110,.78), rgba(6,182,212,.60));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  color: #fff;
  animation: heroIn .9s ease both;
}
.hero-card .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
#hero h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
#hero h2 span {
  background: linear-gradient(90deg, #fff, #d7faff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
#hero p {
  color: rgba(255,255,255,.92);
  font-size: 1rem;
  margin: 1rem 0 1.6rem;
}
#hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand-700) !important;
  background: #fff;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
#hero .btn-get-started:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.26); }

/* ---------- Featured services / icon boxes ---------- */
.featured-services .icon-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.featured-services .icon-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: var(--brand-grad);
}
.featured-services .icon-box:hover .title a,
.featured-services .icon-box:hover p,
.featured-services .icon-box:hover .description { color: #fff !important; }
.featured-services .icon-box:hover .icon { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.featured-services .icon-box .icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 12px 24px rgba(13,148,136,.3);
}
.featured-services .icon-box .title a { color: var(--ink) !important; font-weight: 700; }
.featured-services .icon-box p { color: #475569; font-size: .92rem; margin: .25rem 0; }
.featured-services .icon-box p i { color: var(--brand); font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--brand-grad) !important;
  border-radius: 0;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 45%);
}
.cta .text-center { position: relative; z-index: 1; }
.cta h3 { color: #fff !important; font-size: 2rem; font-weight: 800; }
.cta p { color: rgba(255,255,255,.92); }
.cta-btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand-700) !important;
  background: #fff;
  padding: .85rem 2rem;
  border-radius: 999px;
  margin-top: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  transition: transform .25s ease;
}
.cta-btn:hover { transform: translateY(-3px); }

/* ---------- About ---------- */
.about .content h3 { font-size: 1.7rem; font-weight: 800; }
.about .content ul li {
  color: var(--ink);
  padding: .35rem 0;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.about .content ul li i { color: var(--brand); margin-top: .35rem; }
.about img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

/* ---------- Counts ---------- */
.counts .count-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.counts .count-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.counts .count-box i {
  font-size: 2.4rem;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  float: none;
  display: block;
}
.counts .count-box .purecounter {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.15;
  display: block;
  margin: .3rem 0 .5rem;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.counts .count-box p { color: #475569; font-size: .92rem; }
.counts .count-box a { color: var(--brand-600); font-weight: 600; }

/* ---------- Services ---------- */
.services .icon-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.services .icon-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.services .icon-box .icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--brand-grad-soft);
  color: var(--brand-600);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.services .icon-box .title a { color: var(--ink) !important; font-weight: 700; }
.services .icon-box .description { color: #475569; font-size: .92rem; }

/* Equal width + height + even gap for the services card grid */
.services .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  grid-auto-rows: 1fr;
  margin: 0 !important;
}
.services .row > [class*="col-"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
.services .icon-box { height: 100%; }
@media (max-width: 992px) {
  .services .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .services .row { grid-template-columns: 1fr; }
}

/* ---------- Appointment ---------- */
.appointment {
  background: var(--brand-grad-soft) !important;
}
.appointment form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}
.appointment .form-control,
.appointment .form-select {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: .8rem 1rem;
  font-family: var(--font-body);
}
.appointment .form-control:focus,
.appointment .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(20,184,166,.2);
}
.appointment button[type="submit"] {
  background: var(--brand-grad);
  border: none;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(13,148,136,.35);
  transition: transform .25s ease;
}
.appointment button[type="submit"]:hover { transform: translateY(-2px); }
.appointment .sent-message { color: var(--brand-700); font-weight: 600; }
.appointment .error-message { color: #dc2626; }

/* ---------- Departments tabs ---------- */
.departments .nav-tabs {
  border: none;
  gap: .5rem;
}
.departments .nav-tabs .nav-link {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink) !important;
  background: var(--surface);
  padding: 1rem 1.2rem;
  text-align: left;
  transition: all .25s ease;
}
.departments .nav-tabs .nav-link.active {
  background: var(--brand-grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-md);
}
.departments .nav-tabs .nav-link.active h4,
.departments .nav-tabs .nav-link.show h4 { color: #fff !important; }
.departments .tab-pane img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}
.departments .tab-pane h3 { font-weight: 800; }

/* ---------- Testimonials ---------- */
.testimonials .testimonial-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  font-style: normal;
}
.testimonials .testimonial-item p { color: var(--ink); font-size: 1.02rem; }
.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right { color: var(--brand); font-size: 1.4rem; }
.testimonials .testimonial-item h3 { font-weight: 700; color: var(--brand-700); }
.swiper-pagination-bullet-active { background: var(--brand) !important; }

/* ---------- Doctors ---------- */
.doctors .member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.doctors .member:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctors .member-img { overflow: hidden; }
.doctors .member-img img { transition: transform .5s ease; width: 100%; object-fit: cover; aspect-ratio: 1/1; }
.doctors .member:hover .member-img img { transform: scale(1.08); }
.doctors .member-info { padding: 1.3rem; text-align: center; }
.doctors .member-info h4 { font-weight: 700; }
.doctors .member-info span { color: var(--brand-600); font-weight: 500; }
.doctors .social {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: .8rem;
}
.doctors .social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-grad-soft);
  color: var(--brand-600) !important;
  transition: all .25s ease;
}
.doctors .social a:hover { background: var(--brand-grad); color: #fff !important; transform: translateY(-3px); }
.doctors .row { justify-content: center; }

/* ---------- Tracking form ---------- */
.tracking-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.2rem;
}
.tracking-card--wide {
  max-width: none;
}
.tracking-form label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.tracking-form .form-control {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: .8rem 1rem;
  font-family: var(--font-body);
}
.tracking-form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(20, 184, 166, .2);
}
.tracking-result { margin-top: 1.8rem; }
.tracking-result .status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand-grad-soft);
  color: var(--brand-700);
  font-family: var(--font-head);
  font-weight: 700;
  padding: .45rem .95rem;
  border-radius: 999px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.timeline li {
  position: relative;
  padding: 0 0 1.3rem 1.9rem;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}
.timeline li.done::before,
.timeline li.active::before { background: var(--brand-grad); }
.timeline li.active::before { box-shadow: 0 0 0 4px rgba(20, 184, 166, .25); }
.timeline li .t-title { font-weight: 700; font-family: var(--font-head); }
.timeline li .t-date { font-size: .85rem; color: var(--muted); }

/* ---------- Tracking: stepper ---------- */
.step-indicator {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.step-dot {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
}
.step-dot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: .85rem;
  transition: all .25s ease;
}
.step-dot.active { color: var(--brand-700); }
.step-dot.active span {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 184, 166, .35);
}
.step-dot:not(:last-child)::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

/* ---------- Tracking: lab type cards ---------- */
.tracking-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.tracking-label i { color: var(--brand); margin-right: .35rem; }
.lab-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.lab-option { position: relative; cursor: pointer; margin: 0; display: flex; }
.lab-option input { position: absolute; opacity: 0; pointer-events: none; }
.lab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 1.6rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  transition: all .25s ease;
}
.lab-card i {
  font-size: 2rem;
  color: var(--brand);
  transition: transform .25s ease;
}
.lab-option:hover .lab-card {
  border-color: var(--brand-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.lab-option input:checked + .lab-card {
  border-color: var(--brand);
  background: var(--brand-grad-soft);
  box-shadow: 0 8px 22px rgba(20, 184, 166, .22);
}
.lab-option input:checked + .lab-card i { transform: scale(1.12); }
.lab-option input:checked + .lab-card::after {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  top: .55rem;
  right: .7rem;
  color: var(--brand-700);
  font-size: 1.1rem;
}
.lab-option input:focus-visible + .lab-card {
  outline: 3px solid rgba(20, 184, 166, .35);
  outline-offset: 2px;
}
@media (max-width: 575.98px) {
  .lab-options { grid-template-columns: 1fr; }
}

/* ---------- Tracking: result detail ---------- */
.track-loading {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  padding: 1.2rem 0;
}
.track-loading .spinner {
  width: 1.2rem; height: 1.2rem;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: track-spin .8s linear infinite;
}
@keyframes track-spin { to { transform: rotate(360deg); } }
.spin { animation: track-spin .8s linear infinite; display: inline-block; }

.track-alert {
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 600;
  margin-top: 1.2rem;
}
.track-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.track-alert.info { background: var(--brand-grad-soft); color: var(--brand-700); border: 1px solid rgba(20,184,166,.3); }

.track-section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--brand-700);
  margin: 1.6rem 0 .8rem;
}

.track-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem 1.2rem;
}
.track-info-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
}
.track-info-item .k {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}
.track-info-item .v {
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--ink);
  word-break: break-word;
}
@media (max-width: 575.98px) { .track-info-grid { grid-template-columns: 1fr; } }

.track-services { display: flex; flex-direction: column; gap: .5rem; }
.track-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
}
.track-service .name { font-weight: 600; font-family: var(--font-head); }
.track-service .meta { font-size: .8rem; color: var(--muted); }
.track-pill {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.track-pill.yes { background: var(--brand-grad-soft); color: var(--brand-700); }
.track-pill.no { background: #f1f5f9; color: #64748b; }

.track-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.track-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.track-table th, .track-table td {
  text-align: left;
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.track-table th {
  background: var(--brand-grad-soft);
  color: var(--brand-700);
  font-family: var(--font-head);
  font-weight: 700;
  white-space: nowrap;
}
.track-table tr:last-child td { border-bottom: none; }
.track-table .has-yes { color: var(--brand-700); font-weight: 700; }
.track-table .has-no { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery .swiper-slide { border-radius: var(--radius); overflow: hidden; }
.gallery .gallery-lightbox img { transition: transform .5s ease; }
.gallery .swiper-slide:hover .gallery-lightbox img { transform: scale(1.06); }

/* ---------- FAQ ---------- */
.faq .faq-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  padding: .4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease;
}
.faq .faq-list li:hover { border-color: var(--brand); }
.faq .question {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding: .9rem 0;
  cursor: pointer;
}
.faq .question i { color: var(--brand); }
.faq .collapse p { color: var(--muted); padding-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact .info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.contact .info-box i {
  font-size: 1.8rem;
  color: #fff;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--brand-grad);
  margin-bottom: .8rem;
}
.contact .info-box h3 { font-weight: 700; }
.contact .info-box p { color: var(--muted); }
.contact form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact .form-control {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: .8rem 1rem;
}
.contact .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(20,184,166,.2); }
.contact button[type="submit"] {
  background: var(--brand-grad);
  border: none; color: #fff;
  font-family: var(--font-head); font-weight: 700;
  padding: .85rem 2rem; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(13,148,136,.35);
  transition: transform .25s ease;
}
.contact button[type="submit"]:hover { transform: translateY(-2px); }
.contact iframe { border-radius: var(--radius) !important; }
.contact .sent-message { color: var(--brand-700); font-weight: 600; }

/* ---------- Footer ---------- */
#footer {
  background: #0b1220;
  color: #cbd5e1;
  position: relative;
}
#footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--brand-grad);
}
#footer .footer-top { padding: 3.5rem 0 2rem; }
#footer h3, #footer h4 { color: #fff; font-weight: 700; }
#footer .footer-info p { color: #94a3b8; }
#footer .footer-links ul li a { color: #cbd5e1; padding: .3rem 0; display: inline-flex; align-items: center; gap: .4rem; }
#footer .footer-links ul li a:hover { color: #fff; transform: translateX(3px); }
#footer .footer-links ul li i { color: var(--brand); font-size: .8rem; }
#footer .social-links a {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff !important;
  transition: all .25s ease;
}
#footer .social-links a:hover { background: var(--brand-grad); transform: translateY(-3px); }
#footer .footer-newsletter form {
  display: flex; gap: .5rem; margin-top: .8rem;
}
#footer .footer-newsletter input[type="email"] {
  flex: 1; border-radius: 10px; border: none; padding: .6rem .9rem;
}
#footer .footer-newsletter input[type="submit"] {
  background: var(--brand-grad); border: none; color: #fff;
  border-radius: 10px; padding: 0 1.2rem; font-weight: 600; cursor: pointer;
}
#footer .copyright { color: #94a3b8; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.08); }
#footer .copyright a { color: var(--brand); }

/* ---------- Back to top ---------- */
.back-to-top {
  background: var(--brand-grad) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-md);
}
.back-to-top:hover { background: var(--brand-700) !important; }

/* ---------- Preloader ---------- */
#preloader { background: #0b1220; }
#preloader:before { border-color: var(--brand); border-top-color: rgba(255,255,255,.25); }

/* ---------- Reveal (GSAP target fallback) ---------- */
.reveal { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  #header { top: 42px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); }
  #header .logo { color: var(--ink) !important; }
  #navbar .nav-link { color: var(--ink) !important; }
  #hero { height: clamp(300px, 46vh, 440px); min-height: 0; margin: 80px 0 0; padding: 0; border-radius: 0; }
}
@media (max-width: 768px) {
  .hero-card { padding: 1.6rem; }
  .section-title h2 { font-size: 1.7rem; }
}
