/* =========================================================
   Mezzé #1 — v2 navigation
   Link-buttons, the Experiences dropdown, and the
   Locations / Reserve slide-in drawer.
   Loaded by the shared header (build/partials/header.html);
   builds on the base .site-header / .site-nav rules in styles.css.
   ========================================================= */

/* --- link-buttons match the text nav links --- */
.site-nav--v2 .site-nav__btn {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--green);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.site-nav--v2 .site-nav__btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav--v2 .site-nav__btn:hover::after,
.site-nav--v2 .site-nav__dd:hover .site-nav__dd-toggle::after { transform: scaleX(1); }
.site-nav--v2 .site-nav__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.site-nav__caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .2s var(--ease);
  margin-left: 2px;
}

/* --- Experiences dropdown (desktop: hover / focus) --- */
.site-nav__dd { position: relative; display: inline-flex; }
.site-nav__dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(34, 76, 36, .35);
  padding: 8px;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 60;
}
/* Invisible hover bridge over the 10px gap so the pointer can travel from
   "Experiences" down into the menu without the hover dropping (desktop only). */
@media (min-width: 1081px) {
  .site-nav__dd-menu::before {
    content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  }
}
.site-nav__dd:hover .site-nav__dd-menu,
.site-nav__dd:focus-within .site-nav__dd-menu,
.site-nav__dd.is-open .site-nav__dd-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.site-nav__dd:hover .site-nav__caret,
.site-nav__dd.is-open .site-nav__caret { transform: rotate(180deg); }
.site-nav__dd-menu a {
  text-transform: none; letter-spacing: .02em; font-size: .95rem;
  font-weight: 600; color: var(--green);
  padding: 9px 12px; border-radius: 6px;
}
.site-nav__dd-menu a::after { display: none; }
.site-nav__dd-menu a:hover { background: var(--cream-deep); color: var(--orange-text); }

/* --- actions group --- */
.site-nav--v2 .site-nav__actions { display: inline-flex; align-items: center; gap: 12px; }

/* === Mobile: reuse the base <=1080px drawer, adapt v2 children === */
@media (max-width: 1080px) {
  .site-nav--v2 .site-nav__btn {
    padding: 14px 0; border-bottom: 1px solid var(--line);
    width: 100%; justify-content: space-between;
  }
  .site-nav--v2 .site-nav__btn::after { display: none; }
  .site-nav__dd { display: block; width: 100%; }
  .site-nav__dd-menu {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 14px;
    min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s var(--ease);
  }
  .site-nav__dd.is-open .site-nav__dd-menu { max-height: 260px; transform: none; }
  .site-nav__dd-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav--v2 .site-nav__actions {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 10px; margin-top: 14px; width: 100%;
  }
  .site-nav--v2 .site-nav__actions .btn { align-self: stretch; text-align: center; margin-top: 0; }
}

/* =========================================================
   Locations / Reserve slide-in drawer
   ========================================================= */
.loc-drawer { position: fixed; inset: 0; z-index: 120; }
.loc-drawer[hidden] { display: none; }
.loc-drawer__scrim {
  position: absolute; inset: 0; background: rgba(20, 30, 22, .5);
  opacity: 0; transition: opacity .3s var(--ease);
}
.loc-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 92vw);
  background: var(--cream);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
  overflow-y: auto;
}
.loc-drawer.is-open .loc-drawer__scrim { opacity: 1; }
.loc-drawer.is-open .loc-drawer__panel { transform: translateX(0); }

