/* Moonbright Now Inc — Home */

@font-face {
  font-family: "Murecho";
  src: url("./assets/fonts/Murecho-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Murecho";
  src: url("./assets/fonts/Murecho-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #ffe0af;
  --apricot: #fdce7c;
  --brand-red: #be0105;
  --ink: #000000;
  --muted: #333333;
  --white: #ffffff;
  --shadow-soft: 0 4px 4px rgba(0, 0, 0, 0.25);
  --heading-shadow: rgba(0, 0, 0, 0.3) 0 5px 0;
  --content-width: 980px;
  --font-display: "Murecho", "Helvetica Neue", sans-serif;
  --font-body: "Poppins", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--brand-red);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 40;
  padding: 2.5rem 0 1.5rem;
  background: transparent;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 45px;
}

.site-header .site-logo {
  grid-column: 2;
  width: 249px;
  height: auto;
  justify-self: center;
}

.site-logo {
  width: 249px;
  height: auto;
}

.site-logo img,
.site-logo svg {
  width: 100%;
  height: auto;
}

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  color: var(--brand-red);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  opacity: 0.85;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }

.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0.5rem 0 1.75rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(190, 1, 5, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform-origin: top center;
  animation: nav-drop 0.22s ease both;
}

.site-nav[hidden] {
  display: none;
}

.site-nav__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.site-nav__list a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--brand-red);
}

.site-nav .btn-contact {
  min-width: 220px;
}

body.nav-open {
  overflow: hidden;
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Buttons —— */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 280px;
  height: 45px;
  padding: 0 1.5rem;
  border-radius: 100px;
  background: var(--brand-red);
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.btn-contact:hover {
  opacity: 0.92;
}

.btn-contact__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-contact__icon svg {
  width: 100%;
  height: 100%;
}

.link-more {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 160px;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.link-more:hover {
  opacity: 0.7;
}

.link-more--accent {
  color: var(--brand-red);
}

.link-more__icon {
  width: 22px;
  height: 18px;
}

.link-more__icon svg {
  width: 100%;
  height: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 0.5rem 0 0;
  background: linear-gradient(0deg, var(--apricot) 0%, var(--cream) 100%);
  overflow: hidden;
  text-align: center;
}

.hero__visual {
  width: min(500px, 90%);
  margin: 0 auto 2rem;
  animation: fade-in 1.2s cubic-bezier(0.445, 0.05, 0.55, 0.95) both;
}

.hero__visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__title {
  margin: 0 auto 1.5rem;
  max-width: 800px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 64px);
  line-height: 1.4;
  color: var(--white);
  text-shadow: var(--heading-shadow);
  animation: fade-expand 1.2s 0.5s both;
}

.hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 900px;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  animation: fade-expand 1.2s 1s both;
}

.hero .btn-contact {
  margin-inline: auto;
  animation: fade-in 1.2s 1.1s both;
}

.hero__ribbons {
  position: relative;
  width: 100%;
  height: clamp(90px, 10vw, 140px);
  margin: 2.5rem 0 -1rem;
  overflow: hidden;
  pointer-events: none;
}

.hero__ribbons img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2179px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

/* —— About —— */
.about {
  position: relative;
  padding: 5rem 0 0;
  background: var(--cream);
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 1.5rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.about__content {
  max-width: 535px;
  padding-top: 1.5rem;
}

.about__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 46px);
  line-height: 1.4;
  color: var(--white);
  text-shadow: var(--heading-shadow);
}

.about__text {
  margin: 0 0 1.5rem;
  max-width: 520px;
  font-size: 18px;
  color: var(--ink);
}

.about__media {
  justify-self: end;
  width: min(470px, 100%);
  margin-top: -1rem;
  animation: fade-in 1.2s both;
}

.about__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about__wave {
  display: block;
  width: 100%;
  height: clamp(80px, 12vw, 160px);
  margin-top: -4rem;
  position: relative;
  z-index: 1;
}

/* —— Services —— */
.services {
  position: relative;
  padding: 2.5rem 0 4rem;
  background: var(--brand-red);
  overflow: visible;
}

