/**
 * ===================================================
 * STYLE.CSS - สไตล์หลักของเว็บ Tsunami Sushi Buffet
 * ===================================================
 * 
 * สารบัญ:
 * 1.  CSS Variables (ปรับสีและฟอนต์ได้ที่นี่)
 * 2.  Reset & Base
 * 3.  Topbar
 * 4.  Navbar
 * 5.  Hero Section
 * 6.  Section Layouts
 * 7.  Cards (Branch, Menu, News)
 * 8.  About Section
 * 9.  Franchise Section
 * 10. Contact / Job Forms
 * 11. Footer
 * 12. Utilities & Animations
 * 13. Responsive (Mobile/Tablet)
 *
 * หมายเหตุ: แก้ไข CSS Variables ในหัวข้อ 1 
 *           เพื่อเปลี่ยนสีทั้งเว็บได้ทันที
 */

/* ============================================
   1. CSS VARIABLES — แก้สีและฟอนต์ที่นี่
   ============================================ */
:root {
  /* สีหลัก */
  --crimson:    #C0392B;      /* สีแดงหลัก (ซูชิ/ธง) */
  --crimson-dk: #962d22;      /* แดงเข้ม hover */
  --gold:       #C9A84C;      /* ทอง accent */
  --gold-lt:    #e8c96e;      /* ทองอ่อน */
  --ink:        #1A1208;      /* สีดำหมึก */
  --ink-soft:   #3d2f1f;      /* น้ำตาลเข้ม */
  --cream:      #FAF6EF;      /* ครีมพื้นหลัง */
  --cream-dk:   #F0EAE0;      /* ครีมเข้มกว่า */
  --white:      #FFFFFF;

  /* Topbar */
  --topbar-bg:  #1A1208;
  --topbar-fg:  #e8c96e;

  /* Navbar */
  --nav-bg:     rgba(250,246,239,0.97);
  --nav-border: rgba(192,57,43,0.15);
  --nav-active: var(--crimson);

  /* Footer */
  --footer-bg:      #1A1208;
  --footer-fg:      #e8d5b0;
  --footer-muted:   #8a7a60;
  --footer-heading: var(--gold);

  /* Typography */
  --font-display: 'Prompt', 'Zen Old Mincho', 'Noto Serif JP', serif;
  --font-body:    'Prompt', 'Sarabun', sans-serif;
  --font-jp:      'Prompt', 'Noto Serif JP', serif;

  /* Spacing */
  --section-gap: 6rem;
  --card-radius: 12px;
  --container:   1200px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26,18,8,0.08);
  --shadow-md: 0 8px 32px rgba(26,18,8,0.12);
  --shadow-lg: 0 20px 60px rgba(26,18,8,0.18);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   3. TOPBAR
   ============================================ */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  position: relative;
  z-index: 100;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left a, .topbar-right a {
  color: var(--topbar-fg);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: opacity 0.2s;
}
.topbar-left a:hover, .topbar-right a:hover { opacity: 0.75; }
.topbar-right { display: flex; gap: 1.25rem; align-items: center; }
.lang-switch-top { display: flex; gap: 0.5rem; font-weight: 600; color: var(--gold); }
.lang-switch-top a { color: var(--footer-muted); transition: color 0.2s; }
.lang-switch-top a.active { color: var(--gold); }
.lang-switch-top a:hover { color: var(--white); }

.nav-lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--nav-border);
}
.nav-lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-lang-btn.active {
  background: var(--crimson);
  color: var(--white);
}
.nav-lang-btn:hover:not(.active) {
  border-color: var(--crimson);
  color: var(--crimson);
}

/* ============================================
   4. NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 42px; width: auto; object-fit: contain; }
.logo-fallback {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.nav-link:hover { color: var(--crimson); background: rgba(192,57,43,0.07); }
.nav-link.active { color: var(--crimson); font-weight: 600; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   5. HERO SECTION (Homepage)
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/o_1e78dht0i13qt1pud5kqeob7m37.png');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,18,8,0.85) 0%, rgba(192,57,43,0.2) 60%, rgba(26,18,8,0.6) 100%);
}
/* wave decoration */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 C360,120 1080,0 1440,60 L1440,120 L0,120 Z' fill='%23FAF6EF'/%3E%3C/svg%3E") no-repeat bottom/cover;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
  animation: fadeUp 1s var(--ease) both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }

.hero-label {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero-title span { color: var(--gold); }
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }

