@import url("../styles.css");

.hero.hero-collection {
  position: relative;
  min-height: clamp(520px, 82vh, 660px);
  border-radius: clamp(1.6rem, 3vw, 2.8rem);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(128deg, rgba(33, 20, 12, 0.65), rgba(68, 43, 27, 0.78)),
    url("../images/collection_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 44px 80px rgba(53, 36, 23, 0.24);
}

.hero.hero-collection .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.3), transparent 55%),
    radial-gradient(circle at 78% 12%, rgba(255, 200, 140, 0.25), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero.hero-collection .hero-content {
  position: relative;
  max-width: 620px;
  padding: clamp(2.2rem, 7vw, 3.4rem);
  display: grid;
  gap: clamp(1rem, 3vw, 1.4rem);
}

.hero.hero-collection .hero-kicker {
  letter-spacing: 0.3em;
}

.hero.hero-collection .hero-cta {
  justify-self: center;
}

.achievements .section-header {
  max-width: 680px;
  margin-inline: auto;
}

.achievement-grid {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.achievement-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: clamp(1.4rem, 3vw, 2.2rem);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(111, 76, 43, 0.18);
  box-shadow: 0 32px 60px rgba(63, 44, 24, 0.14);
  display: grid;
  gap: 0.85rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.achievement-card:hover,
.achievement-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 40px 70px rgba(63, 44, 24, 0.22);
}

.achievement-card h3 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--accent-dark);
}

.achievement-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.3vw, 1.08rem);
}

.achievement-card .card-note {
  font-weight: 600;
  color: var(--accent);
}

.ingredients .section-header {
  max-width: 720px;
  margin-inline: auto;
}

.ingredient-table-wrapper {
  position: relative;
  border-radius: clamp(1.4rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(111, 76, 43, 0.2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 60px rgba(63, 44, 24, 0.12);
}

.ingredient-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 280px;
  font-size: clamp(0.96rem, 2.2vw, 1.05rem);
}

.ingredient-table thead {
  background: linear-gradient(90deg, rgba(255, 243, 226, 0.95), rgba(247, 224, 194, 0.95));
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ingredient-table th,
.ingredient-table td {
  padding: clamp(1rem, 3vw, 1.4rem);
  text-align: left;
  border-bottom: 1px solid rgba(111, 76, 43, 0.12);
}

.ingredient-table tbody tr:last-of-type th,
.ingredient-table tbody tr:last-of-type td {
  border-bottom: none;
}

.ingredient-table tbody tr:nth-of-type(even) {
  background: rgba(255, 250, 240, 0.7);
}

.ingredient-table th[scope="row"] {
  font-weight: 700;
  color: var(--accent-dark);
  font-family: "Marcellus", serif;
}

.ingredient-table td {
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero.hero-collection {
    min-height: clamp(480px, 88vh, 560px);
  }

  .ingredient-table-wrapper {
    border-radius: clamp(1.1rem, 4vw, 1.8rem);
  }
}

@media (max-width: 640px) {
  .hero.hero-collection .hero-content {
    padding: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero.hero-collection .hero-cta {
    width: 100%;
  }

  .hero.hero-collection {
    padding: clamp(1rem, 6vw, 1.8rem);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero.hero-collection .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(1rem, 4vw, 1.6rem);
    padding: 0;
    width: min(100%, 360px);
    max-width: 360px;
    margin: 0 auto;
  }

  .hero.hero-collection .hero-media,
  .hero.hero-collection .hero-content {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .hero.hero-collection .hero-media {
    display: flex;
    justify-content: center;
  }

  .hero.hero-collection .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: clamp(0.8rem, 4vw, 1.2rem);
    padding: clamp(1.2rem, 5vw, 1.6rem);
  }

  .hero.hero-collection .hero-media {
    display: block;
  }

  .hero.hero-collection .hero-content {
    background: rgba(22, 14, 9, 0.82);
    border-radius: clamp(1rem, 4vw, 1.6rem);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
    text-align: center;
  }

  .ingredient-table {
    display: block;
  }

  .ingredient-table thead {
    display: none;
  }

  .ingredient-table tbody {
    display: grid;
    gap: clamp(0.9rem, 4vw, 1.2rem);
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .ingredient-table tr {
    display: grid;
    gap: 0.5rem;
    border: 1px solid rgba(111, 76, 43, 0.16);
    border-radius: 1.2rem;
    padding: clamp(1rem, 4vw, 1.4rem);
    background: rgba(255, 255, 255, 0.95);
  }

  .ingredient-table th[scope="row"],
  .ingredient-table td {
    border: none;
    padding: 0;
  }

  .ingredient-table td {
    font-size: 0.95rem;
  }

  .ingredient-table tr:nth-of-type(even) {
    background: rgba(255, 248, 238, 0.95);
  }
}

