/* ============ Mavu Studio — premium BIM consulting site ============ */
:root {
  --bg: #131417;
  --bg-alt: #17181c;
  --panel: #1c1d22;
  --text: #f2f0ec;
  --muted: #a5a29b;
  --gold: #c9a227;
  --gold-soft: #e0bf5e;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.045);
  --radius: 18px;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.gold { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.25rem; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-alt); }

/* giant monogram "M" watermark behind each section */
.section::before {
  content: 'M' / '';
  position: absolute;
  top: 50%; right: -0.08em;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(22rem, 42vw, 40rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(201, 162, 39, 0.03);
  -webkit-text-stroke: 1.5px rgba(201, 162, 39, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section-alt::before { right: auto; left: -0.08em; }
.section > .container { position: relative; z-index: 1; }

/* ---------- glassmorphism ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a8851b);
  color: #16130a;
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.25);
}
.btn-gold:hover { box-shadow: 0 10px 32px rgba(201, 162, 39, 0.4); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(19, 20, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; letter-spacing: 0.12em; font-size: 1.02rem; }
.brand em { font-style: normal; color: var(--gold); font-weight: 400; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta { white-space: nowrap; }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { height: 280vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#heroCanvas, .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#heroCanvas { opacity: 0; transition: opacity 0.4s ease; }
#heroCanvas.ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(19,20,23,0.55) 0%, rgba(19,20,23,0.15) 35%, rgba(19,20,23,0.2) 70%, rgba(19,20,23,0.85) 100%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(1180px, 92%);
  margin: 0 auto;
  z-index: 3;
}
.hero-copy .sub { color: #d8d5cd; max-width: 520px; margin: 1.2rem 0 2rem; font-size: 1.08rem; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-copy h1 { text-shadow: 0 4px 24px rgba(0,0,0,0.55); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 12vh;
  text-align: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.hero-caption.on { opacity: 1; transform: none; }
.hero-caption p {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: rgba(19,20,23,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  transition: opacity 0.4s;
}
.mouse { width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 7px; border-radius: 3px; background: var(--gold); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ============ STATS ============ */
.stats { background: var(--bg-alt); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 0; text-align: center; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); display: block; }
.stat span { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.05em; }

/* ============ SERVICES ============ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { padding: 2rem 1.7rem; transition: transform 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.4); }
.card-ico { font-size: 1.7rem; color: var(--gold); margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ============ PLANS ============ */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.chip {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-soft); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #16130a; font-weight: 600; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.plan { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.35s ease; }
.plan:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.45); }
.plan.hide { display: none; }
.plan-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.plan-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.plan:hover .plan-media img { transform: scale(1.06); }
/* two-image buildings: fade to the second view on hover */
.plan-media.swap .img-b { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease, transform 0.6s ease; }
.plan:hover .plan-media.swap .img-b { opacity: 1; }
/* Touch devices can't hover — JS toggles .show-b to cross-fade to the 2nd image */
.plan-media.swap.show-b .img-b { opacity: 1; }
.plan-tag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: rgba(19,20,23,0.75);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--line);
}
.plan-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.plan-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.85rem; }
.plan-meta { color: var(--muted); font-size: 0.82rem; }
.plan-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); }

/* ---------- shop products (click to open detail) ---------- */
.shop-card { cursor: pointer; }
.shop-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.plan-desc { color: var(--muted); font-size: 0.9rem; }
.view-link { color: var(--gold-soft); font-size: 0.85rem; font-weight: 600; }
.shop-card:hover .view-link { text-decoration: underline; }

/* "coming soon" pill in place of a price */
.btn-soon {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-soft); border: 1px dashed rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.08); cursor: default; white-space: nowrap;
}

