/* =========================================
   UPTOME — RESERVATION
========================================= */

.reservation-page {
  --reservation-gutter: clamp(24px, 5vw, 82px);
  --reservation-section: clamp(88px, 8vw, 132px);
  --reservation-muted: rgba(20, 36, 64, 0.64);
  overflow: hidden;
  color: #000;
}

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

.reservation-shell {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding-inline: var(--reservation-gutter);
}

.reservation-page img {
  display: block;
  max-width: 100%;
}

/* 예약 페이지에서 공통 section 여백을 일관되게 재설정 */
.reservation-page .section {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: var(--reservation-section) var(--reservation-gutter);
}

/* 01. BOOKING */


.booking-buttons {
  margin-top: clamp(42px, 4.5vw, 62px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-buttons .booking-card {
  position: relative;
  min-width: 0;
  min-height: clamp(220px, 17vw, 260px);
  padding: clamp(28px, 2.7vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  border: 1px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  transition:
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease,
    transform .35s ease;
}

.booking-card--primary {
  background: var(--navy);
  color: var(--ivory) !important;
}

.booking-card--secondary {
  background: rgba(255, 255, 255, .16);
  color: var(--navy);
}

.booking-card__head,
.booking-card__foot {
  min-width: 0;
  display: flex;
  justify-content: space-between;
}

.booking-card__head {
  align-items: center;
  gap: 24px;
}

.booking-card__foot {
  align-items: flex-end;
  gap: 28px;
}

.booking-card__index {
  flex: 0 0 auto;
  font-family: var(--serif-en);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: currentColor;
  opacity: .58;
}

.booking-card__label {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .16em;
  text-align: right;
  text-transform: uppercase;
  color: currentColor;
  opacity: .58;
}

.booking-card__copy {
  min-width: 0;
}

.booking-card__copy strong {
  display: block;
  color: currentColor;
  font-size: clamp(25px, 1.55vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.03em;
  text-transform: none;
}

.booking-card__copy small {
  display: block;
  margin-top: 9px;
  color: currentColor;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .015em;
  text-transform: none;
  opacity: .6;
}

.booking-card__arrow {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  opacity: 1;
  visibility: visible;
  transition:
    transform .35s cubic-bezier(.22, 1, .36, 1),
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease;
}

.booking-buttons .booking-card:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}

.booking-buttons .booking-card:active {
  transform: scale(.992);
}

@media (hover: hover) and (pointer: fine) {
  .booking-buttons .booking-card--primary:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: #fff !important;
    transform: translateY(-3px);
  }

  .booking-buttons .booking-card--secondary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    transform: translateY(-3px);
  }

  .booking-buttons .booking-card:hover .booking-card__arrow {
    background-color: var(--ivory);
    border-color: var(--ivory);
    color: var(--navy);
    opacity: 1;
    visibility: visible;
    transform: translate(2px, -2px);
  }
}

/* 02. NOTICE */
.reservation-notice {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: start;
  padding-top: clamp(72px, 7vw, 112px) !important;
}

.reservation-notice h2 {
  margin: 0;
  font-size: clamp(60px, 7.5vw, 108px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.05em;
}

.reservation-notice .notice-list {
  margin: 0;
}

.reservation-notice .notice-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(20, 36, 64, .18);
}

.reservation-notice .notice-list article:first-child {
  padding-top: 4px;
}

.reservation-notice .notice-list span {
  padding-top: 3px;
  font-size: 10px;
  letter-spacing: .12em;
}

.reservation-notice .notice-list p {
  margin: 0;
  color: var(--reservation-muted);
  font-size: 14px;
  line-height: 1.85;
  word-break: keep-all;
}

/* 03. PET */
.reservation-pet {
  padding: var(--reservation-section) 0 clamp(38px, 4vw, 64px);
  background: var(--navy);
}

.reservation-pet__card {
  min-height: clamp(420px, 40vw, 600px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(42px, 5vw, 78px);
  background: var(--paper);
}

.reservation-pet h2 {
  margin: 0;
  font-size: clamp(54px, 7vw, 102px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}

.reservation-pet p {
  max-width: 590px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  color: var(--reservation-muted);
  font-size: 14px;
  line-height: 1.85;
  word-break: keep-all;
}

.reservation-pet__illustration {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
}

.reservation-pet__illustration img {
  width: min(100%, 340px);
  margin-top: auto;
  object-fit: contain;
}

/* 04. LETTERING */
.reservation-lettering {
  padding: 0 0 clamp(44px, 5vw, 76px);
  background: var(--navy);
}

.reservation-lettering__card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  background: var(--paper);
}

.reservation-lettering__image {
  min-height: clamp(500px, 46vw, 690px);
  background: url("../images/lettering.webp") 62% 44% / cover no-repeat;
}

.reservation-lettering__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5vw, 78px);
}

