/* ===============================
   Lab-n-Med — Global Styles
   Brand: #1F8BDC (blue) / #F2330D (accent)
================================= */
:root {
  --blue: #1F8BDC;
  --blue-dark: #0f6fba;
  --blue-soft: #EAF4FB;
  --accent: #F2330D;
  --accent-dark: #c42908;
  --ink: #1A1A1A;
  --muted: #6B7280;
  --line: #e6eef5;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(31,139,220,.08);
  --shadow-md: 0 12px 40px rgba(20,50,80,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; color: var(--ink); }
h1 { font-weight: 800; letter-spacing: -0.5px; }
h2 { font-weight: 700; letter-spacing: -0.3px; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
.text-accent { color: var(--accent) !important; }
.bg-soft { background: var(--blue-soft); }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #cfd9e3; font-size: 13.5px; padding: 10px 0; }
.topbar a { color: #cfd9e3; }
.topbar-cta { background: var(--accent); color: #fff !important; padding: 6px 14px; border-radius: 40px; font-weight: 600; }
.topbar-cta:hover { background: var(--accent-dark); color: #fff !important; }

/* ---------- Navbar ---------- */
.main-nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.brand-mark {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px;
  background: linear-gradient(90deg, var(--blue) 0%, #54b6f3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1;
}
.brand-mark em { color: var(--blue-dark); font-style: normal; }
.brand-tag { display: block; font-size: 9px; letter-spacing: 3px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.navbar .nav-link { font-weight: 500; color: var(--ink); margin: 0 6px; position: relative; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--blue); }
.navbar .nav-link.active::after { content:''; position:absolute; left:10px; right:10px; bottom:-4px; height:2px; background: var(--accent); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; padding: 12px 22px; border-radius: 40px; transition: all .25s; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn-accent { background: var(--accent); border: 0; color: #fff; padding: 12px 24px; border-radius: 40px; font-weight: 600; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242,51,13,.28); }
.btn-outline-primary { color: var(--blue); border-color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 110px;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(31,139,220,.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(242,51,13,.08), transparent 60%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.hero .eyebrow { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); padding:6px 14px; border-radius: 40px; color: var(--blue); font-weight: 600; font-size: 13px; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(32px, 4.8vw, 58px); line-height: 1.08; margin: 18px 0 18px; }
.hero h1 .mark { color: var(--accent); }
.hero .lead { color: var(--muted); font-size: 18px; max-width: 560px; }
.hero-actions { display:flex; gap: 14px; flex-wrap:wrap; margin-top: 28px; }
.hero-stats { display:flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 28px; color: var(--blue); }
.hero-stats .lbl { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.hero-card .pill { display:inline-block; background: var(--blue-soft); color: var(--blue); font-weight:600; font-size: 12px; padding: 4px 12px; border-radius: 30px; }
.float-badge {
  position:absolute; background:#fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; font-weight:600;
}
.float-badge .ic { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; color:#fff; }
.float-1 { top: 10px; left: -20px; }
.float-2 { bottom: 20px; right: -10px; }

/* Test search bar */
.test-search {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 10px; display: flex; gap: 8px; margin-top: 28px; border: 1px solid var(--line);
}
.test-search input { border: 0; flex:1; padding: 12px 16px; outline: 0; font-size: 15px; }
.test-search .btn { padding: 12px 22px; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker { color: var(--accent); font-weight: 700; letter-spacing: 3px; font-size: 12px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Service Card ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 26px; height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content:''; position:absolute; inset: auto -40% -60% auto; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(31,139,220,.12), transparent 60%); transition: .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(31,139,220,.3); }
.service-card:hover::before { inset: auto -20% -40% auto; }
.service-card .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, #54b6f3 100%); color:#fff; font-size: 22px;
  box-shadow: 0 10px 20px rgba(31,139,220,.28);
}
.service-card h5 { margin: 18px 0 8px; }
.service-card .price { color: var(--accent); font-weight: 800; font-family: 'Poppins'; font-size: 20px; }
.service-card .old-price { text-decoration: line-through; color: var(--muted); font-size: 14px; margin-left: 6px; }

/* ---------- Package Card (inspired by screenshot but refined) ---------- */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 26px; }
.package-card {
  background: linear-gradient(160deg, var(--blue) 0%, #1b76bf 100%);
  color: #fff; border-radius: 20px; padding: 26px 22px 26px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .3s;
}
.package-card:hover { transform: translateY(-8px); }
.package-card.featured { background: linear-gradient(160deg, #17324a 0%, #0f6fba 100%); }
.package-card .price-tag {
  background: var(--accent); color:#fff; font-weight: 700; padding: 8px 16px; border-radius: 30px;
  display:inline-block; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(242,51,13,.35);
}
.package-card .price-tag del { opacity: .55; font-weight: 500; margin-right: 6px; }
.package-card .title-card {
  background: #fff; color: var(--accent); font-weight: 700; font-family: 'Poppins';
  padding: 14px 18px; border-radius: 14px; text-align: center; line-height: 1.3;
  box-shadow: 0 6px 14px rgba(0,0,0,.08); margin-bottom: 18px;
}
.package-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.package-card ul li {
  padding: 10px 4px; border-bottom: 1px dashed rgba(255,255,255,.28);
  font-size: 14.5px; display:flex; align-items:center; gap: 10px;
}
.package-card ul li.off { opacity: .45; text-decoration: line-through; }
.package-card ul li i { color: #bfe4ff; }
.package-card .book-btn {
  display:block; width:100%; background:#fff; color: var(--blue);
  padding: 12px; border-radius: 30px; font-weight: 700; text-align:center;
  transition: all .25s;
}
.package-card .book-btn:hover { background: var(--accent); color:#fff; }

/* ---------- Why / Process ---------- */
.why-card { text-align: center; padding: 28px 18px; border-radius: var(--radius); transition: .25s; }
.why-card:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-card .ico {
  width: 68px; height: 68px; border-radius: 50%; background: var(--blue-soft); color: var(--blue);
  display:grid; place-items:center; font-size: 26px; margin: 0 auto 18px;
}
.process-step {
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative; height: 100%;
}
.process-step .n {
  position:absolute; top:-18px; left: 22px; background: var(--accent); color:#fff;
  width: 38px; height: 38px; border-radius: 50%; display:grid; place-items:center;
  font-family: 'Poppins'; font-weight:700; box-shadow: 0 8px 18px rgba(242,51,13,.3);
}

/* ---------- Testimonial ---------- */
.testi-card { background:#fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height:100%; }
.testi-card .qm { color: var(--accent); font-size: 28px; }
.testi-card .who { display:flex; gap:12px; align-items:center; margin-top: 16px; }
.testi-card .who img { width:46px; height:46px; border-radius: 50%; object-fit: cover; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(31,139,220,.95), rgba(15,111,186,.95)),
    url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1600') center/cover;
  color:#fff; border-radius: 24px; padding: 60px 40px; text-align:center;
}
.cta-banner h2 { color:#fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1a28; color: #c6d2df; padding: 70px 0 30px; margin-top: 80px;
}
.site-footer h6 { color:#fff; font-family: 'Poppins'; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #c6d2df; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { font-family:'Poppins'; font-weight: 800; color:#fff; font-size: 28px; margin: 0; }
.footer-brand em { color: var(--blue); font-style: normal; }
.small-tag { font-size: 10px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: inline-grid; place-items: center; margin-right: 8px; margin-top: 14px;
}
.social a:hover { background: var(--accent); color:#fff; }

/* ---------- Page header ---------- */
.page-head {
  background: linear-gradient(135deg, rgba(31,139,220,.06), rgba(242,51,13,.04));
  padding: 80px 0 50px; border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(28px, 4vw, 44px); }
.breadcrumb-pill a { color: var(--blue); }
.breadcrumb-pill { font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 12px; border: 1px solid var(--line); padding: 13px 16px;
  font-family: 'Open Sans'; font-size: 15px;
}
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,139,220,.15); }
.form-label { font-weight: 600; color: var(--ink); margin-bottom: 8px; }

/* ---------- Blog ---------- */
.blog-card { background:#fff; border: 1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition:.25s; height:100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { width:100%; height: 220px; object-fit: cover; }
.blog-card .body { padding: 22px; }
.blog-card .meta { color: var(--muted); font-size: 13px; }

/* ---------- Comments ---------- */
.comment { background: #f7fbff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.comment .author { font-weight: 700; color: var(--blue); }
.comment .date { color: var(--muted); font-size: 12px; margin-left: 10px; }

/* ---------- Booking stepper ---------- */
.stepper { display:flex; gap:6px; margin-bottom: 30px; flex-wrap:wrap; }
.stepper .step { flex:1; min-width: 160px; padding: 12px 14px; border-radius: 10px; background:#f1f7fc; border: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.stepper .step.active { background: var(--blue); color:#fff; border-color: var(--blue); }

/* ---------- To Top ---------- */
.to-top {
  position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--blue); color:#fff; display: none;
  place-items: center; text-align:center; line-height:46px; box-shadow: var(--shadow-md);
  z-index: 999;
}
.to-top.show { display: grid; }
.to-top:hover { background: var(--accent); color:#fff; }

/* ---------- Spinner ---------- */
.spinner-wrap { display: grid; place-items:center; padding: 40px; }
.loader { width: 44px; height: 44px; border: 4px solid var(--blue-soft); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Utilities ---------- */
.rounded-2xl { border-radius: 20px !important; }
.shadow-soft { box-shadow: var(--shadow-sm); }
.divider { height: 1px; background: var(--line); margin: 40px 0; }

/* ---------- Admin minimal (mirrored from admin/assets) ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { padding: 50px 0 70px; }
  .hero-visual { margin-top: 30px; }
  .section { padding: 60px 0; }
}
