/* Final shared typography and chrome geometry.
   This file loads after every page-specific stylesheet. */

:root {
  --veranda-header-height: 86px;
}

/* Every visible button label follows the same type as the homepage lead. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.header-book,
.wp-block-button__link,
.text-link,
.site-header .primary-nav a,
.site-header .language-switcher a,
.site-header .header-actions a,
.contact-actions a,
.location-links a,
.menu-categories a,
.menu-prototype__category,
.menu-prototype__category-arrow,
.menu-prototype__dish-arrow,
.menu-prototype-card__quantity {
  font-family: 'Poiret One', 'Noto Sans SC', Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: .04em !important;
}

/* Language codes are abbreviations and remain uppercase. */
.site-header .language-switcher a {
  text-transform: uppercase !important;
}

/* Use the exact approved homepage header sizes on every route. */
.site-header {
  height: var(--veranda-header-height) !important;
}

.site-header .primary-nav a {
  font-size: 16px !important;
}

.site-header .language-switcher a,
.site-header .header-actions a {
  font-size: 15px !important;
}

.site-header .header-center {
  display: contents;
}

/* Desktop navigation sits directly on each page background and scrolls away. */
@media (min-width: 900px) {
  body .site-header .header-inner {
    position: relative;
    width: 100%;
    max-width: none;
    padding-inline: clamp(24px, 2.5vw, 40px);
  }

  body .site-header .brand {
    position: absolute;
    top: 50%;
    left: clamp(24px, calc(4vw - 20px), 60px);
    margin: 0;
    transform: translateY(-50%);
  }

  body .site-header .header-center {
    display: contents;
  }

  body .site-header .primary-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  body .site-header .primary-nav > ul {
    gap: clamp(20px, 2.25vw, 28px);
  }

  body .site-header .language-switcher {
    position: absolute;
    top: 50%;
    right: clamp(170px, 14vw, 270px);
    transform: translateY(-50%);
  }

  body .site-header .language-switcher ul {
    gap: 20px;
  }

  body .site-header .language-switcher .current-lang > a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: -5px -9px;
    padding: 5px 9px;
    border: 1px solid rgba(234, 220, 197, .52);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.045));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 6px 16px rgba(0,0,0,.10);
    backdrop-filter: blur(12px) saturate(125%);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    color: var(--site-chrome-ivory);
    opacity: 1;
    text-decoration: none;
  }

  body .site-header .header-actions {
    display: none !important;
  }

  body .site-header {
    position: absolute !important;
    inset: 0 0 auto !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.home .site-header {
    border-radius: 0 !important;
  }
}

/* Compact shared footer: one aligned 3 x 4 grid on desktop, 2 x 4 below the brand on mobile. */
.site-footer {
  padding: clamp(16px, 1.5vw, 22px) 0 8px !important;
}

.site-footer .footer-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(170px, .82fr) minmax(230px, 1fr) !important;
  grid-template-rows: repeat(4, 26px);
  column-gap: clamp(32px, 4.5vw, 64px) !important;
  row-gap: clamp(5px, .55vw, 8px) !important;
  align-items: center !important;
}

.site-footer .footer-column--brand {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  align-self: start;
  gap: 7px;
}

.site-footer .footer-brand {
  margin: 0;
  font-size: 29px !important;
  line-height: 1;
}

.site-footer h2 {
  margin: 0 0 5px !important;
  font-size: 17px !important;
  line-height: 1.1;
}

.site-footer p {
  margin: 0 !important;
  line-height: 1.25 !important;
}

.site-footer .footer-column {
  min-width: 0;
}

.site-footer .footer-column--brand p {
  max-width: 320px;
}

.site-footer .footer-navigation,
.site-footer .footer-navigation ul,
.site-footer .footer-contact,
.site-footer .footer-contact-list {
  display: contents;
}