.reservation-lettering h2 {
  margin: 0;
  font-size: clamp(52px, 6.2vw, 92px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}

.reservation-lettering p {
  max-width: 520px;
  margin: clamp(26px, 3vw, 40px) 0 0;
  color: var(--reservation-muted);
  font-size: 14px;
  line-height: 1.85;
  word-break: keep-all;
}

@media (max-width: 850px) {
  .reservation-page {
    --reservation-gutter: 22px;
    --reservation-section: 64px;
  }

  .reservation-page .section {
    padding: var(--reservation-section) var(--reservation-gutter);
  }

  .booking-section {
    padding-top: 0px;
    display: block;
  }

  .booking-section .section-index {
    display: none;
  }

  .booking-section__content h1 {
    font-size: clamp(46px, 14vw, 68px);
    line-height: .92;
  }

  .booking-buttons {
    margin-top: 34px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .booking-buttons .booking-card {
    min-height: 190px;
    padding: 25px 22px;
    gap: 28px;
  }

  .booking-card__head {
    gap: 18px;
  }

  .booking-card__foot {
    gap: 20px;
  }

  .booking-card__index {
    font-size: 15px;
  }

  .booking-card__label {
    font-size: 10.5px;
    letter-spacing: .14em;
  }

  .booking-card__copy strong {
    font-size: 21px;
  }

  .booking-card__copy small {
    margin-top: 7px;
    font-size: 11.5px;
  }

  .booking-card__arrow {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .reservation-notice {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 0px !important;
    padding-bottom: 60px !important;
  }

  .reservation-notice h2 {
    font-size: clamp(44px, 13vw, 62px);
    line-height: .92;
    text-align: left;
  }

  .reservation-notice .notice-list article {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .reservation-notice .notice-list article:first-child {
    padding-top: 0;
  }

  .reservation-notice .notice-list p {
    font-size: 13px;
    line-height: 1.75;
  }

  .reservation-pet {
    padding: 44px 0 18px;
  }

  .reservation-pet__card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 22px 0;
  }

  .reservation-pet h2,
  .reservation-lettering h2 {
    font-size: clamp(42px, 13vw, 58px);
    line-height: .94;
  }

  .reservation-pet p,
  .reservation-lettering p {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.75;
  }

  .reservation-pet__illustration {
    min-height: 150px;
    justify-content: flex-end;
  }

  .reservation-pet__illustration img {
    width: min(58vw, 230px);
  }

  .reservation-lettering {
    padding-bottom: 24px;
  }

  .reservation-lettering__card {
    grid-template-columns: 1fr;
  }

  .reservation-lettering__image {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .reservation-lettering__content {
    padding: 32px 22px 38px;
  }
}

@media (max-width: 390px) {
  .reservation-page {
    --reservation-gutter: 20px;
    --reservation-section: 56px;
  }

  .booking-buttons .booking-card {
    min-height: 176px;
  }

  .reservation-pet {
    padding-top: 36px;
  }

  .reservation-lettering {
    padding-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-buttons .booking-card,
  .booking-card__arrow {
    transition: none;
  }
}


/* =========================================
   MOBILE LETTERING — IMAGE HEIGHT / LINE FIX
========================================= */

@media (max-width: 850px) {
  .reservation-lettering__image {
    width: 100%;
    min-height: 0;
    height: auto;

    /* 기존 4 / 5보다 사진 높이를 짧게 */
    aspect-ratio: 1 / 1;

    background-position: 62% 52%;
    border: 0;
    outline: 0;
    box-shadow: none;
  }
}

/* =========================================
   05. RESERVATION CTA
   Same visual language as menu.html
========================================= */

.menu-reservation {
  position: relative;
  min-height: min(86svh, 920px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  isolation: isolate;
}

.menu-reservation__image,
.menu-reservation__shade {
  position: absolute;
  inset: 0;
}

.menu-reservation__image {
  z-index: -2;
  background: url("../images/uptome.webp") center 54% / cover no-repeat;
  transform: scale(1);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

.menu-reservation__shade {
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 14, 20, .08) 12%,
      rgba(5, 14, 20, .24) 48%,
      rgba(5, 14, 20, .88) 100%
    );
}

.menu-reservation__content {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding:
    clamp(90px, 10vw, 150px)
    var(--reservation-gutter)
    clamp(68px, 7vw, 104px);
}

.menu-reservation__content h2 {
  max-width: 1120px;
  margin: clamp(34px, 4vw, 58px) 0 0;
  color: #fff;
  font-size: clamp(60px, 8vw, 128px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}

.menu-reservation__actions {
  margin-top: clamp(50px, 6vw, 84px);
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  gap: 14px;
}

.menu-reservation .cta-button,
.menu-reservation .outline-button {
  width: 100%;
  min-width: 0;
  min-height: 62px;
}

.menu-reservation .outline-button {
  padding: 0 20px;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

@media (hover: hover) and (pointer: fine) {
  .menu-reservation:hover .menu-reservation__image {
    transform: scale(1.025);
  }

  .menu-reservation .outline-button:hover {
    background: var(--ivory);
    border-color: var(--ivory);
    color: var(--navy);
  }

  .menu-reservation .outline-button:hover .button-arrow {
    transform: translateX(5px);
  }
}

@media (max-width: 850px) {
  .menu-reservation {
    min-height: 78svh;
  }

  .menu-reservation__image {
    background-position: 58% center;
  }

  .menu-reservation__content {
    padding:
      var(--reservation-section)
      var(--reservation-gutter)
      calc(54px + env(safe-area-inset-bottom));
  }

  .menu-reservation__content h2 {
    margin-top: 28px;
    font-size: clamp(50px, 15vw, 70px);
    line-height: .94;
  }

  .menu-reservation__actions {
    margin-top: 46px;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-reservation__image {
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* =========================================
   BOOKING — HEADER GAP FIX
========================================= */

.reservation-page .booking-section {
  padding-top: clamp(24px, 3vw, 42px);
}

.booking-section__content h1,
.booking-section__content h2 {
  margin: 0;

  font-size: clamp(40px, 8vw, 60px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.05em;
}

@media (max-width: 850px) {
  .reservation-page .booking-section {
    padding-top: 4px;
  }

  .booking-section__content h1,
  .booking-section__content h2 {
    margin: 0;
    font-size: clamp(46px, 14vw, 68px);
    line-height: .92;
  }
}