/* ============================================================
   Mobile Fix VA — shared design system
   Loaded by index.html, about.html, service-area.html
   ============================================================ */

:root {
  --brand1: oklch(0.55 0.19 245);
  --brand2: oklch(0.6 0.17 220);
  --brand-strong: oklch(0.42 0.18 245);
  --ink: oklch(0.17 0.02 260);
  --ink-strong: oklch(0.15 0.02 260);
  --muted: oklch(0.42 0.03 260);
  --line: oklch(0.9 0.012 260);
  --bg: oklch(0.975 0.006 255);
  --panel-top: oklch(1 0 0);
  --panel-bot: oklch(0.98 0.004 255);
  --gold: oklch(0.7 0.15 85);
  --maxw: 1280px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-card: 0 12px 30px -14px oklch(0.3 0.05 260 / 0.15);
}

* { box-sizing: border-box; }
a { text-decoration: none; color: var(--brand-strong); }
a:hover { color: var(--brand1); }
.mfva-mbr { display: none; } /* mobile-only line breaks; shown at <=760px */
.mfva-i { width: 1.35em; height: 1.35em; display: inline-block; vertical-align: -0.28em; flex: 0 0 auto; }

.mfva-grad {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.mfva-container { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.mfva-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 14px; padding: 14px 24px; font-weight: 600; font-size: 15px;
  font-family: var(--font-body); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.mfva-btn:hover { transform: translateY(-1px); }
.mfva-btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 16px 40px -14px oklch(0.55 0.19 245 / 0.55);
}
.mfva-btn-primary:hover { color: #fff; }
.mfva-btn-outline {
  border: 1px solid oklch(0.88 0.012 260); background: oklch(1 0 0 / 0.8);
  backdrop-filter: blur(8px); color: var(--ink);
}
.mfva-btn-outline:hover { color: var(--ink); border-color: var(--brand1); }

/* ---------- Header / Nav ---------- */
.mfva-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(20px);
  background: oklch(1 0 0 / 0.8); border-bottom: 1px solid var(--line);
}
.mfva-nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mfva-brand { display: flex; align-items: center; gap: 10px; }
.mfva-brand img { height: 32px; width: auto; display: block; }
.mfva-brand span {
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  letter-spacing: -0.01em; white-space: nowrap; color: var(--ink);
}
.mfva-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.mfva-nav a { color: var(--muted); font-weight: 500; }
.mfva-nav a:hover, .mfva-nav a.active { color: var(--brand-strong); }
.mfva-nav-cta { white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-size: 14px; }

/* hamburger */
.mfva-burger {
  display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center; background: transparent;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0;
}
.mfva-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.mfva-header.mfva-open .mfva-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mfva-header.mfva-open .mfva-burger span:nth-child(2) { opacity: 0; }
.mfva-header.mfva-open .mfva-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown */
.mfva-mobile-menu { display: none; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: oklch(1 0 0 / 0.96); }
.mfva-mobile-menu a { padding: 13px 4px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mfva-mobile-menu a:last-child { border-bottom: none; }
.mfva-mobile-menu .mfva-nav-cta { margin-top: 12px; text-align: center; justify-content: center; color: #fff; }
.mfva-header.mfva-open .mfva-mobile-menu { display: flex; }

/* ---------- Section headings ---------- */
.mfva-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand1); font-weight: 600; margin-bottom: 12px; }
.mfva-h2 { font-family: var(--font-head); font-size: 44px; font-weight: 700; margin: 0; color: var(--ink-strong); line-height: 1.05; }

/* ---------- Service card image band ---------- */
.mfva-svc-media { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(150deg, oklch(0.55 0.19 245 / 0.16), oklch(0.6 0.17 220 / 0.10)); }
.mfva-svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mfva-svc-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mfva-svc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mfva-svc-ph .ic { font-size: 34px; opacity: 0.9; }
.mfva-svc-ph .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); opacity: 0.75; }

/* ---------- Footer ---------- */
.mfva-footer { border-top: 1px solid var(--line); background: oklch(0.97 0.006 255); }
.mfva-footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.mfva-footer-brand span.tag { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 14px; max-width: 260px; }
.mfva-footer h4 { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin: 0 0 14px; }
.mfva-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mfva-footer ul a, .mfva-footer ul li { color: var(--muted); font-size: 14px; }
.mfva-footer ul a:hover { color: var(--brand-strong); }
.mfva-footer-bottom { border-top: 1px solid var(--line); }
.mfva-footer-bottom .inner { max-width: var(--maxw); margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Static page shell (about / service-area) ---------- */
.mfva-body {
  font-family: var(--font-body); color: var(--ink); margin: 0; min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, oklch(0.9 0.035 245 / 0.5), transparent 45%),
                    radial-gradient(circle at 85% 15%, oklch(0.9 0.03 220 / 0.4), transparent 50%);
  background-attachment: fixed;
}
.mfva-page-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 84px 24px 8px; }
.mfva-page-hero h1 { font-family: var(--font-head); font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 0; color: var(--ink-strong); }
.mfva-page-hero p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 20px auto 0; max-width: 620px; }

