/* ============================================================
   LEXLI DIRECT — Global Stylesheet v3.1
   Global AI Digital Synergy LLC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: #1A1A1A;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --onyx:    #1A1A1A;
  --gold:    #C9A96E;
  --gold-d:  #8A6B3A;
  --gold-l:  #E8D5B0;
  --mist:    #F5F3EF;
  --soft:    #EAE7E0;
  --muted:   #6B6B6B;
  --green:   #3B6D11;
  --green-bg:#EAF3DE;
  --radius:  12px;
  --max-w:   1140px;
  --nav-h:   68px;
  --transition: 0.2s ease;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', serif; }
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; }
.eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--onyx); }
.section-mist { background: var(--mist); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--soft);
  display: flex;
  align-items: center;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--onyx);
}
.nav-logo span { color: var(--gold-d); }
.nav-logo sup {
  font-family: 'Jost', sans-serif;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  vertical-align: super;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--onyx); }
.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  background: var(--onyx);
  color: var(--gold);
  transition: opacity var(--transition);
}
.nav-cta:hover { opacity: 0.85; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--onyx);
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 0.5px solid var(--soft);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 999;
}
.nav-mobile a {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav-mobile.open { display: flex; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-primary { background: var(--onyx); color: var(--gold); }
.btn-gold    { background: var(--gold); color: var(--onyx); }
.btn-ghost   { border: 0.5px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.btn-outline { border: 0.5px solid var(--onyx); color: var(--onyx); }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 0.5px solid var(--soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--gold-l); transform: translateY(-2px); }
.card-dark {
  background: var(--onyx);
  border: 0.5px solid #2D2D2D;
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card-mist {
  background: var(--mist);
  border: 0.5px solid var(--soft);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* ── HERO (shared) ────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
}
.hero-dark {
  background: var(--onyx);
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-dark::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 280px; height: 280px;
  border: 1px solid rgba(201,169,110,0.07);
  border-radius: 50%;
  pointer-events: none;
}

/* ── DIVIDER ──────────────────────────────────────────────── */
.gold-bar {
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0;
}

/* ── BADGES / PILLS ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
}
.badge-gold  { background: rgba(201,169,110,0.12); color: var(--gold); border: 0.5px solid rgba(201,169,110,0.25); }
.badge-green { background: var(--green-bg); color: var(--green); border: 0.5px solid #C0DD97; }
.badge-mist  { background: var(--mist); color: var(--muted); border: 0.5px solid var(--soft); }

/* ── FORMS ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--onyx);
  margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0.5px solid var(--soft);
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--onyx);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FAQ ACCORDION ────────────────────────────────────────── */
.faq-item {
  border-bottom: 0.5px solid var(--soft);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 0.5px solid var(--soft); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--onyx);
  gap: 1rem;
}
.faq-q svg { flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 0.75rem; }

/* ── STAT BLOCK ───────────────────────────────────────────── */
.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--onyx);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--onyx);
  padding: 3.5rem 0 2rem;
  color: rgba(255,255,255,0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--gold); }
.footer-desc {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.4);
  max-width: 240px;
}
.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.25); }
.footer-disclaimer { font-size: 0.68rem; color: rgba(255,255,255,0.2); max-width: 500px; text-align: right; line-height: 1.6; }

/* ── PORTAL SHARED ────────────────────────────────────────── */
.portal-wrap {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.portal-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #fff;
  border-right: 0.5px solid var(--soft);
  padding: 1.5rem 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.portal-main {
  flex: 1;
  padding: 2rem;
  background: var(--mist);
}
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.25rem;
  margin-bottom: 0.4rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.sidebar-link:hover { background: var(--mist); color: var(--onyx); }
.sidebar-link.active {
  color: var(--onyx);
  background: var(--mist);
  font-weight: 500;
  border-left: 2px solid var(--gold);
  padding-left: calc(1.25rem - 2px);
}
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.portal-card {
  background: #fff;
  border: 0.5px solid var(--soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.portal-card-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--onyx);
  margin-bottom: 1rem;
}
.portal-metric {
  background: var(--mist);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.portal-metric-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.3rem; }
.portal-metric-val { font-size: 1.4rem; font-weight: 500; color: var(--onyx); line-height: 1; }
.portal-metric-sub { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; }
.portal-metric-sub.up { color: var(--green); }
.portal-metric-sub.warn { color: #B45309; }
.portal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 1.25rem;
}
.portal-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.portal-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ── TABLES ───────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  border-bottom: 0.5px solid var(--soft);
  text-align: left;
}
.data-table td {
  padding: 0.75rem;
  border-bottom: 0.5px solid var(--soft);
  color: var(--onyx);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.status-active   { background: var(--green-bg); color: var(--green); }
.status-pending  { background: #FEF3C7; color: #92400E; }
.status-inactive { background: var(--mist); color: var(--muted); }
.status-paid     { background: var(--mist); color: var(--muted); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .portal-wrap { flex-direction: column; }
  .portal-sidebar { width: 100%; position: static; height: auto; border-right: none; border-bottom: 0.5px solid var(--soft); }
  .portal-metrics-grid { grid-template-columns: 1fr 1fr; }
  .portal-grid-2, .portal-grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .portal-metrics-grid { grid-template-columns: 1fr; }
}
