:root {
  --green: #034732;
  --gold: #f3b61f;
  --gray: #7a7a7a;
  --dark: #1d1d1d;
  --white: #ffffff;

  --container: 1140px;
  --font-body: "Lato", system-ui, -apple-system, sans-serif;
  --font-head: "Merriweather", Georgia, serif;
}

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

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  background: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--green);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  padding: 4rem 2rem;
  color: var(--white);
  background-image: url("/assets/sunrise.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.26);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__wordmark {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__headline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.25;
  margin: 20vh 0 2rem;
  max-width: 20ch;
}

/* Typing caret after the rotating word */
.rotate {
  border-right: 2px solid var(--gold);
  padding-right: 2px;
}

.rotate--done {
  border-right-color: transparent;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--green);
  padding: 3.5rem 1.5rem;
}

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

.contact__heading {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
}

/* ---------- Form ---------- */
.form__row {
  display: flex;
  gap: 1rem;
}

.form__row .form__field {
  flex: 1;
}

.form__field {
  margin-bottom: 1.25rem;
}

.form__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.req {
  color: #ff4d4d;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 2px;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(243, 182, 31, 0.4);
}

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

.cf-turnstile {
  margin-bottom: 1.25rem;
}

.form__submit {
  border: none;
}

.form__submit:hover:not(:disabled),
.form__submit:focus-visible:not(:disabled) {
  color: var(--white);
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form__status {
  margin: 1rem 0 0;
  min-height: 1.4em;
  font-weight: 600;
  color: var(--white);
}

.form__status--error {
  color: var(--gold);
}

/* Honeypot — hidden from real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 1.15rem 1rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: 3rem 1.25rem;
  }

  .hero__headline {
    margin-top: 10vh;
  }

  .form__row {
    flex-direction: column;
    gap: 0;
  }
}

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

  .rotate {
    border-right-color: transparent;
  }
}
