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

:root {
  --bg: #121212;
  --surface: #1E1E1E;
  --text: #E0E0E0;
  --muted: #757575;
  --primary: #FF5252;
  --secondary: #424242;
  --accent: #FFAB40;
  --border: rgba(255, 82, 82, 0.15);
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

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

.disclosure {
  background: #1a1a1a;
  border-top: 3px solid var(--primary);
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

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

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

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-badges a {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-badge {
  display: block;
  opacity: 0.85;
}

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

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  list-style: none;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  background: var(--bg);
  padding: 48px 24px 64px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  font-style: italic;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-hero p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
}

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

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  margin: 32px 0 12px;
  text-transform: uppercase;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

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

.page-content ul {
  margin: 0 0 16px 24px;
  color: var(--text);
}

.page-content li {
  margin-bottom: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.2);
}

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

.form-error {
  display: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.form-group input[type="email"]:invalid:not(:placeholder-shown):not(:focus) ~ .form-error {
  display: block;
}

.btn-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #e04545;
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.form-success h2 {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--text);
}

.form-wrapper:has(#form-success:target) .contact-form {
  display: none;
}

.form-wrapper:has(#form-success:target) .form-success {
  display: block;
}

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  font-style: italic;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.btn-home {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-home:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .nav-links a {
    font-size: 16px;
    padding: 12px 28px;
  }

  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (min-width: 901px) {
  .nav-toggle-label {
    display: none !important;
  }
}
