/* =========================================================
   Meg World Healthcare – How We Work With You (Process page)
   Theme: White / Navy / Maroon
   File: Process.css  (used by process.html)
   ========================================================= */

/* ---------- 1. Variables & reset ---------- */
:root {
  --white: #ffffff;
  --navy: #0a1f4d;
  --navy-900: #061336;
  --navy-700: #16337a;
  --maroon: #7b1230;
  --maroon-600: #9b1c3f;
  --maroon-300: #c9667f;
  --maroon-100: #f7e9ed;
  --rose: #ff9db6;          /* readable accent on navy */
  --ink: #3f4a69;
  --line: #e7eaf3;

  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-md: 0 4px 10px rgba(10, 31, 77, .06), 0 18px 40px rgba(10, 31, 77, .12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  position: relative; overflow-x: hidden;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink); background: var(--white);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
ul { list-style: none; }
strong { font-weight: 600; color: var(--navy); }
:focus-visible { outline: 3px solid var(--maroon-300); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.page { position: relative; padding: 70px 0 110px; }

/* ---------- 2. Animated background ---------- */
.bg-layer {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: linear-gradient(120deg, #ffffff 0%, #fbf6f8 35%, #f3f6fd 70%, #ffffff 100%);
  background-size: 300% 300%;
  animation: bgShift 22s ease-in-out infinite;
}
@keyframes bgShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.bg-grid {
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(10, 31, 77, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 77, .045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 75%);
  animation: gridMove 26s linear infinite;
}
@keyframes gridMove { to { transform: translate(60px, 60px); } }

.blob { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.blob-1 { width: 540px; height: 540px; left: -180px; top: 6%;  background: radial-gradient(circle, rgba(123, 18, 48, .30), transparent 68%); animation: drift1 22s ease-in-out infinite; }
.blob-2 { width: 640px; height: 640px; right: -240px; top: -120px; background: radial-gradient(circle, rgba(22, 51, 122, .30), transparent 68%); animation: drift2 26s ease-in-out infinite; }
.blob-3 { width: 520px; height: 520px; right: 8%; bottom: -200px; background: radial-gradient(circle, rgba(155, 28, 63, .22), transparent 68%); animation: drift1 28s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(90px, -60px) scale(1.12); } 66% { transform: translate(-40px, 80px) scale(.94); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-100px, 90px) scale(1.14); } }

/* Animated light trails */
.trail {
  position: absolute; top: -30vh; width: 2px; height: 260px; opacity: 0; border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(123, 18, 48, .6), transparent);
  transform: rotate(25deg); animation: trail 9s linear infinite;
}
.trail.navy { background: linear-gradient(180deg, transparent, rgba(22, 51, 122, .6), transparent); }
.t1 { left: 82%; animation-delay: 0s;   animation-duration: 9s; }
.t2 { left: 64%; animation-delay: -3s;  animation-duration: 12s; }
.t3 { left: 46%; animation-delay: -6s;  animation-duration: 10s; }
.t4 { left: 28%; animation-delay: -2s;  animation-duration: 13s; }
.t5 { left: 100%; animation-delay: -8s; animation-duration: 11s; }
@keyframes trail {
  0%   { opacity: 0; translate: 0 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; translate: -55vh 130vh; }
}

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Floating shapes (generated in JS) */
.shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.shape-wrap { position: absolute; will-change: transform; }
.shape { display: block; position: relative; width: var(--s); height: var(--s); animation: shapeDrift var(--dur) ease-in-out infinite; animation-delay: var(--delay); }
@keyframes shapeDrift { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)); } }
.shape.ring   { border-radius: 50%; border: 3px solid currentColor; opacity: .18; }
.shape.square { border-radius: 22%; border: 3px solid currentColor; opacity: .16; }
.shape.dot    { border-radius: 50%; background: currentColor; opacity: .16; }
.shape.tri    { background: currentColor; opacity: .13; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape.plus::before, .shape.plus::after { content: ""; position: absolute; background: currentColor; border-radius: 3px; opacity: .22; }
.shape.plus::before { left: 38%; right: 38%; top: 0; bottom: 0; }
.shape.plus::after  { top: 38%; bottom: 38%; left: 0; right: 0; }
.shape.orb { border-radius: 50%; opacity: .5; background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 8%, currentColor 55%, rgba(6, 19, 54, .9) 100%); box-shadow: 0 18px 30px rgba(10, 31, 77, .16); }
.c-maroon { color: var(--maroon); }
.c-navy   { color: var(--navy-700); }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 200; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--navy), var(--maroon)); }

