/* =====================================================
   HEISEI MART  
   ===================================================== */
:root {
  --background: #0c0f12;
  --bg: #0f1115;
  --surface: rgba(15, 20, 24, 0.78);
  --surface-2: #1f2430;
  --text: #f5f7f8;
  --muted: #c4c9cc;
  --accent: #c62828;
  --green: #52a866;
  --green-dark: #3e8751;
  --border: rgba(255, 255, 255, 0.16);
  --hero-max-width: 1280px;
  --radius: 16px;
}

/* =====================================================
   BASE RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

p {
  color: var(--muted);
}

/* =====================================================
   GLOBAL LAYOUT SYSTEM
===================================================== */

section {
  width: 100%;
  padding: 5rem 0;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* =====================================================
   LINKS
===================================================== */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =====================================================
   FLOATING SOCIAL BAR
===================================================== */
.floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;

    display: flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.6rem 0.8rem;

    background: rgba(15,17,21,0.85);
    backdrop-filter: blur(12px);

    border-radius: 999px;
    z-index: 100;
}

.floating img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    cursor: pointer;
    transition: transform .2s;
}

.floating .logo {
    width: 4.5rem;
    height: auto;
}

@media (max-width: 768px){
  .floating{
    top: auto;
    bottom: 2rem;
  }
}

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


.site-hero {
  position: relative;
  min-height: 720px;
  height: 92svh;
  max-height: 920px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Replace this URL with your chosen store photograph. */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -3;

  background-image: url("images/heisei-hero.jpg");
  background-size: cover;
  background-position: center 45%;

  transform: scale(1.02);
}

/*
  The layered overlay keeps the left-hand text readable while allowing
  more of the photograph to remain visible on the right.
*/
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(7, 10, 12, 0.96) 0%,
      rgba(7, 10, 12, 0.88) 35%,
      rgba(7, 10, 12, 0.48) 68%,
      rgba(7, 10, 12, 0.2) 100%
    ),
    linear-gradient(
      0deg,
      rgba(7, 10, 12, 0.78) 0%,
      transparent 40%
    );
}

.hero-nav {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 48px), var(--hero-max-width));
  min-height: 88px;

  display: flex;
  align-items: center;
  gap: 32px;

  transform: translateX(-50%);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 104px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;

  width: 100%;
  height: 2px;

  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-content {
  width: min(calc(100% - 48px), var(--hero-max-width));
  margin-inline: auto;
  padding-top: 88px;
}

.hero-content > * {
  max-width: 690px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 18px;

  color: #9bd3a7;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--green);
}

.hero-content h1 {
  margin: 0;

  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-description {
  margin: 28px 0 0;
  max-width: 590px;

  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 36px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;

  color: var(--text);
  font-weight: 800;
  text-decoration: none;

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-dark);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(9, 13, 16, 0.55);
  backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(20, 26, 30, 0.72);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0;

  margin-top: 54px;
  padding: 18px 0;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-detail {
  min-width: 170px;
  padding: 4px 28px;
  border-right: 1px solid var(--border);
}

.hero-detail:first-child {
  padding-left: 0;
}

.hero-detail:last-child {
  border-right: 0;
}

.detail-label {
  display: block;
  margin-bottom: 5px;

  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-detail strong,
.hero-detail a {
  color: var(--text);
  font-size: 0.96rem;
  text-decoration: none;
}

.hero-detail a:hover,
.hero-detail a:focus-visible {
  color: #9bd3a7;
}

.hero-scroll {
  position: absolute;
  right: max(24px, calc((100vw - var(--hero-max-width)) / 2));
  bottom: 28px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Tablet */
@media (max-width: 900px) {
  .site-hero {
    min-height: 720px;
    height: auto;
  }

  .hero-nav {
    width: min(calc(100% - 32px), var(--hero-max-width));
    min-height: 76px;
  }

  .nav-links {
    display: none;
  }

  .nav-directions {
    margin-left: auto;
  }

  .hero-content {
    width: min(calc(100% - 32px), var(--hero-max-width));
    padding-top: 145px;
    padding-bottom: 100px;
  }

  .hero-content h1 {
    max-width: 650px;
  }

  .hero-details {
    max-width: 600px;
  }

  .hero-detail {
    flex: 1 1 180px;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .site-hero {
    min-height: 760px;
  }

  .brand-logo {
    width: 82px;
  }

  .nav-directions {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.85rem;
  }

  .hero-background {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(7, 10, 12, 0.97) 0%,
        rgba(7, 10, 12, 0.86) 58%,
        rgba(7, 10, 12, 0.42) 100%
      );
  }

  .hero-content {
    align-self: end;
    padding-top: 190px;
    padding-bottom: 80px;
  }

  .hero-content h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-details {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .hero-detail,
  .hero-detail:first-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero-detail:last-child {
    border-bottom: 0;
  }

  .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* =====================================================
   NEWS SECTION (CAROUSEL CARDS)
===================================================== */

.news {
  background: var(--surface);
}

.news-scroll {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.news-item {
  flex: 0 0 320px;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s ease;
}

.news-item:hover {
  transform: translateY(-6px);
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-item p {
  padding: 1rem;
}

/* =====================================================
   SPECIALS / PRODUCTS GRID
===================================================== */

.specials {
  text-align: center;
}

.spec_prods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  width: min(1100px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

.product-name {
  margin-top: 0.75rem;
  font-weight: 600;
}

.product-price {
  margin-top: 0.4rem;
  color: var(--accent);
}

/* =====================================================
   GALLERY SECTION
===================================================== */
.gallery-section {
  display: flex;
  flex-direction: column;

  width: 100%;
}

.gallery-section > .container{
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gallery-grid {
    width: 90%;
    margin: 2rem auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    border-radius: 12px;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

/* =====================================================
   SOCIAL / VISIT SECTIONS
===================================================== */

.social-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
}

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

footer {
  width: 100%;
  padding: 2rem;
  margin-top: 5rem;
  background: #0b0d10;
  text-align: center;
  color: var(--muted);
}
