/* ============================
   府城神獸 - Global Styles
   ============================ */

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

:root {
  --ink:       #1a1310;
  --warm:      #f5ede0;
  --cream:     #fdf8f2;
  --red:       #c0392b;
  --red-light: #e74c3c;
  --gold:      #b8860b;
  --muted:     #7a6a5a;
  --card-bg:   #ffffff;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,248,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1160px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: .05em; color: var(--ink);
}
nav { display: flex; align-items: center; gap: 32px; }
nav a { font-size: .9rem; color: var(--muted); transition: color .2s; }
nav a:hover, nav a.active { color: var(--ink); }
.btn-nav {
  background: var(--red); color: #fff !important;
  padding: 9px 20px; border-radius: 50px;
  font-size: .85rem; font-weight: 500;
  transition: background .2s, transform .1s;
}
.btn-nav:hover { background: var(--red-light); transform: translateY(-1px); }

/* ============================
   BADGE (shared)
   ============================ */
.badge {
  display: inline-block;
  background: rgba(184, 134, 11, 0.12);
  color: #8c5800;
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 50px;
  padding: 5px 14px; font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; margin-bottom: 20px;
}
.slide--okao .badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}

/* ============================
   HERO SLIDER
   ============================ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 520px;
}

/* Each slide */
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
  display: flex; align-items: stretch;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Per-slide background color */
