/* ==========================================================================
   MACROPLAST — Design System
   The component layer reconstructed from the Macroplast theme build:
   72px sticky nav, full-viewport hero, mono overlines, hairline grids,
   cards, stat tiles, marquee, scroll reveal.

   Pages built on this system use `mpl-*` markup. Legacy Bootstrap pages are
   handled by mpl-theme.css (the skin). The two do not overlap.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --mpl-indigo:        #3A3A8C;
  --mpl-indigo-deep:   #2A2A6E;
  --mpl-indigo-night:  #0D0D1F;
  --mpl-indigo-2:      #13132B;
  --mpl-red:           #E63946;
  --mpl-red-dark:      #C92E3B;
  --mpl-red-glow:      rgba(230, 57, 70, .45);
  --mpl-whatsapp:      #25D366;
  --mpl-whatsapp-dark: #1DA851;
  --mpl-bg:            #F8F9FA;
  --mpl-surface:       #FFFFFF;
  --mpl-surface-muted: #F1F3F5;
  --mpl-ink:           #0A0A14;
  --mpl-ink-soft:      #52526B;
  --mpl-border:        #E5E7EB;
  --mpl-radius:        2px;
  --mpl-nav-h:         72px;
  --mpl-max:           80rem; /* max-w-7xl */
}

/* ---------- Base ---------- */
.mpl body,
body.mpl {
  margin: 0;
  background: var(--mpl-bg);
  color: var(--mpl-ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.mpl * { box-sizing: border-box; }
.mpl img, .mpl svg, .mpl iframe { display: block; max-width: 100%; }
.mpl a { color: inherit; text-decoration: none; }
.mpl ul { list-style: none; margin: 0; padding: 0; }
.mpl figure, .mpl figcaption, .mpl blockquote { margin: 0; }
.mpl h1, .mpl h2, .mpl h3, .mpl h4, .mpl h5 {
  font-family: "Cabinet Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--mpl-ink);
}
.mpl p { margin: 0; color: var(--mpl-ink-soft); line-height: 1.75; }

.mpl-shell { max-width: var(--mpl-max); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* Section rhythm — py-24 */
.mpl-section { padding: 6rem 0; position: relative; }
.mpl-section--tight { padding: 4.5rem 0; }
.mpl-section--muted { background: var(--mpl-surface-muted); }
.mpl-section--surface { background: var(--mpl-surface); }
.mpl-section--dark { background: var(--mpl-indigo-night); }
.mpl-section--dark h1, .mpl-section--dark h2,
.mpl-section--dark h3, .mpl-section--dark h4 { color: #fff; }
.mpl-section--dark p { color: rgba(255, 255, 255, .65); }

/* ---------- Overline (mono kicker) ---------- */
.mpl-overline {
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mpl-red);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.mpl-overline::before { content: ""; width: 28px; height: 1px; background: var(--mpl-red); }

/* ---------- Display headings ---------- */
.mpl-display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -0.045em;
}
.mpl-h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.mpl-h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.mpl-lead { font-size: 1.0625rem; line-height: 1.75; max-width: 42rem; }
.mpl-accent { color: var(--mpl-red); }

/* ---------- Buttons ---------- */
.mpl-btn-primary,
.mpl-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: var(--mpl-radius);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .9375rem;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mpl-btn-primary {
  background: var(--mpl-red);
  color: #fff;
  border: 1px solid var(--mpl-red);
}
.mpl-btn-primary:hover {
  background: var(--mpl-red-dark);
  border-color: var(--mpl-red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px var(--mpl-red-glow);
}
/* Every surface the ghost button sits on is light now, so ink is the base.
   `--ink` is kept as an explicit alias for call sites that already use it. */
.mpl-btn-ghost,
.mpl-btn-ghost--ink {
  background: transparent;
  color: var(--mpl-ink);
  border: 1px solid var(--mpl-border);
}
.mpl-btn-ghost:hover,
.mpl-btn-ghost--ink:hover { border-color: var(--mpl-ink); background: rgba(10, 10, 20, .035); color: var(--mpl-ink); }

/* ---------- Underline link ---------- */
.mpl-link { position: relative; font-weight: 500; display: inline-block; }
.mpl-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.mpl-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   NAV — 72px sticky, blurred
   ========================================================================== */
.mpl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--mpl-nav-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 10, 20, .1);
  transition: background .3s ease, box-shadow .3s ease;
}
.mpl-nav.is-stuck { background: #fff; box-shadow: 0 10px 30px -12px rgba(10, 10, 20, .25); }
.mpl-nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--mpl-nav-h); gap: 1.5rem; }

.mpl-logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
/* The MPL brand mark is a 120x89 raster — size by height and let width follow
   so the pill never distorts. */
.mpl-logo__mark { height: 38px; width: auto; flex-shrink: 0; }
/* It is opaque white-backed, so on the tinted footer it needs a deliberate
   plate instead of reading as a stray white rectangle. */
.mpl-footer .mpl-logo__mark {
  background: #fff;
  padding: 5px 7px;
  border-radius: var(--mpl-radius);
  border-bottom: 2px solid var(--mpl-red);
  box-sizing: content-box;
}
.mpl-logo__text { display: flex; flex-direction: column; line-height: 1; }
.mpl-logo__name {
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--mpl-ink);
}
.mpl-logo__sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: .5rem;
  letter-spacing: .28em;
  color: rgba(10, 10, 20, .5);
  margin-top: 3px;
}

