/* ═══════════════════════════════════════════════════════════════
   Dakak — concept redesign
   Palette runs the arc of one day: first light → afternoon →
   dusk → night. Capiz shell is the structural motif throughout.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('fonts/karla.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* surfaces, in day order */
  --seaglass:  #E7EFEC;   /* first light  */
  --shellwash: #F3EBDC;   /* mid-morning  */
  --cove:      #0A3A42;   /* afternoon, deep teal */
  --dusk:      #123043;   /* evening      */
  --night:     #0B1428;   /* after dark   */

  /* ink & material */
  --ink:       #10262A;
  --ink-soft:  #48625F;
  --capiz:     #F4DFB6;   /* the shell itself */
  --capiz-dim: rgba(244, 223, 182, .62);
  --pearl:     #FBF8F2;

  /* accents: one for water, one for fire */
  --surf:      #12A79B;
  --flare:     #F0522F;

  --edge:      rgba(16, 38, 42, .14);
  --edge-lt:   rgba(244, 223, 182, .22);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body:    'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 3.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--seaglass);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap {
  width: min(var(--wrap), 100% - (var(--gut) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--flare); color: #fff; padding: .75rem 1.25rem;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────  type scale  ───────────────── */

.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -.022em;
  margin: 0 0 1rem;
  font-variation-settings: 'SOFT' 24, 'WONK' 1, 'opsz' 96;
  text-wrap: balance;
}
.h2--light { color: var(--pearl); }

.p { margin: 0 0 1.1rem; max-width: 56ch; color: var(--ink-soft); }
.p--wide { max-width: 66ch; }
.p--light { color: rgba(251, 248, 242, .78); }

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--surf);
  margin: 0 0 .9rem;
}
.eyebrow--light { color: var(--capiz); }

.link {
  color: var(--surf);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.link--light { color: var(--capiz); }
.link:hover { text-decoration-thickness: 2px; }

/* ─────────────────  buttons  ───────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--flare { background: var(--flare); color: #fff; }
.btn--flare:hover { background: #d8431f; }
.btn--ghost { border-color: var(--capiz-dim); color: var(--pearl); }
.btn--ghost:hover { background: rgba(244, 223, 182, .14); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }

/* ─────────────────  concept ribbon  ───────────────── */

.concept {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: #10262A;
  color: rgba(251, 248, 242, .82);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .45rem 1rem;
  text-align: center;
}
.concept__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--flare); flex: none;
}

/* ─────────────────  nav  ───────────────── */

.nav {
  position: fixed; inset: var(--ribbon-h, 26px) 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.05rem var(--gut);
  transition: background-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-stuck {
  background: rgba(231, 239, 236, .93);
  backdrop-filter: blur(14px);
  padding-block: .7rem;
  box-shadow: 0 1px 0 var(--edge);
}

.nav__mark {
  text-decoration: none; line-height: 1; margin-right: auto;
  color: var(--pearl);
  transition: color .35s var(--ease);
}
.nav.is-stuck .nav__mark { color: var(--ink); }
.nav__mark-name {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .01em;
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 40;
}
.nav__mark-sub {
  display: block;
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  opacity: .72; margin-top: .22rem;
}

.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  text-decoration: none;
  font-size: .87rem; font-weight: 600; letter-spacing: .02em;
  color: rgba(251, 248, 242, .88);
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
  transition: color .35s var(--ease), border-color .25s var(--ease);
}
.nav.is-stuck .nav__links a { color: var(--ink-soft); }
.nav__links a:hover { border-bottom-color: currentColor; }

/* ─────────────────  hero + the capiz shutter  ───────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--ribbon-h, 26px) + 7rem) var(--gut) clamp(3rem, 7vh, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__photo {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%;
  animation: heroDrift 26s var(--ease) forwards;
}
@keyframes heroDrift { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(10, 24, 28, .88) 0%, rgba(10, 24, 28, .42) 42%, rgba(10, 24, 28, .12) 72%),
    linear-gradient(to right, rgba(10, 24, 28, .55), transparent 62%);
}

/* the signature: a grid of capiz panes that lifts away pane by pane */
.shutter {
  position: absolute; inset: 0; z-index: -1;
  display: grid;
  grid-template-columns: repeat(var(--cols, 8), 1fr);
  grid-auto-rows: 1fr;
  pointer-events: none;
}
.shutter span {
  background: var(--capiz);
  box-shadow: inset 0 0 0 1px rgba(10, 58, 66, .16);
  transform-origin: 50% 0;
  animation: paneLift .95s var(--ease) forwards;
  animation-delay: calc(var(--d) * 46ms);
}
@keyframes paneLift {
  to { opacity: 0; transform: translateY(-14%) rotateX(38deg); }
}

