/* ============================================================
   Point Lookout Wines & Spirits — line-art / ink-on-cream theme
   Matches the logo: minimal, airy, monochrome, nautical line work.
   ============================================================ */

:root {
  --paper:   #f5efe3;   /* cream (logo background) */
  --paper-2: #efe7d8;   /* slightly deeper cream for alternating sections */
  --ink:     #21302e;   /* warm near-black (logo ink) */
  --ink-2:   #2b3d3a;
  --ink-soft:#5d6b67;   /* secondary text */
  --sea:     #5f807c;   /* muted accent (whisper of color) */
  --line:    rgba(33, 48, 46, 0.16);
  --line-2:  rgba(33, 48, 46, 0.30);
  --paper-line: rgba(245, 239, 227, 0.22); /* hairlines on ink */

  --display: "Cormorant Garamond", Georgia, serif;
  --script:  "Pinyon Script", "Segoe Script", cursive;
  --body:    "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0; font-family: var(--body); background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.infobar :focus-visible, .foot :focus-visible, .lightbox :focus-visible { outline-color: var(--paper); }

/* faint paper grain */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem; border-radius: 2px;
  font-family: var(--body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.74rem; }
.btn__icon { flex-shrink: 0; }
.btn--gold { background: var(--ink); color: var(--paper); }
.btn--gold:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ig { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ig:hover { background: transparent; color: var(--ink); }

/* ---------- emblem (built by scripts/build_logo.py) ----------
   nav/footer use the ray-cropped icon so the sunburst still reads at ~40px;
   the hero uses the full mark, where the long water line has room. */
.nav__mark { width: 40px; height: auto; flex-shrink: 0; }
.hero__emblem { width: clamp(120px, 16vw, 168px); height: auto; margin: 0 auto 1.6rem; display: block; }
.foot__mark { width: 34px; height: auto; }

/* ---------- 2. nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(245, 239, 227, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.nav__name { display: flex; flex-direction: column; line-height: 1; }
.nav__name { font-family: var(--display); font-weight: 500; font-size: 1.12rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav__name em { font-family: var(--script); font-style: normal; text-transform: none; font-size: 1.05rem; letter-spacing: 0; color: var(--sea); margin-top: 0.05rem; line-height: 1; }
.nav__links { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); }
.nav__links a { text-decoration: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta-group { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.5rem; height: 2.5rem; padding: 0 0.55rem;
  background: none; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer;
}
.nav__toggle-bar { display: block; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
.nav.is-open .nav__toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__toggle-bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- 3. hero (light, emblem-led) ---------- */
.hero {
  position: relative; min-height: clamp(520px, 78svh, 720px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem 3.5rem; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #fbf7ee 0%, var(--paper) 55%),
    var(--paper);
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0; background-image: var(--hero-photo, none);
  background-size: cover; background-position: center; opacity: 0.16; filter: grayscale(0.2);
  /* keep the photo at the edges, fade it under the headline so type stays crisp */
  -webkit-mask-image: radial-gradient(72% 62% at 50% 46%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 55%, black 85%);
          mask-image: radial-gradient(72% 62% at 50% 46%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 55%, black 85%);
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 8vw, 5.2rem); line-height: 1; margin: 0; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__script { font-family: var(--script); font-size: clamp(2rem, 5vw, 3.1rem); color: var(--sea); margin: 0.2rem 0 0; line-height: 1; }
.hero__sub { max-width: 46ch; margin: 1.8rem auto 0; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.65; color: var(--ink-soft); }
.hero__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__scroll {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; text-decoration: none; color: var(--ink-soft);
  animation: bob 2.2s ease-in-out infinite; transition: color 0.3s, border-color 0.3s;
}
.hero__scroll:hover { color: var(--ink); border-color: var(--ink); }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

/* ---------- 4. info bar (ink band — practical info) ---------- */
.infobar {
  /* sticks just below the sticky nav; --nav-h is kept in sync by main.js */
  position: sticky; top: var(--nav-h, 58px); z-index: 90;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.2rem, 4vw, 3.2rem); padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: var(--ink); color: var(--paper);
}
.infobar__item { display: flex; flex-direction: column; line-height: 1.25; }
.infobar__k { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; font-weight: 600; margin-bottom: 0.15rem; }
.infobar__v { font-weight: 600; font-size: 1.05rem; }
.infobar__v a { text-decoration: none; }
.infobar__v .is-open { color: #a7cdaf; } .infobar__v .is-closed { color: #e0a89c; }
.infobar__actions { display: flex; gap: 0.7rem; }
.infobar .btn { padding: 0.6rem 1.2rem; }
.infobar .btn--gold { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.infobar .btn--gold:hover { background: transparent; color: var(--paper); }
.infobar .btn--ghost { border-color: var(--paper-line); color: var(--paper); }
.infobar .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- shared section bits ---------- */
section { padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.section-head { max-width: var(--maxw); margin: 0 auto 3rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sea); margin: 0 0 1rem; font-weight: 600;
}
.section-label::before {
  content: ""; width: 22px; height: 12px; display: inline-block; opacity: 0.9;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='22' y1='11' x2='22' y2='1'/%3E%3Cline x1='22' y1='11' x2='14' y2='3'/%3E%3Cline x1='22' y1='11' x2='30' y2='3'/%3E%3Cline x1='22' y1='11' x2='8' y2='6'/%3E%3Cline x1='22' y1='11' x2='36' y2='6'/%3E%3Cpath d='M6 18c5-3 9-3 16 0s11 3 16 0'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='22' y1='11' x2='22' y2='1'/%3E%3Cline x1='22' y1='11' x2='14' y2='3'/%3E%3Cline x1='22' y1='11' x2='30' y2='3'/%3E%3Cline x1='22' y1='11' x2='8' y2='6'/%3E%3Cline x1='22' y1='11' x2='36' y2='6'/%3E%3Cpath d='M6 18c5-3 9-3 16 0s11 3 16 0'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; margin: 0; letter-spacing: 0.01em; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 1rem 0 0; max-width: 56ch; }
.muted-block { color: var(--ink-soft); font-style: italic; }

/* ---------- 5. products ---------- */
.products { background: var(--paper-2); }
.products__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
.pcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2); border-radius: 3px; background: var(--paper); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(33,48,46,0.4); }
.pcard__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 1.4rem; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
.pcard__ph svg { width: 40px; height: 40px; }
.pcard__cat { position: absolute; top: 0.8rem; left: 0.8rem; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: 0.3rem 0.7rem; border-radius: 2px; font-weight: 600; }
.pcard__body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.5rem; }
.pcard__name { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.5rem; line-height: 1.1; }
.pcard__desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0 0 1.3rem; flex-grow: 1; }
.pcard__avail { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sea); display: flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.pcard__avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }
.products__cta {
  max-width: var(--maxw); margin: 2.6rem auto 0; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.6rem;
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.products__cta p { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.25rem; }

/* ---------- 6. events ---------- */
.events { background: var(--paper); }
.events__layout { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* house card — holds the flyer slot when no flyer is uploaded, so the
   two-column composition never collapses into a floating list */
.events__card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(2.2rem, 4vw, 3.5rem) clamp(1.6rem, 3vw, 2.8rem);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 2px;
  outline: 1px solid var(--line); outline-offset: 6px;
  margin: 6px; /* room for the offset outline */
}
.events__card[hidden] { display: none; }
.events__card-mark { width: clamp(120px, 12vw, 158px); height: auto; }
.events__card-script { font-family: var(--script); font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--sea); margin: 0.6rem 0 1.1rem; line-height: 1; }
.events__card-wave { width: 96px; height: 10px; color: var(--line-2); margin-bottom: 1.4rem; }
.events__card-copy { margin: 0 0 1.8rem; max-width: 34ch; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.65; }
.flyer { margin: 0; }
/* No forced ratio — the flyer shows in full at whatever shape it was uploaded. */
.flyer__frame { position: relative; border-radius: 3px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.flyer__frame img { width: 100%; height: auto; display: block; }
.events__list { display: flex; flex-direction: column; }
.events__loading { color: var(--ink-soft); font-style: italic; padding: 1.5rem 0; }
.events__empty { text-align: center; padding: 3rem 1.5rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-2); }
.events__empty p { color: var(--ink-soft); font-size: 1.1rem; font-family: var(--display); font-style: italic; margin: 0 0 1.6rem; }
/* zero events beside the visible house card: the card already carries the
   Instagram CTA, so the empty box drops its duplicate and centres its line */
