/* Shared pieces from the RedDent reference (reddent.framer.website), in our identity:
   section label (◆ + 16px), 48px section heading, the pill button whose label rolls
   and whose arrow slips out/in on hover, and the section container that rises 80px.
   Motion values come from the reference's Framer springs (stiffness 300, damping 60,
   mass 1.2 ≈ 1s, no overshoot). */
.rd-section {
  padding: 120px var(--gutter);
}
.rd-container {
  max-width: var(--wrap);
  margin: 0 auto;
}

.rd-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: -0.3px;
  color: rgba(11, 41, 93, .75);
}
.rd-label::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.rd-label--light { color: rgba(253, 247, 235, .85); }

.rd-h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--navy);
}
.rd-h2--light { color: var(--cream); }

.rd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.rd-head__titles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Button — gold pill + 42px gold circle; label and arrow roll on hover */
.rd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 35px;
  height: 43px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 27.2px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  border: 0;
  background: none;
  cursor: pointer;
}
.rd-btn__pill {
  position: relative;
  display: grid;
  height: 43px;
  padding: 8px 16px;
  border-radius: 32px;
  background: var(--gold);
  overflow: hidden;
}
.rd-btn__label,
.rd-btn__label-hover {
  grid-area: 1 / 1;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.rd-btn__label-hover {
  font-weight: 500;
  transform: translateY(-30px);
}
.rd-btn__icon {
  position: absolute;
  right: 0;
  top: 0.5px;
  width: 42px;
  height: 42px;
  border-radius: 100px;
  background: var(--gold);
  overflow: hidden;
}
.rd-btn__icon svg {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.rd-btn__icon svg + svg { transform: translate(-34px, 34px); }
.rd-btn:hover .rd-btn__label,
.rd-btn:focus-visible .rd-btn__label { transform: translateY(30px); }
.rd-btn:hover .rd-btn__label-hover,
.rd-btn:focus-visible .rd-btn__label-hover { transform: none; }
.rd-btn:hover .rd-btn__icon svg:first-child,
.rd-btn:focus-visible .rd-btn__icon svg:first-child { transform: translate(34px, -34px); }
.rd-btn:hover .rd-btn__icon svg + svg,
.rd-btn:focus-visible .rd-btn__icon svg + svg { transform: none; }

/* Section rise (80px) and card rise (50px) — reference springs ≈ 1s, no overshoot */
.js [data-reveal="rise"].rd-rise {
  transition-duration: 1s, 1s;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1), cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 1199.98px) {
  .rd-h2 { font-size: 40px; }
}
@media (max-width: 809.98px) {
  .rd-section { padding: 80px var(--gutter); }
  .rd-h2 { font-size: 32px; }
  .rd-head { flex-direction: column; align-items: flex-start; gap: 24px; }
}
