/* =========================================================
   Dunham Massey Brewing Company
   Clean consolidated stylesheet
   ========================================================= */

:root {
  --navy: #0f2033;
  --dark-navy: #06191d;
  --footer-navy: #091521;
  --deep-navy: linear-gradient(180deg, #16263b 0%, #101c2b 100%);
  --brown: #2b1a0f;
  --cream: #f4f0e6;
  --warm-cream: #f4e3bd;
  --muted-cream: #d7bd8a;
  --copper: #b87333;
  --shop-gold: #b87935;
  --red: #b63224;
  --green: #526b43;
  --ink: #1b1b1b;
  --muted: #6d665e;
  --white: #ffffff;
  --radius: 22px;
  --card-radius: 8px;
  --carousel-gap: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.05;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

h2 { font-size: clamp(2.1rem, 4vw, 4rem); }
h3 { font-size: 1.5rem; }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  background: rgba(244, 240, 230, 0.96);
  border-bottom: 1px solid rgba(15, 32, 51, 0.12);
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  transition: transform 0.3s ease;
}

.logo:hover { transform: translateY(-2px); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.logo-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.logo:hover .logo-mark {
  background: var(--copper);
  color: var(--white);
}

.logo strong {
	font-size: 1.25rem;
}
.logo small {
  display: block;
  line-height: 1.1;
  font-size: 0.95rem;
}

.logo small { color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width 0.3s ease;
}

.site-nav a:hover { color: var(--copper); }
.site-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 16px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--copper);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 1.7rem;
  cursor: pointer;
}

/* =========================================================
   Shared elements and sections
   ========================================================= */

#our-beers,
#brewery,
#trade,
#shop,
#contact {
  scroll-margin-top: 105px;
}

.section { padding: 90px 6vw; }

.section-heading {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6rem);
  text-transform: uppercase;
}

