/* ============================================================
   Medices Pharma — Modern Brand Stylesheet
   Palette: blue + green from the logo, soothing whites & mints.
   ============================================================ */

:root {
  /* Logo-driven palette */
  --m-blue:        #2A7DE1;
  --m-blue-600:    #1E66C2;
  --m-blue-700:    #154EA0;
  --m-blue-50:     #EAF2FC;

  --m-green:       #5BC236;
  --m-green-600:   #4AA929;
  --m-green-700:   #38881C;
  --m-green-50:    #ECF9E5;

  --m-mint:        #B8F0CB;
  --m-sky:         #DCEBFB;

  /* Neutrals */
  --m-ink:         #0E1B2C;
  --m-ink-2:       #243349;
  --m-muted:       #5B6B82;
  --m-line:        #E6ECF4;
  --m-bg:          #F6FAFE;
  --m-bg-soft:     #F1F7FB;
  --m-card:        #FFFFFF;

  /* Effects */
  --m-shadow-xs:   0 2px 8px rgba(15, 35, 70, .06);
  --m-shadow-sm:   0 8px 24px rgba(15, 35, 70, .08);
  --m-shadow-md:   0 18px 48px rgba(15, 35, 70, .12);
  --m-shadow-lg:   0 28px 80px rgba(20, 78, 160, .25);
  --m-radius:      18px;
  --m-radius-lg:   28px;

  --m-grad-blue-green:  linear-gradient(135deg, #2A7DE1 0%, #38AEB2 50%, #5BC236 100%);
  --m-grad-soft:        linear-gradient(135deg, #EAF2FC 0%, #ECF9E5 100%);
  --m-grad-deep:        linear-gradient(135deg, #154EA0 0%, #1E66C2 50%, #38881C 100%);

  --m-ease:        cubic-bezier(.2,.7,.2,1);
}

/* ----------- Reset / base ----------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  overflow-x: clip;        /* prevent horizontal scroll caused by decorative blobs / off-canvas nav */
  max-width: 100vw;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--m-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--m-blue); text-decoration: none; transition: color .2s var(--m-ease); }
a:hover { color: var(--m-blue-700); }
h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  color: var(--m-ink);
  letter-spacing: -0.022em;
  margin: 0 0 .6em;
  line-height: 1.18;
}
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
p  { margin: 0 0 1em; color: var(--m-muted); }
::selection { background: var(--m-blue); color: #fff; }

/* Hide legacy template artefacts in case they leak */
#preloader, .back-to-top { display: none !important; }

/* ----------- Buttons ----------- */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--m-ease), box-shadow .25s var(--m-ease), background .25s var(--m-ease), color .25s var(--m-ease);
  white-space: nowrap;
}
.m-btn i { font-size: 18px; }
.m-btn-primary {
  background: var(--m-grad-blue-green);
  color: #fff;
  box-shadow: 0 14px 30px rgba(42, 125, 225, .32);
}
.m-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(42, 125, 225, .42);
  color: #fff;
}
.m-btn-ghost {
  background: rgba(255,255,255,.7);
  color: var(--m-ink);
  border: 1.5px solid var(--m-line);
  backdrop-filter: blur(8px);
}
.m-btn-ghost:hover {
  background: #fff;
  border-color: var(--m-blue);
  color: var(--m-blue);
  transform: translateY(-2px);
}
.m-btn-white {
  background: #fff;
  color: var(--m-blue-700);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.m-btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  color: var(--m-blue-700);
}

.m-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--m-blue);
  font-weight: 600;
  font-size: 14px;
}
.m-link-arrow i { transition: transform .25s var(--m-ease); }
.m-link-arrow:hover i { transform: translateX(4px); }

/* ----------- Pills / eyebrow / tags ----------- */
.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  backdrop-filter: blur(6px);
}

.m-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--m-blue-50);
  color: var(--m-blue-700);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.m-eyebrow-blue  { background: var(--m-blue-50);  color: var(--m-blue-700); }
.m-eyebrow-green { background: var(--m-green-50); color: var(--m-green-700); }
.m-eyebrow-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

.m-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.m-tag-blue  { background: var(--m-blue-50);  color: var(--m-blue-700); }
.m-tag-green { background: var(--m-green-50); color: var(--m-green-700); }

/* ----------- Text helpers ----------- */
.m-text-blue  { color: var(--m-blue); }
.m-text-green { color: var(--m-green-600); }
.m-text-mint  { color: var(--m-mint); }
.text-white   { color: #fff !important; }

/* ----------- Section defaults ----------- */
.m-section { padding: 110px 0; position: relative; }
.m-section-soft { background: var(--m-bg); }
.m-section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.m-section-head h2 { margin-bottom: 14px; }
.m-section-head p  { font-size: 16.5px; color: var(--m-muted); }

@media (max-width: 767px) {
  .m-section { padding: 80px 0; }
  .m-section-head { margin-bottom: 44px; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.m-topbar {
  background: var(--m-grad-deep);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  position: relative;        /* scrolls away with the page; header stays sticky */
  z-index: 1001;
}
.m-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
}
.m-topbar a {
  color: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 22px;
}
.m-topbar a:hover { color: #fff; text-decoration: underline; }
.m-topbar a i { color: var(--m-mint); }

/* ============================================================
   HEADER
   ============================================================ */
.m-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15, 35, 70, .06);
  transition: box-shadow .25s var(--m-ease), background .25s var(--m-ease);
}
.m-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(15, 35, 70, .08);
}
@media (max-width: 991px) {
  /* On mobile: header is fully opaque so content cannot bleed through behind logo/menu */
  .m-header { background: #ffffff; }
  .m-header.is-scrolled { background: #ffffff; box-shadow: 0 8px 24px rgba(15, 35, 70, .12); }
}
.m-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 12px;
}

.m-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--m-ink);
  flex-shrink: 0;
}
.m-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(42, 125, 225, .28));
}
.m-logo-text {
  display: inline-flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--m-ink);
}
.m-logo-text small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: var(--m-grad-blue-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.m-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.m-nav a {
  color: var(--m-ink-2);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
  transition: color .2s var(--m-ease);
}
.m-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--m-grad-blue-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--m-ease);
}
.m-nav a:hover, .m-nav a.active { color: var(--m-blue); }
.m-nav a:hover::after, .m-nav a.active::after { transform: scaleX(1); }