/* ---------- product modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(10, 11, 13, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 1; width: min(920px, 100%); max-height: 90vh; overflow: auto;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: modalIn 0.35s ease;
}
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(19, 20, 23, 0.75); border: 1px solid var(--line); color: var(--text);
  font-size: 1.1rem; line-height: 1; display: grid; place-items: center; transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: rgba(201, 162, 39, 0.25); transform: rotate(90deg); }
.modal-body { padding: clamp(1.4rem, 3.5vw, 2.4rem); display: grid; gap: 1.1rem; }
.modal-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.modal-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; }
.modal-body .lead { color: var(--muted); }
.pkg-title { font-family: var(--font-display); color: var(--gold-soft); font-size: 1.1rem; margin-top: 0.4rem; }
.pkg-list { list-style: none; display: grid; gap: 0.55rem; }
.pkg-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; }
.pkg-list .ck { color: #7ec97e; font-weight: 800; flex-shrink: 0; }
.checkout-box {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem;
  background: var(--glass); display: grid; gap: 0.7rem; text-align: center; margin-top: 0.4rem;
}
.checkout-box .price-soon { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-soft); }
.checkout-box p { color: var(--muted); font-size: 0.85rem; }
.btn-checkout {
  width: 100%; padding: 0.9rem 1.4rem; border-radius: 999px; border: 0;
  font-weight: 700; letter-spacing: 0.03em; color: var(--muted);
  background: rgba(255, 255, 255, 0.08); cursor: not-allowed;
}
.checkout-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }

/* ============ ASSISTANT ============ */
.assistant-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.assistant-points { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.assistant-points li {
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: var(--glass);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.chat { display: flex; flex-direction: column; height: 560px; max-height: 80vh; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #7a6115);
  display: grid; place-items: center;
  color: #16130a; font-size: 1.2rem; font-weight: 700;
}
.online { display: block; font-size: 0.75rem; color: #7ec97e; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.75rem; scrollbar-width: thin; }
.msg { max-width: 85%; padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; animation: msgIn 0.3s ease; white-space: pre-line; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.bot { background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, var(--gold), #a8851b); color: #16130a; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.2rem 0.6rem; }
.chat-chips .chip { font-size: 0.8rem; padding: 0.4rem 1rem; }
.chat-input { display: flex; gap: 0.6rem; padding: 0.9rem 1.2rem; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
}
.chat-input input:focus { border-color: var(--gold); }

/* ============ BRIEF FORM ============ */
.brief { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 2rem; }
fieldset { border: 0; display: grid; gap: 1rem; }
legend {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-soft);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }
.opt { opacity: 0.6; }
input, select, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.check-label { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }
.check-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.check { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--gold); padding: 0; }
.brief-actions { text-align: center; display: grid; gap: 0.8rem; justify-items: center; }
.brief-note { font-size: 0.82rem; color: var(--muted); max-width: 460px; }
.brief-success { text-align: center; padding: 1.6rem; border: 1px solid rgba(126, 201, 126, 0.4); border-radius: var(--radius); background: rgba(126, 201, 126, 0.07); }
.brief-success h3 { color: #7ec97e; margin-bottom: 0.5rem; }
.brief-success a { color: var(--gold-soft); text-decoration: underline; }

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.member { padding: 2.4rem 2.2rem; transition: transform 0.3s ease, border-color 0.3s ease; text-align: center; }
.member:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.4); }
.member p:not(.role), .member ul { text-align: left; }
.member-badge {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #7a6115);
  color: #16130a;
  font-family: var(--font-display);
  font-size: 1.5rem;
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.member-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(201, 162, 39, 0.5);
  background: #15161a;
  margin: 0 auto 1.2rem;
  display: block;
}
.member-linkedin {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.1rem;
  color: var(--gold-soft); font-size: 0.85rem; font-weight: 600;
  transition: color 0.2s;
}
.member-linkedin svg { width: 20px; height: 20px; fill: currentColor; }
.member-linkedin:hover { color: var(--gold); }
.member .role { color: var(--gold-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin: 0.3rem 0 1rem; }
.member p { color: var(--muted); font-size: 0.95rem; }
.member ul { margin-top: 1rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; display: grid; gap: 0.3rem; }
.member li::marker { color: var(--gold); }

/* ============ CONTACT ============ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; color: var(--muted); }
.contact-list a:hover { color: var(--gold-soft); }
.c-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.socials { display: flex; gap: 0.7rem; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
  transition: all 0.25s;
  font-weight: 700;
}
.socials a svg { width: 20px; height: 20px; fill: currentColor; }
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.contact-form { padding: 2rem; display: grid; gap: 1rem; }
.form-status { font-size: 0.85rem; color: #7ec97e; min-height: 1.2em; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 0; background: #101114; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer p { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; max-width: 380px; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.footer nav { display: grid; gap: 0.55rem; align-content: start; }
.footer nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer nav a:hover { color: var(--gold-soft); }
.copyright { text-align: center; padding: 1.4rem 1rem; border-top: 1px solid var(--line); color: #6f6d67; font-size: 0.8rem; }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cards-grid, .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .assistant-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ============ NAV ACTIVE ============ */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; display: block; height: 2px; margin-top: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ============ INTERIOR PAGE HEADER ============ */
.page-hero {
  position: relative;
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% -10%, rgba(201,162,39,0.10), transparent 55%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 1rem auto 0; }
.page-main { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.6rem; transition: color 0.2s; }
.back-link:hover { color: var(--gold-soft); }

/* ============ REQUEST GUIDE (rules-based assistant) ============ */
.guide-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.guide-intro h2 { margin-bottom: 0.8rem; }
.guide-intro .section-sub { margin-bottom: 1.6rem; }
.guide-steps { list-style: none; display: grid; gap: 0.9rem; }
.guide-steps li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--muted); font-size: 0.95rem; }
.guide-steps .num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}
.guide { display: flex; flex-direction: column; height: 560px; max-height: 82vh; overflow: hidden; }

