:root {
  --color-bg: #f7f4ef;
  --color-bg-soft: #efe9df;
  --color-text: #151515;
  --color-muted: #5f5a55;
  --color-accent: #c86b4a;
  --color-accent-dark: #a95033;
  --color-dark: #151515;
  --color-card: #ffffff;
  --color-border: rgba(21, 21, 21, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 18px 50px rgba(31, 26, 22, 0.08);
  --shadow-hover: 0 22px 70px rgba(31, 26, 22, 0.14);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button {
  border: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 156px;
  line-height: 1;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.15;
  box-shadow: 0 12px 28px rgba(200, 107, 74, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 16px 34px rgba(200, 107, 74, 0.3);
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(200, 107, 74, 0.28);
  outline-offset: 3px;
}

.button-small {
  min-height: 42px;
  padding: 11px 17px;
  font-size: 14px;
}

.button-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(21, 21, 21, 0.18);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
  box-shadow: none;
}

.hero-with-bg .button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero-with-bg .button-secondary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--color-text);
}

.hero {
  padding-top: 118px;
  padding-bottom: 108px;
}

.hero-with-bg {
  position: relative;
  background-color: var(--color-dark);
  /* Replace /assets/hero-bg.jpg with the final hero background image */
  background-image:
    linear-gradient(90deg, rgba(21, 21, 21, 0.82) 0%, rgba(21, 21, 21, 0.62) 44%, rgba(21, 21, 21, 0.28) 100%),
    url("./assets/hero-bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-with-bg .eyebrow {
  color: #f2c1a8;
}

.hero-with-bg .hero-text,
.hero-with-bg .hero-note {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.hero-with-bg .hero-panel {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.panel-topline {
  width: 72px;
  height: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--color-accent);
}

.hero-panel h2 {
  margin-bottom: 22px;
  font-size: 30px;
}

.hero-panel ul {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
}

.hero-panel li {
  position: relative;
  padding-left: 24px;
}

.hero-panel li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.badge {
  display: inline-flex;
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f7ebe4;
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 760;
}

.section-muted {
  background: var(--color-bg-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  min-height: 278px;
  padding: 28px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--radius-md);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(200, 107, 74, 0.28);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-number {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
}

.card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.section-dark {
  background: var(--color-dark);
  color: #fff;
}

.section-dark .eyebrow {
  color: #e59a7d;
}

.section-dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.process-step span {
  display: inline-block;
  margin-bottom: 26px;
  color: #e59a7d;
  font-size: 13px;
  font-weight: 800;
}

.process-step h3 {
  font-size: 18px;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.trust-copy p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 18px;
}

.trust-media {
  display: grid;
  gap: 18px;
}

.producer-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 390px;
  border-radius: var(--radius-lg);
  background: #d8d3cb;
  box-shadow: var(--shadow-soft);
}

.producer-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center 34%;
}

.trust-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
}

.trust-card strong {
  display: block;
  margin-bottom: 24px;
  font-size: 24px;
  line-height: 1.2;
}

.trust-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.section-form {
  background: linear-gradient(180deg, var(--color-bg) 0%, #fffaf5 100%);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 54px;
  align-items: start;
}

.form-heading {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

.lead-form {
  padding: 32px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 740;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 122px;
  padding: 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(95, 90, 85, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(200, 107, 74, 0.72);
  box-shadow: 0 0 0 4px rgba(200, 107, 74, 0.12);
}

.field-wide {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  min-height: 18px;
  color: #b13720;
  font-size: 12px;
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea {
  border-color: #b13720;
}

.form-message {
  display: none;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  background: #edf8ef;
  border-color: rgba(35, 99, 49, 0.18);
  color: #236331;
  box-shadow: 0 12px 28px rgba(35, 99, 49, 0.08);
}

.form-message.is-error {
  background: #fff0ea;
  border-color: rgba(156, 53, 31, 0.18);
  color: #9c351f;
}

.form-submit {
  width: 100%;
  margin-top: 22px;
}

.form-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-consent {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.form-consent a {
  color: var(--color-accent-dark);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-main {
  background: var(--color-bg);
}

.legal-hero {
  padding-top: 86px;
  padding-bottom: 54px;
}

.legal-container {
  max-width: 880px;
}

.legal-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
}

.legal-hero p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 18px;
}

.legal-updated {
  margin-bottom: 28px;
  color: var(--color-accent-dark);
  font-weight: 760;
}

.legal-section {
  padding-top: 0;
}

.legal-card {
  padding: 42px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.2;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--color-muted);
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.site-footer {
  padding: 54px 0 30px;
  background: var(--color-dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 16px;
  width: 180px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer strong {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal p {
  max-width: 860px;
  margin: 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .trust-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

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

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

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

  .card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 26px;
  }

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

  .form-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .header-inner {
    min-height: 68px;
    gap: 14px;
  }

  .logo {
    width: 132px;
  }

  .button-small {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    padding-top: 78px;
    padding-bottom: 72px;
  }

  .hero-with-bg {
    background-image:
      linear-gradient(180deg, rgba(21, 21, 21, 0.86) 0%, rgba(21, 21, 21, 0.74) 58%, rgba(21, 21, 21, 0.58) 100%),
      url("./assets/hero-bg.jpg");
    background-position: center top;
  }

  h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  h2 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .hero-text,
  .section-heading p:not(.eyebrow),
  .trust-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-panel,
  .producer-photo,
  .trust-card,
  .legal-card,
  .lead-form {
    padding: 24px;
    border-radius: 20px;
  }

  .producer-photo {
    min-height: 320px;
    padding: 0;
  }

  .producer-photo img {
    min-height: 320px;
  }

  .process-grid,
  .value-grid,
  .profile-grid,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 20px;
  }
}