.section-heading p {
  color: var(--muted-cream);
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: Arial, sans-serif;
  color: var(--copper);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.button.primary {
  background: var(--copper);
  color: var(--white);
}

.button.primary:hover { background: #c7833e; }

.button.secondary {
  color: var(--cream);
  border: 1px solid currentColor;
}

.button.secondary:hover {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

/* =========================================================
   Hero / Intro / Content sections
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 58vh, 620px);
  padding: clamp(48px, 7vh, 78px) 6vw;
  overflow: hidden;
  color: var(--cream);
  background: #06191d;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/hero-brewery-panoramic-2.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 67%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(6, 25, 29, 0.99) 0%,
      rgba(6, 25, 29, 0.95) 27%,
      rgba(15, 32, 51, 0.76) 43%,
      rgba(15, 32, 51, 0.22) 67%,
      rgba(6, 25, 29, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  text-wrap: balance;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 22px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--white);
}

.intro p:last-child {
  color: var(--muted);
  font-size: 1.2rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 54px;
  background: var(--white);
}

.image-panel {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.image-panel:hover {
  transform: scale(1.015);
  box-shadow: 0 24px 50px rgba(15, 32, 51, 0.16);
}

.section-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.tick-list {
  padding-left: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 28px;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}


.trade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: var(--green);
  color: var(--cream);
}

.trade .eyebrow {
  color: var(--navy);
}

.trade div { max-width: 740px; }

#brewery > div > p:not(.eyebrow),
.trade > div > p:not(.eyebrow),
.shop-header p {
  font-size: 1.15rem;
}

/* =========================================================
   Filters / carousel shared behaviour
   ========================================================= */

.beers-section,
.shop-section {
  padding: 80px 5%;
  background: var(--footer-navy);
  color: var(--warm-cream);
}

.shop-header {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.shop-subtitle {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 1rem 0;
	color: var(--shop-gold);
}

.shop-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.shop-header .button {
    margin-top: 10px;
}

.beer-filters,
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
}

.beer-filter,
.shop-filter {
  min-width: 140px;
  padding: 12px 24px;
  border: 1px solid var(--shop-gold);
  border-radius: 5px;
  background: transparent;
  color: var(--warm-cream);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.beer-filter:hover,
.beer-filter.active,
.shop-filter:hover,
.shop-filter.active {
  background: var(--shop-gold);
  color: var(--dark-navy);
}

.beer-filter[data-filter="core"]:hover,
.beer-filter[data-filter="core"].active {
  background: #a43737;
  border-color: #a43737;
  color: var(--white);
}

.beer-filter[data-filter="lymm"]:hover,
.beer-filter[data-filter="lymm"].active {
  background: #3f5f35;
  border-color: #3f5f35;
  color: var(--white);
}

.beer-filter[data-filter="realcraft"]:hover,
.beer-filter[data-filter="realcraft"].active {
  background: #c2b84a;
  border-color: #c2b84a;
  color: var(--dark-navy);
}


.beer-search-wrap {
  display: grid;
  width: min(100%, 520px);
  margin: 0px auto 36px;
  gap: 8px;
}

.beer-search-label {
  color: var(--muted-cream);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.beer-search-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(184, 121, 53, 0.78);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--warm-cream);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.beer-search-input::placeholder {
  color: rgba(244, 227, 189, 0.62);
}

.beer-search-input:focus {
  border-color: var(--shop-gold);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(184, 121, 53, 0.2);
}

.beer-style-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 45px;
}

.beer-style-filter {
  min-width: 94px;
  padding: 8px 15px;
  border: 1px solid rgba(184, 121, 53, 0.65);
  border-radius: 999px;
  background: transparent;
  color: var(--warm-cream);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.beer-style-filter:hover,
.beer-style-filter.active {
  background: var(--shop-gold);
  border-color: var(--shop-gold);
  color: var(--dark-navy);
}

.beer-filter-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px auto 38px;
  text-align: center;
}

.beer-results-count {
  margin: 0;
  color: var(--muted-cream);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beer-clear-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 2px solid var(--shop-gold);
  border-radius: 5px;
  background: var(--shop-gold);
  color: var(--dark-navy);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.beer-clear-filters-main {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.beer-clear-filters:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.beer-clear-filters.is-disabled,
.beer-clear-filters:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.beer-carousel-container,
.shop-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
}

.beer-carousel-window,
.shop-carousel-window {
  width: 100%;
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: 18px;
}

.beer-carousel-track,
.shop-carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 0.35s ease;
}

.beer-carousel-track.centered,
.shop-carousel-track.is-centred { justify-content: center; }

.beer-nav,
.shop-arrow {
  width: 50px;
  height: 50px;
  border: 2px solid var(--shop-gold);
  border-radius: 50%;
  background: var(--brown);
  color: var(--warm-cream);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.beer-nav:hover,
.shop-arrow:hover {
  background: var(--shop-gold);
  color: var(--dark-navy);
}

.beer-nav:disabled,
.shop-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =========================================================
   Beer cards
   ========================================================= */

.beer-card[data-category="core"] { --range-accent: #a43737; --range-text: #ffffff; }
.beer-card[data-category="lymm"] { --range-accent: #3f5f35; --range-text: #ffffff; }
.beer-card[data-category="realcraft"] { --range-accent: #c2b84a; --range-text: var(--dark-navy); }

.beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5);
  height: 520px;
  min-width: 320px;
  overflow: visible;
  background: transparent;
  border: 0;
  cursor: pointer;
  perspective: 1200px;
  transition: transform 0.32s ease;
}

.beer-card:hover { transform: translateY(-9px); }

.beer-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.beer-face {
  height: 100%;
  overflow: hidden;
  background: var(--deep-navy);
  border: 2px solid var(--range-accent, var(--shop-gold));
  border-radius: var(--card-radius);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--range-accent, var(--shop-gold)) 22%, transparent);
}

@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .beer-face { box-shadow: 0 15px 30px rgba(184, 121, 53, 0.24); }
}

.beer-card:hover .beer-face {
  box-shadow: 0 24px 48px color-mix(in srgb, var(--range-accent, var(--shop-gold)) 34%, transparent);
}

.beer-back { display: none; }

.beer-front {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.beer-front::before { display: none; content: none; }

.beer-range-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  min-height: 29px;
  margin: 16px auto 16px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: var(--range-accent, var(--shop-gold));
  color: var(--range-text, var(--white));
  font-family: Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.beer-front-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 0 18px 18px;
  text-align: center;
}

.beer-front-layout > .pumpclip-image,
.beer-front .pumpclip-image {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 92%;
  height: 240px;
  max-height: 240px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.32s ease;
}

.beer-card:hover .pumpclip-image { transform: scale(1.03); }

.beer-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  text-align: center;
  overflow: visible;
}

.beer-info h3 {
  display: block;
  max-width: 100%;
  margin: 0 0 5px;
  padding-top: 8px;
  padding-bottom: 4px;
  color: var(--warm-cream);
  font-size: 1.48rem;
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.beer-info p {
  margin: 0 0 6px;
  color: var(--muted-cream);
  font-size: 1.0rem;
  line-height: 1.2;
  font-weight: 570;
  text-transform: uppercase;
  text-align: center;
}

.beer-info strong {
  display: block;
  margin: 0 0 8px;
  color: var(--range-accent, #c48a3a);
  font-size: 1.2rem;
  line-height: 1;
}

.beer-info strong::before {
  content: "ABV ";
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 0.08em;
}

.beer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 5px;
  margin: 2px 0 2px;
  overflow: visible;
}

.beer-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 7px 13px;
  border: 1px solid rgba(184, 121, 53, 0.62);
  border-radius: 999px;
  color: var(--warm-cream);
  font-family: Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.beer-link,
.beer-back-btn,
.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 2px solid var(--shop-gold);
  border-radius: 5px;
  background: var(--shop-gold);
  color: var(--dark-navy);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.beer-link {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 9px 10px;
  background: var(--range-accent, var(--shop-gold));
  border-color: var(--range-accent, var(--shop-gold));
  color: var(--range-text, var(--white));
  font-size: 0.78rem;
  line-height: 1.1;
}

.beer-link:hover,
.beer-back-btn:hover,
.shop-button:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.beer-no-results {
  display: flex;
  width: min(100%, 560px);
  min-height: 540px;
  margin: 0 auto;
  padding: 34px 28px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--deep-navy);
  border: 2px solid var(--shop-gold);
  border-radius: var(--card-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.beer-no-results[hidden] { display: none; }

.beer-no-results h3 {
  margin-bottom: 10px;
  color: var(--warm-cream);
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-transform: uppercase;
}

.beer-no-results p {
  max-width: 420px;
  margin: 0 auto 22px;
  color: var(--muted-cream);
  font-size: 0.98rem;
}

/* =========================================================
   Beer details modal
   ========================================================= */

.beer-modal[hidden] {
  display: none;
}

.beer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.beer-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 18, 22, 0.82);
  cursor: pointer;
}

.beer-modal[data-category="core"] {
  --modal-range-accent: #a43737;
  --modal-range-text: #ffffff;
}

.beer-modal[data-category="lymm"] {
  --modal-range-accent: #3f5f35;
  --modal-range-text: #ffffff;
}

.beer-modal[data-category="realcraft"] {
  --modal-range-accent: #c2b84a;
  --modal-range-text: var(--dark-navy);
}

.beer-modal-panel {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(135deg, #172b45, #0d2034);
  border: 2px solid var(--modal-range-accent, var(--shop-gold));
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
}

.beer-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--modal-range-accent, var(--shop-gold));
  border-radius: 50%;
  background: #342517;
  color: var(--warm-cream);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.beer-modal-close:hover {
  transform: rotate(90deg);
  background: var(--modal-range-accent, var(--shop-gold));
  color: var(--modal-range-text, var(--dark-navy));
}

.beer-modal-body {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 30px;
  padding: 20px 20px 10px;
}

.beer-modal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.beer-modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
}

