/* ==========================================================================
   Home page
   ========================================================================== */

/* --- Hero ---
   Kept compact on purpose so the products (next section) are visible
   as soon as the store opens. */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 42vh, 420px);
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  overflow: hidden;
  color: var(--color-cream-50);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: hero-zoom 14s var(--ease-out) both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(31 19 13 / 0.15) 0%, rgb(31 19 13 / 0.1) 35%, rgb(31 19 13 / 0.82) 100%),
    linear-gradient(90deg, rgb(31 19 13 / 0.55) 0%, rgb(31 19 13 / 0) 65%);
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero__content {
  padding-block: var(--space-7) clamp(1.75rem, 4vh, 2.75rem);
  animation: hero-in 1.1s var(--ease-out) both 0.15s;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero .eyebrow {
  color: var(--color-gold-500);
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  color: var(--color-cream-50);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold-300);
}

.hero__text {
  max-width: 44ch;
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: rgb(251 248 242 / 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* Phones: keep both hero buttons on one line to save height */
@media (max-width: 479px) {
  .hero__text {
    font-size: var(--text-base);
  }

  .hero__actions .btn {
    padding-inline: var(--space-4);
  }
}

/* --- Products section directly under the hero --- */
.collection {
  padding-block: var(--space-6) var(--section-padding);
}

.collection .collection__header {
  margin-bottom: var(--space-5);
}

.collection h2 {
  font-size: var(--text-2xl);
}

/* Square product photos on the home page so whole cards fit on a laptop screen */
.collection .product-card__media {
  aspect-ratio: 1 / 1;
}

/* --- Trust strip --- */
/* Vertical padding lives on the section: reset.css zeroes padding on ul[role="list"],
   which has higher specificity than .trust-strip__list. */
.trust-strip {
  padding-block: var(--space-6);
  background: var(--color-green-700);
  color: var(--color-cream-50);
}

.trust-strip__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
}

@media (min-width: 900px) {
  .trust-strip {
    padding-block: var(--space-7);
  }

  .trust-strip__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-strip__item {
    justify-content: center;
  }
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
}

.trust-strip__item svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--color-gold-500);
}

.trust-strip__item strong {
  display: block;
  font-weight: 600;
}

.trust-strip__item span {
  color: rgb(251 248 242 / 0.72);
  font-size: var(--text-sm);
}

/* --- Wellness --- */
.wellness__text {
  margin-block: var(--space-5) var(--space-6);
}

/* --- Our roots (full-bleed image with card + map of Colombia) --- */
.roots__content {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 900px) {
  .roots__content {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: var(--space-8);
  }
}

.roots__map .origin-map {
  max-width: 360px;
}

.roots {
  position: relative;
  padding-block: clamp(5rem, 12vw, 10rem);
  overflow: hidden;
  isolation: isolate;
}

.roots__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roots__card {
  max-width: 520px;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-lg);
  background: rgb(251 248 242 / 0.95);
  box-shadow: var(--shadow-lg);
}

.roots__card h2 {
  margin-bottom: var(--space-4);
}

.roots__card p {
  color: var(--color-text-muted);
}

.roots__features {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-5) var(--space-6);
}

.roots__features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
}

.roots__features svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--color-green-700);
  color: var(--color-cream-50);
}

/* --- Collection --- */
.collection__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

/* --- Founder --- */
.founder__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.founder__media::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0;
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg);
  background: linear-gradient(180deg, var(--color-beige-200), var(--color-earth-300));
}

.founder__media img {
  position: relative;
  width: min(100%, 440px);
  height: auto;
}

.founder h2 {
  margin-bottom: var(--space-5);
}

.founder__text p:not(.quote):not(.founder__signature) {
  color: var(--color-text-muted);
}

.founder__signature {
  font-weight: 600;
}

.founder__signature span {
  display: block;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Final CTA --- */
.cta {
  padding-block: var(--section-padding);
  background:
    radial-gradient(circle at 50% 0%, rgb(226 168 51 / 0.18), transparent 55%),
    var(--color-cacao-900);
  color: var(--color-cream-50);
  text-align: center;
}

.cta__inner img {
  margin: 0 auto var(--space-5);
}

.cta h2 {
  color: var(--color-cream-50);
  margin-bottom: var(--space-4);
}

.cta p {
  color: rgb(251 248 242 / 0.78);
}

.cta__actions {
  justify-content: center;
}
