/* style.css — 桂花小館 Design System */

/* ============================================
   DESIGN TOKENS
   ============================================ */

/* Type Scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --font-body: 'Noto Sans TC', 'Work Sans', -apple-system, sans-serif;
}

/* LIGHT MODE — Japandi minimalist café palette */
:root,
[data-theme='light'] {
  --color-bg: #F8F5F0;
  --color-surface: #FDFBF7;
  --color-surface-2: #F2EDE5;
  --color-surface-offset: #ECE5DA;
  --color-surface-dynamic: #E2D9CB;
  --color-divider: #DDD4C5;
  --color-border: #CDBFA8;

  --color-text: #2D2419;
  --color-text-muted: #7A6E5E;
  --color-text-faint: #AE9F8A;
  --color-text-inverse: #F8F5F0;

  --color-accent: #D4824A;
  --color-accent-hover: #B86A35;
  --color-accent-active: #9C5524;
  --color-accent-highlight: #FAF0E5;

  --color-overlay: rgba(45, 36, 25, 0.72);

  --shadow-sm: 0 1px 2px rgba(45, 36, 25, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 36, 25, 0.08);
  --shadow-lg: 0 12px 32px rgba(45, 36, 25, 0.12);
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #1C1814;
  --color-surface: #24201A;
  --color-surface-2: #2A251E;
  --color-surface-offset: #302A22;
  --color-surface-dynamic: #3C342A;
  --color-divider: #322B22;
  --color-border: #443B2E;

  --color-text: #EDE5DA;
  --color-text-muted: #A89A84;
  --color-text-faint: #74664F;
  --color-text-inverse: #1C1814;

  --color-accent: #E89B5A;
  --color-accent-hover: #F5B074;
  --color-accent-active: #D4824A;
  --color-accent-highlight: #3A2D1E;

  --color-overlay: rgba(12, 10, 8, 0.82);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1C1814;
    --color-surface: #24201A;
    --color-surface-2: #2A251E;
    --color-surface-offset: #302A22;
    --color-surface-dynamic: #3C342A;
    --color-divider: #322B22;
    --color-border: #443B2E;
    --color-text: #EDE5DA;
    --color-text-muted: #A89A84;
    --color-text-faint: #74664F;
    --color-text-inverse: #1C1814;
    --color-accent: #E89B5A;
    --color-accent-hover: #F5B074;
    --color-accent-active: #D4824A;
    --color-accent-highlight: #3A2D1E;
    --color-overlay: rgba(12, 10, 8, 0.82);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

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

@media (min-width: 768px) {
  .nav-logo .logo-img {
    height: 38px;
  }
}

/* Light / dark logo swap */
.logo-img {
  display: block;
}

.logo-dark {
  display: none;
}

[data-theme='dark'] .logo-light {
  display: none;
}

[data-theme='dark'] .logo-dark {
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition-interactive);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.nav-cta:active {
  background: var(--color-accent-active);
  transform: translateY(0);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile menu button */
.nav-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 10px;
}

.nav-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-interactive);
}

.nav-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  background: var(--color-bg);
  z-index: 99;
  padding: 100px var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

.mobile-menu .nav-cta {
  margin-top: var(--space-6);
  justify-content: center;
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-menu-btn {
    display: none;
  }
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--color-overlay) 0%,
    color-mix(in oklab, var(--color-overlay) 60%, transparent) 50%,
    var(--color-bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  width: 100%;
  padding-top: 80px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 800ms 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tagline::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 500;
  color: var(--color-text-inverse);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 800ms 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: color-mix(in oklab, var(--color-text-inverse) 80%, transparent);
  max-width: 48ch;
  line-height: 1.6;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeUp 800ms 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  animation: fadeUp 800ms 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-inverse);
  opacity: 0.5;
  animation: fadeUp 800ms 1200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-scroll-hint svg {
  width: 20px;
  animation: bounce 2s infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-text-inverse);
  border: 1.5px solid color-mix(in oklab, var(--color-text-inverse) 40%, transparent);
}

.btn-secondary:hover {
  border-color: var(--color-text-inverse);
  background: color-mix(in oklab, var(--color-text-inverse) 10%, transparent);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.6;
}

/* ============================================
   BRAND STORY
   ============================================ */

.story-section {
  background: var(--color-surface);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-image:hover img {
  transform: scale(1.03);
}

.story-content h2 {
  margin-bottom: var(--space-6);
}

.story-content p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.story-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .story-grid:nth-child(even) .story-image {
    order: 2;
  }
}

/* ============================================
   SIGNATURE DISHES
   ============================================ */

.dishes-section {
  background: var(--color-bg);
}

.dishes-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.dishes-header .section-label {
  justify-content: center;
}

.dishes-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.dish-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.dish-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dish-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.dish-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.dish-card:hover .dish-image img {
  transform: scale(1.05);
}

