/* Evolve Escapes — design system
   Direction: "First Light" — sun-bleached, carved, strong.
   Warm sand canvas, deep harbour-navy ink, champagne gold horizon rules,
   burnt-coral action colour. Photography carries the sun; UI stays quiet.
   Fonts: Syne (display) + Hanken Grotesk (body).
   Contrast (computed): ink/sand 14.6:1 · secondary/sand 7.0:1 · sand-text/ink 13.1:1
   gold/ink 6.9:1 · white/coral 4.9:1 · gold-deep/sand 5.0:1
   Gold #D9A05C is NEVER body text on light surfaces (2.1:1). Use #8A6320 there.
*/

:root {
  --sand: #FAF6EF;
  --sand-deep: #F1E8DA;
  --sand-line: #E4D8C4;
  --ink: #182430;
  --ink-soft: #223140;
  --text: #182430;
  --text-2: #5C5343;          /* warm secondary on sand, 7.0:1 */
  --on-ink: #F2E9DA;          /* sand text on ink, 13.1:1 */
  --on-ink-2: #C8BBA6;        /* muted on ink, 8.3:1 */
  --gold: #D9A05C;            /* rules, badges on dark, decorative only on light */
  --gold-deep: #8A6320;       /* gold-toned TEXT on sand, 5.0:1 */
  --coral: #C24914;           /* primary action surface, white text 4.9:1 */
  --coral-hover: #AD3F0F;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Hanken Grotesk", "Avenir Next", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); }
h2 { font-size: clamp(1.85rem, 4.5vw, 3rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; margin-bottom: 0.4em; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35em; }

p, li { max-width: 68ch; }
a { color: inherit; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}
.panel-ink :focus-visible, .hero :focus-visible, footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--gold);
}

.container { max-width: 1180px; margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 9vw, 108px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }

/* The gold horizon — the site's signature rule */
.horizon {
  border: 0;
  height: 2px;
  background: var(--gold);
  width: 84px;
  margin: 0 0 26px;
}
.horizon-wide { width: 100%; opacity: 0.55; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  border-bottom: 1px solid rgba(217, 160, 92, 0.35);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-ink);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 12px;
  border: 1px solid rgba(242, 233, 218, 0.4);
  border-radius: var(--radius-sm);
  color: var(--on-ink);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary { background: var(--ink-soft); }
.nav-menu .menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 220px;
  box-shadow: 0 18px 40px rgba(10, 16, 22, 0.45);
}
.nav-menu .menu-panel a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--on-ink);
}
.nav-menu .menu-panel a:hover { background: var(--ink-soft); color: #fff; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-menu { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn-ghost-light {
  background: transparent;
  color: var(--on-ink);
  box-shadow: inset 0 0 0 2px var(--on-ink);
}
.btn-ghost-light:hover { background: var(--on-ink); color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 0.92rem; }
.text-link {
  font-weight: 600;
  color: var(--text);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
}
.text-link:hover { text-decoration-color: var(--coral); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: first-light 1.6s var(--ease-out) both;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(24, 36, 48, 0.88) 0%,
    rgba(24, 36, 48, 0.55) 34%,
    rgba(24, 36, 48, 0.12) 62%,
    rgba(24, 36, 48, 0.05) 100%
  );
}
.hero-inner { width: 100%; padding-block: clamp(48px, 7vw, 88px) clamp(30px, 4vw, 48px); }
.hero .horizon { transform-origin: left; animation: horizon-draw 1.1s 0.35s var(--ease-out) both; }
.hero p { color: #F5EEE1; font-size: clamp(1.05rem, 2vw, 1.25rem); margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.hero-actions .text-link { color: #fff; }

@keyframes first-light {
  from { filter: brightness(0.72) saturate(0.85); transform: scale(1.03); }
  to   { filter: brightness(1) saturate(1); transform: scale(1); }
}
@keyframes horizon-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* The retreat ledger — one line of facts on the horizon */
.ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 2px solid var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  color: #F5EEE1;
  max-width: 720px;
}
.ledger span { display: inline-flex; align-items: center; }
.ledger span + span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--gold);
  margin-inline: 14px;
}
.ledger-dark { color: var(--text); border-top-color: var(--gold); }