.beer-modal-content {
  min-width: 0;
  align-self: center;
  text-align: center;
}

.beer-modal-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 4px;
  background: var(--modal-range-accent, var(--shop-gold));
  color: var(--modal-range-text, var(--dark-navy));
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.beer-modal h3 {
  margin: 0 0 18px;
  color: var(--warm-cream);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.beer-modal-meta {
  margin: 0 0 22px;
  color: var(--modal-range-accent, var(--shop-gold));
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.beer-modal-description {
  margin: 0 0 20px;
  color: var(--muted-cream);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 20px;
}

.beer-modal-details {
  margin: 0;
  padding: 0;
  color: var(--warm-cream);
  list-style: none;
}

.beer-modal-details li {
  padding: 10px 4px;
  border-bottom: 1px solid
    color-mix(
      in srgb,
      var(--modal-range-accent, var(--shop-gold)) 35%,
      transparent
    );
  text-align: center;
}

.beer-modal-details li:last-child {
  border-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   Shop
   ========================================================= */

.shop-header {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

.shop-header h2 {
  margin-bottom: 15px;
  color: var(--warm-cream);
  font-size: clamp(3rem, 7vw, 6rem);
  text-transform: uppercase;
}

.shop-subtitle {
  margin-bottom: 10px;
  color: var(--warm-cream);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-intro {
  color: var(--muted-cream);
  font-size: 1rem;
}

.shop-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5);
  overflow: hidden;
  background: var(--deep-navy);
  border: 2px solid var(--shop-gold);
  border-radius: var(--card-radius);
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.shop-card-image {
  padding: 20px;
  background: #1c1209;
}

.shop-card-image img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.shop-card-content { padding: 22px; }

.shop-card h3 {
  margin-bottom: 8px;
  color: var(--warm-cream);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.shop-style {
  margin-bottom: 10px;
  color: #c48a3a;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.shop-meta {
  margin-bottom: 18px;
  color: var(--warm-cream);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.shop-price {
  margin-bottom: 18px;
  color: var(--warm-cream);
  font-size: 1.5rem;
  font-weight: 800;
}

.shop-button {
  width: 100%;
  min-height: 48px;
  text-decoration: none;
}

.shop-button .button-hover { display: none; }
.shop-button:hover .button-default { display: none; }
.shop-button:hover .button-hover { display: inline; }

.shop-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  overflow: hidden;
  background: var(--brown);
  border: 2px solid var(--shop-gold);
  border-radius: var(--card-radius);
}

.shop-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid rgba(184, 121, 53, 0.35);
}

.shop-info-item:last-child { border-right: none; }

.shop-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  color: var(--shop-gold);
  border: 2px solid var(--shop-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(184, 121, 53, 0.15);
  font-size: 1.5rem;
  font-weight: 900;
}

.shop-info-age { font-size: 1.1rem; }

.shop-info-item h4 {
  margin: 0 0 5px;
  color: var(--warm-cream);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.shop-info-item p {
  margin: 0;
  color: var(--muted-cream);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1.4fr;
  gap: 30px;
  padding: 60px 6vw;
  background: linear-gradient(180deg, #f8f5ee 0%, #f1ebe0 100%);
  color: var(--navy);
  border-top: 3px solid var(--copper);
}

.site-footer p,
.site-footer span,
.site-footer li,
.site-footer .hours { color: var(--muted); }

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer strong,
.site-footer a { color: var(--navy); }

.site-footer a:hover { color: var(--copper); }

.hours {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 18px;
  margin-top: 10px;
}

.hours span:nth-child(even) { text-align: right; }

.footer-brand {
    max-width: none;
}

.footer-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

.footer-divider {
    width: 140px;
    height: 1px;
    margin: 25px 0 20px;
    background: rgba(15, 32, 51, 0.25);
}

.footer-tagline {
    margin: 0;
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-tagline span {
    margin: 0 8px;
    color: var(--shop-gold);
}

.footer-tagline strong {
    color: var(--shop-gold);
    font-weight: 700;
}

.site-footer {
    grid-template-columns: 2.4fr 1fr 1fr;
}

.footer-tagline {
    white-space: nowrap;
    letter-spacing: 0.06em;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.footer-socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 32, 51, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    border-color: var(--copper);
    background: rgba(255, 255, 255, 0.7);
}

.footer-socials img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .site-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 42px;
        text-align: center;
    }

    .site-footer > div {
        width: 100%;
        text-align: center;
    }

    .footer-brand {
        width: 100%;
        max-width: none;
    }

    .footer-logo {
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0 auto 18px;
    }

    .footer-divider {
        margin: 25px auto 20px;
    }

    .footer-tagline {
        white-space: nowrap;
        font-size: clamp(0.55rem, 2.4vw, 0.82rem);
        letter-spacing: 0.03em;
    }

    .footer-tagline span {
        margin: 0 4px;
    }

    .hours {
        width: max-content;
        max-width: 100%;
        margin: 10px auto 0;
        grid-template-columns: max-content max-content;
        justify-content: center;
        text-align: left;
    }
	
	.footer-socials {
    justify-content: center;
		
	}
}
	
/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .beer-card,
  .shop-card { flex-basis: calc((100% - (var(--carousel-gap) * 3)) / 4); }

  .beer-card { height: 520px; }

  .beer-front-layout > .pumpclip-image,
  .beer-front .pumpclip-image {
    height: 230px;
    max-height: 230px;
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 6vw;
    right: 6vw;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: var(--cream);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
  }

  .site-nav.is-open { display: flex; }

  .intro,
  .split,
  .site-footer { grid-template-columns: 1fr; }

  .beer-card,
  .shop-card { flex-basis: calc((100% - (var(--carousel-gap) * 2)) / 3); }

  .beer-card { height: 520px; }

  .beer-front-layout > .pumpclip-image,
  .beer-front .pumpclip-image {
    height: 240px;
    max-height: 240px;
  }

  .shop-info-bar { grid-template-columns: repeat(2, 1fr); }
  .shop-info-item:nth-child(2) { border-right: none; }

  .trade {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 60vh;
    padding-top: 54px;
    padding-bottom: 54px;
    background-position: center center;
  }

  .hero h1 { font-size: clamp(2.35rem, 7vw, 4.2rem); }
  .hero-text { font-size: 1rem; }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 52px 6vw 56px;
    background: #06191d;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    background:
      radial-gradient(
        circle at 85% 20%,
        rgba(184, 115, 51, 0.13),
        transparent 42%
      ),
      linear-gradient(
        145deg,
        rgba(15, 32, 51, 0.35),
        rgba(6, 25, 29, 0.98)
      );
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 600px;
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .hero-text {
    max-width: 540px;
    margin: 17px 0 22px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .beer-search-wrap {
    margin-top: -22px;
    margin-bottom: 30px;
  }

  .beer-search-input {
    min-height: 44px;
    font-size: 0.84rem;
  }

  .beer-filter-summary {
    flex-direction: column;
    gap: 10px;
    margin-top: -20px;
  }

   .beer-modal {
    padding: 12px;
  }

  .beer-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  .beer-modal-body {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 64px 22px 28px;
  }

  .beer-modal-image {
    max-height: 280px;
  }

  .beer-modal-content {
    text-align: center;
  }

  .beer-modal h3 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .beer-modal-description {
    font-size: 0.96rem;
  }
}

@media (max-width: 650px) {
  .beers-section,
  .shop-section { padding: 60px 20px; }

  .beer-filter,
  .shop-filter { width: 100%; }

  .beer-style-filters { margin-top: -25px; }

  .beer-style-filter {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .beer-carousel-container,
  .shop-carousel-wrapper { gap: 10px; }

  .beer-card,
  .shop-card { flex-basis: 100%; }

  .beer-card {
    height: 520px;
  }

  .beer-front-layout {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 18px 18px;
  }

  .beer-info {
    flex: 0 0 auto;
  }

  .beer-link {
    margin-top: 10px;
  }

  .beer-front-layout > .pumpclip-image,
  .beer-front .pumpclip-image {
    height: 280px;
    max-height: 280px;
  }

  .beer-info h3 { font-size: 1.45rem; }
  .beer-info p { font-size: 0.84rem; }

  .beer-nav,
  .shop-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .shop-info-bar { grid-template-columns: 1fr; }

  .shop-info-item {
    border-right: none;
    border-bottom: 1px solid rgba(184, 121, 53, 0.35);
  }

  .shop-info-item:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .button-row { flex-direction: column; }
}



/* =========================================================
   Beer carousel responsive card-count fix
   - Drops visible card count earlier so pump clips keep a stable size.
   - Keeps the shop carousel on its original breakpoints.
   ========================================================= */
@media (max-width: 1750px) {
  .beer-card {
    flex-basis: calc((100% - (var(--carousel-gap) * 3)) / 4);
  }
}

@media (max-width: 1400px) {
  .beer-card {
    flex-basis: calc((100% - (var(--carousel-gap) * 2)) / 3);
  }
}

@media (max-width: 1050px) {
  .beer-card {
    flex-basis: calc((100% - var(--carousel-gap)) / 2);
  }
}

@media (max-width: 760px) {
  .beer-card {
    flex-basis: 100%;
  }
}

/* Keep pump clips visually consistent across breakpoints. */
.beer-front-layout > .pumpclip-image,
.beer-front .pumpclip-image {
  height: 240px !important;
  max-height: 240px !important;
  max-width: 92% !important;
}

@media (max-width: 650px) {
  .beer-front-layout > .pumpclip-image,
  .beer-front .pumpclip-image {
    height: 240px !important;
    max-height: 240px !important;
  }
}

/* =========================================================
   Beer carousel fixed 320px card-width rules
   - The beer carousel JS sets data-cards-per-view based on the actual carousel window width.
   - This prevents beer names from wrapping by dropping the card count before cards narrow below 320px.
   ========================================================= */

#our-beers .beer-card {
  min-width: 320px !important;
}

#our-beers[data-cards-per-view="5"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5) !important;
}

#our-beers[data-cards-per-view="4"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 3)) / 4) !important;
}

#our-beers[data-cards-per-view="3"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3) !important;
}

#our-beers[data-cards-per-view="2"] .beer-card {
  flex: 0 0 calc((100% - var(--carousel-gap)) / 2) !important;
}

#our-beers[data-cards-per-view="1"] .beer-card {
  flex: 0 0 100% !important;
  min-width: 0 !important;
}