.m-cta-nav { padding: 11px 22px; }
.m-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--m-ink);
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
}

@media (max-width: 991px) {
  .m-cta-nav { display: none; }
  .m-nav-toggle { display: inline-flex; position: relative; z-index: 1110; }

  /* Drop-down sheet under the header — keeps the page visible below and dimmed */
  .m-nav {
    position: fixed;
    top: 70px;          /* sits just under the sticky header */
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 90px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 35, 70, .25);
    border: 1px solid var(--m-line);
    transform-origin: top right;
    transform: translateY(-12px) scale(.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform .3s var(--m-ease),
      opacity .25s var(--m-ease),
      visibility .25s var(--m-ease);
    z-index: 1100;
    overflow-y: auto;
  }
  .m-nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .m-nav a {
    padding: 14px 22px;
    border-bottom: 1px solid var(--m-line);
    border-radius: 0;
    font-size: 16px;
    color: var(--m-ink);
  }
  .m-nav a:last-child { border-bottom: none; }
  .m-nav a::after { display: none; }
  .m-nav a.active {
    background: var(--m-blue-50);
    color: var(--m-blue-700);
    font-weight: 600;
  }

  /* Invisible click-catcher — closes the menu when tapping outside, no dim/tint at all */
  .m-nav-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--m-ease), visibility .25s var(--m-ease);
    z-index: 1090;
  }
  .m-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  /* Make sure the toggle (which becomes X) sits above the drawer */
  .m-nav-toggle { z-index: 1110; }
}

/* ============================================================
   HERO
   ============================================================ */
.m-hero {
  position: relative;
  padding: 90px 0 110px;
  background: linear-gradient(180deg, #F4FAFD 0%, #ECF6FE 60%, #F1FBEC 100%);
  overflow: hidden;
}
.m-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.m-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: m-float 14s ease-in-out infinite;
}
.m-blob-blue {
  width: 460px; height: 460px;
  background: radial-gradient(circle at 30% 30%, var(--m-blue) 0%, transparent 70%);
  top: -120px; left: -120px;
}
.m-blob-green {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 70% 70%, var(--m-green) 0%, transparent 70%);
  bottom: -160px; right: -120px;
  animation-delay: -5s;
}
.m-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 35, 70, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 35, 70, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}
@keyframes m-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -20px) scale(1.06); }
}

.m-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 991px) {
  .m-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

.m-hero-copy h1 { margin-bottom: 18px; }
.m-hero-lead {
  font-size: 18px;
  color: var(--m-ink-2);
  max-width: 560px;
  margin-bottom: 34px;
  line-height: 1.7;
}
@media (max-width: 991px) { .m-hero-lead { margin-left: auto; margin-right: auto; } }

.m-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
@media (max-width: 991px) { .m-hero-actions { justify-content: center; } }

.m-hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 35, 70, .08);
}
@media (max-width: 991px) { .m-hero-stats { justify-content: center; } }

.m-stat-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: var(--m-grad-blue-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.m-stat-num span { font-size: 22px; }
.m-stat-label {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--m-muted);
}

/* Hero visual */
.m-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.m-hero-glow {
  position: absolute;
  inset: 5%;
  background: var(--m-grad-blue-green);
  filter: blur(70px);
  opacity: .35;
  border-radius: 50%;
  animation: m-pulse 5s ease-in-out infinite;
}
.m-hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(42, 125, 225, .22);
  pointer-events: none;
  animation: m-spin 40s linear infinite;
}
.m-hero-ring-1 { width: 70%; height: 70%; top: 15%; left: 15%; }
.m-hero-ring-2 {
  width: 92%; height: 92%;
  top: 4%; left: 4%;
  border-color: rgba(91, 194, 54, .2);
  border-style: dotted;
  animation-direction: reverse;
  animation-duration: 60s;
}
@keyframes m-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.m-hero-orbit {
  position: absolute;
  width: 68%; height: 68%;
  top: 16%; left: 16%;
  pointer-events: none;
  animation: m-spin 28s linear infinite;
}
.m-hero-dot {
  position: absolute;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: var(--m-shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  animation: m-spin-rev 28s linear infinite;
}
@keyframes m-spin-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.m-hero-dot-1 { top: -21px;  left: 50%; margin-left: -21px; color: var(--m-blue); }
.m-hero-dot-2 { top: 50%; right: -21px; margin-top: -21px;  color: var(--m-green-700); }
.m-hero-dot-3 { bottom: -21px; left: 50%; margin-left: -21px; color: var(--m-blue-700); }
.m-hero-dot-4 { top: 50%; left: -21px; margin-top: -21px;   color: var(--m-green); }
@media (max-width: 575px) {
  .m-hero-orbit, .m-hero-ring { display: none; }
}
@keyframes m-pulse {
  0%, 100% { opacity: .28; transform: scale(1); }
  50%      { opacity: .45; transform: scale(1.07); }
}
.m-hero-visual > img {
  position: relative;
  z-index: 2;
  width: min(420px, 92%);
  filter: drop-shadow(0 30px 50px rgba(20, 78, 160, .3));
  animation: m-floatGentle 6s ease-in-out infinite;
}
@keyframes m-floatGentle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.m-float-card {
  position: absolute;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--m-shadow-md);
  z-index: 3;
  animation: m-floatGentle 6s ease-in-out infinite;
  min-width: 180px;
}
.m-float-card strong { display: block; font-size: 14px; color: var(--m-ink); font-family: "Plus Jakarta Sans", sans-serif; }
.m-float-card span   { display: block; font-size: 12px; color: var(--m-muted); }
.m-float-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.m-icon-blue  { background: linear-gradient(135deg, var(--m-blue),  var(--m-blue-700));  box-shadow: 0 8px 18px rgba(42, 125, 225, .35); }
.m-icon-green { background: linear-gradient(135deg, var(--m-green), var(--m-green-700)); box-shadow: 0 8px 18px rgba(91, 194, 54, .35); }

