/* ===================================================================
   Good Fortune Island — Eden Property Collection
   Palette, type scale and section rhythm follow the approved design.
   =================================================================== */

:root {
  --cream: #F6F2EB;
  --card: #FFFDF9;
  --sand-bg: #EDE6DA;
  --ink: #1C1B18;
  --ink-soft: #4A473F;
  --forest: #22251F;
  --bronze: #8C6743;
  --sand: #C9A278;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: Jost, Helvetica, Arial, sans-serif;

  --wrap: 1520px;
  --gutter: 40px;
  --section-y: 130px;
}

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

html {
  scroll-behavior: smooth;
  /* fixed header clearance for in-page anchors */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

/* height:auto keeps the intrinsic width/height attributes (which are there for
   layout stability) from overriding the aspect-ratio crops below. */
img, picture { max-width: 100%; }
img { height: auto; }

a { color: var(--bronze); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 100; background: var(--cream); color: var(--ink);
  padding: 12px 22px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.skip-link:focus { transform: translate(-50%, 0); }

@keyframes gfiRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --- Shared type ---------------------------------------------------- */

.eyebrow {
  margin: 0 0 24px;
  font-size: 11px;
  line-height: 1.7; /* keeps the tracked-out caps readable when they wrap */
  letter-spacing: .4em;
  text-transform: uppercase;
}
.eyebrow--bronze { color: var(--bronze); }
.eyebrow--sand { color: var(--sand); }
.eyebrow--hero {
  color: var(--cream);
  letter-spacing: .42em;
  margin-bottom: 26px;
  text-shadow: 0 1px 14px rgba(14, 13, 11, .85);
}

.lede {
  margin: 30px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 300;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.lede + .lede { margin-top: 22px; }
.lede--tight { margin-top: 28px; max-width: 460px; font-size: 16px; line-height: 1.8; }

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

.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.btn--outline {
  padding: 11px 22px;
  border: 1px solid rgba(246, 242, 235, .5);
  border-radius: 2px;
  color: var(--cream);
}
.btn--outline:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn--solid {
  padding: 17px 38px;
  background: var(--cream);
  color: var(--ink);
  letter-spacing: .26em;
}
.btn--solid:hover { background: var(--sand); color: var(--ink); }

/* not a link yet — keeps the CTA's weight without implying an action */
.btn--static { cursor: default; background: rgba(246, 242, 235, .9); }
.btn--static:hover { background: rgba(246, 242, 235, .9); }

.btn--ghost {
  padding: 17px 38px;
  border: 1px solid rgba(246, 242, 235, .45);
  color: var(--cream);
  letter-spacing: .26em;
}
.btn--ghost:hover { background: rgba(246, 242, 235, .12); color: var(--cream); }

/* --- Header --------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  background: linear-gradient(to bottom, rgba(16, 15, 13, .55), rgba(16, 15, 13, 0));
  transition: background-color .35s ease, backdrop-filter .35s ease, padding .35s ease;
}

/* Once past the hero the cream nav would sit on cream sections, so the bar
   takes on the footer's ink tone. */
.site-header.is-scrolled {
  background: rgba(24, 23, 20, .93);
  backdrop-filter: blur(10px);
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--cream);
}
.wordmark:hover { color: var(--cream); }

/* text-indent cancels the trailing letter-space so "ISLAND" sits optically
   centred beneath "GOOD FORTUNE", as on the real mark. */
.wordmark__line1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .4em;
  text-indent: .4em;
  text-transform: uppercase;
}
.wordmark__line2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: .62em;
  text-indent: .62em;
  text-transform: uppercase;
  opacity: .8;
}

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
}
.site-nav a:hover { opacity: 1; color: var(--cream); }
.site-nav .btn--outline { opacity: 1; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px; height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: relative; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
@supports (height: 100svh) { .hero { height: 100svh; } }

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* brightened per the approved hero treatment */
  filter: brightness(1.32) contrast(.94) saturate(1.05);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(14, 13, 11, .84) 0%,
    rgba(14, 13, 11, .34) 48%,
    rgba(14, 13, 11, .3) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  padding: 0 var(--gutter) 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__copy { max-width: 820px; animation: gfiRise 1s ease both; }

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 118px);
  line-height: .95;
  color: var(--cream);
}
.hero h1 em { font-style: italic; }

