/* Maintenance Page — shared styles + two variations */

/* --- Brand tokens (from mcvities.com palette) --- */
:root {
  --mv-navy: #1a2a5e;       /* primary deep blue */
  --mv-navy-deep: #11183d;
  --mv-cream: #fff4d9;
  --mv-yellow: #ffcb66;     /* pale yellow */
  --mv-orange: #ff8a3d;     /* warm orange */
  --mv-sky: #7fc7ff;        /* sky blue */
  --mv-red: #c8102e;        /* heritage red, used sparingly */
}

/* --- Page reset within an artboard --- */
.mv-page {
  position: absolute;
  inset: 0;
  font-family: "Escuela", system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02", "ss03", "ss04", "ss05", "calt", "liga";
  color: #ffffff;
  background: var(--mv-navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.mv-page * { box-sizing: border-box; }

/* --- Top bar --- */
.mv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.mv-topbar__logo {
  height: 56px;
  width: auto;
  display: block;
}
.mv-topbar__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Escuela", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.75;
}
.mv-status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mv-yellow);
  box-shadow: 0 0 0 0 rgba(255, 203, 102, 0.7);
  animation: mv-pulse 2.2s ease-in-out infinite;
}
@keyframes mv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 216, 77, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(255, 216, 77, 0); }
}

/* --- Main hero --- */
.mv-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 40px 40px;
  position: relative;
  z-index: 2;
}

.mv-eyebrow {
  font-family: "Escuela", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mv-yellow);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.mv-eyebrow::before, .mv-eyebrow::after {
  content: "";
  width: 36px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.mv-headline {
  font-family: "Escuela Expanded", "Escuela", sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.mv-headline em {
  font-style: normal;
  color: var(--mv-yellow);
  display: inline-block;
}

.mv-page .mv-subline {
  font-family: "Escuela", sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.5;
  color: #ffffff;
  opacity: 1;
  max-width: 44ch;
  margin: 30px auto 0;
  white-space: pre-line;
  text-wrap: pretty;
}
.mv-page .mv-headline { text-wrap: balance; }
.mv-page .mv-subline--mobile { display: none; }
@media (max-width: 720px) {
  .mv-page .mv-subline--desktop { display: none; }
  .mv-page .mv-subline--mobile { display: block; max-width: calc(100% - 40px); margin-top: 0; margin-left: auto; margin-right: auto; }
}

.mv-launch {
  margin-top: 36px;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 26px;
  border: 1.5px solid rgba(255, 244, 217, 0.25);
  border-radius: 999px;
  background: rgba(255, 244, 217, 0.04);
  backdrop-filter: blur(2px);
}
.mv-launch__label {
  font-family: "Escuela", sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mv-sky);
}
.mv-launch__value {
  font-family: "Escuela Expanded", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #ffffff;
}

/* --- Footer (mcvities.com pattern) --- */
.mv-footer {
  flex-shrink: 0;
  background: var(--mv-navy-deep);
  padding: 28px 0 22px;
  position: relative;
  z-index: 3;
}
.mv-footer__rule {
  height: 1px;
  background: var(--mv-yellow);
  margin: 0 32px 22px;
  opacity: 0.85;
}
.mv-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
  gap: 24px;
}
.mv-footer__pladis {
  justify-self: start;
  display: inline-flex;
  text-decoration: none;
  transition: opacity 0.2s ease;
  opacity: 0.9;
}
.mv-footer__pladis:hover { opacity: 1; }
.mv-footer__pladis-mark { height: 29px; width: auto; display: block; }

