/* =========================================================
   Reef's End Lodge
   1. tokens
   2. reset & base
   3. type & links
   4. buttons, eyebrows, small parts
   5. header & nav
   6. hero & chart strip
   7. intro & mosaic
   8. rooms
   9. in the water
   10. a day here
   11. getting here
   12. awards
   13. enquire & form
   14. footer
   15. lightbox
   ========================================================= */

/* ---------------- 1. tokens ---------------- */
:root {
  --ink:       #0b262b;
  --ink-soft:  #3f565b;
  --sea:       #0f6f7c;
  --sea-deep:  #072f36;
  --mist:      #e8f1f1;
  --sand:      #f2ece1;
  --line:      #d8e3e3;
  --line-dark: rgba(255, 255, 255, 0.18);
  --paper:     #ffffff;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --wide:   1280px;
  --measure: 34em;

  --step: clamp(56px, 9vw, 128px);   /* vertical rhythm between sections */
}

/* ---------------- 2. reset & base ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------- 3. type & links ---------------- */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  margin: 0 0 22px;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--sea); }

.link {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link:hover { color: var(--ink); }

/* ---------------- 4. small parts ---------------- */
.eyebrow {
  margin: 0 0 16px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sea);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.8); }

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--sea);
  color: #fff;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 0.9375rem; }

.ticks { margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  max-width: var(--measure);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 11px;
  height: 5px;
  border-left: 1.5px solid var(--sea);
  border-bottom: 1.5px solid var(--sea);
  transform: rotate(-45deg);
}

.section {
  padding: var(--step) var(--gutter);
  max-width: var(--wide);
  margin: 0 auto;
}

.section__head {
  display: grid;
  gap: 20px 60px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 860px) {
  .section__head { grid-template-columns: 1.25fr 1fr; align-items: end; }
}
.section__note {
  font-size: 1rem;
  color: var(--ink-soft);
  padding-bottom: 6px;
}
.section__note--light { color: rgba(255, 255, 255, 0.72); }
.section__more { margin-top: 40px; }

/* ---------------- 5. header & nav ---------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px var(--gutter);
  transition: padding 0.25s ease;
}
.header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}
.header.is-solid .header__bar { padding-top: 14px; padding-bottom: 14px; }

.wordmark {
  font-family: var(--f-display);
  font-size: 1.375rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.wordmark__sub {
  display: block;
  margin-top: 5px;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
}
.header.is-solid .wordmark { color: var(--ink); }
.header.is-solid .wordmark__sub { color: var(--sea); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  font-size: 0.9375rem;
  color: #fff;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav__list a:hover, .nav__list a:focus-visible { border-bottom-color: currentColor; }
.header.is-solid .nav__list a { color: var(--ink); }
.header.is-solid .nav__list a:hover { color: var(--sea); }

.burger {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.burger__lines {
  position: relative;
  display: block;
  width: 22px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
.header.is-solid .burger { color: var(--ink); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 0 var(--gutter);
    background: var(--sea-deep);
    transform: translateY(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a {
    display: block;
    padding: 10px 0;
    font-family: var(--f-display);
    font-size: 1.75rem;
    color: #fff;
    border: 0;
  }
  .nav__cta { margin-top: 26px; }
  /* keep the menu button visible above the open panel */
  .burger { position: relative; z-index: 101; }
  .nav.is-open ~ .burger,
  .header.is-solid .nav.is-open ~ .burger { color: #fff; }
}

/* shared by the mobile menu and the lightbox */
body.nav-open { overflow: hidden; }

/* ---------------- 6. hero & strip ---------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  padding: 160px var(--gutter) clamp(48px, 7vw, 88px);
  overflow: hidden;
  background: var(--sea-deep);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 33, 38, 0.86) 0%, rgba(7, 33, 38, 0.42) 42%, rgba(7, 33, 38, 0.12) 70%, rgba(7, 33, 38, 0.35) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  color: #fff;
}
.hero__title {
  font-size: clamp(2.9rem, 9vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 26px;
}
.hero__lead {
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}
.hero__price {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero__price strong { color: #fff; font-weight: 600; }

.strip {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}
.strip__list {
  display: grid;
  gap: 2px 48px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 26px var(--gutter);
  list-style: none;
  font-size: 0.9375rem;
}
@media (min-width: 760px) {
  .strip__list { grid-template-columns: repeat(4, 1fr); }
}
.strip__list li { color: #fff; }
.strip__list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}

/* ---------------- 7. intro & mosaic ---------------- */
.intro { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1fr 1.05fr; align-items: start; }
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mosaic__item {
  padding: 0;
  border: 0;
  background: var(--mist);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 2px;
}
.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}
.mosaic__item:hover img { transform: scale(1.04); }
.mosaic__item { aspect-ratio: 4 / 3; }
/* the tall one stretches to fill both rows, so it must not also be
   pinned to a ratio - the grid decides its height */
.mosaic__item--tall { grid-row: span 2; aspect-ratio: auto; }
.mosaic__item--wide { grid-column: span 2; aspect-ratio: 16 / 7; }

/* ---------------- 8. rooms ---------------- */
.rooms {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
}
@media (min-width: 640px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .rooms { grid-template-columns: repeat(4, 1fr); } }

