/* ============================================================
   UNYKORN LAW — Institutional Legal Platform
   Color Palette: Midnight Navy, Gold, Parchment
   Typography: Playfair Display + Cormorant Garamond
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=JetBrains+Mono:wght@300;400&display=swap');

:root {
  --midnight: #080b16;
  --navy: #0e1225;
  --navy-light: #161b33;
  --navy-card: #111628;
  --gold: #c9a84c;
  --gold-light: #d4b868;
  --gold-dark: #8b7d3c;
  --gold-muted: #a89350;
  --parchment: #f5f0e8;
  --cream: #e8e2d4;
  --stone: #6b6a5f;
  --text: #d8d2c4;
  --text-muted: #8a8578;
  --danger: #c44;
  --success: #4a8;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--body); }
input, textarea, select { font-family: var(--body); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(8, 11, 22, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-brand .seal {
  width: 42px;
  height: 42px;
}
.nav-brand .wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-brand .wordmark span {
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  font-family: var(--serif) !important;
  font-size: 0.8rem !important;
  background: var(--gold) !important;
  color: var(--midnight) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  padding: 0.25rem;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--midnight);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.04) 0%, transparent 70%),
    linear-gradient(180deg, var(--midnight) 0%, var(--navy) 100%);
  z-index: -1;
}
.hero-seal {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.hero h1 .gold { color: var(--gold); }
.hero .subtitle {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold-muted);
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
}
.hero .tagline {
  max-width: 700px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0.5;
}
.hero-stats {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---- Sections ---- */
.section {
  padding: 6rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-dark {
  background: var(--navy);
  max-width: none;
  padding: 6rem 2rem;
}
.section-dark .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.section-head .overline {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 1rem;
}
.section-head p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}
.card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 1.25rem;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.card .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  border-radius: 2px;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ---- Agent Cards ---- */
.agent-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.3s;
}
.agent-card:hover { border-color: rgba(201,168,76,0.25); }
.agent-id {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.06);
  padding: 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  min-width: 72px;
  text-align: center;
}
.agent-info h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--parchment);
  margin-bottom: 0.4rem;
}
.agent-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.agent-info .agent-meta {
  margin-top: 0.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.agent-info .agent-meta span {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.1);
  color: var(--gold-muted);
  border-radius: 2px;
}

/* ---- Document List ---- */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s;
}
.doc-item:hover {
  border-color: rgba(201,168,76,0.2);
  background: var(--navy-light);
}
.doc-icon {
  font-size: 1.5rem;
  color: var(--gold);
  min-width: 36px;
  text-align: center;
}
.doc-info { flex: 1; }
.doc-info h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--parchment);
  margin-bottom: 0.2rem;
}
.doc-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.doc-dl {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  transition: background 0.2s;
  white-space: nowrap;
}
.doc-dl:hover {
  background: rgba(201,168,76,0.1);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: rgba(201,168,76,0.2);
}
.timeline-event {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1rem;
}
.timeline-event::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--midnight);
}
.timeline-event .date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}
.timeline-event h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--parchment);
  margin-bottom: 0.3rem;
}
.timeline-event p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 2px;
  transition: all 0.3s;
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--midnight);
}
.btn-gold:hover { background: var(--gold-light); color: var(--midnight); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
}
.btn-outline:hover { background: rgba(201,168,76,0.1); color: var(--gold-light); }
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 2px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.4rem;
  accent-color: var(--gold);
}
.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--body);
  font-weight: 400;
}

/* ---- Disclosure Box ---- */
.disclosure-box {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.disclosure-box h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.disclosure-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.08);
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.8;
}
.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.78rem !important;
  color: var(--stone) !important;
  line-height: 1.7 !important;
  text-align: center;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(201,168,76,0.05);
  margin-top: 1.5rem;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---- Newsletter Banner ---- */
.newsletter-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}
.newsletter-banner h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}
.newsletter-banner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--midnight);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  color: var(--text);
  font-size: 1rem;
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
}
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ---- Page Header (non-hero pages) ---- */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--navy) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.page-header .overline {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 1rem;
}
.page-header p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---- Two Column ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Counters (animated) ---- */
.counter { font-variant-numeric: tabular-nums; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ---- Print ---- */
@media print {
  .nav, .footer, .btn, .newsletter-banner { display: none; }
  body { background: white; color: #111; }
  .hero { min-height: auto; padding: 2rem; }
  .section, .section-dark { padding: 1rem; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
}
