:root {
  --jungle-green: #1f3326;
  --jungle-deep: #16241b;
  --cenote-blue: #2e7d8c;
  --limestone: #d4b896;
  --warm-sun: #e8c96a;
  --soft-white: #f5f0e3;
  --sage: #aebfa0;
  --paper: #fffaf0;
  --ink: #17221a;
  --muted: #5b665c;
  --line: rgba(31, 51, 38, 0.16);
  --shadow: 0 22px 70px rgba(22, 36, 27, 0.18);
  color-scheme: light;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--soft-white);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--soft-white);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--warm-sun);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 96px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--warm-sun);
  color: var(--jungle-deep);
  font-weight: 800;
  padding: 10px 14px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 36, 27, 0.92);
  border-bottom: 1px solid rgba(245, 240, 227, 0.16);
  color: var(--soft-white);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1120px, calc(100% - 28px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.brand {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand span {
  color: rgba(245, 240, 227, 0.72);
  font-size: 0.76rem;
  font-weight: 750;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.05;
}

.nav-links {
  display: none;
}

.language-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(245, 240, 227, 0.2);
  border-radius: 8px;
  background: rgba(245, 240, 227, 0.1);
}

.language-button {
  min-width: 42px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(245, 240, 227, 0.78);
  font-weight: 850;
}

.language-button.is-active {
  background: var(--soft-white);
  color: var(--jungle-deep);
}

.hero-section {
  position: relative;
  min-height: calc(100svh - 140px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--soft-white);
  background: var(--jungle-deep);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(22, 36, 27, 0.22) 0%, rgba(22, 36, 27, 0.54) 44%, rgba(22, 36, 27, 0.88) 100%),
    linear-gradient(90deg, rgba(22, 36, 27, 0.88), rgba(22, 36, 27, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 44px 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm-sun);
  font-size: 0.8rem;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  font-size: 2.45rem;
}

h2 {
  font-size: 2rem;
  color: var(--jungle-deep);
}

h3 {
  font-size: 1.25rem;
  color: var(--jungle-deep);
}

.hero-subheadline {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(245, 240, 227, 0.9);
  font-size: 1rem;
  line-height: 1.45;
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--warm-sun);
  color: var(--jungle-deep);
  border-color: rgba(22, 36, 27, 0.14);
}

.button-secondary {
  background: rgba(245, 240, 227, 0.12);
  color: var(--soft-white);
  border-color: rgba(245, 240, 227, 0.42);
}

.trust-line {
  margin: 14px 0 0;
  color: rgba(245, 240, 227, 0.78);
  font-weight: 700;
}

.section {
  padding: 64px 0;
}

.section-light {
  background: var(--soft-white);
}

.section-earth {
  background: #e8ddc7;
}

.section-water {
  background: #d9e7e4;
}

.section-inner {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.section-copy {
  max-width: 660px;
}

.section-copy-wide {
  max-width: 820px;
}

.section-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.survey-layout,
.media-layout,
.certificate-layout {
  display: grid;
  gap: 30px;
}

.survey-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
}

.field-group {
  display: grid;
  gap: 10px;
  margin: 0;
  min-width: 0;
  border: 0;
  padding: 0;
  color: var(--jungle-deep);
  font-weight: 800;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(31, 51, 38, 0.24);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  padding: 13px 14px;
  font-weight: 500;
}

.field-group textarea {
  min-height: 112px;
  resize: vertical;
}

.choice-grid,
.nps-grid {
  display: grid;
  gap: 8px;
}

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

.nps-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-pill,
.nps-choice {
  position: relative;
}

.choice-pill input,
.nps-choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-pill span,
.nps-choice span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid rgba(31, 51, 38, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--jungle-deep);
  padding: 9px 8px;
  font-weight: 800;
  text-align: center;
}

.choice-pill input:checked + span,
.nps-choice input:checked + span {
  background: var(--cenote-blue);
  color: #fff;
  border-color: var(--cenote-blue);
}

