/* ===========================================================================
   THE TAVERN — mockup stylesheet
   Palette + type pulled from the restored 726 Main St storefront:
   slate-blue brick, antique-gold relief, cream signage, San Juan sage.
   =========================================================================== */

:root{
  /* --- colour (sampled from the storefront render) --- */
  --navy:       #3b5266;   /* facade brick blue            */
  --navy-2:     #324657;   /* panels / cards on dark       */
  --navy-deep:  #243440;   /* hero + footer base           */
  --navy-ink:   #1b2832;   /* deepest shadow               */
  --gold:       #c6a36a;   /* the mermaid relief / signage */
  --gold-soft:  #dcc090;
  --cream:      #f2ead8;   /* "THE TAVERN" lettering       */
  --cream-dim:  rgba(242,234,216,.70);
  --sage:       #8c9a8d;   /* mountain backdrop            */
  --parchment:  #f4ecd8;   /* menu card                    */
  --ink:        #2a2118;   /* text on parchment            */

  /* --- SWAP: image hooks. Replace url() with DigitalOcean Spaces URLs --- */
  --img-hero:     url("assets/storefront.jpg");
  --img-heritage: url("assets/storefront.jpg");

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --f-display: "Cinzel", Georgia, serif;
  --f-deco:    "Cinzel Decorative", "Cinzel", serif;
  --f-body:    "Cormorant Garamond", Georgia, serif;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  font-family:var(--f-body);
  font-size:1.18rem;
  line-height:1.7;
  color:var(--cream);
  background:var(--navy-deep);
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.wrap{ width:min(var(--maxw),92vw); margin-inline:auto; }

h1,h2,h3{ font-family:var(--f-display); font-weight:600; line-height:1.15; }

/* --- section heads --- */
.section-head{ text-align:center; margin-bottom:2.6rem; }
.section-head .ornament{ display:block; color:var(--gold);
  font-size:1.1rem; letter-spacing:.4em; margin-bottom:.6rem; }
.section-head h2{
  font-size:clamp(2rem,4.4vw,3rem); color:var(--cream);
  letter-spacing:.04em; text-transform:uppercase;
}
.section-head.light h2{ color:var(--ink); }
.section-head.light .ornament{ color:var(--gold); }
.section-note{ font-style:italic; color:var(--cream-dim);
  margin-top:.5rem; font-size:1.05rem; }
.section-head.light .section-note{ color:#7a6a52; }

/* --- buttons --- */
.btn{
  display:inline-block; font-family:var(--f-display); font-weight:500;
  font-size:.92rem; letter-spacing:.16em; text-transform:uppercase;
  padding:.92em 2.1em; border:1.5px solid var(--gold);
  transition:all .35s var(--ease); cursor:pointer;
}
.btn-primary{ background:var(--gold); color:var(--navy-ink); }
.btn-primary:hover{ background:var(--gold-soft); border-color:var(--gold-soft);
  transform:translateY(-2px); }
.btn-ghost{ color:var(--cream); background:transparent; }
.btn-ghost:hover{ background:rgba(242,234,216,.10); transform:translateY(-2px); }

/* ============================ HEADER ============================ */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:1.05rem clamp(1rem,4vw,2.6rem);
  transition:padding .4s, box-shadow .4s;
}
/* Background + blur live on a pseudo-element, NOT the header itself:
   backdrop-filter on the header would make it a containing block for the
   fixed-positioned .nav drawer, collapsing the open mobile menu on scroll. */
.site-header::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:rgba(27,40,50,0);
  transition:background .4s, backdrop-filter .4s;
}
.site-header.scrolled::before{
  background:rgba(27,40,50,.94);
  backdrop-filter:blur(8px);
}
.site-header.scrolled{
  padding-block:.7rem;
  box-shadow:0 1px 0 rgba(198,163,106,.28);
}
.brand{ display:flex; align-items:center; }
.brand-word{ font-family:var(--f-display); font-weight:600;
  font-size:1.32rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--cream); }

.nav{ display:flex; align-items:center; gap:2rem; }
.nav a{ font-family:var(--f-display); font-weight:600; font-size:.82rem;
  letter-spacing:.16em; text-transform:uppercase; color:var(--cream);
  transition:color .25s; position:relative; }
.nav a:hover{ color:var(--cream); }
.nav a::after{ content:""; position:absolute; left:0; bottom:-7px;
  width:0; height:1px; background:var(--gold); transition:width .3s var(--ease); }
