/* ================================================================
   KIRKDRINKS.BEER
   styles.css
   ================================================================ */

:root {
  --bg: #15110d;
  --bg-soft: #1d1712;
  --panel: #241c16;
  --panel-light: #f4ecdf;
  --cream: #f7f0e5;
  --cream-dark: #e8dccb;

  --text: #f7f0e7;
  --text-dark: #211a15;
  --muted: #aa9d91;
  --muted-dark: #746b62;

  --amber: #f5a800;
  --amber-light: #ffc13b;

  --border: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(35, 27, 21, 0.12);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);

  --radius: 18px;
  --radius-small: 12px;

  --max-width: 1180px;
}


/* ================================================================
   RESET
   ================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* ================================================================
   ACCESSIBILITY
   ================================================================ */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;

  padding: 10px 14px;

  background: white;
  color: black;

  border-radius: 8px;

  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}


/* ================================================================
   LAYOUT
   ================================================================ */

.container {
  width: min(
    calc(100% - 32px),
    var(--max-width)
  );

  margin-inline: auto;
}

.section {
  padding: 72px 0;
  background: var(--cream);
  color: var(--text-dark);
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;

  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 4px 0 0;

  font-size: clamp(
    2rem,
    5vw,
    3.6rem
  );

  line-height: 0.95;
  letter-spacing: -0.055em;
}

.section-heading > p {
  width: min(100%, 430px);

  margin: 0;

  color: var(--muted-dark);
}

.section-dark .section-heading > p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;

  color: var(--amber);

  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* ================================================================
   HEADER
   ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background:
    rgba(20, 16, 13, 0.94);

  border-bottom:
    1px solid var(--border);

  backdrop-filter:
    blur(14px);
}

.nav-wrap {
  position: relative;

  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: white;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.8rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;

  line-height: 0.9;
}

.brand-copy strong {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.brand-copy em {
  margin-top: 4px;

  color: var(--amber);

  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.menu-toggle {
  display: none;

  padding: 9px 14px;

  background:
    rgba(255, 255, 255, 0.04);

  color: white;

  border:
    1px solid var(--border);

  border-radius: 999px;

  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: #d9cec4;

  font-size: 0.9rem;
  font-weight: 700;

  text-decoration: none;
}

.site-nav a:hover {
  color: white;
}

.site-nav .nav-cta {
  padding: 10px 16px;

  background: var(--amber);
  color: #1d150a;

  border-radius: 999px;
}


/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  overflow: hidden;

  min-height: 680px;

  display: flex;
  align-items: center;

  padding: 95px 0;

  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(245, 168, 0, 0.15),
      transparent 28%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(245, 168, 0, 0.07),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #120f0c,
      #1b140e 55%,
      #120f0c
    );
}

.hero::after {
  content: "";

  position: absolute;
  right: -180px;
  bottom: -260px;

  width: 650px;
  height: 650px;

  border:
    120px solid rgba(245, 168, 0, 0.025);

  border-radius: 50%;

  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;

  opacity: 0.12;

  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 3px
    );

  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(300px, 0.75fr);

  align-items: center;
  gap: 80px;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin: 0;

  font-size: clamp(
    3.5rem,
    8vw,
    7rem
  );

  line-height: 0.87;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;

  color: var(--amber);
}

.hero-copy {
  max-width: 620px;

  margin: 30px 0 0;

  color: #cfc3b8;

  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 32px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-height: 48px;

  padding: 0 20px;

  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 900;

  text-decoration: none;

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--amber);
  color: #211708;
}

.button.secondary {
  background:
    rgba(255, 255, 255, 0.05);

  color: white;

  border:
    1px solid var(--border);
}

.hero-footnote {
  margin: 24px 0 0;

  color: #776d65;

  font-size: 0.77rem;
}


/* ================================================================
   SCORE CARD
   ================================================================ */

.score-card {
  padding: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );

  border:
    1px solid var(--border);

  border-radius:
    var(--radius);

  box-shadow:
    var(--shadow);
}

.score-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  padding-bottom: 14px;

  color: #9c8e82;

  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.live-dot {
  color: #d4c4b7;
}

