/* ============================================================
   MedRepute — UNIVERSAL STYLES
   Shared by every page: design tokens, nav, ticker, footer,
   floating WhatsApp button, common buttons and section helpers.
   Page-specific styles stay in each page's own <style>.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

:root {
  --white:   #ffffff;
  --off:     #F0F5FF;
  --blue-lt: #DCE9FF;
  --blue:    #1E7AEA;
  --blue-md: #1259C3;
  --blue-dk: #082D82;
  --gray:    #6B7280;
  --gray-lt: #9CA3AF;
  --text:    #0D1F3C;
  --border:  #C8DAFF;
  --wa:      #25D366;
  --r:       14px;
  --r-lg:    22px;
  --max:     1100px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── CONTAINER ─────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION HELPERS ───────────────────── */
.stag {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue-md);
  display: block; margin-bottom: 10px;
}
.sec-h {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.8px; color: var(--blue-dk);
}
.sec-p {
  font-size: 16px; color: var(--gray);
  line-height: 1.75; margin-top: 12px;
}
.section { padding: 78px 0; }
.section--off { background: var(--off); }
.section--dk { background: var(--blue-dk); }

/* ── NAV ───────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 24px;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 50px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.10);
}
.nav-logo { font-size: 17px; font-weight: 800; color: var(--blue-dk); letter-spacing: -0.4px; }
.nav-logo em { font-style: normal; color: var(--blue); }
.nav-links {
  display: none;
  gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue-dk); }
.nav-wa {
  display: flex; align-items: center; gap: 0;
  background: var(--blue-dk); color: #fff;
  padding: 10px 10px 10px 20px; border-radius: 50px;
  font-weight: 700; font-size: 13px;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-wa:hover { background: var(--blue-md); }
.nav-wa-label { margin-right: 10px; }
.nav-wa-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-wa-icon svg { width: 15px; height: 15px; fill: #fff; }

/* On a phone the logo, this button and the burger together exceeded the
   viewport, so the whole page scrolled sideways. Drop to the icon alone —
   the label is redundant next to the sticky WhatsApp bar at the bottom. */
@media (max-width: 460px) {
  .nav-wa { padding: 5px; }
  .nav-wa-label { display: none; }
}

.nav-burger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; height: 2px; border-radius: 2px; width: 100%;
  background: var(--blue-dk);
  transition: transform 0.22s, opacity 0.22s, width 0.22s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a { font-size: 28px; font-weight: 700; color: var(--blue-dk); text-decoration: none; letter-spacing: -0.5px; }
.nav-drawer a:hover { color: var(--blue); }
.drawer-wa {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); padding: 14px 28px; border-radius: 50px;
  font-size: 16px; font-weight: 700; text-decoration: none !important; color: #fff !important;
}
.drawer-wa svg { width: 18px; height: 18px; fill: #fff; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* ── MARQUEE / TICKER ──────────────────── */
.marquee-wrap { background: var(--blue-dk); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex; align-items: center; gap: 18px;
  padding: 0 28px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.55); white-space: nowrap;
}
.mdot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ── SHARED BUTTONS ────────────────────── */
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--wa); color: #fff;
  padding: 16px 28px; border-radius: 50px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.32);
  transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
  width: fit-content;
}
.btn-wa:hover { background: #20bc5a; box-shadow: 0 8px 26px rgba(37,211,102,0.42); transform: translateY(-1px); }
.btn-wa:active { transform: scale(0.97); }
.btn-wa svg { width: 18px; height: 18px; fill: #fff; }

/* ── FOOTER ────────────────────────────── */
footer {
  background: var(--blue-dk); padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ft-logo { font-size: 16px; font-weight: 800; color: #fff; display: inline-block; margin-bottom: 10px; letter-spacing: -0.4px; }
.ft-logo em { font-style: normal; color: var(--blue); }
footer p { font-size: 13px; color: rgba(255,255,255,0.48); line-height: 1.75; }

/* ── FLOATING WHATSAPP ─────────────────── */
.float-wa {
  position: fixed; bottom: 20px; right: 18px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,0.42);
  transition: transform 0.18s;
}
.float-wa:active { transform: scale(0.9); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }

/* ── OFFER BAR (top) ───────────────────── */
.offer-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  height: 38px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #0B0F1A; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden;
}
.offer-bar .ob-tag { color: #FFC531; font-weight: 800; letter-spacing: 0.4px; }
.offer-bar .ob-price { font-weight: 800; }
.offer-bar .ob-price s { color: rgba(255,255,255,0.5); font-weight: 500; margin-left: 4px; }
.offer-bar .ob-cta {
  background: #FFC531; color: #0B0F1A; border-radius: 30px;
  padding: 4px 11px; font-size: 12px; font-weight: 800;
}
.offer-bar:hover .ob-cta { background: #fff; }
body.has-offerbar .nav { top: 38px; }
@media (max-width: 420px) {
  .offer-bar { gap: 8px; font-size: 12px; padding: 0 10px; }
  .offer-bar .ob-cta { padding: 3px 9px; font-size: 11px; }
}
@media (max-width: 360px) { .offer-bar .ob-price s { display: none; } }

/* ── OFFER CARD (on scroll) ────────────── */
.offer-card {
  position: fixed; z-index: 290; left: 18px; bottom: 20px;
  width: 300px; padding: 20px 20px 16px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 14px 48px rgba(8,45,130,0.25);
  border: 1px solid rgba(0,0,0,0.06);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(.2,.9,.3,1.2), opacity 0.3s;
}
.offer-card.show { transform: none; opacity: 1; pointer-events: auto; }
.oc-close {
  position: absolute; top: 8px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 22px; line-height: 1; color: #667;
}
.oc-close:hover { background: #F1F3F8; }
.oc-tag {
  display: inline-block; background: #0B0F1A; color: #FFC531;
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 30px;
}
.oc-title { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--blue-dk); }
.oc-price { font-size: 30px; font-weight: 800; color: var(--blue-dk); letter-spacing: -0.8px; }
.oc-price s { font-size: 16px; font-weight: 500; color: #99A; margin-left: 6px; letter-spacing: 0; }
.oc-sub { font-size: 12.5px; color: #556; margin-top: 4px; line-height: 1.5; }
.oc-wa {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; padding: 12px; border-radius: 12px;
}
.oc-wa svg { width: 18px; height: 18px; fill: #fff; }
.oc-more {
  display: block; text-align: center; margin-top: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--blue-md);
}
@media (max-width: 600px) {
  .offer-card { left: 12px; right: 12px; width: auto; bottom: 88px; }
}
