/* Good Sam / Book Your Site — live-text recreation of the approved 1672 × 941 comp.
   The complete artwork is fitted inside the same hero rails and a 1900 × 900 stage.
   Every visible word, rating and action remains selectable HTML. */

.gsb {
  --frame: 1900px;
  --rail: 170px;
  --paper: #faf6ef;
  --navy: #073b57;
  --sand: #917658;
  --teal: #08b69c;
  --u: calc((min(100cqw, var(--frame)) - 2 * var(--rail)) / 1672);
  --heading-unit: calc(min(100cqw, var(--frame)) * 900 / 1900 / 818);
  padding: 150px 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--navy);
}

.gsb__stage {
  position: relative;
  width: min(100%, var(--frame));
  aspect-ratio: 1900 / 900;
  margin: 0 auto;
}

.gsb__plate {
  position: absolute;
  z-index: 0;
  left: var(--rail);
  top: calc((100% - 941 * var(--u)) / 2);
  width: calc(1672 * var(--u));
  height: calc(941 * var(--u));
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Compact Good Sam card from the approved upper-right composition. */
.gsb__card {
  position: absolute;
  z-index: 2;
  left: calc(var(--rail) + 962 * var(--u));
  right: auto;
  top: calc((100% - 941 * var(--u)) / 2 + 137 * var(--u));
  width: calc(621 * var(--u));
  height: calc(212 * var(--u));
  margin: 0;
  border-radius: calc(22 * var(--u));
  background: rgba(255,255,255,.96);
  box-shadow: 0 calc(13 * var(--u)) calc(30 * var(--u)) calc(-15 * var(--u)) rgba(20,48,43,.24);
}

.gsb__card::after {
  content: "";
  position: absolute;
  left: calc(166 * var(--u));
  top: calc(145 * var(--u));
  width: calc(423 * var(--u));
  height: 1px;
  background: rgba(15,46,42,.14);
}

.gsb__shield {
  position: absolute;
  left: calc(34 * var(--u));
  top: calc(44 * var(--u));
  width: calc(100 * var(--u));
  height: auto;
  filter: drop-shadow(0 calc(7 * var(--u)) calc(8 * var(--u)) rgba(20,40,15,.22));
}

.gsb__card h2 {
  position: absolute;
  left: calc(166 * var(--u));
  top: calc(40 * var(--u));
  margin: 0;
  color: #0f3531;
  font: 400 calc(32 * var(--u))/1 "PHA Bauer Bodoni", Georgia, serif;
  letter-spacing: 0;
  word-spacing: calc(1 * var(--u));
  white-space: nowrap;
}

.gsb__ratings {
  position: absolute;
  left: calc(166 * var(--u));
  top: calc(91 * var(--u));
  display: flex;
  align-items: baseline;
  gap: calc(25 * var(--u));
  margin: 0;
}

.gsb__rating {
  position: static;
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: calc(7 * var(--u));
  width: auto;
  margin: 0;
  text-align: left;
}

.gsb__rating dd,
.gsb__rating dt {
  position: static;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.gsb__rating dd,
.gsb__rating:nth-child(-n+2) dd {
  color: #0b3a31;
  font: 400 calc(31 * var(--u))/1 "PHA Bauer Bodoni", Georgia, serif;
  letter-spacing: calc(-1 * var(--u));
}

.gsb__rating dt {
  color: #737475;
  font: 400 calc(15.5 * var(--u))/1 "Univers Next", Arial, sans-serif;
  letter-spacing: calc(-.2 * var(--u));
}

.gsb__card p {
  position: absolute;
  left: calc(166 * var(--u));
  top: calc(164 * var(--u));
  margin: 0;
  color: #686d70;
  font: 400 calc(16.3 * var(--u))/1.25 "Univers Next", Arial, sans-serif;
  letter-spacing: calc(-.1 * var(--u));
  word-spacing: 0;
  white-space: nowrap;
}

/* Booking copy follows the reference coordinates inside the rail-aligned artwork. */
.gsb__copy {
  position: absolute;
  z-index: 2;
  left: calc(var(--rail) + 973 * var(--u));
  right: auto;
  top: calc((100% - 941 * var(--u)) / 2 + 397 * var(--u));
  width: calc(610 * var(--u));
  height: calc(430 * var(--u));
  color: var(--navy);
}

.gsb__wave { display: none; }

.gsb__gulls {
  position: absolute;
  left: calc(515 * var(--u));
  top: calc(-345 * var(--u));
  width: calc(148 * var(--u));
  height: auto;
  pointer-events: none;
}

/* Exact display treatment shared with “234 yards to the sand.” */
.gsb__copy h2 {
  position: static;
  margin: 0;
  color: var(--navy);
  font-family: "PHA Bauer Bodoni", Georgia, serif;
  font-size: calc(78 * var(--heading-unit));
  font-weight: 400;
  line-height: .99;
  letter-spacing: calc(-.78 * var(--heading-unit));
  word-spacing: 0;
  white-space: nowrap;
}

.gsb__copy h2 span {
  display: block;
  white-space: nowrap;
}

.gsb__copy h2 em {
  position: static;
  display: inline-block;
  margin: 0 0 0 calc(6 * var(--heading-unit));
  color: var(--sand);
  font-family: "PHA Snell Roundhand", Georgia, serif;
  font-size: calc(86 * var(--heading-unit));
  font-weight: 400;
  font-style: normal;
  line-height: .72;
  letter-spacing: 0;
  word-spacing: 0;
  vertical-align: calc(-1 * var(--heading-unit));
  transform: rotate(-1.5deg);
  transform-origin: left center;
  -webkit-text-stroke: calc(.2 * var(--heading-unit)) currentColor;
}

.gsb__lead {
  position: absolute;
  left: 0;
  top: calc(228 * var(--u));
  margin: 0;
  color: #626a70;
  font: 400 clamp(16px, calc(19.4 * var(--u)), 20px)/1.55 "Univers Next", Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.gsb__actions {
  position: absolute;
  left: 0;
  top: calc(342 * var(--u));
  display: flex;
  gap: calc(18 * var(--u));
}

.gsb__btn {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: calc(69 * var(--u));
  border-radius: 999px;
  font: 400 clamp(16px, calc(19 * var(--u)), 20px)/1 "Univers Next", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.gsb__btn--book {
  justify-content: space-between;
  width: calc(219 * var(--u));
  padding: 0 calc(24 * var(--u)) 0 calc(31 * var(--u));
  border: 0;
  background: var(--teal);
  color: #fff;
  letter-spacing: calc(.35 * var(--u));
}

.gsb__btn--book i {
  display: grid;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.gsb__btn--book svg {
  width: calc(13 * var(--u));
  height: calc(10 * var(--u));
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gsb__btn--call {
  justify-content: center;
  width: calc(189 * var(--u));
  padding: 0 calc(22 * var(--u));
  border: calc(1.5 * var(--u)) solid #55c4b0;
  background: rgba(250,246,239,.78);
  color: #0b7160;
  letter-spacing: calc(.3 * var(--u));
}

.gsb__btn--book:hover,
.gsb__btn--book:focus-visible { background: #049679; }
.gsb__btn--call:hover,
.gsb__btn--call:focus-visible { background: #0b7160; border-color: #0b7160; color: #fff; }
.gsb__btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

@media (max-width: 1450px) {
  .gsb { --rail: clamp(80px, 8.947vw, 170px); }
}

/* Compact screens retain the artwork and content hierarchy without collisions. */
@media (max-width: 1200px) {
  .gsb {
    --rail: clamp(80px, 8.947vw, 107px);
    padding: 150px 0;
  }

  .gsb__stage {
    display: flex;
    width: 100%;
    aspect-ratio: auto;
    flex-direction: column;
    margin: 0;
    padding: 0 var(--rail);
  }

  .gsb__plate {
    position: relative;
    order: 1;
    left: auto;
    top: auto;
    width: calc(100% + 2 * var(--rail));
    height: clamp(300px, 74vw, 520px);
    margin: 0 calc(-1 * var(--rail));
    object-fit: cover;
    object-position: left center;
  }

  .gsb__card {
    position: relative;
    order: 2;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 28px;
    padding: 24px 20px 20px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 18px;
    box-shadow: 0 14px 30px -14px rgba(20,48,43,.34);
  }

  .gsb__card::after { display: none; }
  .gsb__shield { position: static; grid-row: 1 / span 2; width: 64px; align-self: start; margin-top: 2px; }
  .gsb__card h2 { position: static; grid-column: 2; font-size: 26px; line-height: 1.1; white-space: normal; }
  .gsb__ratings { position: static; grid-column: 1 / -1; display: flex; justify-content: space-around; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(20,48,43,.1); }
  .gsb__rating { flex-direction: column-reverse; align-items: center; gap: 6px; }
  .gsb__rating dd,
  .gsb__rating:nth-child(-n+2) dd { font-size: 29px; letter-spacing: -1px; }
  .gsb__rating dt { font-size: 13px; letter-spacing: 0; }
  .gsb__card p { position: static; grid-column: 1 / -1; margin-top: 16px; font-size: 15px; line-height: 1.5; white-space: normal; }

  .gsb__copy {
    position: relative;
    order: 3;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 48px;
    padding: 0;
  }

  .gsb__gulls { left: auto; right: 0; top: -34px; width: 104px; }
  .gsb__lead { position: static; margin-top: 38px; font-size: 17px; line-height: 1.55; white-space: normal; }
  .gsb__lead br { display: none; }
  .gsb__actions { position: static; margin-top: 26px; flex-wrap: wrap; gap: 12px; }
  .gsb__btn { width: auto; height: 56px; font-size: 16px; }
  .gsb__btn--book { gap: 18px; padding: 0 10px 0 23px; }
  .gsb__btn--book i { width: 36px; height: 36px; }
  .gsb__btn--call { padding-inline: 24px; border-width: 1.5px; }
}

@media (max-width: 900px) {
  .gsb { --rail: 24px; }
}
