/* Morne Fortune Getaway
   Palette: forest greenery from the property, plus Saint Lucia flag sea-blue and gold. */
:root {
  --forest: #2E4636;
  --forest-dark: #22352A;
  --sage: #5A7562;          /* section bg, white text = 4.7:1 */
  --sage-soft: #DCE5DD;
  --sea: #0B6B74;           /* buttons & small labels, white text = 6.2:1 */
  --sea-dark: #08525A;
  --sea-soft: #DDEFEF;
  --gold: #B07F1F;          /* icons & large prices on light bg, 3.5:1 */
  --gold-soft: #E2B85C;     /* accents on dark green */
  --lime: #A9B83C;
  --cream: #FAF6EF;
  --sand: #F1EADF;
  --white: #FFFFFF;
  --ink: #1F2B23;
  --muted: #55625A;
  --border: #DDD5C8;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px rgba(31, 43, 35, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1160px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 40px; height: 40px; stroke-width: 1.4; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--forest); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Top bar */
.topbar { background: var(--forest); color: var(--white); font-size: .8125rem; letter-spacing: .03em; }
.topbar__inner { display: flex; gap: 10px; justify-content: center; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: var(--gold-soft); }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--border); box-shadow: 0 2px 16px rgba(31,43,35,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand__tag { font-size: .6875rem; text-transform: uppercase; letter-spacing: .22em; color: var(--sea); font-weight: 600; margin-top: 3px; }

.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; text-decoration: none;
  font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  border-radius: var(--radius); transition: color .15s, background-color .15s;
}
.nav a:hover, .nav a.is-active { color: var(--forest); background: var(--sage-soft); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--white); color: var(--forest); border-radius: var(--radius); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 8px 18px; }
.btn--sea { background: var(--sea); color: var(--white); }
.btn--sea:hover { background: var(--sea-dark); }
.btn--forest { background: var(--forest); color: var(--white); }
.btn--forest:hover { background: var(--forest-dark); }
.btn--outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.btn-row--stack { flex-direction: column; }
.btn-row--stack .btn { width: 100%; }

/* Hero */
.hero { position: relative; min-height: min(760px, 92vh); display: flex; align-items: center; color: var(--white); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,32,24,.30) 0%, rgba(20,32,24,.45) 45%, rgba(20,32,24,.72) 100%); }
.hero__content { padding-block: 72px; text-align: center; }
.hero__title { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 500; margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; margin: 0 auto 36px; font-weight: 300; }

.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--sea); margin-bottom: 12px; }
.eyebrow--light { color: var(--white); opacity: .92; }

/* Booking bar */
.booking {
  display: grid; grid-template-columns: 1fr 1fr .8fr 1.1fr auto; gap: 10px; align-items: end;
  max-width: 980px; margin-inline: auto; padding: 16px; text-align: left;
  background: rgba(255,255,255,.97); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink);
}
.booking__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.booking__field label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.booking input, .booking select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font-size: 1rem;
}
.booking input:focus, .booking select:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }
.booking input[aria-invalid="true"] { border-color: #B42318; }
.booking__submit { min-height: 48px; }
.booking__error { grid-column: 1 / -1; margin: 0; color: #B42318; font-weight: 600; font-size: .9375rem; }
.booking__error:empty { display: none; }
.booking__note { grid-column: 1 / -1; margin: 0; font-size: .8125rem; color: var(--muted); }

/* Facts strip */
.facts { background: var(--sand); border-bottom: 1px solid var(--border); }
.facts__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 16px; }
.facts__list li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; color: var(--forest); }
.facts__list .icon { color: var(--gold); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section--sage { background: var(--sage); color: var(--white); }
.section--cream { background: var(--cream); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); color: var(--forest); text-align: center; max-width: 24ch; margin-inline: auto; }
.section-title--light { color: var(--white); }
.section-title--left { text-align: left; margin-inline: 0; }
.lead { max-width: 68ch; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.0625rem; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 24px 0 40px; }
.rule--light { border-color: rgba(255,255,255,.35); }

/* Audience cards */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; scroll-margin-top: 110px; }
.audience { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 12px; }
.audience__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); margin-bottom: 20px; }
.audience h3 { font-size: 1.4rem; color: var(--forest); }
.audience p { color: var(--muted); max-width: 32ch; flex: 1; }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: transparent; color: var(--white);
  font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tab:hover { background: rgba(255,255,255,.14); }
.tab[aria-selected="true"] { background: var(--white); color: var(--forest); border-color: var(--white); }
.tab:focus-visible { outline-color: var(--white); }

