/* Homepage sections. Shared tokens and components come from site.css. */

/* Hero */

.hero {
  padding-block: 1.875rem 1.75rem;
}

.hero__inner {
  display: grid;
  gap: 1.625rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.hero__eyebrow .hex {
  width: 1.25rem;
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.05;
  text-wrap: pretty;
}

.hero .lead {
  margin-top: 1rem;
}

.hero__actions {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.hero__media {
  display: grid;
  gap: 0.625rem;
}

.hero__product {
  position: relative;
  padding: 1.25rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
}

.hero__product img {
  mix-blend-mode: multiply;
}

.hero__product img {
  width: 100%;
}

.hero__product figcaption {
  display: none;
  position: absolute;
  bottom: 1.625rem;
  left: 1.875rem;
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.hero__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.hero__photos img {
  width: 100%;
  height: 6.5rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* Tablet: product shot and photos side by side so the image doesn't fill the screen. */
  .hero__media {
    grid-template-columns: 3fr 2fr;
  }

  .hero__photos {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero__photos img {
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 64rem) {
  .hero {
    padding-block: 5.25rem 4.875rem;
  }

  .hero__inner {
    grid-template-columns: 1.06fr 1fr;
    align-items: center;
    gap: 3.75rem;
  }

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

  .hero__photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .hero__eyebrow {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero__eyebrow .hex {
    width: 1.5rem;
  }

  .hero .lead {
    margin-top: 1.625rem;
  }

  .hero__actions {
    margin-top: 2.25rem;
  }

  .hero__media,
  .hero__photos {
    gap: 0.875rem;
  }

  .hero__product {
    padding: 1.875rem;
  }

  .hero__product figcaption {
    display: block;
  }

  .hero__photos img {
    height: 9.375rem;
  }
}

/* Product lines */

.section-head {
  margin-bottom: 1.25rem;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 0.75rem;
}

.products-preview .product-card p {
  display: none;
}

@media (min-width: 40rem) {
  .products-preview .product-card p {
    display: block;
  }
}

@media (min-width: 64rem) {
  .section-head {
    margin-bottom: 2.875rem;
  }

  .section-head .eyebrow {
    margin-bottom: 1rem;
  }
}

/* OEM and private label */

.oem {
  color: var(--paper);
}

.oem__inner {
  display: grid;
  grid-template-areas: "copy" "media" "cta";
  gap: 1.375rem;
}

.oem__copy {
  grid-area: copy;
}

.oem__tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hex-badge {
  display: grid;
  place-items: center;
  width: 2.875rem;
  aspect-ratio: 1.1547;
  background: var(--gold-500);
  clip-path: var(--hexagon);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.oem h2 {
  color: inherit;
}

.oem .lead {
  margin-top: 0.875rem;
  max-width: 30em;
  color: var(--sage-200);
}

.oem .hex-list {
  margin-top: 1.375rem;
}

.oem__media {
  grid-area: media;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.oem__wide {
  grid-column: 1 / -1;
}

.oem__cta {
  grid-area: cta;
}

@media (min-width: 40rem) {
  .oem__cta {
    justify-self: start;
  }
}

@media (min-width: 64rem) {
  .oem__inner {
    grid-template-columns: 1fr 1.05fr;
    grid-template-areas: "media copy" "media cta";
    gap: 1.875rem 4.375rem;
  }

  .oem__copy {
    align-self: end;
  }

  .oem__media {
    align-self: center;
    gap: 0.75rem;
  }

  .oem__cta {
    align-self: start;
  }

  .oem__tag {
    gap: 0.875rem;
    margin-bottom: 1.375rem;
  }

  .hex-badge {
    width: 3.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .oem .lead {
    margin-top: 1.375rem;
  }

  .oem .hex-list {
    margin-top: 2rem;
  }
}

/* Beekeeping equipment */

.equipment {
  background: var(--cream-200);
  border-block: 1px solid var(--line);
}

.equipment__inner {
  display: grid;
  grid-template-areas: "copy" "tiles" "cta";
  gap: 1.25rem;
}

.equipment__copy {
  grid-area: copy;
}

.equipment h2 {
  margin-top: 0.75rem;
}

.equipment .lead {
  margin-top: 0.75rem;
  max-width: 28em;
}

.equipment__tiles {
  grid-area: tiles;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.tile {
  display: block;
  padding: 0.75rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  font-size: 0.65625rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-600);
  transition: border-color 0.2s, color 0.2s;
}

.tile:hover {
  border-color: var(--line-strong);
  color: var(--green-900);
}

.tile img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.4375rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.equipment__cta {
  grid-area: cta;
}

@media (min-width: 40rem) {
  .equipment__tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .equipment__cta {
    justify-self: start;
  }
}

@media (min-width: 64rem) {
  .equipment__inner {
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-areas: "copy tiles" "cta tiles";
    gap: 1.625rem 3.75rem;
  }

  .equipment__copy {
    align-self: end;
  }

  .equipment h2 {
    margin-top: 1rem;
  }

  .equipment .lead {
    margin-top: 1.125rem;
  }

  .equipment__tiles {
    align-self: center;
    gap: 0.875rem;
  }

  .equipment__cta {
    align-self: start;
  }

  .tile {
    padding: 0.875rem;
    font-size: 0.71875rem;
  }

  .tile img {
    margin-bottom: 0.5rem;
  }
}

/* FAQ */

.faq__inner {
  max-width: 52rem;
}

.faq h2 {
  margin-bottom: 1.25rem;
}

.faq__item {
  padding-block: 1.125rem;
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__item h3 {
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq__item p {
  margin-top: 0.4375rem;
  font-size: clamp(0.90625rem, 0.85rem + 0.2vw, 1rem);
  line-height: 1.65;
  color: var(--ink-700);
}

@media (min-width: 48rem) {
  .faq h2 {
    margin-bottom: 1.875rem;
  }

  .faq__item {
    padding-block: 1.5rem;
  }

  .faq__item p {
    margin-top: 0.5rem;
  }
}