/* ---------- 3. Shared: cards, 3D, images, reveal ---------- */
.tilt-wrap {
  perspective: 1100px;
  animation: floatY var(--dur, 7s) ease-in-out infinite;
  animation-delay: var(--fdelay, 0s);
}
.tilt-wrap:hover { animation-play-state: paused; }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --sx: 0px; --sy: 20px;
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  border: 1px solid rgba(10, 31, 77, .07);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow:
    var(--sx) var(--sy) 36px -12px rgba(10, 31, 77, .24),
    0 2px 6px rgba(10, 31, 77, .05),
    inset 0 1px 0 #fff;
  transition: transform .55s var(--ease), box-shadow .45s var(--ease), translate .45s var(--ease);
  will-change: transform;
}
.card.pad { padding: 12px 12px 26px; }
.card.flat { padding: 0; }
.card.is-tilting { transition: transform .08s linear, box-shadow .25s, translate .3s var(--ease); }
.card:hover {
  translate: 0 -8px;
  box-shadow:
    var(--sx) calc(var(--sy) + 14px) 50px -14px rgba(123, 18, 48, .38),
    0 6px 14px rgba(10, 31, 77, .08),
    inset 0 1px 0 #fff;
}

/* Animated gradient border */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, var(--maroon), var(--navy-700), var(--maroon));
  background-size: 300% 300%;
  -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 .4s; animation: borderFlow 5s linear infinite;
}
.card:hover::before { opacity: 1; }
@keyframes borderFlow { to { background-position: 300% 300%; } }

/* Glossy highlight */
.card-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%);
  opacity: 0; transition: opacity .4s; transform: translateZ(40px);
}
.card:hover .card-shine { opacity: 1; }

/* Navy card variant */
.card.navy {
  color: #e8edfb; border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(145deg, #0a1f4d 0%, #0f2a68 55%, #4a1230 130%);
  box-shadow: var(--sx) var(--sy) 40px -12px rgba(6, 19, 54, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.card.navy .card-shine { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 55%); }
.card.navy strong, .card.navy h2, .card.navy h3 { color: #fff; }
.card.navy .card-body { padding: 30px 30px 22px; }

/* Images */
.img-box { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--maroon)); }
.img-box.is-fallback img { display: none; }

.card-img { aspect-ratio: 16 / 8.6; border-radius: 16px; transform: translateZ(16px); box-shadow: 0 12px 22px -10px rgba(10, 31, 77, .4); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; }
.card:hover .card-img img { transform: scale(1.14); filter: saturate(1.08) contrast(1.03); }

.card-img::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-130%); transition: transform .9s var(--ease); }
.card:hover .card-img::after { transform: translateX(130%); }

.card.flat .card-img { height: 100%; min-height: 360px; aspect-ratio: auto; border-radius: inherit; transform: none; box-shadow: none; }
.card.flat .card-img img { position: absolute; inset: 0; }

.card-body { padding: 22px 12px 0; transform: translateZ(24px); }
.card-body p { font-size: 14.5px; margin-bottom: 12px; }
.card-body h2, .card-body h3 { color: var(--navy); line-height: 1.3; }