.nav a:hover::after{ width:100%; }
.nav-cta{ color:var(--gold)!important; border:1px solid var(--gold);
  padding:.55em 1.2em; }
.nav-cta::after{ display:none; }
.nav-cta:hover{ background:var(--gold); color:var(--navy-ink)!important; }

.nav-toggle{ display:none; flex-direction:column; gap:5px;
  background:none; border:0; padding:6px; cursor:pointer; }
.nav-toggle span{ width:26px; height:2px; background:var(--cream);
  transition:.3s; }

/* ============================= HERO ============================= */
.hero{
  position:relative; min-height:100svh;
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:var(--img-hero) center 30%/cover no-repeat, var(--navy);
  padding:7rem 1.4rem 5rem;
}
.hero-scrim{ position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(36,52,64,.40), rgba(27,40,50,.86)),
    linear-gradient(180deg, rgba(27,40,50,.55) 0%, rgba(27,40,50,.92) 100%);
}
.hero-inner{ position:relative; max-width:960px; }
.hero-crest{ width:118px; height:118px; color:var(--gold);
  margin:0 auto 1.1rem; filter:drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.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; }
/* Primary rectangular gold logo (~2.6:1) as the hero centerpiece — sized large
   to fill most of the opening screen, capped so it still breathes on desktop. */
.hero-logo{ display:block; width:clamp(320px,82vw,860px);
  height:auto; margin:.4rem auto .2rem;
  filter:drop-shadow(0 8px 30px rgba(0,0,0,.55)); }
.kicker{ font-family:var(--f-display); font-size:.82rem;
  letter-spacing:.42em; text-transform:uppercase; color:var(--gold);
  margin-bottom:1rem; }
.hero-title{
  font-family:var(--f-deco); font-weight:700;
  font-size:clamp(3.4rem,11vw,7.5rem); color:var(--cream);
  letter-spacing:.04em; line-height:1; text-shadow:0 6px 26px rgba(0,0,0,.5);
}
.hero-sub{ font-size:clamp(1.15rem,3vw,1.7rem); color:var(--gold-soft);
  letter-spacing:.22em; text-transform:uppercase; margin-top:1.1rem; }
.hero-place{ font-style:italic; color:var(--cream-dim);
  font-size:1.15rem; margin-top:.7rem; }
.hero-actions{ display:flex; gap:1rem; justify-content:center;
  flex-wrap:wrap; margin-top:2.4rem; }
.scroll-cue{ position:absolute; bottom:1.6rem; left:50%;
  transform:translateX(-50%); color:var(--gold); font-size:1.6rem;
  animation:bob 2.2s var(--ease) infinite; }
@keyframes bob{ 0%,100%{ transform:translate(-50%,0); }
  50%{ transform:translate(-50%,9px); } }

/* ============================ STORY ============================ */
.story{ padding:6.5rem 0; background:var(--navy); }
.story-grid{ display:grid; grid-template-columns:1.5fr 1fr; gap:3.5rem;
  align-items:start; }
.story-lead p{ font-size:1.3rem; }
.story-lead p+p{ margin-top:1.2rem; }
.story-lead strong{ color:var(--gold-soft); font-weight:600; }
/* Heritage timeline (replaces the old facts list) — the building's chapters. */
.aside-head{ font-family:var(--f-display); font-size:.72rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--gold); margin-bottom:1.6rem; }
.timeline{ list-style:none; position:relative; padding-left:1.5rem;
  border-left:2px solid rgba(198,163,106,.45); }
.timeline li{ position:relative; padding-bottom:1.6rem; }
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{ content:""; position:absolute; left:calc(-1.5rem - 6px);
  top:.3rem; width:9px; height:9px; border-radius:50%;
  background:var(--navy); border:2px solid var(--gold); }
.timeline li.t-now::before{ background:var(--gold); }
.t-year{ display:block; font-family:var(--f-display); font-weight:600;
  font-size:.78rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold); margin-bottom:.3rem; }
.t-body{ display:block; font-size:1.08rem; color:var(--cream-dim); line-height:1.5; }
.t-body strong{ color:var(--cream); font-weight:600; }
.t-now .t-body strong{ color:var(--gold-soft); }

/* ============================ MENU ============================ */
.menu{ padding:6.5rem 0;
  background:
    linear-gradient(rgba(244,236,216,.04), rgba(244,236,216,.04)),
    var(--navy-deep); }
