:root {
  --bg-black: #000000;
  --bg-hero-fallback: #161616;
  --bg-input: #1E2024;
  --bg-input-focus: #25282E;
  --bg-card: #121316;
  --text-white: #FFFFFF;
  --text-muted: #969696;
  --text-subtle: #919191;
  --text-input-label: #B4B8C0;
  --border-input: rgba(255, 255, 255, 0.45);
  --border-divider: #262626;
  --btn-bg: #FFFFFF;
  --btn-text: #000000;
  --btn-hover: #D4D4D4;
  --cookie-bg: #5E6268;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 1536px) {
  body {
    font-size: 18px;
  }
}

a {
  color: inherit;
}

/* Hero & Header */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background-color: var(--bg-hero-fallback);
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.35)),
    url("/assets/hero-snow.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 65vh;
    max-height: 760px;
  }
}

.site-header {
  padding: 28px 24px 0;
  text-align: center;
}

.brand-link {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .brand-link {
    font-size: 24px;
  }
}

@media (min-width: 1280px) {
  .brand-link {
    font-size: 26px;
  }
}

@media (min-width: 1536px) {
  .brand-link {
    font-size: 29px;
  }
}

.brand-link:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 6px;
  border-radius: 2px;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 56px;
  text-align: center;
}

.hero-tagline {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: var(--text-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 48px;
  }
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-black);
  padding: 40px 24px;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 56px 24px;
  }
}

.section-title {
  margin: 0;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 38px;
  }
}

@media (min-width: 1280px) {
  .section-title {
    font-size: 44px;
  }
}

@media (min-width: 1536px) {
  .section-title {
    font-size: 48px;
  }
}

.section-divider {
  width: 50px;
  border: none;
  border-top: 2px solid var(--border-divider);
  margin: 18px auto 32px;
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-heading {
  margin: 0 0 24px;
  text-align: center;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-white);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field {
  position: relative;
  margin-bottom: 20px;
}

.field-input,
.field-textarea {
  display: block;
  width: 100%;
  background-color: var(--bg-input);
  color: var(--text-white);
  border: 1px solid var(--border-input);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input {
  height: 56px;
  padding: 22px 16px 6px;
}

.field-label {
  position: absolute;
  left: 16px;
  top: 17px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-input-label);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label {
  top: 8px;
  font-size: 12px;
  color: #C8CDD5;
}

.field-textarea {
  padding: 16px;
  min-height: 160px;
  resize: vertical;
  line-height: 1.5;
}

.field-textarea::placeholder {
  color: var(--text-input-label);
  opacity: 1;
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  background-color: var(--bg-input-focus);
  border-color: var(--text-white);
  box-shadow: 0 0 0 1px var(--text-white);
}

.field-input.is-invalid {
  border-color: #FCA5A5;
  box-shadow: 0 0 0 1px #FCA5A5;
}

.checkbox-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0 28px;
  color: var(--text-input-label);
  font-size: 15px;
  line-height: 1.4;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 2px 0 0;
  background-color: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.checkbox-row input[type="checkbox"]:hover {
  border-color: var(--text-white);
}

.checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 2px;
}

.checkbox-row input[type="checkbox"]:checked {
  background-color: var(--text-white);
  border-color: var(--text-white);
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-row label {
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  min-height: 54px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--btn-hover);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 3px;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.form-status[hidden] {
  display: none;
}

.form-status--success {
  background-color: #132A1C;
  color: #86EFAC;
  border: 1px solid #22543D;
}

.form-status--error {
  background-color: #2D1417;
  color: #FCA5A5;
  border: 1px solid #7F1D1D;
}

.form-legal {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
}

.form-legal a {
  color: var(--text-input-label);
  text-decoration: underline;
}

.form-legal a:hover {
  color: var(--text-white);
}

/* Footer */
.site-footer {
  background-color: var(--bg-black);
  padding: 40px 24px 56px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

@media (min-width: 1536px) {
  .site-footer {
    font-size: 16px;
  }
}

.site-footer p {
  margin: 0;
}

.footer-sep {
  margin: 0 8px;
}

.site-footer a {
  color: var(--text-input-label);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer a:hover {
  color: var(--text-white);
  border-bottom-color: var(--text-white);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 400px;
  width: calc(100% - 48px);
  z-index: 1000;
  background-color: var(--cookie-bg);
  color: var(--text-white);
  padding: 24px;
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-title {
  margin: 0 0 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-white);
}

.cookie-body {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-white);
}

.cookie-body a {
  color: var(--text-white);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-body a:hover {
  color: #E5E7EB;
}

.cookie-accept-btn {
  display: block;
  width: 100%;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.071em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cookie-accept-btn:hover {
  background-color: #E5E5E5;
}

.cookie-accept-btn:focus-visible {
  outline: 2px solid var(--text-white);
  outline-offset: 3px;
}

/* Privacy Policy & 404 Pages */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-black);
  color: #D8DCE2;
}

.legal-header {
  background-color: #0A0B0D;
  border-bottom: 1px solid #1F2126;
  padding: 18px 24px;
}

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

.legal-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-white);
  text-decoration: none;
}

.legal-back-link {
  color: var(--text-input-label);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-back-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.legal-main {
  flex: 1;
  padding: 0 16px;
}

.legal-container {
  max-width: 820px;
  margin: 48px auto;
  padding: 40px 32px;
  background-color: var(--bg-card);
  border: 1px solid #24262B;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .legal-container {
    margin: 24px auto;
    padding: 28px 20px;
  }
}

.legal-container h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: var(--text-white);
}

.legal-updated {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-container h2 {
  margin: 28px 0 10px;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text-white);
}

.legal-container p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #D8DCE2;
}

.legal-container ul {
  margin: 0 0 16px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.75;
  color: #D8DCE2;
}

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

.legal-container a {
  color: var(--text-white);
  text-decoration: underline;
}

.legal-container a:hover {
  color: var(--text-input-label);
}

.not-found-container {
  text-align: center;
  padding: 64px 32px;
}

.not-found-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
