/* Stidham's Lounge — shared components, loaded on every page:
   header + navigation, inner-page banner, photo hero (Services, Menu, Events),
   section head and experience card (Services, Events), walnut panel, service icon,
   text link, closing call to action band, footer.
   Mobile menu: responsive.css. */

/* =========================================================
   HEADER + NAVIGATION
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15, 14, 12, .94);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1320px; margin-inline: auto;
  padding: 18px var(--gutter);
  transition: padding .3s var(--ease);
}
.is-scrolled .header-inner { padding-block: 10px; }

.brand {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; line-height: 1;
}
.brand-name { font: 400 2rem/.9 var(--font-display); letter-spacing: .04em; }
.brand-sub {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font: 500 .66rem/1 var(--font-body); letter-spacing: .42em; text-transform: uppercase;
  padding-left: .42em; /* optically recentre the tracked text */
}
.brand-sub::before, .brand-sub::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .7; }
.brand-logo { display: block; width: auto; height: clamp(52px, 5vw, 68px); }

.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav-list { display: flex; justify-content: center; flex: 1; gap: clamp(16px, 2.6vw, 40px); }
.nav-list a {
  position: relative; display: block; padding: 8px 0;
  font: 500 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: rgba(241, 234, 219, .86);
  transition: color .25s var(--ease);
}
/* Underline draws in from the left and leaves to the right. */
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--olive-text); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after { transform-origin: left; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--cream); }
.nav-list a[aria-current="page"] { color: var(--olive-text); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--cream); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 1.6px; margin-inline: auto;
  background: currentColor; transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   INNER-PAGE BANNER
   The hero photo under a dark gradient, fading into the page: the same treatment
   as the strip behind the homepage service cards.
   ========================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h, 82px) + clamp(56px, 9vw, 112px)) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, rgba(15, 14, 12, .45), rgba(15, 14, 12, 0) 75%),
    linear-gradient(to bottom,
      rgba(15, 14, 12, .88) 0%,
      rgba(15, 14, 12, .5) 40%,
      rgba(15, 14, 12, .7) 75%,
      var(--charcoal) 100%),
    var(--moxie-bg, url("../assets/img/hero-1600.jpg")) 50% 88% / cover no-repeat;   /* --moxie-bg: a photo from MOX-E HQ */
}
.page-title {
  margin-top: clamp(10px, 1.6vw, 16px);
  font: 400 clamp(3.4rem, 9vw, 6.5rem)/.88 var(--font-display);
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.page-hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.page-lede {
  max-width: 52ch;
  margin: clamp(16px, 2vw, 22px) auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

/* =========================================================
   PHOTO HERO (Services, Menu, Events, Contact)
   Full-screen photo under a dark overlay; eyebrow, two-line title, lede and an
   index of jump links sit centred in a pool of shade. Each page frames its own
   photo and overlay with its modifier class (.services-hero in services.css,
   .menu-hero in menu.css). Phone sizes: responsive.css.
   ========================================================= */
.photo-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(580px, 92vh, 960px);
  min-height: clamp(580px, 92svh, 960px);
  overflow: hidden;
}
.photo-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--charcoal-2);
}
.photo-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.photo-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-h, 82px) + clamp(72px, 14vh, 150px));
  padding-bottom: clamp(48px, 8vh, 88px);
  text-align: center;
}
.photo-hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.photo-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(12px, 1.8vw, 20px);
  font-weight: 400;
}
.photo-hero-title-main {
  font: 400 clamp(3.8rem, 11vw, 8.75rem)/.84 var(--font-display);
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .55);
  padding-left: .03em;
}
.photo-hero-title-script {
  /* Padding, cancelled by equal negative margins, gives the handwriting mask in
     animations.css room for swashes and shadow without moving anything (as the
     homepage's "Your Place."). */
  --ink-pad-y: .25em;
  --ink-pad-x: .35em;
  position: relative;
  padding: var(--ink-pad-y) var(--ink-pad-x);
  margin: calc(-.12em - var(--ink-pad-y)) calc(-1 * var(--ink-pad-x)) calc(-1 * var(--ink-pad-y));
  font: 400 clamp(2.4rem, 6.4vw, 5.1rem)/1.1 var(--font-script);
  color: var(--olive-text);
  transform: rotate(-4deg);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .6), 0 0 34px rgba(217, 163, 91, .18);
}
.photo-hero-lede {
  max-width: 50ch;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: rgba(241, 234, 219, .82);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}

/* Index of jump links: small tracked labels, amber diamonds between. The link
   marked aria-current keeps its underline. */