.live-dot::before {
  content: "";

  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 7px;

  background: var(--amber);

  border-radius: 50%;

  box-shadow:
    0 0 12px rgba(245, 168, 0, 0.8);
}

.stat {
  min-height: 84px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  border-top:
    1px solid var(--border);
}

.stat strong {
  color: var(--amber);

  font-size: 2.1rem;
  line-height: 1;
}

.stat span {
  max-width: 145px;

  color: #b9aca1;

  font-family: Georgia, serif;
  font-size: 0.9rem;
  text-align: right;
}


/* ================================================================
   REVIEWS
   ================================================================ */

.reviews-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.review-card {
  overflow: hidden;

  background: white;

  border:
    1px solid var(--border-dark);

  border-radius:
    var(--radius);

  box-shadow:
    0 10px 30px rgba(40, 29, 20, 0.07);
}

.review-image-wrap {
  position: relative;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #d7cbbb;
}

.review-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.review-image-placeholder {
  display: grid;
  place-items: center;

  font-size: 4rem;
}

.review-content {
  padding: 22px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  color: #8c7965;

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-content h3 {
  margin: 8px 0 0;

  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.review-brewery {
  margin: 6px 0 0;

  color: #8d7e70;

  font-size: 0.88rem;
  font-weight: 700;
}

.review-location,
.review-price {
  margin: 12px 0 0;

  color: #6d6259;

  font-size: 0.82rem;
}

.review-price {
  margin-top: 4px;
}

.review-copy {
  margin: 18px 0;

  color: #514941;

  font-family: Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding-top: 16px;

  border-top:
    1px solid #ece4da;
}

.score-badge {
  padding: 7px 10px;

  background: var(--amber);
  color: #261a09;

  border-radius: 8px;

  font-size: 0.82rem;
  font-weight: 950;
}

.buy-again {
  color: #6c6157;

  font-size: 0.77rem;
  font-weight: 800;
}

.review-venue-link {
  display: inline-block;

  margin-top: 16px;

  color: #9a6600;

  font-size: 0.8rem;
  font-weight: 900;

  text-decoration: none;
}


/* ================================================================
   MAP
   ================================================================ */

.map-section {
  background: #e8ddcd;
}

.map-shell {
  position: relative;

  overflow: hidden;

  min-height: 540px;

  background: #d9cfc1;

  border:
    1px solid rgba(44, 34, 25, 0.12);

  border-radius:
    var(--radius);

  box-shadow:
    0 12px 35px rgba(49, 37, 27, 0.08);
}

.pint-map {
  width: 100%;
  height: 540px;
}

.map-empty {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 32px;

  color: #706459;

  text-align: center;
}

.map-empty[hidden] {
  display: none;
}

.map-empty strong {
  color: #2c241e;

  font-size: 1.2rem;
}

.map-empty span {
  max-width: 460px;

  margin-top: 8px;
}

.map-note {
  margin: 12px 0 0;

  color: #7d7166;

  font-size: 0.72rem;
}


/* ================================================================
   MAPLIBRE
   ================================================================ */

.pint-marker {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  padding: 0;

  background: #1c1612;

  border:
    3px solid var(--amber);

  border-radius: 50%;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.3);

  font-size: 1.3rem;

  cursor: pointer;
}

.maplibregl-popup-content {
  padding: 0 !important;

  overflow: hidden;

  border-radius:
    12px !important;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25) !important;
}

.map-popup {
  min-width: 220px;

  padding: 16px;

  color: #211a15;
}

.map-popup-title {
  display: block;

  font-size: 1rem;
}

.map-popup-place,
.map-popup-count {
  display: block;

  margin-top: 5px;

  color: #74685e;

  font-size: 0.76rem;
}

.map-popup-beers {
  margin-top: 12px;

  border-top:
    1px solid #e7ded4;
}

.map-popup-beers div {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  padding: 8px 0;

  border-bottom:
    1px solid #eee6dd;

  font-size: 0.78rem;
}

.map-popup a {
  display: inline-block;

  margin-top: 10px;

  color: #996400;

  font-size: 0.76rem;
  font-weight: 900;

  text-decoration: none;
}


/* ================================================================
   VENUES
   ================================================================ */

.venue-section {
  background: var(--cream);
}