#events-card:not([hidden]) ~ .events__list { align-self: stretch; }
#events-card:not([hidden]) ~ .events__list .events__empty { height: 100%; display: grid; place-content: center; }
#events-card:not([hidden]) ~ .events__list .events__empty p { margin: 0; }
#events-card:not([hidden]) ~ .events__list .events__empty .btn { display: none; }
.event { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.4rem; padding: 1.5rem 0; border-top: 1px solid var(--line); opacity: 0; transform: translateY(12px); animation: fadeUp 0.6s var(--ease) forwards; }
.event:first-child { border-top: 0; }
.event__date { text-align: center; }
.event__mon { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sea); font-weight: 600; }
.event__day { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.event__body h3 { margin: 0 0 0.3rem; font-family: var(--display); font-weight: 500; font-size: 1.45rem; }
.event__when { margin: 0 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.event__repeat { color: var(--sea); font-weight: 600; }
.event__desc { margin: 0 0 0.8rem; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.event__call {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sea); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.3s;
}
.event__call:hover { color: var(--ink); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- visit ---------- */
.visit { background: var(--paper-2); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 60vh; padding: 0; }
/* left padding aligns the text with the centered container used by every other
   section, while the map still bleeds to the right edge */
.visit__info { padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem) max(clamp(1.2rem, 5vw, 3rem), calc((100vw - var(--maxw)) / 2)); align-self: center; }
.visit__address { font-style: normal; font-family: var(--display); font-size: 1.5rem; line-height: 1.4; margin: 1.4rem 0; }
.hours { width: 100%; max-width: 360px; border-collapse: collapse; margin-bottom: 1.4rem; }
.hours th, .hours td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--sea); font-variant-numeric: tabular-nums; }
.visit__park { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.visit__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.visit__map { position: relative; min-height: 380px; background: var(--paper); border-left: 1px solid var(--line); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(0.95); }

/* ---------- why ---------- */
.why { background: var(--paper); }
.why__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.why__card { border-top: 1px solid var(--line-2); padding-top: 1.3rem; }
.why__icon { width: 30px; height: 30px; color: var(--sea); margin-bottom: 0.9rem; display: block; }
.why__card h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.6rem; }
.why__card p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; margin: 0; }

