/* ==========================================================================
   Matjip — Korean BBQ & Chicken
   Design tokens
   ========================================================================== */

:root {
  /* Dark surfaces */
  --ink-950: #0c0b0b; /* header, footer, hero base */
  --ink-900: #151313; /* dark section background */
  --ink-800: #211d1d; /* cards/tiles on dark */
  --line-dark: #3a3434;

  /* Brand red */
  --red-600: #ae1515; /* solid buttons, borders, rules */
  --red-700: #8c1111; /* hover; red text on light surfaces */
  --red-400: #e04a4a; /* red text/icons on dark surfaces only */

  /* Light band */
  --paper: #f7f4f1;
  --card: #ffffff;
  --line-light: #e6e0db;

  /* Text */
  --text-on-dark: #f4f1ee;
  --text-on-dark-muted: #b9b2ae;
  --text: #201c1a;
  --text-muted: #5d5651;

  /* Type */
  --font-display: "Oswald", "Roboto", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(12, 11, 11, 0.1);
  --shadow-md: 0 8px 24px rgba(12, 11, 11, 0.14);
  --shadow-red: 0 10px 26px rgba(174, 21, 21, 0.25);
  --container: 1100px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--ink-900);
  color: var(--text-on-dark);
}

img {
  max-width: 100%;
}

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

.section--light :focus-visible {
  outline-color: var(--red-600);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--ink-950);
  border-bottom: 3px solid var(--red-600);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.back-link {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  text-align: right;
  max-width: 60%;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 62vh, 640px);
  overflow: hidden;
  background-color: var(--ink-950);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 11, 11, 0.68) 0%,
    rgba(12, 11, 11, 0.5) 45%,
    rgba(12, 11, 11, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  padding: var(--space-7) var(--space-4);
  max-width: 760px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.hero__location {
  display: block;
  margin-top: var(--space-2);
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.hero__tagline {
  margin: var(--space-3) 0 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 300px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn p {
  margin: 0;
}

.btn p + p {
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.85;
}

.btn__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}

.btn--primary {
  background-color: var(--red-600);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background-color: var(--red-700);
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Online ordering not available yet */
.btn--disabled {
  background-color: var(--line-dark);
  color: var(--text-on-dark-muted);
  cursor: not-allowed;
}

/* ==========================================================================
   Light band (store pages: notice, hours, info)
   ========================================================================== */

.section--light {
  background-color: var(--paper);
  color: var(--text);
  padding: var(--space-8) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.notice-card,
.holiday-note {
  background-color: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--red-600);
  width: 100%;
  max-width: 820px;
  margin: 0;
  padding: var(--space-6);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
  word-wrap: break-word;
  color: var(--text);
}

.notice-card strong,
.holiday-note strong {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-700);
}

.notice-card em,
.holiday-note em {
  display: block;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 500;
}

.notice {
  margin: 0;
  max-width: 820px;
  color: var(--red-700);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
}

/* Store hours */
.hours-card {
  background-color: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 560px;
  padding: var(--space-6);
}

.hours-card h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.hours-card h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 10px auto 0;
  background-color: var(--red-600);
  border-radius: 2px;
}

.day-time {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 1.05rem;
}

.day-time:last-child {
  border-bottom: none;
}

.day-time .day {
  font-weight: 700;
  color: var(--text);
}

.day-time .time {
  color: var(--red-700);
  font-weight: 500;
  text-align: right;
}

/* Store information */
.info-card {
  background-color: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 820px;
  padding: var(--space-6);
  text-align: center;
  line-height: 1.6;
}

.info-card h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text);
}

.info-card p {
  margin: var(--space-2) 0;
  color: var(--text);
}

.info-card b {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-700);
}

.info-card a[href^="tel:"] {
  color: var(--red-700);
  font-weight: 700;
  text-decoration: none;
}

.info-card a[href^="tel:"]:hover {
  text-decoration: underline;
}

.map-embed {
  max-width: 640px;
  margin: var(--space-5) auto 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Dark sections (galleries, locations)
   ========================================================================== */

.section--dark {
  background-color: var(--ink-900);
  color: var(--text-on-dark);
  padding: var(--space-8) var(--space-4);
}

.section--dark .container {
  max-width: var(--container);
  margin: 0 auto;
}

.section--dark h2 {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section--dark h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  background-color: var(--red-600);
  border-radius: 2px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.gallery__item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Portrait storefront shots: keep the signage in frame */
.gallery__item--tall img {
  object-position: center 35%;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

/* ==========================================================================
   Location selector (landing page)
   ========================================================================== */

.section--locations {
  background-color: var(--ink-900);
  color: var(--text-on-dark);
  padding: var(--space-7) var(--space-4) var(--space-8);
}

.location-select {
  margin: 0 auto var(--space-6);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.location-select span {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.location-select::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: var(--space-4) auto 0;
  background-color: var(--red-600);
  border-radius: 2px;
}

.location-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
}

.location-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  padding: var(--space-6) var(--space-5);
  background-color: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.location-card:not(.disabled):hover {
  transform: translateY(-4px);
  border-color: var(--red-600);
  box-shadow: var(--shadow-red);
}

.icon-medallion {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background-color: var(--red-600);
  color: #ffffff;
}

.icon-medallion svg {
  width: 44px;
  height: 44px;
}

.location-card .city {
  margin: var(--space-1) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.location-card .street {
  margin: var(--space-1) 0 var(--space-4);
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.location-card .cta {
  width: 100%;
  margin: auto 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-400);
}

.location-card .coming-soon {
  margin: auto 0 0;
  padding: 6px 16px;
  background-color: var(--red-600);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A location that hasn't opened yet */
.location-card.disabled {
  cursor: not-allowed;
  color: var(--text-on-dark-muted);
}

.location-card.disabled .icon-medallion {
  background-color: var(--line-dark);
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--ink-950);
  border-top: 3px solid var(--red-600);
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--text-on-dark-muted);
}

.site-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-3);
}

.site-footer p {
  margin: var(--space-2) 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--text-on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red-400);
  text-decoration: underline;
}

.site-footer .copyright {
  margin-top: var(--space-4);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .site-header__inner {
    height: 56px;
  }

  .brand img {
    height: 38px;
  }

  .section--light,
  .section--dark {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

@media (max-width: 480px) {
  .back-link {
    font-size: 0.8rem;
  }

  .hero {
    min-height: 480px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    min-width: 0;
    width: min(100%, 320px);
    font-size: 1.05rem;
  }

  .section--light {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .notice-card,
  .holiday-note,
  .hours-card,
  .info-card {
    padding: var(--space-5) var(--space-4);
  }

  .day-time {
    font-size: 0.95rem;
  }

  /* Split hours stack on their own lines on narrow screens */
  .day-time .time-segment {
    display: block;
  }

  .location-card {
    width: 100%;
    max-width: 340px;
  }
}