#our-beers .beer-info h3 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

@media (max-width: 420px) {
  #our-beers .beer-info h3 {
    font-size: 1.36rem;
  }
}



/* =========================================================
   Slimmer beer card layout
   - Pump-clip led card design for smaller displays.
   - Beer name remains in the HTML for modal/accessibility use but is visually removed from the card face.
   - Style tag pills are no longer displayed on beer cards.
   ========================================================= */

#our-beers {
  --beer-card-width: 225px;
  --beer-card-height: 345px;
  --beer-pumpclip-height: 238px;
}

#our-beers .beer-card {
  height: var(--beer-card-height) !important;
  min-width: var(--beer-card-width) !important;
}

#our-beers[data-cards-per-view="5"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5) !important;
}

#our-beers[data-cards-per-view="4"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 3)) / 4) !important;
}

#our-beers[data-cards-per-view="3"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3) !important;
}

#our-beers[data-cards-per-view="2"] .beer-card {
  flex: 0 0 calc((100% - var(--carousel-gap)) / 2) !important;
}

#our-beers[data-cards-per-view="1"] .beer-card {
  flex: 0 0 min(100%, var(--beer-card-width)) !important;
  min-width: 0 !important;
}

#our-beers .beer-face {
  display: flex;
  flex-direction: column;
}