.hero__body { position: relative; max-width: 46rem; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 1.1rem + 7.6vw, 7.2rem);
  line-height: .94;
  letter-spacing: -.03em;
  color: var(--pearl);
  margin: 0 0 1.4rem;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 144;
}
.hero__line { display: block; }
.hero__line--wonk {
  font-style: italic;
  color: var(--capiz);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144;
}

.hero__lede {
  color: rgba(251, 248, 242, .84);
  font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem);
  max-width: 40rem;
  margin: 0 0 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__hint {
  position: relative;
  margin: 3.4rem 0 0;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(251, 248, 242, .55);
}

/* ─────────────────  bands  ───────────────── */

/* the nav is fixed, so an anchor jump has to stop clear of it */
:where(.band, .night, .book)[id] {
  scroll-margin-top: calc(var(--ribbon-h, 26px) + 5.5rem);
}

.band { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.band--dawn { background: var(--seaglass); }
.band--day { background: var(--shellwash); }
.band--afternoon { background: var(--cove); }
.band--dusk { background: var(--dusk); }

.band__head { max-width: 60rem; margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }

/* capiz divider — the same pane grid, flattened into a rule */
.capiz-rule {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--capiz) 0 26px,
      rgba(18, 167, 155, .30) 26px 28px);
  border-block: 1px solid rgba(10, 58, 66, .12);
}

/* ─────────────────  intro + figures  ───────────────── */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  margin: 0;
}
.figure { background: var(--seaglass); padding: 1.6rem 1.4rem; }
.figure__n {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--cove);
  font-variation-settings: 'SOFT' 10, 'WONK' 0, 'opsz' 72;
}
.figure__u { font-size: .42em; margin-left: .12em; color: var(--surf); }
.figure__l {
  margin: .55rem 0 0;
  font-size: .84rem; line-height: 1.45;
  color: var(--ink-soft);
}

/* ─────────────────  rooms rail  ───────────────── */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 21rem);
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* start flush with .wrap so the rail lines up with the section heading.
     scroll-padding must match, or snapping pulls the first card under it. */
  padding: .5rem max(var(--gut), (100vw - var(--wrap)) / 2) 2rem;
  scroll-padding-left: max(var(--gut), (100vw - var(--wrap)) / 2);
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.room { scroll-snap-align: start; }
.room--feature { grid-column: span 1; }

.room__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cove);
  /* the capiz window: a shell-coloured mullion around the glass */
  border: 10px solid var(--capiz);
  box-shadow: 0 1px 0 rgba(10, 58, 66, .18), 0 18px 40px -28px rgba(10, 58, 66, .7);
}
.room__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.room:hover .room__frame img { transform: scale(1.05); }

.room__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -.015em;
  margin: 1.05rem 0 .15rem;
  font-variation-settings: 'SOFT' 18, 'WONK' 1, 'opsz' 40;
}
.room__beds {
  margin: 0 0 .45rem;
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--surf); font-weight: 700;
}
.room__note { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.rail__hint { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* ─────────────────  adventure grid  ───────────────── */

.grid-adv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.adv {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  display: flex; align-items: flex-end;
  isolation: isolate;
  background: #06222a;
}
.adv--wide { grid-column: span 2; grid-row: span 2; min-height: 32rem; }
.adv--tall { grid-column: span 2; min-height: 22rem; }

.adv img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.adv::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(6, 24, 30, .92) 6%, rgba(6, 24, 30, .34) 55%, rgba(6, 24, 30, .06) 100%);
}
.adv:hover img { transform: scale(1.055); }

.adv__body { padding: 1.4rem 1.35rem; }
.adv__tag {
  margin: 0 0 .5rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--capiz); font-weight: 700;
}
.adv__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--pearl);
  margin: 0 0 .35rem;
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 48;
}
.adv--wide .adv__name { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); }
.adv__note { margin: 0; font-size: .88rem; color: rgba(251, 248, 242, .72); max-width: 44ch; }

.adv__aside {
  margin: 2.2rem 0 0;
  max-width: 52ch;
  color: rgba(251, 248, 242, .7);
  font-size: .95rem;
  border-left: 2px solid var(--capiz-dim);
  padding-left: 1.1rem;
}

/* ─────────────────  dining timeline  ───────────────── */

.venues {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  /* exactly three across, so nine venues fill three whole rows */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--edge-lt);
  border: 1px solid var(--edge-lt);
}
.venue {
  background: var(--dusk);
  padding: 1.5rem 1.4rem 1.6rem;
  position: relative;
  transition: background-color .3s var(--ease);
}
.venue:hover { background: #16394f; }

.venue__hours {
  margin: 0 0 .7rem;
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--capiz); font-weight: 700;
}
.venue__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--pearl);
  margin: 0 0 .4rem;
  font-variation-settings: 'SOFT' 18, 'WONK' 1, 'opsz' 40;
}
.venue__note { margin: 0; font-size: .88rem; color: rgba(251, 248, 242, .68); }

