/*
 * Homepage-only composition: the hero split and the alternating
 * media/content sections. Everything reusable lives in base.css; this file
 * is loaded as a module stylesheet (layoutcontract.PageMeta.Styles) by the
 * homepage alone.
 */

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: var(--space-7);
}

.hero-content,
.hero-newsletter {
  min-width: 0;
}

.media-shell {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: var(--space-7);
}

.media-content {
  min-width: 0;
}

.media-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.media-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--text-muted);
}

.contact-details a {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .hero-shell,
  .media-shell {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .media-shell {
    grid-template-areas: "image" "content";
  }

  .media-side { grid-area: image; }
  .media-content { grid-area: content; }
}

/*
 * Quick-nav honeycomb: the four links moved out of the primary nav, styled
 * as badges between the hero and the variant section. Kept to one limited
 * component per DESIGN.md #23/#6 -- the hexagon appears here as a detail,
 * not as the shape of every card or button. Each badge is two stacked
 * hexagon clips (dark outer "cell wall", brand-yellow inner fill), echoing
 * the black+yellow comb motif from the logo (DESIGN.md #2).
 */
.quicknav .shell {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.honeycomb-nav {
  --hex-w: 156px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-5);
  /* max-width: 640px; */
  margin-inline: auto;
}

.honeycomb-item {
  flex: 0 0 auto;
}

.hex {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--hex-w);
  aspect-ratio: 1 / 0.866;
  background: var(--color-ink-950);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.hex::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--color-brand-yellow-500);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.hex-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-5);
  text-align: center;
}

.hex-label {
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink-950);
  line-height: 1.25;
}

.hex:hover,
.hex:focus-visible {
  transform: translateY(-6px);
  filter: drop-shadow(0 10px 0 rgba(17, 16, 11, 0.16));
  outline: none;
}

/* clip-path clips a normal outline away, so the focus ring is faked with a
   stacked drop-shadow glow tracing the hexagon's own alpha shape instead --
   drop-shadow() takes no spread param, so a ring needs blur, not spread */
.hex:focus-visible {
  filter:
    drop-shadow(0 10px 0 rgba(17, 16, 11, 0.16))
    drop-shadow(0 0 3px var(--color-brand-yellow-700))
    drop-shadow(0 0 3px var(--color-brand-yellow-700));
}

@media (prefers-reduced-motion: reduce) {
  .hex { transition: none; }
  .hex:hover, .hex:focus-visible { transform: none; }
}

@media (max-width: 640px) {
  .honeycomb-nav {
    --hex-w: 124px;
    gap: var(--space-5) var(--space-4);
  }

  .hex-label { font-size: var(--text-xs); }
}