#our-beers .beer-range-badge {
  min-height: 26px;
  margin: 13px auto 12px;
  padding: 6px 10px;
  font-size: 0.62rem;
}

#our-beers .beer-front-layout {
  gap: 8px;
  padding: 0 14px 14px;
}

#our-beers .beer-front-layout > .pumpclip-image,
#our-beers .beer-front .pumpclip-image {
  width: auto !important;
  max-width: 95% !important;
  height: var(--beer-pumpclip-height) !important;
  max-height: var(--beer-pumpclip-height) !important;
}

#our-beers .beer-info {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  width: 100%;
}

#our-beers .beer-info h3,
#our-beers .beer-info p,
#our-beers .beer-info strong,
#our-beers .beer-tags {
  display: none !important;
}

#our-beers .beer-link {
  min-height: 40px;
  margin-top: 0;
  padding: 9px 10px;
  font-size: 0.72rem;
}

#our-beers .beer-no-results {
  min-height: var(--beer-card-height);
}

@media (max-width: 760px) {
  #our-beers {
    --beer-card-width: 215px;
    --beer-card-height: 330px;
    --beer-pumpclip-height: 224px;
  }

  #our-beers .beer-carousel-track.centered {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  #our-beers {
    --beer-card-width: 200px;
    --beer-card-height: 315px;
    --beer-pumpclip-height: 210px;
  }

  .beer-carousel-container {
    gap: 8px;
  }

  #our-beers .beer-front-layout {
    padding-inline: 12px;
  }
}


