html {
  scroll-behavior: auto;
}

.rates-replica-hero .replica-hero-copy {
  width: min(520px, 88%);
  margin: 70px auto 0;
  text-align: center;
}
.rates-replica-hero h1 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.rates-replica-hero p {
  margin-left: auto;
  margin-right: auto;
}

.rates-intro {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: var(--section-space) 8vw;
  text-align: center;
}
.rates-intro h3 {
  max-width: 940px;
  margin: 0;
  color: var(--navy);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 27px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.room-catalog {
  display: flex;
  flex-direction: column;
  padding: 36px clamp(28px, 6vw, 112px) 120px;
  background: #fff;
}

.floor-group[aria-labelledby="upper-floor-title"] {
  order: 1;
}

.floor-group[aria-labelledby="lower-floor-title"] {
  order: 2;
  margin-top: 105px;
}
.floor-heading {
  margin: 0 0 42px;
  color: var(--navy);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}
.floor-heading::after {
  display: block;
  width: 130px;
  height: 20px;
  margin: 13px auto 0;
  background:
    linear-gradient(var(--navy), var(--navy)) left center / 48px 1px no-repeat,
    linear-gradient(var(--navy), var(--navy)) right center / 48px 1px no-repeat;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  content: "✦";
}
.rate-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px 34px;
}
.rate-card {
  min-width: 0;
  scroll-margin-top: 132px;
}

#lower-studio,
#upper-studio {
  order: 1;
}

#downstairs-pasture-view,
#upper-vista-view {
  order: 2;
}

#lower-corner-suite,
#upper-corner-suite {
  order: 3;
}

#lower-playroom {
  order: 4;
}

.rate-card-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e9e8e3;
  cursor: zoom-in;
}
.rate-card-photo::after {
  position: absolute;
  inset: 0;
  background: rgba(5, 24, 37, 0.13);
  content: "";
  transition: opacity 450ms ease;
}
.rate-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
.photo-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--navy);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(5px);
  transition:
    opacity 250ms ease,
    transform 250ms ease;
}
.photo-hint::before {
  display: inline-block;
  width: 13px;
  height: 11px;
  margin-right: 7px;
  border: 1px solid currentColor;
  background:
    radial-gradient(circle at 72% 28%, currentColor 0 1px, transparent 1.5px),
    linear-gradient(
        135deg,
        transparent 49%,
        currentColor 50% 55%,
        transparent 56%
      )
      left bottom / 62% 68% no-repeat,
    linear-gradient(
        45deg,
        transparent 48%,
        currentColor 49% 54%,
        transparent 55%
      )
      right bottom / 65% 82% no-repeat;
  content: "";
  vertical-align: -1px;
}
.photo-hint b {
  display: none;
}
.rate-card-photo:hover::after,
.rate-card-photo:focus-visible::after {
  opacity: 0;
}
.rate-card-photo:hover img,
.rate-card-photo:focus-visible img {
  transform: scale(1);
}
.rate-card-photo:hover .photo-hint,
.rate-card-photo:focus-visible .photo-hint {
  opacity: 1;
  transform: translateY(0);
}
.rate-card-photo:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.rate-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px 2px 0;
}
.rate-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.rate-card-heading h3 {
  margin: 0;
  color: #172f3d;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(25px, 2vw, 31px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.rate-card-price {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  margin: 0;
  color: var(--navy);
  white-space: nowrap;
}
.rate-card-price strong {
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rate-card-price > span {
  font-size: 14px;
  font-weight: 400;
}
.rate-card-price small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #657780;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}
.rate-card-description {
  order: 3;
  min-height: 3.25em;
  margin: 19px 0 0;
  color: var(--copy-dark);
  font-size: 15px;
  line-height: 1.65;
}
.rate-card-meta {
  order: 2;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 9px 0 0;
  padding-top: 15px;
  border-top: 1px solid #e2e5e4;
  color: #718087;
  font-size: 15px;
  line-height: 1.4;
}

.services-replica {
  min-height: 0;
  padding: var(--section-space) clamp(28px, 6vw, 112px);
  background: #faf6ec;
  scroll-margin-top: 113px;
}
.services-replica > h2 {
  margin: 0 0 14px;
}
.services-replica > .services-lead {
  max-width: none;
  margin: 0 auto 52px;
  color: #506873;
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  white-space: nowrap;
}
.service-replica-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.service-replica-grid article {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid rgba(14, 64, 97, 0.12);
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 42, 49, 0.045);
  text-align: left;
  transition:
    border-color 250ms ease,
    box-shadow 250ms ease;
}
.service-replica-grid article:hover {
  border-color: rgba(14, 64, 97, 0.28);
  box-shadow: 0 12px 28px rgba(30, 42, 49, 0.075);
}
.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}
.service-icon {
  display: grid;
  width: clamp(56px, 4vw, 66px);
  height: clamp(56px, 4vw, 66px);
  flex: 0 0 clamp(56px, 4vw, 66px);
  place-items: center;
}
.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-card-header strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--navy);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(26px, 2vw, 30px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.service-card-header small {
  flex: 0 0 auto;
  color: #657780;
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 400;
  letter-spacing: 0;
}
.service-replica-grid h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.service-replica-grid p {
  margin: 0;
  color: var(--copy-dark);
  font-size: 15px;
  line-height: 1.65;
}
.services-note {
  max-width: 900px;
  margin: 58px auto 0;
  color: var(--copy-dark);
  text-align: center;
}
.services-booking-note {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.75;
}
.services-disclaimer {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin: 0;
  padding: 19px 22px;
  border-left: 2px solid var(--navy);
  background: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
.services-disclaimer strong {
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .service-replica-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 1050px) {
  .rate-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 68px 30px;
  }
}

@media (max-width: 850px) {
  .service-replica-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-replica > .services-lead {
    max-width: 560px;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .rates-replica-hero .replica-hero-copy {
    width: 84%;
    margin: 85px auto 0;
  }
  .rates-replica-hero h1 {
    font-size: 42px;
  }
  .rates-intro {
    padding: var(--section-space-mobile) 8vw;
  }
  .rates-intro h3 {
    font-size: 23px;
  }
  .room-catalog {
    padding: 20px 8vw var(--section-space-mobile);
  }
  .floor-group[aria-labelledby="lower-floor-title"] {
    margin-top: 80px;
  }
  .rate-card-grid,
  .service-replica-grid {
    grid-template-columns: 1fr;
  }
  .rate-card-grid {
    gap: 58px;
  }
  .rate-card-description {
    min-height: 0;
  }
  .photo-hint {
    opacity: 1;
    transform: translateY(0);
  }
  .services-replica {
    padding: var(--section-space-mobile) 8vw;
  }
  .services-disclaimer {
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rate-card-photo img,
  .rate-card-photo::after,
  .photo-hint {
    transition: none;
  }
}