/* Lists */
.list { margin: 4px 0 14px; }
.list > li { position: relative; padding-left: 22px; margin-bottom: 7px; font-size: 14.5px; }
.list > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--maroon-600), var(--maroon)); box-shadow: 0 0 0 4px rgba(123, 18, 48, .12); }
.list.light > li { color: #e8edfb; }
.list.light > li::before { background: var(--rose); box-shadow: 0 0 0 4px rgba(255, 157, 182, .18); }
.sub { margin: 8px 0 4px; }
.sub > li { position: relative; padding-left: 20px; margin-bottom: 5px; font-size: 14px; }
.sub > li::before { content: "–"; position: absolute; left: 2px; color: var(--maroon); font-weight: 700; }

.outcome {
  margin-top: 16px; padding: 13px 16px; border-left: 4px solid var(--maroon);
  border-radius: 0 14px 14px 0; background: var(--maroon-100); color: var(--navy);
}
.card-body p:last-child { margin-bottom: 0; }

/* Scroll reveal (only when JS is on) */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="up"]    { transform: translateY(60px) scale(.96); }
.js [data-reveal="left"]  { transform: translateX(-90px); }
.js [data-reveal="right"] { transform: translateX(90px); }
.js [data-reveal="zoom"]  { transform: scale(.92); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* Image reveal: curtain (added by JS) slides away while the photo settles */
.curtain { position: absolute; inset: 0; z-index: 6; background: linear-gradient(135deg, var(--maroon), var(--navy)); transform: translateX(0); transition: transform 1.15s var(--ease) .25s; }
.in-view .curtain { transform: translateX(101%); }
.js .reveal-img img { transform: scale(1.3); }
.js .in-view .reveal-img img { transform: scale(1); transition: transform 1.7s var(--ease), filter .6s; }
.js .card:hover .reveal-img img { transform: scale(1.14); transition: transform .9s var(--ease), filter .6s; }

/* Text safety: long lines and words always wrap inside cards */
.tilt-wrap, .card, .card-body { min-width: 0; }
.card-body { overflow-wrap: break-word; word-wrap: break-word; }
.card-body li, .card-body p { overflow-wrap: break-word; }

/* ---------- 4. Process timeline & Designed to Adapt to You ---------- */
.intro { max-width: 860px; margin: 0 auto 70px; text-align: center; }
.intro h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; color: var(--navy); }
.intro h1 span {
  background: linear-gradient(90deg, var(--maroon), var(--maroon-300), var(--maroon));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.intro p { margin-top: 20px; font-size: 16px; line-height: 1.85; }

.timeline { --p: 0; position: relative; display: grid; gap: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 50%; top: 0; width: 4px; margin-left: -2px; border-radius: 4px; }
.timeline::before { bottom: 0; background: rgba(10, 31, 77, .10); }
.timeline::after { height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--navy-700), var(--maroon)); box-shadow: 0 0 18px rgba(123, 18, 48, .55); }

.t-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: start; padding-bottom: 36px; }
.t-item:nth-child(n+2) { margin-top: -90px; }
.t-item .tilt-wrap { grid-column: 1; grid-row: 1; }
.t-item:nth-child(even) .tilt-wrap { grid-column: 3; }
.t-node {
  grid-column: 2; grid-row: 1; justify-self: center; margin-top: 46px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--navy-700);
  box-shadow: 0 0 0 6px rgba(22, 51, 122, .12); transition: background .5s, border-color .5s, box-shadow .5s;
}
.t-item.in-view .t-node { background: var(--maroon); border-color: #fff; box-shadow: 0 0 0 6px rgba(123, 18, 48, .25), 0 0 22px rgba(123, 18, 48, .6); animation: nodePulse 2.6s infinite 1s; }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(123, 18, 48, .25), 0 0 22px rgba(123, 18, 48, .5); } 50% { box-shadow: 0 0 0 12px rgba(123, 18, 48, .08), 0 0 30px rgba(123, 18, 48, .7); } }

.process .card-body h2 { font-size: 20px; margin-bottom: 12px; }
.step-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  min-width: 54px; height: 54px; padding: 0 12px; display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon));
  border: 3px solid #fff; border-radius: 18px; box-shadow: 0 10px 20px rgba(123, 18, 48, .45);
}

/* Designed to Adapt to You */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.split > .tilt-wrap { min-width: 0; }
.adapt { margin-top: 90px; }
.adapt .card.navy .card-body h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.adapt .card.navy { justify-content: center; }

/* ---------- 5. Responsive ---------- */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .card.flat .card-img { min-height: 300px; }
  .card.flat.media { min-height: 300px; }
  .adapt { margin-top: 70px; }
}

@media (max-width: 900px) {
  /* Timeline becomes a single column with the line on the left */
  .timeline::before, .timeline::after { left: 22px; margin-left: 0; }
  .t-item, .t-item:nth-child(n+2) { grid-template-columns: 44px minmax(0, 1fr); margin-top: 0; padding-bottom: 30px; }
  .t-item .tilt-wrap, .t-item:nth-child(even) .tilt-wrap { grid-column: 2; }
  .t-node { grid-column: 1; justify-self: start; margin-left: 11px; margin-top: 30px; }
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(50px); }
}

@media (max-width: 640px) {
  .page { padding-top: 40px; }
  .intro { margin-bottom: 46px; }
  .intro p { font-size: 15px; }
  .card.pad { padding: 10px 10px 22px; }
  .card.navy .card-body { padding: 24px 18px 16px; }
  .step-badge { min-width: 46px; height: 46px; font-size: 17px; border-radius: 15px; }
  .process .card-body h2 { font-size: 18px; }
  .card-body p, .list > li { font-size: 14px; }
  .card.flat .card-img, .card.flat.media { min-height: 240px; }
  .t-item, .t-item:nth-child(n+2) { grid-template-columns: 34px minmax(0, 1fr); }
  .timeline::before, .timeline::after { left: 14px; }
  .t-node { margin-left: 3px; width: 20px; height: 20px; }
}