.form-submit {
  width: 100%;
}

.survey-message,
.support-status {
  color: var(--jungle-deep);
  font-weight: 750;
}

.survey-message {
  display: block;
  border-left: 4px solid var(--cenote-blue);
  border-radius: 8px;
  background: #eaf5f2;
  padding: 14px;
}

.survey-message[hidden] {
  display: none;
}

.discount-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 18px;
  border: 1px solid rgba(46, 125, 140, 0.22);
  border-radius: 8px;
  background: #edf8f5;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(22, 36, 27, 0.12);
}

.discount-panel[hidden] {
  display: none;
}

.discount-copy {
  max-width: 720px;
}

.discount-copy p,
.consent-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.discount-form {
  display: grid;
  gap: 14px;
}

.consent-note {
  border-left: 4px solid var(--cenote-blue);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.76);
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 650;
}

.discount-message {
  display: block;
  border-left: 4px solid var(--warm-sun);
  border-radius: 8px;
  background: rgba(232, 201, 106, 0.2);
  color: var(--jungle-deep);
  padding: 14px;
  font-weight: 800;
}

.discount-message.is-error {
  border-left-color: #b85634;
  background: rgba(184, 86, 52, 0.12);
}

.discount-message[hidden] {
  display: none;
}

.image-panel,
.certificate-preview,
.closing-inner img {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img,
.certificate-preview img,
.closing-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-panel {
  min-height: 320px;
}

.amount-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.amount-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 150px;
  border: 1px solid rgba(31, 51, 38, 0.16);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  box-shadow: 0 14px 34px rgba(22, 36, 27, 0.1);
}

.amount-card:hover,
.amount-card.is-selected {
  border-color: var(--cenote-blue);
}

.amount-card.is-selected {
  background: #edf8f5;
}

.amount-card strong {
  color: var(--jungle-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.amount-card span {
  color: var(--muted);
}

.transparency-note {
  margin: 22px 0 0;
  border-left: 4px solid var(--warm-sun);
  border-radius: 8px;
  background: rgba(232, 201, 106, 0.18);
  color: var(--jungle-deep);
  padding: 14px;
  font-weight: 700;
}

.certificate-card {
  border: 1px solid rgba(31, 51, 38, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.88);
  padding: 24px;
  box-shadow: var(--shadow);
}

.certificate-card p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
}

.closing-section {
  position: relative;
  background: var(--jungle-deep);
  color: var(--soft-white);
  padding: 0;
}

.closing-inner {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.closing-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 36, 27, 0.12), rgba(22, 36, 27, 0.82));
}

.closing-inner img {
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: none;
}

.closing-inner h2 {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 54px;
  color: var(--soft-white);
  font-size: 2rem;
}

@media (min-width: 680px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .nav-links a {
    border-radius: 8px;
    color: rgba(245, 240, 227, 0.84);
    padding: 9px 10px;
    font-weight: 750;
  }

  .nav-links a:hover {
    background: rgba(245, 240, 227, 0.1);
    color: var(--soft-white);
  }

  h1 {
    font-size: 3.65rem;
  }

  h2,
  .closing-inner h2 {
    font-size: 2.55rem;
  }

  .hero-subheadline {
    font-size: 1.08rem;
  }

  .section {
    padding: 86px 0;
  }

  .survey-form {
    padding: 26px;
  }

  .discount-panel {
    padding: 24px;
  }

  .discount-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .discount-form .consent-note,
  .discount-form .form-submit,
  .discount-form .discount-message {
    grid-column: 1 / -1;
  }

  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hero-content {
    padding-bottom: 38px;
  }

  h1 {
    font-size: 4.1rem;
  }

  .survey-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
    align-items: start;
  }

  .media-layout,
  .certificate-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .certificate-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.75fr);
  }

  .amount-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
