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

:root {
  --navy:        #0A1628;
  --navy-mid:    #1B3A6B;
  --navy-light:  #2D5BA3;
  --gold:        #C8922A;
  --gold-light:  #E8B84B;
  --gold-pale:   #FBF0D9;
  --white:       #FAFAFA;
  --off-white:   #F4F6F9;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --gray-800:    #1E293B;
  --success:     #059669;
  --warning:     #D97706;
  --danger:      #DC2626;
  --info:        #0284C7;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --sh-sm:  0 1px 3px rgba(10,22,40,.08), 0 1px 2px rgba(10,22,40,.04);
  --sh-md:  0 4px 16px rgba(10,22,40,.10), 0 2px 6px rgba(10,22,40,.06);
  --sh-lg:  0 10px 32px rgba(10,22,40,.14), 0 4px 12px rgba(10,22,40,.08);
  --sh-xl:  0 20px 60px rgba(10,22,40,.18);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;

  --ease: 0.25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--ease), box-shadow var(--ease);
}
.navbar.transparent { background: transparent; }
.navbar.solid, .navbar.scrolled {
  background: rgba(10,22,40,.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--navy); letter-spacing: -.5px;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-primary {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: #fff; letter-spacing: .4px;
}
.nav-logo-secondary {
  font-size: 9.5px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold-light);
}

.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-links a {
  padding: 8px 13px; font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.8); text-decoration: none;
  border-radius: var(--r-sm); transition: all var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--gold-light); }

.nav-cta { margin-left: .5rem; }

.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; color: #fff; font-size: 22px; line-height: 1;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; border-radius: var(--r-sm);
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--ease); letter-spacing: .3px; white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(200,146,42,.45); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--navy-mid); border: 1.5px solid var(--gray-200); }
.btn-ghost:hover { border-color: var(--navy-mid); background: var(--gray-100); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 80px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px,4vw,44px); font-weight: 600;
  color: var(--navy); line-height: 1.2;
}
.section-sub {
  font-size: 15px; color: var(--gray-600); max-width: 580px; line-height: 1.75;
}

/* ── PAGE HEADER (non-hero pages) ───────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 118px 0 56px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(200,146,42,.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg,transparent,rgba(200,146,42,.4),transparent);
}
.page-header-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px;
}
.page-header-title {
  font-family: var(--font-display); font-size: clamp(30px,5vw,52px);
  font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 14px;
}
.page-header-sub {
  font-size: 15.5px; color: rgba(255,255,255,.7);
  max-width: 600px; line-height: 1.75;
}

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); border: 1px solid var(--gray-200);
  overflow: hidden; transition: all var(--ease);
}
.card:hover { box-shadow: var(--sh-md); }

/* ── BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2px;
}
.badge-active      { background: #D1FAE5; color: #065F46; }
.badge-suspended   { background: #FEE2E2; color: #991B1B; }
.badge-flagged     { background: #FEF3C7; color: #92400E; }
.badge-submitted   { background: #DBEAFE; color: #1E40AF; }
.badge-read        { background: #EDE9FE; color: #5B21B6; }
.badge-in-progress { background: #FEF9C3; color: #854D0E; }
.badge-resolved    { background: #D1FAE5; color: #065F46; }
.badge-abandoned   { background: #F1F5F9; color: #475569; }
.badge-rejected    { background: #FEE2E2; color: #991B1B; }

/* ── FORM ELEMENTS ───────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--gray-800); margin-bottom: 7px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 14px; color: var(--gray-800);
  background: #fff; transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(27,58,107,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
.form-input.error, .form-select.error { border-color: var(--danger); }

.check-group {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(195px,1fr));
  gap: 9px; margin-top: 8px;
}
.check-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md); cursor: pointer; font-size: 13.5px;
  transition: all var(--ease); user-select: none;
}
.check-item:hover { border-color: var(--navy-mid); background: var(--gray-100); }
.check-item input { accent-color: var(--navy-mid); width: 15px; height: 15px; flex-shrink: 0; }

.radio-row {
  display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px;
}
.radio-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1.5px solid var(--gray-200);
  border-radius: 30px; cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: all var(--ease); user-select: none;
}
.radio-pill:hover { border-color: var(--navy-mid); }
.radio-pill input[type=radio] { accent-color: var(--navy-mid); }
.radio-pill:has(input:checked) {
  border-color: var(--navy-mid); background: #EFF6FF; color: var(--navy);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,.65);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 14px;
}
.footer-desc { font-size: 13.5px; line-height: 1.75; max-width: 290px; }
.footer-col-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px; color: rgba(255,255,255,.6);
  text-decoration: none; transition: color var(--ease);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,.38);
}

/* ── UTILITIES ───────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-600); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.fw-600 { font-weight: 600; }
.w-100 { width: 100%; }

/* ── ALERTS ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 14px; margin-bottom: 16px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.alert-danger  { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

/* ── SPINNER ─────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TABLE ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; }
table th {
  background: var(--gray-100); padding: 11px 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--gray-600); text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
table td {
  padding: 13px 16px; font-size: 13.5px;
  border-bottom: 1px solid var(--gray-200); vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tbody tr:hover { background: var(--gray-100); }

/* ── GOLD DIVIDER ────────────────────────────────────── */
.gold-divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; margin: 16px 0 24px;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .mobile-menu-btn { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--navy); padding: 16px; gap: 4px; z-index: 998;
  }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .section { padding: 60px 0; }
}