.dish-content {
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.dish-tag {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.dish-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.dish-name-en {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  font-weight: 400;
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.dish-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.dish-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
}

@media (min-width: 640px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   EXPERIENCE / ATMOSPHERE
   ============================================ */

.experience-section {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.experience-card {
  padding: var(--space-8);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}

.experience-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.experience-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.experience-icon svg {
  width: 24px;
  height: 24px;
}

.experience-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.experience-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

/* ============================================
   REVIEWS
   ============================================ */

.reviews-section {
  background: var(--color-bg);
}

.reviews-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.reviews-header .section-label {
  justify-content: center;
}

.reviews-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.review-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: var(--space-2);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.15;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.review-text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent);
}

.review-author-info {
  display: flex;
  flex-direction: column;
}

.review-author-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.review-author-role {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

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

/* ============================================
   FRANCHISE / 我要創業
   ============================================ */

.franchise-section {
  background: var(--color-bg);
}

.franchise-inner {
  max-width: 62rem;
  margin-inline: auto;
}

.franchise-head {
  text-align: center;
  margin-bottom: var(--space-12);
}

.franchise-head .section-title {
  margin-bottom: var(--space-6);
}

.franchise-lead {
  max-width: 46rem;
  margin-inline: auto;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.franchise-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.franchise-stat {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.franchise-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.franchise-stat-value small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-left: 0.3em;
}

.franchise-stat-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.franchise-points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.franchise-points li {
  position: relative;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.franchise-points h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.franchise-points p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

.franchise-cta {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--color-accent-highlight) 0%, transparent 65%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.franchise-cta .btn-secondary {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-bg);
}

.franchise-cta .btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-bg);
}

.franchise-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin: var(--space-2) 0 0;
  line-height: 1.7;
}

@media (min-width: 700px) {
  .franchise-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .franchise-points {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-12);
  }
  .franchise-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .franchise-note {
    flex-basis: 100%;
    margin-top: var(--space-2);
  }
}

/* ============================================
   RESERVATION / CONTACT
   ============================================ */

.reservation-section {
  background: var(--color-surface);
}

.reservation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

.reservation-info h2 {
  margin-bottom: var(--space-6);
}

.reservation-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  color: var(--color-accent);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-content h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.info-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.info-content a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.info-content a:hover {
  color: var(--color-accent);
}

/* LINE reservation card */
.line-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, var(--color-accent-highlight) 0%, transparent 62%),
    var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.line-card-badge svg,
.line-cta svg {
  flex-shrink: 0;
}

.line-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-accent-highlight);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.line-card-badge svg {
  width: 15px;
  height: 15px;
}

.line-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
  margin-bottom: var(--space-3);
}

.line-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0 auto var(--space-6);
  max-width: 30ch;
}

.line-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all var(--transition-interactive);
}

.line-cta svg {
  width: 17px;
  height: 17px;
}

.line-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.line-cta:active {
  transform: translateY(0);
}

.line-qr {
  margin-top: var(--space-6);
}

.line-qr img {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: #fff;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.line-qr p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  margin: var(--space-3) 0 0;
}

.line-template {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: left;
}

.line-template h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.line-template ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.line-template li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.line-template li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.line-alt {
  margin: var(--space-6) 0 0;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.7;
}

.line-alt a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.line-alt a:hover {
  color: var(--color-accent-hover);
}

@media (min-width: 768px) {
  .reservation-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

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

.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 360px;
}

.footer-brand-logo {
  margin-bottom: var(--space-5);
}

.footer-brand-logo .logo-img {
  height: 78px;
  width: auto;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}

.footer-social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-highlight);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-links {
    grid-template-columns: repeat(3, auto);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }


/* Reservation note + map link */
.reservation-note {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.map-link {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transition-base);
}

.map-link:hover {
  color: var(--color-accent-hover);
}


/* ---- 加盟諮詢表單 ---- */

.franchise-form-wrap {
  margin-bottom: var(--space-10);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 88px;
}

.franchise-form-head {
  margin-bottom: var(--space-8);
}

.franchise-form-head h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.franchise-form-head p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

.fr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.fr-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fr-field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.fr-field label span[aria-hidden] {
  color: var(--color-accent);
  margin-left: 0.15em;
}

.fr-opt {
  font-weight: 400;
  color: var(--color-text-faint);
  margin-left: 0.5em;
  letter-spacing: 0;
}

.fr-field input,
.fr-field select,
.fr-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.fr-field textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.7;
}

.fr-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6E5E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
  cursor: pointer;
}

.fr-field input::placeholder,
.fr-field textarea::placeholder {
  color: var(--color-text-faint);
}

.fr-field input:focus,
.fr-field select:focus,
.fr-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 18%, transparent);
}

.fr-submit {
  width: 100%;
  justify-content: center;
}

.fr-privacy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.7;
  margin: var(--space-4) 0 0;
  text-align: center;
}

@media (min-width: 700px) {
  .fr-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5) var(--space-6);
  }
  .fr-field-full {
    grid-column: 1 / -1;
  }
  .fr-submit {
    width: auto;
    min-width: 16rem;
    display: block;
    margin-inline: auto;
  }
}

[data-theme='dark'] .fr-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A89A88' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}


/* ---- 加盟諮詢感謝頁 ---- */

.thanks-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-5);
  background: var(--color-bg);
}

.thanks-card {
  width: 100%;
  max-width: 34rem;
  text-align: center;
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--color-accent-highlight) 0%, transparent 62%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.thanks-logo {
  height: 84px;
  width: auto;
  margin: 0 auto var(--space-8);
}

.thanks-card .section-label {
  justify-content: center;
  margin-bottom: var(--space-4);
}

.thanks-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.thanks-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0 0 var(--space-8);
}

.thanks-info {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  text-align: left;
}

.thanks-info-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.thanks-info a,
.thanks-info div > span:last-child {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.thanks-info a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.thanks-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.thanks-btn-alt {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-bg);
}

.thanks-btn-alt:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-bg);
}

@media (min-width: 560px) {
  .thanks-info {
    grid-template-columns: 1fr 1fr;
  }
  .thanks-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Anchor offset for fixed header */
section[id] { scroll-margin-top: 88px; }
