/* Moksha Living — warm, editorial, responsive presentation */
:root {
  --cream: #f5f2e9;
  --paper: #fbfaf5;
  --green: #173f35;
  --green-deep: #0f3028;
  --green-soft: #315c4d;
  --gold: #806032;
  --gold-light: #d1b37d;
  --ink: #1e2c27;
  --muted: #66716b;
  --line: rgba(23, 63, 53, .18);
  --white-line: rgba(255, 255, 255, .3);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(1180px, calc(100% - 3rem));
  --radius: 2px;
  --shadow: 0 1.5rem 4rem rgba(15, 48, 40, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.container { width: var(--container); margin-inline: auto; }
.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  color: #fff;
  border-bottom: 1px solid var(--white-line);
}
.site-header .container {
  min-height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  color: inherit;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .13em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.nav-links a {
  color: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:not(.button) { opacity: .88; }
.nav-links a:not(.button):hover { opacity: 1; color: var(--gold-light); }
.menu-toggle { display: none; }

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: 600 .72rem/1 var(--sans);
  justify-content: center;
  letter-spacing: .14em;
  min-height: 3rem;
  padding: .9rem 1.45rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.button-primary:hover { background: #9b753f; border-color: #9b753f; }
.button-outline { border-color: currentColor; color: inherit; }
.button-outline:hover { background: rgba(255,255,255,.14); }

.eyebrow {
  color: var(--gold);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .2em;
  margin: 0 0 1.15rem;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); letter-spacing: -.045em; margin-bottom: 1.5rem; }
h2 { color: var(--green); font-size: clamp(2.25rem, 4.7vw, 4.25rem); letter-spacing: -.035em; margin-bottom: 1.25rem; }
h3 { color: var(--green); font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { max-width: 62ch; }
.muted { color: var(--muted); }
.badge { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; color: var(--green); display: inline-block; font-size: .67rem; font-weight: 700; letter-spacing: .16em; padding: .45rem .8rem; text-transform: uppercase; }

.hero {
  align-items: center;
  background-color: var(--green-deep);
  background-image: linear-gradient(90deg, rgba(8, 29, 24, .84) 0%, rgba(8, 29, 24, .56) 43%, rgba(8, 29, 24, .08) 100%), url("assets/resort2.webp");
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  min-height: min(850px, 100svh);
  overflow: hidden;
  padding: 9rem 0 7rem;
  position: relative;
}
.hero-video { position: absolute; z-index: 0; inset: 0; height: 100%; width: 100%; object-fit: cover; pointer-events: none; }
.hero-content { padding-top: 2rem; }
.hero h1 { color: #fff; max-width: 10ch; }
.hero p { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.15rem; }
.hero-note { border-left: 1px solid var(--gold-light); color: rgba(255,255,255,.9); letter-spacing: .02em; margin: 1.5rem 0 0; padding-left: 1rem; }
.hero-media-controls { margin-top: 1rem; position: relative; z-index: 2; }
.hero-media-controls .button { max-width: 100%; }
#hero-video-toggle[hidden] { display: none; }

.section { padding: clamp(5.5rem, 10vw, 9.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.intro-grid { align-items: end; display: grid; gap: clamp(2rem, 8vw, 9rem); grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); }
.intro-grid > :last-child { margin-bottom: .35rem; }
.stat-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; }
.stat { border-right: 1px solid var(--line); padding: 1.5rem 2rem 0 0; }
.stat + .stat { padding-left: 2rem; }
.stat:last-child { border: 0; }
.stat strong { color: var(--green); display: block; font: 400 clamp(2.2rem, 4vw, 3.7rem)/1 var(--serif); margin-bottom: .45rem; }
.stat span { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.feature-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.feature-card { background: var(--paper); border: 1px solid var(--line); min-height: 17rem; padding: clamp(1.6rem, 3vw, 2.7rem); }
.feature-card p { color: var(--muted); font-size: .94rem; }
.feature-card .badge { margin-bottom: 2.5rem; }
.split-section { align-items: center; display: grid; gap: clamp(2.5rem, 8vw, 8rem); grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.split-section.is-reversed { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.split-section.is-reversed .media-frame { order: 2; }
.media-frame { background: #ddd8ca; overflow: hidden; position: relative; }
.media-frame img, .media-frame video { height: 100%; object-fit: cover; width: 100%; }
.media-frame > img { aspect-ratio: 4 / 3; }
.media-frame.plan-image img, .media-frame[data-fit="contain"] img { object-fit: contain; }
.split-section .media-frame { box-shadow: var(--shadow); }

.plan-grid { align-items: center; display: grid; gap: clamp(2.5rem, 7vw, 7rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.plan-grid .media-frame img { aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.gallery-grid > * { grid-column: span 4; overflow: hidden; }
.gallery-grid > :first-child { grid-column: span 7; }
.gallery-grid > :nth-child(2) { grid-column: span 5; }
.gallery-grid > :nth-child(3) { grid-column: span 5; }
.gallery-grid > :nth-child(4) { grid-column: span 7; }
.gallery-grid img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; transition: transform .6s ease; width: 100%; }
.gallery-grid > *:hover img { transform: scale(1.035); }
.investor-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.investor-card { background: var(--green); color: #fff; min-height: 16rem; padding: 2rem; }
.investor-card h3 { color: #fff; }
.investor-card p { color: rgba(255,255,255,.73); font-size: .92rem; }
.contact-grid { align-items: end; display: grid; gap: 2rem; grid-template-columns: 1fr auto; }
.contact-grid a { color: var(--green); text-decoration-color: var(--gold); text-underline-offset: .3em; }
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.72); padding: 3rem 0; }
.site-footer .container { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.site-footer .brand { color: #fff; }
.site-footer p { font-size: .78rem; margin: 0; }

/* Integration and accessible media treatments. */
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 30; background: var(--paper); color: var(--green); padding: .8rem 1.2rem; }
.skip-link:focus { top: 1rem; }
.hero.section { position: relative; padding: 10rem 0 7rem; }
.hero .eyebrow { color: #e9d4b0; font-size: .72rem; letter-spacing: .17em; }
.hero-actions + .muted { margin-top: 2rem; font-size: .82rem; }
.hero-disclaimer { position: absolute; bottom: 1.5rem; left: max(1.5rem, calc((100% - 1180px) / 2)); right: 1.5rem; font-size: .73rem; color: #fff; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(8,29,24,.72), rgba(8,29,24,.28)), linear-gradient(180deg, rgba(8,29,24,.45), transparent 40%, rgba(8,29,24,.6)); pointer-events: none; }
.hero-content, .hero-disclaimer { position: relative; z-index: 2; }
.hero-disclaimer { position: absolute; }
.intro { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.4; }
.section-heading .eyebrow { color: var(--gold); font-size: .72rem; }
.split-section { margin-top: 4rem; }
.media-frame img, .gallery-grid img { height: auto; }
.media-frame video { height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #10241e; }
.media-frame > .muted { padding: .8rem 1rem; margin: 0; color: var(--ink); font-size: .8rem; }
.plan-grid { gap: 1.5rem; }
.plan-grid .badge { border-radius: 0; display: block; text-align: center; }
figure { margin: 0; }
figcaption { padding: 1rem; font-size: .8rem; color: var(--green); }
.investor-card ul { padding-left: 1.1rem; }
.investor-card li { margin-bottom: .8rem; }
.investor-notice { margin-top: 1.5rem; font-size: .85rem; }
.contact-grid .button-primary { color: #fff; }
.site-footer .muted { color: #d0dbd4; }
details { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; color: var(--green); }
details p { margin: 1rem 0 0; }
@media (max-width: 1000px) and (min-width: 801px) {
  .nav-links { gap: 1rem; }
  .nav-links a { letter-spacing: .04em; font-size: .67rem; }
  .nav-links .button { padding-inline: .8rem; }
}
@media (max-width: 800px) {
  html:not(.js) .site-header { position: relative; background: var(--green-deep); }
  html:not(.js) .site-header .container { flex-wrap: wrap; padding-block: 1rem; gap: 1rem; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 1rem; }
  .hero.section { padding: 8rem 0 6rem; }
  .hero-content { padding-top: 0; }
}

@media (max-width: 800px) {
  :root { --container: min(100% - 2rem, 680px); }
  .site-header .container { min-height: 4.75rem; }
  .js .menu-toggle { background: none; border: 0; color: inherit; cursor: pointer; display: grid; gap: 5px; padding: .75rem 0 .75rem .75rem; }
  .menu-toggle span { background: currentColor; display: block; height: 1px; transition: transform .2s ease; width: 1.5rem; }
  .js .nav-links { align-items: stretch; background: var(--green-deep); display: none; flex-direction: column; gap: 0; left: 0; padding: 1rem 1.5rem 1.5rem; position: absolute; right: 0; top: 100%; }
  .js .nav-links.is-open, .js .nav-links[data-open="true"] { display: flex; }
  .js .nav-links a { padding: .85rem 0; }
  .js .nav-links .button { margin-top: .4rem; }
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { min-height: 720px; padding: 8rem 0 5rem; }
  .intro-grid, .split-section, .split-section.is-reversed, .plan-grid { grid-template-columns: 1fr; }
  .split-section.is-reversed .media-frame { order: 0; }
  .feature-grid, .investor-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .gallery-grid { gap: .65rem; }
  .gallery-grid > *, .gallery-grid > :first-child, .gallery-grid > :nth-child(2), .gallery-grid > :nth-child(3), .gallery-grid > :nth-child(4) { grid-column: span 6; }
  .gallery-grid > :first-child { grid-column: span 12; }
  .contact-grid { align-items: start; grid-template-columns: 1fr; }
  .site-footer .container { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero { background-position: 62% center; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-media-controls .button { width: 100%; }
  .stat-grid { gap: 1.25rem; grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-bottom: 1px solid var(--line); border-right: 0; padding: 0 0 1.25rem; }
  .stat:last-child { border-bottom: 0; }
  .gallery-grid > *, .gallery-grid > :first-child, .gallery-grid > :nth-child(2), .gallery-grid > :nth-child(3), .gallery-grid > :nth-child(4) { grid-column: span 12; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header { color: #000; position: static; }
  .hero { background: none; color: #000; min-height: auto; padding: 3rem 0; }
  .hero h1, .hero p { color: #000; }
  .hero-actions, .menu-toggle { display: none !important; }
  .section { padding: 2rem 0; }
  .site-footer { background: none; color: #000; }
}
