/* =========================================================
   La Peace | base.css
   Shared by every page: colours, fonts, buttons, header,
   full-screen menu, page banners, footer and animations.
   Page-specific styles live in css/<page>.css.
   ========================================================= */

/* ---------- Tokens: change these to re-brand the template ---------- */
:root{
  --paper:#f3eee6;            /* light sections */
  --paper-2:#ebe3d6;          /* slightly darker light sections */
  --line:#d8cdbb;             /* hairlines on light sections */
  --ink:#16120f;              /* text and dark buttons */
  --ink-2:#4a4037;            /* body text on light */
  --muted:#857868;            /* small print on light */

  --night:#0e0c0a;            /* dark sections and footer */
  --night-2:#16120f;
  --night-3:#1f1915;
  --menu-bg:#0f1514;          /* the deep green-black behind the menu */
  --line-dark:rgba(239,232,220,.14);
  --on-dark:#efe8dc;          /* text on dark */
  --on-dark-dim:#a99d8c;

  --gold:#c6a26b;             /* accent: labels, prices, ornaments */
  --gold-2:#dcc195;
  --gold-deep:#9c7a47;        /* gold that is readable on light paper */

  --serif:'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease:cubic-bezier(.2,.7,.2,1);
  --container:1240px;
  --gutter:clamp(16px,4vw,40px);
  --header-h:84px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:90px; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink-2);
  font-family:var(--sans);
  font-size:1rem;
  font-weight:400;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,video,iframe{ display:block; max-width:100%; }
img{ height:auto; }
h1,h2,h3,h4,p,ul,ol,dl,dd,figure,blockquote{ margin:0; }
ul,ol{ padding:0; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
input,select,textarea{ font:inherit; color:inherit; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
::selection{ background:var(--gold); color:var(--ink); }
abbr[title]{ text-decoration:none; }

.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  margin:-1px; padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}
.skip-link{
  position:absolute;
  left:16px; top:-60px;
  z-index:100;
  padding:10px 16px;
  background:var(--gold);
  color:var(--ink);
  font-weight:500;
}
.skip-link:focus{ top:12px; }

/* ---------- Layout and type ---------- */
.container{
  width:100%;
  max-width:calc(var(--container) + var(--gutter) * 2);
  margin:0 auto;
  padding:0 var(--gutter);
}
.section{ padding:clamp(80px,11vw,150px) 0; }
.section-head{ max-width:760px; margin:0 auto clamp(40px,6vw,72px); text-align:center; }
.section-head .display{ margin-top:18px; }

h1,h2,h3{ color:inherit; font-family:var(--serif); font-weight:400; line-height:1.05; }
.display{
  font-family:var(--serif);
  font-size:clamp(2.4rem,5.2vw,4.5rem);
  font-weight:400;
  line-height:.98;
  letter-spacing:.01em;
  text-transform:uppercase;
}

/* small spaced label above headings, e.g. "ABOUT" */
.label{
  display:inline-flex;
  align-items:center;
  gap:14px;
  color:var(--gold-deep);
  font-family:var(--sans);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.34em;
  line-height:1.4;
  text-transform:uppercase;
}
.label-center{ display:flex; justify-content:center; }
/* the italic gold line above headings, e.g. "Since 2016" */
.kicker{
  color:var(--gold);
  font-family:var(--serif);
  font-size:clamp(1.15rem,1.6vw,1.35rem);
  font-style:italic;
  line-height:1.3;
}

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  z-index:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  overflow:hidden;
  padding:16px 30px;
  border:1px solid transparent;
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.24em;
  line-height:1.2;
  text-align:center;
  text-transform:uppercase;
  white-space:nowrap;
  transition:color .45s var(--ease), border-color .45s var(--ease);
}
/* a fill sweeps across from the left on hover */
.btn::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--fill, var(--gold));
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .55s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before{ transform:scaleX(1); transform-origin:left; }
.btn svg{ width:16px; height:16px; flex:none; transition:transform .4s var(--ease); }
.btn:hover svg{ transform:translateX(4px); }
.btn-sm{ padding:12px 22px; font-size:.66rem; }