.menu .wrap{ background:var(--parchment); color:var(--ink);
  padding:clamp(2rem,5vw,4.5rem); border:1px solid rgba(198,163,106,.5);
  box-shadow:0 30px 60px rgba(0,0,0,.35); }
.menu .section-head h2{ color:var(--ink); }

.menu-tabs{ display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center;
  margin-bottom:2.6rem; }
.tab{ font-family:var(--f-display); font-size:.82rem; letter-spacing:.13em;
  text-transform:uppercase; color:#7a6a52; background:none;
  border:1px solid transparent; padding:.6em 1.2em; cursor:pointer;
  transition:.25s; }
.tab:hover{ color:var(--ink); }
.tab.is-active{ color:var(--ink); border-color:var(--gold);
  background:rgba(198,163,106,.16); }

.panel{ display:none; animation:fade .45s var(--ease); }
.panel.is-active{ display:block; }
@keyframes fade{ from{ opacity:0; transform:translateY(8px);} to{opacity:1;} }

.dishes{ list-style:none; max-width:760px; margin-inline:auto; }
.dishes li{ padding:1rem 0; border-bottom:1px dashed rgba(122,106,82,.35); }
.dishes li:last-child{ border-bottom:0; }
.d-row{ display:flex; align-items:baseline; gap:.6rem; }
.d-name{ font-family:var(--f-display); font-size:1.18rem; font-weight:500;
  color:var(--ink); }
.d-dots{ flex:1; border-bottom:1px dotted rgba(122,106,82,.55);
  transform:translateY(-3px); }
.d-price{ font-family:var(--f-display); color:#8a6a3c; font-weight:600; }
.d-price::before{ content:"$"; opacity:.6; font-size:.85em; }
.d-desc{ font-style:italic; color:#6a5a44; font-size:1.02rem;
  margin-top:.2rem; }

.bar-cols{ display:grid; grid-template-columns:1fr 1fr; gap:3rem;
  max-width:860px; margin-inline:auto; }
.bar-h{ font-size:1.15rem; text-transform:uppercase; letter-spacing:.1em;
  color:var(--ink); border-bottom:2px solid var(--gold);
  padding-bottom:.5rem; margin-bottom:.6rem; }
.bar-note,.menu-fineprint{ font-style:italic; color:#7a6a52;
  font-size:.98rem; }
.bar-note{ margin:.4rem 0 .6rem; }
.menu-fineprint{ text-align:center; margin-top:2.4rem; font-size:.9rem; }

/* Drink / draft sub-sections stacked below the tabbed food menu. */
.menu-divider{ max-width:760px; margin:3.2rem auto 2.4rem;
  border-top:1px solid rgba(198,163,106,.45); }
.menu-subhead{ font-family:var(--f-deco); font-weight:700; text-align:center;
  font-size:1.9rem; color:var(--ink); letter-spacing:.02em; margin-bottom:.4rem; }
.menu-subnote{ text-align:center; font-style:italic; color:#7a6a52;
  font-size:.98rem; margin-bottom:1.6rem; }
.drinks-list .d-desc,.drafts-list .d-desc{ color:#6a5a44; }

/* ========================== THE BUILDING ========================== */
.building{ padding:6.5rem 0; background:var(--navy); }
.building-grid{ display:grid; grid-template-columns:1fr 1fr; gap:3.5rem;
  align-items:center; }
.building-photo img{ width:100%; height:540px; object-fit:cover;
  border:1px solid rgba(198,163,106,.4); }
.building-photo figcaption{ font-style:italic; color:var(--cream-dim);
  font-size:.95rem; text-align:center; margin-top:.7rem; }
.building-text .section-head{ text-align:left; margin-bottom:1.6rem; }
.building-text .section-head .ornament{ text-align:left; }
.building-text p{ font-size:1.22rem; }
.building-text p+p{ margin-top:1rem; }
.building-text em{ color:var(--gold-soft); font-style:normal;
  font-family:var(--f-display); font-size:.92em; letter-spacing:.08em; }
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:.7rem;
  margin-top:1.8rem; }
.gallery img{ height:120px; width:100%; object-fit:cover;
  filter:saturate(.85) brightness(.92); border:1px solid rgba(198,163,106,.3);
  transition:filter .35s,transform .35s; }
.gallery img:hover{ filter:none; transform:scale(1.03); }

/* ===================== THE LEGEND (theme story) ===================== */
.legend-kicker{ font-family:var(--f-display); font-size:.8rem; letter-spacing:.32em;
  text-transform:uppercase; color:var(--gold); margin:.2rem 0 .9rem; }
.legend-photo{ max-width:760px; margin:0 auto 2.8rem; }
.legend-photo img{ width:100%; height:auto; display:block;
  border:1px solid rgba(198,163,106,.4); box-shadow:0 18px 40px rgba(0,0,0,.4); }
.legend-photo figcaption{ font-style:italic; color:var(--cream-dim);
  font-size:.95rem; text-align:center; margin-top:.7rem; }
.legend{ max-width:660px; margin:0 auto; }
.legend p{ font-size:1.3rem; line-height:1.95; color:var(--cream); }
.legend p+p{ margin-top:1.7rem; }
.legend strong{ color:var(--gold-soft); font-weight:600; }
/* storybook drop-cap to open the tale and break up the wall of text */
.legend>p:first-of-type::first-letter{ float:left; font-family:var(--f-deco);
  font-weight:700; color:var(--gold); font-size:4rem; line-height:.78;
  padding:.45rem .55rem 0 0; }
.legend .legend-beat{ text-align:center; font-family:var(--f-deco);
  color:var(--gold-soft); font-size:1.85rem; line-height:1.3; letter-spacing:.02em;
  margin:2.4rem auto; }
.legend-conditions{ counter-reset:cond; list-style:none; padding:0;
  max-width:600px; margin:1.9rem auto; }
.legend-conditions li{ counter-increment:cond; position:relative;
  padding:.85rem 0 .85rem 3.2rem; font-size:1.24rem; line-height:1.55;
  color:var(--cream); border-bottom:1px solid rgba(242,234,216,.14); }
.legend-conditions li:last-child{ border-bottom:0; }
.legend-conditions li::before{ content:counter(cond); position:absolute; left:0;
  top:.8rem; font-family:var(--f-deco); font-weight:700; color:var(--gold);
  font-size:1.5rem; line-height:1; width:2rem; text-align:center; }
.legend-omens{ text-align:center; margin-top:2.8rem;
  border-top:1px solid rgba(198,163,106,.3); padding-top:2.2rem; }
.legend-omens p{ font-family:var(--f-display); text-transform:uppercase;
  letter-spacing:.18em; font-size:1.08rem; color:var(--cream); margin:.8rem 0; }
.legend-omens p:last-child{ color:var(--gold); }

/* ============================ VISIT ============================ */
.visit{ padding:6.5rem 0; background:var(--navy-deep); }
.visit-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:2.5rem;
  align-items:stretch; }
