/* =====================================================================
   Visatrex design system
   Royal, elite, dark, editorial. Palette per brand specification.
   ===================================================================== */
:root {
  --navy: #071426;
  --plum: #160D2D;
  --violet: #4C1D95;
  --amethyst: #7C3AED;
  --gold: #D4AF37;
  --ivory: #F7F3EA;
  --white: #FCFBF8;
  --teal: #0E9A9A;
  --text-on-dark: #D7D3E0;
  --text-dark: #16131D;
  --text-muted: #6F6878;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 46px rgba(7, 20, 38, 0.16);
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amethyst);
  outline-offset: 2px;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 10px 18px; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 14px; }
h3 { font-size: 1.35rem; margin: 0 0 10px; }
.eyebrow {
  display: inline-block; letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.74rem; font-weight: 700; color: var(--gold); margin-bottom: 14px;
}
.section { padding: 84px 0; }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--plum) 100%); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-ivory { background: var(--ivory); }
.section-intro { max-width: 720px; }

/* Announcement bar and header */
.announce-bar {
  background: var(--plum); color: var(--text-on-dark); text-align: center;
  font-size: 0.8rem; letter-spacing: 0.06em; padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(7, 20, 38, 0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.brand img { display: block; background: var(--white); border-radius: 10px; padding: 4px 10px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 9px 11px; color: var(--text-on-dark); text-decoration: none;
  font-size: 0.86rem; font-weight: 600; border-radius: 8px;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--white); background: rgba(124, 58, 237, 0.28); }
.main-nav { display: flex; align-items: center; gap: 16px; }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--gold); margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; border: 2px solid transparent; cursor: pointer;
  font-family: var(--font-body); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 20, 38, 0.22); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-violet { background: var(--amethyst); color: var(--white); }
.btn-outline-violet { background: transparent; color: var(--amethyst); border-color: var(--amethyst); }
.section-dark .btn-outline-violet { color: var(--text-on-dark); border-color: var(--amethyst); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(252, 251, 248, 0.6); }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(900px 460px at -10% 110%, rgba(14, 154, 154, 0.22), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--plum) 100%);
  color: var(--text-on-dark);
  padding: 110px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(closest-side at 70% 40%, black, transparent);
}
.hero h1 { color: var(--white); max-width: 760px; }
.hero p.lead { max-width: 640px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.trust-line { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; font-size: 0.92rem; }

/* Cards and grids */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid rgba(7, 20, 38, 0.08); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 6px 18px rgba(7, 20, 38, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--violet); }
.card-accent { border-top: 3px solid var(--gold); }

/* Statistics */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 14px; border: 1px solid rgba(212, 175, 55, 0.35); border-radius: var(--radius); background: rgba(252, 251, 248, 0.03); }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.9rem; }
.stats-note { font-size: 0.8rem; opacity: 0.8; margin-top: 20px; }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 26px 22px 22px; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(7,20,38,0.08); }
.step h3 { color: var(--navy); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); font-weight: 700; display: block; margin-bottom: 6px;
}

/* Finder */
.finder-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.finder-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.82rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid rgba(7, 20, 38, 0.18); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--text-dark);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amethyst); }
.finder-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.results-meta { font-size: 0.88rem; color: var(--text-muted); margin: 18px 0 10px; }
.uni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.uni-card { display: flex; flex-direction: column; gap: 10px; }
.uni-initials {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--amethyst)); color: var(--white);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
}
.uni-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--navy); margin: 0; }
.uni-meta { font-size: 0.84rem; color: var(--text-muted); }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--ivory); color: var(--violet); border: 1px solid rgba(76, 29, 149, 0.25);
}
.badge-partner { background: rgba(212, 175, 55, 0.16); color: #8a6d1a; border-color: rgba(212, 175, 55, 0.5); }
.uni-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.uni-actions .btn { padding: 8px 16px; font-size: 0.8rem; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination button {
  border: 1.5px solid rgba(7,20,38,0.2); background: var(--white); border-radius: 8px; padding: 8px 14px;
  cursor: pointer; font-weight: 700; font-family: var(--font-body);
}
.pagination button[aria-current="page"] { background: var(--violet); color: var(--white); border-color: var(--violet); }
.empty-state, .error-state, .loading-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-full { grid-column: 1 / -1; }
.consent label { display: block; font-weight: 500; font-size: 0.86rem; margin-bottom: 8px; }
.form-status { font-weight: 700; min-height: 1.4em; }
.form-status.is-error { color: #a02020; }
.form-status.is-success { color: #1d7a3d; }
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 20, 38, 0.72); }
.modal-panel {
  position: relative; background: var(--white); border-radius: 18px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 36px; box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.modal-wide { max-width: 820px; }
.modal-title { margin-top: 0; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.9rem;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.modal-qr { text-align: center; border: 1px dashed rgba(76, 29, 149, 0.35); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.modal-qr h3 { margin-top: 0; }
.qr-caption { font-weight: 700; color: var(--navy); margin: 8px 0 2px; }
.small { font-size: 0.82rem; color: var(--text-muted); }
.notice { background: var(--ivory); border-radius: 10px; padding: 12px 14px; }

/* Tabs and accordions */
.tabs [role="tablist"] { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid rgba(7,20,38,0.1); margin-bottom: 22px; }
.tabs [role="tab"] {
  border: 0; background: none; padding: 10px 16px; font-weight: 700; cursor: pointer; color: var(--text-muted);
  border-bottom: 3px solid transparent; font-family: var(--font-body);
}
.tabs [role="tab"][aria-selected="true"] { color: var(--violet); border-bottom-color: var(--gold); }
.accordion details { border: 1px solid rgba(7,20,38,0.1); border-radius: 10px; margin-bottom: 10px; background: var(--white); }
.accordion summary { padding: 16px 18px; font-weight: 700; cursor: pointer; color: var(--navy); }
.accordion details p { padding: 0 18px 16px; margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--text-on-dark); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.footer-logo { background: var(--white); border-radius: 10px; padding: 6px 10px; }
.footer-heading { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a, .site-footer .link-button { color: var(--text-on-dark); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--white); text-decoration: underline; }
.footer-contact { font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(212, 175, 55, 0.2); margin-top: 42px; padding-top: 20px; font-size: 0.8rem; }
.footer-disclaimer { opacity: 0.75; max-width: 900px; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150; background: #1EBE5D; color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

/* CEO */
.ceo-layout { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: start; }
.ceo-photo { border-radius: 18px; box-shadow: var(--shadow); border: 4px solid var(--white); }
.ceo-title { color: var(--gold); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Tables */
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(7,20,38,0.1); }
table.data th { background: var(--ivory); color: var(--navy); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 34px; }
.breadcrumbs { font-size: 0.82rem; margin-bottom: 16px; }
.breadcrumbs a { color: inherit; opacity: 0.85; }