/* Touch devices: no hover tilt/lift */
@media (hover: none) {
  .card:hover { translate: 0 0; }
  .card:active { transform: scale(.985); }
}

/* ---------- 6. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .curtain { display: none; }
  .js .reveal-img img { transform: none; }
}

/* ==========================================
   FIX: PROCESS CARDS & OUTCOME OVERFLOW
========================================== */

/* Prevent card content from overflowing */
.process .card {
  min-width: 0;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Allow card content to shrink correctly */
.process .card-body {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 22px 18px 20px;
  overflow-wrap: anywhere;
}

/* Headings should wrap inside the card */
.process .card-body h2,
.process .card-body h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Paragraphs and list content */
.process .card-body p,
.process .card-body li {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}

/* Outcome box */
.process .card-body .outcome {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;

  margin-top: 14px;
  padding: 12px 14px;

  border-left: 4px solid var(--maroon);
  border-radius: 0 12px 12px 0;

  background: var(--maroon-100);
  color: var(--navy);

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Keep the card image within its boundaries */
.process .card-img {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.process .card-img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Timeline cards: natural height */
.timeline .t-item,
.timeline .tilt-wrap {
  min-width: 0;
  max-width: 100%;
  height: auto;
}

/* Tablet and mobile */
@media (max-width: 768px) {
  .process .card-body {
    padding: 18px 15px;
  }

  .process .card-body .outcome {
    padding: 11px 12px;
    font-size: 13px;
    line-height: 1.7;
  }
}

/* ==========================================
   MEGWORLD HEALTHCARE - HEADER
   Solid White / Navy / Maroon
========================================== */

:root {
  --header-white: #ffffff;
  --header-navy: #0a1f4d;
  --header-maroon: #7b1230;
  --header-maroon-light: #9b1c3f;
  --header-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(
    90deg,
    var(--header-navy),
    var(--header-maroon)
  );
}

/* Fixed header */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 1500;

  padding: 0 20px;

  /* IMPORTANT: opaque background */
  background: transparent;
  isolation: isolate;

  transition: top .35s var(--header-ease);
}

/* Header after scrolling */
.site-header.scrolled {
  top: 0;
  padding: 0;
}

/* Navigation container */
.nav-bar {
  position: relative;
  width: min(1240px, 100%);
  height: 72px;
  margin: 0 auto;
  padding: 0 16px 0 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  /* Solid background prevents animated page
     elements from showing through the header */
  background: #ffffff;
  opacity: 1;

  border: 1px solid #e5e9f2;
  border-radius: 22px;

  box-shadow: 0 8px 28px rgba(10, 31, 77, .12);

  transition:
    height .35s var(--header-ease),
    border-radius .35s,
    box-shadow .35s;
}

/* Solid white background while scrolling */
.site-header.scrolled .nav-bar {
  width: 100%;
  height: 66px;

  background-color: #ffffff;
  opacity: 1;

  border: 0;
  border-bottom: 1px solid #e6e9f1;
  border-radius: 0;

  box-shadow: 0 8px 25px rgba(10, 31, 77, .13);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--header-maroon-light),
    var(--header-maroon)
  );

  box-shadow: 0 5px 14px rgba(123, 18, 48, .22);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 2px;
}

.logo-mark::before {
  width: 6px;
  height: 24px;
  top: 9px;
  left: 18px;
}

.logo-mark::after {
  width: 24px;
  height: 6px;
  top: 18px;
  left: 9px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  color: var(--header-navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.logo-text small {
  margin-top: 3px;
  color: var(--header-maroon);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3px;
}

/* Navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;

  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu li {
  list-style: none;
}

.nav-menu a:not(.btn) {
  position: relative;
  display: block;

  padding: 12px 13px;

  color: var(--header-navy);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;

  border-radius: 8px;

  transition:
    color .25s ease,
    background-color .25s ease;
}

/* Underline animation */
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;

  background: var(--header-maroon);
  border-radius: 3px;

  transform: scaleX(0);
  transform-origin: left;

  transition: transform .3s var(--header-ease);
}

.nav-menu a:not(.btn):hover {
  color: var(--header-maroon);
  background: #fbf4f6;
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-menu a.active {
  color: var(--header-maroon);
  font-weight: 700;
}

.menu-cta {
  display: none;
}

/* Enquire Now button */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 12px 24px;

  overflow: hidden;
  border: 0;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #a41d43,
    #7b1230
  );

  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 7px 18px rgba(123, 18, 48, .22);

  transition:
    transform .3s var(--header-ease),
    box-shadow .3s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255,255,255,.32) 50%,
    transparent 75%
  );

  transform: translateX(-120%);
  transition: transform .65s ease;
}

.btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 11px 25px rgba(123, 18, 48, .32);
}

.btn:hover::after {
  transform: translateX(120%);
}

.nav-cta {
  flex-shrink: 0;
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  position: relative;

  width: 44px;
  height: 44px;
  flex-shrink: 0;

  border: 1px solid #f0dce2;
  border-radius: 12px;
  background: #fbf4f6;

  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;

  background: var(--header-maroon);
  border-radius: 4px;

  transition:
    top .3s ease,
    transform .3s ease,
    opacity .2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

.nav-toggle.open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Tablet and mobile */
@media (max-width: 960px) {
  .site-header {
    top: 8px;
    padding: 0 12px;
  }

  .site-header.scrolled {
    top: 0;
    padding: 0;
  }

  .nav-bar {
    height: 66px;
    padding: 0 14px 0 18px;
    gap: 12px;
  }

  .site-header.scrolled .nav-bar {
    height: 62px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .logo-text small {
    font-size: 11px;
  }

  .nav-cta {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;

    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 14px;

    background: #ffffff;
    opacity: 1;

    border: 1px solid #e5e9f2;
    border-radius: 18px;

    box-shadow: 0 18px 40px rgba(10, 31, 77, .18);

    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);
    transition:
      opacity .25s ease,
      transform .25s ease,
      visibility .25s ease;
  }

  .nav-menu.open {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a:not(.btn) {
    padding: 13px 14px;
    white-space: normal;
  }

  .nav-menu a:not(.btn)::after {
    left: 14px;
    right: auto;
    width: 38px;
    bottom: 5px;
  }

  .nav-menu a:not(.btn):hover,
  .nav-menu a.active {
    background: #fbf4f6;
  }

  .menu-cta {
    display: block;
    padding-top: 6px;
  }

  .menu-cta .btn {
    width: 100%;
  }

  .nav-cta {
    display: none;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .site-header {
    padding: 0 8px;
  }

  .nav-bar {
    padding: 0 10px;
    gap: 8px;
    border-radius: 16px;
  }

  .logo {
    gap: 8px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-mark::before {
    left: 15px;
    top: 7px;
  }

  .logo-mark::after {
    top: 15px;
    left: 7px;
  }

  .logo-text strong {
    font-size: 15px;
  }

  .logo-text small {
    font-size: 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-bar,
  .nav-menu,
  .nav-menu a,
  .nav-menu a::after,
  .btn,
  .btn::after {
    transition: none !important;
  }
}

/* ==========================================
   PROFESSIONAL RESOURCES DROPDOWN
========================================== */

.nav-dropdown {
  position: relative;
}

/* Resources link */
.nav-menu .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Simple arrow */
.dropdown-arrow {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Dropdown panel */
.nav-menu .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 270px;

  margin: 0;
  padding: 8px;
  list-style: none;

  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-top: 3px solid #7b1230;
  border-radius: 10px;

  box-shadow: 0 12px 30px rgba(10, 31, 77, .12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, 7px);

  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease;

  z-index: 1600;
}

/* Keep panel open while moving mouse into it */
.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Remove the main navbar underline inside dropdown */
.nav-menu .dropdown-menu a::after {
  display: none !important;
}

.nav-menu .dropdown-menu li {
  display: block;
  width: 100%;
}

/* Individual links */
.nav-menu .dropdown-menu li a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  width: 100%;
  padding: 13px 14px;

  border-radius: 6px;
  background: #ffffff;

  white-space: normal;
  text-decoration: none;

  transition:
    background .2s ease,
    padding-left .2s ease;
}

/* Heading */
.nav-menu .dropdown-title {
  color: #0a1f4d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* Supporting text */
.nav-menu .dropdown-desc {
  color: #667085;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

/* Subtle professional hover */
.nav-menu .dropdown-menu li a:hover,
.nav-menu .dropdown-menu li a:focus-visible {
  background: #f8f3f5;
  padding-left: 18px;
}

.nav-menu .dropdown-menu li a:hover .dropdown-title,
.nav-menu .dropdown-menu li a:focus-visible .dropdown-title {
  color: #7b1230;
}

/* Mobile dropdown */
@media (max-width: 960px) {
  .nav-menu .nav-dropdown {
    width: 100%;
  }

  .nav-menu .dropdown-trigger {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .nav-menu .dropdown-menu {
    position: static;
    display: none;

    width: 100%;
    margin: 4px 0 8px;
    padding: 5px;

    border: 1px solid #e6e9ef;
    border-left: 3px solid #7b1230;
    border-top: 1px solid #e6e9ef;
    border-radius: 8px;

    background: #ffffff;
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-menu .nav-dropdown.open > .dropdown-menu {
    display: block;
  }

  .nav-menu .dropdown-menu li a {
    padding: 12px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .dropdown-arrow,
  .nav-menu .dropdown-menu,
  .nav-menu .dropdown-menu li a {
    transition: none !important;
  }
}
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

/* Dropdown open aagumbothu arrow rotate aagum */
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Resources dropdown arrow — visible by default */
.nav-menu .dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
}

.nav-menu .dropdown-arrow {
  display: inline-block !important;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: -4px;
  border: 0 !important;
  border-right: 1.8px solid currentColor !important;
  border-bottom: 1.8px solid currentColor !important;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

/* Arrow turns up when dropdown is open */
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

/* Prevent underline animation from affecting the arrow */
.nav-menu .dropdown-trigger::after {
  right: 13px;
}

/* Mobile dropdown */
@media (max-width: 960px) {
  .nav-menu .dropdown-trigger {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu .dropdown-arrow {
    transition: none;
  }
}

/* =========================================
   MEGWORLD HEALTHCARE FOOTER
   Navy Blue + Maroon + White
========================================= */

.mwf {
  --mwf-navy: #102B52;
  --mwf-navy-dark: #081F42;
  --mwf-maroon: #941337;
  --mwf-rose: #ff6b8e;
  --mwf-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0 22px;
  color: #e7edf8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(
    110deg,
    #081F42,
    #102B52 38%,
    #34173f 70%,
    #941337
  );
  background-size: 180% 180%;
  animation: mwf-background 18s ease-in-out infinite alternate;
}

.mwf *,
.mwf *::before,
.mwf *::after {
  box-sizing: border-box;
}

.mwf a {
  color: inherit;
  text-decoration: none;
}

.mwf ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mwf p,
.mwf h3,
.mwf address {
  margin: 0;
  font-style: normal;
}

.mwf-inner {
  position: relative;
  z-index: 2;
  width: min(1320px, 93%);
  margin: auto;
}

/* BACKGROUND EFFECTS */

.mwf-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mwf-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: mwf-drift 12s ease-in-out infinite alternate;
}

.mwf-glow--l {
  background: #3286db;
  left: -100px;
  top: -100px;
}

.mwf-glow--r {
  background: #f33e79;
  right: -100px;
  bottom: -100px;
  animation-delay: -5s;
}

.mwf-steth {
  position: absolute;
  width: 130px;
  right: 5%;
  top: 8%;
  color: rgba(255,255,255,.08);
  animation: mwf-float 7s ease-in-out infinite alternate;
}

.mwf-wave {
  position: absolute;
  width: 200%;
  height: 140px;
  left: -50%;
  opacity: .15;
}

.mwf-wave--1 {
  top: 15%;
  color: #fff;
  animation: mwf-wave-move 25s linear infinite;
}

.mwf-wave--2 {
  bottom: 8%;
  color: #ff8eac;
  animation: mwf-wave-move 35s linear infinite reverse;
}

.mwf-wave svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mwf-dots {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: .15;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 15px 15px;
}

.mwf-dots--l {
  left: 2%;
  bottom: 12%;
}

.mwf-dots--r {
  right: 2%;
  top: 20%;
}

/* MAIN GRID */

.mwf-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.15fr 1.1fr 1.05fr;
  grid-template-areas: "brand quick services contact";
  gap: 28px;
  align-items: start;
}

.mwf-brand {
  grid-area: brand;
  min-width: 0;
}

.mwf-quick {
  grid-area: quick;
}

.mwf-services {
  grid-area: services;
}

.mwf-contact-col {
  grid-area: contact;
  min-width: 0;
}

/* LOGO */

.mwf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.mwf-logo__mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--mwf-maroon);
  font-size: 35px;
  font-weight: 500;
  transition: transform .35s var(--mwf-ease);
}

.mwf-logo:hover .mwf-logo__mark {
  transform: rotate(90deg);
}

.mwf-logo__text strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.mwf-logo__text small {
  display: block;
  margin-top: 7px;
  color: #c4d2e9;
  font-size: 10px;
  line-height: 1.5;
}

/* DESCRIPTION */

.mwf-about {
  max-width: 360px;
  margin-bottom: 22px !important;
  color: #c8d4e8;
  font-size: 13px;
  line-height: 1.9;
}

/* SOCIAL ICONS */

.mwf-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mwf-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition:
    background .3s,
    transform .3s,
    border-color .3s;
}

.mwf-social a:hover {
  background: var(--mwf-maroon);
  border-color: var(--mwf-rose);
  transform: translateY(-5px);
}

/* FOOTER CARDS */

.mwf-card {
  min-width: 0;
  padding: 23px 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: rgba(255,255,255,.065);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  transition:
    background .35s,
    border-color .35s,
    transform .35s;
}

.mwf-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,107,142,.4);
  transform: translateY(-4px);
}

.mwf-card__title {
  position: relative;
  margin-bottom: 22px !important;
  padding-bottom: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.mwf-card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  border-radius: 5px;
  background: var(--mwf-rose);
  transition: width .35s;
}

.mwf-card:hover .mwf-card__title::after {
  width: 65px;
}

/* QUICK LINKS AND SERVICES */

.mwf-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mwf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mwf-list a {
  display: inline-block;
  color: #c8d4e8;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  transition: color .25s, transform .25s;
}

.mwf-list a::before {
  content: "›";
  display: inline-block;
  margin-right: 8px;
  color: var(--mwf-rose);
  font-size: 18px;
  line-height: 0;
  transition: transform .25s;
}

.mwf-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.mwf-list a:hover::before {
  transform: translateX(3px);
}

/* CONTACT DETAILS */

.mwf-contact-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mwf-contact {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.mwf-contact li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #d1dbee;
  font-size: 12.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.mwf-contact a {
  color: #d1dbee;
  transition: color .25s;
}

.mwf-contact a:hover {
  color: var(--mwf-rose);
}

.mwf-ico {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,107,142,.15);
  color: var(--mwf-rose);
  font-size: 18px;
}

/* LET'S TALK BUTTON */

.mwf-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff3f6c, var(--mwf-maroon));
  box-shadow: 0 10px 26px rgba(255,63,108,.28);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .3s, box-shadow .3s;
  animation: mwf-pulse 3s infinite;
}

