/* ============================================================
   Yoguruto Thailand — Shared Stylesheet
   Referenced by both index.html and menu.html.
   Page-specific styles remain inline in each file.
   ============================================================ */

/* ── Design tokens ── */
:root {
  --bg-base: #f7ebc9;
  --bg-stripe: #ecd89f;
  --brand-cream: #f4e6b8;
  --brand-brown: #5a321b;
  --brand-brown-dark: #3f2414;
  --brand-yellow: #f7c948;
  --brand-yellow-soft: #f9e7a8;
  --brand-yellow-pressed: #f4dd8a;
  --brand-red: #c81f2d;
  --text-main: #5a321b;
  --text-subtle: #8b6d59;
  --white: #ffffff;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-28: 28px;
  --radius-32: 32px;
  --font-12: 12px;
  --font-16: 16px;
  --font-20: 20px;
  --font-24: 24px;
  --font-32: 32px;
}

/* ── Base ── */
body {
  font-family: sofia-pro-soft, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: #fef9ee;
  min-height: 100vh;
  margin: 0;
}

/* ── Navbar ── */
.brand-yoguruto {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 18px rgba(90, 50, 27, 0.07);
}

.navbar.brand-yoguruto {
  min-height: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar.brand-yoguruto .container-fluid {
  display: flex;
  align-items: center;
}

.navbar.brand-yoguruto .navbar-brand,
.navbar.brand-yoguruto .nav-link {
  color: var(--brand-brown) !important;
}

.navbar.brand-yoguruto .nav-link.active {
  color: var(--brand-red) !important;
}

.navbar.brand-yoguruto .nav-link:hover {
  color: var(--brand-brown-dark) !important;
}

.navbar.brand-yoguruto .navbar-toggler {
  border-color: rgba(90, 50, 27, 0.3);
}

.navbar.brand-yoguruto .navbar-toggler-icon {
  filter: none;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 15px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.navbar.brand-yoguruto .nav-link {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 10px !important;
  display: inline-flex;
  align-items: center;
  height: 52px;
}

.navbar-nav {
  gap: 4px;
  align-items: center;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

/* ── Language switcher ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-btn {
  height: 40px;
  min-width: 68px;
  padding: 0 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--brand-yellow);
  color: var(--brand-brown-dark);
  border-color: var(--brand-yellow);
}

.lang-btn:focus,
.lang-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ── Franchise nav button ── */
.nav-franchise-btn {
  background: var(--brand-yellow);
  color: var(--brand-brown-dark) !important;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  height: 34px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-franchise-btn:hover {
  background: var(--brand-yellow-pressed);
  color: var(--brand-brown-dark) !important;
  transform: translateY(-1px);
}

/* ── Globe language dropdown ── */
.lang-globe-btn {
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid rgba(90, 50, 27, 0.28);
  background: rgba(90, 50, 27, 0.06);
  color: var(--brand-brown);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lang-globe-btn::after {
  display: none;
}

.lang-globe-btn:hover,
.lang-globe-btn:focus,
.lang-globe-btn:active,
.lang-globe-btn.show {
  background: rgba(90, 50, 27, 0.10);
  color: var(--brand-brown) !important;
  border-color: rgba(90, 50, 27, 0.4);
  box-shadow: none;
  outline: none;
}

.lang-globe-menu {
  min-width: 148px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  padding: 6px 0;
  background: #fff;
  overflow: hidden;
}

.lang-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-brown);
  padding: 9px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  display: block;
  transition: background-color 0.15s ease;
}

.lang-item:hover {
  background: var(--brand-yellow-soft);
  color: var(--brand-brown);
}

.lang-item.active {
  background: var(--brand-yellow);
  color: var(--brand-brown-dark);
}

/* ── Social links ── */
.social-nav {
  margin-left: auto;
}

.social-nav a,
.social-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: 0.2s ease;
}

.social-nav a:hover,
.social-links a:hover {
  color: var(--brand-yellow);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.social-nav a:active,
.social-links a:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.3);
}

/* ── Banner ── */
.banner-section {
  padding-bottom: var(--space-16);
}

.banner-frame {
  width: 100%;
  aspect-ratio: 1920 / 760;
  background: #f8efcf;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Primary CTA button ── */
.state-btn {
  background-color: var(--brand-brown);
  border: 2px solid var(--brand-brown);
  color: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  cursor: pointer;
}

.state-btn:hover {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--brand-brown-dark);
  transform: translateY(-1px);
}

.state-btn:active {
  background-color: #efbc2d;
  border-color: #efbc2d;
  color: var(--brand-brown-dark);
  transform: scale(0.97);
}

/* ── Footer ── */
.footer {
  background-color: var(--brand-brown);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 52px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.footer-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.footer-back:hover {
  color: var(--brand-yellow);
  border-color: var(--brand-yellow);
}
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.40);
  text-align: center;
}
@media (max-width: 575px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── Delivery modal ── */
.delivery-modal .modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #f8f6f3;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.delivery-modal .modal-header {
  border-bottom: 0;
  padding: 24px 24px 8px;
  background: #f8f6f3;
  justify-content: center;
  position: relative;
}

.delivery-modal .modal-title {
  color: var(--brand-brown);
  font-size: 1.6rem;
  text-align: center;
  width: 100%;
  margin: 0;
}

.delivery-modal .btn-close {
  position: absolute;
  right: 24px;
  top: 24px;
  filter: sepia(1) saturate(3) hue-rotate(330deg);
}

.delivery-character-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 20px;
}

.delivery-character {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
}

.delivery-modal .modal-body {
  padding: 12px 24px 28px;
  text-align: center;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.delivery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 108px;
  padding: 22px 24px;
  border-radius: 28px;
  background: #ffffff;
  text-decoration: none;
  color: #1f1f1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: 0.2s ease;
}

.delivery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  color: #1f1f1f;
}

.delivery-card:active {
  transform: scale(0.98);
}

.delivery-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.delivery-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.delivery-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0;
  color: #1f1f1f;
  text-transform: uppercase;
}

.delivery-divider {
  text-align: center;
  color: var(--brand-brown);
  font-size: 1rem;
  margin: 10px 0 14px;
}

.branch-btn-wrap {
  text-align: center;
}

.branch-btn {
  min-width: 240px;
}

/* ── Page section typography (shared: about, menu) ── */
.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  display: block;
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-brown-dark);
  background: var(--brand-yellow);
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.section-headline {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--brand-brown);
  margin-bottom: 18px;
}

.section-body {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-subtle);
  line-height: 1.75;
  max-width: 480px;
  margin: 0;
}

/* ── Wave dividers ── */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ── Responsive shared ── */
@media (max-width: 992px) {
  .banner-frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .banner-frame {
    aspect-ratio: 4 / 3;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .social-nav {
    margin-left: 0;
    margin-top: 14px;
  }

  .navbar-brand,
  .navbar.brand-yoguruto .nav-link,
  .lang-btn,
  .lang-globe-btn,
  .nav-franchise-btn {
    font-size: 14px;
  }

  .delivery-modal .modal-title {
    font-size: 1.3rem;
  }

  .delivery-card {
    min-height: 92px;
    padding: 18px 20px;
    border-radius: 22px;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .section-body {
    max-width: 100%;
  }
}