.mv-footer__links {
  justify-self: center;
  display: flex;
  gap: 28px 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.mv-footer__links a {
  font-family: "Escuela", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  color: #ffffff;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.mv-footer__links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--mv-yellow);
}

.mv-footer__copyright {
  justify-self: end;
  font-family: "Escuela", sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  color: #ffffff;
  opacity: 0.7;
  white-space: nowrap;
}

/* Top-bar Instagram button — now with label */
.mv-topbar__social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mv-topbar__ig {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.25s ease;
}
.mv-topbar__ig-label {
  font-family: "Escuela", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  color: inherit;
}
.mv-topbar__ig-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 244, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.mv-topbar__ig:hover .mv-topbar__ig-circle {
  background: var(--mv-yellow);
  color: var(--mv-navy);
}
.mv-topbar__ig svg { width: 18px; height: 18px; }

/* ========================================================
   VARIATION A — Steam / teacup
   ======================================================== */
.mv-A {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(127, 199, 255, 0.12), transparent 60%),
    var(--mv-navy);
}

/* Background — animated steam wisps */
.mv-A__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.mv-vapour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.mv-vapour__wisp {
  transform-origin: center;
  transform-box: fill-box;
  will-change: transform, opacity;
}
.mv-vapour__wisp--1 { animation: mv-vapour-rise 18s ease-in-out -2s  infinite; }
.mv-vapour__wisp--2 { animation: mv-vapour-rise 22s ease-in-out -7s  infinite; }
.mv-vapour__wisp--3 { animation: mv-vapour-rise 16s ease-in-out -11s infinite; }
.mv-vapour__wisp--4 { animation: mv-vapour-rise 24s ease-in-out -4s  infinite; }
.mv-vapour__wisp--5 { animation: mv-vapour-rise 20s ease-in-out -14s infinite; }
.mv-vapour__wisp--6 { animation: mv-vapour-rise 26s ease-in-out -9s  infinite; }
.mv-vapour__wisp--7 { animation: mv-vapour-rise 19s ease-in-out -17s infinite; }
.mv-vapour__wisp--8 { animation: mv-vapour-rise 23s ease-in-out -6s  infinite; }

@keyframes mv-vapour-rise {
  0%   { transform: translate(0, 40px) scale(0.6); opacity: 0; }
  15%  { opacity: 0.85; }
  60%  { transform: translate(-12px, -380px) scale(1.1); opacity: 0.5; }
  100% { transform: translate(14px, -760px) scale(1.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mv-vapour__wisp { animation: none; opacity: 0.3; }
}

/* Floating biscuit dots */
.mv-A__floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.mv-floater {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: mv-float 14s ease-in-out infinite;
}
.mv-floater--1 { width: 14px; height: 14px; background: var(--mv-yellow); top: 18%; left: 8%; animation-delay: 0s; }
.mv-floater--2 { width: 8px; height: 8px; background: var(--mv-orange); top: 32%; left: 88%; animation-delay: -3s; }
.mv-floater--3 { width: 22px; height: 22px; background: var(--mv-sky); top: 68%; left: 12%; animation-delay: -6s; }
.mv-floater--4 { width: 10px; height: 10px; background: var(--mv-yellow); top: 78%; left: 84%; animation-delay: -9s; }
.mv-floater--5 { width: 6px; height: 6px; background: var(--mv-cream); top: 52%; left: 6%; animation-delay: -2s; opacity: 0.3; }
.mv-floater--6 { width: 12px; height: 12px; background: var(--mv-orange); top: 12%; left: 70%; animation-delay: -7s; }

@keyframes mv-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -16px) scale(1.1); }
  50% { transform: translate(-8px, 14px) scale(0.95); }
  75% { transform: translate(14px, 6px) scale(1.05); }
}

