/* Finishing details for the five main-site pages. */
body {
  font-weight: 500;
  caret-color: var(--reformo-blue);
}

html {
  scrollbar-color: #667571 #f2f6f7;
}

h1, h2, h3 {
  text-wrap: balance;
}

:focus-visible,
.btn:focus-visible {
  outline: 3px solid #b44f36;
  outline-offset: 4px;
}

.footer :focus-visible {
  outline-color: #ffbea4;
}

main:focus {
  outline: none;
}

.header .branding {
  height: 100%;
}

.navbar .nav-link,
.navbar .navbar-toggler,
.theme-btn {
  min-height: 44px;
}

.navbar .nav-link {
  display: flex;
  align-items: center;
}

.navbar .navbar-toggler:focus-visible {
  outline: 3px solid #b44f36;
  outline-offset: 4px;
  box-shadow: none;
}

.home-page .site-headline {
  margin-bottom: 1.75rem;
}

.home-page .site-headline span {
  color: #ce5b40;
}

.logos-section .logos-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
}

.logos-section .item {
  max-width: none;
  margin: 0 !important;
  opacity: 1;
}

.logos-section .item img {
  opacity: 0.85;
}

.benefits-section > .container {
  padding-bottom: 0 !important;
}

.section-divider hr {
  margin: 0;
  border-color: var(--reformo-line);
}

.home-page .social-proof-section > .theme-bg-primary {
  margin-bottom: 0 !important;
}

.home-page .social-proof-section .row,
.content-page .social-proof-section .row {
  align-items: center;
  row-gap: 1.5rem;
}

.home-page .user-quote {
  padding-bottom: 0 !important;
}

.home-page .testimonial-media {
  height: auto;
  padding: 0 !important;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.home-page .testimonial-media img {
  height: auto;
  aspect-ratio: 1702 / 800;
  object-fit: contain;
}

.content-page .social-proof-section {
  padding-top: 0 !important;
}

.content-page .social-proof-section > .theme-bg-primary {
  margin-bottom: 0 !important;
  border-bottom: 0;
}

.content-page .user-quote {
  padding: 0 15px !important;
}

.content-page .user-quote-inner h2 {
  margin-bottom: 1rem;
}

.content-page .user-figure-holder {
  flex: 0 0 calc(50% - 30px);
  max-width: calc(50% - 30px);
  min-height: clamp(20rem, 30vw, 27rem);
  margin: 0 15px;
}

.features-section .card,
.features-section .card:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.features-section .card {
  transition: none;
}

.contact-page .social-list a,
.footer .social-list a {
  width: 44px;
  height: 44px;
}

.contact-page .form-wrapper {
  border-radius: 16px;
}

.contact-form .row {
  row-gap: 1.5rem;
}

.contact-form .form-notice {
  margin-bottom: 1.75rem;
  color: var(--reformo-copy);
  font-size: 0.95rem;
  text-align: center;
}

.contact-form .form-notice a,
.contact-page .text-link {
  text-decoration: underline;
}

.contact-form textarea.form-control {
  height: 12rem;
  resize: vertical;
}

.contact-form .form-control {
  font-weight: 500;
}

.contact-form .form-control:focus {
  box-shadow: none;
}

.contact-form .form-control:focus-visible {
  outline: 2px solid var(--reformo-blue);
  outline-offset: 2px;
}

#local-form-status:empty {
  display: none;
}

.footer .footer-col > .list-unstyled:not(.social-list) a {
  display: inline-block;
  padding-block: 0.35rem;
}

.footer .footer-col > .list-unstyled:not(.social-list) li {
  margin-bottom: 0.15rem;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: calc(100dvh - var(--reformo-header-height) - 24px);
    overflow-y: auto;
  }

  .content-page .user-figure-holder {
    flex-basis: calc(100% - 30px);
    max-width: calc(100% - 30px);
    min-height: clamp(16rem, 54vw, 24rem);
    order: 0 !important;
  }

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

@media (max-width: 767.98px) {
  .home-page .site-headline {
    font-size: clamp(1.95rem, 9.7vw, 3.7rem);
  }

  .home-page .site-tagline {
    max-width: 31ch;
    text-wrap: pretty;
  }

  .home-page .site-tagline br {
    display: none;
  }

  .services-page .features-section .d-none.d-md-block {
    margin-bottom: 1.5rem;
  }

  .contact-page .hero-section h2 {
    text-align: center;
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .logos-section .logos-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .logos-section .item:last-child {
    grid-column: 1 / -1;
  }

  .logos-section .item img {
    max-width: 140px;
    height: 50px;
  }

  .footer .footer-col:nth-child(-n + 2) {
    flex-basis: 50%;
    max-width: 50%;
  }

  .footer .footer-col > .list-unstyled:not(.social-list) a {
    padding-block: 0.55rem;
  }

  .footer .footer-bottom {
    padding-inline: 24px !important;
  }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .logos-section .item:hover img,
  .contact-page .social-list a:hover,
  .footer .social-list a:hover,
  .contact-form button[type="submit"]:hover {
    transform: none;
  }
}

/* Server-backed contact form: keep state feedback within the corporate theme. */
.contact-form .form-honeypot {
  display: none;
}
.contact-form .form-errors {
  border: 1px solid #a2332d;
  border-radius: 10px;
  padding: 1rem;
  margin-block: 1.5rem;
  color: #882920;
  background: #fff5f3;
  overflow-wrap: anywhere;
  scroll-margin-top: 110px;
}
.contact-form .form-errors p,
.contact-form .form-errors ul {
  margin-bottom: 0;
}
.contact-form .form-errors a {
  color: inherit;
  text-decoration: underline;
}
.contact-form .field-error {
  color: #882920;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}
.contact-form .field-hint {
  color: var(--reformo-copy);
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}
.contact-form [aria-invalid="true"] {
  border-color: #a2332d;
}
.contact-form input,
.contact-form textarea {
  scroll-margin-top: 110px;
  caret-color: var(--reformo-blue);
}
.contact-form .form-submit-status {
  margin: 0.75rem 0 0;
}
.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}