.photo-hero-index { margin-top: clamp(30px, 5vh, 52px); }
.photo-hero-index ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
}
.photo-hero-index li { display: flex; align-items: center; }
.photo-hero-index li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline: clamp(12px, 1.6vw, 20px);
  background: var(--amber);
  opacity: .7;
  transform: rotate(45deg);
}
.photo-hero-index a {
  position: relative;
  padding-block: 6px;
  font: 500 .74rem/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(241, 234, 219, .8);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
  transition: color .25s var(--ease);
}
.photo-hero-index a::after {
  content: "";
  position: absolute;
  left: 0; right: .18em; bottom: 0;
  height: 1px;
  background: var(--olive-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.photo-hero-index a:hover,
.photo-hero-index a[aria-current] { color: var(--cream); }
.photo-hero-index a:hover::after,
.photo-hero-index a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   SECTION HEAD (Services, Events, Contact)
   Eyebrow, then the title with a rule running from it to the edge, as on the
   About page.
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section-head .eyebrow { flex-basis: 100%; }
.section-head .section-title span { color: var(--olive-text); }
/* Rule runs from the title to the edge, as on the About page. */
.section-head::after {
  content: "";
  flex: 1;
  min-width: 40px;
  height: 1px;
  margin-bottom: .55em;
  background: linear-gradient(to right, var(--walnut-line), rgba(58, 46, 35, 0));
}

/* =========================================================
   EXPERIENCE CARD (Services showcase, Events)
   Photo fills the card, graded the same way on every card so a set reads as
   one; the text sits on a dark fade at the foot. Each page lays the cards out
   in its own grid. Optional per-image framing on the <img>: --focus
   (object-position) and --zoom; --grade replaces the resting filter (the real
   food photos use a lighter one, so the dishes keep their true colour).
   ========================================================= */
.experience {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  overflow: hidden;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .85);
  scroll-margin-top: 110px;
  transition: border-color .4s var(--ease);
}
.experience img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform-origin: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1));
  filter: var(--grade, saturate(.72) brightness(.9) contrast(1.05));
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
/* Shade: light at the top for the number, deep at the foot for the text. */
.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(15, 14, 12, .96) 0%,
    rgba(15, 14, 12, .78) 26%,
    rgba(15, 14, 12, .22) 62%,
    rgba(15, 14, 12, .4) 100%);
}
/* Warm lamplight that rises from the foot on hover. */
.experience::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 85% 60% at 25% 100%, rgba(217, 163, 91, .3), rgba(217, 163, 91, 0) 72%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}

.experience-num {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  left: clamp(20px, 2.2vw, 30px);
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 1.05rem/1 var(--font-display);
  letter-spacing: .16em;
  color: var(--amber);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.experience-num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(217, 163, 91, .55);
  transition: width .5s var(--ease);
}

.experience-body { display: grid; justify-items: start; }
.experience h3 {
  position: relative;
  padding-bottom: 14px;
  font: 400 clamp(1.9rem, 2.6vw, 2.35rem)/.95 var(--font-display);
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
/* Accent rule under the name: grows and warms to amber on hover. */
.experience h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--olive-text);
  transition: width .5s var(--ease), background-color .5s var(--ease);
}
.experience-body > p:not([class]) {
  max-width: 36ch;
  margin-top: 12px;
  color: rgba(241, 234, 219, .78);
  font-size: .95rem;
  line-height: 1.5;
}

/* ---------- Featured card: larger type and padding ---------- */
.experience--feature { padding: clamp(24px, 3vw, 44px); }
.experience--feature .experience-num { top: clamp(22px, 2.6vw, 36px); left: clamp(24px, 3vw, 44px); }
.experience--feature h3 { font-size: clamp(2.8rem, 5vw, 4.4rem); padding-bottom: 18px; }
.experience--feature .experience-body > p:not([class]) { font-size: clamp(1rem, 1.2vw, 1.08rem); }
.experience-tag {
  margin-bottom: 2px;
  font: 400 clamp(1.35rem, 2vw, 1.75rem)/1.2 var(--font-script);
  color: var(--olive-text);
  transform: rotate(-3deg);
  transform-origin: left bottom;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
}
.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 18px;
  font: 500 .72rem/1.4 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- Hover (real pointers only, so taps don't leave cards "stuck") ---------- */
@media (hover: hover) {
  .experience:hover { border-color: rgba(217, 163, 91, .38); }
  .experience:hover img {
    transform: scale(calc(var(--zoom, 1) * 1.06));
    filter: saturate(.95) brightness(1) contrast(1.05);
  }
  .experience:hover::after { opacity: 1; }
  .experience:hover h3::after { width: 72px; background-color: var(--amber); }
  .experience:hover .experience-num::after { width: 44px; }
}

/* =========================================================
   WALNUT PANEL (Events empty state, Contact form)
   Warm wood-grain panel with a lamplight glow at one corner: the menu's
   featured-item treatment, for a block that should stand out from the page.
   ========================================================= */
.panel {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--walnut-line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(217, 163, 91, .14), rgba(217, 163, 91, 0) 70%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #2c2119, #1a1511 70%);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .85);
}

/* =========================================================
   SERVICE ICON (homepage cards, services page, about page)
   ========================================================= */
.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(167, 174, 114, .7);
  border-radius: 50%;
  background: rgba(15, 14, 12, .55);
  color: var(--olive-text);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.service-icon .icon { width: 22px; height: 22px; }

/* =========================================================
   TEXT LINK
   ========================================================= */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding-block: 6px;
  font: 700 .8rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--olive-text);
  border-bottom: 1px solid rgba(167, 174, 114, .4);
  transition: border-color .2s, color .2s;
}
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover { color: var(--cream); border-color: var(--cream); }
.text-link:hover .icon { transform: translateX(3px); }

