:root {
  --bg: #FAF3E0;
  --surface: #FFF7ED;
  --text: #3F2E1C;
  --muted: #7C6A58;
  --primary: #C2410C;
  --secondary: #CA8A04;
  --accent: #65A30D;
  --border: rgba(63, 46, 28, 0.12);
  --lab-blue: #1E3A5F;
  --lab-blue-light: #E8F0F8;
  --lab-white: #FDFCFA;
  --nav-bg: #1A1208;
  --nav-text: #FAF3E0;
  --clean: sterile;
  --sterile: precise;
  --precise: analytical;
  --analytical: clean;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, transparent 50%),
    linear-gradient(225deg, rgba(101, 163, 13, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(202, 138, 4, 0.06) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  white-space: normal;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.disclosure-banner {
  background: var(--lab-blue-light);
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--lab-blue);
  position: relative;
  z-index: 100;
}

.disclosure-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.disclosure-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.navbar {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 54px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.navbar-links li {
  display: flex;
  align-items: center;
}

.navbar-links a {
  color: var(--nav-text);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.navbar-links a:hover {
  background: rgba(250, 243, 224, 0.1);
  text-decoration: none;
}

.nav-divider {
  color: rgba(250, 243, 224, 0.35);
  font-size: 11px;
  padding: 0 2px;
  user-select: none;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-text);
  transition: transform 0.2s, opacity 0.2s;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 54px;
  right: 0;
  width: 280px;
  height: calc(100vh - 54px);
  background: var(--nav-bg);
  z-index: 199;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(250, 243, 224, 0.08);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer ul {
  list-style: none;
  padding: 16px 0;
}

.mobile-drawer a {
  display: block;
  color: var(--nav-text);
  padding: 12px 24px;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 243, 224, 0.06);
}

.mobile-drawer a:hover {
  background: rgba(250, 243, 224, 0.08);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 54px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 198;
}

.drawer-overlay.visible {
  display: block;
}

.site-footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 48px 0 32px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(250, 243, 224, 0.65);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-content: start;
}

.footer-links a {
  color: rgba(250, 243, 224, 0.85);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--nav-text);
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(250, 243, 224, 0.1);
  border-bottom: 1px solid rgba(250, 243, 224, 0.1);
}

.footer-badges a,
.footer-badges span {
  display: block;
}

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.footer-badges a:hover img {
  opacity: 1;
}

.footer-nz-disclosure {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(250, 243, 224, 0.5);
}

.footer-nz-disclosure a {
  color: rgba(250, 243, 224, 0.65);
}

.footer-copy {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(250, 243, 224, 0.4);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 8, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(63, 46, 28, 0.15);
}

.modal-box h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #9A3412;
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 16px 24px;
  z-index: 900;
  border-top: 1px solid rgba(250, 243, 224, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 13px;
  flex: 1;
  min-width: 200px;
  color: rgba(250, 243, 224, 0.85);
}

.cookie-inner a {
  color: var(--secondary);
}

.page-hero-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.page-hero-strip h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-hero-strip .breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-content h1 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 800;
}

.legal-content h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  font-weight: 700;
  color: var(--lab-blue);
}

.legal-content p {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text);
}

.legal-content ul {
  margin: 0 0 14px 20px;
  font-size: 15px;
}

.legal-content li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  background: var(--lab-white);
  color: var(--text);
  margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lab-blue);
  box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: var(--primary);
  font-size: 12px;
  margin: -12px 0 12px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: 24px;
  background: rgba(101, 163, 13, 0.08);
  border: 1px solid rgba(101, 163, 13, 0.25);
  border-radius: 4px;
  color: var(--text);
  font-size: 15px;
  display: none;
}

.form-success.visible {
  display: block;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
