/* =====================================================================
   Jupiter Dining — site styles
   Palette from the Jupiter Culinary brand guide: cast-iron charcoal,
   silver, copper/terracotta (Kettle), and teal patina. Type pairs
   Fraunces (heritage display) with Hanken Grotesk (a clean stand-in
   for the brand's Brother 1816).
   ===================================================================== */

:root {
  --ink: #26231f;
  --ink-soft: #55504a;
  --parchment: #f7f2e8;
  --parchment-2: #efe6d4;
  --char: #1f1d1b;
  --char-2: #2a2622;
  --char-card: #272320;
  --copper: #c57c5b;       /* Kettle */
  --copper-deep: #b5532a;  /* Copper Pot */
  --teal: #4ea899;         /* Oxidized patina */
  --teal-deep: #2f8a7d;
  --silver: #a7a8a9;       /* Silver Pan */
  --cream: #efe7d6;
  --cream-soft: #cfc7b6;
  --line: rgba(38, 35, 31, 0.14);

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(31, 29, 27, 0.5);
  --shadow-lift: 0 28px 56px -28px rgba(31, 29, 27, 0.6);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--dark { background: var(--char); color: var(--cream); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0; top: -60px; z-index: 200;
  background: var(--char); color: var(--cream); padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0; transition: top .2s ease; text-decoration: none;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 3px; }

/* ---------- Shared type bits ---------- */
.eyebrow {
  font: 700 .78rem/1 var(--font-sans);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper-deep); margin: 0 0 1rem;
}
.eyebrow--light { color: var(--copper); }
.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.015em; margin-bottom: 1.1rem; max-width: 18ch;
}
.section__head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__intro { color: var(--cream-soft); font-size: 1.1rem; max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 600 .95rem/1 var(--font-sans);
  letter-spacing: .02em; text-decoration: none; padding: .9em 1.5em;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--solid { background: var(--copper); color: #fff; }
.btn--solid:hover { background: var(--copper-deep); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--cream); }
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.section:not(.section--dark) .btn--ghost { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 232, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(31,29,27,.5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { height: 38px; width: auto; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.brand__sub { font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--copper-deep); margin-top: .18rem; }

.nav__menu { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink); padding: .4rem 0; position: relative; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -.1rem; height: 2px; width: 0;
  background: var(--copper); transition: width .22s ease;
}
.nav__menu a:hover::after { width: 100%; }
.nav__toggle { display: none; }

.header-actions { display: flex; align-items: center; gap: calc(1.4rem + 15px); }
.social { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); padding: 4px; margin: -4px; border-radius: 8px; transition: color .2s ease, transform .2s ease; }
.social svg { width: 33px; height: 33px; display: block; }
.social:hover { color: var(--copper-deep); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--cream); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(31,29,27,.55) 0%, rgba(31,29,27,.25) 38%, rgba(31,29,27,.82) 100%),
    linear-gradient(90deg, rgba(31,29,27,.6) 0%, rgba(31,29,27,.05) 70%);
}
.hero__inner {
  min-height: min(86vh, 760px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
.hero__mark { height: clamp(86px, 12vw, 124px); width: auto; margin-bottom: 1.6rem; filter: drop-shadow(0 6px 20px rgba(0,0,0,.35)); }
.hero__kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: var(--copper); margin: 0 0 1rem; }
.hero__headline { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; margin: 1.4rem 0 2rem; color: #ece6da; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__rule { height: 6px; background: linear-gradient(90deg, var(--copper) 0%, var(--copper-deep) 45%, var(--teal-deep) 100%); }

/* ---------- Heritage strip ---------- */
.strip { background: var(--char-2); color: var(--cream); }
.strip__inner { display: flex; align-items: center; gap: 1.2rem; padding-block: 1.6rem; }
.strip__icon { color: var(--copper); font-size: 1.7rem; line-height: 1; flex: none; }
.strip p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1rem, 2vw, 1.25rem); color: #e8e0d2; max-width: 92ch; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__copy p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 0; padding: 0; }
.values li {
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  background: var(--parchment-2); color: var(--ink); padding: .5em 1em; border-radius: 999px;
  border: 1px solid var(--line);
}
.about__figure { margin: 0; }
.about__figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__figure figcaption { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); font-size: .98rem; margin-top: 1rem; padding-left: 1rem; border-left: 3px solid var(--copper); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--parchment-2); border-radius: var(--radius); border: 1px solid var(--line);
}
.stat { text-align: center; padding: .4rem; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--copper-deep); line-height: 1.1; }
.stat__label { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: .45rem; }

