/* ============================================================
   RONCHALON BAHAMAS — Lyford Cay / Palm Beach aesthetic
   ============================================================ */

:root {
  --ivory:      #FBF8F2;
  --shell:      #F4EEE3;
  --sand:       #E9E0CF;
  --palm:       #24503A;
  --palm-deep:  #173828;
  --palm-soft:  #46705A;
  --coral:      #C97C5F;
  --hibiscus:   #B65C43;
  --brass:      #A98A50;
  --ink:        #22251F;
  --ink-soft:   #55584F;
  --line:       rgba(36, 80, 58, .22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--palm); color: var(--ivory); }

/* ---------- type helpers ---------- */

.label {
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.label--brass  { color: var(--brass); }
.label--palm   { color: var(--palm); }
.label--ivory  { color: rgba(251,248,242,.85); }

h1, h2, h3 { font-weight: 500; }

.display {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: .01em;
}

.display em, .h-lg em, .h-md em { font-style: italic; font-weight: 400; }

.h-lg { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; }
.h-md { font-size: clamp(26px, 3vw, 36px);   line-height: 1.2; }
.h-sm { font-size: 24px; line-height: 1.3; }

.lede {
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.rule {
  width: 56px; height: 1px;
  background: var(--brass);
  border: 0;
  margin: 28px 0;
}

.rule--center { margin-left: auto; margin-right: auto; }

/* ---------- structure ---------- */

.wrap    { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }
.wrap--narrow { max-width: 860px; margin: 0 auto; padding: 0 6vw; }

section { padding: 110px 0; }

.center { text-align: center; }

/* ---------- top bar / nav ---------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,248,242,0);
  transition: background .45s ease, box-shadow .45s ease;
}

.topbar.solid {
  background: rgba(251,248,242,.96);
  box-shadow: 0 1px 0 var(--line);
}

.topbar__inner {
  max-width: 1360px; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}

.brand { text-align: left; line-height: 1; }

.brand__name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .30em;
  color: var(--palm);
}

.brand__sub {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: .46em;
  color: var(--brass);
  margin-top: 6px;
  text-transform: uppercase;
}

.topbar--overlay:not(.solid) .brand__name { color: var(--ivory); }
.topbar--overlay:not(.solid) .brand__sub  { color: rgba(251,248,242,.75); }

nav.mainnav { display: flex; gap: 10px; align-items: center; }

nav.mainnav a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--palm);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(251,248,242,.25);
  transition: background .3s, border-color .3s;
}

nav.mainnav a:hover { background: var(--palm-deep); border-color: var(--brass); }

nav.mainnav a.active { background: var(--palm-deep); border-color: rgba(251,248,242,.55); }

/* mobile nav */
.navtoggle { display: none; background: none; border: 0; cursor: pointer; }
.navtoggle span { display: block; width: 26px; height: 1.5px; background: var(--palm); margin: 6px 0; transition: .3s; }
.topbar--overlay:not(.solid) .navtoggle span { background: var(--ivory); }

@media (max-width: 900px) {
  .topbar__inner { padding: 0 24px; height: 76px; }
  .navtoggle { display: block; }
  nav.mainnav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.mainnav.open { display: flex; }
  nav.mainnav a {
    padding: 18px 0; width: 100%; text-align: center;
    background: none; border: 0; border-radius: 0;
    color: var(--ink) !important;
  }
  nav.mainnav a.active, nav.mainnav a:hover { background: var(--shell); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}

.hero--short { min-height: 64vh; }

.hero__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 18s ease-out forwards;
}

@keyframes heroDrift { to { transform: scale(1); } }

.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,32,25,.72) 0%, rgba(18,32,25,.18) 45%, rgba(18,32,25,.28) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6vw 96px;
}

.hero__content .rule { background: rgba(251,248,242,.6); }

.hero .lede { color: rgba(251,248,242,.88); max-width: 640px; }

/* ---------- hero path cards ---------- */

.heropaths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 46px;
  max-width: 780px;
}

.heropath {
  display: block;
  border: 1px solid rgba(251,248,242,.55);
  background: rgba(18,32,25,.28);
  backdrop-filter: blur(3px);
  padding: 30px 32px 28px;
  transition: background .35s ease, border-color .35s ease;
}

.heropath:hover { background: rgba(251,248,242,.96); border-color: rgba(251,248,242,.96); }
.heropath:hover .heropath__title { color: var(--palm); }
.heropath:hover .heropath__line  { color: var(--ink-soft); }
.heropath:hover .heropath__cta   { color: var(--palm); border-color: var(--brass); }
.heropath:hover .label           { color: var(--brass); }

.heropath__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--ivory);
  margin-top: 10px;
  transition: color .35s;
}

.heropath__line {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(251,248,242,.82);
  margin-top: 8px;
  transition: color .35s;
}

.heropath__cta {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ivory);
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(251,248,242,.5);
  transition: color .35s, border-color .35s;
}

@media (max-width: 760px) {
  .heropaths { grid-template-columns: 1fr; }
}