/* ---------- Ink panels ---------- */
.panel-ink { background: var(--ink); color: var(--on-ink); }
.panel-ink h2, .panel-ink h3 { color: #fff; }
.panel-ink p { color: var(--on-ink); }
.panel-ink strong { color: #fff; }
.panel-ink .muted { color: var(--on-ink-2); }
.panel-sand-deep { background: var(--sand-deep); }

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

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out);
}
a.card { text-decoration: none; color: inherit; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin-bottom: 0; }
.tile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.card-facts {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-2);
  border-top: 2px solid var(--gold);
  padding-top: 10px;
  margin-top: auto;
}

.card.panel-ink {
  background: var(--ink);
  border: 0;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
}
.badge-live { background: var(--coral); color: #fff; }
.badge-inline {
  display: inline-block;
  position: static;
  margin-bottom: 4px;
  width: fit-content;
}

/* ---------- Split sections (asymmetric) ---------- */
.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
.split-photo { border-radius: var(--radius); overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .split { grid-template-columns: 7fr 5fr; gap: 56px; }
  .split.flip .split-photo { order: 2; }
  .split-8-4 { grid-template-columns: 8fr 4fr; }
}

/* ---------- Steps on the horizon ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 30px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 18px;
  border-top: 2px solid var(--gold);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 6px;
}
.panel-ink .steps li::before { color: var(--gold); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Quotes ---------- */
.quote-row { display: grid; gap: 24px; }
@media (min-width: 860px) { .quote-row { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: #fff;
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote blockquote { font-size: 1.05rem; line-height: 1.55; }
.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.92rem;
  border-top: 2px solid var(--gold);
  padding-top: 10px;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--sand-line); }
.faq details { border-bottom: 1px solid var(--sand-line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 4px 22px; color: var(--text-2); }
.faq summary:hover { color: var(--coral); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.98rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand-line);
  vertical-align: top;
}
table.data th {
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .form-full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--text-2); font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #B9AB92;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 1px;
}
.field textarea { min-height: 130px; resize: vertical; }

.note-box {
  background: var(--sand-deep);
  border: 1px solid var(--sand-line);
  border-left: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  font-size: 0.98rem;
}

/* ---------- Inline email capture ---------- */
.club-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.club-form input {
  flex: 1 1 240px;
  font: inherit;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #B9AB92;
  background: #fff;
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 56px 34px;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer .footer-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer .muted { color: var(--on-ink-2); }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-logo img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-base {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(217, 160, 92, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--on-ink-2);
}
.social-links { display: flex; gap: 14px; }
.social-links a { display: inline-flex; padding: 6px; }
.social-links svg { width: 20px; height: 20px; fill: none; stroke: var(--on-ink); stroke-width: 1.6; }
.social-links a:hover svg { stroke: var(--gold); }

/* ---------- Utility ---------- */
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.center { text-align: center; }
.center p { margin-inline: auto; }
.stack > * + * { margin-top: 14px; }
.prose > * + * { margin-top: 16px; }
.prose h3 { margin-top: 34px; }
.prose > section + section { margin-top: 56px; }
.prose section h2 { margin-bottom: 16px; }
.prose section h3 { margin-top: 30px; margin-bottom: 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-2); }
.wide-cta {
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 56px);
}
.toc {
  list-style: none;
  display: grid;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.toc a { text-decoration: none; font-weight: 600; padding-block: 4px; display: inline-block; }
.toc a:hover { color: var(--coral); }
@media (min-width: 760px) { .toc { grid-template-columns: 1fr 1fr; } }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-photo img { animation: none; filter: none; transform: none; }
  .hero .horizon { animation: none; transform: none; }
}