.mpl-nav__links { display: flex; align-items: center; gap: .25rem; }
.mpl-nav__links > li { position: relative; }
/* Larger, more legible nav labels. Letter-spacing and padding come down to buy
   back the width the bigger type costs, so all eight items still sit on one
   line beside the logo and the CTA. */
.mpl-nav__links a {
  display: block;
  padding: .6rem .55rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mpl-ink-soft);
  position: relative;
  white-space: nowrap;
}
.mpl-nav__links a::after {
  content: "";
  position: absolute;
  left: .7rem; right: .7rem; bottom: .25rem;
  height: 1px;
  background: var(--mpl-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.mpl-nav__links a:hover, .mpl-nav__links a[aria-current="page"] { color: var(--mpl-ink); }
.mpl-nav__links a:hover::after,
.mpl-nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.mpl-nav__cta { flex-shrink: 0; padding: .7rem 1.15rem !important; font-size: .8125rem; }

/* Submenu */
.mpl-nav__sub {
  position: absolute;
  top: 100%; left: 0;
  min-width: 14rem;
  background: var(--mpl-surface);
  border: 1px solid var(--mpl-border);
  border-top: 2px solid var(--mpl-red);
  box-shadow: 0 24px 50px -20px rgba(10, 10, 20, .3);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mpl-nav__links > li:hover .mpl-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.mpl-nav__sub a {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: .8125rem;
  letter-spacing: 0;
  text-transform: none;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--mpl-border);
}
.mpl-nav__sub a::after { display: none; }
.mpl-nav__sub a:hover { background: rgba(230, 57, 70, .14); padding-left: 1.35rem; }

/* Mobile toggle */
.mpl-nav__toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid rgba(10, 10, 20, .2);
  border-radius: var(--mpl-radius);
  color: var(--mpl-ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.mpl-nav__toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.mpl-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mpl-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mpl-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.mpl-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--mpl-nav-h) + 5rem) 0 5rem;
  background: var(--mpl-surface);
  border-bottom: 1px solid var(--mpl-border);
  overflow: hidden;
}
/* The banner photo survives as a pale grayscale texture rather than a backdrop:
   knocked back far enough that ink-on-white type carries the hero. */
.mpl-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: .13;
  filter: grayscale(1) contrast(1.08);
}
.mpl-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 460px at 88% 4%, rgba(230, 57, 70, .07), transparent 62%),
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .94) 34%, rgba(255, 255, 255, .55) 100%);
}
.mpl-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(10, 10, 20, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 20, .045) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.mpl-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: .025;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.mpl-hero__shell { position: relative; z-index: 2; }
/* Two-column hero: copy on the left, a floating transformer on the right.
   Collapses to a single column (image hidden) at <=1024px. */
.mpl-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }

