/* Homepage reconstruction: presentation components layered over the approved v64 baseline. */
.hero-t7-frame {
  grid-template-rows: minmax(0, 1fr);
}

.olipes-representative {
  position: relative;
  z-index: 2;
  display: block;
  background: #fbf8f4;
  color: #292929;
  border-block: 1px solid rgba(139, 106, 80, 0.26);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 420ms ease;
}

.olipes-representative:hover {
  background: #fffdf9;
}

.olipes-representative:focus-visible {
  outline: 3px solid rgba(139, 106, 80, 0.82);
  outline-offset: -4px;
}

.olipes-representative-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(250px, 0.88fr);
  align-items: center;
  padding-block: clamp(28px, 3.6vw, 42px);
}

.olipes-zone {
  min-width: 0;
  padding: 0 clamp(22px, 3vw, 42px);
}

.olipes-brand-zone {
  padding-left: 0;
}

.alnadar-zone {
  border-inline: 1px solid rgba(139, 106, 80, 0.22);
}

.olipes-original-logo {
  display: block;
  width: clamp(170px, 17vw, 235px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.olipes-zone-copy {
  margin: 0;
  max-width: 390px;
  color: #57534f;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  line-height: 1.55;
}

.alnadar-zone h2 {
  margin: 0 0 3px;
  color: #743b34;
  font-family: "Prata", var(--serif);
  font-size: clamp(1.55rem, 2.15vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.olipes-alnadar-tagline {
  margin: 0 0 9px;
  color: #8b6a50;
  font-family: "Prata", var(--serif);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.olipes-link-label {
  margin: 0 0 12px;
  color: #57534f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.olipes-website-display {
  width: 100%;
  max-width: 285px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border: 1px solid rgba(139, 106, 80, 0.46);
  background: rgba(255, 255, 255, 0.68);
  color: #5b4635;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: background-color 420ms ease, border-color 420ms ease, box-shadow 420ms ease, color 420ms ease;
}

.olipes-representative:hover .olipes-website-display,
.olipes-representative:focus-visible .olipes-website-display {
  border-color: #8b6a50;
  background: #fffdf9;
  color: #4b3829;
  box-shadow: 0 9px 22px rgba(87, 68, 49, 0.1);
}

/* One visible card frame owns the full artwork boundary for all four directions. */
.homepage-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(12px, 1.8vw, 24px);
  row-gap: clamp(12px, 1.7vw, 20px);
}

.homepage-card {
  --light-x: 48%;
  --light-y: 48%;
  position: relative;
  display: block;
  box-sizing: border-box;
  container-type: inline-size;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(139, 106, 80, 0.58);
  border-radius: 20px;
  background: #f7f3ed;
  color: #292929;
  text-decoration: none;
}

.homepage-card-artwork {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
  transform: scale(1.015);
  transform-origin: center;
  transition: transform 680ms cubic-bezier(0.18, 0.77, 0.17, 1);
  will-change: transform;
}

.homepage-card-image-pan {
  position: absolute;
  inset: 0;
  display: block;
  transform: translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0);
  will-change: transform;
}

.homepage-card-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: none;
}

/* Food art is 4:3; contain it intact on the right rather than crop products. */
.homepage-card-image-food {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 70%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.homepage-card-product-image {
  position: absolute;
  z-index: 1;
  left: 56%;
  bottom: 4%;
  display: block;
  width: 20%;
  height: 74%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 8px rgba(42, 39, 33, 0.24));
}

.homepage-card::before,
.homepage-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.homepage-card::before {
  background: linear-gradient(90deg, rgba(250, 247, 242, 0.84) 0%, rgba(250, 247, 242, 0.66) 34%, rgba(250, 247, 242, 0.26) 50%, transparent 68%);
  opacity: 1;
}

.homepage-card::after {
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: screen;
  opacity: 0;
}

.homepage-card-copy {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 50%;
  width: min(46%, 21rem);
  transform: translateY(-50%);
  color: #292929;
  pointer-events: none;
}

.homepage-card-copy h3 {
  margin: 0 0 clamp(6px, 1.4cqw, 10px);
  color: #2d2722;
  font-family: "Prata", var(--serif);
  font-size: clamp(16px, 4.4cqw, 28px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.12;
  text-wrap: pretty;
}

.homepage-card-copy p {
  margin: 0;
  color: #48413b;
  font-family: var(--sans);
  font-size: clamp(12px, 2cqw, 14px);
  font-weight: 500;
  line-height: 1.34;
  text-wrap: pretty;
}

.homepage-card-link:focus-visible {
  outline: 3px solid rgba(139, 106, 80, 0.85);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .homepage-card:hover::after,
  .homepage-card:focus-within::after {
    opacity: 0.58;
  }

  .homepage-card:hover .homepage-card-artwork,
  .homepage-card:focus-within .homepage-card-artwork {
    transform: scale(1.14);
  }
}

@media (max-width: 820px) {
  .homepage-card-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.motion-enabled .directions-page:not(.is-visible) .homepage-card {
    opacity: 0;
  }

  body.motion-enabled .directions-page.is-visible .homepage-card {
    opacity: 1;
    transition: opacity 750ms ease, filter 550ms ease;
  }

  body.motion-enabled .directions-page.is-visible .homepage-card:nth-child(2) { transition-delay: 90ms, 0ms; }
  body.motion-enabled .directions-page.is-visible .homepage-card:nth-child(3) { transition-delay: 180ms, 0ms; }
  body.motion-enabled .directions-page.is-visible .homepage-card:nth-child(4) { transition-delay: 270ms, 0ms; }
}

@media (max-width: 900px) {
  .hero-t7-frame {
    grid-template-rows: auto auto;
  }

  .olipes-representative-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-block: 28px;
  }

  .olipes-zone {
    padding-inline: 24px;
  }

  .olipes-brand-zone { padding-left: 0; }

  .alnadar-zone {
    border-right: 0;
  }

  .olipes-link-zone {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(139, 106, 80, 0.2);
  }

  .olipes-link-label { margin: 0; }
  .olipes-website-display { max-width: 290px; }

}

@media (max-width: 560px) {
  .hero-t7-frame { grid-template-rows: auto auto; }

  .olipes-representative-inner {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }

  .olipes-zone,
  .olipes-brand-zone,
  .olipes-link-zone {
    grid-column: auto;
    display: block;
    margin: 0;
    padding: 18px 0;
    border: 0;
  }

  .olipes-brand-zone { padding-top: 12px; }

  .alnadar-zone,
  .olipes-link-zone {
    border-top: 1px solid rgba(139, 106, 80, 0.2);
  }

  .olipes-original-logo { width: 190px; }
  .alnadar-zone h2 { margin-bottom: 3px; font-size: 1.65rem; }
  .olipes-alnadar-tagline { margin-bottom: 8px; }
  .olipes-link-label { margin-bottom: 11px; }
  .olipes-website-display { max-width: none; }

  /* Keep the 16:9 approved artwork intact and use the same one-frame card
     architecture at every phone width. Only the image crop and copy size adapt. */
  .homepage-card-grid {
    row-gap: 12px;
  }

  .homepage-card {
    aspect-ratio: 16 / 9;
    border-width: 1px;
    border-radius: 18px;
  }

  .homepage-card-copy {
    left: 6.5%;
    top: 50%;
    width: 48%;
  }

  .homepage-card-copy h3 {
    margin-bottom: 6px;
    font-size: clamp(16px, 4.4cqw, 18px);
    line-height: 1.1;
  }

  .homepage-card-copy p {
    font-size: 12px;
    line-height: 1.28;
  }

  .homepage-card-product-image {
    left: 58%;
    bottom: 5%;
    width: 26%;
    height: 78%;
  }

  .homepage-card-image-food {
    width: 70%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .homepage-card,
  .homepage-card-artwork,
  .homepage-card-image,
  .homepage-card::before,
  .homepage-card::after,
  .olipes-website-display {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .homepage-card-image,
  .homepage-card-image-pan,
  .homepage-card-artwork,
  .homepage-card:hover .homepage-card-artwork,
  .homepage-card:focus-within .homepage-card-artwork {
    transform: none !important;
  }
}

/* Master 10 refinement: three-zone, single-link OLIPES representative banner. */
.olipes-representative-inner {
  grid-template-columns: minmax(0, 1.02fr) minmax(205px, 0.82fr) minmax(330px, 1.2fr);
  grid-template-areas: "brand site alnadar";
  align-items: center;
  padding-block: clamp(25px, 3vw, 36px);
}

.olipes-brand-zone,
.olipes-link-zone,
.alnadar-zone {
  min-width: 0;
  padding-inline: clamp(18px, 2.15vw, 30px);
}

.olipes-brand-zone {
  grid-area: brand;
  padding-left: 0;
  border-right: 1px solid rgba(139, 106, 80, 0.3);
}

.olipes-original-logo {
  width: clamp(165px, 16vw, 220px);
  margin: 0 auto 12px;
}

.olipes-brand-zone .olipes-zone-copy {
  max-width: 340px;
  margin-inline: auto;
  text-align: center;
}

.olipes-link-zone {
  grid-area: site;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid rgba(139, 106, 80, 0.3);
  text-align: center;
}

.olipes-link-label {
  margin: 0;
  text-align: center;
}

.olipes-website-display {
  width: 100%;
  min-height: 58px;
  max-width: 280px;
  justify-content: center;
  padding: 12px 15px;
  border: 1px solid #9d805e;
  border-radius: 5px;
  background: linear-gradient(145deg, #13594e, #0b463d);
  color: #fffdf8;
  box-shadow: 0 5px 13px rgba(24, 58, 49, 0.14);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  letter-spacing: 0.035em;
  transition: background 350ms ease, border-color 350ms ease, box-shadow 350ms ease, transform 350ms ease;
}

.olipes-representative:hover .olipes-website-display,
.olipes-representative:focus-visible .olipes-website-display {
  border-color: #c6a57d;
  background: linear-gradient(145deg, #1a685a, #0d5045);
  color: #fff;
  box-shadow: 0 8px 19px rgba(24, 58, 49, 0.22);
  transform: translateY(-2px);
}

.alnadar-zone {
  grid-area: alnadar;
  border: 0;
  text-align: center;
}

.alnadar-zone h2 {
  margin: 0 0 2px;
  color: #743b34;
  font-size: clamp(1.28rem, 1.95vw, 1.72rem);
  letter-spacing: 0.012em;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
}

.olipes-alnadar-tagline {
  margin: 0 0 8px;
  text-align: center;
}

.alnadar-zone .olipes-zone-copy {
  max-width: 390px;
  margin-inline: auto;
  text-align: center;
}


@media (max-width: 560px) {
  .olipes-representative-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "site" "alnadar";
    row-gap: 0;
    padding-block: 4px;
  }

  .olipes-brand-zone,
  .olipes-link-zone,
  .alnadar-zone {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 16px 8px;
    border: 0;
    text-align: center;
  }

  .olipes-brand-zone { padding-top: 12px; }

  .olipes-link-zone,
  .alnadar-zone {
    border-top: 1px solid rgba(139, 106, 80, 0.25);
  }

  .olipes-original-logo { width: min(190px, 68vw); margin-bottom: 9px; }
  .olipes-website-display { width: min(100%, 300px); max-width: 300px; }

  .alnadar-zone { padding: 17px 4px 18px; }
  .alnadar-zone h2 { font-size: clamp(1.35rem, 6vw, 1.65rem); }
  .olipes-alnadar-tagline { margin-bottom: 7px; }

}

/* Final refinement: centered website badge, quieter food-card text wash, and balanced outer zones. */
.olipes-link-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.olipes-website-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #13594e;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.olipes-link-label,
.olipes-website-display {
  margin: 0;
}

.olipes-website-display {
  justify-content: center;
  gap: 0;
  text-align: center;
}

@media (min-width: 901px) {
  .olipes-brand-zone {
    padding-right: clamp(34px, 3vw, 42px);
  }

  .alnadar-zone {
    padding-left: clamp(34px, 3vw, 42px);
    padding-right: clamp(8px, 1vw, 14px);
  }
}

@media (max-width: 900px) {
  .olipes-link-zone {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}
