/* Zanzibar — shared design system: tokens, type, layout, buttons, header, overlay, footer, map pin, form.
   Breakpoints: mobile < 768 (design 390) · tablet 768–1199 · desktop ≥ 1200 (design 1440, content 1200 centred). */

:root {
  --cream: #F3ECDD;  --paper: #FBF7EE;  --sand: #E6DCC6;
  --ink: #14120D;    --text: #1F1B14;   --jungle: #1D2A22;
  --gold: #C99F33;   --gold-deep: #B08A26;  --bronze: #8A6A3E;
  --on-dark: #F3ECDD; --on-dark-2: rgba(243, 236, 221, .75); --on-dark-3: rgba(243, 236, 221, .6);
  --line: rgba(138, 106, 62, .2);  --line-2: rgba(138, 106, 62, .3);
  --line-dark: rgba(243, 236, 221, .15); --line-gold: rgba(201, 159, 51, .4);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;

  --margin: 24px;              /* side gutter */
  --wrap: 1200px;              /* content max width */
  --section-pad: 72px;
  --header-h: 76px;
}
@media (min-width: 768px)  { :root { --margin: 40px; --section-pad: 96px; --header-h: 96px; } }
@media (min-width: 1200px) { :root { --margin: 56px; --section-pad: 110px; --header-h: 128px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 17px/28px var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- type ---------- */
.t-label { font: 500 12px/16px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.t-label--gold { color: var(--gold); }
.t-display { font-family: var(--serif); font-weight: 500; line-height: 1; text-transform: uppercase; letter-spacing: 0; }
.t-accent { font: italic 500 clamp(22px, 2.22vw, 32px)/1.2 var(--serif); color: var(--bronze); }
.t-body { font: 400 17px/28px var(--sans); }
.t-small { font: 400 14px/20px var(--sans); color: var(--bronze); }
.t-dish { font: 600 26px/1.15 var(--serif); }
.t-price { font: 500 17px/1.3 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .t-dish { font-size: 23px; } .t-body { font-size: 16px; line-height: 26px; } }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--margin)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-pad); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.bg-jungle { background: var(--jungle); color: var(--on-dark); }
.rule { height: 1px; background: var(--line-2); border: 0; margin: 0; }
.bg-ink .rule { background: var(--line-gold); }

/* section head: label + big title (+ optional side text) */
.head { display: flex; flex-direction: column; gap: 14px; }
.head .t-display { margin-left: -.03em; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 15px/20px var(--sans); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.btn--gold { background: var(--gold); color: var(--ink); min-height: 52px; }
.btn--gold:hover { background: #D8AE42; }
.btn--outline { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(243, 236, 221, .7); font-size: 14px; }
.btn--outline:hover { background: rgba(243, 236, 221, .1); box-shadow: inset 0 0 0 1px var(--on-dark); }
.btn--ink { background: var(--ink); color: var(--on-dark); border-radius: 2px; min-height: 56px; }
.btn--ink:hover { background: #2A261D; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--gold); font: 500 15px/22px var(--sans); color: var(--text); transition: gap .2s, color .2s; }
.link-arrow:hover { gap: 20px; color: var(--bronze); }
.link-arrow--plain { border-bottom: 0; padding-bottom: 0; }

/* ---------- arch-masked photo (echoes the doorways) ---------- */
.arch { overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 280 / 400; background: #EEE9E0; }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: opacity .3s; }

/* ---------- logo ---------- */
.logo img { width: 62px; height: auto; }

/* ---------- header (absolute over the dark top of every page) ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; height: var(--header-h); padding: 0 var(--margin); color: var(--on-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo img { width: 40px; }
.site-header__tag, .site-header__nav { display: none; }
.site-header__right { display: flex; align-items: center; gap: 8px; margin-right: -10px; }
.site-header__right .btn { min-height: 40px; padding: 9px 18px; font-size: 13px; }
.burger { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--on-dark); }
@media (min-width: 768px) {
  .site-header .logo img { width: 48px; }
  .site-header__right { gap: 16px; }
  .site-header__right .btn { min-height: 44px; padding: 12px 24px; font-size: 14px; }
}
@media (min-width: 1200px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding-top: 22px; }
  .site-header .logo { grid-column: 2; grid-row: 1; }
  .site-header .logo img { width: 62px; }
  .site-header__tag { display: block; grid-column: 1; grid-row: 1; margin-top: 25px; font: 400 14px/20px var(--sans); color: rgba(243, 236, 221, .85); }
  .site-header__right { grid-column: 3; grid-row: 1; justify-self: end; margin: 14px 0 0; gap: 40px; }
  .site-header__nav { display: flex; gap: 31px; font: 400 14px/20px var(--sans); color: rgba(243, 236, 221, .85); }
  .site-header__nav a { position: relative; padding-block: 4px; transition: color .2s; }
  .site-header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
  .site-header__nav a:hover, .site-header__nav a[aria-current="page"] { color: var(--on-dark); }
  .site-header__nav a:hover::after, .site-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-header__right .btn { min-height: 44px; width: 140px; padding: 0; }
  .burger { display: none; }
}

/* ---------- mobile / tablet menu overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; padding: 0 var(--margin) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__top { flex: none; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.overlay__top .logo img { width: 40px; }
.overlay__close { width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--on-dark); }
.overlay__links { margin-top: 32px; display: flex; flex-direction: column; }
.overlay__links a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font: 500 44px/1.05 var(--serif); text-transform: uppercase; }
.overlay__links a span { font: italic 400 20px/1 var(--serif); color: var(--gold); min-width: 28px; }
.overlay__links a[aria-current="page"] { color: var(--gold); }
.overlay__bottom { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.overlay__bottom p { font: 400 14px/22px var(--sans); color: var(--on-dark-2); }
.overlay__bottom .btn { min-height: 52px; }
@media (min-width: 768px) { .overlay__links a { font-size: 64px; } .overlay__top .logo img { width: 48px; } }
body.no-scroll { overflow: hidden; }

/* ---------- dark page top (menu, contact) ---------- */
.page-top { position: relative; background: var(--ink); color: var(--on-dark); padding: calc(var(--header-h) + 40px) 0 56px; overflow: hidden; }
.page-top .t-label { color: var(--gold); }
@media (min-width: 1200px) { .page-top { padding: 220px 0 88px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 64px 0 28px; overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.site-footer__logo { grid-column: 1 / -1; }
.site-footer__logo img { width: 66px; }
.site-footer h2 { font: 500 11px/16px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.site-footer li, .site-footer address { font: 400 15px/26px var(--sans); font-style: normal; color: var(--on-dark-2); }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__contact span { margin-right: 8px; }
.site-footer__word { margin: 48px 0 0; font: 500 min(250px, calc((min(var(--wrap), 100vw - 2 * var(--margin))) / 4.86))/0.92 var(--serif); letter-spacing: -.01em; color: var(--gold); white-space: nowrap; margin-left: -.03em; }
.site-footer__bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 400 13px/19px var(--sans); color: rgba(243, 236, 221, .55); }
@media (min-width: 768px) {
  .site-footer { padding: 80px 0 30px; }
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
  .site-footer__logo { grid-column: auto; }
}
@media (min-width: 1200px) {
  .site-footer__top { grid-template-columns: 440px 260px 300px 1fr; gap: 0; }
  .site-footer__logo img { width: 89px; }
  .site-footer__word { margin-top: 44px; line-height: .92; }
  .site-footer__bottom { margin-top: 44px; }
}

/* ---------- map + pin (pin is positioned by js/mappin.js) ---------- */
.map { position: relative; display: block; overflow: hidden; background: var(--sand); }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; transform: translate(-13px, -13px); pointer-events: none; }
.pin__dot { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--ink); }
.pin__dot::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: rgba(201, 159, 51, .3); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin__dot::before { animation: none; opacity: 0; } }
.pin__tag { margin-left: 19px; background: var(--paper); border-radius: 4px; padding: 8px 16px 9px; white-space: nowrap; box-shadow: 0 10px 24px rgba(20, 18, 13, .12); }
.pin__tag b { display: block; font: 600 20px/24px var(--serif); color: var(--text); }
.pin__tag small { display: block; font: 400 12px/17px var(--sans); color: var(--bronze); }
.map__open { position: absolute; right: 16px; bottom: 16px; background: var(--paper); color: var(--text); border-radius: 2px; padding: 8px 14px; font: 500 13px/18px var(--sans); box-shadow: 0 6px 16px rgba(20, 18, 13, .12); transition: background .2s; }
.map:hover .map__open { background: #fff; }

/* ---------- form ---------- */
.form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.field { position: relative; grid-column: span 6; display: flex; flex-direction: column; }
.field--third { grid-column: span 2; }
.field--half { grid-column: span 3; }
.field label { position: absolute; left: 15px; top: 7px; font: 500 10px/14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); pointer-events: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 21px 14px 6px; border-radius: 2px; border: 1px solid rgba(138, 106, 62, .4); background: var(--paper);
  font: 400 15px/22px var(--sans); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238A6A3E' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 159, 51, .2); }
.field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.form__submit { grid-column: 1 / -1; margin-top: 12px; }
.form__note { grid-column: 1 / -1; font: 400 14px/20px var(--sans); color: var(--bronze); }
.form__note.is-sent { color: var(--text); }
.form__note.is-sent::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--gold); }
@media (max-width: 767px) { .field--third { grid-column: span 3; } .field--wide-m { grid-column: span 6; } .field--half { grid-column: span 6; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
