/* ============================================================
   VexusInsurance — site styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--fg1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:hover { color: var(--amber); }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* ---------- Reveal animations ---------- */
@keyframes vxfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vxpop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vxreveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: vxreveal var(--dur-slow) var(--ease) both; }
  .reveal.d2 { animation-delay: .08s; }
}

image-slot { --is-bg: transparent; }

/* ---------- Shared layout ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow-amber { color: var(--amber); }
.section-h1 { font: var(--text-h1); letter-spacing: -0.02em; color: var(--ink); margin: 14px 0 14px; }
.section-h2 { font: var(--text-h2); letter-spacing: -0.02em; color: var(--ink); margin: 14px 0 12px; }
.section-lead { font: var(--text-lead); color: var(--fg2); margin: 0; }
.mw-540 { max-width: 540px; }
.mw-560 { max-width: 560px; }
.mw-640 { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), background var(--dur), filter var(--dur), box-shadow var(--dur);
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-lg { font-size: 16px; padding: 16px 26px; }

.btn-amber { background: var(--amber); color: var(--fg-on-amber); box-shadow: var(--shadow-amber); }
.btn-amber:hover { background: var(--amber-deep); transform: translateY(-2px); color: var(--fg-on-amber); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.32); }
.btn-whatsapp:hover { filter: brightness(.96); transform: translateY(-2px); color: #fff; }

.btn-ghost {
  border: 1.5px solid var(--line-2);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(42,17,64,.05); color: var(--ink); }

/* ---------- Brand wordmark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand-mark { display: block; margin-right: 4px; height: 30px; width: auto; }
.brand-text { line-height: 1; color: #5B21B6; }
.brand-sub {
  color: var(--fg2);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: 5px;
}
.brand-text-light { color: #C4B5FD; }
.brand-sub-light { color: var(--fg-on-ink-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur);
}
.site-header.scrolled {
  background: rgba(250,247,252,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--fg2); text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-desktop .btn-whatsapp { padding: 12px 20px; }

.menu-btn {
  display: none;
  background: transparent;
  border: 1.5px solid var(--line-2);
  cursor: pointer;
  padding: 9px;
  place-items: center;
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
}
.menu-btn:hover { background: rgba(42,17,64,.05); }
.menu-btn .icon-close { display: none; }
.menu-btn.open .icon-open { display: none; }
.menu-btn.open .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 4px;
  animation: vxfade var(--dur) var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-link {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg1);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 12px; padding: 14px 20px; }

/* ---------- Hero ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 56px 32px 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill-ink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
}
.hero-title { font: var(--text-display); letter-spacing: -0.03em; margin: 22px 0 20px; color: var(--ink); }
.hero-title em { font-style: italic; color: var(--amber); }
.hero-lead { font: var(--text-lead); color: var(--fg2); max-width: 460px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(150deg,#A85CC4 0%,#7B2E9E 52%,#2A1140 128%);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-photo image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(42,17,64,0) 45%,rgba(42,17,64,.55) 100%);
  pointer-events: none;
}
.hero-photo-caption { position: absolute; left: 22px; bottom: 20px; color: var(--paper); pointer-events: none; }
.caption-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: .9; }
.caption-title { font: var(--text-h3); color: var(--paper); }
.hero-sticker {
  position: absolute; top: 18px; right: -14px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 11px;
}
.sticker-icon { width: 34px; height: 34px; border-radius: 999px; background: var(--green-soft); display: grid; place-items: center; flex: none; }
.sticker-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.sticker-sub { font-size: 12px; color: var(--fg3); }

/* ---------- Coverage ---------- */
.coverage { max-width: 1120px; margin: 0 auto; padding: 24px 32px 56px; }
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px;
  gap: 4px;
}
.seg-btn {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg2);
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.seg-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.coverage-note { font-size: 14px; color: var(--fg3); margin: 14px 0 24px; max-width: 560px; }
.coverage-cards { display: flex; gap: 18px; flex-wrap: wrap; }
.cov-card {
  position: relative;
  flex: 1 1 240px;
  min-width: 240px;
  cursor: pointer;
  border-radius: var(--r-lg);
  padding: 26px 26px 24px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur), border-color var(--dur);
}
.cov-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cov-card.is-selected { background: var(--amber); border-color: var(--amber); }
.cov-notch {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--paper);
}
.cov-notch.left { left: -9px; }
.cov-notch.right { right: -9px; }
.cov-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.cov-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--amber-soft); color: var(--amber-deep);
}
.cov-card.is-selected .cov-tag { background: rgba(255,255,255,.22); color: #fff; }
.cov-check {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none;
}
.cov-title {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); margin: 14px 0 8px;
}
.cov-card.is-selected .cov-title { color: #fff; }
.cov-sub { font-size: 14px; line-height: 1.5; color: var(--fg2); margin: 0; }
.cov-card.is-selected .cov-sub { color: rgba(255,255,255,.85); }
.coverage-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.coverage-cta-note { font-size: 14px; color: var(--fg2); max-width: 360px; }

/* ---------- Offerings ---------- */
.offerings { max-width: 1120px; margin: 0 auto; padding: 40px 32px 88px; }
.offerings .section-h2 { margin-bottom: 40px; }
.offerings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.offering-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--amber-deep); letter-spacing: .04em; }
.offering-icon { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--amber-soft); display: grid; place-items: center; margin: 16px 0; }
.card-h3 { font: var(--text-h3); color: var(--ink); margin: 0 0 8px; }
.card-p { font-size: 15px; line-height: 1.55; color: var(--fg2); margin: 0; }

