:root {
  --ink: #201c20;
  --sand: #f6f5f1;
  --blush: #dea093;
  --mist: #7d7878;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

.site-header {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.35s ease,
    opacity 0.35s ease;
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.site-header__inner,
.site-header__link,
.site-header__logo,
.site-header__cta,
.site-header__toggle {
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    padding 0.3s ease,
    height 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom-color: transparent;
  box-shadow: 0 10px 30px rgba(32, 28, 32, 0.08);
}

.site-header.is-scrolled .site-header__inner {
  color: var(--ink);
}

.site-header.is-scrolled .site-header__link {
  color: rgba(32, 28, 32, 0.86);
}

.site-header.is-scrolled .site-header__link:hover {
  color: rgba(32, 28, 32, 1);
}

.site-header.is-scrolled .site-header__logo {
  height: 2.4rem;
}

.site-header.is-scrolled .site-header__cta {
  border-color: rgba(32, 28, 32, 0.9);
  color: var(--ink);
}

.site-header.is-scrolled .site-header__cta:hover {
  background-color: var(--ink);
  color: #fff;
}

.site-header.is-scrolled .site-header__toggle {
  border-color: rgba(32, 28, 32, 0.9);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.site-header.is-scrolled .site-header__inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.font-heading {
  font-family: "Montserrat", sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  gap: 0;
}

.testimonial-track {
  display: flex;
  flex: 0 0 auto;
  min-width: max-content;
  align-items: stretch;
  gap: 1rem;
  animation: testimonial-marquee 30s linear infinite;
}

.testimonial-card {
  flex: 0 0 clamp(18rem, 24vw, 23rem);
  white-space: normal;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.consultation-image {
  display: block;
}

@media (min-width: 640px) {
  .testimonial-track {
    gap: 1.5rem;
  }
}

@media (max-width: 639px) {
  .testimonial-marquee {
    overflow: hidden;
  }

  .testimonial-track {
    gap: 0;
  }

  .testimonial-card {
    flex-basis: 100vw;
    width: 100vw;
    padding-inline: 1.5rem;
  }
}

@keyframes testimonial-marquee {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.before-after-overlay img {
  min-width: 100%;
}

.before-after-line {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.content-rich {
  color: rgba(32, 28, 32, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
}

.content-rich > * + * {
  margin-top: 1.4rem;
}

.content-rich h2,
.content-rich h3,
.content-rich h4 {
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  margin-top: 2.2rem;
}

.content-rich h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.content-rich h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.content-rich a {
  color: #b56959;
}

.content-rich ul,
.content-rich ol {
  padding-left: 1.35rem;
}

.content-rich li + li {
  margin-top: 0.55rem;
}

.content-rich img {
  border-radius: 1.5rem;
}

.content-rich blockquote {
  border-left: 3px solid #dea093;
  margin-left: 0;
  padding-left: 1rem;
  color: rgba(32, 28, 32, 0.7);
}

.page-numbers {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(32, 28, 32, 0.12);
  padding-inline: 0.85rem;
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-waves {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 180px;
  background:
    radial-gradient(80px 24px at 8% 10%, #fff 98%, transparent 100%) 0 22px / 160px 86px repeat-x,
    radial-gradient(95px 26px at 30% 0%, #fff 98%, transparent 100%) 12px 64px / 190px 90px repeat-x,
    radial-gradient(85px 28px at 60% 10%, #fff 98%, transparent 100%) 0 110px / 170px 88px repeat-x,
    linear-gradient(#fff, #fff);
  opacity: 0.97;
}

.footer-waves::before,
.footer-waves::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 100%;
  background:
    repeating-linear-gradient(
      105deg,
      transparent 0,
      transparent 22px,
      rgba(32, 28, 32, 0.12) 23px,
      transparent 25px,
      transparent 46px
    );
  mask: linear-gradient(to top, black 65%, transparent 100%);
}

.footer-waves::after {
  transform: scaleY(-1);
  opacity: 0.35;
}

@media (max-width: 1023px) {
  .footer-waves {
    height: 120px;
  }
}

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

  .reveal,
  .testimonial-card {
    transition: none;
  }

  .testimonial-track {
    animation: none;
  }
}