/* category cards shown by the guide */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; padding: 0 1.2rem 1rem; }
.cat-card {
  text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  border-radius: 14px; padding: 0.9rem 1rem; color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(201,162,39,0.08); }
.cat-card .cat-ico { font-size: 1.4rem; color: var(--gold); }
.cat-card strong { font-size: 0.95rem; }
.cat-card span { font-size: 0.78rem; color: var(--muted); }

/* ============ BRIEF FORM — LIVE FEEDBACK ============ */
.brief-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.brief-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(201,162,39,0.12); border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold-soft); font-size: 0.8rem; letter-spacing: 0.05em;
}

/* sticky progress */
.brief-progress {
  position: sticky; top: 64px; z-index: 20;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.8rem 1.1rem; margin-bottom: 1.8rem;
  background: rgba(19,20,23,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px;
}
.brief-progress .track { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.brief-progress .bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px; transition: width 0.45s cubic-bezier(.2,.7,.2,1);
}
.brief-progress .pct { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 5.4em; text-align: right; }
.brief-progress .pct b { color: var(--gold-soft); }

/* field wrapper with live states */
.field { position: relative; display: grid; gap: 0.35rem; padding: 0.5rem 0.6rem; border-radius: 12px; transition: background 0.25s ease; }
.field > label, .field-legend { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.03em; }
.field .req { color: var(--gold); }
.field .control { position: relative; display: block; }
.field .control input,
.field .control select,
.field .control textarea { padding-right: 2.6rem; }
.field-checks .control { padding: 0; }

/* the little status disc (green check / red flag) */
.field-status {
  position: absolute; top: 0.65rem; right: 0.7rem;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; line-height: 1;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.2,1.4,.4,1);
  pointer-events: none;
}
.field-checks .field-status { top: 0; right: 0; position: relative; margin-left: auto; }

/* focus: gentle gold highlight where the client is typing */
.field.is-focus { background: rgba(201,162,39,0.06); }
.field.is-focus .control input,
.field.is-focus .control select,
.field.is-focus .control textarea { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.12); }