.m-float-1 { top: 8%;   left: -2%;  animation-delay: -1s; }
.m-float-2 { bottom: 18%; right: -4%; animation-delay: -3s; }
.m-float-3 { bottom: 0%;  left: 8%;  animation-delay: -5s; }

@media (max-width: 575px) {
  .m-float-1 { top: 0; left: 0; }
  .m-float-2 { bottom: 6%; right: 0; }
  .m-float-3 { display: none; }
  .m-float-card { padding: 10px 12px; min-width: 0; }
  .m-float-card strong { font-size: 13px; }
  .m-float-card span { font-size: 11px; }
  .m-hero-stats { gap: 22px; }
  .m-stat-num { font-size: 26px; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.m-trust { padding: 50px 0 30px; background: #fff; position: relative; }
.m-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) { .m-trust-grid { grid-template-columns: repeat(2, 1fr); } }

.m-trust-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  padding: 30px 26px 26px;
  text-align: left;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease), border-color .3s var(--m-ease);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.m-trust-card::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: var(--m-grad-soft);
  border-radius: 50%;
  opacity: .65;
  z-index: 0;
}
.m-trust-card > * { position: relative; z-index: 1; }
.m-trust-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--m-grad-soft);
  opacity: 0;
  transition: opacity .3s var(--m-ease);
}
.m-trust-card > * { position: relative; z-index: 1; }
.m-trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--m-shadow-md);
  border-color: transparent;
}
.m-trust-card:hover::before { opacity: 1; }

.m-trust-ring {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  color: #fff;
}
.m-ring-blue  { background: linear-gradient(135deg, var(--m-blue),  var(--m-blue-700));  box-shadow: 0 12px 24px rgba(42, 125, 225, .3); }
.m-ring-green { background: linear-gradient(135deg, var(--m-green), var(--m-green-700)); box-shadow: 0 12px 24px rgba(91, 194, 54, .3); }

.m-trust-card h4 { font-size: 18px; margin-bottom: 4px; }
.m-trust-card p  { font-size: 14px; margin-bottom: 14px; }
.m-trust-meter {
  display: block;
  width: 100%;
  height: 6px;
  background: var(--m-line);
  border-radius: 999px;
  overflow: hidden;
}
.m-trust-meter > span {
  display: block;
  height: 100%;
  background: var(--m-grad-blue-green);
  border-radius: 999px;
  width: 0;
  animation: m-fill 1.5s var(--m-ease) forwards;
  animation-delay: .2s;
}
@keyframes m-fill { to { width: 100%; } }

/* ============================================================
   ABOUT
   ============================================================ */
.m-about { background: #fff; position: relative; overflow: hidden; }
.m-about::before {
  content: "";
  position: absolute;
  top: 60px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle at center, rgba(91, 194, 54, .14), transparent 70%);
  pointer-events: none;
}

.m-about-visual {
  position: relative;
  padding: 30px 30px 50px;
  min-height: 460px;
}
.m-about-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 460px;
}
.m-about-tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--m-shadow-md);
  background: var(--m-bg-soft);
  transition: transform .4s var(--m-ease);
}
.m-about-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-about-tile-1 { transform: translateY(-12px); }
.m-about-tile-2 { transform: translateY(12px) translateX(8px); }
.m-about-tile-3 { transform: translateY(-8px) translateX(-4px); }
.m-about-tile-4 { transform: translateY(16px); }
.m-about-tile:hover { transform: translateY(-4px) scale(1.02); z-index: 5; }

.m-about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}
.m-about-orb-blue  { width: 220px; height: 220px; top: -40px; left: -40px;
  background: radial-gradient(circle at center, var(--m-blue), transparent 70%); }
.m-about-orb-green { width: 240px; height: 240px; bottom: -50px; right: -30px;
  background: radial-gradient(circle at center, var(--m-green), transparent 70%); }

.m-about-dots {
  position: absolute;
  width: 110px; height: 110px;
  bottom: 40px; left: -30px;
  z-index: -1;
  opacity: .6;
}

.m-about-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  background: #fff;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--m-shadow-lg);
  border: 1px solid var(--m-line);
  z-index: 6;
}
.m-about-badge-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--m-grad-blue-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.m-about-badge-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px;
  font-weight: 800;
  background: var(--m-grad-blue-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.m-about-badge-num span { font-size: 22px; }
.m-about-badge-text strong {
  display: block;
  color: var(--m-ink);
  font-size: 14px;
  font-weight: 700;
}
.m-about-badge-text span {
  font-size: 12.5px;
  color: var(--m-muted);
}

.m-about-pill {
  position: absolute;
  bottom: 14px; right: 14px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--m-shadow-md);
  border: 1px solid var(--m-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--m-ink-2);
  z-index: 6;
}
.m-about-pill i {
  font-size: 18px;
  background: var(--m-grad-blue-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 575px) {
  .m-about-collage { height: 360px; }
  .m-about-pill { font-size: 12px; padding: 8px 14px; }
  .m-about-badge { padding: 12px 16px; gap: 10px; }
  .m-about-badge-num { font-size: 26px; }
}

.m-lead { font-size: 17px; color: var(--m-ink-2); line-height: 1.75; margin-bottom: 28px; }

.m-about-points { display: flex; flex-direction: column; gap: 18px; }
.m-point {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: var(--m-radius);
  transition: background .25s var(--m-ease);
}
.m-point:hover { background: var(--m-bg); }
.m-point-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}
.m-point h5 { font-size: 16.5px; margin-bottom: 4px; }
.m-point p  { font-size: 14.5px; color: var(--m-muted); margin: 0; line-height: 1.6; }