/* Stats bar */
.hero-stats {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  animation: fadeUp 1.2s 0.3s var(--ease) both;
  z-index: 2;
}
.stat-item {
  background: rgba(250,246,239,0.95);
  backdrop-filter: blur(8px);
  padding: 1.5rem 2.5rem;
  border-left: 1px solid rgba(192,57,43,0.15);
  text-align: center;
  flex: 1;
  max-width: 220px;
}
.stat-item:first-child { border-left: none; border-radius: 12px 0 0 12px; }
.stat-item:last-child { border-radius: 0 12px 12px 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--crimson);
  display: block;
}
.stat-label { font-size: 0.75rem; color: var(--ink-soft); }

/* ============================================
   6. SECTION LAYOUTS
   ============================================ */
.section { padding: var(--section-gap) 0; }
.section-alt { background: var(--cream-dk); }
.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-title .accent { color: var(--crimson); }
.section-subtitle { font-size: 1rem; color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,57,43,0.35);
}
.btn-primary:hover { background: var(--crimson-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,57,43,0.4); }
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--crimson); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-outline-dark {
  border: 2px solid var(--crimson);
  color: var(--crimson);
}
.btn-outline-dark:hover { background: var(--crimson); color: var(--white); }

/* ============================================
   7. CARDS
   ============================================ */

/* Menu Category Cards */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.menu-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.menu-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.menu-card:hover .menu-card-img { transform: scale(1.05); }
.menu-card-body { padding: 1.2rem; }
.menu-card-name {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.menu-card-name-th { font-size: 0.85rem; color: var(--ink-soft); }
.menu-card-desc { font-size: 0.82rem; color: #7a6a55; margin-top: 0.5rem; }

/* Branch Cards */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.branch-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.branch-card-img { width: 100%; height: 210px; object-fit: cover; }
.branch-card-body { padding: 1.4rem; }
.branch-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  background: rgba(192,57,43,0.1);
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.branch-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.branch-location { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.branch-meta { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.branch-meta-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.82rem; color: #6a5a45; }
.branch-meta-item svg { flex-shrink: 0; margin-top: 2px; color: var(--crimson); }
.branch-actions { display: flex; gap: 0.75rem; }

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.news-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card-img-wrap { overflow: hidden; height: 200px; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-card:hover .news-card-img { transform: scale(1.06); }
.news-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.7rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.news-date { font-size: 0.78rem; color: #9a8a70; margin-bottom: 0.5rem; }
.news-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.news-excerpt { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.news-read-more {
  margin-top: 1rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--crimson);
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: gap 0.2s;
}
.news-card:hover .news-read-more { gap: 0.6rem; }

/* ============================================
   8. ABOUT SECTION
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-stack { position: relative; }
.about-img-main {
  width: 100%; border-radius: 16px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  position: relative;
  z-index: 1; /* ให้ภาพหลักอยู่ด้านล่าง */
}
.about-img-accent {
  position: absolute;
  width: 20%; /* ปรับให้เล็กลงมากที่สุด (ประมาณ 1 ใน 5 ของภาพหลัก) */
  bottom: 1rem; /* ยึดมุมขวาล่าง */
  right: 1rem;
  border-radius: 8px;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
  object-fit: cover;
  z-index: 5;
}
.about-badge {
  position: absolute;
  top: 1.5rem; left: -1.5rem;
  background: var(--crimson);
  color: var(--white);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 10; /* มั่นใจว่าอยู่ด้านหน้าภาพ */
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.about-badge-label { font-size: 0.72rem; opacity: 0.85; }

.about-content { text-align: center; }
.about-content .section-header { text-align: center; margin-bottom: 2rem; }
.about-text { font-size: 0.97rem; line-height: 1.9; color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem auto; max-width: 800px; }
.about-feature {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 1.25rem;
  background: var(--cream-dk);
  border-radius: 12px;
  text-align: left;
}
.about-feature-icon {
  width: 36px; height: 36px;
  background: var(--crimson);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feature-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.about-feature-desc { font-size: 0.78rem; color: var(--ink-soft); }

/* ============================================
   9. FRANCHISE SECTION
   ============================================ */
.franchise-section {
  background: linear-gradient(135deg, var(--ink) 0%, #2d1a0e 100%);
  position: relative; overflow: hidden;
  color: var(--white);
}
.franchise-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.franchise-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}
.franchise-content { text-align: center; }
.franchise-content .section-header { text-align: center; margin-bottom: 2rem; }
.franchise-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 600px;
  text-align: left;
}
.franchise-benefit {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.85);
}
.franchise-benefit::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.franchise-card {
  background: rgba(250,246,239,0.06);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}
.franchise-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.franchise-stat { margin-bottom: 1.25rem; }
.franchise-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 0.25rem; }
.franchise-stat-value { font-size: 1.05rem; font-weight: 600; color: var(--white); }

/* ============================================
   10. CONTACT & JOB FORMS
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  position: sticky;
  top: 90px;
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--gold);
}
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(192,57,43,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 0.2rem; }
.contact-info-value { font-size: 0.95rem; font-weight: 500; }

/* Form styles */
.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--ink);
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0d5c5;
  border-radius: 8px;
  font-size: 0.92rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
  background: var(--white);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7a60' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* Job cards */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.job-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--crimson);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.job-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.job-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.job-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
}
.job-badge-type { background: rgba(192,57,43,0.1); color: var(--crimson); }
.job-badge-loc { background: rgba(201,168,76,0.15); color: #8a6a20; }
.job-salary { font-size: 0.9rem; font-weight: 600; color: var(--crimson); margin-bottom: 1rem; }
.job-reqs { margin-bottom: 1rem; }
.job-reqs li {
  font-size: 0.83rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.job-reqs li::before { content: '·'; position: absolute; left: 0; color: var(--crimson); font-size: 1.2rem; line-height: 1; top: 0.1rem; }

/* ============================================
   11. FOOTER
   ============================================ */
.footer { position: relative; }
.footer-wave { line-height: 0; }
.footer-wave svg { display: block; height: 60px; width: 100%; }
.footer-body { background: var(--footer-bg); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(0.85); }
.footer-tagline { font-size: 0.85rem; color: var(--footer-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--footer-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--crimson); }
.footer-heading {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  font-size: 0.87rem;
  color: var(--footer-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--footer-fg); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-contact-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--footer-muted); }
.footer-contact-list a { color: var(--footer-muted); transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--footer-fg); }
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--crimson); }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: var(--footer-muted); }
.newsletter-form input:focus { border-color: var(--crimson); }
.newsletter-form button {
  padding: 0.65rem 1.1rem;
  background: var(--crimson);
  color: var(--white);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--crimson-dk); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

