:root {
  --ink: #162824;
  --muted: #64726e;
  --paper: #fffaf1;
  --shell: #f3eadc;
  --sand: #e8d0af;
  --reef: #0b6e69;
  --reef-dark: #084c49;
  --clay: #be623c;
  --clay-dark: #9e4f30;
  --sun: #eeb75d;
  --line: rgba(22, 40, 36, .14);
  --shadow: 0 16px 40px rgba(41, 45, 39, .14);
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- Layout primitives ---------- */

.section {
  padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 40px);
  background: var(--paper);
}

.section.tinted {
  background: var(--shell);
}

.section.sand {
  background: var(--sand);
}

.inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 32px;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.narrow {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header & nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 40px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--reef);
  border-radius: 50%;
  color: var(--reef-dark);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(11, 110, 105, .1);
  color: var(--reef-dark);
}

.site-nav a.nav-cta {
  margin-left: 6px;
  padding: 10px 16px;
  background: var(--clay);
  color: #fff;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
  background: var(--clay-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 40px clamp(20px, 5vw, 40px) 24px;
}

.site-footer .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer strong {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .68);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--sun);
  font-family: "Source Sans 3", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sun);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
  text-align: center;
}

/* ---------- Hero & compact-hero ---------- */

.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  padding: 96px clamp(20px, 5vw, 40px) 56px;
  background-image: linear-gradient(90deg, rgba(10, 18, 17, .82) 0%, rgba(10, 18, 17, .55) 50%, rgba(10, 18, 17, .25) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero .inner,
.page-hero .inner {
  width: 100%;
}

.page-hero.compact-hero {
  min-height: 320px;
  padding-top: 84px;
  padding-bottom: 40px;
}

.hero-copy-wrap {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--clay);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.08;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--clay);
  color: #fff;
}

.button.primary:hover {
  background: var(--clay-dark);
}

.button.secondary {
  background: transparent;
  border-color: var(--reef);
  color: var(--reef-dark);
}

.button.secondary:hover {
  background: rgba(11, 110, 105, .08);
}

.button.ghost-light {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.button.ghost-light:hover {
  background: rgba(255, 255, 255, .12);
}

/* ---------- Facts strip ---------- */

.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.facts-strip .fact {
  padding: 12px 0;
}

.facts-strip .fact .eyebrow {
  color: var(--reef-dark);
  margin: 0 0 8px;
}

.facts-strip .fact strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

/* ---------- Split-feature (2-col copy/image) ---------- */

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.feature-copy p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--reef);
  vertical-align: middle;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-stack img,
.feature-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Why-direct cards ---------- */

.why-direct {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.why-direct .reason {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.why-direct .reason::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 0 14px;
  border-radius: 50%;
  background: var(--reef);
}

.why-direct .reason h3 {
  margin: 0 0 8px;
}

.why-direct .reason p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Amenities grid (grouped checklists) ---------- */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.amenity-group h3 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}

.amenity-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-group li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
}

.amenity-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--reef);
}

/* ---------- Resort cards (photo cards) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.photo-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card h3 {
  margin: 18px 22px 8px;
}

.photo-card p {
  margin: 0 22px 22px;
  color: var(--muted);
}

/* ---------- Quote strip (closing CTA) ---------- */

.quote-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.quote-strip p {
  margin: 10px 0 0;
  color: var(--ink);
}

.quote-strip .quote-strip-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.quote-strip .quote-strip-cta small a {
  color: var(--reef-dark);
}

/* ---------- Availability calendar ---------- */

.calendar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

.dot.available,
.day.is-open {
  background: #d7ead5;
  color: #195e39;
}

.dot.unavailable,
.day.is-booked {
  background: #f1c9bb;
  color: #8a321e;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.month-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.month-card h3 {
  margin-bottom: 16px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.weekdays {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.day {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 6px;
  font-weight: 800;
}

.day.empty {
  background: transparent;
}

/* ---------- Forms (quote + contact share the same primitives) ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.form-aside {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-aside p {
  color: var(--muted);
}

.form-aside .price-note {
  margin-top: 18px;
  color: var(--clay);
  font-weight: 800;
}

.form-aside .cross-links {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.form-aside .cross-links a {
  display: block;
  padding: 12px 14px;
  background: var(--shell);
  border-radius: var(--radius);
  color: var(--reef-dark);
  font-weight: 700;
  text-decoration: none;
}

.form-aside .cross-links a:hover {
  background: rgba(11, 110, 105, .12);
}

.form-card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
}

.form-card label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-card .hidden-field {
  position: absolute;
  left: -9999px;
}

.notice,
.success,
.form-errors {
  padding: 14px 16px;
  border-radius: var(--radius);
}

.notice {
  background: #fff2c9;
}

.success {
  background: #d7ead5;
  color: #195e39;
}

.form-errors {
  background: #f1c9bb;
  color: #742818;
}

/* ---------- Availability nudge band on /quote/ ---------- */

.availability-nudge {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.availability-nudge a {
  color: var(--reef-dark);
  font-weight: 800;
}

/* ---------- Photo galleries ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .2s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ---------- FAQ list (single column at 880px) ---------- */

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item h3 {
  margin: 0 0 8px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* ---------- First-timers guide grid ---------- */

.guide-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-layout article {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-layout article h3 {
  margin: 0 0 8px;
}

.guide-layout article p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Food cards ---------- */

.food-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.food-card {
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.food-card h3 {
  margin: 0 0 8px;
}

.food-card p {
  margin: 6px 0;
  color: var(--muted);
}

.food-card a {
  color: var(--reef-dark);
  font-weight: 700;
}

/* ---------- Third-party fallback (on /quote/) ---------- */

.third-party {
  text-align: center;
}

.third-party h3 {
  margin: 0 0 8px;
}

.third-party p {
  margin: 0 0 18px;
  color: var(--muted);
}

.third-party .button-row {
  justify-content: center;
}

/* ---------- Muted utility ---------- */

.muted {
  color: var(--muted);
}

.price-note {
  color: var(--clay);
  font-weight: 800;
}

/* ---------- Lightbox (used by /photos/) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(7, 18, 17, .86);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 88vh;
  border-radius: var(--radius);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1099px) {
  .facts-strip,
  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-direct,
  .card-grid,
  .calendar-grid,
  .guide-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer .inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a.nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }

  .hero,
  .page-hero {
    min-height: 60vh;
    padding: 84px 20px 36px;
  }

  .page-hero.compact-hero {
    min-height: 260px;
    padding-top: 72px;
    padding-bottom: 28px;
  }

  .facts-strip,
  .amenities-grid,
  .split-feature,
  .why-direct,
  .card-grid,
  .calendar-grid,
  .gallery-grid,
  .guide-layout,
  .food-list,
  .quote-strip,
  .calendar-header,
  .form-layout,
  .form-card .form-row {
    grid-template-columns: 1fr;
  }

  .quote-strip .quote-strip-cta {
    align-items: flex-start;
  }

  .image-stack img,
  .feature-image {
    height: 260px;
  }

  .legend {
    justify-content: flex-start;
  }

  .site-footer .inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
