/* Home composition: existing F2 storefront world, assets and motion.
   Route-gated by renderHead; every rule also stays under the home landmark. */

.nachon-home .hero-media { min-height: 36rem; }
.nachon-home .hero-image { object-position: 58% 55%; }

.nachon-home .hero-content {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.25rem 3rem;
}

.nachon-home .hero-content .anniversary-badge {
  position: static;
  justify-self: start;
  max-width: 17rem;
  margin: 0;
  padding: 0.625rem 0.75rem;
  gap: 0.75rem;
}

.nachon-home .home-hero-copy { min-width: 0; max-width: 53rem; }

.nachon-home .hero-content h1 {
  max-width: 27ch;
  margin-bottom: 1.25rem;
  font-size: var(--text-h1);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.nachon-home .hero-content .home-hero-subtitle {
  max-width: 53ch;
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #fff;
}

.nachon-home .hero-ctas { align-items: center; gap: 0.75rem 1rem; }

.nachon-home .hero-ctas :is(.btn-cta, .btn-secondary),
.nachon-home .home-cta-actions :is(.btn-cta, .btn-secondary) {
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  line-height: 1.35;
}

.nachon-home .home-directions {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.25rem;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.nachon-home .home-directions:hover {
  color: var(--nachon-yellow);
  text-decoration-thickness: 2px;
}

.nachon-home .hero-content .hero-hours {
  max-width: none;
  margin: 1.25rem 0 0;
  color: var(--nachon-yellow);
  font-size: 1.125rem;
  line-height: 1.5;
}

.nachon-home .hero-ctas a:focus-visible,
.nachon-home .home-cta-actions a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* Keep the five links in reading order: one featured department, four peers. */
.nachon-home .categories { padding: 3.5rem 1.25rem 4.5rem; }
.nachon-home .categories > h2 { margin-bottom: 2rem; }
.nachon-home .categories-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }

.nachon-home .category-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.nachon-home .category-card-image { height: auto; aspect-ratio: 16 / 10; }

.nachon-home .category-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  align-content: start;
  gap: 0.5rem 0.75rem;
  padding: 1.25rem;
}

.nachon-home .category-card-body h3 {
  grid-column: 1;
  margin: 0;
  font-size: var(--text-h3);
  line-height: 1.2;
  text-wrap: balance;
}

.nachon-home .category-card-body p {
  grid-column: 1;
  max-width: 36ch;
  margin: 0;
  line-height: 1.5;
}

.nachon-home .category-card-arrow {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  transform: none;
}

.nachon-home .category-card:first-child { border-color: var(--nachon-blue); }
.nachon-home .category-card:first-child .category-card-image { object-position: 58% center; }

.nachon-home .category-card:first-child .category-card-body {
  padding: 1.5rem;
  border-top-color: var(--nachon-yellow);
  background: var(--nachon-blue-dark);
}

.nachon-home .category-card:first-child :is(h3, p) { color: #fff; }
.nachon-home .category-card:first-child h3 { font-size: var(--text-h2); }
.nachon-home .category-card:first-child .category-card-arrow { color: var(--nachon-yellow); }

.nachon-home .category-card:focus-visible {
  outline: 3px solid var(--nachon-blue-dark);
  outline-offset: 4px;
}

/* A full-width sign at the end of the page, using existing business copy. */
.nachon-home .cta-band {
  max-width: none;
  margin-top: 2rem;
  padding: 0;
  color: #fff;
  background: var(--nachon-blue);
  text-align: left;
}

.nachon-home .home-cta-inner {
  display: grid;
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.nachon-home .home-cta-copy h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: var(--text-h2);
}

.nachon-home .cta-band-lead {
  max-width: 36ch;
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 400;
}

.nachon-home .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.nachon-home .home-cta-actions .btn-secondary { color: #fff; border-color: #fff; }
.nachon-home .home-cta-actions .btn-secondary:hover { color: var(--nachon-blue-dark); background: #fff; }

@media (min-width: 40rem) {
  .nachon-home .hero-content { gap: 1.5rem; padding: 2rem 1.5rem 3.5rem; }
  .nachon-home .hero-content .anniversary-badge { justify-self: end; }
  .nachon-home .categories { padding: 4rem 1.5rem 5rem; }
  .nachon-home .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nachon-home .category-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto;
  }

  .nachon-home .category-card:first-child .category-card-image { height: 100%; aspect-ratio: 4 / 3; }
  .nachon-home .category-card:first-child .category-card-body { align-content: center; border-top: 0; }
  .nachon-home .home-cta-inner { padding: 4rem 1.5rem; }
}

@media (min-width: 64rem) {
  .nachon-home .hero-media { min-height: 40rem; }
  .nachon-home .hero-image { object-position: center 58%; }
  .nachon-home .hero-content { padding-top: 2.5rem; padding-bottom: 4rem; }

  .nachon-home .categories-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
  }

  .nachon-home .category-card:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .nachon-home .category-card:first-child .category-card-image { min-height: 0; aspect-ratio: auto; }
  .nachon-home .category-card:first-child .category-card-body {
    padding: 2rem 1.5rem;
    border-top: 3px solid var(--nachon-yellow);
  }

  .nachon-home .home-cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
    padding-block: 4.5rem;
  }

  .nachon-home .home-cta-actions { justify-content: end; }
}

@media (max-width: 39.99rem) {
  .nachon-home .hero-ctas :is(.btn-cta, .btn-secondary),
  .nachon-home .home-cta-actions a { width: 100%; }
  .nachon-home .hero-ctas .home-directions { padding-left: 0; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .nachon-home .category-card:hover .category-card-arrow { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .nachon-home .category-card-arrow,
  .nachon-home .category-card:is(:hover, :focus-visible) .category-card-arrow {
    transition: none;
    transform: none;
  }
  .nachon-home .spotlight::after { display: none; }
}