.hero__lede {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(246, 242, 235, .8);
  text-wrap: pretty;
}

.hero__stats { display: flex; gap: 44px; margin: 0; padding-bottom: 10px; }
.hero__stats dt {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--cream);
  line-height: 1;
}
.hero__stats dd {
  margin: 6px 0 0;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(246, 242, 235, .6);
}

/* --- The property --------------------------------------------------- */

.property {
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 80px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}

.property h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.06;
}

/* two photos, stacked — the dining shot that used to sit beside the deck one
   lives in the gallery instead, so nothing repeats on the page */
.property__collage { display: grid; grid-template-columns: 1fr; gap: 16px; }
.property__collage img { width: 100%; height: 260px; object-fit: cover; display: block; }
.collage__wide { grid-column: 1 / -1; }
.collage__wide img { height: 420px; }

/* --- Arrival -------------------------------------------------------- */

.arrival {
  background: var(--forest);
  color: var(--cream);
  padding: var(--section-y) var(--gutter);
}
/* Full-bleed: cancels the section's side padding so the water runs edge to
   edge. max-height keeps it a band on wide screens rather than a full page. */
.arrival__aerial {
  display: block;
  /* <picture> shrink-wraps its img, so the width has to be stated outright —
     negative margins alone leave it inside the section padding. */
  width: calc(100% + var(--gutter) * 2);
  max-width: none; /* beats the global img/picture max-width:100% cap */
  margin: 90px calc(var(--gutter) * -1) calc(var(--section-y) * -1);
}
.arrival__aerial img {
  width: 100%;
  max-height: 76vh;
  object-fit: cover;
  display: block;
}
.arrival__title {
  margin: 0 0 70px;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.06;
}
.arrival__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.arrival__steps li { border-top: 1px solid rgba(246, 242, 235, .22); padding-top: 26px; }
.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--sand);
  margin-bottom: 14px;
}
.arrival__steps h3 { margin: 0 0 14px; font-weight: 400; font-size: 29px; }
.arrival__steps p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(246, 242, 235, .72);
  text-wrap: pretty;
}

/* --- Sleeping ------------------------------------------------------- */

.quarters {
  padding: var(--section-y) var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.section-head h2 { margin: 0; font-size: clamp(38px, 4.4vw, 66px); line-height: 1.06; }
.section-head__note {
  margin: 0;
  max-width: 400px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--ink-soft);
}

/* Six cards on an even 3 × 2 grid — every tile the same size. */
.quarters__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.room { background: var(--card); }
.room img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}
.room__body { padding: 28px 30px 34px; }
.room__body h3 { margin: 0 0 10px; font-weight: 400; font-size: 30px; }
.room__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--ink-soft);
}

/* --- Amenities ------------------------------------------------------ */

.amenities {
  position: relative;
  padding: 150px var(--gutter);
  overflow: hidden;
}
.amenities__media { position: absolute; inset: 0; }
.amenities__media img { width: 100%; height: 100%; object-fit: cover; }
.amenities__scrim { position: absolute; inset: 0; background: rgba(14, 13, 11, .62); }

.amenities__inner {
  position: relative;
  color: var(--cream);
  /* the sauna shot is sunlit on the left; the same shadow the hero eyebrow uses
     keeps the small copy legible without darkening the photo further */
  text-shadow: 0 1px 14px rgba(14, 13, 11, .8);
}
.amenities__title {
  margin: 0 0 66px;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.06;
  max-width: 760px;
}
.amenities__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 40px; }
.amenities__grid h3 { margin: 0 0 12px; font-weight: 400; font-size: 26px; }
.amenities__grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(246, 242, 235, .72);
}

/* --- Gallery -------------------------------------------------------- */

.gallery {
  padding: var(--section-y) var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery__wide { grid-column: 1 / -1; }
/* wider crop so a full-width tile doesn't tower over the row of three */
.gallery__wide img { aspect-ratio: 16 / 9; }

/* --- Seasons -------------------------------------------------------- */

.seasons { background: var(--sand-bg); padding: var(--section-y) var(--gutter); }
.seasons__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 70px;
}
.seasons__title { margin: 0; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.06; }