/* =========================================================
   Simplified pump-clip beer card refinement
   Front card now shows only: range badge, pump clip, Discover More.
   ========================================================= */

#our-beers {
  --beer-card-width: 225px;
  --beer-card-height: 345px;
  --beer-pumpclip-height: 238px;
}

#our-beers .beer-card {
  height: var(--beer-card-height) !important;
  min-width: var(--beer-card-width) !important;
}

#our-beers .beer-face {
  overflow: hidden !important;
}

#our-beers .beer-front-layout {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 14px 14px !important;
}

#our-beers .beer-front-layout > .pumpclip-image,
#our-beers .beer-front .pumpclip-image {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 96% !important;
  height: var(--beer-pumpclip-height) !important;
  max-height: var(--beer-pumpclip-height) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

#our-beers .beer-info {
  display: flex !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#our-beers .beer-info h3,
#our-beers .beer-info p,
#our-beers .beer-info strong,
#our-beers .beer-tags {
  display: none !important;
}

#our-beers .beer-link {
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  #our-beers {
    --beer-card-width: 215px;
    --beer-card-height: 330px;
    --beer-pumpclip-height: 224px;
  }
}

@media (max-width: 420px) {
  #our-beers {
    --beer-card-width: 200px;
    --beer-card-height: 315px;
    --beer-pumpclip-height: 210px;
  }
}


/* =========================================================
   Final fix: prevent beer-back/detail face from rendering under cards
   Visible card is strictly: range badge, pump clip, Discover More.
   ========================================================= */

#our-beers {
  --beer-card-width: 240px;
  --beer-card-height: 360px;
  --beer-pumpclip-height: 220px;
}

#our-beers .beer-card {
  height: var(--beer-card-height) !important;
  min-width: var(--beer-card-width) !important;
  overflow: visible !important;
}

#our-beers[data-cards-per-view="5"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5) !important;
}

#our-beers[data-cards-per-view="4"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 3)) / 4) !important;
}

#our-beers[data-cards-per-view="3"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3) !important;
}

#our-beers[data-cards-per-view="2"] .beer-card {
  flex: 0 0 calc((100% - var(--carousel-gap)) / 2) !important;
}

#our-beers[data-cards-per-view="1"] .beer-card {
  flex: 0 0 min(100%, var(--beer-card-width)) !important;
  min-width: 0 !important;
}

#our-beers .beer-card-inner {
  height: 100% !important;
  overflow: hidden !important;
}

#our-beers .beer-card .beer-back,
#our-beers .beer-card .beer-back *,
#our-beers .beer-back-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#our-beers .beer-card .beer-back {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

#our-beers .beer-front {
  display: flex !important;
  height: 100% !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

#our-beers .beer-range-badge {
  min-height: 26px !important;
  margin: 13px auto 12px !important;
  padding: 6px 10px !important;
  font-size: 0.62rem !important;
}

#our-beers .beer-front-layout {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 0 14px 14px !important;
  text-align: center !important;
}

#our-beers .beer-front-layout > .pumpclip-image,
#our-beers .beer-front .pumpclip-image {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 96% !important;
  height: var(--beer-pumpclip-height) !important;
  max-height: var(--beer-pumpclip-height) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

#our-beers .beer-info,
#our-beers .beer-info *,
#our-beers .beer-tags,
#our-beers .beer-tags *,
#our-beers .beer-front h3,
#our-beers .beer-front p,
#our-beers .beer-front strong {
  display: none !important;
}

#our-beers .beer-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  background: var(--range-accent, var(--shop-gold)) !important;
  border-color: var(--range-accent, var(--shop-gold)) !important;
  color: var(--range-text, var(--white)) !important;
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
}

#our-beers .beer-link:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: var(--white) !important;
}