/* ---------- Establishments ---------- */
.estab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.5vw, 2rem); }
.estab {
  --accent: var(--copper);
  display: flex; flex-direction: column; background: var(--char-card);
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.06);
  border-top: 3px solid var(--accent); transition: transform .2s ease, box-shadow .2s ease;
}
.estab:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.estab__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--char-2); }
.estab__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.estab:hover .estab__media img { transform: scale(1.05); }
.estab__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.estab__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.chip {
  font: 700 .66rem/1 var(--font-sans); letter-spacing: .09em; text-transform: uppercase;
  padding: .45em .7em; border-radius: 999px; white-space: nowrap;
}
.chip--type { background: var(--accent); color: #fff; }
.chip--public { background: rgba(78,168,153,.16); color: #b9e4da; border: 1px solid rgba(78,168,153,.5); }
.chip--coop { background: rgba(167,168,169,.16); color: #ded8cb; border: 1px solid rgba(167,168,169,.45); }
.chip--soon { background: rgba(197,124,91,.16); color: #e9b793; border: 1px solid rgba(197,124,91,.5); }
.estab__name { font-size: 1.6rem; color: var(--cream); }
.estab__name::after { content: ""; display: block; width: 2.2rem; height: 3px; background: var(--accent); border-radius: 2px; margin: .7rem 0 .9rem; }
.estab__tagline { font-family: var(--font-display); font-style: italic; color: var(--copper); margin: 0 0 .8rem; font-size: 1.02rem; }
.estab__desc { color: var(--cream-soft); font-size: .96rem; margin: 0 0 1.2rem; }
.estab__meta { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }
.estab__meta li { position: relative; padding-left: 1.2rem; font-size: .9rem; color: var(--cream-soft); margin-bottom: .35rem; }
.estab__meta li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

/* Per-establishment accents */
.estab--centerline { --accent: #a65f33; }
.estab--calico     { --accent: #6d6f64; }
.estab--counter    { --accent: #c57c5b; }
.estab--harveys    { --accent: #9c3a2c; }
.estab--hobbled    { --accent: #837d74; }

/* "Opening soon" placeholder */
.estab.is-soon { opacity: .96; }
.estab__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,0) 14px 28px),
    radial-gradient(circle at 50% 40%, #34302b, #211e1b);
}
.soon-badge {
  font: 700 .8rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper); border: 1.5px dashed rgba(197,124,91,.6); padding: .8em 1.2em; border-radius: 999px;
}

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.g { margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--parchment-2); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.g:hover img { transform: scale(1.06); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }

/* ---------- Catering ---------- */
.catering__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.catering__copy p { color: var(--cream-soft); margin: 0 0 1.8rem; max-width: 50ch; }
.catering__figure { margin: 0; }
.catering__figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }

/* ---------- Contact ---------- */
.contact__lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; margin: 0 0 2.6rem; }
.contact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.contact__card { background: var(--parchment-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.contact__card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.contact__card p { margin: 0; color: var(--ink-soft); }
.contact__card a { color: var(--copper-deep); font-weight: 600; text-decoration: none; }
.contact__card a:hover { text-decoration: underline; }
.muted { color: var(--silver); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: var(--cream-soft); padding-block: clamp(2.6rem, 5vw, 3.6rem); border-top: 4px solid var(--copper); }
.site-footer__brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.site-footer__brand img { height: 46px; width: auto; }
.site-footer__brand p { font-family: var(--font-display); font-style: italic; color: var(--cream); margin: 0; font-size: 1.05rem; }
.site-footer__meta { margin: 0 0 .4rem; color: var(--cream-soft); }
.site-footer__fine { margin: 0; font-size: .85rem; color: var(--silver); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; }
  .about__figure img { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .estab-grid { grid-template-columns: repeat(2, 1fr); }
  .catering__inner { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr; }
  .gallery__grid { grid-auto-rows: 170px; }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav__toggle span:not(.visually-hidden) { display: block; height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--parchment); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(31,29,27,.4);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__menu.is-open { max-height: 360px; }
  .nav__menu li { width: 100%; }
  .nav__menu a { display: block; padding: 1rem clamp(1.2rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
  .nav__menu a::after { display: none; }
  .estab-grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .g--wide { grid-column: span 2; }
  .hero__headline br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
