/* ============================================================
   Mehman Saraye — Public Site Styles
   Carries Phase 1 dark green design tokens from styles.css
   plus new utility classes for dynamic menu sections.
   ============================================================ */

:root {
  --bg: #0d2b1a;
  --surface: #163324;
  --text: #e4f2e6;
  --muted: #8ab898;
  --primary: #3dba6e;
  --primary-dark: #2a8a4f;
  --border: #2a4d35;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  font-family: "Noto Sans JP", sans-serif;
}

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

body {
  background: linear-gradient(180deg, #0d2b1a 0%, #091f12 100%);
  color: var(--text);
}

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

/* ============================================================
   Bilingual toggle — body class controls visibility
   Default: lang-jp (Japanese shown, English hidden)
   ============================================================ */

body.lang-en .jp {
  display: none;
}

body.lang-jp .en {
  display: none;
}

/* ============================================================
   Layout shells (Phase 1 carry-forward)
   ============================================================ */

.page-shell {
  width: min(980px, 100% - 32px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.hero-copy {
  text-align: center;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 14px;
}

.tagline {
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto;
}

.content-card,
.info-card,
.actions {
  margin-top: 18px;
}

.content-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin-bottom: 10px;
}

.content-card p,
.info-card a,
.footer p {
  line-height: 1.7;
}

.info-grid {
  display: grid;
  gap: 18px;
}

.info-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-bottom: 10px;
}

.address-link,
.phone-link,
.action-btn {
  color: inherit;
  text-decoration: none;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.action-btn.primary {
  background: var(--primary);
  color: #fff;
}

.action-btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.footer {
  width: min(980px, 100% - 32px);
  margin: 0 auto;
  padding: 28px 0 36px;
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.footer-info {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.footer-phone {
  margin-top: 6px;
}

.footer-phone a {
  color: var(--muted);
  text-decoration: none;
}

.social-tiles {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.social-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-tile:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.social-tile svg {
  display: block;
  width: 22px;
  height: 22px;
}

.social-tile--twitter {
  border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
  .footer-row {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .footer-info {
    text-align: center;
  }

  .social-tiles {
    justify-content: center;
  }
}

/* ============================================================
   Dynamic menu section utility classes (Plan 02-09)
   ============================================================ */

.menu-type-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.menu-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.menu-item-row:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-weight: 600;
}

.menu-item-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.menu-item-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  align-self: start;
}

.date-display {
  text-align: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.no-menu-notice {
  text-align: center;
  color: var(--muted);
  padding: 32px;
  font-style: italic;
}

.special-set-note {
  margin: 28px 0 8px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  background: rgba(61, 186, 110, 0.08);
  border: 1px solid rgba(61, 186, 110, 0.25);
  border-radius: 8px;
}

.whatsapp-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 20px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-share:hover {
  background: #1ebe5d;
}

/* ============================================================
   Responsive (Phase 1 carry-forward)
   ============================================================ */

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 320px 1fr;
    padding: 48px;
  }

  .hero-copy {
    text-align: left;
  }

  .tagline {
    margin: 0;
  }

  .info-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ============================================================
   Phase 3 — Navigation bar (D-01, D-02)
   ============================================================ */

:root {
  --nav-h: 60px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, 100% - 32px);
  margin: 0 auto;
  height: 60px;
  gap: 16px;
}

/* Left: logo + restaurant name as one clickable unit */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Right: links + controls grouped */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  list-style: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-mobile-panel {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px;
}

.nav-mobile-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile-panel a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-brand-name {
    display: none;
  }
}

@media (min-width: 768px) {
  .nav-mobile-panel {
    display: none !important;
  }
}

/* ============================================================
   Phase 3 — Hero section (D-03, D-04)
   ============================================================ */

.hero-section {
  text-align: center;
  padding: 48px 0 32px;
}

.hero-logo {
  width: min(195px, 45vw);
  margin: 0 auto 24px;
}

.hero-tagline {
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 24px;
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* ============================================================
   Phase 3 — Info strip (D-05)
   ============================================================ */

.info-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 24px 0;
}

.info-strip-item {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

/* ============================================================
   Phase 3 — Tab bar for /menu page (D-07)
   ============================================================ */

.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 12px 20px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.tab-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============================================================
   Phase 3 — Catalog grid for Full Menu tab (D-08)
   ============================================================ */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.catalog-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.catalog-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--border);
}

.catalog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card-body {
  padding: 12px;
}

.variant-price-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variant-price-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.variant-price-list .variant-label {
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   Phase 3 — Value pillars for /about page (D-09, D-11)
   ============================================================ */

.pillars-grid {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

.pillar {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.pillar-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.pillar-title {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.pillar-desc {
  color: var(--muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Phase 3 — About page sections (D-09)
   ============================================================ */

.about-story {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.about-location {
  color: var(--muted);
  line-height: 1.7;
  margin: 24px 0;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

/* ============================================================
   Phase 7 — Restaurant name block (D-09)
   ============================================================ */

.restaurant-name {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ============================================================
   Phase 8 — Promotion carousel (D-04, D-06)
   ============================================================ */

.promo-carousel-section {
  margin: 28px 0 8px;
}

.promo-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* All slides stacked; first slide stays in normal flow to set the container height */
.promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.promo-slide:first-child {
  position: relative;
}

.promo-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.promo-slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Full image shown — no cropping */
.promo-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Title overlay — sibling of <a>, bottom-left on hover */
.slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(13, 43, 26, 0.7);
  border-radius: 0 0 16px 16px;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-slide:hover .slide-title {
  opacity: 1;
}

.promo-prev,
.promo-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(13, 43, 26, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.promo-prev { left: 10px; }
.promo-next { right: 10px; }

.promo-prev:hover,
.promo-next:hover {
  background: rgba(42, 77, 53, 0.9);
}

.promo-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.promo-dot.active {
  background: #fff;
}

/* ============================================================
   Phase 8 — Promotion detail page (D-13)
   ============================================================ */

.promo-detail-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.promo-banner-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}

.promo-detail-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.promo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.promo-gallery-trigger {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.promo-gallery-trigger:hover,
.promo-gallery-trigger:focus-visible {
  transform: scale(1.03);
  opacity: 0.92;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.promo-gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  pointer-events: none;
}

/* Promotion gallery lightbox */
.promo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 48px 56px;
}

.promo-lightbox[hidden] {
  display: none;
}

.promo-lightbox-img {
  max-width: min(960px, 92vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.promo-lightbox-close,
.promo-lightbox-prev,
.promo-lightbox-next {
  position: absolute;
  border: none;
  background: rgba(15, 61, 46, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.promo-lightbox-close:hover,
.promo-lightbox-prev:hover,
.promo-lightbox-next:hover,
.promo-lightbox-close:focus-visible,
.promo-lightbox-prev:focus-visible,
.promo-lightbox-next:focus-visible {
  background: var(--primary);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.promo-lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 2rem;
}

.promo-lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.promo-lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.promo-lightbox-prev:hover,
.promo-lightbox-next:hover,
.promo-lightbox-prev:focus-visible,
.promo-lightbox-next:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.promo-lightbox-prev[hidden],
.promo-lightbox-next[hidden] {
  display: none;
}

/* ============================================================
   Phase 8 — Menu page (no-tab layout)
   ============================================================ */

.menu-page-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.menu-date-line {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