.btn-dark{ background:var(--ink); color:var(--paper); --fill:var(--gold); }
.btn-dark:hover,.btn-dark:focus-visible{ color:var(--ink); }
.btn-gold{ background:var(--gold); color:var(--ink); --fill:var(--paper); }
.btn-line{ border-color:currentColor; color:var(--ink); --fill:var(--ink); }
.btn-line:hover,.btn-line:focus-visible{ color:var(--paper); border-color:var(--ink); }
.btn-line-light{ border-color:rgba(239,232,220,.45); color:var(--on-dark); --fill:var(--paper); }
.btn-line-light:hover,.btn-line-light:focus-visible{ color:var(--ink); border-color:var(--paper); }

.link-arrow{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 0;
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.24em;
  text-transform:uppercase;
}
.link-arrow::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background:currentColor;
  transform:scaleX(.35);
  transform-origin:left;
  transition:transform .5s var(--ease);
}
.link-arrow:hover::after{ transform:scaleX(1); }
.link-arrow svg{ width:16px; height:16px; transition:transform .4s var(--ease); }
.link-arrow:hover svg{ transform:translateX(4px); }

/* long button labels wrap instead of running off small phones */
@media (max-width:420px){
  .btn{ white-space:normal; padding-left:22px; padding-right:22px; }
}

/* =========================================================
   HEADER
   No transform, filter or backdrop-filter here: any of them
   would trap the fixed full-screen menu inside the header.
   ========================================================= */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:60;
  color:var(--on-dark);
  transition:background-color .45s ease, box-shadow .45s ease, color .45s ease;
}
.header-inner{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  height:var(--header-h);
  padding:0 var(--gutter);
}
.site-header.is-scrolled{
  background:rgba(14,12,10,.95);
  box-shadow:0 1px 0 var(--line-dark);
}
.logo{
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--serif);
  font-size:1.45rem;
  font-weight:500;
  letter-spacing:.16em;
  line-height:1;
  text-transform:uppercase;
  transition:color .45s ease;
}
.logo-mark{ width:30px; height:30px; flex:none; color:var(--gold); }
.menu-toggle{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:12px 8px;
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.32em;
  text-transform:uppercase;
}
.menu-lines{ position:relative; width:26px; height:9px; }
.menu-lines i{
  position:absolute;
  left:0; right:0;
  height:1px;
  background:currentColor;
  transition:transform .45s var(--ease);
}
.menu-lines i:first-child{ top:0; }
.menu-lines i:last-child{ bottom:0; }
.menu-toggle:hover .menu-lines i:first-child{ transform:scaleX(.6); transform-origin:left; }
.btn-book{
  justify-self:end;
  padding:12px 22px;
  border-color:rgba(239,232,220,.5);
  color:inherit;
  font-size:.66rem;
  --fill:var(--paper);
}
.btn-book:hover,.btn-book:focus-visible{ color:var(--ink); border-color:var(--paper); }

/* home page: dark logo while it sits on the paper panel */
.header-split:not(.is-scrolled) .logo{ color:var(--ink); }
.header-split:not(.is-scrolled) .logo-mark{ color:var(--gold-deep); }
@media (max-width:900px){
  .header-split:not(.is-scrolled){ color:var(--ink); }
  .header-split:not(.is-scrolled) .btn-book{ border-color:rgba(22,18,15,.4); --fill:var(--ink); }
  .header-split:not(.is-scrolled) .btn-book:hover{ color:var(--paper); border-color:var(--ink); }
}

/* while the menu is open the header sits on the dark panel */
.menu-open .site-header{ color:var(--on-dark); background:transparent; box-shadow:none; }
.menu-open .site-header .logo{ color:var(--on-dark); }
.menu-open .site-header .logo-mark{ color:var(--gold); }
.menu-open .site-header .btn-book{ border-color:rgba(239,232,220,.5); --fill:var(--paper); }
.menu-open .menu-lines i:first-child{ transform:translateY(4px) rotate(45deg); }
.menu-open .menu-lines i:last-child{ transform:translateY(-4px) rotate(-45deg); }