.panel { display: grid; grid-template-columns: 5fr 7fr; background: var(--white); color: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel:focus-visible { outline-color: var(--white); }
.panel__media { min-height: 320px; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__body { padding: clamp(28px, 4vw, 48px); }
.panel__title { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--forest); }
.panel__body > p { color: var(--muted); }
.panel__subhead { font-family: var(--font-body); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin: 24px 0 12px; }

.perks { display: grid; gap: 10px; margin-bottom: 24px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks .icon { color: var(--gold); margin-top: 4px; }
.perks strong { color: var(--forest); }

.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 20px; margin-bottom: 24px; background: var(--cream); border-left: 4px solid var(--gold-soft); border-radius: var(--radius); }
.price { margin: 0; font-weight: 600; color: var(--forest); }
.price__amount { font-family: var(--font-display); font-size: 2rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.price__note { margin: 0; font-size: .9375rem; color: var(--muted); }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.amenities li { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); font-weight: 600; color: var(--forest); background: var(--white); }
.amenities .icon { color: var(--gold); }

/* Gallery — echoes the reference's caption cards */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery__item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--sand);
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__label {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 16px; text-align: left;
  background: rgba(250,246,239,.92); color: var(--forest); border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1.15rem;
}

/* Taxi */
.taxi { background: var(--forest); color: var(--white); position: relative; overflow: hidden; }
.taxi::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--gold-soft); opacity: .14; }
.taxi__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; }
.taxi__text p { color: rgba(255,255,255,.88); max-width: 52ch; }
.taxi__list { display: grid; gap: 12px; margin-top: 24px; }
.taxi__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.taxi__list .icon { color: var(--gold-soft); }
.taxi__card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.taxi__card > .icon { color: var(--gold-soft); margin: 0 auto 8px; }
.taxi__label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; margin: 0; opacity: .85; }
.taxi__number { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.taxi .btn--sea { background: var(--gold-soft); color: var(--forest-dark); }
.taxi .btn--sea:hover { background: #EDCB7E; }

/* Rates */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.rate-card { padding: 32px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; }
.rate-card .icon { color: var(--gold); margin: 0 auto 12px; }
.rate-card--feature { background: var(--forest); color: var(--white); border-color: var(--forest); }
.rate-card--feature .icon { color: var(--gold-soft); }
.rate-card__amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.rate-card__amount span { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .1em; }
.rate-card__title { font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); margin-bottom: 6px; }
.rate-card__unit { margin: 0; color: var(--muted); }
.rate-card--feature .rate-card__unit { color: rgba(255,255,255,.88); }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.location > div > p { color: var(--muted); }
.map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-soft); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 48px auto 0; }
.contact__card { padding: 36px 28px; border-radius: var(--radius-lg); background: var(--cream); text-align: center; border-top: 4px solid var(--sea); }
.contact__card > .icon { color: var(--forest); margin: 0 auto 12px; }
.contact__card h3 { color: var(--forest); font-size: 1.5rem; }
.contact__number { font-size: 1.25rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Footer */
.footer { background: var(--forest-dark); color: rgba(255,255,255,.85); padding: 48px 0 96px; font-size: .9375rem; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand--footer { color: var(--white); }
.brand--footer .brand__tag { color: var(--gold-soft); }
.footer__summary { margin: 0; }
.footer a { color: var(--white); }
.footer__copy { margin: 8px 0 0; font-size: .8125rem; opacity: .7; }

/* Floating WhatsApp */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none;
  width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--sea); color: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.fab .icon { width: 28px; height: 28px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,22,17,.94); color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15,22,17,.94); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(90vw, 720px); }
.lightbox__figure img { max-height: 82dvh; width: auto; border-radius: var(--radius); }
.lightbox__figure figcaption { font-family: var(--font-display); font-size: 1.1rem; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.15); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(31,43,35,.08); }
  .nav.is-open ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav.is-open a { padding: 14px 12px; font-size: .9375rem; }
  .menu-toggle { display: inline-flex; }
  .booking { grid-template-columns: 1fr 1fr; }
  .booking__submit { grid-column: 1 / -1; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .audience-grid { grid-template-columns: 1fr; gap: 40px; }
  .panel { grid-template-columns: 1fr; }
  .panel__media { min-height: 0; aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .taxi__inner, .location { grid-template-columns: 1fr; gap: 32px; }
  .rates { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .topbar__hide-sm { display: none; }
  .header__inner { min-height: 68px; }
  .header__cta { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 1.1rem; }
  .hero { min-height: auto; }
  .hero__content { padding-block: 56px 32px; }
  .booking { grid-template-columns: 1fr; padding: 14px; }
  .amenities { grid-template-columns: 1fr; }
  .gallery__label { font-size: 1rem; padding: 8px 10px; left: 8px; right: 8px; bottom: 8px; }
  .tab { padding: 10px 16px; font-size: .8125rem; }
  .fab { display: inline-flex; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