/* ---------- Specialist / Team ---------- */
.specialist { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specialist-inner { max-width: 1120px; margin: 0 auto; padding: 72px 32px; }
.team-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.team-card {
  text-decoration: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 24px 26px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--amber); }
.team-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#6D28D9,#4C1D76); }
.team-avatar {
  width: 74px; height: 74px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(150deg,#6D28D9,#4C1D76);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line), var(--shadow-md);
}
.team-avatar svg { height: 32px; width: auto; display: block; }
.team-name { font: var(--text-h3); color: var(--ink); margin: 0 0 5px; }
.team-role { font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.team-wa { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--whatsapp); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); }
.cta-inner {
  max-width: 1120px; margin: 0 auto; padding: 64px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-title { font: var(--text-h1); letter-spacing: -0.02em; color: var(--paper); margin: 12px 0 8px; }
.cta-p { font-size: 16px; color: var(--fg-on-ink-2); margin: 0; }
.cta-phone { font-family: var(--font-body); font-size: 15px; color: var(--paper); margin-top: 16px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 36px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer .brand { font-size: 20px; }
.footer-copy { font-size: 13px; color: var(--fg-on-ink-2); }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer-wa:hover { color: var(--paper); }

/* ---------- Quote modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28,10,44,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
  animation: vxfade var(--dur) var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: vxpop var(--dur-slow) var(--ease);
}
.modal-head {
  background: var(--ink);
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 1;
}
.modal-close {
  background: rgba(255,255,255,.08); border: 0; border-radius: 999px;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,.16); }
.modal-form { padding: 26px; }
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; color: var(--ink); margin: 10px 0 6px; }
.modal-sub { font-size: 14px; color: var(--fg2); margin: 0 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--fg2); }
.field-wrap { position: relative; display: block; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: 0;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(123,46,158,.25); }
.form-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.form-fine { font-size: 12px; color: var(--fg3); text-align: center; margin: 0; }

.modal-sent { padding: 40px 26px 34px; text-align: center; }
.modal-sent[hidden] { display: none; }
.sent-check { width: 64px; height: 64px; border-radius: 999px; background: var(--green-soft); display: grid; place-items: center; margin: 0 auto 18px; animation: vxpop var(--dur-slow) var(--ease); }
.sent-title { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.sent-p { font-size: 15px; color: var(--fg2); margin: 0 auto 24px; max-width: 360px; }
.sent-back { margin-top: 14px; background: none; border: 0; color: var(--fg3); font-size: 14px; cursor: pointer; }
.sent-back:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE — mobile / tablet (<= 960px)
   ============================================================ */
@media (max-width: 960px) {
  .header-inner { padding: 0 20px; height: 64px; }
  .nav-desktop { display: none; }
  .menu-btn { display: grid; }

  .hero { padding: 32px 20px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-sticker { right: 6px; }

  .coverage { padding: 16px 20px 44px; }
  .offerings { padding: 28px 20px 56px; }
  .offerings-grid { grid-template-columns: 1fr; }

  .specialist-inner { padding: 44px 20px; }
  .team-grid { grid-template-columns: 1fr 1fr; }

  .cta-inner { padding: 44px 20px; }
  .cta-inner .btn { width: 100%; }
  .footer-inner { padding: 28px 20px; }

  .form-grid { grid-template-columns: 1fr; }
  .modal-form { padding: 20px; }
  .modal { max-height: 88vh; }
}

@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr; }
}