.mpl-hero__media { position: relative; display: grid; place-items: center; min-width: 0; }
.mpl-hero__media::before {          /* soft brand glow behind the unit */
  content: ""; position: absolute; z-index: 0;
  width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, .18), transparent 66%);
}
.mpl-hero__media img {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px; height: auto; display: block;
  filter: drop-shadow(0 28px 46px rgba(10, 10, 20, .30));
}
.mpl-hero__mediatag {               /* technical caption chip */
  position: absolute; z-index: 2; left: 0; bottom: 8%;
  background: var(--mpl-surface);
  border: 1px solid var(--mpl-border);
  border-left: 2px solid var(--mpl-red);
  padding: .55rem .85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mpl-ink-soft);
  box-shadow: 0 14px 30px -18px rgba(10, 10, 20, .4);
}
.mpl-hero__title { color: var(--mpl-ink); max-width: 18ch; }
.mpl-hero__lead { color: var(--mpl-ink-soft); margin-top: 1.5rem; font-size: 1.0625rem; max-width: 46rem; }
.mpl-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }

/* Hero stat strip */
.mpl-hero__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--mpl-border);
  border: 1px solid var(--mpl-border);
  margin-top: 4rem;
}
.mpl-hero__stat { background: var(--mpl-surface); padding: 1.5rem 1.25rem; }
.mpl-hero__stat b {
  display: block;
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 2rem; font-weight: 900; color: var(--mpl-ink); letter-spacing: -0.04em;
}
/* Direct child only — the counter `<span data-count>` lives inside the <b> and
   must keep the display figure's styling. */
.mpl-hero__stat > span {
  display: block; margin-top: .35rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mpl-ink-soft);
}

/* ==========================================================================
   CARDS + HAIRLINE GRIDS
   ========================================================================== */
.mpl-grid { display: grid; gap: 1.5rem; }
.mpl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mpl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mpl-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Signature hairline grid — gap-px over a border-coloured bed */
.mpl-grid--hairline {
  gap: 1px;
  background: var(--mpl-border);
  border: 1px solid var(--mpl-border);
}
.mpl-grid--hairline > * { background: var(--mpl-surface); }

.mpl-card {
  position: relative;
  background: var(--mpl-surface);
  border: 1px solid var(--mpl-border);
  border-left: 2px solid transparent;
  overflow: hidden;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
  display: flex;
  flex-direction: column;
}
.mpl-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--mpl-red);
  box-shadow: 0 22px 44px -24px rgba(10, 10, 20, .35);
}
.mpl-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mpl-red), transparent);
  opacity: 0; transition: opacity .4s ease; z-index: 3;
}
.mpl-card:hover::after { opacity: 1; }

/* Product media — uniform framing across mismatched source photos */
.mpl-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mpl-surface-muted);
  overflow: hidden;
}
.mpl-card__media picture { display: block; width: 100%; height: 100%; }
.mpl-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.mpl-card:hover .mpl-card__media img { transform: scale(1.05); }
.mpl-card__body { padding: 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.mpl-card__title { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.mpl-card__meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mpl-ink-soft);
}
.mpl-card__cta {
  margin-top: auto; padding-top: .85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mpl-red);
  display: inline-flex; align-items: center; gap: .4rem;
}

/* ---------- Stat tiles ---------- */
.mpl-stat-tile {
  background: var(--mpl-surface);
  border: 1px solid var(--mpl-border);
  padding: 2rem 1.5rem;
  transition: border-color .3s ease, transform .3s ease;
}
.mpl-stat-tile:hover { border-color: var(--mpl-indigo); transform: translateY(-3px); }
.mpl-stat-tile b {
  display: block;
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 2.75rem; font-weight: 900; letter-spacing: -0.05em;
  color: var(--mpl-ink);
}
.mpl-stat-tile span {
  display: block; margin-top: .5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mpl-ink-soft);
}

/* ---------- Feature block (icon + copy) ---------- */
.mpl-feature { padding: 2.25rem 1.75rem; }
.mpl-feature__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--mpl-border);
  color: var(--mpl-red);
  margin-bottom: 1.1rem;
}
.mpl-feature h3 { margin-bottom: .6rem; }
.mpl-feature p { font-size: .9375rem; }

/* Feature block with photo — home-page capability cards.
   The media breaks out of the card padding to sit flush at the top and side
   edges; the icon returns as a small brand badge over its lower-left corner. */