.season-table { margin: 0; }
.season {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(28, 27, 24, .15);
}
.season--last { border-bottom: 1px solid rgba(28, 27, 24, .15); }
.season--closed { opacity: .5; }
.season dt { font-family: var(--serif); font-size: 26px; }
.season dd {
  margin: 0;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-align: right;
}
.season__mode {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bronze);
}
.season__mode--closed { color: inherit; }

/* --- Inquire -------------------------------------------------------- */

.inquire {
  position: relative;
  padding: 170px var(--gutter);
  overflow: hidden;
  text-align: center;
}
.inquire__media { position: absolute; inset: 0; }
.inquire__media img { width: 100%; height: 100%; object-fit: cover; }
.inquire__scrim { position: absolute; inset: 0; background: rgba(14, 13, 11, .6); }

.inquire__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.inquire__inner .eyebrow { margin-bottom: 0; }
.inquire h2 { margin: 0; font-size: clamp(40px, 5vw, 76px); line-height: 1.04; }
.inquire__lede {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(246, 242, 235, .8);
}
.inquire__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(246, 242, 235, .62);
  padding: 80px var(--gutter) 56px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--cream);
}
.wordmark__line1--footer { font-size: 20px; }
.wordmark__line2--footer { font-size: 12px; }
.footer__place {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(246, 242, 235, .55);
}

.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__label {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(246, 242, 235, .4);
}
.footer__col a { font-size: 15px; font-weight: 300; color: rgba(246, 242, 235, .75); }
.footer__col a:hover { color: var(--cream); }

.footer__eden { gap: 14px; }
.footer__logo { height: 62px; width: auto; opacity: .85; }

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin: 56px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(246, 242, 235, .12);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(246, 242, 235, .4);
}
.footer__legal a { color: rgba(246, 242, 235, .62); }
.footer__legal a:hover { color: var(--cream); }

/* ===================================================================
   Responsive — the prototype was drawn at desktop width only.
   =================================================================== */

@media (max-width: 1199px) {
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1079px) {
  :root { --section-y: 104px; --gutter: 32px; }
  .quarters__grid,
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 34px; }
}

@media (max-width: 899px) {
  .property { gap: 48px; }
  .property__collage img { height: auto; aspect-ratio: 4 / 3; }
  .collage__wide img { aspect-ratio: 3 / 2; }
  .seasons__inner { gap: 48px; }
}

@media (max-width: 860px) {
  .site-header { padding: 16px 24px; }
  .nav-toggle { display: block; z-index: 2; }
  .wordmark { position: relative; z-index: 2; } /* stays visible over the menu */

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(20, 19, 16, .97);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 14px; letter-spacing: .28em; opacity: 1; }
  .site-nav .btn--outline { margin-top: 8px; padding: 14px 30px; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 719px) {
  :root { --section-y: 80px; --gutter: 24px; }

  .hero { min-height: 560px; }
  .hero__inner { padding-bottom: 48px; gap: 32px; }
  .hero__lede { font-size: 16px; }
  .hero__stats { gap: 28px; padding-bottom: 0; }
  .hero__stats dt { font-size: 34px; }

  .property { padding-left: var(--gutter); padding-right: var(--gutter); }
  .quarters__grid,
  .gallery__grid { grid-template-columns: 1fr; }
  /* single column: match the other tiles, which is also the photo's own ratio */
  .gallery__wide img { aspect-ratio: 4 / 3; }
  .amenities { padding: 100px var(--gutter); }
  .amenities__grid { grid-template-columns: 1fr; gap: 36px; }
  .amenities__title { margin-bottom: 48px; }
  .arrival__steps { gap: 40px; }
  .arrival__title { margin-bottom: 48px; }
  .inquire { padding: 112px var(--gutter); }
  .room__body { padding: 24px 24px 30px; }

  .season { flex-wrap: wrap; gap: 6px; }
  .season dd { text-align: left; }

  .footer__top { gap: 40px; }
  .footer__brand { align-items: flex-start; }
  .site-footer { padding-top: 64px; }
}

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