.venue-scale-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 24px;

  color: #776b60;

  font-size: 0.74rem;
}

.venue-scale-note span,
.venue-scale-note strong {
  padding: 7px 10px;

  background: #ebe0d2;

  border-radius: 999px;
}

.venues-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.venue-card {
  padding: 24px;

  background: white;

  border:
    1px solid var(--border-dark);

  border-radius:
    var(--radius);
}

.venue-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.venue-card h3 {
  margin: 0;

  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.venue-location {
  margin-top: 5px;

  color: #75695e;

  font-size: 0.78rem;
}

.venue-overall {
  min-width: 70px;

  padding: 10px;

  background: #211a15;
  color: white;

  border-radius: 12px;

  text-align: center;
}

.venue-overall strong {
  display: block;

  color: var(--amber);

  font-size: 1.35rem;
}

.venue-overall span {
  display: block;

  color: #a99d93;

  font-size: 0.62rem;
}

.venue-scores {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);

  gap: 8px;

  margin-top: 20px;
}

.venue-score {
  padding: 12px;

  background: #f3ece3;

  border-radius: 10px;
}

.venue-score span {
  display: block;

  color: #807266;

  font-size: 0.68rem;
}

.venue-score strong {
  display: block;

  margin-top: 3px;

  font-size: 1rem;
}

.venue-review {
  margin-top: 18px;

  color: #5d534b;

  font-family: Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.6;
}

.venue-review p {
  margin: 0;
}

.venue-price-paid {
  font-family:
    Inter,
    system-ui,
    sans-serif;

  font-size: 0.8rem;
  font-weight: 800;
}

.venue-verdict {
  display: inline-block;

  margin-top: 12px;

  color: #8b5e09;

  font-family:
    Inter,
    system-ui,
    sans-serif;

  font-size: 0.78rem;
  font-weight: 900;
}


/* ================================================================
   GALLERY
   ================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 12px;
}

.gallery-item {
  position: relative;

  overflow: hidden;

  aspect-ratio: 1;

  margin: 0;

  background: #241c16;

  border-radius:
    var(--radius-small);
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  padding: 30px 12px 10px;

  background:
    linear-gradient(
      transparent,
      rgba(0, 0, 0, 0.75)
    );

  color: white;

  font-size: 0.72rem;
}


/* ================================================================
   SUPPORTERS
   ================================================================ */

.beer-meter {
  display: flex;
  align-items: center;
  gap: 28px;

  margin-bottom: 28px;
  padding: 22px;

  background: #211a15;
  color: white;

  border-radius:
    var(--radius);
}

.beer-meter-copy {
  min-width: 170px;
}

.beer-meter-copy strong {
  display: block;

  color: var(--amber);

  font-size: 1.4rem;
}

.beer-meter-copy span {
  color: #aa9d91;

  font-size: 0.76rem;
}

.beer-meter-glass {
  flex: 1;

  height: 14px;

  overflow: hidden;

  background:
    rgba(255,255,255,0.08);

  border:
    1px solid rgba(255,255,255,0.1);

  border-radius: 999px;
}

.beer-meter-fill {
  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #d88b00,
      var(--amber-light)
    );

  border-radius: inherit;

  transition:
    width 0.5s ease;
}

.supporters-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.supporter {
  padding: 18px;

  background: white;

  border:
    1px solid var(--border-dark);

  border-radius:
    var(--radius-small);
}

.supporter-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.supporter-top strong {
  font-size: 0.9rem;
}

.supporter .beers {
  color: #9d6900;

  font-size: 0.76rem;
  font-weight: 900;
}

.supporter p {
  margin: 12px 0 0;

  color: #655b53;

  font-family: Georgia, serif;
  font-size: 0.85rem;
}


/* ================================================================
   BUY ME A BEER
   ================================================================ */

.buy-section {
  background: #e6d7c2;
}

.buy-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;

  padding: 48px;

  background: #211a15;
  color: white;

  border-radius:
    calc(var(--radius) + 4px);

  box-shadow:
    var(--shadow);
}

.buy-card h2 {
  margin: 5px 0 10px;

  font-size: clamp(
    2.3rem,
    5vw,
    4rem
  );

  letter-spacing: -0.055em;
}

