/* ================================================
   Adrijen Healthcare — Custom Styles
   ================================================ */

:root {
  --brand-50:  #effaf6;
  --brand-100: #d8f2e7;
  --brand-200: #b3e5d2;
  --brand-300: #82d1b6;
  --brand-400: #4cb795;
  --brand-500: #2a9d7a;
  --brand-600: #1d7e62;
  --brand-700: #186551;
  --brand-800: #155142;
  --brand-900: #114338;
  --ink-900:   #0b1d2a;
  --ink-700:   #1f3a4d;
  --ink-500:   #4a6478;
  --ink-300:   #8aa1b3;
  --ink-100:   #e6edf2;
  --accent:    #ff7849;
  --accent-2:  #2563eb;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink-700);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

/* ---------- Reusable utilities ---------- */
.container-x { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(29,126,98,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 35px -12px rgba(29,126,98,.7); }
.btn-ghost {
  background: rgba(255,255,255,.85);
  color: var(--ink-900);
  border: 1px solid rgba(11,29,42,.1);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; border-color: var(--brand-500); color: var(--brand-700); }

/* ---------- Animated gradient hero background ---------- */
.hero-bg {
  position: relative;
  background:
    radial-gradient(1200px 600px at 10% 0%,  rgba(42,157,122,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%,  rgba(37,99,235,.14),  transparent 55%),
    radial-gradient(800px 600px at 50% 100%, rgba(255,120,73,.12), transparent 60%),
    linear-gradient(180deg, #f6fbf9 0%, #ffffff 70%);
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(11,29,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,29,42,.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Floating molecular blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(50px); opacity: .55;
  animation: floatY 9s ease-in-out infinite;
  pointer-events: none;
}
.blob.b1 { width: 320px; height: 320px; background: #6ee7b7; top: -80px; left: -80px; }
.blob.b2 { width: 260px; height: 260px; background: #93c5fd; bottom: -90px; right: -60px; animation-delay: -3s; }
.blob.b3 { width: 200px; height: 200px; background: #fdba74; top: 40%; right: 30%; animation-delay: -6s; opacity: .4; }
@keyframes floatY {
  0%,100% { transform: translateY(0) translateX(0) scale(1); }
  50%     { transform: translateY(-25px) translateX(10px) scale(1.05); }
}

/* ---------- Pill / badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: rgba(42,157,122,.1);
  color: var(--brand-700);
  font-weight: 600; font-size: .8rem; letter-spacing: .02em;
  border: 1px solid rgba(42,157,122,.2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(42,157,122,.18); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid rgba(11,29,42,.08);
  border-radius: 22px;
  padding: 1.75rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -25px rgba(11,29,42,.18);
  border-color: rgba(42,157,122,.35);
}
.card .icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-100), #fff);
  color: var(--brand-700);
  margin-bottom: 1rem;
  border: 1px solid rgba(42,157,122,.18);
}
.card.feature::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,157,122,.12), transparent 70%);
  transition: transform .5s ease;
}
.card.feature:hover::after { transform: scale(1.4); }

/* ---------- Section headings ---------- */
.section-title { font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-weight: 800; line-height: 1.15; }
.section-eyebrow { color: var(--brand-600); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(11,29,42,.06);
}
.nav-link {
  position: relative; padding: .5rem .25rem;
  font-weight: 500; color: var(--ink-700);
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--brand-700); }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px; background: var(--brand-500);
  transition: width .25s ease, left .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 0;
  background: rgba(11,29,42,.5);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 100;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(85vw, 360px);
  background: #fff; padding: 1.5rem;
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 1rem;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu a { padding: .85rem 1rem; border-radius: 12px; font-weight: 600; color: var(--ink-900); }
.mobile-menu a:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---------- Stat counters ---------- */
.stat { text-align: center; padding: 1rem; }
.stat .num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--brand-700); line-height: 1; }
.stat .lbl { color: var(--ink-500); margin-top: .35rem; font-weight: 500; }

/* ---------- Marquee logos ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3rem; animation: scrollX 30s linear infinite; width: max-content; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Tilt + shine product card ---------- */
.product-card {
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  border: 1px solid rgba(11,29,42,.08);
  border-radius: 20px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.product-card:hover { transform: translateY(-8px) rotate(-.3deg); box-shadow: 0 30px 60px -25px rgba(11,29,42,.22); }
.product-card .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-50), #eef5ff);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.product-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.product-card:hover .thumb::after { transform: translateX(120%); }

/* ---------- Tabs ---------- */
.tab-btn {
  padding: .6rem 1.1rem; border-radius: 999px;
  font-weight: 600; color: var(--ink-700);
  background: #fff; border: 1px solid rgba(11,29,42,.08);
  transition: all .25s ease;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--brand-700); border-color: var(--brand-300); }
.tab-btn.active { background: var(--brand-700); color: #fff; border-color: var(--brand-700); box-shadow: 0 10px 20px -10px rgba(29,126,98,.55); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: .5rem; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--brand-500), transparent);
}
.timeline .item { position: relative; padding-bottom: 2rem; }
.timeline .item::before {
  content: ""; position: absolute; left: -1.65rem; top: .35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-500);
  box-shadow: 0 0 0 4px rgba(42,157,122,.15);
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { border: 1px solid rgba(11,29,42,.08); border-radius: 16px; background: #fff; overflow: hidden; }
.accordion + .accordion { margin-top: .75rem; }
.accordion summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .chev { transition: transform .25s ease; color: var(--brand-700); }
.accordion[open] summary .chev { transform: rotate(180deg); }
.accordion .body { padding: 0 1.25rem 1.25rem; color: var(--ink-500); line-height: 1.65; }

/* ---------- Forms ---------- */
.input, .textarea, .select {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(11,29,42,.12);
  background: #fff;
  font: inherit; color: var(--ink-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(42,157,122,.15);
}
.label { display: block; font-weight: 600; color: var(--ink-700); margin-bottom: .35rem; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #0b1d2a, #0a1822);
  color: #c9d6e0;
}
.site-footer h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #c9d6e0; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .social {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s ease, transform .2s ease;
}
.site-footer .social:hover { background: var(--brand-500); transform: translateY(-3px); color:#fff; }

/* ---------- Page header banner ---------- */
.page-banner {
  position: relative; overflow: hidden;
  padding: 7rem 0 4rem;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(37,99,235,.12), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(42,157,122,.18), transparent 60%),
    linear-gradient(180deg, #f3f9f7, #ffffff);
}
.page-banner h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }

/* ---------- Breadcrumbs ---------- */
.crumbs { color: var(--ink-500); font-size: .9rem; }
.crumbs a:hover { color: var(--brand-700); }

/* ---------- Blog cards ---------- */
.post-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid rgba(11,29,42,.08); transition: transform .3s ease, box-shadow .3s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 25px 45px -25px rgba(11,29,42,.18); }
.post-card .cover { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--brand-100), #dbeafe); position: relative; overflow: hidden; }
.post-card .cover .tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); color: var(--brand-700); padding: .35rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- Loader (page-fade in) ---------- */
.fade-in { animation: fadeUp .7s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .btn { display: none !important; } }