.mwf-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 32px rgba(255,63,108,.4);
  animation-play-state: paused;
}

.mwf-arrow {
  font-size: 22px;
  transition: transform .3s;
}

.mwf-cta:hover .mwf-arrow {
  transform: translateX(6px);
}

/* COPYRIGHT BAR */

.mwf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #b9c6dd;
  font-size: 12px;
}

.mwf-top {
  color: #e7edf8;
  transition: color .25s, transform .25s;
}

.mwf-top:hover {
  color: var(--mwf-rose);
  transform: translateY(-2px);
}

/* SCROLL REVEAL */

.mwf--js:not(.mwf--in) .mwf-r {
  opacity: 0;
}

.mwf--in .mwf-r {
  animation: mwf-reveal .8s var(--mwf-ease) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

/* ANIMATIONS */

@keyframes mwf-reveal {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mwf-background {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes mwf-drift {
  to { transform: translate(35px, 25px) scale(1.12); }
}

@keyframes mwf-float {
  from { transform: translateY(-8px); }
  to { transform: translateY(12px); }
}

@keyframes mwf-wave-move {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

@keyframes mwf-pulse {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(255,63,108,.28);
  }
  50% {
    box-shadow: 0 10px 32px rgba(255,63,108,.5);
  }
}

/* TABLET */

@media (max-width: 1150px) {
  .mwf-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand contact"
      "quick services";
    gap: 25px;
  }

  .mwf-about {
    max-width: 520px;
  }
}

/* MOBILE */

@media (max-width: 720px) {
  .mwf {
    padding: 42px 0 20px;
  }

  .mwf-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "quick"
      "services"
      "contact";
    gap: 22px;
  }

  .mwf-card {
    padding: 22px;
  }

  .mwf-about {
    max-width: 100%;
  }

  .mwf-steth,
  .mwf-dots--r,
  .mwf-wave--2 {
    display: none;
  }

  .mwf-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .mwf-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mwf-list {
    gap: 10px;
  }

  .mwf-logo__text strong {
    font-size: 19px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .mwf,
  .mwf *,
  .mwf *::before,
  .mwf *::after {
    animation: none !important;
    transition: none !important;
  }

  .mwf--js:not(.mwf--in) .mwf-r {
    opacity: 1;
  }
}

/* ==========================================
   PREMIUM GLASSMORPHISM FOOTER UPGRADE
   Navy Blue + Maroon + Frosted Glass
========================================== */

/* Rich glass background */
.mwf {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 12% 15%,
      rgba(54, 139, 231, 0.28),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 88% 78%,
      rgba(211, 35, 91, 0.28),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #06162f 0%,
      #102b52 42%,
      #241b40 72%,
      #57172f 100%
    );
}

/* Animated ambient glow */
.mwf-glow {
  filter: blur(100px);
  opacity: .48;
  mix-blend-mode: screen;
}

.mwf-glow--l {
  background: #258ce8;
}

.mwf-glow--r {
  background: #ef286b;
}

/* Glass cards */
.mwf .mwf-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.13),
    rgba(255,255,255,.035) 55%,
    rgba(255,255,255,.075)
  );

  border: 1px solid rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.38);
  border-left-color: rgba(255,255,255,.28);

  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(255,255,255,.035),
    0 18px 45px rgba(0,0,0,.20),
    0 4px 12px rgba(4,15,40,.14);

  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    border-color .4s,
    box-shadow .4s,
    background .4s;
}

