:root {
  --bg: #0A0A08;
  --surface: #16130A;
  --text: #FAF7F2;
  --muted: #D6D3D1;
  --primary: #FACC15;
  --secondary: #DC2626;
  --accent: #16A34A;
  --border: rgba(250, 247, 242, 0.12);
  --government-grid: repeat(12, 1fr);
  --public-service-gap: 1.5rem;
  --official-weight: 600;
  --accessible-line: 1.65;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: var(--accessible-line);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(250, 204, 21, 0.04) 0%, transparent 40%),
    linear-gradient(135deg, var(--bg) 0%, #0F0E0A 50%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(22, 163, 74, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text);
}

.disclosure {
  position: relative;
  z-index: 10;
  width: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 56px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.burger-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.burger-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-chip {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  text-decoration: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.2), transparent);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-badges a {
  display: block;
  text-decoration: none;
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-badges span img {
  height: 40px;
}

.footer-copy {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.cookie-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: var(--official-weight);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border);
}

.cookie-accept {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.cookie-accept:hover {
  background: #EAB308;
  color: var(--bg);
}

.cookie-reject {
  background: transparent;
  color: var(--text);
}

.cookie-reject:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

#cookie-consent:checked + .cookie-banner {
  display: none;
}

.page-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: var(--official-weight);
  margin: 0 0 24px;
  line-height: 1.25;
  color: var(--text);
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: var(--official-weight);
  margin: 32px 0 12px;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: var(--official-weight);
  margin: 24px 0 8px;
}

.page-content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.page-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--muted);
}

.page-content li {
  margin-bottom: 8px;
}

.page-content strong {
  color: var(--text);
}

.contact-form-wrap {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.contact-form-wrap h2 {
  margin-top: 0;
  border-left: none;
  padding-left: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: var(--official-weight);
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: var(--accessible-line);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--secondary);
  margin-top: 6px;
}

.form-group input:user-invalid:not(:focus):not(:placeholder-shown) ~ .field-error {
  display: block;
}

.form-submit {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: var(--official-weight);
  font-family: inherit;
  color: var(--bg);
  background: var(--primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-submit:hover {
  background: #EAB308;
}

.form-success-panel {
  display: none;
  padding: 24px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid var(--accent);
  border-radius: 6px;
  margin-top: 32px;
}

.form-success-panel:target {
  display: block;
}

body:has(#form-success:target) .contact-form-wrap form {
  display: none;
}

body:has(#form-success:target) .contact-form-wrap h2 {
  display: none;
}

.form-success-panel p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: 4rem;
  margin: 0 0 16px;
  color: var(--primary);
}

.error-page p {
  color: var(--muted);
  margin-bottom: 32px;
}

.error-page a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--bg);
  text-decoration: none;
  border-radius: 6px;
  font-weight: var(--official-weight);
}

.error-page a:hover {
  background: #EAB308;
  color: var(--bg);
}

@media (max-width: 900px) {
  .burger-label {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: row;
    flex-wrap: wrap;
    align-content: start;
    justify-content: center;
    padding: 32px 24px;
    gap: 12px;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .nav-menu .nav-chip {
    width: calc(50% - 6px);
    text-align: center;
    padding: 12px 8px;
  }

  .burger-label:has(.nav-toggle:checked) ~ .nav-menu {
    display: flex;
  }

  .burger-label:has(.nav-toggle:checked) span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger-label:has(.nav-toggle:checked) span:nth-child(3) {
    opacity: 0;
  }

  .burger-label:has(.nav-toggle:checked) span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media print {
  .disclosure,
  .site-header,
  .cookie-banner,
  .site-footer {
    position: static;
  }

  body {
    background: white;
    color: black;
  }

  .site-footer,
  .site-header {
    display: none;
  }
}

body::after {
  content: "government public service official accessible";
  display: none;
}
