/* ============================================================
   NINE99 — Pixel Retro Edition
   Same bones as hectorrod.com. PressStart2P + Space Grotesk.
   ============================================================ */

/* --- Variables --- */
:root {
  --white:       #f5f4f0;
  --pure-white:  #ffffff;
  --black:       #0a0a0a;
  --gray-light:  #eae8e2;
  --gray-mid:    #666666;
  --gray-dark:   #333333;
  --border-color:#dddcd7;

  --size-hero:   clamp(220px, 40vw, 480px);
  --size-h2:     clamp(0.65rem, 1.8vw, 1.1rem);
  --size-h3:     clamp(0.5rem, 1.2vw, 0.7rem);
  --size-body:   1rem;
  --size-label:  0.42rem;

  --max-width:   1100px;
  --gutter:      clamp(1.5rem, 6vw, 5rem);
  --section-gap: clamp(4rem, 10vw, 8rem);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Base --- */
body {
  background: var(--white);
  color: var(--black);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--size-body);
  font-weight: 400;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--black);
}

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  letter-spacing: 0.06em;
  color: var(--black);
  text-decoration: none;
  line-height: 2;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--gray-mid);
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  max-width: 100%;
  width: 100%;
}

.hero-photo {
  width: 100%;
  height: 85svh;
  object-fit: cover;
  object-position: center 30%;
  margin-top: 52px; /* clear fixed nav */
}

.hero-text {
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
}

#hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gray-dark);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

#hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cta-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 2;
  transition: color 150ms ease;
}

.cta-link:hover {
  color: var(--gray-mid);
}

.cta-accent {
  color: var(--gray-mid);
}

.cta-accent:hover {
  color: var(--black);
}

/* ============================================================
   FULL-BLEED BANNERS
   ============================================================ */

.bleed-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.bleed-banner img {
  width: 100%;
  height: clamp(250px, 50vw, 520px);
  object-fit: cover;
}

.bleed-banner--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.bleed-banner--duo img {
  height: clamp(220px, 40vw, 480px);
}

/* ============================================================
   SECTIONS — COMMON
   ============================================================ */

section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}

.section-label {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: var(--size-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.25rem;
  line-height: 2;
}

.section-headline {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--size-h2);
  color: var(--black);
  line-height: 2;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

.section-intro {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--gray-dark);
  line-height: 1.8;
  max-width: 55ch;
  margin-bottom: 2.5rem;
}

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   THE GOODS (SHOP) — Open layout with photo grids
   ============================================================ */

#shop {
  padding-bottom: 2rem;
}

.goods-block {
  border-top: 2px solid var(--black);
  padding: 2rem 0 3rem;
}

.goods-block:last-child {
  border-bottom: 2px solid var(--black);
}

.goods-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cat-index {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--size-label);
  color: var(--gray-mid);
  line-height: 2;
  min-width: 2.5rem;
  flex-shrink: 0;
}

.cat-name {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--size-h3);
  color: var(--black);
  line-height: 2.2;
  flex: 1;
}

.cat-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--gray-mid);
  flex-shrink: 0;
}

.goods-description {
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.75;
  max-width: 55ch;
  margin-bottom: 1.5rem;
}

/* Goods photo grids */
.goods-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.goods-grid:last-child {
  margin-bottom: 0;
}

.goods-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.goods-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.goods-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid var(--black);
}

.goods-grid--3 img {
  aspect-ratio: 1 / 1;
}

.goods-grid--2 img {
  aspect-ratio: 3 / 4;
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 2px solid var(--black);
}

.gallery-grid .gallery-wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-grid .gallery-tall {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}

.gallery-follow {
  display: inline-block;
  margin-top: 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  color: var(--gray-mid);
  text-decoration: none;
  line-height: 2;
  transition: color 150ms ease;
}

.gallery-follow:hover {
  color: var(--black);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2px solid var(--black);
  flex-shrink: 0;
}

.about-body p {
  font-weight: 300;
  font-size: 1rem;
  color: var(--gray-dark);
  line-height: 1.8;
  max-width: 55ch;
  margin-bottom: 1.25rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   VISIT
   ============================================================ */

#visit {
  background: var(--gray-light);
  max-width: 100%;
  padding: var(--section-gap) var(--gutter);
}

#visit > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.visit-sub {
  font-weight: 300;
  font-size: 1rem;
  color: var(--gray-mid);
  margin-bottom: 3rem;
}

.visit-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: var(--max-width);
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.visit-heading {
  font-family: 'Press Start 2P', monospace;
  font-size: var(--size-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
  line-height: 2;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  max-width: 320px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.hours-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.day   { font-weight: 500; }
.time  { color: var(--gray-mid); font-weight: 300; }
.time.closed { color: #aaa; }

.visit-contact address {
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

.directions-link {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  color: var(--black);
  text-decoration: none;
  line-height: 2;
  margin-bottom: 2rem;
  transition: color 150ms ease;
}

.directions-link:hover {
  color: var(--gray-mid);
}

.visit-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.visit-phone,
.visit-social {
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 150ms ease;
}

.visit-phone:hover,
.visit-social:hover {
  color: var(--black);
}

.visit-map {
  width: 100%;
  min-height: 280px;
  border: 2px solid var(--black);
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem var(--gutter);
  border-top: 2px solid var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

/* ============================================================
   MOBILE (max 767px)
   ============================================================ */

@media (max-width: 767px) {
  .hero-photo {
    height: 60svh;
  }

  #hero-cta {
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .bleed-banner--duo {
    grid-template-columns: 1fr;
  }

  .bleed-banner--duo img {
    height: clamp(200px, 60vw, 340px);
  }

  .goods-grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .goods-grid--3 img:last-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .about-photo {
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-position: center 20%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .gallery-wide {
    grid-column: span 2;
  }

  .gallery-grid .gallery-tall {
    grid-row: span 1;
    aspect-ratio: 4/5;
  }

  #footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ============================================================
   DESKTOP (min 768px)
   ============================================================ */

@media (min-width: 768px) {
  .about-grid {
    flex-direction: row;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: flex-start;
  }

  .about-photo {
    max-width: 280px;
  }

  .about-body {
    flex: 1;
  }

  .visit-grid {
    flex-direction: row;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .visit-info {
    flex-shrink: 0;
  }

  .visit-map {
    flex: 1;
    min-height: 360px;
  }
}
