/* ============================================================
   Nordic Legal Media – Nordic Emerald Quartz & Gold Design System
   High-contrast legal & architectural editorial standard
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg-base: #030712;
  --surface: rgba(15, 23, 42, 0.85);
  --surface-solid: #0f172a;
  --emerald: #10B981;
  --emerald-dim: #059669;
  --gold: #FBBF24;
  --gold-dim: #D97706;
  --teal: #14B8A6;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(148, 163, 184, 0.15);
  --border-emerald: rgba(16, 185, 129, 0.35);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glass: blur(16px);
  --font-display: 'Cinzel', 'Syne', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background subtle gradient mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(16, 185, 129, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(251, 191, 36, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(20, 184, 166, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ========== TOP DISCLOSURE BAR ========== */
.disclosure-bar {
  background: linear-gradient(90deg, #0c1222, #0f172a);
  border-bottom: 1px solid var(--border-emerald);
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.disclosure-bar strong { color: var(--gold); font-weight: 600; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--emerald); }

.nav-main {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav-main a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: flex;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--emerald);
  color: #030712;
}
.lang-btn:hover:not(.active) { color: var(--text-primary); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 4.5rem 1.25rem 3.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: brightness(0.55) saturate(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,7,18,0.4) 0%, rgba(3,7,18,0.85) 70%, var(--bg-base) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--border-emerald);
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.hero h1 .accent { color: var(--emerald); }
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dim));
  color: #030712;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.4);
  color: #030712;
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* ========== SECTIONS ========== */
.section {
  padding: 3.5rem 1.25rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover {
  border-color: var(--border-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,7,18,0.7), transparent);
}
.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-link:hover { color: var(--gold); }

/* Content / Editorial blocks */
.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-bottom: 1.75rem;
}
.content-block h2,
.content-block h3 {
  font-family: var(--font-display);
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}
.content-block h2 { font-size: 1.45rem; }
.content-block h3 { font-size: 1.15rem; color: var(--emerald); }
.content-block p,
.content-block li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}
.content-block ul,
.content-block ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}
.content-block li { margin-bottom: 0.4rem; }
.content-block strong { color: var(--text-primary); }
.content-block .highlight {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: var(--text-secondary);
}

/* Info callout */
.callout {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.callout-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--emerald);
  color: #030712;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.callout p { margin: 0; font-size: 0.92rem; color: var(--text-secondary); }

/* Table styles */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  font-weight: 600;
  white-space: nowrap;
}
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* Contact form */
.form-grid {
  display: grid;
  gap: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 2rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
}
.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}
.footer-col a:hover { color: var(--emerald); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cookie banner */
#nlm-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-emerald);
  padding: 1.25rem;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  transition: opacity 0.35s, transform 0.35s;
}
#nlm-cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}
.cookie-text { flex: 1; min-width: 260px; }
.cookie-text h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.cookie-text p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.cookie-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.toggle-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.toggle-item input { accent-color: var(--emerald); }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.btn-cookie {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reject {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-reject:hover { border-color: var(--text-muted); color: var(--text-primary); }
.btn-save {
  background: var(--surface-solid);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}
.btn-save:hover { background: rgba(16,185,129,0.15); }
.btn-accept {
  background: var(--emerald);
  color: #030712;
}
.btn-accept:hover { background: var(--emerald-dim); }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }
.mt-2 { margin-top: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-main { display: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .content-block { padding: 1.4rem 1.2rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .btn-cookie { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; }
  .logo { font-size: 1rem; }
}