/* =========================================================
   CLOSING CALL TO ACTION (Services, Menu, Events, Contact)
   Full-width walnut band lit by a single pendant lamp, so a page ends on a
   darker, warmer note than the content above it.
   ========================================================= */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(112px, 14vw, 168px) 0 clamp(72px, 10vw, 120px);
  text-align: center;
  border-top: 1px solid var(--walnut-line);
  background:
    radial-gradient(ellipse 46% 70% at 50% 0%, rgba(217, 163, 91, .2), rgba(217, 163, 91, 0) 72%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .014) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2a2018, #1a1511 62%, var(--charcoal-2));
}
/* Pendant lamp: cord, shade, and a soft pool of light under the bulb. */
.cta-band-lamp {
  --cord: clamp(48px, 6vw, 80px);
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 220px;
  height: calc(var(--cord) + 28px + 90px);
  translate: -50% 0;
  background: radial-gradient(ellipse 50% 60px at 50% calc(var(--cord) + 28px),
    rgba(240, 207, 148, .32), rgba(217, 163, 91, 0) 100%);
}
.cta-band-lamp::before {               /* cord */
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: var(--cord);
  background: rgba(241, 234, 219, .28);
}
.cta-band-lamp::after {                /* shade, lit rim at the bottom */
  content: "";
  position: absolute;
  top: var(--cord); left: 50%;
  width: 84px;
  height: 28px;
  translate: -50% 0;
  background: linear-gradient(to bottom, #43362b, #1d1712 85%, #f0cf94 85%);
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
}

.cta-band-inner { display: grid; justify-items: center; }
.cta-band-script {
  font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--font-script);
  color: var(--amber);
  transform: rotate(-3deg);
}
.cta-band .section-title {
  margin-top: 10px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}
.cta-band .section-title span { display: block; color: var(--olive-text); }
.cta-band-text {
  max-width: 44ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 26px;
  margin-top: clamp(28px, 3.4vw, 38px);
}
.cta-band-note {
  margin-top: clamp(30px, 4vw, 44px);
  font: 500 .72rem/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(184, 174, 156, .7);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--charcoal-2);
  padding-top: clamp(48px, 7vw, 80px);
  scroll-margin-top: 70px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.footer-grid h2 {
  margin-bottom: 14px;
  font: 400 1.6rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
}
.footer-logo { display: block; width: auto; height: clamp(68px, 7vw, 84px); }
.footer-grid p { color: var(--muted); font-size: .95rem; max-width: 46ch; }
.footer-links { display: grid; gap: 8px; }
.footer-links a {
  font-size: .95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--olive-text); }
.footer-line { display: flex; align-items: center; gap: 10px; color: var(--cream) !important; }
.footer-line .icon { color: var(--olive-text); }
.footer-note { margin-top: 8px; font-size: .88rem !important; }
.footer-line a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-line a:hover { color: var(--olive-text); }
.footer-contact { margin-top: 16px; }
.footer-base {
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}

/* =========================================================
   PARTIAL LOAD NOTICE (js/include.js)
   Stands in for a section that couldn't be loaded, or for the whole page when it
   was opened from disk instead of through a web server.
   ========================================================= */
.include-error {
  position: relative; z-index: 60;
  max-width: var(--container); margin: 16px auto; padding: 14px 18px;
  background: var(--charcoal-2); border: 1px solid var(--amber); border-radius: var(--radius);
  color: var(--cream); font-size: .95rem;
}

/* =========================================================
   HEALTH SCORE (Menu page card, homepage badge)
   ========================================================= */
.health-score { padding-block: 0 clamp(56px, 8vw, 104px); }
.health-card {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.health-photo { display: block; border-radius: calc(var(--radius) * .6); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.health-photo img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.health-photo:hover img { transform: scale(1.02); }
.health-copy p:last-child { color: var(--muted); max-width: 46ch; }
.health-grade {
  display: flex;
  align-items: baseline;
  gap: .3em;
  margin: 6px 0 14px;
  font: 400 clamp(3.4rem, 6vw, 5rem)/1 var(--font-display);
  color: var(--amber);
  text-shadow: 0 0 42px rgba(217, 163, 91, .28);
}
.health-letter {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border: 2px solid currentColor;
  border-radius: 6px;
  font-family: var(--font-display);
  line-height: 1;
}
.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  color: var(--cream);
  font-size: .92rem;
  text-decoration: none;
}
.health-badge .health-letter { width: 30px; height: 30px; color: var(--amber); font-size: 1.25rem; }
.health-badge:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .health-card { grid-template-columns: minmax(0, 1fr); }
}