.buy-card p:not(.eyebrow) {
  max-width: 600px;

  margin: 0;

  color: #bbae9f;
}

.buy-actions {
  min-width: 220px;

  text-align: center;
}

.beer-button {
  width: 100%;

  background: var(--amber);
  color: #211708;
}

.buy-actions small {
  display: block;

  margin-top: 10px;

  color: #81766d;

  font-size: 0.65rem;
}


/* ================================================================
   ABOUT
   ================================================================ */

.mini-about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns:
    0.7fr 1.3fr;

  gap: 60px;
}

.about-grid h2 {
  margin: 0;

  font-size: 2.5rem;
  letter-spacing: -0.05em;
}

.about-grid > p {
  margin: 0;

  color: #645a51;

  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.8;
}


/* ================================================================
   EMPTY STATES
   ================================================================ */

.empty-state {
  grid-column: 1 / -1;

  padding: 30px;

  background:
    rgba(0, 0, 0, 0.035);

  border:
    1px dashed rgba(0, 0, 0, 0.15);

  border-radius:
    var(--radius);

  color: #766a60;

  text-align: center;
}

.section-dark .empty-state {
  background:
    rgba(255,255,255,0.035);

  border-color:
    rgba(255,255,255,0.1);

  color: #a99c91;
}

.empty-state strong {
  display: block;

  margin-bottom: 5px;
}

.empty-state p {
  margin: 0;
}


/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  padding: 30px 0;

  background: #100d0b;

  color: #746b64;

  border-top:
    1px solid var(--border);

  font-size: 0.72rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid p {
  margin: 0;
}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 950px) {

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-content {
    max-width: 760px;
  }

  .score-card {
    max-width: 650px;
  }

  .reviews-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


/* ================================================================
   MOBILE NAVIGATION
   ================================================================ */

@media (max-width: 760px) {

  .nav-wrap {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 10px;

    background: #1c1713;

    border:
      1px solid var(--border);

    border-radius:
      14px;

    box-shadow:
      0 20px 50px rgba(0,0,0,0.35);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .site-nav .nav-cta {
    margin-top: 5px;

    text-align: center;
  }


  /* Hero */

  .hero {
    min-height: auto;

    padding: 72px 0 60px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero h1 {
    font-size:
      clamp(
        3.2rem,
        15vw,
        5.4rem
      );
  }

  .hero-copy {
    font-size: 0.94rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .button {
    width: auto;
  }


  /* Sections */

  .section {
    padding: 58px 0;
  }

  .section-heading {
    display: block;

    margin-bottom: 26px;
  }

  .section-heading > p {
    margin-top: 12px;

    font-size: 0.88rem;
  }


  /* Reviews */

  .reviews-grid {
    grid-template-columns: 1fr;
  }


  /* Venues */

  .venues-grid {
    grid-template-columns: 1fr;
  }


  /* Gallery */

  .gallery-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* Map */

  .map-shell {
    min-height: 430px;
  }

  .pint-map {
    height: 430px;
  }


  /* Supporters */

  .beer-meter {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .supporters-grid {
    grid-template-columns: 1fr;
  }


  /* Buy */

  .buy-card {
    align-items: stretch;
    flex-direction: column;

    padding: 30px;

    gap: 28px;
  }

  .buy-actions {
    min-width: 0;
  }


  /* About */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }


  /* Footer */

  .footer-grid {
    flex-direction: column;
    gap: 8px;
  }

}


/* ================================================================
   SMALL MOBILE
   ================================================================ */

@media (max-width: 430px) {

  .container {
    width:
      min(
        calc(100% - 22px),
        var(--max-width)
      );
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .score-card {
    padding: 18px;
  }

  .stat {
    min-height: 76px;
  }

  .stat strong {
    font-size: 1.8rem;
  }

  .review-content {
    padding: 18px;
  }

  .venue-card {
    padding: 18px;
  }

  .venue-card-head {
    gap: 10px;
  }

  .venue-scores {
    gap: 5px;
  }

  .venue-score {
    padding: 9px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .buy-card {
    padding: 24px 20px;
  }

}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@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;
  }

  }