#our-beers .beer-no-results {
  min-height: var(--beer-card-height) !important;
}

@media (max-width: 760px) {
  #our-beers {
    --beer-card-width: 215px;
    --beer-card-height: 330px;
    --beer-pumpclip-height: 205px;
  }
}

@media (max-width: 420px) {
  #our-beers {
    --beer-card-width: 200px;
    --beer-card-height: 315px;
    --beer-pumpclip-height: 195px;
  }

  .beer-carousel-container {
    gap: 8px;
  }
}


/* =========================================================
   Option B: six-card large-screen beer carousel refinement
   ========================================================= */

#our-beers {
  --carousel-gap: 18px;
}

#our-beers .beer-card {
  height: 360px !important;
  min-width: 225px !important;
  transition: transform 0.28s ease, filter 0.28s ease;
}

#our-beers[data-cards-per-view="6"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 5)) / 6) !important;
}

#our-beers[data-cards-per-view="5"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5) !important;
}

#our-beers[data-cards-per-view="4"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 3)) / 4) !important;
}

#our-beers[data-cards-per-view="3"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3) !important;
}

#our-beers[data-cards-per-view="2"] .beer-card {
  flex: 0 0 calc((100% - var(--carousel-gap)) / 2) !important;
}

#our-beers[data-cards-per-view="1"] .beer-card {
  flex: 0 0 100% !important;
}

#our-beers .beer-card:hover {
  transform: translateY(-7px);
}

#our-beers .beer-card:hover .beer-face {
  box-shadow: 0 22px 44px color-mix(in srgb, var(--range-accent, var(--shop-gold)) 38%, transparent);
}

#our-beers .beer-front-layout > .pumpclip-image,
#our-beers .beer-front .pumpclip-image {
  height: 225px !important;
  max-height: 225px !important;
  max-width: 94% !important;
}

#our-beers .beer-card:hover .pumpclip-image {
  transform: scale(1.045);
}

#our-beers .beer-range-badge {
  margin-top: 14px;
  margin-bottom: 12px;
}

#our-beers .beer-link {
  min-height: 38px;
}

@media (max-width: 700px) {
  #our-beers {
    --carousel-gap: 16px;
  }

  #our-beers .beer-card {
    height: 345px !important;
    min-width: 0 !important;
  }

  #our-beers .beer-front-layout > .pumpclip-image,
  #our-beers .beer-front .pumpclip-image {
    height: 215px !important;
    max-height: 215px !important;
  }
}


/* Hero image framing */
@media (max-width: 1100px) {
  .hero::before {
    background-size: auto 150%;
    background-position: 75% 50%;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 52px 6vw 56px;
    background: #06191d;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    background:
      radial-gradient(
        circle at 85% 20%,
        rgba(184, 115, 51, 0.13),
        transparent 42%
      ),
      linear-gradient(
        145deg,
        rgba(15, 32, 51, 0.35),
        rgba(6, 25, 29, 0.98)
      );
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 600px;
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .hero-text {
    max-width: 540px;
    margin: 17px 0 22px;
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* =========================================================
   Heritage highlights strip
   ========================================================= */

.heritage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--brown);
  color: var(--warm-cream);
  border-top: 1px solid rgba(244, 227, 189, 0.18);
  border-bottom: 3px solid var(--copper);
}

.heritage-stat {
  position: relative;
  padding: 24px 22px;
  text-align: center;
}

.heritage-stat + .heritage-stat::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  background: rgba(244, 227, 189, 0.24);
}

.heritage-stat strong,
.heritage-stat span {
  display: block;
}

.heritage-stat strong {
  color: var(--warm-cream);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.2;
}