@media (max-width:600px){
  :root{ --header-h:70px; }
  .logo{ font-size:1.2rem; letter-spacing:.12em; }
  .logo-mark{ width:24px; height:24px; }
  .menu-toggle{ gap:10px; padding:10px 4px; }
  .menu-label{ display:none; }
  .btn-book{ padding:10px 14px; letter-spacing:.16em; }
}
@media (max-width:360px){
  .header-inner{ grid-template-columns:1fr auto auto; gap:10px; }
  .menu-toggle{ order:3; }
}

/* =========================================================
   FULL-SCREEN MENU
   ========================================================= */
.menu-panel{
  position:fixed;
  inset:0;
  z-index:55;
  background:var(--night);
  color:var(--on-dark);
  opacity:0;
  visibility:hidden;
  transition:opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu-open .menu-panel{
  opacity:1;
  visibility:visible;
  transition:opacity .5s var(--ease);
}
.menu-open{ overflow:hidden; }
.menu-panel-inner{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  grid-template-rows:1fr auto;
  gap:28px clamp(28px,6vw,96px);
  height:100%;
  overflow-y:auto;
  padding:calc(var(--header-h) + 24px) var(--gutter) 32px;
}
/* an arched photo frame that follows the hovered link */
.menu-media{
  grid-row:1 / 3;
  position:relative;
  align-self:stretch;
  min-height:320px;
  overflow:hidden;
  border-radius:999px 999px 0 0;
  background:var(--night-3);
}
.menu-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.08);
  transition:opacity .6s ease, transform 1.2s var(--ease);
}
.menu-media img.is-shown{ opacity:.85; transform:none; }
.menu-nav{ align-self:center; }
.menu-nav ol{ list-style:none; }
.menu-nav li{
  opacity:0;
  transform:translateY(40px);
  transition:opacity .5s ease, transform .8s var(--ease);
}
.menu-open .menu-nav li{
  opacity:1;
  transform:none;
  transition-delay:calc(var(--i) * 70ms + 150ms);
}
.menu-nav a{
  display:flex;
  align-items:flex-start;
  gap:18px;
  padding:4px 0;
  font-family:var(--serif);
  font-size:clamp(2.4rem,5.6vw,4.8rem);
  line-height:1.08;
  text-transform:uppercase;
  transition:color .4s ease;
}
.menu-num{
  margin-top:.9em;
  color:var(--gold);
  font-family:var(--sans);
  font-size:.7rem;
  letter-spacing:.2em;
}
.menu-text{ display:inline-block; transition:transform .5s var(--ease); }
.menu-nav a:hover,
.menu-nav a:focus-visible,
.menu-nav a[aria-current="page"]{ color:var(--gold-2); }
.menu-nav a:hover .menu-text,
.menu-nav a:focus-visible .menu-text{ transform:translateX(14px); font-style:italic; }
.menu-info{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  padding-top:24px;
  border-top:1px solid var(--line-dark);
  color:var(--on-dark-dim);
  font-size:.85rem;
  line-height:1.6;
  opacity:0;
  transition:opacity .6s ease;
}
.menu-open .menu-info{ opacity:1; transition-delay:.5s; }
.menu-info-label{
  display:block;
  margin-bottom:6px;
  color:var(--gold);
  font-size:.66rem;
  letter-spacing:.3em;
  text-transform:uppercase;
}
.menu-info a:hover{ color:var(--on-dark); }

@media (max-width:860px){
  .menu-panel-inner{ grid-template-columns:1fr; grid-template-rows:1fr auto; }
  .menu-media{ display:none; }
  .menu-nav a{ font-size:clamp(2.1rem,10vw,3.4rem); }
  .menu-info{ grid-template-columns:1fr; gap:14px; }
}

/* =========================================================
   PAGE BANNER (inner pages)
   ========================================================= */