.visit-card{ background:var(--navy-2); padding:clamp(2rem,4vw,3.2rem);
  border:1px solid rgba(198,163,106,.35); }
.visit-card .section-head{ text-align:left; margin-bottom:1.8rem; }
.visit-card .section-head .ornament{ text-align:left; }
.visit-card .section-head.light h2{ color:var(--cream); }
.visit-list{ margin-bottom:2rem; }
.visit-list>div{ padding:.85rem 0; border-bottom:1px solid rgba(242,234,216,.12);
  display:grid; grid-template-columns:120px 1fr; gap:1rem; }
.visit-list>div:last-child{ border-bottom:0; }
.visit-list dt{ font-family:var(--f-display); font-size:.74rem;
  letter-spacing:.16em; text-transform:uppercase; color:var(--gold);
  padding-top:.25rem; }
.visit-list dd{ font-size:1.14rem; }
.visit-list a{ border-bottom:1px solid var(--gold); }
.ph{ font-size:.72rem; font-style:italic; color:var(--cream-dim);
  letter-spacing:0; }
.visit-map{ min-height:420px; border:1px solid rgba(198,163,106,.35); }
.visit-map iframe{ width:100%; height:100%; min-height:420px;
  border:0; filter:grayscale(.4) saturate(.85); }

/* ===================== COMING SOON ===================== */
.soon{ padding:6.5rem 0; background:var(--navy);
  border-top:1px solid rgba(198,163,106,.2); }
.soon-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.soon-card{ background:var(--navy-2); border:1px solid rgba(198,163,106,.3);
  padding:2.2rem 1.8rem; text-align:center; position:relative;
  transition:transform .35s var(--ease),border-color .35s; }
.soon-card:hover{ transform:translateY(-5px); border-color:var(--gold); }
.soon-card h3{ font-size:1.35rem; color:var(--cream); margin-bottom:.6rem;
  letter-spacing:.05em; }