/* Legacy steam motif under the headline — unused, kept selector scoped */
.mv-steam-legacy {
  position: relative;
  width: 200px;
  height: 90px;
  margin: 0 auto 8px;
}
.mv-steam-legacy__line {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 70px;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(255, 244, 217, 0.6), transparent);
  filter: blur(0.5px);
  transform-origin: bottom center;
  animation: mv-steam-legacy-rise 3.6s ease-in-out infinite;
}
.mv-steam-legacy__line:nth-child(1) { left: 30%; animation-delay: 0s; }
.mv-steam-legacy__line:nth-child(2) { left: 50%; animation-delay: -1.2s; height: 84px; }
.mv-steam-legacy__line:nth-child(3) { left: 70%; animation-delay: -2.4s; }
@keyframes mv-steam-legacy-rise {
  0% { transform: translateY(20px) scaleY(0.6); opacity: 0; }
  20% { opacity: 0.9; }
  60% { transform: translateY(-30px) scaleY(1.1); opacity: 0.7; }
  100% { transform: translateY(-70px) scaleY(0.4); opacity: 0; }
}

/* Bottom biscuit silhouette (decorative) */
.mv-A__biscuit {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--mv-orange), #c46021 60%, #8a3d10 100%);
  opacity: 0.18;
  z-index: 1;
  filter: blur(1px);
}
.mv-A__biscuit::before {
  /* dotted "holes" pattern on biscuit */
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(0,0,0,0.3) 2.5px, transparent 3px);
  background-size: 36px 36px;
  background-position: 4px 4px;
}

/* ========================================================
   VARIATION B — Crumb scatter / oven warmth
   ======================================================== */
.mv-B {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 138, 61, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 216, 77, 0.10), transparent 60%),
    var(--mv-navy);
}

/* Diagonal stripe band (yellow accent) */
.mv-B__band {
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  height: 14px;
  background: repeating-linear-gradient(
    -8deg,
    var(--mv-yellow) 0 18px,
    var(--mv-orange) 18px 36px
  );
  transform: translateY(-50%) rotate(-3deg) translateY(220px);
  opacity: 0.85;
  z-index: 1;
  box-shadow: 0 4px 30px rgba(255, 138, 61, 0.3);
}

/* Crumb scatter */
.mv-B__crumbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.mv-crumb {
  position: absolute;
  background: var(--mv-orange);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  opacity: 0.55;
  animation: mv-crumb-drift 8s ease-in-out infinite;
}
.mv-crumb--1 { width: 10px; height: 7px;  top: 22%; left: 18%; background: var(--mv-yellow); animation-delay: 0s; }
.mv-crumb--2 { width: 14px; height: 10px; top: 28%; left: 78%; background: var(--mv-orange); animation-delay: -1s; }
.mv-crumb--3 { width: 6px;  height: 5px;  top: 42%; left: 10%; background: var(--mv-cream);  animation-delay: -3s; opacity: 0.4; }
.mv-crumb--4 { width: 18px; height: 12px; top: 70%; left: 22%; background: var(--mv-orange); animation-delay: -4s; }
.mv-crumb--5 { width: 8px;  height: 7px;  top: 76%; left: 70%; background: var(--mv-yellow); animation-delay: -2s; }
.mv-crumb--6 { width: 5px;  height: 4px;  top: 18%; left: 50%; background: var(--mv-sky);    animation-delay: -5s; opacity: 0.5; }
.mv-crumb--7 { width: 11px; height: 8px;  top: 56%; left: 88%; background: var(--mv-yellow); animation-delay: -6s; }
.mv-crumb--8 { width: 7px;  height: 5px;  top: 84%; left: 48%; background: var(--mv-orange); animation-delay: -1.5s; }
.mv-crumb--9 { width: 9px;  height: 6px;  top: 38%; left: 60%; background: var(--mv-cream);  animation-delay: -3.5s; opacity: 0.35; }
.mv-crumb--10 { width: 13px; height: 9px; top: 64%; left: 6%;  background: var(--mv-yellow); animation-delay: -2.5s; }

@keyframes mv-crumb-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(8px, -6px) rotate(8deg); }
}