.page-banner{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  min-height:clamp(440px,74vh,720px);
  overflow:hidden;
  padding:calc(var(--header-h) + 60px) 0 clamp(56px,8vw,96px);
  background:var(--night);
  color:var(--on-dark);
  text-align:center;
}
.page-banner-short{ min-height:clamp(380px,60vh,560px); }
.page-banner-img{
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
}
.page-banner::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(14,12,10,.72) 0%,rgba(14,12,10,.35) 45%,rgba(14,12,10,.88) 100%);
}
.page-banner-inner{ max-width:820px; }
.page-banner h1{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.35em;
  margin-top:10px;
  font-size:clamp(2.6rem,7.2vw,6.2rem);
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}
.page-banner p:not(.kicker){ max-width:560px; margin:20px auto 0; color:rgba(239,232,220,.82); }
/* thin gold lines with a diamond, either side of a title */
.orn{
  position:relative;
  display:inline-block;
  width:clamp(26px,5vw,64px);
  flex:none;
  height:1px;
  background:var(--gold);
  vertical-align:middle;
}
.orn::after{
  content:'';
  position:absolute;
  top:-3px;
  width:7px;
  height:7px;
  border:1px solid var(--gold);
  transform:rotate(45deg);
}
.orn:first-child::after{ right:-10px; }
.orn:last-child::after{ left:-10px; }
@media (max-width:560px){
  .page-banner h1 .orn{ display:none; }
}

/* =========================================================
   SHARED PIECES
   ========================================================= */
/* dish with a dotted line running to the price (menu and home) */
.dish-list{ list-style:none; }
.dish{ padding:14px 0; }
.dish-line{ display:flex; align-items:baseline; gap:12px; }
.dish-name{
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:500;
  letter-spacing:.2em;
  line-height:1.5;
  text-transform:uppercase;
}
.dish-line i{
  flex:1;
  min-width:24px;
  height:1px;
  border-bottom:1px dotted currentColor;
  opacity:.4;
  transform:translateY(-3px);
}
.dish-price{
  color:var(--gold);
  font-family:var(--serif);
  font-size:1.2rem;
  font-weight:500;
  white-space:nowrap;
}
.dish p{ margin-top:2px; font-size:.9rem; line-height:1.55; opacity:.72; }
.tags{ display:inline-flex; gap:4px; margin-left:6px; vertical-align:1px; }
.tags abbr,
.menu-key abbr{
  display:inline-block;
  padding:1px 6px;
  border:1px solid currentColor;
  border-radius:999px;
  font-size:.6rem;
  font-weight:500;
  letter-spacing:.08em;
  line-height:1.5;
  opacity:.85;
}

/* opening hours list (footer and reservations) */
.hours{ list-style:none; }
.hours li{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
  border-bottom:1px solid var(--line-dark);
  font-size:.88rem;
}
.hours li span:last-child{ text-align:right; white-space:nowrap; }

/* closing call to action on inner pages */
.cta-strip{
  padding:clamp(70px,9vw,110px) 0;
  background:var(--night-2);
  color:var(--on-dark);
  text-align:center;
}
.cta-strip h2{ font-size:clamp(2rem,4.4vw,3.4rem); text-transform:uppercase; }
.cta-strip p{ margin:12px 0 28px; color:var(--on-dark-dim); }

.round-btn{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border:1px solid currentColor;
  border-radius:50%;
  transition:background-color .35s ease, color .35s ease, transform .35s var(--ease);
}
.round-btn svg{ width:18px; height:18px; }
.round-btn:hover{ background:var(--ink); color:var(--paper); transform:scale(1.06); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  overflow:hidden;
  overflow:clip;
  padding-top:clamp(70px,9vw,110px);
  background:var(--night);
  color:var(--on-dark-dim);
  font-size:.92rem;
}
.footer-cols{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(28px,4vw,56px);
}
.footer-col h3{
  margin-bottom:16px;
  color:var(--gold);
  font-family:var(--sans);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.32em;
  text-transform:uppercase;
}
.footer-col p{ line-height:1.7; }
.footer-col a:not(.footer-link):hover{ color:var(--on-dark); }
.footer-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:14px;
  color:var(--on-dark);
  font-size:.7rem;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.footer-link svg{ width:15px; height:15px; transition:transform .4s var(--ease); }