.soon-card p{ color:var(--cream-dim); font-size:1.05rem; }
.soon-tag{ display:inline-block; margin-top:1.2rem;
  font-family:var(--f-display); font-size:.68rem; letter-spacing:.2em;
  text-transform:uppercase; color:var(--gold);
  border:1px solid var(--gold); padding:.35em 1em; }

/* ============================ FOOTER ============================ */
/* ===================== GALLERY CAROUSEL ===================== */
.gallery-sec{ padding:6.5rem 0; background:var(--navy-deep); }
.carousel{ position:relative; max-width:920px; margin:0 auto; overflow:hidden;
  background:var(--navy-ink); border:1px solid rgba(198,163,106,.4);
  box-shadow:0 24px 50px rgba(0,0,0,.45); }
.carousel-track{ display:flex; transition:transform .6s var(--ease); }
.slide{ min-width:100%; margin:0; position:relative; }
.slide img{ display:block; width:100%; height:clamp(320px,52vw,560px);
  object-fit:cover; }
.slide figcaption{ position:absolute; left:0; right:0; bottom:0;
  padding:2.6rem 1.4rem 1.1rem; text-align:center; color:var(--cream);
  font-family:var(--f-display); letter-spacing:.14em; text-transform:uppercase;
  font-size:.85rem; background:linear-gradient(transparent, rgba(20,29,37,.88)); }
.carousel-btn{ position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; font-size:1.7rem; line-height:1; cursor:pointer;
  color:var(--gold); background:rgba(27,40,50,.55);
  border:1px solid rgba(198,163,106,.5); transition:background .25s,color .25s; }
.carousel-btn:hover{ background:var(--gold); color:var(--navy-ink); }
.carousel-btn.prev{ left:1rem; }
.carousel-btn.next{ right:1rem; }
.carousel-dots{ display:flex; gap:.55rem; justify-content:center; margin-top:1.3rem; }
.carousel-dots button{ width:9px; height:9px; padding:0; border-radius:50%;
  border:1px solid var(--gold); background:transparent; cursor:pointer;
  transition:background .25s; }
.carousel-dots button.is-active{ background:var(--gold); }

.site-footer{ background:var(--navy-ink); padding:4.5rem 0 2.6rem;
  text-align:center; border-top:1px solid rgba(198,163,106,.25); }
.footer-logo{ display:block; width:clamp(150px,24vw,210px); height:auto;
  margin:0 auto .9rem; }
.footer-place{ font-style:italic; color:var(--cream-dim); margin-top:.3rem; }
.footer-nav{ display:flex; gap:1.8rem; justify-content:center;
  flex-wrap:wrap; margin:1.8rem 0; }
.footer-nav a{ font-family:var(--f-display); font-size:.78rem;
  letter-spacing:.16em; text-transform:uppercase; color:var(--cream-dim); }
.footer-nav a:hover{ color:var(--gold); }
.footer-fine{ font-size:.86rem; color:rgba(242,234,216,.45);
  max-width:620px; margin:0 auto; font-style:italic; }

/* --- scroll-reveal (only hide when JS is active, so no-JS still shows) --- */
.js .reveal{ opacity:0; transform:translateY(28px);
  transition:opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in{ opacity:1; transform:none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width:880px){
  .nav{ position:fixed; inset:0 0 0 auto; width:min(78vw,320px);
    flex-direction:column; align-items:flex-start; justify-content:center;
    gap:1.8rem; padding:3rem 2.4rem; background:rgba(27,40,50,.98);
    /* overshoot by the scrollbar-gutter width so the drawer fully clears
       the viewport edge (right:0 anchors inside the gutter) */
    transform:translateX(calc(100% + 24px)); transition:transform .4s var(--ease); }
  .nav.open{ transform:none; }
  .nav a{ font-size:1rem; }
  .nav-toggle{ display:flex; z-index:60; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  .story-grid,.building-grid,.visit-grid,.bar-cols{
    grid-template-columns:1fr; gap:2.4rem; }
  .building-photo img{ height:380px; }
  .soon-grid{ grid-template-columns:1fr; }
  .visit-map,.visit-map iframe{ min-height:320px; }
  body{ font-size:1.1rem; }
}
@media (max-width:480px){
  .gallery{ grid-template-columns:1fr 1fr; }
  .visit-list>div{ grid-template-columns:1fr; gap:.2rem; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none!important; scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
}