/* ============================================================
   SERVICES
   ============================================================ */
.m-service-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius-lg);
  padding: 32px 26px;
  height: 100%;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease), border-color .3s var(--m-ease);
  position: relative;
  overflow: hidden;
}
.m-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--m-grad-blue-green);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--m-ease);
  pointer-events: none;
}
.m-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--m-shadow-md);
  border-color: transparent;
}
.m-service-card:hover::after { opacity: 1; }

.m-service-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  margin-bottom: 18px;
  transition: transform .3s var(--m-ease);
}
.m-service-card:hover .m-service-icon { transform: rotate(-6deg) scale(1.05); }
.m-service-card h4 { font-size: 19px; margin-bottom: 10px; }
.m-service-card p  { font-size: 14.5px; color: var(--m-muted); line-height: 1.7; margin-bottom: 18px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.m-cta-banner { padding: 60px 0 30px; }
.m-cta-card {
  background:
    radial-gradient(700px 280px at 90% 50%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(500px 200px at 10% 100%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(135deg, var(--m-blue-700) 0%, var(--m-blue) 35%, #38AEB2 70%, var(--m-green) 100%);
  border-radius: var(--m-radius-lg);
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 30px 80px rgba(20, 78, 160, .35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.m-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at right, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at right, black 30%, transparent 75%);
  z-index: 0;
}
.m-cta-card > *:not(.m-cta-deco) { position: relative; z-index: 2; }

.m-cta-pill {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  margin-bottom: 14px;
  border-color: rgba(255,255,255,.3) !important;
}

.m-cta-deco {
  position: absolute;
  color: rgba(255,255,255,.18);
  font-size: 90px;
  z-index: 1;
  pointer-events: none;
  animation: m-floatGentle 8s ease-in-out infinite;
}
.m-cta-deco-1 { top: 10%; right: 38%; font-size: 60px; transform: rotate(-15deg); animation-delay: -2s; }
.m-cta-deco-2 { bottom: 16%; right: 32%; font-size: 50px; transform: rotate(12deg); animation-delay: -4s; }
.m-cta-deco-3 { top: 30%; right: 10%; font-size: 80px; transform: rotate(-8deg); animation-delay: -6s; }

.m-cta-text h3 { color: #fff; margin-bottom: 8px; font-size: 30px; line-height: 1.2; }
.m-cta-text p  { color: rgba(255,255,255,.92); margin: 0; font-size: 16px; max-width: 620px; line-height: 1.6; }
@media (max-width: 767px) {
  .m-cta-card { flex-direction: column; text-align: center; padding: 40px 26px; }
  .m-cta-deco { display: none; }
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.m-products { background: #fff; }
.m-product-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease), border-color .3s var(--m-ease);
}
.m-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--m-shadow-md);
  border-color: transparent;
}
.m-product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--m-bg-soft);
}
.m-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--m-ease);
}
.m-product-card:hover .m-product-img img { transform: scale(1.08); }

.m-product-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20, 78, 160, .35) 100%);
  opacity: 0;
  transition: opacity .3s var(--m-ease);
}
.m-product-card:hover .m-product-img::after { opacity: 1; }

.m-product-body {
  padding: 20px 22px 22px;
  position: relative;
}
.m-product-body .m-tag { margin-bottom: 10px; }
.m-product-body h4 {
  font-size: 17.5px;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.m-product-body p {
  font-size: 13.5px;
  color: var(--m-muted);
  line-height: 1.55;
  margin: 0;
}
.m-product-link {
  position: absolute;
  top: -24px;
  right: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--m-grad-blue-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 12px 24px rgba(42, 125, 225, .35);
  transform: scale(0);
  transition: transform .35s var(--m-ease);
}
.m-product-card:hover .m-product-link {
  transform: scale(1);
  color: #fff;
}

/* ============================================================
   WHY US (dark band)
   ============================================================ */
.m-why {
  position: relative;
  padding: 110px 0;
  background: var(--m-grad-deep);
  color: #fff;
  overflow: hidden;
}
.m-why-bg { position: absolute; inset: 0; pointer-events: none; }
.m-why-bg .m-blob {
  filter: blur(110px);
  opacity: .35;
}
.m-why-bg .m-blob-blue  { width: 600px; height: 600px; top: -200px; right: -100px; left: auto; }
.m-why-bg .m-blob-green { width: 500px; height: 500px; bottom: -200px; left: -100px; right: auto; }

.m-why .container { position: relative; z-index: 1; }
.m-why h2 { color: #fff; }
.m-why-lead {
  font-size: 17px;
  color: rgba(255,255,255,.86);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 540px;
}
.m-why-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.m-why-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--m-mint);
  line-height: 1;
}
.m-why-label {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.m-accordion { display: flex; flex-direction: column; gap: 14px; }
.m-accordion details {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--m-radius);
  padding: 18px 22px;
  transition: background .25s var(--m-ease), border-color .25s var(--m-ease);
}
.m-accordion details[open] {
  background: rgba(255,255,255,.14);
  border-color: rgba(184, 240, 203, .4);
}
.m-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}
.m-accordion summary::-webkit-details-marker { display: none; }
.m-acc-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  color: var(--m-mint);
  font-size: 14px;
  letter-spacing: .1em;
}
.m-acc-icon {
  margin-left: auto;
  font-size: 18px;
  color: var(--m-mint);
  transition: transform .3s var(--m-ease);
}
.m-accordion details[open] .m-acc-icon { transform: rotate(45deg); }
.m-accordion p {
  margin: 14px 0 0 38px;
  color: rgba(255,255,255,.85);
  font-size: 14.5px;
  line-height: 1.7;
}