/* ---------- buttons ---------- */

.btnrow { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 42px; }

.btn {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 17px 36px;
  border: 1px solid currentColor;
  transition: all .35s ease;
  display: inline-block;
}

.btn--ivory { color: var(--ivory); }
.btn--ivory:hover { background: var(--ivory); color: var(--palm); }

.btn--palm { color: var(--palm); }
.btn--palm:hover { background: var(--palm); color: var(--ivory); }

.btn--solid { background: var(--palm); color: var(--ivory); border-color: var(--palm); }
.btn--solid:hover { background: var(--palm-deep); border-color: var(--palm-deep); }

/* ---------- stats band ---------- */

.stats {
  background: var(--palm);
  color: var(--ivory);
  padding: 84px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat__num {
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.stat__num sup { font-size: .45em; vertical-align: super; }

.stat__label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(251,248,242,.66);
  margin-top: 16px;
}

@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}

/* ---------- split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split--rev > .split__img { order: 2; }

.split__img { position: relative; }

.split__img img {
  width: 100%;
  height: clamp(420px, 56vw, 620px);
  object-fit: cover;
}

.frame { position: relative; }
.frame::after {
  content: '';
  position: absolute; inset: 18px;
  border: 1px solid rgba(251,248,242,.55);
  pointer-events: none;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > .split__img { order: 0; }
  .split__img img { height: 62vw; }
}

/* ---------- cards / grid ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

.pathcard {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--ivory);
}

.pathcard img {
  width: 100%; height: 430px; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}

.pathcard:hover img { transform: scale(1.05); }

.pathcard__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,32,25,.78), rgba(18,32,25,.06) 60%);
}

.pathcard__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 44px 40px;
}

.pathcard__body h3 { font-size: clamp(28px, 2.6vw, 38px); margin: 14px 0 10px; }

.pathcard__body p { color: rgba(251,248,242,.85); font-size: 18px; max-width: 420px; }

.pathcard__cta {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ivory);
  border-bottom: 1px solid rgba(251,248,242,.6);
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 20px;
}

/* ---------- numbered steps ---------- */

.steps { counter-reset: step; display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step__num {
  font-size: 20px;
  color: var(--brass);
  font-style: italic;
}

.step h3 { font-size: 26px; margin-bottom: 10px; }

.step p { color: var(--ink-soft); font-size: 19px; max-width: 720px; }

@media (max-width: 700px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- term sheet ---------- */

.terms {
  background: var(--shell);
}

.termgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.term {
  background: var(--shell);
  padding: 52px 48px;
}

.term__num {
  font-size: clamp(34px, 3.4vw, 46px);
  color: var(--palm);
}

.term h3 { font-size: 22px; margin: 12px 0 10px; }

.term p { color: var(--ink-soft); font-size: 18px; }

@media (max-width: 800px) { .termgrid { grid-template-columns: 1fr; } }

/* ---------- quote band ---------- */

.quote {
  position: relative;
  padding: 150px 0;
  color: var(--ivory);
  text-align: center;
  background-size: cover;
  background-position: center;
}

.quote__shade { position: absolute; inset: 0; background: rgba(18,32,25,.55); }

.quote blockquote {
  position: relative;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- portfolio ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 290px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 48px;
}

.gallery a { overflow: hidden; display: block; }

.gallery a.tall { grid-row: span 2; }

.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.6,.2,1), opacity .5s;
}

.gallery a:hover img { transform: scale(1.06); }

@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
}

.prop-head { max-width: 780px; }

.prop-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 26px;
}

.prop-meta div { font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.prop-meta strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 24px; letter-spacing: .02em; color: var(--palm); text-transform: none; margin-top: 6px; font-weight: 500; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,25,20,.94);
  display: none;
  align-items: center; justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; }

.lightbox__close {
  position: absolute; top: 30px; right: 40px;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .3em;
  color: var(--ivory); background: none; border: 0; cursor: pointer;
  text-transform: uppercase;
}

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--ivory);
  font-size: 44px; font-family: Georgia, serif; cursor: pointer;
  padding: 20px; opacity: .7; transition: opacity .3s;
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- footer ---------- */

footer {
  background: var(--palm-deep);
  color: rgba(251,248,242,.8);
  padding: 90px 0 50px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 70px;
}

.footer__brand .brand__name { color: var(--ivory); }
.footer__brand .brand__sub  { color: rgba(251,248,242,.55); }

.footer__brand p { font-size: 17px; margin-top: 24px; max-width: 340px; color: rgba(251,248,242,.65); }

footer h4 {
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 24px; font-weight: 400;
}

footer ul { list-style: none; }
footer li { margin-bottom: 14px; }
footer li a { font-size: 17px; transition: color .3s; color: rgba(251,248,242,.8); }
footer li a:hover { color: var(--ivory); }

.footer__legal {
  border-top: 1px solid rgba(251,248,242,.15);
  padding-top: 36px;
  font-size: 14px;
  color: rgba(251,248,242,.45);
  line-height: 1.7;
}

@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img { animation: none; }
}