.mpl-feature--media { overflow: hidden; }
.mpl-feature__media {
  position: relative;
  margin: -2.25rem -1.75rem 1.5rem;   /* cancel card padding: flush top + sides */
  aspect-ratio: 16 / 10;
  background: var(--mpl-surface-muted);
  overflow: hidden;
}
.mpl-feature__media img,
.mpl-feature__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.mpl-feature--media:hover .mpl-feature__media img,
.mpl-feature--media:hover .mpl-feature__media video { transform: scale(1.05); }
.mpl-feature__badge {
  position: absolute; left: 0; bottom: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--mpl-surface);
  color: var(--mpl-red);
  border-top: 1px solid var(--mpl-border);
  border-right: 1px solid var(--mpl-border);
  font-size: 1rem;
}

/* Slideshow media — 4 stacked images cross-fade, ~1s each (4s loop). */
.mpl-feature__media--slideshow img {
  position: absolute; inset: 0;
  opacity: 0;
  animation: mpl-slideshow 4s linear infinite;
}
.mpl-feature__media--slideshow img:nth-child(1) { animation-delay: 0s; }
.mpl-feature__media--slideshow img:nth-child(2) { animation-delay: 1s; }
.mpl-feature__media--slideshow img:nth-child(3) { animation-delay: 2s; }
.mpl-feature__media--slideshow img:nth-child(4) { animation-delay: 3s; }
@keyframes mpl-slideshow {
  0%   { opacity: 1; }
  22%  { opacity: 1; }   /* hold ~0.9s */
  25%  { opacity: 0; }   /* cross-fade to next by 1s */
  97%  { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mpl-feature__media--slideshow img { animation: none; opacity: 0; }
  .mpl-feature__media--slideshow img:first-child { opacity: 1; }
}

/* ---------- Logo marquee ---------- */
.mpl-marquee { overflow: hidden; position: relative; }
.mpl-marquee::before,
.mpl-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.mpl-marquee::before { left: 0; background: linear-gradient(90deg, var(--mpl-surface-muted), transparent); }
.mpl-marquee::after { right: 0; background: linear-gradient(270deg, var(--mpl-surface-muted), transparent); }
.mpl-marquee-track { display: flex; align-items: center; gap: 2.5rem; width: max-content; }
.mpl-marquee-track img {
  height: 56px; width: auto; object-fit: contain;
  background: #fff; border: 1px solid var(--mpl-border);
  padding: .6rem 1rem;
  filter: grayscale(100%); opacity: .65;
  transition: filter .35s ease, opacity .35s ease, border-color .35s ease;
}
.mpl-marquee-track img:hover { filter: grayscale(0); opacity: 1; border-color: var(--mpl-red); }

/* ---------- Split feature (image + copy) ---------- */
.mpl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.mpl-split__media { position: relative; border: 1px solid var(--mpl-border); background: var(--mpl-surface); }
.mpl-split__media img,
.mpl-split__media iframe { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.mpl-split__media::before,
.mpl-split__media::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--mpl-red); z-index: 2;
}
.mpl-split__media::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.mpl-split__media::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.mpl-split__body ul { margin-top: 1.25rem; display: grid; gap: .6rem; }
.mpl-split__body li {
  position: relative; padding-left: 1.4rem;
  color: var(--mpl-ink-soft); line-height: 1.7;
}
.mpl-split__body li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 1px; background: var(--mpl-red);
}

/* ---------- CTA band ---------- */
/* Sits between two tinted sections — pure white plus a red cap is what makes
   it read as a band without a dark fill. */