@media (max-width: 575px) {
  .m-accordion p { margin-left: 0; }
}

/* ============================================================
   TEAM
   ============================================================ */
.m-team-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  overflow: hidden;
  text-align: center;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
  height: 100%;
}
.m-team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--m-shadow-md);
}
.m-team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--m-bg-soft);
}
.m-team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--m-ease);
}
.m-team-card:hover .m-team-photo img { transform: scale(1.07); }
.m-team-photo::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(20, 78, 160, .35));
  opacity: 0;
  transition: opacity .3s var(--m-ease);
}
.m-team-card:hover .m-team-photo::before { opacity: 1; }

.m-team-info { padding: 22px 18px; }
.m-team-info h4 { font-size: 18px; margin-bottom: 4px; }
.m-team-info > span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--m-blue-50);
  color: var(--m-blue-700);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.m-team-card:nth-child(2) .m-team-info > span,
.m-team-card:nth-child(4) .m-team-info > span {
  background: var(--m-green-50);
  color: var(--m-green-700);
}
.m-team-social { display: flex; justify-content: center; gap: 8px; }
.m-team-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--m-bg);
  color: var(--m-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all .25s var(--m-ease);
}
.m-team-social a:hover {
  background: var(--m-grad-blue-green);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   FAQ
   ============================================================ */
.m-faq { background: #fff; }
.m-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 767px) { .m-faq-grid { grid-template-columns: 1fr; } }

.m-faq-item {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  padding: 22px 26px;
  transition: border-color .25s var(--m-ease), box-shadow .25s var(--m-ease);
}
.m-faq-item[open] {
  border-color: rgba(42, 125, 225, .3);
  box-shadow: var(--m-shadow-xs);
}
.m-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 16px;
  color: var(--m-ink);
}
.m-faq-item summary::-webkit-details-marker { display: none; }
.m-faq-item summary > i:first-child {
  font-size: 22px;
  background: var(--m-grad-blue-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.m-faq-chev {
  margin-left: auto;
  font-size: 18px;
  color: var(--m-muted);
  transition: transform .3s var(--m-ease);
}
.m-faq-item[open] .m-faq-chev { transform: rotate(180deg); color: var(--m-blue); }
.m-faq-item p {
  margin: 14px 0 0 36px;
  font-size: 14.5px;
  color: var(--m-muted);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.m-contact-info {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius-lg);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.m-contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.m-contact-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.m-contact-info h5 { font-size: 16px; margin-bottom: 4px; }
.m-contact-info p  { font-size: 14.5px; color: var(--m-muted); margin: 0; line-height: 1.65; }
.m-contact-info p a { color: var(--m-ink-2); }
.m-contact-info p a:hover { color: var(--m-blue); }

.m-contact-social {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.m-contact-social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--m-bg);
  color: var(--m-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all .25s var(--m-ease);
}
.m-contact-social a:hover {
  background: var(--m-grad-blue-green);
  color: #fff;
  transform: translateY(-3px);
}

.m-contact-form {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius-lg);
  padding: 32px 28px;
  height: 100%;
}
.m-contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--m-ink-2);
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.m-contact-form input,
.m-contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--m-ink);
  background: var(--m-bg);
  border: 1.5px solid var(--m-line);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color .2s var(--m-ease), box-shadow .2s var(--m-ease), background .2s var(--m-ease);
  outline: none;
}
.m-contact-form input:focus,
.m-contact-form textarea:focus {
  border-color: var(--m-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 125, 225, .14);
}
.m-contact-form textarea { resize: vertical; min-height: 130px; }
.m-contact-form .loading,
.m-contact-form .error-message,
.m-contact-form .sent-message { display: none; padding: 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.m-contact-form .loading.d-block,
.m-contact-form .error-message.d-block,
.m-contact-form .sent-message.d-block { display: block !important; }
.m-contact-form .error-message { background: #fdecea; color: #c0392b; }
.m-contact-form .sent-message  { background: var(--m-green-50); color: var(--m-green-700); }
.m-contact-form .loading       { background: var(--m-blue-50);  color: var(--m-blue-700); }

/* ============================================================
   FOOTER
   ============================================================ */
.m-footer {
  background: #0B1A2C;
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
}

.m-footer-newsletter {
  padding: 60px 0;
  background:
    radial-gradient(600px 300px at 80% 50%, rgba(91, 194, 54, .25), transparent 70%),
    radial-gradient(600px 300px at 20% 50%, rgba(42, 125, 225, .25), transparent 70%),
    #0E2540;
}
.m-newsletter-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: var(--m-radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.m-newsletter-card h3 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.m-newsletter-card p  { color: rgba(255,255,255,.75); margin: 0; font-size: 15px; }

.m-newsletter-form {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  flex: 1 1 360px;
  max-width: 480px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.m-newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--m-ink);
  background: transparent;
}
.m-newsletter-form button {
  background: var(--m-grad-blue-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s var(--m-ease), box-shadow .2s var(--m-ease);
}
.m-newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(91, 194, 54, .3);
}

.m-footer-main {
  padding: 70px 12px 0;
}
.m-footer-main h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.m-footer-main h5::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: var(--m-grad-blue-green);
  border-radius: 2px;
}
.m-footer-main ul { list-style: none; padding: 0; margin: 0; }
.m-footer-main ul li { margin-bottom: 10px; }
.m-footer-main ul a {
  color: rgba(255,255,255,.72);
  font-size: 14.5px;
  transition: color .2s var(--m-ease), padding .2s var(--m-ease);
}
.m-footer-main ul a:hover { color: #fff; padding-left: 4px; }

.m-logo-light .m-logo-text { color: #fff; }
.m-logo-light .m-logo-text small {
  background: linear-gradient(135deg, #88c4ff, #b8f0cb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.m-footer-about {
  margin-top: 14px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.72);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 360px;
}
.m-footer-contact {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.m-footer-contact i {
  color: var(--m-mint);
  margin-top: 3px;
  flex-shrink: 0;
}
.m-footer-contact a { color: rgba(255,255,255,.85); }
.m-footer-contact a:hover { color: #fff; }

.m-footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
}
.m-footer-bottom p { margin: 0; }
.m-footer-bottom a { color: var(--m-mint); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.m-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--m-grad-blue-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 14px 30px rgba(42, 125, 225, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--m-ease);
  z-index: 999;
}
.m-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.m-back-to-top:hover { transform: translateY(-4px); color: #fff; }

/* ============================================================
   Helpers
   ============================================================ */
.m-hide-sm { display: inline-flex; }
@media (max-width: 575px) { .m-hide-sm { display: none !important; } }

/* AOS first paint */
[data-aos] { transition-property: opacity, transform; }

/* Safety fallback: if AOS never fires (script blocked / failed), reveal content */
.no-aos [data-aos],
html.no-aos [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   GLOBAL MOBILE / RESPONSIVE FIXES
   ============================================================ */

/* All section content must respect viewport */
.container { width: 100%; }
.m-section, .m-hero, .m-trust, .m-cta-banner, .m-counters,
.m-testimonials, .m-partners, .m-why, .m-footer { overflow-x: clip; }

/* Marquee track: parent clips, track stays max-content but never affects body width */
.m-partners { overflow: hidden; }
.m-marquee { width: 100%; }

/* Tablet (≤ 991px) tightening */
@media (max-width: 991px) {
  .m-section { padding: 80px 0; }
  .m-hero { padding: 70px 0 80px; }
  #header .container.m-header-inner { padding: 12px 16px; }
  .m-cta-card { padding: 40px 32px; gap: 22px; }
  .m-cta-text h3 { font-size: 26px; }
  .m-section-head h2 { font-size: 32px; line-height: 1.2; }
}

/* Phone (≤ 767px) */
@media (max-width: 767px) {
  h1 { font-size: 38px; line-height: 1.1; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .m-section { padding: 64px 0; }
  .m-section-head { margin-bottom: 36px; padding: 0 4px; }
  .m-section-head h2 { font-size: 26px; line-height: 1.22; word-wrap: break-word; }
  .m-section-head p  { font-size: 15px; }
  .m-eyebrow { font-size: 11px; padding: 6px 12px; letter-spacing: .12em; }

  .m-hero { padding: 50px 0 70px; }
  .m-hero-grid { gap: 30px; }
  .m-hero-copy h1 { font-size: 36px; line-height: 1.1; }
  .m-hero-lead { font-size: 16px; max-width: 100%; }
  .m-hero-actions { gap: 10px; justify-content: flex-start; }
  .m-hero-actions .m-btn { padding: 12px 20px; font-size: 14px; }
  .m-hero-stats { gap: 18px; padding-top: 20px; }
  .m-stat-num { font-size: 24px; }
  .m-stat-num span { font-size: 16px; }
  .m-stat-label { font-size: 11px; letter-spacing: .08em; }

  /* Hero floating cards: smaller and not overflowing */
  .m-float-card { padding: 8px 12px; min-width: 0; }
  .m-float-card strong { font-size: 12px; }
  .m-float-card span   { font-size: 10.5px; }
  .m-float-icon { width: 32px; height: 32px; font-size: 14px; }

  /* Trust strip: 1 col on tiny, 2 col already at 991 */
  .m-trust-grid { gap: 14px; }
  .m-trust-card { padding: 22px 20px; min-height: 0; }

  /* Service cards */
  .m-service-card { padding: 26px 22px; }
  .m-service-card h4 { font-size: 17px; }

  /* About section: collage smaller and badge/pill stacked properly */
  .m-about::before { display: none; }
  .m-about-visual { padding: 18px 8px 60px; min-height: 0; }
  .m-about-collage { height: 380px; gap: 12px; }
  .m-about-tile-1, .m-about-tile-2, .m-about-tile-3, .m-about-tile-4 { transform: none; }
  .m-about-badge {
    bottom: 10px; left: 8px; right: auto;
    padding: 12px 14px; gap: 10px; max-width: 64%;
  }
  .m-about-badge-num { font-size: 24px; }
  .m-about-badge-icon { width: 38px; height: 38px; font-size: 18px; }
  .m-about-pill {
    top: auto; bottom: 10px; right: 8px; left: auto;
    padding: 7px 12px; font-size: 11px; gap: 6px;
    max-width: 30%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .m-about-pill span { font-size: 11px; }
  .m-point { padding: 10px 0; gap: 12px; }
  .m-point-icon { width: 42px; height: 42px; font-size: 18px; }
  .m-point h5 { font-size: 15px; }
  .m-point p  { font-size: 13.5px; }

  /* CTA card */
  .m-cta-card { padding: 32px 22px; }
  .m-cta-text h3 { font-size: 22px; line-height: 1.25; }
  .m-cta-text p  { font-size: 14.5px; }
  .m-cta-card .m-btn { padding: 12px 22px; font-size: 14px; }
  .m-cta-deco { display: none; }

  /* Counters */
  .m-counters { padding: 50px 0; }
  .m-counters-grid { gap: 14px; }
  .m-counter { padding: 22px 14px; }
  .m-counter-num { font-size: 28px; }
  .m-counter-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 10px; }
  .m-counter-label { font-size: 11px; letter-spacing: .04em; line-height: 1.3; }

  /* Filters scroll horizontally on small screens */
  .m-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin: 0 -16px 30px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: flex-start;
  }
  .m-filters::-webkit-scrollbar { display: none; }
  .m-filter { flex-shrink: 0; padding: 9px 14px; font-size: 13px; }

  /* Product cards */
  .m-product-body { padding: 16px 18px 18px; }
  .m-product-body h4 { font-size: 16px; }
  .m-product-body p  { font-size: 12.5px; }
  .m-product-link { width: 40px; height: 40px; right: 18px; top: -20px; font-size: 18px; }

  /* More products: stack 1 column on phones (already declared <575) — also tighten 1-col padding */
  .m-more-card { grid-template-columns: 90px 1fr; gap: 14px; padding: 12px; }
  .m-more-thumb { width: 90px; height: 90px; }
  .m-more-body h4 { font-size: 15px; }
  .m-more-comp { font-size: 12.5px; }
  .m-more-type { font-size: 9.5px; padding: 3px 8px; }
  .m-more-cta { padding: 24px 18px; }
  .m-more-cta p { font-size: 14px; }

  /* Why us */
  .m-why { padding: 70px 0; }
  .m-why h2 { font-size: 26px; line-height: 1.2; }
  .m-why-lead { font-size: 15px; }
  .m-why-stats { gap: 18px; }
  .m-why-num { font-size: 28px; }
  .m-why-label { font-size: 11px; }
  .m-accordion details { padding: 14px 16px; }
  .m-accordion summary { font-size: 14.5px; gap: 10px; }
  .m-accordion p { font-size: 13.5px; margin-left: 0; }

  /* Testimonials */
  .m-testi { padding: 26px 22px; }
  .m-testi blockquote { font-size: 14.5px; }
  .m-testi figcaption { gap: 10px; }
  .m-testi-avatar { width: 38px; height: 38px; font-size: 12.5px; }

  /* Partners marquee */
  .m-marquee-track { gap: 38px; }
  .m-marquee-track img { height: 36px; }

  /* Team */
  .m-team-info { padding: 18px 14px; }
  .m-team-info h4 { font-size: 16px; }
  .m-team-info > span { font-size: 10.5px; padding: 3px 9px; letter-spacing: .06em; }

  /* FAQ */
  .m-faq-item { padding: 18px 20px; }
  .m-faq-item summary { font-size: 14.5px; gap: 10px; }
  .m-faq-item summary > i:first-child { font-size: 18px; }
  .m-faq-item p { font-size: 13.5px; margin-left: 28px; }

  /* Contact */
  .m-contact-info, .m-contact-form { padding: 26px 20px; }
  .m-contact-icon { width: 40px; height: 40px; font-size: 17px; }
  .m-contact-form input,
  .m-contact-form textarea { padding: 11px 14px; font-size: 14.5px; }

  /* Newsletter card */
  .m-newsletter-card { padding: 26px 22px; gap: 18px; }
  .m-newsletter-card h3 { font-size: 20px; }
  .m-newsletter-card p  { font-size: 13.5px; }
  .m-newsletter-form { flex-basis: 100%; }
  .m-newsletter-form input { padding: 10px 14px; font-size: 14px; }
  .m-newsletter-form button { padding: 10px 16px; font-size: 13.5px; }

  /* Footer columns */
  .m-footer-main { padding: 50px 12px 0; }
  .m-footer-main h5 { font-size: 15px; margin-bottom: 14px; }
  .m-footer-bottom { font-size: 12.5px; padding: 18px 0; }
  .m-footer-about { font-size: 13.5px; }
  .m-footer-contact { font-size: 13px; }

  /* Top bar smaller */
  .m-topbar { font-size: 12px; }
  .m-topbar a { margin-right: 14px; }

  /* Container side padding */
  .container { padding-left: 16px; padding-right: 16px; }
}

/* Extra-small (≤ 380px) */
@media (max-width: 380px) {
  .m-hero-copy h1 { font-size: 32px; }
  .m-section-head h2 { font-size: 23px; }
  .m-cta-text h3 { font-size: 20px; }
  .m-stat-num { font-size: 22px; }
  .m-counter-num { font-size: 24px; }
  .m-about-pill { display: none; }
  .m-float-card { padding: 6px 10px; }
}

/* Ensure all image-rich blocks have sensible width caps */
img { max-width: 100%; height: auto; }

/* Long words break instead of overflowing horizontal */
h1, h2, h3, h4, h5, p, li, summary { overflow-wrap: break-word; }
.m-product-body p, .m-more-comp { overflow-wrap: anywhere; }

/* (Body scroll lock removed — dropdown menu doesn't need it) */

/* ============================================================
   PRODUCT FILTERS
   ============================================================ */
.m-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.m-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--m-line);
  color: var(--m-ink-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--m-ease);
  font-family: inherit;
}
.m-filter i { font-size: 15px; opacity: .8; }
.m-filter:hover {
  border-color: var(--m-blue);
  color: var(--m-blue);
  transform: translateY(-2px);
}
.m-filter.is-active {
  background: var(--m-grad-blue-green);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(42, 125, 225, .3);
}
.m-filter.is-active i { opacity: 1; }

.m-product-item {
  transition: opacity .35s var(--m-ease), transform .35s var(--m-ease);
}
.m-product-item.is-hidden {
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
  padding: 0; margin: 0;
}

/* ============================================================
   COUNTERS BAND
   ============================================================ */
.m-counters {
  padding: 70px 0;
  background:
    radial-gradient(500px 200px at 20% 50%, rgba(42, 125, 225, .07), transparent 70%),
    radial-gradient(500px 200px at 80% 50%, rgba(91, 194, 54, .07), transparent 70%),
    #fff;
  border-top: 1px solid var(--m-line);
  border-bottom: 1px solid var(--m-line);
}
.m-counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 767px) { .m-counters-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.m-counter {
  text-align: center;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius);
  padding: 30px 22px;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
}
.m-counter:hover {
  transform: translateY(-6px);
  box-shadow: var(--m-shadow-md);
}
.m-counter-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
}
.m-counter-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 42px;
  font-weight: 800;
  background: var(--m-grad-blue-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.m-counter-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--m-muted);
  text-transform: uppercase;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.m-testimonials {
  background: #fff;
  position: relative;
  overflow: hidden;
}
.m-testimonials::before {
  content: "";
  position: absolute;
  top: 80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle at center, rgba(42, 125, 225, .12), transparent 70%);
  pointer-events: none;
}
.m-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .m-testi-grid { grid-template-columns: 1fr; } }