/* ============================================
   12. UTILITIES & ANIMATIONS
   ============================================ */
.text-center { text-align: center; }
.text-crimson { color: var(--crimson); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* Page Hero (inner pages) */
.page-hero {
  padding: 6rem 0 5rem;
  position: relative; overflow: hidden;
  color: var(--white);
  text-align: center;
  background: var(--ink); /* Fallback */
}
.page-hero .hero-bg { opacity: 0.35; } /* ลดความเข้มลงเล็กน้อยสำหรับหน้าย่อยเพื่อให้ตัวหนังสืออ่านง่าย */
.page-hero-content { position: relative; z-index: 5; max-width: 800px; margin: 0 auto; }
.page-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 1.5rem; justify-content: center; display: flex; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 0.5rem; }

/* Contact Cards Grid (Homepage) */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: block;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.contact-card-label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }

@media (max-width: 992px) {
  .contact-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; display: flex; align-items: center; gap: 1.5rem; text-align: left; }
  .contact-card-icon { font-size: 2rem; margin-bottom: 0; }
}
/* Franchise Page Improvements */
.franchise-requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.franchise-requirement-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center; /* จัดให้อยู่บรรทัดเดียวกันในแนวตั้ง */
  gap: 0.75rem;
}
.requirement-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.requirement-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

@media (max-width: 992px) {
  .franchise-requirements-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .franchise-requirements-grid { grid-template-columns: 1fr; }
}

/* Job Page Improvements */
.job-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 คอลัมน์บน PC/Tablet */
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .job-perks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .job-perks-grid { grid-template-columns: 1fr; }
}

/* About Page Improvements */
.about-img-responsive {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* Alert / Toast */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.3); color: #1e7e40; }
.alert-error { background: rgba(192,57,43,0.1); border: 1px solid rgba(192,57,43,0.3); color: var(--crimson); }

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

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--crimson);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* ============================================
   13. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-stack { max-width: 500px; margin: 0 auto; }
  .franchise-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 4rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 100vw);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 0.25rem;
    transition: right 0.35s var(--ease);
    box-shadow: var(--shadow-lg);
    z-index: 98;
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.05rem; padding: 0.75rem 1rem; width: 100%; border-radius: 8px; }
  .nav-link.active { background: rgba(192,57,43,0.08); }

  .hero-stats { position: static; flex-wrap: wrap; margin-top: 2.5rem; }
  .stat-item:first-child { border-radius: 8px 0 0 8px; }
  .stat-item:last-child { border-radius: 0 8px 8px 0; }

  .hero-content { padding: 2rem 0 1rem; }

  .about-features { grid-template-columns: 1fr; }
  .franchise-benefits { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { bottom: auto; right: auto; }

  .topbar { display: none; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .branches-grid, .news-grid, .jobs-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stat-item { padding: 0.9rem 1.2rem; }
}
