/* Colours and type taken from the ONE Nathiagali mockup */
:root {
  --cream: #fefbea;
  --sand: #e6e3d6;
  --sand-dark: #cfccbd;
  --ink: #1e2d33;
  --muted: #5d686b;
  --charcoal: #1e2126;
  --gold: #a9833f;
  --danger: #a33b2e;
  --success: #3f6b4f;
  --sans: 'Montserrat', system-ui, sans-serif;
  --serif: 'Cinzel', Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 15px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.label.strong { font-weight: 600; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 24px 40px; color: #fff;
}
.site-header.solid { position: static; background: var(--charcoal); padding-block: 14px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav:last-child { justify-content: flex-end; }
.site-header nav a { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a.current { border-bottom-color: currentColor; }
.logo img { height: 74px; width: auto; }
.site-header.solid .logo img { height: 58px; }

/* Hero */
.hero { position: relative; height: min(100vh, 860px); min-height: 520px; overflow: hidden; color: #fff; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero h1 {
  position: absolute; top: 34%; left: 0; right: 0; text-align: center; font: 300 clamp(26px, 7.4vw, 110px)/1 var(--sans);
  letter-spacing: .42em; padding-left: .42em; opacity: .9; text-shadow: 0 1px 24px rgba(0, 0, 0, .3);
}
@media (min-aspect-ratio: 3/2) {
  .hero h1 { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
}
.hero p { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; margin: 0; font: 400 16px var(--serif); letter-spacing: .08em; }

/* Booking bar */
.booking-bar {
  display: grid; grid-template-columns: 1.35fr .7fr .9fr .7fr .7fr auto; gap: 18px; align-items: end;
  background: var(--sand); padding: 18px 26px; margin: 34px 16px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 40px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--sand-dark);
  border-radius: 0; background: transparent; color: var(--ink); font: 400 14px var(--sans);
}
.field textarea { resize: vertical; min-height: 72px; }
.btn {
  display: inline-block; min-height: 42px; padding: 11px 26px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--cream);
  font: 500 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: #0f1a1f; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sand); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Home sections */
.story { position: relative; text-align: center; padding: 130px 16px 130px; overflow: hidden; }
.story .mountains { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.story > div { position: relative; max-width: 620px; margin: 0 auto; }
.story h2 { font-size: 15px; font-weight: 600; letter-spacing: .16em; margin-bottom: 10px; }

.section-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 0 44px 22px; align-items: center; }
.section-head > :last-child { text-align: right; }
.section-head a { text-decoration: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figure:nth-child(2) { padding: 18px 0 0; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding-top: 12px; }
.gallery small { display: block; font-size: 11px; color: var(--muted); }

.banner { width: 100%; margin-top: 70px; }
.banner-wrap { position: relative; }
.banner-wrap h2 { position: absolute; top: 12%; left: 44px; color: #fff; font-size: clamp(20px, 3vw, 34px); letter-spacing: .1em; }
.banner-wrap h2 span { display: block; font-size: 12px; letter-spacing: .22em; }

.altura { padding: 70px 0 20px; }
.altura-art { max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.altura-text { text-align: center; max-width: 560px; margin: 10px auto 0; padding: 0 16px; }
.altura-text h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }

.more { text-align: center; padding: 70px 0 30px; }
.more h2 { font: 400 clamp(60px, 10vw, 132px)/1 var(--serif); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 34px 18px 0; }
.more-grid figure { position: relative; margin: 0; }
.more-grid img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.more-grid figcaption { position: absolute; left: 18px; bottom: 12px; color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.advisory { padding: 60px 44px 80px; }
.advisory > div { max-width: 640px; margin: 30px auto 0; text-align: center; font-size: 14px; }

/* Footer */
.site-footer { background: var(--charcoal); color: #fff; padding: 46px 16px 34px; text-align: center; font-size: 13px; }
.site-footer img { height: 110px; width: auto; margin: 0 auto 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 2px 0; }

/* Booking page */
.book-page { max-width: 1180px; margin: 0 auto; padding: 44px 20px 90px; }
.book-page > h1 { font: 400 clamp(28px, 4vw, 42px)/1.15 var(--serif); text-align: center; margin-bottom: 8px; }
.book-page > .intro { text-align: center; margin: 0 0 26px; }
.book-page .booking-bar { margin: 0 0 40px; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.room-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--sand); }
.room-gallery { position: relative; min-height: 200px; overflow: hidden; background: var(--sand); }
.room-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-open { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-open:focus-visible { outline-offset: -4px; }
.gallery-expand { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; background: rgba(30, 33, 38, .75); color: #fff; }
.gallery-expand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #14161a; color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 24px; }
.lightbox-head h2 { flex: 1; min-width: 0; font: 400 18px/1.3 var(--serif); overflow-wrap: anywhere; }
.lightbox-head span { font-size: 13px; white-space: nowrap; }
.lightbox-close { width: 44px; height: 44px; flex: none; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .12); }
.lightbox-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; min-width: 0; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 16px 16px; scroll-snap-align: center; scroll-snap-stop: always; }
.lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-arrow { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(254, 251, 234, .9); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-arrow:hover { background: var(--cream); }
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }
.gallery-arrow {
  position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%;
  background: rgba(254, 251, 234, .88); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.gallery-arrow:hover { background: var(--cream); }
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 1px 8px; background: rgba(30, 33, 38, .75); color: #fff; font-size: 11px; }
.room-card h3 { font: 400 20px/1.3 var(--serif); }
.room-card.sold-out img { filter: grayscale(.8); opacity: .7; }
.room-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin: 10px 0 14px; }
.room-buy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-size: 18px; font-weight: 500; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.stepper button { width: 42px; height: 40px; border: 0; background: transparent; font-size: 18px; color: var(--ink); cursor: pointer; }
.stepper button:hover:not([disabled]) { background: var(--sand); }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 34px; text-align: center; font-weight: 500; }

.summary { position: sticky; top: 20px; background: var(--sand); padding: 24px; }
.summary h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary hr { border: 0; border-top: 1px solid var(--sand-dark); margin: 14px 0; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 600; }
.summary .btn { width: 100%; margin-top: 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.guest-form { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding-top: 6px; }
.guest-form .wide { grid-column: 1 / -1; }
.guest-form h2 { font: 400 22px var(--serif); }
.alert { background: #f6e3dc; color: #7c2a1e; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; }

.confirmation { max-width: 620px; margin: 0 auto; text-align: center; }
.confirmation h1 { font: 400 clamp(28px, 4vw, 40px)/1.2 var(--serif); margin-bottom: 8px; }
.confirmation .reference { font: 500 26px var(--sans); letter-spacing: .1em; margin: 18px 0; padding: 16px; background: var(--sand); overflow-wrap: anywhere; }
.confirmation dl { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 22px 0; }
.confirmation dt { color: var(--muted); }
.confirmation dd { margin: 0; text-align: right; }

@media (max-width: 1000px) {
  .booking-bar { grid-template-columns: repeat(3, 1fr); }
  .booking-bar .btn { grid-column: 1 / -1; }
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-header { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 14px 16px; }
  .site-header nav { flex-wrap: wrap; justify-content: center; gap: 6px 18px; order: 2; }
  .site-header nav:last-child { justify-content: center; order: 3; }
  .logo { order: 1; }
  .hero h1 { letter-spacing: .24em; padding-left: .24em; }
  .booking-bar { grid-template-columns: 1fr 1fr; margin-inline: 16px; padding: 16px; }
  .booking-bar .field:first-child { grid-column: 1 / -1; }
  .section-head { grid-template-columns: 1fr auto; padding-inline: 16px; }
  .section-head > :first-child { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:not(:nth-child(2)) { display: none; }
  .gallery figcaption { padding-inline: 16px; }
  .banner-wrap h2 { left: 16px; }
  .advisory { padding-inline: 16px; }
  .room-card { grid-template-columns: 1fr; }
  .room-gallery { height: 220px; }
  .lightbox-arrow { display: none; }
  .lightbox-slide { padding-inline: 0; }
  .lightbox-head { padding-left: 16px; }
  .guest-form { grid-template-columns: 1fr; }
}