.site-footer .footer-navigation ul,
.site-footer .footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-row {
  height: 26px;
  min-width: 0;
  display: flex;
  align-items: center;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.site-footer .footer-navigation li {
  grid-column: 2;
}

.site-footer .footer-contact-list li {
  grid-column: 3;
}

.site-footer .footer-navigation li:nth-child(1),
.site-footer .footer-contact-list li:nth-child(1) { grid-row: 1; }
.site-footer .footer-navigation li:nth-child(2),
.site-footer .footer-contact-list li:nth-child(2) { grid-row: 2; }
.site-footer .footer-navigation li:nth-child(3),
.site-footer .footer-contact-list li:nth-child(3) { grid-row: 3; }
.site-footer .footer-navigation li:nth-child(4),
.site-footer .footer-contact-list li:nth-child(4) { grid-row: 4; }

.site-footer .footer-navigation a,
.site-footer .footer-contact a {
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.site-footer .footer-navigation a:hover,
.site-footer .footer-contact a:hover {
  color: var(--veranda-gold-light);
  transform: translateX(2px);
}

.site-footer .footer-navigation a:focus-visible,
.site-footer .footer-contact a:focus-visible {
  color: var(--veranda-gold-light);
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-radius: 3px;
}

.site-footer .footer-hours {
  margin-top: 0;
}

.site-footer .footer-contact-link {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  white-space: nowrap;
}

.site-footer .footer-contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .86;
}

.site-footer .footer-copyright {
  grid-column: 1;
  grid-row: 4;
  height: 26px;
  display: flex;
  align-items: center;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .1em;
}

@media (max-width: 899px) {
  :root {
    --veranda-header-height: 72px;
  }

  .site-header,
  body .site-header,
  body.home .site-header {
    height: var(--veranda-header-height) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Ordinary mobile headers stay at the top of the document, matching desktop,
     and scroll away instead of following the viewport through every section. */
  body:not(.veranda-menu-background) > .site-header {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100%;
    margin: 0 !important;
    transform: none !important;
    z-index: 100;
  }

  body.veranda-menu-background > .site-header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    margin: 0 !important;
    transform: none !important;
    z-index: 100;
  }

  body .site-header .header-inner {
    position: relative;
  }

  body .site-header .menu-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .site-header .primary-nav a {
    font-size: 32px !important;
  }

  .site-footer {
    padding: 10px 0 6px !important;
  }

  .site-footer .footer-grid {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.32fr) !important;
    grid-template-rows: auto repeat(4, 26px) 18px;
    column-gap: clamp(8px, 2.3vw, 16px) !important;
    row-gap: 3px !important;
    font-size: clamp(12px, calc(10px + .65vw), 15px);
  }

  body .site-footer .footer-grid > .footer-column--brand {
    grid-column: 1 / -1 !important;
    grid-row: 1;
    justify-items: center;
    gap: 4px;
    text-align: center;
  }

  .site-footer .footer-column--brand p {
    max-width: none;
  }

  .site-footer .footer-navigation li,
  .site-footer .footer-contact-list li {
    height: 26px;
    font-size: clamp(12px, calc(10px + .65vw), 15px);
    line-height: 1.15;
  }

  .site-footer .footer-navigation li {
    grid-column: 1;
    justify-self: start;
    justify-content: flex-start;
  }

  .site-footer .footer-contact-list li {
    grid-column: 2;
    justify-self: stretch;
    justify-content: flex-end;
  }

  .site-footer .footer-navigation li:nth-child(1),
  .site-footer .footer-contact-list li:nth-child(1) { grid-row: 2; }
  .site-footer .footer-navigation li:nth-child(2),
  .site-footer .footer-contact-list li:nth-child(2) { grid-row: 3; }
  .site-footer .footer-navigation li:nth-child(3),
  .site-footer .footer-contact-list li:nth-child(3) { grid-row: 4; }
  .site-footer .footer-navigation li:nth-child(4),
  .site-footer .footer-contact-list li:nth-child(4) { grid-row: 5; }

  .site-footer .footer-contact-link {
    gap: clamp(5px, 1.4vw, 8px);
    justify-content: flex-end;
  }

  .site-footer .footer-contact-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .site-footer .footer-hours {
    margin-top: 0;
  }

  .site-footer .footer-copyright {
    grid-column: 1 / -1;
    grid-row: 6;
    height: 18px;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 1fr) !important;
  }
}

/* Keep the fourth navigation item reachable in short landscape viewports. */
@media (max-width: 899px) and (max-height: 500px) {
  body .site-header .primary-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: clamp(76px, 21vh, 88px);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .site-header .primary-nav a {
    padding-block: clamp(8px, 2vh, 11px);
    font-size: clamp(25px, 7vh, 30px) !important;
  }
}

/* The responsive navigation keeps its full-viewport backdrop, while the
   existing list becomes the compact Liquid Glass panel. */
@media (max-width: 899px) {
  body .site-header .primary-nav.is-open {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding-top: calc(var(--veranda-header-height) + clamp(12px, 2.5vw, 20px));
    padding-right: max(clamp(16px, 4vw, 20px), env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(clamp(16px, 4vw, 20px), env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(9, 6, 5, .34) !important;
    border: 0;
    box-shadow: none;
    backdrop-filter: blur(10px) saturate(112%);
    -webkit-backdrop-filter: blur(10px) saturate(112%);
    z-index: 2;
  }

  body .site-header .primary-nav.is-open > ul {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 420px);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(8px, 2vw, 12px);
    border: 1px solid rgba(234, 220, 197, .46);
    border-radius: clamp(24px, 4vw, 30px);
    background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(90,62,46,.13) 56%, rgba(255,255,255,.07));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 44px rgba(13,7,5,.20);
    backdrop-filter: blur(22px) saturate(122%);
    -webkit-backdrop-filter: blur(22px) saturate(122%);
  }

  body .site-header .primary-nav.is-open li {
    border-bottom: 1px solid rgba(234, 220, 197, .20);
  }

  body .site-header .primary-nav.is-open li:last-child {
    border-bottom: 0;
  }

  body .site-header .primary-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 11px 14px;
    font-size: clamp(28px, 5vw, 32px) !important;
    line-height: 1.15;
    white-space: nowrap;
  }

  body .site-header .primary-nav.is-open li.current-menu-item > a {
    width: 100%;
    min-height: 56px;
    margin: 4px 0;
    padding: 10px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.21), rgba(234,220,197,.075)) !important;
    border-color: rgba(234, 220, 197, .48) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 7px 18px rgba(18,11,8,.11) !important;
  }

  body .site-header .primary-nav.is-open li:last-child.current-menu-item > a {
    margin-bottom: 0;
  }
}

@media (max-width: 899px) and (max-height: 500px) {
  body .site-header .primary-nav.is-open {
    padding-top: calc(var(--veranda-header-height) + 8px);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  body .site-header .primary-nav.is-open > ul {
    padding: 8px;
  }

  body .site-header .primary-nav.is-open a,
  body .site-header .primary-nav.is-open li.current-menu-item > a {
    min-height: 46px;
    padding: 7px 12px;
  }
}
