/* Anicca Journeys — v3
   Palette taken from the logo: paper, brown ink, umber, sand. */

:root {
  --sea: #3b2414;
  --lagoon: #7a5534;
  --shell: #f4ece1;
  --paper-deep: #eadcc8;
  --mist: #dccab1;
  --ink: #2a1a0e;
  --gold: #b8915e;
  --muted: #5a4330;

  --veil: 0.55; /* hero overlay strength, set by site.js */

  --display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.5rem, 6vw, 4.75rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header & nav ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--shell);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.wordmark .mark {
  width: 2.4rem;
  height: 2.3rem;
  background-color: currentColor;
  -webkit-mask: url("mark.png") center / contain no-repeat;
  mask: url("mark.png") center / contain no-repeat;
  flex: none;
}

.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.75rem;
}

.nav-links a,
.menu-button {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
}
.nav-links a:hover,
.menu-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-button::after {
  content: "";
  display: inline-block;
  width: 0.4em; height: 0.4em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.2em) rotate(45deg);
  transition: transform 0.2s;
}
.menu-button[aria-expanded="true"]::after { transform: translateY(0.05em) rotate(-135deg); }

.has-menu { position: relative; }

.menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  min-width: 17rem;
  background: var(--shell);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(59, 36, 20, 0.22);
  display: none;
}
.menu.open { display: block; }
.menu a, .menu-soon { display: block; padding: 0.6rem 1rem; font-size: var(--step--1); }
.menu a:hover { background: var(--mist); text-decoration: none; }
.menu-soon { color: #8a7258; }

.nav-cta {
  border: 1px solid currentColor !important;
  border-radius: 999px;
  padding: 0.45rem 1.1rem !important;
}
.nav-cta:hover { text-decoration: none !important; background: rgba(244, 236, 225, 0.15); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  color: var(--shell);
  background:
    linear-gradient(90deg, rgba(42, 26, 14, calc(var(--veil) + 0.15)) 0%, rgba(42, 26, 14, var(--veil)) 35%, rgba(42, 26, 14, 0.05) 75%),
    linear-gradient(180deg, rgba(42, 26, 14, 0.35) 0%, rgba(42, 26, 14, 0) 22%),
    url("img-hero.jpg") 60% center / cover no-repeat;
  background-color: var(--sea);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 8rem var(--gutter) 6rem;
}

.hero h1 { font-size: var(--step-4); max-width: 14ch; margin-bottom: 1.5rem; }

.lede { font-size: var(--step-1); line-height: 1.5; max-width: 32rem; margin-bottom: 2rem; }

.bali-now {
  margin-top: 2.5rem;
  font-size: var(--step--1);
  max-width: 34rem;
  opacity: 0.9;
  min-height: 1.6em;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s;
}
.button:hover { background: #c9a574; }

/* ---------- Sections ---------- */

main > section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

main h2 { font-size: var(--step-3); margin-bottom: 1.5rem; max-width: 22ch; }
main h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }

/* Journey */

.journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
.journey-head h2 { margin-bottom: 0; }
.journey-meta { margin: 0; color: #6a523c; max-width: 30rem; }

.route {
  list-style: none;
  margin: 0 0 4.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}
.route img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}
.nights {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--lagoon);
  margin-bottom: 0.3rem;
}
.route p { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* Included + Sumba upgrade */

.included {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--sea);
  color: var(--shell);
  border-radius: var(--radius);
  overflow: hidden;
}
.included-list { padding: clamp(1.75rem, 4vw, 3.25rem); }
.included-list h3 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.included-list ul { margin: 0 0 1.5rem; padding-left: 1.1rem; }
.included-list li { margin-bottom: 0.6rem; }
.included-list li::marker { color: var(--gold); }
.not-included { font-size: var(--step--1); color: var(--mist); margin: 0; }

.upgrade { margin: 0; position: relative; min-height: 22rem; }
.upgrade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upgrade figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 4rem 1.75rem 1.75rem;
  background: linear-gradient(180deg, rgba(42, 26, 14, 0) 0%, rgba(42, 26, 14, 0.85) 60%);
}
.upgrade h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.upgrade p { font-size: var(--step--1); margin: 0; color: var(--shell); }

/* Detail strip */

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.details img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Occasions */

.occasions { background: var(--paper-deep); }
.occasion-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}
.occasion-list p { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* How it works */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: var(--step-3);
  color: var(--lagoon);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.steps p { font-size: var(--step--1); color: var(--muted); margin: 0; }

/* FAQ */

.faq { background: var(--paper-deep); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem 4rem;
}
.faq-list details { border-top: 1px solid var(--mist); }
.faq-list details:last-child { border-bottom: 1px solid var(--mist); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 500;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--lagoon);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; max-width: 40rem; }

/* About */

.about { background: var(--sea); color: var(--shell); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2rem 4rem;
}
.about-text { font-size: var(--step-1); line-height: 1.6; max-width: 38rem; }
.about-text em { font-family: var(--display); font-style: normal; color: var(--gold); }

/* Enquire */

.enquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem 4rem;
  align-items: start;
}
.enquire-alt { color: var(--muted); font-size: var(--step--1); }

.enquiry { display: grid; gap: 1rem; }
.enquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enquiry label {
  display: grid;
  gap: 0.35rem;
  font-size: var(--step--1);
  font-weight: 500;
}
.enquiry input,
.enquiry select,
.enquiry textarea {
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: #fbf7f1;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.enquiry input:focus,
.enquiry select:focus,
.enquiry textarea:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 3px rgba(184, 145, 94, 0.3); }
.enquiry .button { justify-self: start; }
.form-note { font-size: var(--step--1); color: #8a7258; margin: 0; }
.form-note.error { color: #9b2c1c; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 3rem 0;
  font-size: var(--step--1);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; align-items: center; }
.footer-inner p { margin: 0; }
.site-footer .wordmark { color: var(--shell); font-size: var(--step-0); }
.copyright { margin-left: auto !important; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .route, .occasion-list, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-head, .about-grid, .faq-grid, .enquire-grid, .included { grid-template-columns: 1fr; }
  .upgrade { min-height: 24rem; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    font: inherit;
    font-size: var(--step--1);
    font-weight: 500;
    color: inherit;
    background: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    cursor: pointer;
  }
  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--shell);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .menu { position: static; box-shadow: none; min-width: 0; padding: 0.25rem 0 0 0.75rem; background: transparent; }
  .menu a, .menu-soon { padding: 0.35rem 0; }
  .nav-cta { border-color: var(--ink) !important; }
  .hero { background-position: 70% center; }
  .hero-inner { padding: 8rem var(--gutter) 5rem; }
  .route, .occasion-list, .steps { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr 1fr 1fr; }
  .enquiry .row { grid-template-columns: 1fr; }
  .copyright { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-button::after, .button { transition: none; }
}
