/* ----------
   Medivantis Life Sciences — Clean medical brand styling
   ---------- */
:root{
  --brand: #0E6BA8;
  --brand-dark: #0B3C5D;
  --accent: #12B886;
  --ink: #1F2937;
  --muted: #6B7280;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --radius: 14px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container{ max-width: var(--container); margin-inline: auto; padding: 0 20px; }
.lead{ font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.muted{ color: var(--muted); }
.btn{
  display:inline-block; padding:.8rem 1.1rem; border-radius: 999px;
  font-weight:600; text-decoration:none; border:1px solid transparent;
  transition:.2s ease;
}
.btn--primary{ background:var(--brand); color:white; box-shadow: var(--shadow); }
.btn--primary:hover{ background:#0c5f96; transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover{ background: rgba(14,107,168,.08); }
.site-header{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-bottom: 1px solid rgba(2,6,23,.06);
}
.header__inner{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }
.brand{ display:flex; align-items:center; gap:.6rem; color: var(--ink); text-decoration:none; font-weight:700; }
.brand__logo{
  width:36px; height:36px; border-radius:10px;
  background:
    radial-gradient(120% 140% at 10% 10%, var(--accent) 0%, rgba(18,184,134,.35) 40%, transparent 41%),
    radial-gradient(120% 140% at 90% 90%, var(--brand) 0%, rgba(14,107,168,.35) 42%, transparent 43%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: var(--shadow);
}
.nav__list{ list-style:none; margin:0; padding:0; display:flex; gap: 22px; }
.nav__list a{
  color: var(--ink); text-decoration:none; font-weight:600;
  padding:8px 10px; border-radius:10px;
}
.nav__list a:hover{ background: rgba(14,107,168,.08); color: var(--brand-dark); }
.nav__list a.is-active{ color: var(--brand); background: rgba(14,107,168,.10); }
.nav__toggle{ display:none; background:transparent; border:0; font-size:1.25rem; }
@media (max-width: 860px){
  .nav__toggle{ display:block; }
  .nav__list{ position:absolute; right:20px; top:64px; background:white; border:1px solid rgba(2,6,23,.06); padding:12px; border-radius:12px; box-shadow: var(--shadow); display:none; flex-direction:column; }
  .nav__list.is-open{ display:flex; }
}
.hero{
  position: relative;
  padding: 56px 0 36px;
  background:
    radial-gradient(1200px 300px at 10% -10%, rgba(14,107,168,.10), transparent 60%),
    radial-gradient(900px 200px at 100% 0%, rgba(18,184,134,.10), transparent 60%);
}
.hero__inner{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items:center; }
.hero h1{ font-size: clamp(2rem, 3.8vw, 3rem); margin: 0 0 10px; }
.hero__badge{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.badge{ background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border:1px solid rgba(2,6,23,.06); }
.badge__kpi{ font-size: 1.25rem; font-weight:800; color: var(--brand-dark); }
.badge__label{ color: var(--muted); font-size:.9rem; }
@media (max-width: 860px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__badge{ grid-template-columns: repeat(2,1fr); }
}
.section{ padding: 54px 0; }
.section--alt{ background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,1)); }
.section h2{ margin:0 0 12px; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--brand-dark); }
.section p{ margin: 0; max-width: 80ch; }
.cards{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.card{ background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid rgba(2,6,23,.06); box-shadow: var(--shadow); }
.card h3{ margin: 0 0 6px; }
@media (max-width: 1020px){ .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .cards{ grid-template-columns: 1fr; } }
.grid{ display:grid; gap: 16px; }
.grid--products{ grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.product-tile{ background: var(--card); border-radius: var(--radius); padding: 18px; border: 1px solid rgba(2,6,23,.06); box-shadow: var(--shadow); }
.product-tile h4{ margin: 0 0 6px; }
@media (max-width: 1020px){ .grid--products{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .grid--products{ grid-template-columns: 1fr; } }
.site-footer{ margin-top: 40px; background: #0c2540; color: #e5e7eb; }
.footer__grid{ display:grid; gap: 18px; grid-template-columns: 2fr 1fr 1fr; padding: 32px 0; }
.footer__links{ list-style: none; margin: 8px 0 0; padding: 0; }
.footer__links li{ margin: 6px 0; }
.footer__links a{ color: #e5e7eb; text-decoration: none; }
.footer__links a:hover{ text-decoration: underline; }
.footer__bar{ border-top:1px solid rgba(255,255,255,.12); padding: 12px 0; text-align:center; font-size:.9rem; color:#cbd5e1; }
@media (max-width: 820px){ .footer__grid{ grid-template-columns: 1fr; } }
/* Gallery */
.gallery-controls{ display:flex; gap:12px; align-items:center; margin: 10px 0 18px; }
.gallery{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1200px){ .gallery{ grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 900px){ .gallery{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 560px){ .gallery{ grid-template-columns: 1fr;} }
.gallery-card{ background: var(--card); border:1px solid rgba(2,6,23,.06); border-radius: 12px; overflow:hidden; box-shadow: var(--shadow); display:flex; flex-direction:column; }
.gallery-card img{ width:100%; aspect-ratio: 4 / 3; object-fit: cover; display:block; }
.gallery-card .gc__body{ padding: 12px; }
.gallery-card h5{ margin: 0 0 6px; font-size: 1rem; color: var(--brand-dark); }
.gallery-card p{ margin: 0; color: var(--muted); font-size: .95rem; }
.search{ padding:.65rem .8rem; border-radius:10px; border:1px solid rgba(2,6,23,.14); width: 260px; max-width: 100%; }

/* ===== Products Page (green theme like reference) ===== */
:root{
  --green: #6aa30c;
  --green-dark: #4c7c09;
}
.hero--products{
  padding: 0;
  background: url('../images/products-hero.jpg') center/cover no-repeat;
  min-height: 620px;
  position: relative;
}
.hero--products .hero-overlay{
  min-height: 620px;
  background: rgba(0,0,0,.35);
  display:flex; align-items:center;
}
.hero--products h1{
  color:#fff; font-size: clamp(2rem,4vw,3rem); text-shadow: 0 6px 28px rgba(0,0,0,.35);
  margin: 0;
}
.hero-title-wrap{ padding: 32px 0; }

.products-layout{
  display:grid; grid-template-columns: 3fr 1.1fr; gap: 24px;
}
@media (max-width: 980px){
  .products-layout{ grid-template-columns: 1fr; }
}

.brand__img {
  height: 42px;       /* adjust as needed */
  width: auto;
  display: block;
}

.products-main .products-toolbar{
  background:#f4f6ef; border:1px solid rgba(0,0,0,.06);
  border-radius: 12px; padding: 12px 14px; display:flex; align-items:center; gap: 14px; justify-content:space-between;
}
.view-toggle{ display:flex; gap:8px; }
.icon-btn{
  border:1px solid rgba(0,0,0,.1); background:#fff; border-radius:8px; padding:6px 10px; cursor:pointer;
}
.icon-btn[aria-pressed="true"]{ background: var(--green); color: #fff; border-color: var(--green-dark); }

.results-count{ color:#4b5563; }
.search-holder{ margin-left:auto; }
.search{ padding:.55rem .8rem; border-radius:10px; border:1px solid rgba(2,6,23,.14); width: 260px; max-width: 100%; }

/* Sidebar */
.products-side .card{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:16px; box-shadow: 0 6px 20px rgba(16,24,40,.06); }
.products-side h3{ margin:0 0 8px; color: var(--green-dark); }
.cat-list{ list-style:none; margin:0; padding:0; }
.cat-list li{ border:1px solid rgba(0,0,0,.06); border-radius:10px; padding:10px 12px; margin-bottom:8px; background:#f8faf7; cursor:pointer; }
.cat-list li.active{ background:#e7f1d7; border-color: var(--green); }
.cat-list li .count{ color:#6b7280; }

/* Cards gallery */
.gallery{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 16px; }
@media (max-width: 1100px){ .gallery{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .gallery{ grid-template-columns: 1fr;} }

.product-card{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:12px; overflow:hidden; box-shadow: 0 6px 20px rgba(16,24,40,.06); display:flex; flex-direction:column; }
.product-card__image{ background:#fafafa; display:flex; align-items:center; justify-content:center; }
.product-card__image img{ width:100%; aspect-ratio: 1 / 1; object-fit: contain; display:block; }
.product-card__body{ padding: 14px 16px; }
.product-card__title{ margin:0; font-size: 1.05rem; color:#0f172a; }
.product-card__desc{ margin:.4rem 0 0; color:#6b7280; font-size: .95rem; }

/* List view */
.gallery.list{ grid-template-columns: 1fr; }
.gallery.list .product-card{ flex-direction:row; }
.gallery.list .product-card__image{ width:180px; }
@media (max-width: 520px){ .gallery.list .product-card__image{ width:120px; } }

/* Pagination */
.pagination{ display:flex; gap:10px; align-items:center; justify-content:center; margin-top: 16px; }
.page-btn{ border:1px solid rgba(0,0,0,.12); background:#fff; border-radius:8px; padding:6px 12px; cursor:pointer; }
.page-btn:disabled{ opacity:.5; cursor:not-allowed; }
.page-info{ color:#6b7280; }

/* ===== Contact Us Widget ===== */
:root{
  --cu-green: #0F2434;        /* top */
  --cu-green-dark: #0B1B28;   /* bottom */
  
}

/* Wrapper, Overlay, Panel positions */
.cu-panel__body,
.cu-panel__footer{
  background: #ffffff !important;
}
.cu-wrap{ position:fixed; right:18px; bottom:18px; z-index:9999; }
.cu-overlay{
  position: absolute;
  right: 0;
  bottom: 72px;
  z-index: 10000;                /* ABOVE the overlay */
  background: #ffffff !important;/* solid, no see-through */
  opacity: 1 !important;
  backdrop-filter: none !important;
}
.cu-panel{
  width:min(360px, 92vw); background:var(--cu-bg); color:var(--cu-text);
  border:1px solid var(--cu-ring); border-radius:16px; overflow:hidden;
  box-shadow:var(--cu-shadow); position:absolute; right:0; bottom:72px;
  display:flex; flex-direction:column; animation:cu-pop .18s ease-out;
}
@keyframes cu-pop{ from{ transform:translateY(8px); opacity:0 } to{ transform:none; opacity:1 } }

/* FAB */
.cu-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 56px;
  max-width: 56px;                 /* compact by default */
  padding: 0 14px 0 12px;          /* space for label when expanded */
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid var(--cu-ring, rgba(0,0,0,.08));
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cu-green,#25D366), var(--cu-green-dark,#1EB45A));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  cursor: pointer;
  transition: max-width .25s ease, transform .15s ease, box-shadow .15s ease;
}
.cu-fab:hover{ transform:translateY(-1px); box-shadow:0 12px 28px rgba(0,0,0,.22); }
.cu-fab-icon img{ width: 26px; height: 26px; object-fit: contain; display: block; }
.cu-fab-text{
  font-weight: 600;
  opacity: 0;
  max-width: 0;
  transition: opacity .2s ease .05s, max-width .25s ease;
}
              /* hide the old ✉️ span if it still exists */
.cu-fab-icon-img{
  width: 26px; height: 26px;
  object-fit: contain; display: block;
}

/* reveal label on desktop hover */
@media (hover:hover){
  .cu-fab:hover{
    max-width: 220px;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
  }
  .cu-fab:hover .cu-fab-text{
    opacity: 1;
    max-width: 160px;
  }
}
/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .cu-fab, .cu-fab-text{ transition: none !important; }
}
/* Header */
.cu-panel__header{
  background:linear-gradient(180deg,var(--cu-green),var(--cu-green-dark));
  color:#fff; padding:14px; display:flex; align-items:center; justify-content:space-between;
}
.cu-brand{ display:flex; gap:10px; align-items:center; }
.cu-brand__icon{ width:28px; height:28px; object-fit:contain; border-radius:50%; background:rgba(255,255,255,.16); }
.cu-panel__title{ font-weight:700; font-size:14px; }
.cu-panel__subtitle{ font-size:12px; opacity:.9; }
.cu-close{ background:rgba(255,255,255,.2); color:#fff; border:none; border-radius:8px; width:28px; height:28px; cursor:pointer; }

/* Body */
.cu-panel__body{ padding:14px; display:flex; flex-direction:column; gap:12px; }
.cu-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cu-field{ display:flex; flex-direction:column; gap:6px; font-size:13px; }
.cu-field input, .cu-field textarea{
  width:100%; border:1px solid #e3e8ee; border-radius:10px; padding:10px 12px; font-size:14px;
  outline:none; transition:border-color .15s ease, box-shadow .15s ease;
}
.cu-field input:focus, .cu-field textarea:focus{
  border-color:#b7e7c8; box-shadow:0 0 0 3px rgba(37,211,102,.18);
}
.cu-hint{ font-size:12px; color:var(--cu-muted); }
.cu-status{ font-size:12px; min-height:16px; }

/* Footer */
.cu-panel__footer{ padding:12px 14px; display:flex; justify-content:flex-end; }
.cu-send{
  display:inline-flex; align-items:center; gap:10px;
  background:linear-gradient(180deg,var(--cu-green),var(--cu-green-dark));
  color:#fff; border:none; border-radius:10px; padding:10px 14px; font-weight:600; cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.16); transition:filter .15s ease, transform .15s ease;
}
.cu-send:disabled{ filter:grayscale(.6) brightness(.9); cursor:not-allowed; }
.cu-send:hover:not(:disabled){ transform:translateY(-1px); }

/* Mobile tweak */
@media (max-width: 420px){ .cu-row{ grid-template-columns:1fr; } }

/* Safe areas */
@supports(padding:max(0px)){
  .cu-wrap{ right:max(18px, env(safe-area-inset-right)); bottom:max(18px, env(safe-area-inset-bottom)); }
}

/* Print */
@media print{ .cu-wrap, .cu-panel{ display:none !important; } }
/* Ensure hidden attribute always hides the widget */
#cu-panel[hidden], #cu-overlay[hidden] { display: none !important; }