.slide-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.slide-bg--fu   { background: linear-gradient(135deg, #e8dcc8 0%, #d4c4a0 100%); }
.slide-bg--okao { background: linear-gradient(135deg, #2c2018 0%, #1a1310 100%); }

/* Inner layout: text left, image right */
.slide-inner {
  position: relative; z-index: 1;
  max-width: 1160px; margin: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 72px 48px;
}

/* Text side */
.slide-text h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px;
}
.slide--fu   .slide-text h1 { color: var(--ink); }
.slide--okao .slide-text h1 { color: #fff; }

.slide-text p {
  font-size: 1rem; line-height: 1.8;
  margin-bottom: 36px;
}
.slide--fu   .slide-text p { color: #6b5b3e; }
.slide--okao .slide-text p { color: rgba(255,255,255,.75); }

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

.btn-primary {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  font-size: .95rem; font-weight: 500;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #333; transform: translateY(-2px); }

.slide--okao .btn-primary {
  background: #fff; color: var(--ink);
}
.slide--okao .btn-primary:hover { background: #eee; }

.btn-outline-light {
  display: inline-block;
  border: 2px solid currentColor; border-radius: 50px;
  padding: 12px 28px; font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s, transform .15s;
}
.slide--fu   .btn-outline-light { color: var(--ink); }
.slide--okao .btn-outline-light { color: #fff; }
.btn-outline-light:hover { background: var(--ink); color: #fff !important; transform: translateY(-2px); }

/* Image side */
.slide-img-wrap {
  display: flex; justify-content: center; align-items: flex-end;
}
.slide-img {
  max-height: 480px;
  width: 100%; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.18));
  transform: translateY(0);
  transition: transform .7s ease;
}
.slide.active .slide-img {
  animation: imgFloat 4s ease-in-out infinite;
}
@keyframes imgFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Arrow buttons ── */
.slider-btn {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff; font-size: 1.4rem;
  width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; line-height: 1;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: rgba(255,255,255,.38); transform: translateY(-50%) scale(1.08); }
.slider-btn--prev { left: 24px; }
.slider-btn--next { right: 24px; }

/* arrow color per slide */
.slide--fu   ~ .slider-btn { color: var(--ink); border-color: rgba(0,0,0,.2); background: rgba(0,0,0,.07); }
.slide--fu   ~ .slider-btn:hover { background: rgba(0,0,0,.15); }

/* ── Dots ── */
.slider-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer; padding: 0;
  transition: background .3s, transform .3s;
}
.dot.active { background: #fff; transform: scale(1.3); }

/* ── Progress bar ── */
.hero-slider::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  height: 3px; background: var(--red);
  animation: progressBar 5s linear infinite;
  z-index: 9;
}
@keyframes progressBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============================
   COMING SOON BAR
   ============================ */
.coming-soon-bar {
  background: var(--ink); color: #fff;
  text-align: center; padding: 14px 24px;
  font-size: .9rem; display: flex;
  align-items: center; justify-content: center; gap: 16px;
}
.coming-soon-bar a {
  color: #f5a623; font-weight: 600;
  border-bottom: 1px solid rgba(245,166,35,.4);
  padding-bottom: 1px;
}
.coming-soon-bar a:hover { color: #ffc55c; }

/* ============================
   PRODUCTS
   ============================ */
.products {
  max-width: 1160px; margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.9rem; font-weight: 700; margin-bottom: 8px;
}
.section-header p { color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.product-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  letter-spacing: .06em;
}
.product-img-wrap img {
  width: 100%; height: auto;
  display: block;
  transition: transform .4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-info { padding: 24px; }
.product-info h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 8px;
}
.product-desc { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.product-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.price { font-size: 1.05rem; font-weight: 600; }
.price.tbd { color: var(--gold); }
.btn-card {
  background: var(--red); color: #fff;
  padding: 10px 20px; border-radius: 50px;
  font-size: .85rem; font-weight: 500;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.btn-card:hover { background: var(--red-light); transform: translateY(-1px); }

/* ============================
   STORY
   ============================ */
.story {
  background: var(--warm);
  padding: 80px 24px;
}
.story-inner {
  max-width: 1160px; margin: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.label-tag {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; color: var(--muted);
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px; margin-bottom: 16px;
}
.story-text h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.9rem; font-weight: 700;
  line-height: 1.4; margin-bottom: 16px;
}
.story-text p { color: var(--muted); margin-bottom: 28px; }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--ink); color: var(--ink);
  padding: 12px 28px; border-radius: 50px;
  font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.story-links { display: flex; flex-direction: column; gap: 16px; }
.story-link-card {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border-radius: 14px;
  padding: 20px 24px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.story-link-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.story-icon { font-size: 2rem; }
.story-link-card strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.story-link-card span { font-size: .85rem; color: var(--red); }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 24px; }
.footer-inner {
  max-width: 1160px; margin: auto;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 32px;
}
.footer-brand .logo { color: #fff; font-size: 1.2rem; }
.footer-brand p { font-size: .8rem; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-note { text-align: right; font-size: .78rem; line-height: 1.8; }

/* ============================
   PRODUCT DETAIL
   ============================ */
.product-detail {
  max-width: 1000px; margin: 60px auto;
  padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.detail-gallery img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-info { padding-top: 12px; }
.detail-info .badge { margin-bottom: 16px; }
.detail-info h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.2rem; font-weight: 700; margin-bottom: 16px;
}
.detail-desc { color: var(--muted); margin-bottom: 28px; line-height: 1.9; }
.detail-price {
  font-size: 1.2rem; font-weight: 600;
  color: var(--gold); margin-bottom: 24px;
}
.detail-cta {
  display: flex; flex-direction: column; gap: 12px;
}
.detail-cta .btn-primary { text-align: center; }
.detail-cta .ext-link {
  text-align: center; font-size: .85rem; color: var(--muted);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px; display: inline-block; width: fit-content;
}
.breadcrumb {
  max-width: 1000px; margin: 30px auto 0;
  padding: 0 24px; font-size: .85rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* ============================
   CHECKOUT / INTEREST FORM
   ============================ */
.checkout-wrap {
  max-width: 680px; margin: 60px auto;
  padding: 0 24px 80px;
}
.checkout-wrap h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.9rem; font-weight: 700; margin-bottom: 8px;
}
.checkout-intro {
  color: var(--muted); margin-bottom: 36px; font-size: .95rem;
}
.checkout-notice {
  background: #fff8e1; border-left: 4px solid var(--gold);
  padding: 14px 18px; border-radius: 8px;
  font-size: .88rem; color: #7a5f00; margin-bottom: 32px;
}
.form-section { margin-bottom: 36px; }
.form-section legend, .form-label {
  font-weight: 600; font-size: .9rem;
  display: block; margin-bottom: 10px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #ddd; border-radius: 10px;
  font-size: .95rem; font-family: inherit;
  background: #fff; transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.check-group { display: flex; flex-direction: column; gap: 12px; }
.check-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid #eee;
  border-radius: 10px; padding: 14px 16px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.check-item:hover { border-color: var(--red); background: #fff5f5; }
.check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); }
.check-item-img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #f5f5f5; }
.check-item-text strong { display: block; font-size: .95rem; }
.check-item-text span { font-size: .82rem; color: var(--muted); }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1.5px solid #eee;
  border-radius: 50px; cursor: pointer; font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.radio-item:hover { border-color: var(--red); }
.radio-item input { accent-color: var(--red); }
.radio-item.selected { border-color: var(--red); background: #fff5f5; }

.btn-submit {
  width: 100%; padding: 16px;
  background: var(--red); color: #fff;
  border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .2s, transform .15s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--red-light); transform: translateY(-2px); }

/* Success state */
.success-msg {
  display: none;
  background: #e8f5e9; border: 1.5px solid #66bb6a;
  border-radius: 16px; padding: 32px;
  text-align: center; margin-top: 24px;
}
.success-msg h2 { font-family: 'Noto Serif TC', serif; margin-bottom: 10px; color: #2e7d32; }
.success-msg p { color: #388e3c; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }

/* ============================
   ABOUT PAGE
   ============================ */
.about-hero {
  background: var(--warm); padding: 80px 24px;
  text-align: center;
}
.about-hero h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.4rem; font-weight: 700;
  margin-bottom: 16px;
}
.about-hero p { color: var(--muted); max-width: 560px; margin: auto; }

.about-content {
  max-width: 760px; margin: 60px auto;
  padding: 0 24px 80px;
}
.about-content h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem; margin: 36px 0 12px;
}
.about-content p { color: var(--muted); margin-bottom: 16px; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  /* Slider mobile */
  .slide-inner {
    grid-template-columns: 1fr;
    padding: 48px 24px 80px;
    text-align: center;
  }
  .slide-img-wrap { order: -1; margin-bottom: 24px; }
  .slide-img { max-height: 280px; }
  .slide-actions { justify-content: center; }
  .slider-btn--prev { left: 10px; }
  .slider-btn--next { right: 10px; }

  .story-inner { grid-template-columns: 1fr; gap: 32px; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-note { text-align: left; }
  nav { gap: 16px; }
  .coming-soon-bar { flex-direction: column; gap: 8px; }
}