.mfva-card { background: linear-gradient(180deg, var(--panel-top), var(--panel-bot)); border: 1px solid var(--line); box-shadow: var(--shadow-card); border-radius: 16px; padding: 28px; }
.mfva-card h3 { font-family: var(--font-head); font-size: 19px; margin: 14px 0 8px; color: var(--ink-strong); }
.mfva-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mfva-card .ic { font-size: 26px; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: oklch(0.55 0.19 245 / 0.12); color: var(--brand-strong); }
.mfva-card .ic svg { width: 34px; height: 34px; display: block; }

.mfva-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mfva-grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.mfva-city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mfva-city { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-top); font-weight: 600; color: var(--ink); }
.mfva-city .dot { width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--brand1), var(--brand2)); flex-shrink: 0; }

/* photo slot (About) — real photo shows once dropped in; placeholder until then */
.mfva-photo-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card);
  background: linear-gradient(150deg, oklch(0.55 0.19 245 / 0.14), oklch(0.6 0.17 220 / 0.08)); }
.mfva-photo-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; color: var(--brand-strong); }
.mfva-photo-ph svg { width: 40px; height: 40px; opacity: 0.85; }
.mfva-photo-ph .lbl { font-weight: 700; font-size: 15px; }
.mfva-photo-ph .sub { font-size: 12px; color: var(--muted); }
.mfva-photo-img { position: absolute; inset: 0; background-size: cover; background-position: center; }

.mfva-stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.mfva-stat-band .n { font-family: var(--font-head); font-size: 40px; font-weight: 700; }
.mfva-stat-band .l { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 6px; }

/* Reels: the Facebook video plugin renders blank below ~180px wide, so instead
   of fixed columns we keep every embed at least ~230px and let it collapse to a
   single full-width column on phones. auto-fit gives 4 cols on desktop. */
.mfva-reels-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important; }

/* ============================================================
   RESPONSIVE — inline styles win over stylesheet, so overrides
   of inlined layout use !important intentionally.
   ============================================================ */
@media (max-width: 960px) {
  .mfva-hero-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
  .mfva-review-grid { grid-template-columns: 1fr !important; }
  .mfva-services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .mfva-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mfva-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mfva-city-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .mfva-nav, .mfva-nav-inner > .mfva-nav-cta { display: none; }
  .mfva-burger { display: flex; }

  .mfva-h2 { font-size: 32px !important; }
  .mfva-eyebrow { font-size: 11px; }

  /* section vertical rhythm */
  .mfva-sec { padding-top: 52px !important; padding-bottom: 52px !important; }
  .mfva-hero-grid { padding-top: 40px !important; padding-bottom: 24px !important; padding-left: 24px !important; padding-right: 24px !important; }
  /* the 400px hero stage would otherwise force the grid wider than the phone,
     left-aligning it (margin:auto can't center an over-wide box) and shoving
     the "centered" copy right. min-width:0 lets the tracks shrink to fit. */
  .mfva-hero-grid > div { min-width: 0; }

  /* hero: center the copy on mobile (badge, headline, CTAs, stats all centered) */
  .mfva-hero-copy { align-items: center; text-align: center; }
  .mfva-hero-copy > div { justify-content: center; }

  /* hero type */
  .mfva-h1 { font-size: 42px !important; }
  .mfva-h1-sub { font-size: 24px !important; margin-top: 10px !important; }
  .mfva-hero-desc { font-size: 14px !important; line-height: 1.55 !important; margin-top: 14px !important; max-width: 100% !important; }
  .mfva-mbr { display: inline; }

  /* hero visual: scale the whole stage as one unit (never reflow its px children);
     scale() leaves the box's full height reserved, so negative margins claw back
     the empty space above/below the shrunken mockup. */
  .mfva-hero-visual { min-height: 300px !important; }
  .hero2-stage { transform: scale(0.8); margin-top: -44px; margin-bottom: -50px; }

  .mfva-services-grid { grid-template-columns: 1fr !important; }
  .mfva-trust-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }

  .mfva-cta-card { padding: 44px 24px !important; }
  .mfva-cta-card .mfva-h2 { font-size: 30px !important; }

  /* featured Iref review — compact on mobile so it doesn't dominate the screen */
  .mfva-featured-review { padding: 22px !important; }
  .mfva-featured-review > div:first-child { font-size: 26px !important; margin-bottom: 8px !important; }
  .mfva-featured-review p { font-size: 15px !important; line-height: 1.5 !important; }

  .mfva-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-top: 44px; }

  .mfva-page-hero { padding-top: 48px; }
  .mfva-page-hero h1 { font-size: 36px; }
  .mfva-grid-3 { grid-template-columns: 1fr !important; }
  .mfva-grid-2 { grid-template-columns: 1fr !important; gap: 28px; }
  .mfva-city-grid { grid-template-columns: repeat(2, 1fr); }
  .mfva-stat-band { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

@media (max-width: 440px) {
  .mfva-h1 { font-size: 36px !important; }
  .hero2-stage { transform: scale(0.68); margin-top: -76px; margin-bottom: -82px; }
  .mfva-hero-visual { min-height: 250px !important; }
  .mfva-footer-grid { grid-template-columns: 1fr; }
  .mfva-btn { padding: 13px 20px; }
}

/* ============================================================
   Booking agent widget (assets/chat.js)
   ============================================================ */

.mfva-chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 9998;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 14px 30px -10px oklch(0.55 0.19 245 / 0.55);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.mfva-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px oklch(0.55 0.19 245 / 0.62); }
.mfva-chat-launcher-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.mfva-chat-launcher-hidden { opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.95); }

