/* ============================================================
   BARLEY — Craft & World Beer Bar
   ============================================================ */

:root{
  --cream: #f1ead9;
  --cream-2: #e8dfc9;
  --ink: #141414;
  --gold: #e0a92e;
  --gold-dark: #c98b2e;
  --brown: #3a2a18;
  --max-w: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.9,.32,1);
}

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

html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Mono', 'Courier New', monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3{
  font-family: 'Anton', 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.05;
}

p{ margin: 0 0 1em; }

a{ color: inherit; text-decoration: none; }

img, svg{ display: block; max-width: 100%; }

.section-title{
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: left;
}
.section-title.center{ text-align: center; }
.section-title.left{ text-align: left; }
.section-title.small{ font-size: clamp(1.6rem, 4vw, 2.4rem); }

.script-tag{
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--gold-dark);
  margin: 0.2em 0 0.8em;
}
.script-tag.center{ text-align: center; }

.btn{
  display: inline-block;
  padding: 0.9em 2em;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: transparent;
}
.btn-outline{ color: var(--ink); background: transparent; }
.btn-outline:hover{ background: var(--ink); color: var(--cream); transform: translateY(-3px); box-shadow: 0 8px 0 -4px rgba(0,0,0,0.15); }
.btn-dark{ background: var(--ink); color: var(--cream); }
.btn-dark:hover{ background: var(--gold); border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }
.center-btn{ display: block; width: max-content; margin: 2.5rem auto 0; }

/* ============ LOADER ============ */
.loader-overlay{
  position: fixed; inset: 0; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader-overlay.hidden{ opacity: 0; visibility: hidden; }
.loader-glass{
  width: 40px; height: 56px;
  border: 3px solid var(--ink);
  border-radius: 4px 4px 10px 10px;
  position: relative;
  overflow: hidden;
}
.loader-glass::after{
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 0%;
  background: var(--gold);
  animation: fillGlass 1.1s ease-in-out infinite alternate;
}
@keyframes fillGlass{ from{ height: 10%; } to{ height: 90%; } }

/* ============ HEADER ============ */
.site-header{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(241,234,217,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20,20,20,0.1);
  transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled{
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.header-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.3rem 1.5rem;
  transition: padding 0.35s var(--ease);
}
.site-header.scrolled .header-inner{ padding: 0.7rem 1.5rem; }

.logo{
  display: flex;
  align-items: center;
  justify-self: start;
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
}
.logo img{
  display: block;
  height: 48px;
  width: auto;
  transition: height 0.35s var(--ease);
}
.site-header.scrolled .logo img{ height: 36px; }

.main-nav{ display: flex; align-items: center; gap: 0; }
.nav-link{
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  position: relative;
  padding: 4px 1.3rem;
}
.nav-link::after{
  content: '';
  position: absolute; left: 1.3rem; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-dark);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after{ width: calc(100% - 2.6rem); }
.nav-link:not(:last-child)::before{
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  height: 1.1em;
  width: 1px;
  background: rgba(20,20,20,0.2);
}

.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  justify-self: end;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.hamburger span{
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--cream);
}

.hero-stack{
  position: relative;
  width: 100%;
  height: min(74vh, 640px);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-title{
  /* The glass photo already carries the Barley wordmark, so this big
     static duplicate sat directly behind it — mostly hidden, but its
     edges peeked out either side of the glass and clashed with the
     moving marquee text. Removed; the marquee animation is untouched. */
  display: none;
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: clamp(3.4rem, 12.5vw, 9rem);
  line-height: 0.85;
  color: var(--ink);
  margin: 0;
  animation: heroFadeUp 0.9s var(--ease) both 0.1s;
}

.hero-marquee-stack{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.4rem, 1.5vw, 1.1rem);
  overflow: visible;
  animation: heroFadeIn 1s var(--ease) both 0.35s;
}
.hero-marquee-row{
  position: relative;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0.15em 0;
}
.marquee-track{
  display: flex;
  width: max-content;
  animation: marqueeSlide 22s linear infinite;
}
.marquee-track.marquee-track-reverse{
  animation-name: marqueeSlideReverse;
  animation-duration: 26s;
}
.marquee-text{
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.7rem, 8.2vw, 6rem);
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(20,20,20,0.3);
  white-space: nowrap;
}
/* Top and bottom rows scroll leftward — render them as solid black.
   The middle row scrolls the opposite way and keeps the outlined style. */
