/* =========================================================================
   THE NINI — stylesheet
   Opbouw:
   1. Design tokens (kleuren, fonts, maten) — pas hier de huisstijl aan
   2. Basis (reset, typografie)
   3. Layout-hulpjes (container, secties, grids)
   4. Componenten (knoppen, header, hero, kaarten, menu, footer)
   5. Responsive (mobiel)
   ========================================================================= */

/* ---------- 1. Design tokens -------------------------------------------- */
@font-face {
  font-family: "Atyp Display";
  src: url("../assets/fonts/AtypDisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Atyp Display";
  src: url("../assets/fonts/AtypDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atyp Display";
  src: url("../assets/fonts/AtypDisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Atyp Display";
  src: url("../assets/fonts/AtypDisplay-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cotta";
  src: url("../assets/fonts/Cotta-Free.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Kleuren volgens The Nini Graphic Standard Manual (p. 26-27) */
  --forest:   #163628;  /* Jungle Green: hoofdkleur              */
  --olive:    #65744e;  /* Olive Rice Field: menukopjes          */
  --ochre:    #b97f3c;  /* The Golden Light: accent / knoppen    */
  --ochre-dk: #9a6528;  /* donkerder oker voor hover             */
  --wine:     #420014;  /* Red Wine Love: avond / lounge         */
  --cream:    #f2e6be;  /* Extract Bamboo: licht                 */
  --paper:    #f9f4e4;  /* lichte tint van Extract Bamboo        */
  --ink:      #2b2a24;  /* tekstkleur                            */
  --muted:    #6b675a;

  /* Fonts volgens manual (p. 32-33): Cotta Regular voor koppen, Atyp BL Display voor tekst.
     Cotta-Free en de Atyp-bestanden zijn "free for personal use" en missen leestekens/accenten; de browser vult die aan. */
  --font-display: "Cotta", "Cormorant Garamond", Georgia, serif;
  /* Atyp Display (manual p. 32) met Albert Sans als aanvulling voor tekens die in de Atyp-bestanden ontbreken */
  --font-body: "Atyp Display", "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --header-h: 76px;
}

/* ---------- 2. Basis ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 .4em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(44px, 7.5vw, 96px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); }
p  { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 14px;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }

/* ---------- 3. Layout --------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; overflow: hidden; }
.section--cream  { background: var(--cream); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--wine   { background: var(--wine);   color: var(--cream); }
.section--forest .lead, .section--wine .lead { color: rgba(242,230,190,.8); }
.section--paper  {
  background-color: var(--paper);
  /* subtiele papierstructuur, naadloos (geen randen) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Beeldelement: rijstaar met rasterpatroon (manual p. 10, 37-39), nooit gespiegeld of gedraaid */
.rice {
  position: absolute; bottom: 0;
  height: clamp(220px, 34vw, 440px); width: auto;
  pointer-events: none; z-index: 0;
}
.rice--right { right: clamp(-40px, -2vw, 0px); }
.rice--left  { left: clamp(-40px, -2vw, 0px); }
@media (max-width: 640px) { .rice { height: 180px; opacity: .3; } }
.section > .container { position: relative; z-index: 1; }

/* ---------- 4. Componenten ---------------------------------------------- */

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  font: 600 14px/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn--primary { background: var(--ochre); color: #fff; }
.btn--primary:hover { background: var(--ochre-dk); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
  color: #fff;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-solid, .site-header--solid { background: var(--forest); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.logo { position: relative; display: block; }
.logo img { height: 40px; width: auto; display: block; transition: opacity .3s; }
.logo .logo--green { position: absolute; inset: 0; opacity: 0; }
.site-header.is-solid .logo .logo--photo, .site-header--solid .logo .logo--photo { opacity: 0; }
.site-header.is-solid .logo .logo--green, .site-header--solid .logo .logo--green { opacity: 1; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .04em;
  opacity: .9; padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--ochre); }
.nav .btn { padding: 12px 20px; border: 0; opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  padding: calc(var(--header-h) + 40px) 0 clamp(48px, 8vw, 96px);
  background: var(--forest);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,54,40,.75) 0%, rgba(22,54,40,.35) 45%, rgba(22,54,40,0) 70%),
    linear-gradient(180deg, rgba(22,54,40,.5) 0%, rgba(22,54,40,0) 25%, rgba(22,54,40,.1) 55%, rgba(22,54,40,.85) 100%);
}
.hero__bg { object-position: 50% 35%; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero .eyebrow { color: var(--cream); }
.hero--short { min-height: 68svh; }

/* Feature-kaarten (3 pijlers op home) */
.card { position: relative; display: block; text-decoration: none; color: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--forest); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(22,54,40,.55) 60%, rgba(22,54,40,.95)); }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 1; }
.card__body p { margin: 0; opacity: .85; font-size: 15px; }
.card__more { display: inline-block; margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }

/* Info-lijst (uren, faciliteiten) */
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
/* Twee vaste kolommen: tweede kolom begint altijd op dezelfde plek */
.facts li { display: grid; grid-template-columns: minmax(150px, 36%) 1fr; column-gap: 20px; align-items: baseline; border-top: 1px solid rgba(0,0,0,.1); padding-top: 14px; }
.section--forest .facts li, .section--wine .facts li { border-color: rgba(242,230,190,.2); }
.facts strong { font-weight: 600; }

/* Quote / verhaal */
.story { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; max-width: 24ch; margin: 0 auto; }

/* Experiences-kaarten */
.exp { background: #fff; border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; border-top: 4px solid var(--ochre); }
.exp:nth-child(2) { border-color: var(--olive); }
.exp:nth-child(3) { border-color: var(--wine); }
.exp ul { padding-left: 18px; color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.exp .price { margin-top: auto; font-family: var(--font-display); font-size: 26px; color: var(--forest); }

/* ---------- Menu-pagina ---------- */
.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  background: var(--paper); border-bottom: 1px solid rgba(0,0,0,.08);
}
.menu-tabs .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
.menu-tabs button {
  flex: none; font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--olive);
  background: transparent; color: var(--olive); cursor: pointer;
}
.menu-tabs button[aria-selected="true"] { background: var(--olive); color: #fff; }
.menu-panel[hidden] { display: none; }
.menu-intro { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.menu-intro h2 { color: var(--olive); text-transform: uppercase; }
.menu-cols { columns: 2; column-gap: clamp(32px, 6vw, 96px); }
.menu-group { break-inside: avoid; margin-bottom: 44px; }
.menu-group h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); margin-bottom: 6px; }
.menu-group > p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.dish { padding: 12px 0; border-bottom: 1px dotted rgba(0,0,0,.15); }
.dish__top { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.dish__price { color: var(--ochre-dk); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__desc { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.menu-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }

/* Kaart (Google Maps) */
.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); filter: saturate(.8); }

/* Footer */
.site-footer { background: var(--forest); color: rgba(242,230,190,.85); padding: 80px 0 32px; font-size: 15px; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.site-footer h4 {
  font: 600 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ochre); margin: 0 0 20px; padding-top: 4px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer p { margin: 0 0 10px; max-width: 40ch; }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-brand a { text-decoration: underline; text-decoration-color: rgba(242,230,190,.35); text-underline-offset: 3px; }
.footer-logo { display: inline-block; margin-top: 18px; text-decoration: none !important; }
.footer-logo img { height: 72px; width: auto; display: block; }
.footer-address { display: grid; gap: 10px; }
.footer-bottom {
  grid-column: 1 / -1; border-top: 1px solid rgba(242,230,190,.15); padding-top: 24px; margin-top: 16px;
  font-size: 13px; color: rgba(242,230,190,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Links in lopende tekst (bv. Bambootel Sawah View) */
.text-link { color: inherit; text-decoration: underline; text-decoration-color: var(--ochre); text-underline-offset: 3px; }
.text-link:hover { color: var(--ochre); }

/* Vaste reserveerknop op mobiel */
.mobile-cta { display: none; }

/* Nog in te vullen gegevens — valt op tijdens ontwikkeling */
.todo { background: #fff3a8; color: #5a4a00; padding: 0 4px; border-radius: 2px; font-style: normal; }

/* Fade-in bij scrollen (zie js/main.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 5. Responsive ----------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--forest);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 24px var(--gutter);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { font-family: var(--font-display); font-size: 30px; letter-spacing: 0; }
  .nav .btn { font-family: var(--font-body); font-size: 14px; margin-top: 20px; }
  .split, .grid-3 { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split img { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .menu-cols { columns: 1; }
  .card { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .facts li { grid-template-columns: 1fr; row-gap: 2px; }
  .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
}

/* ---------- Toegevoegd na referentie Akar Ubud ---------- */

/* Review-badge rechtsonder in de hero (social proof) */
.rating {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 8vw, 96px); z-index: 2;
  display: grid; gap: 10px;
}
.rating a {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: rgba(249,244,228,.94); color: var(--ink); padding: 10px 16px; border-radius: 12px;
  font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.rating b { font-size: 20px; font-family: var(--font-display); }
.rating .stars { color: var(--ochre); letter-spacing: 2px; }
.rating small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
@media (max-width: 960px) { .rating { display: none; } }

/* Fotogalerij (mozaïek) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery .wide { grid-column: span 2; }
}

/* FAQ (uitklapbaar) */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid rgba(0,0,0,.12); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(0,0,0,.12); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ochre); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Review-citaten */
.quote { margin: 0; background: #fff; padding: 32px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.quote .stars { color: var(--ochre); letter-spacing: 3px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.35; color: var(--forest); }
.quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }

/* Weekschema live entertainment */
.schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.schedule > div { border: 1px solid rgba(242,230,190,.25); border-radius: var(--radius); padding: 28px 24px; }
.schedule .highlight { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.schedule .day { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }
.schedule .highlight .day { color: var(--cream); }
.schedule h3 { margin: 10px 0 8px; }
.schedule p { margin: 0; font-size: 15px; opacity: .85; }
@media (max-width: 960px) { .schedule { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .schedule { grid-template-columns: 1fr; } }
/* Galerij met 8 foto's: hogere rijen op groot scherm */
@media (min-width: 961px) { .gallery { grid-auto-rows: 240px; } }

/* Signature dish-teken in de menukaart */
.dish__sig { display: inline-block; height: 18px; width: auto; margin-left: 8px; vertical-align: -3px; }
.menu-note .dish__sig { margin: 0 4px 0 0; }

/* Heading 2 volgens manual: Atyp BL Display Medium, hoofdletters */
.h-caps { font-family: var(--font-body); font-weight: 500; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; margin: 0 0 10px; }

/* Tri Hita Karana */
.harmony { text-align: left; border-top: 1px solid rgba(242,230,190,.25); padding-top: 20px; }
.harmony .eyebrow { margin-bottom: 6px; }
.harmony p { margin: 0; opacity: .85; font-size: 15.5px; }

/* Bovenregel als onderdeel van de H1 (SEO): oogt als eyebrow */
h1 .eyebrow { display: block; font-family: var(--font-body); line-height: 1.4; }

/* Cookiebanner (js/analytics.js): klein, subtiel zwevend kaartje onderaan in het midden */
.consent {
  position: fixed; z-index: 60;
  left: 0; right: 0; margin-inline: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(280px, calc(100vw - 32px));
  background: rgba(22,54,40,.88); color: rgba(242,230,190,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 10px 12px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  font-size: 12px; line-height: 1.45;
  display: grid; gap: 8px;
  animation: consent-in .4s ease both;
}
.consent p { margin: 0; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent__btns { display: flex; gap: 6px; justify-content: flex-end; }
.consent .btn { padding: 6px 10px; font-size: 10px; letter-spacing: .08em; }
.consent .btn--ghost { color: inherit; border: 1px solid rgba(242,230,190,.35); }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 640px) { .consent { bottom: 84px; } }

/* Lopende tekst (privacypagina) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 48px; }
.prose ul { padding-left: 20px; display: grid; gap: 10px; }
.prose code { font-size: 14px; background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 3px; }