/* Glossy reflection across each card */
.mwf .mwf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    125deg,
    rgba(255,255,255,.16) 0%,
    rgba(255,255,255,.045) 22%,
    transparent 45%,
    transparent 72%,
    rgba(255,255,255,.055) 100%
  );

  opacity: .85;
}

/* Moving light reflection on hover */
.mwf .mwf-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -110%;
  width: 65%;
  height: 180%;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.11),
    rgba(255,255,255,.22),
    transparent
  );

  transform: skewX(-22deg);
  transition: left .85s ease;
}

.mwf .mwf-card:hover {
  transform: translateY(-8px);

  background: linear-gradient(
    135deg,
    rgba(255,255,255,.19),
    rgba(255,255,255,.065),
    rgba(255,255,255,.11)
  );

  border-color: rgba(255,255,255,.38);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 25px 60px rgba(0,0,0,.30),
    0 0 28px rgba(67,139,235,.12),
    0 0 24px rgba(211,35,91,.10);
}

.mwf .mwf-card:hover::after {
  left: 150%;
}

/* Premium glass logo mark */
.mwf-logo__mark {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.98),
    rgba(220,234,255,.82)
  );

  border: 1px solid rgba(255,255,255,.8);

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    0 8px 25px rgba(0,0,0,.18),
    0 0 18px rgba(255,255,255,.10);
}