.hero-marquee-row:first-child .marquee-text,
.hero-marquee-row:last-child .marquee-text{
  color: var(--ink);
  -webkit-text-stroke: 0;
}
@keyframes marqueeSlide{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes marqueeSlideReverse{
  from{ transform: translateX(-50%); }
  to{ transform: translateX(0); }
}

.hero-tag{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 4;
  animation: heroFadeIn 0.9s var(--ease) both 0.6s;
}
.hero-tag-left{ left: 3%; }
.hero-tag-right{ right: 3%; }

.hero-glass{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  z-index: 3;
  filter: drop-shadow(0 14px 20px rgba(20,15,10,0.18));
  animation: heroGlassIn 1s var(--ease) both 0.25s;
}
.hero-glass svg{ height: 100%; width: auto; display: block; }
.hero-glass img{ display: block; }

@keyframes heroFadeUp{
  from{ opacity: 0; transform: translateY(26px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes heroGlassIn{
  from{ opacity: 0; transform: translate(-50%, 22px); }
  to{ opacity: 1; transform: translate(-50%, 0); }
}
@keyframes heroGlassInStatic{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}

.scroll-cue{
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span{
  display: block;
  width: 22px; height: 22px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}
@keyframes bounce{
  0%,100%{ transform: rotate(45deg) translate(0,0); }
  50%{ transform: rotate(45deg) translate(6px,6px); }
}

/* ============ INTRO CARDS ============ */
.intro{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.intro-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.intro-card{
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
}
.intro-icon{ width: 44px; height: 44px; display: block; margin-bottom: 1rem; }
.intro-icon svg{ display: block; width: 100%; height: 100%; }
.intro-card h2{ font-size: clamp(1.4rem, 3vw, 1.9rem); }
.intro-copy{ font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.3px; }

/* ============ TAP SECTION ============ */
.tap-section{
  background: var(--cream-2);
  padding: 5rem 1.5rem;
  text-align: center;
}
.tap-carousel-wrap{
  position: relative;
  max-width: var(--max-w);
  margin: 2.5rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.tap-carousel-viewport{
  overflow: hidden;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.tap-carousel{
  display: flex;
  gap: 1.2rem;
  padding: 0.5rem 0;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.tap-card{
  flex: 0 0 218px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tap-card:hover{
  transform: translateY(-8px);
  box-shadow: 6px 6px 0 var(--gold);
}
.tap-glass{ width: 70px; height: 100px; margin: 0 auto 1rem; flex-shrink: 0; }
.tap-type{
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.tap-card h3{ font-size: 0.92rem; line-height: 1.25; margin-bottom: 0.35rem; min-height: 2.3em; }
.tap-card p{ font-size: 0.72rem; margin: 0 0 0.6rem; text-transform: uppercase; opacity: 0.75; }
.tap-abv{
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--cream-2);
  border: 1px solid rgba(20,20,20,0.2);
  border-radius: 999px;
  padding: 0.25em 0.8em;
  margin-top: auto;
}

.carousel-btn{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-btn:hover{ background: var(--ink); color: var(--cream); transform: scale(1.08); }

.tap-note{ font-size: 0.8rem; opacity: 0.7; margin-top: 1.5rem; }
.tap-section .btn{ margin-top: 1rem; }

/* ============ ABOUT ============ */
.about{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-media{ border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); }
.about-text{ font-size: 0.9rem; }

/* ============ ABOUT PAGE — FEATURE ROWS ============ */
.feature-list{
  background: var(--cream-2);
}
.feature-list .about{
  padding: 3.5rem 1.5rem;
}
.feature-list .about + .about{
  border-top: 1px solid rgba(20,20,20,0.12);
}
.about.about-alt .about-media{ order: 2; }
.about.about-alt .about-copy{ order: 1; }
.feature-eyebrow{
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ============ COMMUNITY ============ */
.community{
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 1.5rem;
  text-align: center;
}
.community .script-tag{ color: var(--gold); }
.community-grid{
  max-width: var(--max-w);
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.community-card{
  border: 2px solid rgba(241,234,217,0.25);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.community-card:hover{ border-color: var(--gold); transform: translateY(-6px); }
.community-icon{ display: block; width: 40px; height: 40px; margin: 0 auto 1rem; }
.community-icon svg{ display: block; width: 100%; height: 100%; }
.community-icon svg circle,
.community-icon svg path{ stroke: var(--cream); }
.community-card h3{ font-size: 1.1rem; margin-bottom: 0.6rem; }
.community-card p{ font-size: 0.82rem; opacity: 0.85; margin: 0; }

/* ============ VISIT ============ */
.visit{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}
.visit-grid{
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.visit-icon{ display: block; width: 32px; height: 32px; margin: 0 auto 1rem; }
.visit-icon svg{ display: block; width: 100%; height: 100%; }
.visit-item h3{ font-size: 1.1rem; margin-bottom: 0.6rem; }
.visit-item p{ font-size: 0.85rem; }
.hours-list{ display: flex; flex-direction: column; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto; font-size: 0.82rem; text-align: left; }
.hours-list span{ display: grid; grid-template-columns: 2.6em 1fr; column-gap: 1.4em; }
.hours-list em{ font-style: normal; font-weight: 700; }

/* ============ FOLLOW / INSTAGRAM ============ */
.follow{
  background: var(--cream-2);
  padding: 5rem 1.5rem;
  text-align: center;
}
.insta-embed-grid{
  max-width: 700px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.insta-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  transition: transform 0.35s var(--ease);
}
.insta-embed:hover{ transform: scale(1.03); }
.insta-embed a{
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.insta-embed img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insta-caption{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--cream);
  background: rgba(20,20,20,0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.insta-embed a:hover .insta-caption,
.insta-embed a:focus-visible .insta-caption{ opacity: 1; }

/* ============ PAGE HERO (sub-pages, e.g. Contact) ============ */
.page-hero{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 160px 1.5rem 4rem;
  text-align: center;
}
.page-title{
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin: 0.25em 0 0.5em;
}
.page-hero-copy{
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ============ CONTACT PAGE ============ */
.contact-main{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto auto;
  gap: 3rem;
  align-items: stretch;
}
.contact-form-card{
  grid-column: 1;
  grid-row: 1;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.contact-form-card h2{ font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-form{
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.contact-form label{
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--brown);
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 0.85em 1em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  resize: vertical;
}
.contact-form textarea{ min-height: 140px; }
.contact-form input:focus,
.contact-form textarea:focus{ outline: 2px solid var(--gold-dark); }
.contact-form .btn{ justify-self: start; border: none; cursor: pointer; }
.contact-form-message{
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--gold-dark);
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact-form-message.show{ opacity: 1; transform: translateY(0); }
.contact-form-message.error{ color: #b3452c; }

.contact-info-card{
  grid-column: 2;
  grid-row: 1;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info-list{
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.contact-info-item{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-icon{ width: 30px; height: 30px; flex-shrink: 0; }
.contact-info-icon svg{ display: block; width: 100%; height: 100%; }
.contact-info-item h3{ font-size: 0.95rem; margin-bottom: 0.3rem; }
.contact-info-item p{ font-size: 0.85rem; margin: 0; }
.contact-info-item a{ transition: color 0.25s var(--ease); }
.contact-info-item a:hover{ color: var(--gold-dark); }

.contact-map{
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 320px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-map iframe{ width: 100%; height: 100%; border: 0; display: block; }

.contact-directions-btn{
  grid-column: 1 / -1;
  grid-row: 3;
}

/* ============ NEWSLETTER ============ */
.newsletter{
  padding: 4rem 1.5rem;
  border-top: 1px solid rgba(20,20,20,0.1);
}
.newsletter-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.newsletter-form{
  display: flex;
  gap: 0.8rem;
}
.newsletter-form input{
  flex: 1;
  padding: 0.9em 1em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
}
.newsletter-form input:focus{ outline: 2px solid var(--gold-dark); }
.form-message{
  grid-column: 1 / -1;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--gold-dark);
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.form-message.show{ opacity: 1; transform: translateY(0); }

/* ============ FOOTER ============ */
.site-footer{
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 1.5rem 1.5rem;
}
.footer-grid{
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(241,234,217,0.15);
}
.footer-logo{
  display: block;
  height: 38px;
  width: auto;
  margin-bottom: 0.8rem;
}
.footer-brand p{ font-size: 0.8rem; opacity: 0.75; margin-bottom: 0.3rem; }
.footer-phone{ color: var(--gold); font-weight: 700; }
.footer-col h4{
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--gold);
}
.footer-col a{
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-col a:hover{ opacity: 1; transform: translateX(3px); color: var(--gold); }
.social-icons{ display: flex; gap: 1rem; }
.social-icons a{
  width: 36px; height: 36px;
  border: 1px solid rgba(241,234,217,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social-icons a svg{ width: 18px; height: 18px; }
.social-icons a:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); }

.footer-bottom{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-direction: column;
  text-align: center;
}
.footer-bottom-logo{
  display: block;
  height: 32px;
  width: auto;
}
.footer-badge{
  width: 70px; height: 70px;
  border: 1px solid rgba(241,234,217,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: 'Anton', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1px;
}
.footer-bottom p{ font-size: 0.75rem; opacity: 0.6; margin: 0; }

/* ============ BACK TO TOP ============ */
.back-to-top{
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  z-index: 400;
}
.back-to-top.show{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--gold); color: var(--ink); }

/* ============ SCROLL REVEAL ============ */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px){
  .about{ grid-template-columns: 1fr; }
  .about-media{ order: -1; }
  /* .about-alt (used to alternate image/text sides on the About page's
     feature rows) sets a higher-specificity order on .about-media that
     otherwise beats the rule above once stacked to one column — leaving
     the Pub Quiz row showing text-then-image instead of image-then-text
     like its neighbours. Force it back in line here, tablet width down. */
  .about.about-alt .about-media{ order: -1; }
  .about.about-alt .about-copy{ order: 0; }
  .visit-grid{ grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .newsletter-inner{ grid-template-columns: 1fr; text-align: center; }
  .newsletter-form{ justify-content: center; }

  .contact-main{ grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form-card,
  .contact-info-card,
  .contact-map,
  .contact-directions-btn{ grid-column: 1; grid-row: auto; }
}

@media (max-width: 860px){
  .header-inner{ display: flex; justify-content: space-between; }

  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(75vw, 320px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-link{ font-size: 1.1rem; padding: 4px 0; }
  .nav-link::after{ left: 0; }
  .nav-link:hover::after{ width: 100%; }
  .nav-link:not(:last-child)::before{ display: none; }
  .hamburger{ display: flex; justify-self: auto; }

  .intro-grid{ grid-template-columns: 1fr; }
  .community-grid{ grid-template-columns: 1fr; }
  .visit-grid{ grid-template-columns: 1fr; }

  /* Below the hamburger-nav breakpoint, the hero switches to a compact,
     content-sized layout instead of forcing min-height:100vh — at these
     narrower widths the full-viewport-height hero left large empty gaps
     above and below the glass. The looping marquee is untouched here;
     it keeps animating, just within a shorter hero-stack. */
  .hero{ padding-top: 70px; min-height: auto; padding-bottom: 3.5rem; }
  .hero-stack{
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 2rem 0 1.6rem;
  }
  .hero-glass{
    position: relative;
    order: 1;
    inset: auto;
    left: auto;
    top: auto;
    height: clamp(220px, 40vh, 380px);
    width: auto;
    margin: 0 auto;
    animation-name: heroGlassInStatic;
  }
  .hero-glass img{ height: 100%; width: auto; }
  .hero-tag{
    position: relative;
    order: 2;
    left: auto; right: auto; top: auto; bottom: auto;
    transform: none;
    width: 92%;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 1.3px;
  }
  .hero-tag-left{ margin-top: 0.4rem; }
  .hero-tag-right{ margin-top: 0.15rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 560px){
  .header-inner{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 1rem 1.2rem;
  }
  .logo{ grid-column: 2; justify-self: center; }
  .hamburger{ grid-column: 3; justify-self: end; }

  /* On real phones, fill the screen and centre the content vertically —
     otherwise it reads as stuck to the top with a dead zone below (the
     start of the next section, not yet "revealed" by the scroll-in
     animation, sitting there invisible). Filling one screen and centring
     means nothing from the next section peeks in until you actually
     scroll. */
  .hero{
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 0;
  }
  .hero-stack{
    justify-content: center;
    padding: 0 0 1.6rem;
  }
  .hero-glass{ height: clamp(200px, 42vh, 320px); }
  .hero-tag{ font-size: 0.6rem; letter-spacing: 1px; }

  .intro, .tap-section, .about, .community, .visit, .follow, .newsletter{ padding: 3.5rem 1.2rem; }

  .tap-card{ flex-basis: 160px; }

  .newsletter-form{ flex-direction: column; }
  .newsletter-form .btn{ width: 100%; }

  .footer-grid{ grid-template-columns: 1fr; text-align: center; }
  .social-icons{ justify-content: center; }
  .footer-col a:hover{ transform: none; }

  .page-hero{ padding: 120px 1.2rem 3rem; }
  .contact-main{ padding: 1.5rem 1.2rem 3.5rem; gap: 2rem; }
  .contact-form-card{ padding: 1.6rem 1.3rem; }
  .contact-info-card{ padding: 1.6rem 1.3rem; }
  .contact-form .btn{ width: 100%; justify-self: stretch; text-align: center; }
  .contact-map{ height: 260px; }
}
