/* Our Services page (dorset-wedding-styling.html, built by scripts/build-services.py), on top of the Bespoke Florals
   styles: the hero, a strip per service, The Process and the showroom/contact buttons. */

html {
  scroll-behavior: smooth;
}

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

.sv-panel,
.sv-process {
  scroll-margin-top: 90px;
}

/* Services: the photo stays pinned on the left while each service's text scrolls up on the right, and the photo
   crossfades to the service in the middle of the screen (js/services-scroll.js). Phones: photo, then text. */
.sv-scroller {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(4vw, 20px);
}

.sv-media-sticky {
  position: sticky;
  top: 110px;
  height: min(calc(100vh - 150px), 680px);
  margin: 40px 0;
}

.sv-media-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sv-media-item.is-active {
  opacity: 1;
}

.sv-media-photo,
.sv-media-photo .bf-real-photo {
  width: 100%;
  height: 100%;
}

.sv-media-photo .bf-real-photo {
  object-fit: cover;
}

.sv-panel {
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: 10vh 0;
}

.sv-panel-photo {
  display: none;
}

.sv-panel-text {
  max-width: 520px;
}

/* ---------- The Process ---------- */
.sv-process {
  position: relative;
  overflow: hidden;
  padding: 96px max(4vw, 20px) 104px;
  background-color: #faf6f0;
  border-top: 1px solid #e3d9d0;
}

.sv-process-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.sv-botanical {
  position: absolute;
  width: clamp(120px, 14vw, 200px);
  fill: none;
  stroke: #e0b8a6;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.sv-botanical-top {
  top: 48px;
  right: 2vw;
  transform: scaleX(-1);
}

.sv-botanical-bottom {
  bottom: 64px;
  left: 1vw;
  transform: rotate(180deg) scaleX(-1);
}

.sv-process-head {
  margin-bottom: 56px;
  text-align: center;
}

.sv-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
}

.sv-ornament span {
  width: 72px;
  height: 1px;
  background-color: #dcc3b6;
}

.sv-sprig {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #c98b72;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-process-title {
  margin: 0 0 18px;
  color: #3a3835;
  font-family: Cinzel, serif;
  font-size: var(--fs-display, clamp(40px, 5vw, 68px));
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.sv-process-intro {
  max-width: 600px;
  margin: 0 auto;
  color: #474747;
  font-family: Raleway, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

/* The steps: number, icon, then the text. Each number sits a little further in or out, joined by a winding line. */
.sv-steps {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.sv-step {
  position: relative;
  display: grid;
  grid-template-columns: 100px 132px minmax(0, 1fr);
  gap: 0 28px;
  align-items: center;
  margin: 0 0 44px;
  padding-left: var(--sv-offset, 0);
}

.sv-step:last-child {
  margin-bottom: 0;
}

.sv-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border: 1px solid #d9a48f;
  border-radius: 50%;
  background-color: #faf6f0;
  color: #c27f63;
  font-family: Cinzel, serif;
  font-size: 40px;
  line-height: 1;
}

/* the short line and dot from the number towards its icon */
.sv-num::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, #d9a48f 0, #d9a48f 12px, transparent 12px);
}

.sv-num::before {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: calc(100% + 12px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #c98b72;
}

.sv-link {
  position: absolute;
  top: 100px;
  left: calc(var(--sv-link-left) + 50px);
  height: calc(100% - 100px + 44px);
  overflow: visible;
  fill: none;
  stroke: #d9a48f;
  stroke-width: 1.2;
}

.sv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background-color: #f1ddd3;
}

.sv-icon svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: #6b4f45;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-step-title {
  margin: 0 0 14px;
  padding-bottom: 14px;
  color: #3a3835;
  font-family: Cinzel, serif;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  background: linear-gradient(#d9a48f, #d9a48f) left bottom / 64px 1px no-repeat;
}

.sv-step-body {
  max-width: 440px;
  margin: 0;
  color: #474747;
  font-family: Raleway, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

/* Links to the three services under the steps */
.sv-process-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin: 72px 0 40px;
}

.sv-rule {
  flex: 1 1 40px;
  max-width: 110px;
  height: 1px;
  background-color: #dcc3b6;
}

.sv-process-link {
  color: #3a3835;
  font-family: Cinzel, serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.sv-process-link:hover,
.sv-process-link:focus-visible {
  color: #8a5a44;
}

.sv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #c98b72;
}

@media screen and (max-width: 991px) {
  .sv-scroller {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sv-media {
    display: none;
  }

  .sv-panel {
    display: block;
    min-height: 0;
    padding: 48px 0 24px;
  }

  .sv-panel-photo {
    display: block;
    aspect-ratio: 5 / 4;
    margin-bottom: 24px;
  }

  .sv-panel-photo .bf-real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sv-panel-text {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-media-item {
    transition: none;
  }
}

@media screen and (max-width: 767px) {
  .sv-process {
    padding: 72px 20px 80px;
  }

  .sv-botanical {
    opacity: 0.6;
  }

  .sv-step {
    grid-template-columns: 64px 72px minmax(0, 1fr);
    gap: 0 16px;
    align-items: start;
    padding-left: 0;
  }

  .sv-num {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  .sv-num::before,
  .sv-num::after {
    display: none;
  }

  .sv-link {
    top: 64px;
    left: 32px !important;
    width: 2px !important;
    height: calc(100% - 64px + 44px);
  }

  .sv-link path {
    d: path("M1 0L1 100");
  }

  .sv-icon {
    width: 72px;
    height: 72px;
  }

  .sv-icon svg {
    width: 36px;
    height: 36px;
  }

  .sv-step-title {
    font-size: 17px;
  }

  .sv-step-body {
    font-size: 15px;
  }

  .sv-rule {
    display: none;
  }
}

@media screen and (max-width: 479px) {
  .sv-step {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sv-num {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .sv-link {
    top: 56px;
    left: 28px !important;
    height: calc(100% - 56px + 44px);
  }

  .sv-icon {
    display: none;
  }

  .sv-process-links {
    flex-direction: column;
    gap: 14px;
  }

  .sv-dot {
    display: none;
  }

  .sv-ctas .ff-button {
    width: 100%;
    text-align: center;
  }
}

/* The hand-drawn step illustrations fill their peach circle */
.sv-icon img {
  display: block;
  width: 94%;
  height: 94%;
  object-fit: contain;
}