.venue.is-open::before {
  content: 'Open now';
  position: absolute; top: 1.5rem; right: 1.4rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700;
  color: #0B1428;
  background: var(--surf);
  padding: .2rem .55rem;
  border-radius: 999px;
}

/* ─────────────────  night  ───────────────── */

.night {
  position: relative;
  min-height: 84svh;
  display: flex; align-items: flex-end;
  padding-block: clamp(4rem, 8vw, 8rem);
  isolation: isolate;
  background: var(--night);
}
.night__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.night__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 20, 40, .94) 4%, rgba(11, 20, 40, .5) 48%, rgba(11, 20, 40, .2) 100%);
}
.night__body { position: relative; }
.night__title { max-width: 18ch; }
.night__p { max-width: 48ch; }

/* ─────────────────  book  ───────────────── */

.book { background: var(--night); padding-block: clamp(4.5rem, 9vw, 8rem); }
.book__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.book__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* a full capiz window, unlit — the motif at rest */
.capiz-panel {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(90deg, rgba(11, 20, 40, .9) 0 4px, transparent 4px) 0 0 / 25% 100%,
    linear-gradient(0deg,  rgba(11, 20, 40, .9) 0 4px, transparent 4px) 0 0 / 100% 20%,
    linear-gradient(135deg, #F4DFB6, #E8C98C 46%, #F7EAD1);
  border: 12px solid #6B4A2A;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9);
}

/* ─────────────────  getting here  ───────────────── */

.getting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.getting > :first-child { max-width: 34rem; }
.addr {
  font-style: normal;
  margin: 1.6rem 0 1.2rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.contacts li { display: flex; gap: .9rem; align-items: baseline; font-size: .95rem; }
.contacts__k {
  flex: none; width: 7.5rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.map { margin: 0; }
.map img {
  width: 100%;
  border: 10px solid var(--capiz);
  box-shadow: 0 18px 40px -30px rgba(10, 58, 66, .8);
}
.map__cap { margin-top: .8rem; font-size: .82rem; color: var(--ink-soft); }

/* ─────────────────  footer  ───────────────── */

.foot { background: #071020; color: rgba(251, 248, 242, .7); padding-block: 3.5rem 2rem; }
.foot__inner {
  display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 223, 182, .14);
}
/* the resort's existing badge, kept as-is in the footer; the nav uses a
   wordmark instead so the 2005 gradient does not have to carry the page */
.foot__brand { display: flex; align-items: center; gap: 1.1rem; }
.foot__logo { width: 68px; height: auto; flex: none; }
.foot__mark {
  font-family: var(--f-display);
  font-size: 1.5rem; font-weight: 600; color: var(--capiz);
  margin: 0 0 .4rem;
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 40;
}
.foot__mark span {
  display: block;
  font-family: var(--f-body);
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(251, 248, 242, .5); margin-top: .3rem;
}
.foot__addr { margin: 0; font-size: .85rem; max-width: 28ch; }
.foot__links, .foot__social { display: grid; gap: .55rem; align-content: start; }
.foot__links a, .foot__social a { text-decoration: none; font-size: .88rem; }
.foot__links a:hover, .foot__social a:hover { color: var(--capiz); }
.foot__fine {
  margin: 1.6rem 0 0;
  font-size: .72rem;
  color: rgba(251, 248, 242, .42);
  max-width: 68ch;
}

/* ─────────────────  reveal  ───────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────────────  responsive  ───────────────── */

@media (max-width: 1000px) {
  .grid-adv { grid-template-columns: repeat(2, 1fr); }
  .venues { grid-template-columns: repeat(2, 1fr); }
  .adv--wide { grid-column: span 2; grid-row: auto; min-height: 24rem; }
  .adv--tall { grid-column: span 2; }
  .intro, .getting, .book__inner { grid-template-columns: 1fr; }
  .book__inner .capiz-panel { max-width: 20rem; }
}

@media (max-width: 720px) {
  .venues { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav { gap: 1rem; }
  .hero { min-height: 92svh; padding-top: 7rem; }
  .figures { grid-template-columns: 1fr; }
  .grid-adv { grid-template-columns: 1fr; }
  .adv--wide, .adv--tall { grid-column: span 1; min-height: 20rem; }
  .contacts li { flex-direction: column; gap: .1rem; }
  .contacts__k { width: auto; }
  .concept { font-size: .66rem; letter-spacing: .02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .shutter { display: none; }
}
