:root {
  --navy: #011639;
  --blue: #123863;
  --ink: #10243c;
  --muted: #475d73;
  --paper: #f7f8fa;
  --white: #fff;
  --foam: #badfdf;
  --edge: #c8d4df;
  --radius: 1.35rem;
  --gutter: clamp(1rem, 5vw, 5rem);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: .24em; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; text-wrap: balance; }
::selection { background: var(--foam); color: var(--navy); }
:focus-visible { outline: 3px solid #598cae; outline-offset: 4px; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 30; padding: .5rem 1rem; background: white; }
.skip-link:not(:focus), .sr-only { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .65rem var(--gutter);
  background: var(--navy);
  color: white;
}
.brand { width: min(11rem, 100%); }
.brand img, footer img { display: block; width: 100%; height: 4.4rem; object-fit: cover; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); }
.nav a { padding: .65rem 0; font-size: .94rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.menu-toggle { display: none; }
.header-cta { justify-self: end; border: 1px solid #7795af; }

.header-cta, .primary-button, .secondary-button, .light-button, .floating-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3rem;
  padding: .65rem 1.25rem;
  border-radius: 99rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.header-cta:hover, .light-button:hover { background: var(--foam); color: var(--navy); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(3rem, 8vw, 8rem) max(var(--gutter), calc((100% - 85rem) / 2));
  min-height: min(42rem, 80svh);
  border-radius: 0 0 clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  background: radial-gradient(ellipse at 12% 100%, #17446b 0, transparent 57%), var(--navy);
  color: var(--white);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 68rem;
  height: 32rem;
  left: -20rem;
  bottom: -27rem;
  border: 1px solid rgb(186 223 223 / 36%);
  border-radius: 50%;
  transform: rotate(-13deg);
}
.hero::after { bottom: -25rem; left: -19rem; transform: rotate(-17deg); }
.hero-mark { width: clamp(8rem, 23vw, 19rem); position: absolute; z-index: -1; left: 0; bottom: -18%; opacity: .09; }
.hero-mark svg { fill: none; stroke: white; stroke-width: 2; }
.hero h1 { max-width: 11ch; font-size: clamp(3.2rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.035em; }
.hero-text { color: #e1ebf6; max-width: 34ch; margin-top: 1.4rem; font-size: clamp(1rem, 1.4vw, 1.2rem); }

.booking {
  width: min(100%, 31rem);
  justify-self: end;
  scroll-margin-top: 1rem;
  padding: clamp(1.15rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 45px rgb(0 0 0 / 20%);
}
.booking h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.15; text-align: left; }
.booking-heading { margin-bottom: 1rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.fields label:last-child { grid-column: 1 / -1; }
.fields span { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 700; }
.fields input, .fields select, .demo-dialog textarea {
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  padding: .55rem .65rem;
  border: 1px solid var(--edge);
  border-radius: .8rem;
  background: #f4f7fa;
  color: var(--ink);
}
.primary-button { width: 100%; margin-top: 1.15rem; border: 0; background: #134539; color: white; }
.primary-button:hover { background: #205c4c; }
.primary-button:disabled { opacity: .72; cursor: wait; }
.primary-button svg, .floating-reserve svg { width: 1.2rem; fill: currentColor; }
.booking-note { margin-top: .75rem; color: var(--muted); font-size: .875rem; text-align: center; }
.form-status { color: #96341f; margin-top: .5rem; }
.form-status:empty { margin: 0; }

.intro, .rooms, .closing { max-width: 75rem; margin-inline: auto; width: calc(100% - 2 * var(--gutter)); }
.intro {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6.5rem);
}
.intro h2, .rooms h2, .closing h2 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.08; text-align: left; }
.intro-copy, .rooms-copy p { color: var(--muted); font-size: 1.075rem; }
.rooms {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 1rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.rooms-copy, .social-panel { border-radius: var(--radius); padding: clamp(1.35rem, 4.5vw, 3.5rem); }
.rooms-copy { background: #eaf0f6; }
.rooms-copy p { margin: .85rem 0 1.35rem; max-width: 39ch; }
.secondary-button { background: var(--navy); color: white; }
.secondary-button:hover { background: var(--blue); }
.social-panel { display: grid; align-content: center; justify-items: start; gap: .8rem; border: 1px solid var(--edge); background: white; }
.social-panel svg { width: 2rem; color: var(--blue); }
.social-panel h2 { font-size: clamp(1.55rem, 2.9vw, 2.4rem); }
.social-panel a { font-weight: 700; }
.closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  padding: clamp(1.35rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 5vw, 5rem);
}
.contact-links { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; list-style: none; margin: 1rem 0 0; padding: 0; color: #d6e5f2; }
.contact-links a { color: white; font-weight: 700; }
.hotel-address { margin-top: 1rem; color: #d6e5f2; font-style: normal; }
.hotel-address a { display: inline-block; margin-top: .4rem; color: white; font-weight: 700; }
.hotel-address a + a { margin-inline-start: .85rem; }
.stay-info {
  width: calc(100% - 2 * var(--gutter));
  max-width: 75rem;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}
.stay-info h2 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.15; }
.stay-info dl { margin: 1.15rem 0 0; }
.stay-info dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: .4rem 1.25rem;
  border-top: 1px solid var(--edge);
  padding: .85rem 0;
}
.stay-info dt { font-weight: 700; }
.stay-info dd { margin: 0; color: var(--muted); max-width: 65ch; }
.photo-viewer[open] {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  border: 0;
  color: white;
  background: var(--navy);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .75rem;
}
body:has(.photo-viewer[open]) { overflow: hidden; }
.photo-viewer-bar, .photo-viewer-nav { display: flex; align-items: center; gap: .75rem; }
.photo-viewer-bar { justify-content: space-between; }
.photo-viewer-nav { justify-content: center; }
.photo-viewer img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-viewer button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .85rem;
  border: 1px solid #7795af;
  border-radius: 99rem;
  color: white;
  background: transparent;
  cursor: pointer;
}
.photo-viewer-nav button { font-size: 1.5rem; }
@media (max-width: 620px) {
  .stay-info dl > div { grid-template-columns: 1fr; }
}
.light-button { background: white; color: var(--navy); white-space: nowrap; }
.floating-reserve {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 15;
  background: #134539;
  color: white;
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}
.floating-reserve:hover { background: #205c4c; }
footer {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: 1.35rem;
  padding: 1.65rem var(--gutter) 4.8rem;
  background: var(--navy);
  color: #d6e5f2;
}
footer img { height: 3.5rem; }
footer div { display: grid; }
.demo-dialog { width: min(35rem, calc(100% - 2rem)); border: 0; border-radius: var(--radius); padding: 2rem; }
.demo-dialog::backdrop { background: rgb(1 22 57 / 76%); }
.demo-dialog textarea { min-height: 9rem; margin-top: 1rem; }
.dialog-close { position: absolute; top: .45rem; right: .65rem; border: 0; background: transparent; cursor: pointer; font-size: 1.75rem; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand { width: 9rem; }
  .brand img { height: 3.65rem; }
  .header-cta { display: none; }
  .menu-toggle {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid #7795af;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 1.08rem; height: 1px; background: white; }
  .nav { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); padding: .65rem 1.25rem; border-radius: 1rem; background: var(--blue); }
  .nav.open { display: grid; gap: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; padding-bottom: 2rem; gap: 1.45rem; }
  .hero h1 { font-size: clamp(2.65rem, 8.8vw, 4.8rem); }
  .hero-text { margin-top: .85rem; }
  .booking { justify-self: start; }
}

@media (max-width: 620px) {
  .intro, .rooms, footer { grid-template-columns: 1fr; }
  .closing { align-items: start; flex-direction: column; }
  footer img { width: 8rem; }
  .floating-reserve { padding-inline: 1rem; }
}
@media (max-width: 355px) { .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.hero-photo, .hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  transform: none;
}
.hero-photo { z-index: -2; object-fit: cover; object-position: center 53%; }
.hero::before {
  background: linear-gradient(90deg, rgb(1 22 57 / 88%), rgb(1 22 57 / 45%) 70%, rgb(1 22 57 / 30%));
}
.hero::after { content: none; }
.hotel-view { grid-column: 1 / -1; margin: 0; }
.hotel-view img {
  display: block;
  width: 100%;
  height: clamp(16rem, 44vw, 35rem);
  object-fit: cover;
  object-position: center 42%;
  border-radius: var(--radius);
}
.hotel-view figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.rooms { grid-template-columns: minmax(0, 1fr); padding-block: clamp(1.75rem, 4vw, 3.5rem) 0; }
.rooms-copy { background: transparent; padding: 0; }
.rooms-copy .room-gallery { max-width: 58rem; }
.rooms-copy p { max-width: 67ch; }
.intro:has(.hotel-view) { padding-block: clamp(2rem, 5vw, 4rem); }
.rooms-copy h3 { margin: 1rem 0 0; font-size: 1.15rem; }
.room-entry { margin-top: 1.75rem; padding-top: .75rem; border-top: 1px solid var(--edge); }
.room-gallery {
  display: flex;
  margin-bottom: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  border-radius: .8rem;
  background: var(--navy);
}
.room-gallery a { flex: 0 0 100%; scroll-snap-align: start; }
.room-gallery a:focus-visible { outline-offset: -5px; }
.room-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.gallery-controls:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 0 0 1rem;
}
.gallery-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-controls button:disabled { opacity: .45; cursor: default; }
.gallery-controls span { font-variant-numeric: tabular-nums; }

@media (max-width: 850px) {
  .hero {
    gap: 0;
    padding: 0 0 1.5rem;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
  }
  .hero::before { content: none; }
  .hero-photo {
    position: static;
    z-index: auto;
    grid-row: 1;
    height: clamp(12.75rem, 56vw, 26rem);
    object-position: center 48%;
  }
  .hero-copy {
    grid-row: 2;
    position: relative;
    width: min(100%, 40rem);
    margin: -1.1rem auto 0;
    padding: 1.15rem var(--gutter) 1rem;
    border-radius: 1.1rem 1.1rem 0 0;
    background: white;
  }
  .hero h1 { max-width: none; font-size: clamp(2.35rem, 8.5vw, 3.65rem); line-height: 1.05; text-wrap: initial; }
  .hero-text { margin-top: .4rem; max-width: none; color: var(--muted); font-size: .94rem; }
  .hero .booking {
    grid-row: 3;
    justify-self: center;
    width: min(calc(100% - 2 * var(--gutter)), calc(40rem - 2 * var(--gutter)));
    padding: 1rem 0 0;
    border-top: 1px solid var(--edge);
    border-radius: 0;
    background: white;
    box-shadow: none;
  }
  .hero .booking h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; }
  .hero .fields { gap: .7rem; }
  .hero .fields input, .hero .fields select { min-height: 2.85rem; }
  .hero .primary-button { margin-top: .85rem; }
  .floating-reserve.reserve-in-view { display: none; }
}
@media (max-width: 620px) {
  .rooms { grid-template-columns: 1fr; }
}
