/* =====================================================================
   ECSTATIC ROPE — Concept Site Stylesheet
   Brand: Heather Rhea Dawn
   Concept: "The Path Forward" — a journey from first encounter to
   immersive retreat. Warm, sacred, sensual (not sexual), grounded.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --ink:        #2b2018;   /* warm near-black, body text          */
  --ink-soft:   #5c4f44;   /* muted warm grey for secondary text  */
  --bg:         #f1e5cf;   /* soft warm cream, page background    */
  --bg-2:       #e6d4ad;   /* deeper sand, alternating section    */
  --plum:       #3b2530;   /* deep aubergine, dark sections       */
  --plum-2:     #2a1a22;   /* deeper aubergine                    */
  --clay:       #b06a41;   /* rope / terracotta, primary accent   */
  --clay-dk:    #8f5230;   /* darker clay for hovers              */
  --gold:       #c6a063;   /* muted gold, fine detail accent      */
  --line:       #d8c7ad;   /* hairline / border                  */

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 18px 50px -22px rgba(43,32,24,.45);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.1rem;
  display: inline-block;
}
.lead { font-size: 1.22rem; color: var(--ink-soft); font-weight: 300; }
.script { font-style: italic; }
em, i { font-style: italic; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.6rem; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.section--sand  { background: var(--bg-2); }
.section--plum  { background: var(--plum); color: #ede2d4; }
.section--plum h1,.section--plum h2,.section--plum h3 { color: #f3e9da; }
.section--plum .eyebrow { color: var(--gold); }
/* .lead defaults to a dark warm grey for light pages; on dark sections, let it
   take the section's own light color and bump the weight from 300 to 400. */
.section--plum .lead { color: #ede2d4; font-weight: 400; }
.center { text-align: center; }
.measure { max-width: 640px; }
.center .measure { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1rem 2rem; border: 1px solid var(--clay);
  background: var(--clay); color: #fff; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--clay-dk); border-color: var(--clay-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: transparent; color: #f3e9da; border-color: var(--gold); }
.btn--light:hover { background: var(--gold); color: var(--plum-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(247,240,230,.96);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .7rem; padding-bottom: .7rem;
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  letter-spacing: .02em; line-height: 1;
}
.brand__sub {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: .58rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--clay); margin-top: 3px;
}
/* light variant over dark hero */
.site-header:not(.scrolled) .nav-light { color: #f3e9da; }
.site-header:not(.scrolled) .nav-light .brand__name { color: #fff; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 400; position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--clay); transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: .7rem 1.4rem; }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none; width: 40px; height: 40px; background: none; border: 0;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 6px;
}

/* ---------- Dropdown menus in the primary nav ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a.nav-parent { padding-right: 1.1rem; position: relative; }
.nav-item > a.nav-parent .caret {
  display: inline-block; margin-left: .35rem; font-size: .7em;
  transition: transform .25s var(--ease);
}
.nav-sub {
  position: absolute; top: 100%; left: -1rem;
  min-width: 280px; padding: .7rem 0;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow); z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
}
.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub {
  opacity: 1; visibility: visible; transform: none;
}
.nav-item:hover > .nav-parent .caret,
.nav-item:focus-within > .nav-parent .caret { transform: rotate(180deg); }
.nav-sub a {
  display: block; padding: .6rem 1.3rem;
  font-size: .78rem; letter-spacing: .12em;
  color: var(--ink); text-transform: uppercase;
}
.nav-sub a::after { display: none !important; }
.nav-sub a:hover { background: var(--bg-2); color: var(--clay); }
.nav-toggle span { display: block; height: 2px; background: currentColor; transition: .3s var(--ease); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; position: relative; z-index: 110; }
  .nav-open .nav-toggle { color: #f3e9da; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--plum); color: #ede2d4;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 1.1rem; padding: 5rem 2.4rem 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1rem; color: #ede2d4; }

  /* on mobile, dropdowns become inline indented sub-lists (always shown) */
  .nav-item { display: block; width: 100%; }
  .nav-item > a.nav-parent .caret { display: none; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    padding: .4rem 0 .2rem 1.1rem;
    min-width: 0;
  }
  .nav-sub a {
    color: #ede2d4; padding: .35rem 0;
    font-size: .82rem; letter-spacing: .1em;
  }
  .nav-sub a:hover { background: transparent; color: var(--gold); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #f4ebdd; padding: 8rem 0 4rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(33,18,24,.86) 0%, rgba(33,18,24,.52) 55%, rgba(33,18,24,.2) 100%);
}
.hero__inner { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 1.6rem; }
.hero h1 em { color: var(--gold); }
.hero .lead { color: #e7dccb; margin-bottom: 2.2rem; }
.hero__tag {
  font-family: var(--sans); letter-spacing: .3em; text-transform: uppercase;
  font-size: .78rem; color: var(--gold); margin-bottom: 1.4rem; display: block;
}

/* page banner (interior pages) */
.banner {
  position: relative; padding: 12rem 0 5rem; color: #f4ebdd; text-align: center;
}
.banner__bg { position: absolute; inset: 0; z-index: -2; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.banner__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,18,24,.7) 0%, rgba(33,18,24,.55) 100%);
}
.banner h1 { color: #fff; }
.banner .eyebrow { color: var(--gold); }
.banner p { color: #e7dccb; max-width: 560px; margin: 1rem auto 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.8rem; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 860px) { .grid--3,.grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid--2,.grid--3,.grid--4 { grid-template-columns: 1fr; } }

/* split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media .frame {
  position: absolute; inset: 16px; border: 1px solid var(--gold); pointer-events: none;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3/2; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 1.6rem 1.5rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .5rem; }
.card__price {
  font-family: var(--sans); font-weight: 500; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--clay);
  margin: .2rem 0 .9rem;
}
.card__link {
  margin-top: auto; padding-top: 1rem; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay); font-weight: 500;
}
.card__link::after { content: " \2192"; }

/* journey steps */
.step { position: relative; padding: 2rem 1.6rem; background: var(--bg); border: 1px solid var(--line); }
.step__num {
  font-family: var(--serif); font-size: 3rem; color: var(--gold);
  line-height: 1; display: block; margin-bottom: .6rem;
}
.section--plum .step { background: var(--plum-2); border-color: rgba(198,160,99,.3); }

/* pricing list */
.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.price-row__name { font-family: var(--serif); font-size: 1.4rem; }
.price-row__desc { font-size: .92rem; color: var(--ink-soft); margin-top: .15rem; }
.price-row__fig {
  font-family: var(--sans); font-weight: 500; white-space: nowrap;
  color: var(--clay); letter-spacing: .04em; text-align: right;
}
.price-row__fig small { display: block; font-weight: 300; color: var(--ink-soft); letter-spacing: 0; }

/* quote / testimonial */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.4; color: inherit;
}
.quote cite {
  display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay);
}
.section--plum .quote cite { color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 14px; }
@media (max-width: 760px) { .gallery { columns: 2; } }
@media (max-width: 460px) { .gallery { columns: 1; } }
.gallery figure {
  break-inside: avoid; margin-bottom: 14px; position: relative;
  overflow: hidden; cursor: pointer;
}
.gallery img { width: 100%; transition: transform .6s var(--ease), filter .4s var(--ease); }
.gallery figure::after {
  content: "\002B"; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; font-size: 2rem; color: #fff;
  background: rgba(43,24,32,.45); opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;  /* hover overlay must not eat clicks on the image */
}
.gallery figure:hover::after { opacity: 1; }
.gallery figure:hover img { transform: scale(1.05); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; background: rgba(20,11,15,.94);
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.8rem; background: none; border: 0;
  color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; background: rgba(0,0,0,.35); color: #fff;
  border: 0; cursor: pointer; font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox__nav:hover { background: rgba(0,0,0,.6); }
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }
.lightbox__count {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-family: var(--sans);
  font-size: .82rem; letter-spacing: .18em;
}
@media (max-width: 600px) {
  .lightbox__prev { left: .5rem; }
  .lightbox__next { right: .5rem; }
  .lightbox__nav { width: 44px; height: 44px; }
}

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.4rem 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.faq__q .pm { color: var(--clay); font-size: 1.6rem; transition: transform .3s var(--ease); }
.faq__item.open .pm { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding-bottom: 1.4rem; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--plum-2); color: #ece1d2; }
.newsletter h2 { color: #f3e9da; }
.newsletter .eyebrow { color: var(--gold); }
.newsletter .lead { color: #ece1d2; font-weight: 400; }
.news-form { max-width: 720px; margin: 1.8rem auto 0; }
.news-fields { display: flex; gap: .8rem; flex-wrap: wrap; }
.news-fields input {
  flex: 1; min-width: 200px; padding: 1rem 1.1rem; border: 1px solid rgba(198,160,99,.4);
  background: rgba(255,255,255,.05); color: #fff; font-family: var(--sans); font-size: 1rem;
}
.news-fields input::placeholder { color: #b6a48f; }
.news-interests {
  display: flex; flex-wrap: wrap; gap: .5rem .7rem; justify-content: center;
  margin: 1.4rem 0 .4rem;
}
.news-interests legend {
  width: 100%; text-align: center; font-size: .74rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .9rem;
}
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: block; padding: .5rem 1rem; border: 1px solid rgba(198,160,99,.45);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.chip input:checked + span { background: var(--gold); color: var(--plum-2); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.news-note { font-size: .82rem; color: #b6a48f; margin-top: 1rem; }
.news-ok { display: none; color: var(--gold); font-family: var(--serif); font-size: 1.4rem; font-style: italic; }
.news-ok.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-2); color: #c9bba8; padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 {
  color: var(--gold); font-family: var(--sans); font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.site-footer a:hover { color: var(--gold); }
.site-footer .brand__name { color: #f3e9da; }
.footer-links li { margin-bottom: .55rem; font-size: .95rem; }
.socials { display: flex; flex-wrap: wrap; gap: .7rem; }
.socials a {
  width: 42px; height: 42px; border: 1px solid rgba(198,160,99,.35);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--plum-2); }
.socials svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(198,160,99,.2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .8rem; color: #8f8170;
}

/* ---------- Misc ---------- */
.note {
  background: var(--bg-2); border-left: 3px solid var(--clay);
  padding: 1.3rem 1.5rem; font-size: .96rem;
}
.tag-strip {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.5rem;
}
.tag {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line); padding: .4rem .9rem; color: var(--ink-soft);
}
.divider-mark { text-align: center; color: var(--gold); font-size: 1.4rem; letter-spacing: .8rem; }

/* ---------- Inquiry forms ---------- */
.form-card {
  background: var(--bg); border: 1px solid var(--line);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.section--sand .form-card { background: #fff; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: .95rem 1.05rem; border: 1px solid var(--line);
  background: var(--bg); font-family: var(--sans); font-size: 1rem; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none; border-color: var(--clay);
}
.form-card textarea { resize: vertical; line-height: 1.6; }
.form-card label {
  display: block; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .4rem;
}
.field { margin-top: 1rem; }
.form-ok {
  display: none; text-align: center; margin-top: 1.4rem;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--clay);
}
.form-ok.show { display: block; }

/* ---------- Contact details ---------- */
.contact-list li {
  display: flex; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic { color: var(--clay); font-size: 1.2rem; flex: none; }
.contact-list .k {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.contact-list .v { font-family: var(--serif); font-size: 1.25rem; }

/* ---------- 18+ entry gate ---------- */
.age-gate-open { overflow: hidden; }
.age-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20,11,15,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem;
  animation: agFadeIn .35s var(--ease);
}
.age-gate__card {
  background: var(--bg); max-width: 480px; width: 100%;
  padding: clamp(2rem, 5vw, 2.6rem);
  border: 1px solid var(--gold);
  text-align: center;
  box-shadow: var(--shadow);
}
.age-gate__card h2 { margin: .6rem 0 1rem; }
.age-gate__card p { color: var(--ink-soft); }
.age-gate__row {
  display: flex; gap: .8rem; justify-content: center;
  margin-top: 1.6rem; flex-wrap: wrap;
}
@keyframes agFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