.footer-link:hover svg{ transform:translateX(4px); }
.socials{ display:flex; gap:10px; margin-top:16px; }
.socials a{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid var(--line-dark);
  border-radius:50%;
  color:var(--on-dark);
  transition:border-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.socials a:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-3px); }
.socials svg{ width:18px; height:18px; }
/* the giant name across the bottom (decoration only, so it never blocks clicks) */
.footer-word{
  margin-top:clamp(50px,7vw,90px);
  pointer-events:none;
  color:var(--on-dark);
  font-family:var(--serif);
  font-size:clamp(4.2rem,19.5vw,19rem);
  line-height:.78;
  letter-spacing:.02em;
  text-align:center;
  text-transform:uppercase;
  white-space:nowrap;
}
.footer-word span{ display:inline-block; }
.footer-bottom{ position:relative; z-index:1; border-top:1px solid var(--line-dark); }
.footer-bottom .container{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 24px;
  padding-top:22px;
  padding-bottom:22px;
  font-size:.78rem;
}
.footer-bottom a:hover{ color:var(--on-dark); }
.footer-bottom span a{ text-decoration:underline; text-underline-offset:3px; }
.to-top{ display:inline-flex; align-items:center; gap:8px; letter-spacing:.18em; text-transform:uppercase; font-size:.68rem; }
.to-top svg{ width:15px; height:15px; transition:transform .4s var(--ease); }
.to-top:hover svg{ transform:translateY(-4px); }

@media (max-width:900px){
  .footer-cols{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px){
  .footer-cols{ grid-template-columns:1fr; }
  .footer-bottom .container{ flex-direction:column; align-items:flex-start; }
}

/* =========================================================
   MOTION
   Only transform and opacity are animated. Everything
   switches off for visitors who prefer reduced motion.
   ========================================================= */
.js [data-reveal]{ opacity:0; }
.js [data-reveal].is-visible{
  opacity:1;
  animation:revealUp .85s var(--ease) backwards;
  animation-delay:calc(var(--d,0) * 90ms);
}
.js [data-reveal="left"].is-visible{ animation-name:revealLeft; }
.js [data-reveal="right"].is-visible{ animation-name:revealRight; }
.js [data-reveal="zoom"].is-visible{ animation-name:revealZoom; animation-duration:1.1s; }
@keyframes revealUp{ from{ opacity:0; transform:translateY(28px); } }
@keyframes revealLeft{ from{ opacity:0; transform:translateX(-40px); } }
@keyframes revealRight{ from{ opacity:0; transform:translateX(40px); } }
@keyframes revealZoom{ from{ opacity:0; transform:scale(.95); } }

/* Photos (data-parallax) drift slowly and big words (data-drift) slide sideways as you
   scroll. The browser's own scroll timeline drives this, not JavaScript, so it runs off
   the main thread and stays smooth. Browsers without scroll timelines simply show them still.
   A value starting with "-" reverses the direction. Sections around them use
   overflow:clip rather than hidden: a hidden box counts as a scroller and would
   freeze the motion inside it. */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    :has(> img[data-parallax]){ view-timeline-name:--frame; }
    img[data-parallax]{
      animation:parallax linear both;
      animation-timeline:--frame;
      animation-range:cover;
      will-change:transform;
    }
    img[data-parallax^="-"]{ animation-name:parallax-up; }
    [data-drift]{
      animation:drift linear both;
      animation-timeline:view();
      animation-range:cover;
      will-change:transform;
    }
    [data-drift^="-"]{ animation-name:drift-back; }
  }
}
@keyframes parallax{ from{ transform:translateY(-5%) scale(1.12); } to{ transform:translateY(5%) scale(1.12); } }
@keyframes parallax-up{ from{ transform:translateY(5%) scale(1.12); } to{ transform:translateY(-5%) scale(1.12); } }
@keyframes drift{ from{ transform:translateX(60px); } to{ transform:translateX(-60px); } }
@keyframes drift-back{ from{ transform:translateX(-60px); } to{ transform:translateX(60px); } }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
  .js [data-reveal]{ opacity:1 !important; }
}