/* complete: green ring + check */
.field.is-complete .control input,
.field.is-complete .control select,
.field.is-complete .control textarea { border-color: rgba(126,201,126,0.55); }
.field.is-complete .field-status { opacity: 1; transform: scale(1); background: rgba(126,201,126,0.16); border: 1.5px solid #7ec97e; color: #7ec97e; }
.field.is-complete .field-status::before { content: '✓'; }

/* skipped / blank required: soft red background */
.field.is-error { background: rgba(224,104,95,0.06); }
.field.is-error .control input,
.field.is-error .control select,
.field.is-error .control textarea { border-color: rgba(224,104,95,0.55); background: rgba(224,104,95,0.06); }
.field.is-error .field-status { opacity: 1; transform: scale(1); border: 1.5px solid #e0685f; color: #e0685f; }
.field.is-error .field-status::before { content: '!'; }
.field-hint { font-size: 0.75rem; color: #e0685f; opacity: 0; height: 0; transition: opacity 0.2s ease; }
.field.is-error .field-hint { opacity: 1; height: auto; }

.field-checks .checks { display: flex; flex-wrap: wrap; gap: 0.55rem 1.3rem; margin-top: 0.2rem; }
/* selects carry a native arrow — skip the status disc to avoid overlap */
.field[data-type="select"] .field-status { display: none; }

/* responsive two-column field grid; wide controls span full width */
.fieldset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; align-items: start; }
.fieldset-grid .field-checks,
.fieldset-grid .field[data-type="textarea"] { grid-column: 1 / -1; }
@media (max-width: 768px) { .fieldset-grid { grid-template-columns: 1fr; } }

/* ---------- progressive step-through form ---------- */
.brief-step { display: none; }
.brief-step.active { display: block; animation: stepIn 0.4s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* stagger the fields in as each step loads — a smooth, progressive reveal */
.brief-step.active .field { animation: fieldIn 0.5s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.brief-step.active .fieldset-grid .field:nth-child(1) { animation-delay: 0.03s; }
.brief-step.active .fieldset-grid .field:nth-child(2) { animation-delay: 0.08s; }
.brief-step.active .fieldset-grid .field:nth-child(3) { animation-delay: 0.13s; }
.brief-step.active .fieldset-grid .field:nth-child(4) { animation-delay: 0.18s; }
.brief-step.active .fieldset-grid .field:nth-child(5) { animation-delay: 0.23s; }
.brief-step.active .fieldset-grid .field:nth-child(6) { animation-delay: 0.28s; }
.brief-step.active .fieldset-grid .field:nth-child(7) { animation-delay: 0.33s; }
.brief-step.active .fieldset-grid .field:nth-child(8) { animation-delay: 0.38s; }
.brief-step.active .fieldset-grid .field:nth-child(n+9) { animation-delay: 0.43s; }

.brief-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; }
.brief-nav .step-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.03em; order: 0; }
.brief-nav .nav-btns { display: flex; gap: 0.7rem; align-items: center; margin-left: auto; }
.brief-nav .btn-submit { padding: 0.75rem 1.9rem; }
@media (prefers-reduced-motion: reduce) {
  .brief-step.active, .brief-step.active .field { animation: none; }
}
@media (max-width: 560px) {
  .brief-nav { flex-direction: column-reverse; align-items: stretch; }
  .brief-nav .nav-btns { margin-left: 0; justify-content: space-between; }
  .brief-nav .step-label { text-align: center; }
}

/* iridescent, pulsing submit — only once the form is complete */
.btn-submit {
  position: relative; overflow: hidden;
  border: 0; color: #16130a; font-weight: 700;
  padding: 0.95rem 2.4rem; border-radius: 999px; cursor: not-allowed;
  background: rgba(255,255,255,0.10); color: var(--muted);
  transition: color 0.3s ease, transform 0.25s ease;
}
.btn-submit.ready {
  cursor: pointer; color: #1a1405;
  background: linear-gradient(115deg, #c9a227, #e7c65a, #6fd6a6, #5ab0e0, #c98cd8, #e7c65a, #c9a227);
  background-size: 320% 320%;
  box-shadow: 0 8px 30px rgba(201,162,39,0.35);
  animation: iridescent 6s ease infinite, readyPulse 2.6s ease-in-out infinite;
}
.btn-submit.ready:hover { transform: translateY(-2px); }
@keyframes iridescent { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes readyPulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(201,162,39,0.30); }
  50% { box-shadow: 0 10px 40px rgba(111,214,166,0.38); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-submit.ready { animation: none; background-position: 30% 50%; }
}

/* completion banner over the form */
.brief-complete {
  display: none; align-items: center; gap: 0.7rem;
  margin: 0 0.6rem 1.4rem; padding: 0.8rem 1.1rem;
  border-radius: 12px; font-size: 0.9rem;
  background: rgba(126,201,126,0.10); border: 1px solid rgba(126,201,126,0.4); color: #a9e0a9;
}
.brief-complete.show { display: flex; animation: msgIn 0.4s ease; }
.brief-complete .tick {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: #7ec97e; color: #10240f; display: grid; place-items: center; font-weight: 800;
}

@media (max-width: 900px) {
  .guide-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .cat-grid { grid-template-columns: 1fr; }
  .brief-progress { top: 56px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: min(320px, 82vw);
    background: rgba(19, 20, 23, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2rem 2.4rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--line);
    z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.15rem; color: var(--text); }
  .hero { height: 230vh; }
  .hero-copy { align-items: flex-start; justify-content: flex-end; padding-bottom: 18vh; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 0.5rem; }
  .cards-grid, .plans-grid, .team-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .chat { height: 520px; }
  .scroll-hint { display: none; }
  .hero-caption { bottom: 8vh; }
}

/* ============ MAVU ASSISTANT WIDGET ============ */
.mavu-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 120;
  width: 66px; height: 66px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: radial-gradient(circle at 32% 26%, #24262c, #131418);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center; overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.mavu-fab:hover { transform: scale(1.06); box-shadow: 0 16px 40px rgba(201, 162, 39, 0.35); }
.mavu-fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mavu-fab img { width: 76%; height: 76%; object-fit: contain; pointer-events: none; transform-origin: 50% 62%; animation: mavuIdle 5s ease-in-out infinite; }
.mavu-fab::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.4); opacity: 0; animation: mavuRing 5s ease-out infinite;
}
.mavu-fab .dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #7ec97e; border: 2px solid #15161a; }
.mavu-fab.hidden { transform: scale(0); opacity: 0; pointer-events: none; }
@keyframes mavuIdle {
  0%, 68%, 100% { transform: translateY(0) rotate(0deg); }
  76% { transform: translateY(-5px) rotate(-6deg); }
  84% { transform: translateY(0) rotate(5deg); }
  92% { transform: translateY(-2px) rotate(-2deg); }
}
@keyframes mavuRing { 0% { transform: scale(0.92); opacity: 0.55; } 100% { transform: scale(1.28); opacity: 0; } }

.mavu-panel {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 121;
  width: min(390px, calc(100vw - 2rem)); height: min(600px, calc(100vh - 2rem));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(24px) scale(0.96); opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease;
}
.mavu-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.mavu-head { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.mavu-head .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #15161a; border: 1px solid rgba(201,162,39,0.45); flex-shrink: 0; display: grid; place-items: center; }
.mavu-head .av img { width: 84%; height: 84%; object-fit: contain; }
.mavu-head .who { flex: 1; line-height: 1.25; }
.mavu-head .who strong { display: block; font-size: 0.98rem; letter-spacing: 0.02em; }
.mavu-head .who span { font-size: 0.74rem; color: var(--muted); }
.mavu-head .who .online { color: #7ec97e; }
.mavu-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 1rem; display: grid; place-items: center; transition: background 0.2s, transform 0.25s; }
.mavu-close:hover { background: rgba(255,255,255,0.08); transform: rotate(90deg); }
.mavu-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; scrollbar-width: thin; }
.mavu-log .msg.rich { white-space: normal; }
.mavu-note { font-size: 0.72rem; color: var(--muted); font-style: italic; margin-top: 0.4rem; }
.mavu-refs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.55rem; }
.mavu-refs img { width: 88px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.mavu-cta { margin-top: 0.65rem; }
.mavu-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1rem 0.5rem; }
.mavu-chips .chip { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
.mavu-form { display: flex; gap: 0.5rem; padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
.mavu-form input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1rem; color: var(--text); font-size: 0.9rem; outline: none; }
.mavu-form input:focus { border-color: var(--gold); }
.mavu-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--gold), #a8851b); color: #16130a; font-size: 1rem; cursor: pointer; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .mavu-fab img { animation: none; }
  .mavu-fab::after { animation: none; }
  .mavu-panel { transition: opacity 0.2s ease; }
}
@media (max-width: 480px) {
  .mavu-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .mavu-fab { right: 1rem; bottom: 1rem; }
}