.mfva-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  display: flex; flex-direction: column;
  width: 380px; max-width: calc(100vw - 40px); height: 560px; max-height: calc(100vh - 40px);
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bot));
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 28px 60px -20px oklch(0.3 0.05 260 / 0.35);
  opacity: 0; pointer-events: none; transform: translateY(14px) scale(0.98);
  transition: opacity .2s ease, transform .2s ease;
}
.mfva-chat-open { opacity: 1; pointer-events: auto; transform: none; }

.mfva-chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
}
.mfva-chat-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mfva-chat-id strong { display: block; font-family: var(--font-head); font-size: 15px; line-height: 1.2; }
.mfva-chat-sub { display: block; font-size: 12px; opacity: 0.85; }
/* Inline SVG rather than chat-icon-trim.png — that asset is ~1 MB, far too
   heavy for a 36px avatar on a mobile-first site. */
.mfva-chat-avatar {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%;
  background: #fff center/60% no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7ae0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.4a7.4 7.4 0 0 1-10.8 6.6L4.5 19.3l1.3-4.2A7.4 7.4 0 1 1 20 11.4Z'/%3E%3C/svg%3E");
}
.mfva-chat-x {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center;
  border: none; border-radius: 9px; cursor: pointer; color: #fff;
  background: oklch(1 0 0 / 0.16); transition: background .15s ease;
}
.mfva-chat-x:hover { background: oklch(1 0 0 / 0.3); }
.mfva-chat-x svg { width: 16px; height: 16px; }

.mfva-chat-list { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mfva-chat-row { display: flex; }
.mfva-chat-bot { justify-content: flex-start; }
.mfva-chat-me { justify-content: flex-end; }
.mfva-chat-bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere;
}
.mfva-chat-bot .mfva-chat-bubble {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px;
}
.mfva-chat-me .mfva-chat-bubble {
  background: linear-gradient(135deg, var(--brand1), var(--brand2)); color: #fff; border-bottom-right-radius: 5px;
}
.mfva-chat-bot .mfva-chat-bubble a { color: var(--brand-strong); font-weight: 600; }
.mfva-chat-me .mfva-chat-bubble a { color: #fff; text-decoration: underline; }

.mfva-chat-dot {
  display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%;
  background: var(--muted); animation: mfva-chat-blink 1.2s infinite ease-in-out;
}
.mfva-chat-dot:nth-child(2) { animation-delay: .18s; }
.mfva-chat-dot:nth-child(3) { animation-delay: .36s; margin-right: 0; }
@keyframes mfva-chat-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.mfva-chat-done {
  margin-top: 4px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5;
  color: var(--ink); background: oklch(0.95 0.04 155); border: 1px solid oklch(0.86 0.07 155);
}
.mfva-chat-done a { font-weight: 600; }
/* Delivery failed. Same box, opposite meaning — so it must not read as success. */
.mfva-chat-done-warn {
  background: oklch(0.96 0.06 85); border-color: oklch(0.84 0.11 78);
}

.mfva-chat-form { display: flex; gap: 8px; padding: 12px 14px 6px; border-top: 1px solid var(--line); }
.mfva-chat-input {
  flex: 1 1 auto; min-width: 0; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-body); font-size: 15px; /* >=16px avoids iOS zoom; see mobile block */
}
.mfva-chat-input:focus { outline: 2px solid var(--brand1); outline-offset: -1px; }
.mfva-chat-send {
  flex: 0 0 auto; width: 42px; display: grid; place-items: center; cursor: pointer;
  border: none; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  transition: opacity .15s ease;
}
.mfva-chat-send svg { width: 18px; height: 18px; }
.mfva-chat-busy .mfva-chat-send { opacity: 0.5; pointer-events: none; }

.mfva-chat-foot { margin: 0; padding: 4px 14px 12px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .mfva-chat {
    right: 0; bottom: 0; width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh; border-radius: 0; border: none;
  }
  /* 16px keeps iOS Safari from zooming the viewport on focus. */
  .mfva-chat-input { font-size: 16px; }
  .mfva-chat-launcher { right: 14px; bottom: 14px; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mfva-chat, .mfva-chat-launcher { transition: none; }
  .mfva-chat-dot { animation: none; opacity: .5; }
}