/* Big rotating sun-like badge behind the headline */
.mv-B__sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.07;
  animation: mv-spin 90s linear infinite;
  pointer-events: none;
}
.mv-B__sun svg { width: 100%; height: 100%; }
@keyframes mv-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* B-specific eyebrow + headline tweaks */
.mv-B .mv-eyebrow { color: var(--mv-orange); }
.mv-B .mv-headline em { color: var(--mv-orange); }
.mv-B .mv-headline em::after { background: var(--mv-yellow); }
.mv-B .mv-launch__label { color: var(--mv-yellow); }

/* ========================================================
   Pattern toggle
   ======================================================== */
.mv-page[data-pattern="off"] .mv-A__pattern,
.mv-page[data-pattern="off"] .mv-A__floaters,
.mv-page[data-pattern="off"] .mv-A__biscuit,
.mv-page[data-pattern="off"] .mv-B__band,
.mv-page[data-pattern="off"] .mv-B__crumbs,
.mv-page[data-pattern="off"] .mv-B__sun {
  display: none;
}

/* ========================================================
   Responsive
   ======================================================== */
@media (max-width: 720px) {
  .mv-topbar__ig-label { display: none; }
  .mv-topbar { padding: 18px 22px; }
  .mv-page--live { display: flex; flex-direction: column; min-height: 100dvh; }
  .mv-hero { flex: 1 1 auto; justify-content: center; }
  .mv-footer { margin-top: auto; flex-shrink: 0; }

  .mv-topbar__logo { height: 44px; }
  .mv-topbar__status { font-size: 11px; letter-spacing: 0.14em; }
  .mv-hero { padding: 16px 22px 32px; }
  .mv-eyebrow { font-size: 11px; margin-bottom: 18px; }
  .mv-eyebrow::before, .mv-eyebrow::after { width: 22px; }
  .mv-launch { padding: 11px 18px; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .mv-launch__label { font-size: 10px; }
  .mv-launch__value { font-size: 14px; }
  .mv-footer { padding: 22px 0 18px; }
  .mv-footer__rule { margin: 0 22px 18px; }
  .mv-footer__inner { padding: 0 22px; }
  .mv-footer__pladis-mark { height: 24px; }
  .mv-footer__copyright { font-size: 11px; }
  .mv-A__biscuit { width: 280px; height: 280px; bottom: -90px; }
  .mv-B__sun { width: 480px; height: 480px; }
  .mv-steam-legacy { width: 160px; height: 70px; }
  .mv-steam-legacy__line { height: 50px; }
}

@media (max-width: 420px) {
  .mv-headline { font-size: clamp(36px, 11vw, 60px); }
  .mv-topbar__status span:not(.mv-status-dot) { display: none; }
}

/* Short viewport: compress hero vertical rhythm so everything fits */
@media (max-width: 720px) and (max-height: 760px) {
  .mv-topbar { padding: 14px 22px; }
  .mv-topbar__logo { height: 38px; }
  .mv-hero { padding: 8px 22px 18px; }
  .mv-eyebrow { margin-bottom: 12px; }
  .mv-headline { margin: 0 0 18px; font-size: clamp(34px, 10vw, 56px); line-height: 1.02; }
  .mv-page .mv-subline { font-size: 14px; line-height: 1.4; }
  .mv-launch { margin-top: 18px; padding: 9px 16px; }
  .mv-A__biscuit { width: 220px; height: 220px; bottom: -80px; }
  .mv-footer { padding: 14px 0 12px; }
  .mv-footer__rule { margin: 0 22px 12px; }
}

/* Very short viewport (e.g. landscape phones, ~600h): hide non-essential dressing */
@media (max-width: 720px) and (max-height: 620px) {
  .mv-eyebrow { font-size: 10px; margin-bottom: 8px; }
  .mv-headline { font-size: clamp(28px, 8.5vw, 46px); margin-bottom: 12px; }
  .mv-page .mv-subline { font-size: 13px; }
  .mv-launch { margin-top: 12px; padding: 7px 14px; }
  .mv-A__biscuit { display: none; }
  .mv-A__floaters { display: none; }
}