.m-testi {
  position: relative;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: var(--m-radius-lg);
  padding: 32px 28px 26px;
  margin: 0;
  box-shadow: var(--m-shadow-xs);
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
  overflow: hidden;
}
.m-testi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--m-grad-blue-green);
  border-top-left-radius: var(--m-radius-lg);
  border-top-right-radius: var(--m-radius-lg);
}
.m-testi:hover {
  transform: translateY(-6px);
  box-shadow: var(--m-shadow-md);
}
.m-testi-quote {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 64px;
  color: var(--m-blue-50);
  line-height: 1;
}
.m-testi blockquote {
  margin: 18px 0 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--m-ink-2);
  position: relative;
  z-index: 1;
}
.m-testi figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--m-line);
}
.m-testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.m-testi-avatar-blue  { background: linear-gradient(135deg, var(--m-blue), var(--m-blue-700)); }
.m-testi-avatar-green { background: linear-gradient(135deg, var(--m-green), var(--m-green-700)); }
.m-testi figcaption strong {
  display: block;
  font-size: 14.5px;
  color: var(--m-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.m-testi figcaption span {
  font-size: 12.5px;
  color: var(--m-muted);
}
.m-testi-stars {
  display: flex;
  gap: 2px;
  color: #f5b301;
  font-size: 13px;
}

/* ============================================================
   PARTNERS MARQUEE
   ============================================================ */
.m-partners {
  padding: 50px 0 70px;
  background: #fff;
  border-top: 1px solid var(--m-line);
}
.m-partners-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--m-muted);
  margin-bottom: 28px;
}
.m-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.m-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: m-marquee 28s linear infinite;
}
.m-marquee-track img {
  height: 48px;
  width: auto;
  filter: grayscale(1) brightness(1.05);
  opacity: .55;
  transition: opacity .25s var(--m-ease), filter .25s var(--m-ease);
  flex-shrink: 0;
}
.m-marquee:hover .m-marquee-track { animation-play-state: paused; }
.m-marquee-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes m-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Defensive readability fixes
   ============================================================ */