.services .container {
  width: min(100% - 2rem, 980px);
  overflow: visible;
}

.services__title {
  margin: 0 0 2.5rem;
  padding-left: clamp(0px, 10vw, 222px);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 46px);
  line-height: 1.4;
  color: var(--white);
  text-shadow: var(--heading-shadow);
}

.services__track {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-height: 1180px;
  overflow: visible;
}

.services__dash {
  position: absolute;
  width: 377px;
  height: 355px;
  max-width: none;
  pointer-events: none;
  z-index: 0;
}

.services__dash--top {
  /* Original: left 404px, rotate 90deg — connects card 1 → card 2 */
  top: 120px;
  left: 404px;
  transform: rotate(90deg);
  transform-origin: center center;
}

.services__dash--bottom {
  /* Original: left 119px — connects card 2 → card 3 */
  top: 480px;
  left: 119px;
}

.service-card {
  position: absolute;
  z-index: 1;
  width: 600px;
  max-width: calc(100% - 2rem);
  padding: 1.75rem 2rem 1.25rem 3.5rem;
  background: var(--cream);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.service-card--1 {
  top: 40px;
  left: 40px;
}

.service-card--2 {
  top: 420px;
  left: 380px;
}

.service-card--3 {
  top: 780px;
  left: 39px;
}

.service-card__icon {
  /* Original: left -40px, margin-top ~40px — hangs off the LEFT side at title height */
  position: absolute;
  top: 36px;
  left: -40px;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  background: var(--cream);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.service-card__icon img {
  width: 58px;
  height: auto;
}

.service-card__title {
  margin: 0.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.4;
  color: var(--brand-red);
}

.service-card__text {
  margin: 0 0 1rem;
  max-width: 480px;
  font-size: 18px;
  color: var(--ink);
}

.service-card__footer {
  display: flex;
  justify-content: flex-end;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--cream);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--brand-red);
  padding: 0.35rem 0.25rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer .site-logo {
  width: 249px;
}

.site-footer__year {
  margin: 1.75rem 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
}

/* —— Contact modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 2.5rem 2rem 2rem;
  background: var(--cream);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal.is-open .modal__dialog {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

.modal__title {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--cream);
  -webkit-text-stroke: 1.5px var(--brand-red);
  text-shadow: 0 3px 0 rgba(190, 1, 5, 0.35);
  paint-order: stroke fill;
}

.modal__lead {
  margin: 0 auto 1.75rem;
  max-width: 36ch;
  text-align: center;
  font-size: 15px;
  color: var(--ink);
}

.modal__success {
  text-align: center;
}

.modal__success .modal__lead {
  max-width: 28ch;
}

.modal__success .btn-contact {
  margin-inline: auto;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--brand-red);
}

.contact-form .btn-contact {
  margin: 0.75rem auto 0;
  min-width: 180px;
  border: 0;
}

/* —— Animations —— */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-expand {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .js-reveal .dash-reveal {
    opacity: 1 !important;
  }
}

/* —— Scroll reveal —— */
.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.js-reveal .reveal--left {
  transform: translate3d(-56px, 24px, 0);
}

.js-reveal .reveal--right {
  transform: translate3d(56px, 24px, 0);
}

.js-reveal .reveal--scale {
  transform: translate3d(0, 28px, 0) scale(0.94);
}

.js-reveal .reveal--soft {
  transform: translate3d(0, 28px, 0);
  filter: blur(2px);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Dashes: opacity only — keep rotate() from position classes */
.js-reveal .dash-reveal {
  opacity: 0;
  transition: opacity 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal .dash-reveal.is-in {
  opacity: 1;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .site-header {
    padding: 1.5rem 0 1rem;
  }

  .site-header .site-logo {
    width: min(200px, 58vw);
  }

  .about {
    padding: 3rem 0 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
  }

  .about__content {
    padding-bottom: 1.5rem;
  }

  .about__media {
    justify-self: center;
    order: -1;
    max-width: 360px;
  }

  .about__wave {
    margin-top: 0;
  }

  .services__connector,
  .services__dash {
    display: none;
  }

  .services__track {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    padding: 2rem 0 1rem;
  }

  .service-card,
  .service-card--1,
  .service-card--2,
  .service-card--3 {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    padding: 3.25rem 1.25rem 1.25rem;
    margin-top: 1.5rem;
  }

  .service-card__icon {
    top: -36px;
    left: 16px;
    width: 72px;
    height: 72px;
  }

  .service-card__icon img {
    width: 48px;
  }

  .service-card__title {
    margin-top: 0;
  }

  .services__title {
    padding-left: 0;
    text-align: center;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .site-logo {
    width: 180px;
  }

  .btn-contact {
    min-width: 0;
    width: 100%;
    max-width: 280px;
  }

  .hero__ribbons img {
    width: 1400px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 0.5rem 1rem;
  }

  .footer-nav a {
    font-size: 13px;
  }
}

/* —— Inner pages: About —— */
.about-intro {
  padding: 1.5rem 0 4.5rem;
  background: var(--cream);
  text-align: center;
}

.about-intro__title {
  margin: 0 auto 1.25rem;
  max-width: 600px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 64px);
  line-height: 1.2;
  color: var(--white);
  text-shadow: var(--heading-shadow);
}

.about-intro__text {
  margin: 0 auto;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.wave-edge {
  display: block;
  width: 100%;
  height: clamp(80px, 12vw, 160px);
  margin-top: -4rem;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  line-height: 0;
}

.wave-edge img,
.wave-edge svg {
  width: 100%;
  height: 100%;
}

.process {
  position: relative;
  padding: 1rem 0 3rem;
  background: var(--brand-red);
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./assets/icons/decor-shape.svg");
  background-size: 64px 64px;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.process .container {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 980px);
  overflow: visible;
}

.process__track {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-height: 1680px;
  overflow: visible;
}

.process__dash {
  position: absolute;
  width: 377px;
  height: 355px;
  max-width: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.process__dash--1 {
  top: 80px;
  left: 408px;
  transform: rotate(90deg);
}

.process__dash--2 {
  top: 355px;
  left: 113px;
}

.process__dash--3 {
  top: 630px;
  left: 408px;
  transform: rotate(90deg);
}

.process__dash--4 {
  top: 905px;
  left: 113px;
}

.process__dash--5 {
  top: 1180px;
  left: 408px;
  transform: rotate(90deg);
}

.process-card {
  position: absolute;
  z-index: 1;
  width: 600px;
  max-width: calc(100% - 2rem);
  min-height: 235px;
  padding: 1.5rem 1.75rem 1.25rem 3.5rem;
  background: var(--cream);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.process-card--1 { top: 0; left: 40px; }
.process-card--2 { top: 275px; left: 380px; }
.process-card--3 { top: 550px; left: 40px; }
.process-card--4 { top: 825px; left: 380px; }
.process-card--5 { top: 1100px; left: 40px; }
.process-card--6 { top: 1375px; left: 380px; }

.process-card__num {
  position: absolute;
  top: 36px;
  left: -40px;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  background: var(--cream);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--white);
  -webkit-text-stroke: 2px var(--brand-red);
  paint-order: stroke fill;
  z-index: 2;
}

.process-card__title {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.35;
  color: var(--brand-red);
}

.process-card__text {
  margin: 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.values {
  padding: 3rem 0 4rem;
  background: var(--cream);
  text-align: center;
}

.values__title {
  margin: 0 auto 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 46px);
  color: var(--white);
  text-shadow: var(--heading-shadow);
}

.values__row {
  display: grid;
  gap: 2.5rem 2rem;
  width: min(100% - 2rem, 1600px);
  margin: 0 auto;
}

.values__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2.75rem;
}

.values__row--2 {
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 2.5rem 8vw;
}

.value-item {
  max-width: 360px;
  margin-inline: auto;
}

.value-item__icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--cream);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.value-item__icon img {
  width: 58px;
  height: auto;
}

.value-item__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--brand-red);
}

.value-item__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

/* —— Service / content pages —— */
.svc-page {
  background: var(--cream);
}

.svc-hero {
  padding: 1.25rem 0 1.5rem;
  text-align: center;
}

.svc-hero__title {
  margin: 0 auto;
  max-width: 1020px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 46px);
  line-height: 1.35;
  color: var(--white);
  text-shadow: var(--heading-shadow);
}