.room__img {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 20px;
  aspect-ratio: 4 / 5;
  background: var(--mist);
}
.room__img img { width: 100%; height: 100%; object-fit: cover; }
.room__name {
  font-size: 1.375rem;
  margin-bottom: 10px;
}
.room__desc { font-size: 1rem; margin-bottom: 12px; }
.room__meta {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--sea);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------------- 9. in the water ---------------- */
.section--dark {
  max-width: none;
  background: var(--sea-deep);
  color: rgba(255, 255, 255, 0.8);
}
.section--dark .h2, .section--dark h3 { color: #fff; }
.section--dark > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }

.water { display: grid; gap: clamp(28px, 3vw, 42px); }
@media (min-width: 780px) { .water { grid-template-columns: repeat(3, 1fr); } }

.water__card {
  color: inherit;
  text-decoration: none;
  display: block;
}
.water__img {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  margin-bottom: 22px;
}
.water__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.water__card:hover .water__img img { transform: scale(1.05); }
.water__name {
  font-size: 1.625rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
}
.water__card p { font-size: 1rem; max-width: 30em; }
.water__card:hover .water__name { border-bottom-color: rgba(255, 255, 255, 0.6); }

/* ---------------- 10. a day here ---------------- */
.section--day {
  max-width: none;
  background: var(--sand);
}
.section--day > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }

.day__head { margin-bottom: clamp(32px, 4vw, 52px); }
.day__now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 8px 16px 8px 12px;
  background: rgba(15, 111, 124, 0.1);
  border-radius: 100px;
  font-size: 0.9375rem;
  color: var(--sea);
}
.day__now strong { color: var(--ink); font-weight: 600; }
.day__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sea);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.day {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(11, 38, 43, 0.14);
}
.day__row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px 24px;
  padding: 18px 20px 18px 18px;
  border-bottom: 1px solid rgba(11, 38, 43, 0.14);
  transition: background-color 0.2s ease;
}
@media (max-width: 560px) {
  .day__row { grid-template-columns: 1fr; gap: 4px; }
}
.day__time {
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--sea);
  padding-top: 0.28em;
}
.day__what { max-width: 46em; }
.day__what strong { color: var(--ink); font-weight: 600; }

.day__row.is-now {
  position: relative;
  background: rgba(255, 255, 255, 0.68);
}
.day__row.is-now::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--sea);
}
.day__row.is-now .day__time { font-weight: 600; }

/* ---------------- 11. getting here ---------------- */
.section--getting { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) {
  .section--getting { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.steps { margin: 0; padding: 0; list-style: none; }
.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n {
  grid-row: span 2;
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--sea);
  line-height: 1.2;
}
.steps h3 { font-size: 1.25rem; }
.steps p { font-size: 1rem; margin: 4px 0 0; }

/* ---------------- 12. awards ---------------- */
.awards {
  padding: clamp(40px, 5vw, 64px) var(--gutter);
  background: var(--mist);
  text-align: center;
}
.awards__label {
  margin: 0 auto 26px;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--sea);
}
.awards__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.awards__list img {
  height: 62px;
  width: auto;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* ---------------- 13. enquire & form ---------------- */
.enquire {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  padding: var(--step) var(--gutter);
  background: var(--sea-deep);
  color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 900px) {
  .enquire {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: none;
  }
}
.enquire__text, .form { max-width: 620px; }
@media (min-width: 900px) {
  .enquire__text { justify-self: end; padding-right: clamp(20px, 4vw, 60px); width: 100%; }
}
.enquire .h2 { color: #fff; }
.enquire a { color: #fff; }

.enquire__contact {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.enquire__contact li {
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
}
.enquire__contact li:last-child { border-bottom: 1px solid var(--line-dark); }
.enquire__contact span {
  display: inline-block;
  min-width: 9em;
  color: rgba(255, 255, 255, 0.5);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 20px;
}
.field { grid-column: span 2; }
.field--half { grid-column: span 1; }
@media (max-width: 520px) { .field--half { grid-column: span 2; } }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  color: #fff;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  transition: border-color 0.18s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: #fff;
}
.field select option { color: var(--ink); }
/* the native date/number widgets need a nudge to stay legible on dark */
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }

.field--submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 6px;
}
.field--submit .btn { background: #fff; color: var(--ink); }
.field--submit .btn:hover { background: var(--mist); }
.form__note {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.form__note.is-error { color: #ffd0c4; }

/* ---------------- 14. footer ---------------- */
.footer {
  padding: clamp(48px, 6vw, 88px) var(--gutter) 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  gap: 36px 40px;
  max-width: var(--wide);
  margin: 0 auto;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.wordmark--footer { color: #fff; display: block; margin-bottom: 16px; }
.footer__blurb { max-width: 28em; }
.footer__h {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 14px;
}
.footer__col p { margin: 0 0 8px; }
.footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.footer a:hover { color: #fff; border-bottom-color: #fff; }
.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { border: 0; }
.footer__links a:hover { border-bottom: 1px solid #fff; }

.footer__legal {
  max-width: var(--wide);
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------- 15. lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(7, 33, 38, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border-radius: 2px;
}
.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  padding: 10px 18px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.12); }