.m-section-head h2,
.m-section-head h2 .m-text-blue,
.m-section-head h2 .m-text-green {
  /* Make sure gradient/blue/green words inside dark sections don't disappear */
}
.m-why .m-section-head h2 { color: #fff; }
.m-why-bg { z-index: 0; }
.m-why .container { position: relative; z-index: 2; }
.m-why .col-lg-6 { position: relative; z-index: 2; }

/* Ensure deco icons in CTA stay behind text */
.m-cta-card .m-cta-text,
.m-cta-card .m-btn { position: relative; z-index: 3; }

/* ============================================================
   MORE PRODUCTS
   ============================================================ */
.m-more { background: var(--m-bg); position: relative; overflow: hidden; }
.m-more::before {
  content: "";
  position: absolute;
  top: 60px; left: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle at center, rgba(42, 125, 225, .12), transparent 70%);
  pointer-events: none;
}
.m-more::after {
  content: "";
  position: absolute;
  bottom: 60px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(91, 194, 54, .12), transparent 70%);
  pointer-events: none;
}

.m-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
@media (max-width: 991px) { .m-more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .m-more-grid { grid-template-columns: 1fr; } }

.m-more-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 18px;
  padding: 16px;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease), border-color .3s var(--m-ease);
  position: relative;
  overflow: hidden;
}
.m-more-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--m-grad-blue-green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s var(--m-ease);
}
.m-more-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--m-shadow-md);
  border-color: transparent;
}
.m-more-card:hover::before { transform: scaleY(1); }