.svc-hero__title span {
  display: block;
}

.svc-body {
  position: relative;
  width: min(100% - 2rem, 980px);
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
  overflow: visible;
}

.svc-split {
  display: grid;
  grid-template-columns: minmax(0, 450px) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
  overflow: visible;
}

.svc-split--flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 450px);
}

.svc-copy {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.svc-copy p {
  margin: 0 0 1.25rem;
}

.svc-copy p:last-child {
  margin-bottom: 0;
}

.svc-page {
  overflow-x: clip;
}

.svc-panel {
  position: relative;
  min-height: 526px;
  overflow: visible;
}

.svc-panel__media {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  z-index: 0;
}

/* Image bleeds to the right viewport edge */
.svc-panel--right .svc-panel__media {
  left: 0;
  width: max(100%, 50vw);
}

/* Image bleeds to the left viewport edge */
.svc-panel--left .svc-panel__media {
  right: 0;
  left: auto;
  width: max(100%, 50vw);
}

.svc-panel__shade {
  position: relative;
  z-index: 1;
  width: min(100%, 491px);
  min-height: inherit;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 224, 175, 0.9);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.svc-panel__shade p {
  margin: 0 0 1.25rem;
}

.svc-panel__shade p:last-child {
  margin-bottom: 0;
}

/* Shade sits on the inner edge of the photo */
.svc-panel--left .svc-panel__shade {
  margin-left: auto;
}

.svc-panel--right .svc-panel__shade {
  margin-left: 0;
}

.svc-wide {
  width: min(100% - 2rem, 900px);
  margin: 1.5rem auto 2rem;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}

.svc-wide p {
  margin: 0 0 1rem;
  text-align: center;
}

.svc-close {
  padding: 1.5rem 0 3rem;
  margin-top: -1px;
  background: var(--brand-red);
  text-align: center;
}

.svc-page .wave-edge {
  margin-top: 0;
}

.svc-close__text {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--white);
}

