/* ==========================================================================
   Perth Beers — custom stylesheet
   --------------------------------------------------------------------------
   Tailwind's utility classes (bg-roast, flex, grid, text-sand, etc.) are
   still used directly in index.html and are generated at runtime by the
   Tailwind CDN script — they don't need to live here.

   Everything below is the custom, non-utility CSS for this site: component
   classes (buttons, cards, tabs...), keyframe animations, and the one
   textured background. It's written as plain CSS (not @apply) on purpose —
   Tailwind's Play CDN only compiles @apply/@layer inside an inline
   <style type="text/tailwindcss"> tag in the HTML head, not in external
   .css files, so this file uses the equivalent hand-written CSS instead.
   ========================================================================== */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
section {
  scroll-margin-top: 4rem;
}

/* ---------- Buttons ---------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #E4223D;
  color: #0D0D0D;
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.125rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(120,53,15,0.2), 0 4px 6px -4px rgba(120,53,15,0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-primary:hover { background-color: #E4223D; transform: translateY(-2px); }
.cta-primary:focus-visible { outline: none; box-shadow: 0 0 0 2px #0D0D0D, 0 0 0 4px #E4223D; }

.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid rgba(245,240,230,0.3);
  color: #F5F0E6;
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.125rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-outline:hover { border-color: #E4223D; transform: translateY(-2px); }
.cta-outline:focus-visible { outline: none; box-shadow: 0 0 0 2px #E4223D; }

/* ---------- Feature cards ---------- */
.feature-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid rgba(13,13,13,0.1);
  border-radius: 0.375rem;
  padding: 1.75rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 1024px) {
  .feature-card { padding: 2rem; }
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* ---------- Brewery Trail tabs ---------- */
.tab-btn {
  padding: 0.5rem 0.875rem;
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 0.75rem;
  border-radius: 0.125rem;
  border: 1px solid rgba(13,13,13,0.15);
  color: rgba(13,13,13,0.55);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 640px) {
  .tab-btn { font-size: 0.875rem; }
}
.tab-btn:hover { border-color: rgba(245,158,11,0.7); color: #0D0D0D; }
.tab-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #E4223D; }
.tab-btn[aria-selected="true"] {
  background-color: #0D0D0D;
  color: #F5F0E6;
  border-color: #0D0D0D;
}

/* ---------- Nav links ---------- */
.nav-link {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-link:hover { color: #E4223D; }

.mobile-link {
  display: block;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-link:hover { color: #E4223D; }

/* ---------- Site header ---------- */
#siteHeader {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Hero section — explicit black, no teal ---------- */
#home {
  background-color: #0D0D0D !important;
}

/* ---------- Misc components ---------- */
.eyebrow {
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .eyebrow { font-size: 0.875rem; }
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.map-pin:focus-visible { outline: 2px solid #E4223D; outline-offset: 2px; }

/* ---------- Beer listing slider ---------- */
.beer-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem;
  scrollbar-width: none;
}
.beer-track::-webkit-scrollbar { display: none; }

.beer-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 17rem;
  background-color: #ffffff;
  border-radius: 0.375rem;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(13,13,13,0.08);
}
@media (min-width: 640px) {
  .beer-card { width: 19rem; }
}

.beer-card-region {
  display: inline-block;
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.125rem;
}
.beer-card-region--fremantle  { background-color: rgba(251,191,36,0.18); color: #C01C33; }
.beer-card-region--swanvalley { background-color: rgba(228,34,61,0.18);  color: #C01C33; }
.beer-card-region--innercity  { background-color: rgba(13,148,136,0.15); color: #0F766E; }
.beer-card-region--coastal    { background-color: rgba(56,189,248,0.2); color: #0369A1; }

.beer-card-type {
  display: inline-block;
  font-family: "General Sans", sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(13,13,13,0.55);
  border: 1px solid rgba(13,13,13,0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 0.125rem;
  margin-bottom: 1.15rem;
}

.beer-card-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #C01C33;
  text-decoration: none;
  border-top: 1px solid rgba(13,13,13,0.1);
  padding-top: 0.9rem;
  transition: color 0.3s ease, gap 0.3s ease;
}
.beer-card-link:hover { color: #D97706; gap: 0.55rem; }
.beer-card-link:focus-visible { outline: 2px solid #E4223D; outline-offset: 2px; }

.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(13,13,13,0.25);
  color: #0D0D0D;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-arrow:hover { background-color: rgba(13,13,13,0.06); border-color: #E4223D; color: #E4223D; }
.slider-arrow:focus-visible { outline: none; box-shadow: 0 0 0 2px #E4223D; }
.slider-arrow:disabled { opacity: 0.3; cursor: default; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(245,240,230,0.2);
  color: rgba(245,240,230,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icon:hover { color: #E4223D; border-color: rgba(228,34,61,0.6); }
.social-icon:focus-visible { outline: none; box-shadow: 0 0 0 2px #E4223D; }

/* ---------- Animations ---------- */
@keyframes attentionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); }
  50% { box-shadow: 0 0 0 10px rgba(217,119,6,0.25); }
}
.pulse-highlight { animation: attentionPulse 0.9s ease-in-out 2; }
