/* =========================
   AY DISCOVERY SETS
========================= */

.ay-discovery {
  padding: 42px 24px 84px;

  background: #FFF8F1;

  font-family: "Manrope", sans-serif;
}

.ay-discovery-inner {
  max-width: 1120px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 28px;
}

/* =========================
   CARD BASE
========================= */

.ay-discovery-card {
  position: relative;

  overflow: hidden;

  min-height: 250px;

  border-radius: 4px;

  box-shadow: 0 5px 18px var(--ay-shadow);
}

/* =========================
   IMAGE CARDS
========================= */

.ay-discovery-card--image {
  background-size: cover;
  background-repeat: no-repeat;
}

/* MATCHA */

.ay-discovery-card--matcha {
  background-image: url("https://images.unsplash.com/photo-1515823064-d6e0c04616a7?auto=format&fit=crop&w=1200&q=80");

  background-position: center 38%;
}

/* MATCHA STARTER */

.ay-discovery-card--starter {
  background-image: url("https://images.unsplash.com/photo-1536256263959-770b48d82b0a?auto=format&fit=crop&w=1200&q=80");

  background-position: center 42%;
}

/* OVERLAY */

.ay-discovery-card--image::after {
  content: "";

  position: absolute;

  inset: auto 0 0;

  height: 46%;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(30, 15, 9, 0) 0%,
    rgba(30, 15, 9, 0.48) 100%
  );
}

/* =========================
   CONTENT CARDS
========================= */

.ay-discovery-card--content {
  padding: 28px 32px 28px;

  background:
    linear-gradient(
      rgba(255, 248, 241, 0.90),
      rgba(255, 248, 241, 0.90)
    ),
    url("https://images.unsplash.com/photo-1506368249639-73a05d6f6488?auto=format&fit=crop&w=1000&q=80");

  background-size: cover;
  background-position: center;

  display: flex;
  flex-direction: column;
}

/* =========================
   HEADLINES
========================= */

.ay-discovery-card h3 {
  margin: 0 0 10px;

  color: #6F7F2E;

  font-size: clamp(22px, 1.9vw, 30px);

  line-height: 1.08;
  font-weight: 800;

  letter-spacing: -0.04em;
}

.ay-discovery-card h3 span {
  color: var(--ay-text);
}

/* =========================
   TEXT
========================= */

.ay-discovery-card > p {
  margin: 0 0 20px;

  color: var(--ay-text);

  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

/* =========================
   PRICES
========================= */

.ay-discovery-prices {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  margin-bottom: 22px;
}

.ay-discovery-prices > div {
  padding-right: 24px;
}

.ay-discovery-prices > div + div {
  padding-left: 24px;

  border-left: 1px solid rgba(58, 31, 23, 0.22);
}

.ay-discovery-prices p {
  margin: 0 0 7px;

  color: var(--ay-text);

  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}

.ay-discovery-prices strong {
  display: block;

  color: var(--ay-text);

  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

/* =========================
   ACTIONS
========================= */

.ay-discovery-actions {
  display: grid;

  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(0, 1fr);

  gap: 12px;

  margin-top: auto;
}

/* =========================
   BUTTONS
========================= */

.ay-discovery-main-btn,
.ay-discovery-secondary-btn,
.ay-discovery-overlay-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  min-height: 48px;

  text-decoration: none;

  border-radius: 5px;

  font-size: 15px;
  line-height: 1.08;
  font-weight: 800;

  text-align: center;

  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

/* MAIN BUTTON */

.ay-discovery-main-btn {
  padding: 0 24px;

  background-color: var(--ay-main);

  color: var(--ay-white);

  box-shadow: 0 5px 12px var(--ay-button-shadow);
}

/* SECONDARY BUTTON */

.ay-discovery-secondary-btn {
  padding: 0 20px;

  background: rgba(255, 252, 248, 0.9);

  color: var(--ay-text);

  border: 1px solid rgba(80, 48, 32, 0.12);

  box-shadow: 0 4px 12px rgba(45, 25, 18, 0.10);
}

/* IMAGE BUTTON */

.ay-discovery-overlay-btn {
  position: absolute;

  z-index: 2;

  left: 50%;
  bottom: 20px;

  transform: translateX(-50%);

  padding: 0 28px;

  background-color: var(--ay-main);

  color: var(--ay-white);

  white-space: nowrap;

  box-shadow: 0 5px 12px var(--ay-button-shadow);
}

/* =========================
   HOVER
========================= */

.ay-discovery-main-btn:hover,
.ay-discovery-overlay-btn:hover {
  background-color: var(--ay-main-hover);

  color: var(--ay-white);

  box-shadow: 0 7px 16px rgba(63, 31, 18, 0.26);
}

.ay-discovery-main-btn:hover {
  transform: translateY(-1px);
}

.ay-discovery-overlay-btn:hover {
  transform: translateX(-50%) translateY(-1px);
}

.ay-discovery-secondary-btn:hover {
  background: var(--ay-white);

  color: var(--ay-text);

  transform: translateY(-1px);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .ay-discovery {
    padding: 28px 18px 64px;
  }

  .ay-discovery-inner {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .ay-discovery-card {
    min-height: 230px;
  }

  .ay-discovery-card--content {
    padding: 24px 24px 26px;
  }

  .ay-discovery-card h3 {
    font-size: 23px;
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .ay-discovery-actions {
    grid-template-columns: 1fr;
  }

  .ay-discovery-overlay-btn {
    width: calc(100% - 48px);

    padding: 0 18px;
  }
}