.mpl-cta-band {
  position: relative;
  background: var(--mpl-surface);
  border-top: 3px solid var(--mpl-red);
  border-bottom: 1px solid var(--mpl-border);
  padding: 4.5rem 0;
  overflow: hidden;
}
.mpl-cta-band__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.mpl-cta-band h2 { color: var(--mpl-ink); }
.mpl-cta-band p { color: var(--mpl-ink-soft); margin-top: .75rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* ==========================================================================
   KEEP-UP-TO-DATE — white panel that overlaps into the footer
   ========================================================================== */
.mpl-keepup { background: var(--mpl-bg); padding: 6rem 0 0; }
.mpl-keepup--on-muted { background: var(--mpl-surface-muted); }

.mpl-keepup__panel {
  position: relative;
  z-index: 3;
  background: var(--mpl-surface);
  border: 1px solid var(--mpl-border);
  border-top: 3px solid var(--mpl-red);
  padding: 3.25rem 3rem 0;
  margin-bottom: -5rem;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(10, 10, 20, .4);
}
.mpl-keepup__panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 88% 0%, rgba(230, 57, 70, .06), transparent 62%);
  pointer-events: none;
}
.mpl-keepup__inner { position: relative; z-index: 2; }

.mpl-keepup__head { max-width: 40rem; }
.mpl-keepup__head h2 { color: var(--mpl-ink); }
.mpl-keepup__head p {
  color: var(--mpl-ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.9;
  margin-top: .9rem;
}

/* Signature hairline cells */
.mpl-keepup__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1px;
  background: var(--mpl-border);
  border-top: 1px solid var(--mpl-border);
  margin-top: 2.75rem;
}
/* min-width:0 — grid items default to min-width:auto, and the non-shrinking
   Subscribe button would otherwise force the cell wider than its track. */
.mpl-keepup__cell { background: var(--mpl-surface); padding: 2rem 1.75rem 2.25rem; min-width: 0; }
.mpl-keepup__cell:first-child { padding-left: 0; }
.mpl-keepup__cell:last-child { padding-right: 0; }
.mpl-keepup__cell h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mpl-ink-soft);
  margin-bottom: 1.15rem;
  display: flex; align-items: center; gap: .55rem;
}
.mpl-keepup__cell h3::before { content: ""; width: 18px; height: 1px; background: var(--mpl-red); }

/* Inline subscribe field — single hairline rule, red send button */
.mpl-subscribe { display: flex; align-items: stretch; border-bottom: 1px solid rgba(10, 10, 20, .22); transition: border-color .3s ease; }
.mpl-subscribe:focus-within { border-bottom-color: var(--mpl-red); }
.mpl-subscribe input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0;
  color: var(--mpl-ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  padding: .75rem 0;
}
.mpl-subscribe input::placeholder { color: rgba(10, 10, 20, .38); }
.mpl-subscribe input:focus { outline: none; }
.mpl-subscribe button {
  flex-shrink: 0;
  background: var(--mpl-red);
  border: 0;
  color: #fff;
  padding: 0 1.15rem;
  margin: .3rem 0 .3rem .75rem;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .25s ease;
}
.mpl-subscribe button:hover { background: var(--mpl-red-dark); }
.mpl-keepup__note {
  margin-top: .9rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .5625rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(10, 10, 20, .38);
}

/* Social row */
.mpl-keepup__social { display: flex; gap: .5rem; }
.mpl-keepup__social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--mpl-border);
  color: var(--mpl-ink-soft);
  font-size: 1rem;
  transition: all .28s ease;
}
.mpl-keepup__social a:hover {
  background: var(--mpl-red);
  border-color: var(--mpl-red);
  color: #fff;
  transform: translateY(-3px);
}

/* Direct line */
.mpl-keepup__direct { display: grid; gap: .55rem; }
.mpl-keepup__direct a { color: var(--mpl-ink-soft); font-size: .9375rem; display: inline-flex; align-items: center; gap: .6rem; }
.mpl-keepup__direct a:hover { color: var(--mpl-red); }
.mpl-keepup__direct i { color: var(--mpl-red); width: 14px; flex-shrink: 0; }

.mpl-footer { background: var(--mpl-surface-muted); position: relative; padding: 5rem 0 0; }
.mpl-footer--offset { padding-top: 9rem; }
.mpl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--mpl-border);
}
.mpl-footer h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mpl-ink); font-weight: 500;
  margin: 0 0 1.35rem; padding-bottom: .75rem;
  position: relative;
}
.mpl-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px; background: var(--mpl-red); }
.mpl-footer li { padding: .4rem 0; }
.mpl-footer a, .mpl-footer li { color: var(--mpl-ink-soft); font-size: .875rem; line-height: 1.7; }
.mpl-footer a:hover { color: var(--mpl-red); }
.mpl-footer p { color: var(--mpl-ink-soft); font-size: .875rem; }
.mpl-footer__intro { max-width: 22rem; margin-top: 1.25rem; }
.mpl-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.mpl-footer__contact i { color: var(--mpl-red); margin-top: .35rem; flex-shrink: 0; }