.svc-block {
  padding: 0 0 2.5rem;
}

.svc-block + .svc-block {
  padding-top: 1rem;
}

/* —— Legal —— */
.legal-page {
  padding: 2rem 0 3.5rem;
  background: var(--cream);
}

.legal-page__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 46px);
  color: var(--white);
  text-shadow: var(--heading-shadow);
}

.legal {
  max-width: 820px;
  margin: 0 auto;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-red);
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.6;
}

.legal ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal a {
  color: var(--brand-red);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .process {
    overflow: visible;
    padding-top: 2rem;
  }

  .process__track {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 1.25rem;
  }

  .process__dash {
    display: none;
  }

  .process-card,
  .process-card--1,
  .process-card--2,
  .process-card--3,
  .process-card--4,
  .process-card--5,
  .process-card--6 {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    padding: 3.5rem 1.25rem 1.25rem;
  }

  .process-card__num {
    top: -36px;
    left: 1.25rem;
    width: 72px;
    height: 72px;
    font-size: 40px;
  }

  .process-card__title {
    margin-top: 0;
  }

  .values__row--3 {
    grid-template-columns: 1fr;
  }

  .values__row--2 {
    grid-template-columns: 1fr;
  }

  .svc-split,
  .svc-split--flip {
    grid-template-columns: 1fr;
  }

  .svc-panel,
  .svc-panel--left,
  .svc-panel--right {
    min-height: 360px;
    order: -1;
  }

  .svc-panel__media,
  .svc-panel--left .svc-panel__media,
  .svc-panel--right .svc-panel__media {
    left: 0;
    right: 0;
    width: 100%;
  }

  .svc-panel__shade,
  .svc-panel--left .svc-panel__shade,
  .svc-panel--right .svc-panel__shade {
    width: 100%;
    margin-left: 0;
  }
}
