:root {
  --cream: #fefefe;
  --buttermilk: #f5f5f5;

  --hickory: #5a504f;
  --hickory-light: #827473;
  --hickory-dark: #3e3737;

  --wheat: #daa520;
  --wheat-light: #e7c265;
  --wheat-dark: #b88a1a;

  --blood: #800020;
  --blood-light: #c8102e;
  --blood-dark: #5c0017;

  --cornflower: #bed6ee;
  --cornflower-light: #dbe9f6;
  --cornflower-dark: #8fb4dc;

  --northshore-red: rgb(205, 49, 40);
  --redmond-black: #000;
}

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

html,
body {
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* Main Styles */

a {
  color: var(--blood);
  text-decoration: none;
}

.btn:hover,
a:hover,
a:focus {
  color: var(--blood-light);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

hr {
  border-radius: 2px;
  border: none;
  height: 4px;
  margin: 20px auto;
  background: linear-gradient(to right,
      transparent 0%,
      var(--blood) 10%,
      var(--blood) 90%,
      transparent 100%);
  width: 50%;
}

header {
  align-items: center;
  background: var(--hickory);
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

body {
  background-color: var(--cream);
  color: var(--hickory);
  font-family: "Lora", Georgia, serif;
  line-height: 1.7;
}

footer {
  background: var(--hickory);
  color: var(--cream);
  font-size: 1rem;
  padding: 2rem 5%;
  text-align: center;
}

/* Custom Class Styles */

.logo {
  max-height: 90px;
  /* object-fit: contain; */
  width: auto;
}

.header-tagline {
  text-align: center;
}

.header-tagline h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.header-tagline div {
  font-size: 1.1rem;
  opacity: 0.9;
}

.link-container {
  align-items: center;
  background: var(--buttermilk);
  display: flex;
  flex-direction: row;
  font-size: 1.1rem;
  justify-content: space-between;
  padding: 1rem 5%;
}

.link-container div {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.hero {
  align-items: center;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  padding: 2rem 5%;
  position: relative;
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.hero::before {
  background:
    linear-gradient(color-mix(in srgb, var(--hickory) 75%, transparent),
      color-mix(in srgb, var(--hickory) 75%, transparent)),
    url("./assets/cattle.webp") center/cover no-repeat;
  content: "";
  inset: 0;
  position: absolute;
  transform-origin: center;
  z-index: -1;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  max-width: 700px;
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-items: center;
  padding: 0 15%;
}

section {
  padding: 3rem 5%;
}

.error-body {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.error-body img {
  height: auto;
  max-height: 160px;
  width: auto;
}

.content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-wrapper p {
  font-size: 1.1rem;
}

.btn {
  background: var(--wheat);
  border: none;
  border-radius: 6px;
  color: var(--hickory);
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--wheat-dark);
  color: var(--cream);
}

.list {
  margin: 0 1rem;
}

.bash-logo {
  height: auto;
  max-width: 240px;
  width: 100%;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100%;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.gallery-item::after {
  background: color-mix(in srgb, var(--hickory-light) 35%, transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.gallery-item img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  width: 100%;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.08);
}

.gallery-item:nth-child(n + 13) {
  display: none;
}

.gallery.is-expanded .gallery-item:nth-child(n + 13) {
  display: block;
}

.gallery-view-more {
  margin-top: 1.5rem;
  text-align: center;
}

.year-grid,
.price-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  width: 100%;
}

.year-card,
.price-card {
  align-items: center;
  background: var(--buttermilk);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.price-card h4 {
  color: var(--blood);
  font-size: 1.3rem;
}

.guideline-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.guideline-card {
  border-bottom: 1px solid color-mix(in srgb, var(--hickory-light) 30%, transparent);
  padding: 1.5rem 0;
  text-align: left;
}

.guideline-card:first-child {
  padding-top: 0;
}

.guideline-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guideline-card h4 {
  color: var(--blood);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price-figure {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-figure-amount {
  color: var(--hickory);
  font-size: 1.8rem;
  font-weight: 700;
}

.price-figure-label {
  color: var(--hickory-light);
  font-size: 0.9rem;
}

.sponsor-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
}

.sponsor {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: var(--buttermilk);
  border: 2px dashed var(--hickory);
  border-radius: 8px;
  color: var(--hickory);
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
}

.sponsor img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.sponsor:hover,
.sponsor:focus {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  color: var(--hickory);
  transform: translateY(-4px);
}

.sponsor-name-northshore,
.sponsor-name-redmond,
.sponsor-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.sponsor-name-northshore,
.sponsor-name-redmond {
  border-radius: 6px;
  display: inline-flex;
  padding: 0.6rem 1rem;
}

.sponsor-name-northshore {
  background-color: var(--northshore-red);
}

.sponsor-name-redmond {
  background-color: var(--redmond-black);
}

.sponsor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  left: 0.75rem;
  position: absolute;
  right: 0.75rem;
  top: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.badge {
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  padding: 0.15rem 0.6rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-inaugural {
  background: var(--wheat);
  color: var(--hickory);
}

.lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 2rem;
  position: fixed;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  visibility: hidden;
  z-index: 1000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  max-height: 85vh;
  max-width: 90vw;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  align-items: center;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  justify-content: center;
  line-height: 1;
  position: absolute;
  transition: color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus,
.lightbox-nav:hover,
.lightbox-nav:focus {
  color: var(--wheat);
}

.lightbox-close {
  font-size: 2.5rem;
  right: 1.5rem;
  top: 1rem;
}

.lightbox-nav {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-size: 3rem;
  height: 4rem;
  padding-bottom: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  bottom: 1.25rem;
  color: var(--cream);
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

.work-with-us-header {
  margin-top: 4rem;
}

/* Media Queries */

@media (min-width: 751px) {
  header {
    padding: 1.2rem 8%;
  }

  .logo {
    max-height: 110px;
  }
}

@media (max-width: 750px) {
  header {
    gap: 1rem;
  }

  .hero {
    min-height: 60vh;
  }

  .main-content {
    padding: 0;
  }
}

@media (max-width: 520px) {
  .link-container {
    flex-direction: column;
    gap: 1rem;
  }

  div.cutsheet-link-container {
    flex-direction: column !important;
    gap: 1rem;
  }

  header {
    padding: 1rem;
  }
}

/* Animations */

@keyframes pulse-wiggle {
  0% {
    transform: scale(1) rotate(-4deg);
  }

  25% {
    transform: scale(1.08) rotate(3deg);
  }

  50% {
    transform: scale(1.12) rotate(-3deg);
  }

  75% {
    transform: scale(1.08) rotate(3deg);
  }

  100% {
    transform: scale(1) rotate(-4deg);
  }
}

/* Animation Classes */

.wiggly {
  display: inline-block;
  transition: all 0.3s ease;
  animation: pulse-wiggle 2.2s infinite ease-in-out;
}

@keyframes hero-squash {
  to {
    min-height: 30vh;
  }
}

@keyframes hero-zoom-out {
  from {
    transform: scale(1.3);
  }

  to {
    transform: scale(1);
  }
}

@keyframes hero-fade {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero {
      animation: hero-squash linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }

    .hero::before {
      animation: hero-zoom-out linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }

    .hero .content-wrapper {
      animation: hero-fade linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 55vh;
    }
  }
}