/* ---------- gallery (bento, left-aligned to the heading) ---------- */
.gallery { background: var(--paper-2); padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3.75rem, 8vw, 6.5rem); }
.gallery__grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1rem; grid-auto-flow: dense; }
/* count-adaptive layouts so it looks designed at any photo count */
.gallery__grid.is-1 { grid-template-columns: 1fr; }
.gallery__grid.is-1 .gtile { aspect-ratio: 16 / 9; }
.gallery__grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.gallery__grid.is-2 .gtile { aspect-ratio: 4 / 3; }
.gallery__grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.gallery__grid.is-4 { grid-template-columns: repeat(2, 1fr); }
.gallery__grid.is-bento { grid-template-columns: repeat(4, 1fr); }
/* one large image (storefront/wine wall) + a block of smaller ones */
.gallery__grid.is-bento .gtile:first-child { grid-column: span 2; grid-row: span 2; }
.gtile { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); padding: 0; margin: 0; font: inherit; cursor: zoom-in; display: block; width: 100%; }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.gtile::after { content: ""; position: absolute; inset: 0; background: rgba(33,48,46,0); transition: background 0.4s; }
.gtile:hover img { transform: scale(1.06); }
.gtile:hover::after { background: rgba(33,48,46,0.14); }
.gtile__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0.6rem 0.8rem; font-size: 0.8rem; color: var(--paper); text-align: left; background: linear-gradient(to top, rgba(33,48,46,0.85), transparent); }
.gtile__zoom { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 1; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: rgba(245,239,227,0.9); color: var(--ink); opacity: 0; transform: scale(0.85); transition: all 0.3s var(--ease); }
.gtile:hover .gtile__zoom { opacity: 1; transform: scale(1); }
.gallery__cta { text-align: center; margin-top: 3rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: clamp(1.5rem, 5vw, 4rem); background: rgba(15,24,22,0.94); animation: lbFade 0.25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(92vw, 880px); max-height: 80vh; object-fit: contain; border-radius: 3px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7); }
.lightbox__cap { color: var(--paper); font-family: var(--display); font-size: 1.25rem; font-style: italic; margin: 0; text-align: center; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.4rem; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(245,239,227,0.4); background: none; color: var(--paper); font-size: 1.6rem; line-height: 1; border-radius: 50%; cursor: pointer; transition: all 0.25s; }
.lightbox__close:hover { background: rgba(245,239,227,0.15); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 2.8rem; height: 2.8rem; display: grid; place-items: center;
  border: 1px solid rgba(245,239,227,0.4); background: rgba(15,24,22,0.5); color: var(--paper);
  border-radius: 50%; cursor: pointer; transition: background 0.25s;
}
.lightbox__nav:hover { background: rgba(245,239,227,0.15); }
.lightbox__nav--prev { left: clamp(0.8rem, 3vw, 2.2rem); }
.lightbox__nav--next { right: clamp(0.8rem, 3vw, 2.2rem); }