.mpl-newsletter { display: flex; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.mpl-newsletter input {
  flex: 1; min-width: 0;
  background: var(--mpl-surface);
  border: 1px solid var(--mpl-border);
  color: var(--mpl-ink);
  padding: .8rem .9rem;
  border-radius: var(--mpl-radius);
  font-size: .875rem;
}
.mpl-newsletter input::placeholder { color: rgba(10, 10, 20, .4); }
.mpl-newsletter input:focus { outline: none; border-color: var(--mpl-red); box-shadow: 0 0 0 3px rgba(230, 57, 70, .16); }

.mpl-footer__social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.mpl-footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--mpl-border);
  color: var(--mpl-ink-soft);
  background: var(--mpl-surface);
}
.mpl-footer__social a:hover { background: var(--mpl-red); border-color: var(--mpl-red); color: #fff; }

.mpl-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 0;
}
.mpl-footer__bottom p, .mpl-footer__bottom a {
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .14em;
  color: rgba(10, 10, 20, .45);
}
.mpl-footer__regions { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: 1.75rem 0; border-top: 1px solid var(--mpl-border); }
.mpl-footer__regions span, .mpl-footer__regions a {
  font-family: "IBM Plex Mono", monospace;
  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(10, 10, 20, .4);
}
.mpl-footer__regions a:hover { color: var(--mpl-red); }

/* ---------- Floating WhatsApp ---------- */
/* Carries WhatsApp's own green, not the brand red — users recognise the badge
   by colour, and it keeps the button distinct from the CTA buttons. */
.mpl-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--mpl-whatsapp); color: #fff;
  border-radius: var(--mpl-radius);
  box-shadow: 0 16px 34px -12px rgba(37, 211, 102, .5);
  font-size: 1.5rem;
}
.mpl-float:hover { background: var(--mpl-whatsapp-dark); color: #fff; transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.mpl-fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.mpl-fade-up.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .mpl-nav__links a { padding: .6rem .4rem; font-size: .75rem; letter-spacing: .06em; }
}

@media (max-width: 960px) {
  .mpl-nav__toggle { display: flex; }
  .mpl-nav__cta { display: none; }
  .mpl-nav__links {
    position: fixed;
    top: var(--mpl-nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--mpl-surface);
    border-bottom: 1px solid var(--mpl-border);
    box-shadow: 0 18px 40px -20px rgba(10, 10, 20, .3);
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease;
  }
  .mpl-nav__links.is-open { max-height: 420px; overflow-y: auto; }
  .mpl-nav__links a { padding: 1rem 1.5rem; font-size: .875rem; letter-spacing: .12em; border-bottom: 1px solid var(--mpl-border); }
  .mpl-nav__links a::after { display: none; }
  .mpl-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: var(--mpl-surface-muted); min-width: 0; }
  .mpl-nav__sub a { padding-left: 2.5rem; }

  .mpl-hero__grid, .mpl-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .mpl-hero__media { display: none; }
  .mpl-hero { min-height: auto; padding: calc(var(--mpl-nav-h) + 3.5rem) 0 3.5rem; }
  .mpl-grid--3, .mpl-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .mpl-hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mpl-keepup__grid { grid-template-columns: 1fr; }
  .mpl-keepup__cell { padding: 1.75rem 0; }
  .mpl-keepup__cell:first-child { padding-top: 1.75rem; }
}

@media (max-width: 620px) {
  .mpl-section { padding: 3.5rem 0; }
  .mpl-grid--2, .mpl-grid--3, .mpl-grid--4 { grid-template-columns: 1fr; }
  .mpl-footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .mpl-keepup { padding-top: 3.5rem; }
  .mpl-keepup__panel { padding: 2.25rem 1.5rem 0; }
  .mpl-hero__actions .mpl-btn-primary,
  .mpl-hero__actions .mpl-btn-ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .mpl-fade-up { opacity: 1; transform: none; }
}