.loc-drawer__head {
  position: sticky; top: 0; background: var(--cream);
  padding: 22px 24px 14px; border-bottom: 1px solid var(--line); z-index: 1;
}
.loc-drawer__eyebrow {
  font-family: var(--body); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .7rem; color: var(--orange-text); margin: 0 0 4px;
}
.loc-drawer__title {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.5rem; color: var(--green); margin: 0;
}
.loc-drawer__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: 0; font-size: 1.9rem; line-height: 1;
  color: var(--green); cursor: pointer; padding: 4px 8px;
}
.loc-drawer__close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.loc-drawer__list { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.loc-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.loc-card:hover { border-color: rgba(241, 87, 35, .5); box-shadow: 0 16px 32px -20px rgba(34, 76, 36, .4); }
.loc-card__name {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.3rem; color: var(--green); margin: 0 0 10px;
}
.loc-card__meta { font-family: var(--body); font-size: .9rem; color: var(--ink); line-height: 1.5; margin: 0 0 14px; }
.loc-card__meta span { display: block; }
.loc-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; z-index: 2; }
.loc-card__actions .btn { font-size: .72rem; padding: 9px 14px; }
.loc-card__link {
  font-family: var(--body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  font-size: .72rem; color: var(--green);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.loc-card__link:hover { color: var(--orange-text); }

/* Whole-card link to the location page (browse mode). The name link is
   "stretched" over the card via ::before; the action buttons sit above it. */
.loc-card--link { position: relative; cursor: pointer; }
.loc-card__name-link { display: block; text-decoration: none; }
.loc-card__name-link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.loc-card__name-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.loc-card__go { color: var(--orange-text); display: inline-block; transition: transform .2s var(--ease); }
.loc-card--link:hover .loc-card__name { color: var(--orange-text); }
.loc-card--link:hover .loc-card__go { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .loc-drawer__panel, .loc-drawer__scrim { transition: none; }
}

/* Mobile: drawer becomes a bottom sheet */
@media (max-width: 560px) {
  .loc-drawer__panel {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%; height: auto; max-height: 86vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .loc-drawer.is-open .loc-drawer__panel { transform: translateY(0); }
}

body.has-drawer-open { overflow: hidden; }

/* Header gutter — the base .site-header__inner uses `padding: 18px 0`, which
   removes the side gutter so the logo + action buttons touch the screen edges
   up to the 1200px container width. Restore the page gutter. */
.site-header__inner { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Homepage hero — more elegant: swap the food flat-lay for a warm interior
   shot, with a deep moody gradient + a soft vignette so the wordmark reads
   high-end and intimate. (Overrides .hero__bg in styles.css; loads after it.) */
.hero__bg {
  background:
    radial-gradient(130% 120% at 50% 16%, rgba(45, 95, 52, .55), transparent 62%),
    linear-gradient(180deg, #1c4220 0%, #142d19 100%);
  animation: none;
}

/* Quieter + cleaner: smaller hero wordmark, no gold accents, and no
   decorative dot/diamond strips between sections. */
.hero__title { font-size: clamp(2.1rem, 5.2vw, 3.8rem); }
.pattern-strip { display: none; }
.review-card__stars { color: var(--orange); text-shadow: none; }

/* Mobile sticky action bar — Order Online + Reserve always reachable while
   scrolling the homepage on a phone. (Desktop keeps the header buttons.) */
.mobile-cta { display: none; }
/* Appears exactly when the header collapses to the hamburger (<=1080px). */
@media (max-width: 1080px) {
  .mobile-cta {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 246, 240, .97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px -14px rgba(0, 0, 0, .3);
  }
  .mobile-cta .btn { flex: 1; justify-content: center; text-align: center; margin: 0; }
  body.has-mobile-cta { padding-bottom: 72px; }
  /* Keep the "back to top" arrow clear of the sticky action bar. */
  body.has-mobile-cta .back-to-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}

/* Arches sweep horizontally on phone/tablet so they never stack. */
@media (max-width: 1024px) {
  .story-gallery .gallery-grid {
    display: flex; gap: 14px;
    grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 2px 2px 10px; scroll-padding-left: 2px;
  }
  .story-gallery .gallery-grid::-webkit-scrollbar { display: none; }
  .story-gallery .gallery-grid .gallery-item {
    flex: 0 0 clamp(220px, 72vw, 300px); scroll-snap-align: start;
  }
}

/* Light-bg intro (the opener, replacing the old dark hero): centered, airy.
   The space above the intro text (section padding) and below it (gap to the
   arches) are kept equal so the opener sits balanced under the header. */
.story-gallery__head--intro {
  text-align: center; max-width: 760px; margin: 0 auto;
  margin-bottom: clamp(32px, 4.4vw, 52px);
}
.story-gallery__head--intro .display {
  font-size: clamp(2.3rem, 5.4vw, 4rem); color: var(--green); margin: 6px 0 14px;
}
.story-gallery__head--intro .lede { margin: 0 auto; max-width: 56ch; }

/* Soft shadow under the sticky header to visually separate it from the page. */
.site-header { box-shadow: 0 3px 12px -6px rgba(0, 0, 0, .16); }

/* Tighten the top of the first (opener) section and drop the gallery's own
   top margin so header->intro spacing matches intro->arches spacing. */
#inside { padding-top: clamp(32px, 4.4vw, 52px); }
#inside .story-gallery { margin-top: 0; }

/* Homepage social links: logomark only, centered on every screen size. */
.story-social { margin-top: clamp(24px, 3vw, 34px); gap: 22px; }
.story-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green); transition: color .2s var(--ease), transform .2s var(--ease);
}
.story-social__link svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.story-social__link:hover { color: var(--orange); transform: translateY(-2px); }
.story-social__link:focus-visible { outline: var(--focus-ring); outline-offset: 4px; border-radius: 4px; }

/* Both "Our promise" and "What guests are saying" use the same cream-deep
   background, so a hairline divides them instead of letting them blend. */
#reviews { border-top: 1px solid rgba(34, 76, 36, .14); }

/* Lean footer — only what isn't already in the header: a few secondary links,
   the What's On button, social icons, and the legal bar. No nav duplication. */
.site-footer--lean { padding-top: 44px; }
.site-footer--lean .site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px; padding-bottom: 40px;
}
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.site-footer__links a:not(.btn) {
  font-family: var(--body); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: .82rem; color: var(--cream); opacity: .85;
}
.site-footer__links a:not(.btn):hover { color: var(--orange); opacity: 1; }
.site-footer__social { display: flex; align-items: center; gap: 16px; }
.site-footer__social a { color: var(--cream); opacity: .85; display: inline-flex; }
.site-footer__social a:hover { color: var(--orange); opacity: 1; }
.site-footer__social a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.site-footer__social svg { width: 24px; height: 24px; fill: currentColor; display: block; }
/* Phone + tablet: center the footer links, social icons, and legal line.
   Desktop (the "website size") keeps the left/right row. */
@media (max-width: 1080px) {
  .site-footer--lean .site-footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__links { justify-content: center; }
  .site-footer__bar-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}