/* ---------- contact (call or visit — no form) ---------- */
.contact { background: var(--paper); }
.contact__inner { max-width: var(--maxw); margin: 0 auto; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0 0 3rem; }
.contact__actions .btn { padding: 0.95rem 1.8rem; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 2.4rem 3rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.contact__item { display: flex; flex-direction: column; gap: 0.3rem; font-size: 1.02rem; }
.contact__item a { color: var(--sea); text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }
.contact__item em { color: var(--sea); font-style: italic; }
.contact__k { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 3.2rem clamp(1.2rem, 5vw, 3rem); text-align: center; }
.foot__top { max-width: var(--maxw); margin: 0 auto 1.6rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot__brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.04em; }
.foot__social { display: flex; gap: 1.2rem; }
.foot__social a { color: rgba(245,239,227,0.7); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.foot__social a:hover { color: var(--paper); }
.foot__legal { color: rgba(245,239,227,0.6); font-size: 0.86rem; line-height: 1.7; margin: 0 0 0.6rem; }
.foot__21 { color: var(--paper); font-size: 0.84rem; margin: 0 0 1rem; letter-spacing: 0.04em; }
.foot__copy { color: rgba(245,239,227,0.4); font-size: 0.8rem; }
.foot__copy a { color: rgba(245,239,227,0.6); }

/* ---------- reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.hero .reveal { animation: fadeUp 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 0.12s + 0.1s); }
.is-visible.reveal, .is-visible .reveal { animation: fadeUp 0.8s var(--ease) forwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  /* links collapse into a dropdown panel under the sticky header */
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0.85rem calc(-1 * clamp(1rem, 4vw, 3rem)) -0.85rem; border-top: 1px solid var(--line);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 0.95rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); font-size: 0.86rem; }
}
@media (max-width: 860px) {
  .events__layout { grid-template-columns: 1fr; }
  /* the house card is decorative — never let it push events below the fold */
  .events__card { display: none; }
  .flyer__frame { max-width: 440px; margin-inline: auto; }
  /* a very tall portrait flyer must not push the event list off-screen */
  .flyer__frame img { max-height: 72vh; width: auto; max-width: 100%; margin-inline: auto; }
  .visit { grid-template-columns: 1fr; }
  .visit__map { min-height: 300px; order: 2; border-left: 0; border-top: 1px solid var(--line); }

  /* the pinned infobar folds into a slim hours-only strip, scrubbed by the
     scroll itself: main.js drives --fold from 0 (full card) to 1 (strip) over
     the first 160px past the pin point. The fold crops the whole card from
     its bottom edge (max-height between the measured --bar-h and --strip-h),
     so rows keep their natural size — nothing is ever shown half-clipped in
     the middle of the card. Rows fade just before the crop line reaches them.
     Layout: hours line on top, address + phone, full-width directions. */
  .infobar {
    --fold: 0;
    display: grid; grid-template-columns: 1fr auto; align-items: start;
    gap: 1.1rem 1.5rem;
    padding-block: calc(0.55rem + 0.65rem * (1 - var(--fold)));
  }
  .infobar.is-folding {
    overflow: hidden;
    max-height: calc(var(--strip-h, 37px) + (var(--bar-h, 420px) - var(--strip-h, 37px)) * (1 - var(--fold)));
  }
  .infobar__item:first-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 0.55rem; }
  .infobar__item:first-child .infobar__k { margin-bottom: 0; }
  /* bottom-most row (directions) fades first, address + phone follow */
  .infobar__actions { opacity: clamp(0, calc(1 - var(--fold) * 2.2), 1); }
  .infobar__item:not(:first-child) { opacity: clamp(0, calc(1.7 - var(--fold) * 2.4), 1); }
  .infobar.is-folded .infobar__item:not(:first-child),
  .infobar.is-folded .infobar__actions { visibility: hidden; pointer-events: none; }
  .infobar__actions { grid-column: 1 / -1; }
  .infobar__dir { width: 100%; padding: 0.95rem 1.2rem; font-size: 0.8rem; }
}
@media (max-width: 680px) {
  /* bento collapses to 2 columns; featured image becomes a full-width banner */
  .gallery__grid.is-bento, .gallery__grid.is-3, .gallery__grid.is-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid.is-bento .gtile:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
  /* products go 2-up with compact cards instead of one long column */
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .pcard__media { padding: 1rem; }
  .pcard__body { padding: 1rem; }
  .pcard__name { font-size: 1.15rem; }
  .pcard__desc { font-size: 0.84rem; margin-bottom: 0.8rem; }
  .pcard__avail { font-size: 0.7rem; }
  .pcard__cat { font-size: 0.58rem; padding: 0.25rem 0.55rem; top: 0.6rem; left: 0.6rem; }
}
@media (max-width: 560px) {
  /* keep the header on one row: compact brand left, Call + menu right */
  .nav { gap: 0.5rem; }
  .nav__mark { width: 32px; height: auto; }
  .nav__brand { gap: 0.5rem; }
  .nav__name { font-size: 0.88rem; letter-spacing: 0.1em; }
  .nav__name em { font-size: 0.85rem; }
  .nav__cta-group { gap: 0.45rem; }
  .nav__cta-group .btn--sm { padding: 0.55rem 0.8rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .nav__toggle { width: 2.3rem; height: 2.3rem; }

  /* infobar layout + fold live in the 860px block; only type shrinks here */
  .infobar__v { font-size: 0.98rem; }
}
