/*
 * Mezzo Standalone Final CTA
 * Isolated CTA design for reuse on any template.
 * It intentionally avoids relying on page-specific home/about/projects CSS.
 */

html body .mz-standalone-cta {
  --mz-standalone-cta-primary: var(--c-primary, #a0522d);
  --mz-standalone-cta-primary-dark: var(--c-primary-dark, #7a321f);
  --mz-standalone-cta-accent: var(--c-accent, #d8a13a);
  --mz-standalone-cta-ink: var(--c-text, #211a17);
  --mz-standalone-cta-muted: var(--c-muted, #6f625d);
  --mz-standalone-cta-line: rgba(160, 82, 45, 0.18);
  --mz-standalone-cta-soft: #fbf7f1;
  --mz-standalone-cta-white: #ffffff;
  --mz-standalone-cta-radius: 3.2rem;
  --mz-standalone-cta-shadow: 0 2.4rem 7rem rgba(43, 23, 15, 0.11);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(6.4rem, 7vw, 10.4rem) 2.4rem;
  background:
    radial-gradient(circle at 14% 20%, rgba(216, 161, 58, 0.10), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #fbf8f2 100%);
  color: var(--mz-standalone-cta-ink);
  font-family: inherit;
}

html body .mz-standalone-cta::before,
html body .mz-standalone-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

html body .mz-standalone-cta::before {
  width: min(68rem, 82vw);
  height: min(68rem, 82vw);
  left: -24rem;
  bottom: -36rem;
  border-radius: 50%;
  background: rgba(160, 82, 45, 0.06);
}

html body .mz-standalone-cta::after {
  right: clamp(1.6rem, 6vw, 10rem);
  top: clamp(2.4rem, 5vw, 7rem);
  width: clamp(8rem, 11vw, 16rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mz-standalone-cta-line), transparent);
}

html body .mz-standalone-cta__inner {
  width: min(118rem, 100%);
  margin: 0 auto;
}

html body .mz-standalone-cta__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(32rem, 0.72fr);
  gap: clamp(2.4rem, 4vw, 5.2rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(3.2rem, 5vw, 6rem);
  border: 1px solid var(--mz-standalone-cta-line);
  border-radius: var(--mz-standalone-cta-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 246, 0.96)),
    var(--mz-standalone-cta-white);
  box-shadow: var(--mz-standalone-cta-shadow);
}

html body .mz-standalone-cta__panel::before {
  content: "";
  position: absolute;
  inset: auto -8% -44% -8%;
  height: 44%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.88) 0 26%, transparent 27%),
    radial-gradient(ellipse at 65% 10%, rgba(245, 233, 219, 0.86) 0 34%, transparent 35%),
    linear-gradient(90deg, rgba(245, 235, 224, 0.18), rgba(160, 82, 45, 0.08), rgba(245, 235, 224, 0.18));
  opacity: 0.9;
}

html body .mz-standalone-cta__copy,
html body .mz-standalone-cta__form-wrap {
  position: relative;
  z-index: 1;
}

html body .mz-standalone-cta__kicker {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--mz-standalone-cta-primary);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.24rem;
  line-height: 1.35;
  text-transform: uppercase;
}

html body .mz-standalone-cta__title {
  max-width: 12ch;
  margin: 0;
  color: var(--mz-standalone-cta-ink);
  font-family: inherit;
  font-size: clamp(3.8rem, 5vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

html body .mz-standalone-cta__text {
  max-width: 58rem;
  margin: 2rem 0 0;
  color: var(--mz-standalone-cta-muted);
  font-size: clamp(1.55rem, 1.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.7;
}

html body .mz-standalone-cta__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 68rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

html body .mz-standalone-cta__points li {
  position: relative;
  min-height: 100%;
  padding: 1.4rem 1.4rem 1.4rem 4rem;
  border: 1px solid var(--mz-standalone-cta-line);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--mz-standalone-cta-ink);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.45;
}

html body .mz-standalone-cta__points li::before {
  content: "✓";
  position: absolute;
  top: 1.35rem;
  left: 1.4rem;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(160, 82, 45, 0.10);
  color: var(--mz-standalone-cta-primary);
  font-size: 1rem;
  font-weight: 800;
}

html body .mz-standalone-cta__form-wrap {
  align-self: stretch;
}

html body .mz-standalone-cta .mezzo-home-cta-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(2.2rem, 3vw, 3.2rem);
  border: 1px solid rgba(160, 82, 45, 0.16);
  border-radius: 2.4rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1.6rem 4rem rgba(43, 23, 15, 0.08);
}

html body .mz-standalone-cta .mezzo-home-field,
html body .mz-standalone-cta .mezzo-home-field-full {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
}

html body .mz-standalone-cta .mezzo-home-field-full {
  grid-column: 1 / -1;
}

html body .mz-standalone-cta .mezzo-home-field label {
  color: var(--mz-standalone-cta-ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

html body .mz-standalone-cta .mezzo-home-field input,
html body .mz-standalone-cta .mezzo-home-field select {
  width: 100%;
  min-height: 4.8rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(160, 82, 45, 0.18);
  border-radius: 1.4rem;
  background-color: #fff;
  color: var(--mz-standalone-cta-ink);
  font: inherit;
  font-size: 1.45rem;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

html body .mz-standalone-cta .mezzo-home-field input:focus,
html body .mz-standalone-cta .mezzo-home-field select:focus {
  border-color: var(--mz-standalone-cta-primary);
  box-shadow: 0 0 0 0.35rem rgba(160, 82, 45, 0.10);
}

html body .mz-standalone-cta .mezzo-home-cta-submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.2rem;
  margin: 0.4rem 0 0;
  padding: 1.35rem 2.2rem;
  border: 1px solid var(--mz-standalone-cta-primary);
  border-radius: 999px;
  background: var(--mz-standalone-cta-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1.2rem 2.4rem rgba(160, 82, 45, 0.22);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

html body .mz-standalone-cta .mezzo-home-cta-submit:hover,
html body .mz-standalone-cta .mezzo-home-cta-submit:focus-visible {
  background: var(--mz-standalone-cta-primary-dark);
  border-color: var(--mz-standalone-cta-primary-dark);
  color: #fff;
  transform: translateY(-0.15rem);
  box-shadow: 0 1.4rem 2.8rem rgba(160, 82, 45, 0.28);
}

@media (max-width: 1080px) {
  html body .mz-standalone-cta {
    padding: clamp(5.6rem, 8vw, 8rem) 2rem;
  }

  html body .mz-standalone-cta__panel {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  html body .mz-standalone-cta__title {
    max-width: 15ch;
  }

  html body .mz-standalone-cta__text {
    max-width: 72rem;
  }
}

@media (max-width: 760px) {
  html body .mz-standalone-cta {
    padding: 4.8rem 1.6rem;
  }

  html body .mz-standalone-cta__panel {
    padding: 2.4rem;
    border-radius: 2.4rem;
  }

  html body .mz-standalone-cta__kicker {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    letter-spacing: 0.18rem;
  }

  html body .mz-standalone-cta__title {
    max-width: 100%;
    font-size: clamp(3.2rem, 10vw, 4.6rem);
    line-height: 1.02;
    text-wrap: auto;
  }

  html body .mz-standalone-cta__text {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.65;
  }

  html body .mz-standalone-cta__points {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.2rem;
  }

  html body .mz-standalone-cta__points li {
    padding: 1.25rem 1.3rem 1.25rem 3.8rem;
    border-radius: 1.5rem;
  }

  html body .mz-standalone-cta .mezzo-home-cta-form {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.8rem;
    border-radius: 2rem;
  }

  html body .mz-standalone-cta .mezzo-home-field input,
  html body .mz-standalone-cta .mezzo-home-field select {
    min-height: 4.7rem;
    font-size: 1.4rem;
  }

  html body .mz-standalone-cta .mezzo-home-cta-submit {
    min-height: 5rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 420px) {
  html body .mz-standalone-cta {
    padding-right: 1.2rem;
    padding-left: 1.2rem;
  }

  html body .mz-standalone-cta__panel {
    padding: 2rem 1.6rem;
    border-radius: 2rem;
  }

  html body .mz-standalone-cta__title {
    font-size: clamp(3rem, 11vw, 4rem);
  }

  html body .mz-standalone-cta .mezzo-home-cta-form {
    padding: 1.5rem;
  }
}