/* Frosted social buttons */
.mwf .mwf-social a {
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.22);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 5px 16px rgba(0,0,0,.12);
}

.mwf .mwf-social a:hover {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.24),
    rgba(148,19,55,.75)
  );

  border-color: rgba(255,255,255,.55);

  box-shadow:
    0 8px 25px rgba(0,0,0,.20),
    0 0 20px rgba(255,107,142,.20);
}

/* Glass contact icons */
.mwf .mwf-ico {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.15),
    rgba(255,255,255,.045)
  );

  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 5px 14px rgba(0,0,0,.10);
}

/* Glossy CTA */
.mwf .mwf-cta {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,.35);

  background: linear-gradient(
    125deg,
    #d21b50,
    #941337 55%,
    #c32658
  );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 12px 28px rgba(148,19,55,.30);
}

.mwf .mwf-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.20),
    transparent 48%
  );
}

.mwf .mwf-cta:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 18px 38px rgba(148,19,55,.42),
    0 0 25px rgba(255,107,142,.15);
}

/* Glass divider */
.mwf-bottom {
  border-top: 1px solid rgba(255,255,255,.20);

  box-shadow: 0 -1px 0 rgba(255,255,255,.025);
}

/* Softer floating glass motion */
@keyframes mwf-glass-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mwf .mwf-card {
    animation: mwf-glass-float 7s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.2s);
  }

  .mwf .mwf-card:hover {
    animation-play-state: paused;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mwf .mwf-card {
    animation: none !important;
  }
}
/* Navbar logo image */
.site-header .logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .site-logo {
  display: block;
  width: 175px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

/* Footer logo image */
.mwf-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 20px;
}

.mwf-logo .footer-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 65px;
  object-fit: contain;
  object-position: left center;
}

/* Mobile logo sizing */
@media (max-width: 960px) {
  .site-header .site-logo {
    width: 150px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .site-header .site-logo {
    width: 125px;
    height: 38px;
  }

  .mwf-logo .footer-logo {
    width: 185px;
    height: 58px;
  }
}