/* ============================================================
   Hotel Marantama — Modern Tropical Design System
   ============================================================ */

:root {
  /* PALETTE A — Terracotta / Sand / Teak (default) */
  --bg:         #F4EEE3;        /* warm sand */
  --bg-2:       #EBE1CF;        /* deeper sand */
  --bg-card:    #FBF7EF;        /* cream card */
  --ink:        #2A1F14;        /* deep teak / near-black */
  --ink-2:      #4A3826;        /* teak */
  --ink-muted:  #7A6851;        /* muted cocoa */
  --ink-soft:   #A89781;        /* soft tan */
  --line:       #D9C9AE;        /* sand line */
  --line-soft:  #E8DCC4;

  --accent:     #B84F2B;        /* terracotta */
  --accent-2:   #D87544;        /* warm terracotta highlight */
  --accent-ink: #8C3517;

  --leaf:       #4F6B3A;        /* jungle sage */
  --leaf-2:     #6D8956;

  --ok:         #1EA64D;        /* WhatsApp-like green, muted */
  --wa:         #25D366;

  /* Type */
  --f-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 0 rgba(42,31,20,0.04), 0 2px 14px rgba(42,31,20,0.05);
  --shadow-md: 0 4px 20px rgba(42,31,20,0.08);
  --shadow-lg: 0 20px 60px rgba(42,31,20,0.14);
}

/* PALETTE B — Jungle / Moss / Clay */
[data-palette="jungle"] {
  --bg:         #EFEADB;
  --bg-2:       #E3DCC7;
  --bg-card:    #F7F3E8;
  --ink:        #1F2A1A;
  --ink-2:      #2F4028;
  --ink-muted:  #5D6B4E;
  --ink-soft:   #8B9678;
  --line:       #C9D2B4;
  --line-soft:  #DDE3CD;

  --accent:     #C66A2E;
  --accent-2:   #E08542;
  --accent-ink: #8F4516;

  --leaf:       #3D5A2A;
  --leaf-2:     #597B40;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--accent); color: #fff; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Layout helpers ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap-tight { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ===== Eyebrow / small caps label ===== */
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.centered { justify-content: center; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
h1 { font-size: clamp(42px, 8vw, 96px); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 5.5vw, 58px); line-height: 1.02; letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 22px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
}
.nav-logo em { font-style: italic; color: var(--accent); font-weight: 400; }
.nav-logo > span:last-child { white-space: nowrap; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { height: 58px; }
  .nav-logo { font-size: 19px; }
  .nav-logo .mark { width: 30px; height: 30px; font-size: 17px; }

  .nav[data-open="true"] .nav-mobile {
    display: flex;
  }
  .nav-mobile {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-mobile a {
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
  }
  .nav-mobile a:last-of-type { border-bottom: none; }
  .nav-mobile .nav-cta { margin-top: 14px; display: inline-flex; align-self: flex-start; }
}
@media (min-width: 861px) {
  .nav-mobile { display: none !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fb858; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ghost-light {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 72px 20px 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 79, 43, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(79, 107, 58, 0.12), transparent 45%);
  pointer-events: none;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: var(--bg); font-size: 24px; }
.footer-brand .nav-logo .mark { background: var(--bg); color: var(--ink); }
.footer-brand p {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.6;
}
.footer h4 {
  color: var(--bg);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a, .footer li {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.15s;
}
.footer a:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  position: relative;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section helpers ===== */
section { padding: 80px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }

.section-head {
  margin-bottom: 48px;
  max-width: 760px;
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }

/* Tweaks panel */
.tweaks {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  width: 240px;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h5 {
  font-family: var(--f-display);
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--ink);
}
.tweaks label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin: 14px 0 8px;
}
.tweaks .choices { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .choices button {
  flex: 1 1 auto;
  padding: 9px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.tweaks .choices button:hover { border-color: var(--ink); color: var(--ink); }
.tweaks .choices button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
