/* Shared typography and restrained visual refresh for public pages. */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Dancing Script', cursive;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
}

main h1 {
  font-size: clamp(2.125rem, 4.45vw, 4rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em;
}

main h2 {
  font-size: clamp(2.125rem, 3.2vw, 2.75rem) !important;
  line-height: 1.12 !important;
}

main article h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem) !important;
}

.home-showcase-proof__title,
.faq-category__header h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem) !important;
  line-height: 1.2 !important;
}

button,
input[type="submit"],
a[class*="btn"],
.header-quote-btn,
.home-showcase__button,
.rm-hero__link,
.rm-submit {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.site-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
}

.about-hero__surface {
  background: #e9eee9 !important;
}

.about-hero__surface::before,
.about-hero__surface::after {
  display: none;
}

.rm-page .rm-hero h1 {
  max-width: 620px;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.rm-page .rm-hero__photo {
  border-radius: 18px 54px 18px 18px;
  box-shadow: 12px 12px 0 rgba(23, 78, 81, 0.12), 0 22px 48px rgba(23, 78, 81, 0.12);
}

.rm-page .rm-estimate__inner {
  width: min(1040px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.rm-page .rm-estimate__heading {
  text-align: center;
}

.rm-page .rm-estimate__heading h2 {
  max-width: none;
  font-size: clamp(1.75rem, 3.1vw, 2.4rem);
}

.rm-page .rm-estimate__heading > span {
  margin: 16px auto 0;
}

.rm-page .rm-quote-form {
  width: 100%;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(23, 78, 81, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 78, 81, 0.09), 0 3px 8px rgba(23, 78, 81, 0.04);
}

.rm-page .rm-field label {
  color: #40595d;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.rm-page .rm-field input,
.rm-page .rm-field select {
  min-height: 50px;
  border-radius: 9px;
  background-color: #fafbf9;
  font-family: var(--font-body);
  font-size: 15px;
}

.rm-page .rm-submit {
  min-height: 50px;
  border-radius: 8px;
  letter-spacing: 0;
  box-shadow: 0 3px 0 #d6a92d;
}

@media (max-width: 640px) {
  main h1 {
    font-size: clamp(2.125rem, 9vw, 2.75rem) !important;
  }

  main h2 {
    font-size: clamp(1.625rem, 7vw, 2.125rem) !important;
  }

  .rm-page .rm-estimate__inner {
    width: min(calc(100% - 32px), 560px);
  }

  .rm-page .rm-quote-form {
    padding: 21px 16px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-page *,
  .rm-page *::before,
  .rm-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