.heritage-stat span {
  margin-top: 5px;
  color: var(--muted-cream);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

@media (max-width: 760px) {
  .heritage-strip { grid-template-columns: repeat(2, 1fr); }
  .heritage-stat:nth-child(3)::before { display: none; }
  .heritage-stat:nth-child(n+3) { border-top: 1px solid rgba(244, 227, 189, 0.18); }
}

@media (max-width: 420px) {
  .heritage-stat { padding: 20px 12px; }
  .heritage-stat span { font-size: 0.68rem; }
}

/* =========================================================
   Accessibility
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   Final mobile optimisation pass
   Keeps desktop styling unchanged and centralises stacked
   content on tablets and phones.
   ========================================================= */

@media (max-width: 900px) {
  .section {
    padding: 68px 6vw;
  }

  .hero-content,
  .intro,
  .split > div:not(.image-panel),
  .trade > div {
    text-align: center;
  }

  .hero-content,
  .intro > *,
  .split > div:not(.image-panel),
  .trade > div {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1,
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .button-row,
  .trade {
    justify-content: center;
  }

  .intro {
    gap: 26px;
  }

  .intro p:last-child {
    margin-top: 0;
  }

  .split {
    gap: 38px;
  }

  .split .image-panel {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .tick-list {
    display: inline-block;
    margin: 14px auto 0;
    text-align: left;
  }

  .trade {
    align-items: center;
    text-align: center;
  }

  .trade .button {
    align-self: center;
  }
}

@media (max-width: 760px) {
  .section,
  .beers-section,
  .shop-section {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero-content {
    text-align: center;
  }

  .hero .eyebrow,
  .intro .eyebrow,
  .split .eyebrow,
  .trade .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .button-row {
    align-items: center;
    justify-content: center;
  }

  .hero .button-row .button {
    min-width: min(100%, 230px);
  }

  .intro h2,
  .split h2,
  .trade h2 {
    text-wrap: balance;
  }

  .intro p,
  .split p,
  .trade p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .tick-list {
    max-width: 100%;
  }

  .trade {
    gap: 24px;
  }

  .trade .button {
    width: min(100%, 280px);
  }
}

@media (max-width: 560px) {
  .hero .button-row {
    width: 100%;
  }

  .hero .button-row .button {
    width: min(100%, 300px);
  }

  .intro,
  .split,
  .trade {
    gap: 24px;
  }

  .site-footer {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}


/* =========================================================
   Shop bottled beer carousel
   Mirrors the Our Beers cards, without filters/search controls.
   ========================================================= */

#shop {
  --carousel-gap: 18px;
  --beer-card-width: 225px;
  --beer-card-height: 360px;
  --beer-pumpclip-height: 225px;
}

#shop .shop-beer-carousel-container {
  margin-top: 34px;
  margin-bottom: 38px;
}

#shop .shop-after-carousel {
  margin-top: 0;
}

#shop .shop-beer-carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 0.35s ease;
}

#shop .shop-beer-carousel-track.centered {
  justify-content: center;
}

#shop .beer-card {
  height: var(--beer-card-height) !important;
  min-width: 225px !important;
  overflow: visible !important;
  transition: transform 0.28s ease, filter 0.28s ease;
}

#shop[data-cards-per-view="6"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 5)) / 6) !important;
}

#shop[data-cards-per-view="5"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5) !important;
}

#shop[data-cards-per-view="4"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 3)) / 4) !important;
}

#shop[data-cards-per-view="3"] .beer-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3) !important;
}

#shop[data-cards-per-view="2"] .beer-card {
  flex: 0 0 calc((100% - var(--carousel-gap)) / 2) !important;
}

#shop[data-cards-per-view="1"] .beer-card {
  flex: 0 0 100% !important;
}

#shop .beer-card-inner {
  height: 100% !important;
  overflow: hidden !important;
}

#shop .beer-card .beer-back,
#shop .beer-card .beer-back *,
#shop .beer-back-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#shop .beer-card .beer-back {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

#shop .beer-front {
  display: flex !important;
  height: 100% !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

#shop .beer-range-badge {
  min-height: 26px !important;
  margin: 14px auto 12px !important;
  padding: 6px 10px !important;
  font-size: 0.62rem !important;
}

#shop .beer-front-layout {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 0 !important;
  padding: 40px 14px 14px !important;
  text-align: center !important;
}

#shop .beer-front-layout > .pumpclip-image,
#shop .beer-front .pumpclip-image {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 94% !important;
  height: var(--beer-pumpclip-height) !important;
  max-height: var(--beer-pumpclip-height) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

#shop .beer-info,
#shop .beer-info *,
#shop .beer-tags,
#shop .beer-tags *,
#shop .beer-front h3,
#shop .beer-front p,
#shop .beer-front strong {
  display: none !important;
}

#shop .beer-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  background: var(--range-accent, var(--shop-gold)) !important;
  border-color: var(--range-accent, var(--shop-gold)) !important;
  color: var(--range-text, var(--white)) !important;
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
}

#shop .beer-link:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: var(--white) !important;
}

#shop .beer-card:hover {
  transform: translateY(-7px);
}

#shop .beer-card:hover .beer-face {
  box-shadow: 0 22px 44px color-mix(in srgb, var(--range-accent, var(--shop-gold)) 38%, transparent);
}

#shop .beer-card:hover .pumpclip-image {
  transform: scale(1.045);
}

@media (max-width: 700px) {
  #shop {
    --carousel-gap: 16px;
    --beer-card-width: 215px;
    --beer-card-height: 345px;
    --beer-pumpclip-height: 215px;
  }

  #shop .beer-card {
    height: var(--beer-card-height) !important;
    min-width: 0 !important;
  }
}

@media (max-width: 420px) {
  #shop {
    --beer-card-width: 200px;
    --beer-card-height: 315px;
    --beer-pumpclip-height: 195px;
  }
}

/* Shop bottled beer cards:
   hide range badges and use standard gold/copper buttons */

#shop .beer-range-badge {
  display: none !important;
}