.m-more-thumb {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--m-bg-soft);
  flex-shrink: 0;
}
.m-more-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--m-ease);
}
.m-more-card:hover .m-more-thumb img { transform: scale(1.08); }

.m-more-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.m-more-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}
.m-more-type i { font-size: 12px; }
.m-type-tablet    { background: var(--m-blue-50);  color: var(--m-blue-700); }
.m-type-capsule   { background: var(--m-green-50); color: var(--m-green-700); }
.m-type-syrup     { background: #FEF3DB;            color: #B07A00; }
.m-type-infusion  { background: #FCE6E1;            color: #B0382A; }
.m-type-injection { background: #EDE9FE;            color: #5B21B6; }

.m-more-body h4 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--m-ink);
  letter-spacing: .01em;
}
.m-more-comp {
  font-size: 13px;
  color: var(--m-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}
.m-more-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.m-more-pack {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--m-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--m-ink-2);
}
.m-more-pack i { font-size: 12px; color: var(--m-blue); }

.m-more-cta {
  margin-top: 50px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--m-line);
  border-radius: var(--m-radius);
  padding: 30px 24px;
}
.m-more-cta p {
  font-size: 15.5px;
  color: var(--m-ink-2);
  margin: 0 0 18px;
}

/* ============================================================
   Team photo polish — handles varied aspect / background photos
   ============================================================ */
.m-team-photo {
  background: var(--m-bg-soft);
}
.m-team-photo img {
  object-position: center top;
}
.m-team-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(15, 35, 70, .55));
  opacity: 0;
  transition: opacity .3s var(--m-ease);
  pointer-events: none;
}
.m-team-card:hover .m-team-photo::after { opacity: 1; }


