/* infine — site styles. Colors and fonts from the brand presentation;
   layout and motion inspired by quiet fine-dining sites (lots of space,
   small spaced capitals, large photos, soft fade-ins). */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --dark: #182e2e;
  --dark-2: #22393a;
  --paper: #f4f5f3;
  --mist: #dce0df;
  --text: #1e2e2f;
  --muted: #5e6f6a;
  --sage: #7e978d;
  --sage-light: #b3c2bb;
  --line: #c9d1cd;
  --error: #9c2a1f;
  --ok: #2f6b3a;
  --busy: #b8473b;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --caps: "Marcellus", Optima, Georgia, serif;
  --max: 72rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--text); font: 300 1.0625rem/1.75 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; margin: 0 0 .7em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
main { min-height: 60vh; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.center { text-align: center; }
.small { font-size: .82rem; }
.meta, .hint { color: var(--muted); font-size: .85rem; }

/* Small spaced capitals with a short rule underneath */
.label {
  font: 500 .74rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .32em; color: var(--sage);
  margin: 0 0 1.4rem;
}
.label::after { content: ""; display: block; width: 3rem; height: 1px; background: currentColor; margin-top: .9rem; }
.center .label::after { margin-left: auto; margin-right: auto; }

/* ---------- Header (always visible) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--dark); color: var(--sage-light);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.over-hero.scrolled, .menu-open .site-header { background: var(--dark); }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.header-row { height: 100%; display: flex; align-items: center; gap: 2rem; }
.logo img { width: 74px; height: auto; transition: opacity .3s; }
.over-hero:not(.scrolled) .logo img { opacity: 0; } /* the big logo is already in the photo */
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 0; }
.nav a, .lang-link {
  font: 500 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .28em; text-decoration: none;
  padding: .5rem 0; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: .28em; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.lang-link { opacity: .8; }
.lang-link:hover { opacity: 1; }
.nav-toggle { display: none; width: 2.6rem; height: 2.6rem; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.nav-toggle span { position: absolute; left: .5rem; right: .5rem; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 1.05rem; }
.nav-toggle span:last-child { top: 1.55rem; }
.menu-open .nav-toggle span:first-child { top: 1.3rem; transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { top: 1.3rem; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-actions .book-link { display: none; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 2.2rem; }
  .nav a { font-size: 1rem; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); display: inline-block; }
  .menu-open .nav a { opacity: 1; transform: none; transition-delay: .2s; }
  .menu-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block; font: 500 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .28em;
  padding: 1.05rem 1.9rem; border: 1px solid var(--dark); background: var(--dark); color: #fff;
  text-decoration: none; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.button:hover { background: transparent; color: var(--dark); }
.button.outline { background: transparent; color: var(--dark); }
.button.outline:hover { background: var(--dark); color: #fff; }
.button.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.button.outline-light:hover { background: #fff; color: var(--dark); }
.button.small { padding: .7rem 1.1rem; font-size: .68rem; }
.button[disabled] { opacity: .6; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Home hero ---------- */
.hero { position: relative; height: 100vh; min-height: 34rem; display: grid; place-items: center; overflow: hidden; background: var(--dark); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: settle 2.4s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 46, 46, .55), rgba(24, 46, 46, .2) 40%, rgba(24, 46, 46, .65)); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; padding: 0 1.25rem; animation: rise 1.4s .3s var(--ease) both; }
.hero-title { margin: 0; line-height: 0; }
.hero-logo { width: min(400px, 74vw); height: auto; }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: .55; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Content blocks ---------- */
.block { padding: clamp(4.5rem, 11vw, 9rem) 0; }
.block + .block { padding-top: 0; }
.block-title { font: 400 clamp(1.7rem, 3.6vw, 2.6rem)/1.25 var(--serif); }
.block-title em, .page-title em { font-style: italic; }
.prose-text p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.split.image-right .split-media { order: 2; }
.split-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-text { max-width: 30rem; }
.image-left .split-media { margin-top: -3rem; }    /* gentle offset, like a printed layout */
.image-right .split-media { margin-bottom: -3rem; }
.block-photo .full-photo { width: 100%; height: min(85vh, 50rem); object-fit: cover; }
.block-photo + .wrap { padding-top: 3rem; }
.quote-text { font: italic 400 clamp(1.4rem, 3vw, 2rem)/1.5 var(--serif); color: var(--dark); }
.quote-text p::before { content: "“"; } .quote-text p::after { content: "”"; }
.block-quote { background: var(--mist); padding-top: clamp(4.5rem, 11vw, 9rem) !important; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split.image-right .split-media { order: 0; }
  .image-left .split-media, .image-right .split-media { margin: 0; }
}

/* ---------- Page heads (menu, gallery, contact) ---------- */
.page-head { padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 6vw, 4rem); }
body:not(.page-home) main > .page-head { padding-top: clamp(3.5rem, 9vw, 7rem); }
.page-title { font: 400 clamp(2.2rem, 5vw, 3.6rem)/1.15 var(--serif); }
.intro { color: var(--muted); font-size: 1.1rem; }

/* ---------- Menus ---------- */
.menus { padding-bottom: clamp(4rem, 10vw, 8rem); }
.menu-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 3.5rem; }
.menu-tabs a {
  font: 500 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .24em; text-decoration: none;
  padding: .95rem 1.3rem; border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s;
}
.menu-tabs a:hover { border-color: var(--dark); }
.menu-tabs a[aria-selected="true"] { background: var(--dark); color: #fff; }
.menu-panel { max-width: 40rem; margin: 0 auto 5rem; text-align: center; }
.tabs-ready .menu-panel { margin-bottom: 0; }
.menu-panel.shown { animation: rise .7s var(--ease) both; }
.menu-name { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1.2 var(--caps); text-transform: uppercase; letter-spacing: .22em; margin-bottom: .3rem; }
.menu-tagline { font-style: italic; color: var(--muted); }
.menu-art { max-height: 140px; width: auto; margin: 2rem auto; }
.courses { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.9rem; }
.dish { display: block; font: 400 clamp(1.45rem, 3vw, 1.9rem)/1.2 var(--serif); margin: 0; }
.dish-desc { display: block; font-style: italic; font-size: .92rem; color: var(--muted); margin-top: .45rem; letter-spacing: .02em; }
.dessert { margin-top: 2rem; }
.dessert .rule { display: block; color: var(--sage); margin-bottom: 1rem; }
.menu-note { margin-top: 4rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 18rem; column-gap: 1.25rem; padding-bottom: clamp(4rem, 10vw, 8rem); }
.gallery-item { break-inside: avoid; margin: 0 0 1.25rem; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.gallery-open img { width: 100%; transition: transform 1.2s var(--ease), opacity .4s; }
.gallery-open:hover img { transform: scale(1.04); }
.gallery-item figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; animation: rise .4s var(--ease); }
.lightbox::backdrop { background: rgba(14, 26, 26, .94); }
.lightbox figure { margin: 0; text-align: center; color: #fff; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.lightbox figcaption { margin-top: .8rem; font-size: .9rem; opacity: .85; }
.lightbox button { position: fixed; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; padding: 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: .5rem; right: .8rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; padding-bottom: clamp(4rem, 10vw, 8rem); }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
.contact-list span:first-child { display: block; font: 500 .7rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .28em; color: var(--sage); margin-bottom: .2rem; }
.contact-list a { font: 400 1.25rem/1.4 var(--serif); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-photo { margin-top: 2.5rem; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 2.2rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.1rem; min-width: 0; }
legend { font: 500 .72rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .28em; color: var(--sage); margin-bottom: 1rem; padding: 0; }
.form .row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.field label { display: block; font-size: .85rem; margin-bottom: .35rem; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .55rem 0; transition: border-color .3s;
}
select { padding-right: 1rem; }
textarea { min-height: 7rem; resize: vertical; border: 1px solid var(--line); padding: .7rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dark); }
::placeholder { color: #a3ada9; opacity: 1; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.field.invalid input, .field.invalid textarea, .field.invalid select, .field.invalid .cal { border-color: var(--error); }
.field .error, .error-text { color: var(--error); font-size: .82rem; margin-top: .35rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; }
.check input { width: auto; margin-top: .35rem; accent-color: var(--dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1.1rem 1.3rem; border: 1px solid; }
.notice.error { border-color: var(--error); color: var(--error); background: #fbeeec; }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice h2 { font: 400 1.6rem/1.2 var(--serif); }
.notice .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }

/* ---------- Calendar ---------- */
.cal { border: 1px solid var(--line); background: #fff; padding: .8rem; max-width: 24rem; margin-top: .4rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.cal-head strong { font: 400 1.05rem/1 var(--serif); }
.cal-head button { background: none; border: 0; font-size: 1.5rem; line-height: 1; padding: .2rem .7rem; cursor: pointer; color: var(--text); }
.cal-head button[disabled] { opacity: .2; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .2rem 0; }
.cal-day { position: relative; aspect-ratio: 1; border: 0; background: var(--paper); font: 400 .9rem var(--sans); cursor: pointer; color: var(--text); transition: background .2s; }
.cal-day:hover:not([disabled]) { background: var(--mist); }
.cal-day[disabled] { cursor: not-allowed; }
.cal-day.past { background: transparent; color: #b5bdb9; }
.cal-day.busy { background: var(--busy); color: #fff; text-decoration: line-through; }
.cal-day.selected { background: var(--dark); color: #fff; }
.cal-day small { position: absolute; top: 2px; right: 4px; font-size: .6rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; text-align: center; color: var(--muted); }
.footer-inner { display: grid; justify-items: center; gap: .6rem; }
.footer-inner img { width: 96px; height: auto; margin-bottom: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Legal and thanks pages ---------- */
.legal { padding: clamp(3.5rem, 9vw, 7rem) 1.25rem clamp(4rem, 10vw, 8rem); }
.legal .page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font: 400 1.35rem/1.3 var(--serif); margin-top: 2.4rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .6rem; }
.thanks { padding: clamp(5rem, 12vw, 10rem) 1.25rem; }

/* ---------- Scroll animations (only when JS is on and motion is welcome) ---------- */
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Login page (admin) ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--dark); }
.login { max-width: 22rem; margin: 3rem auto; display: grid; gap: 1.2rem; background: var(--paper); padding: 2.5rem 2rem; }
.login img { width: 130px; height: auto; margin: 0 auto 1rem; }
.login h1 { font: 400 1.4rem/1.2 var(--serif); text-align: center; margin: 0; }

/* Phones without JavaScript: show the menu links directly in the header. */
@media (max-width: 860px) {
  html:not(.js) .site-header { height: auto; position: static; background: var(--dark); }
  html:not(.js) .header-row { flex-wrap: wrap; gap: .6rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
  html:not(.js) .nav { position: static; clip-path: none; visibility: visible; background: none; order: 3; width: 100%; display: block; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; gap: .4rem 1.2rem; }
  html:not(.js) .nav a { opacity: 1; transform: none; font-size: .7rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .over-hero:not(.scrolled) .logo img { opacity: 1; }
}
