/* ===== 莫名奇喵專業貓坊｜雜誌式白底大圖排版（參考 uniam.jp 核心版型） ===== */

:root {
  --cream: #faf6f0;
  --cream-soft: #f4ecdf;
  --cream-card: #fffdf9;
  --latte: #c9a479;
  --latte-dark: #a97c50;
  --terracotta: #b8703f;
  --brown-deep: #4a372a;
  --brown-text: #6e5a45;
  --brown-mute: #8a7862;
  --line: #e9e2d6;
  --white: #ffffff;
  --ink: #2c2521;
  --shadow: 0 12px 32px rgba(74, 55, 42, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--white);
  color: var(--brown-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  font-weight: 700;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--latte-dark), var(--terracotta));
  color: #fff;
  box-shadow: 0 10px 24px rgba(169, 124, 80, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(169, 124, 80, 0.45); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: var(--terracotta);
  border-bottom: 1.5px solid var(--terracotta); padding-bottom: 2px;
}

/* ===== Announcement bar ===== */
.announce-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 9px 16px;
}
.announce-bar strong { color: #f0c9a0; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(44,37,33,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; transition: padding 0.3s ease; }
.site-header.scrolled .header-inner { padding: 13px 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: "Noto Serif TC", serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.logo .paw {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--latte), var(--terracotta));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.9rem; color: var(--brown-text); }
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ===== Hero carousel ===== */
.hero-carousel { position: relative; height: min(88vh, 720px); overflow: hidden; background: var(--ink); }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide .slide-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--slide-c1, #d6b98d), var(--slide-c2, #7a5a3d));
}
.hero-slide .slide-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
}
.hero-slide .slide-icon {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  font-size: min(24vw, 280px); opacity: 0.18; color: #fff;
}
.hero-slide-content {
  position: relative; z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 0 60px;
}
.hero-slide-content .eyebrow { color: #f0d9b8; margin-bottom: 16px; }
.hero-slide-content h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); color: #fff; margin-bottom: 18px; }
.hero-slide-content p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 440px; margin-bottom: 30px; }

.hero-nav {
  position: absolute; z-index: 3; bottom: 28px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: background 0.3s ease, width 0.3s ease; }
.hero-dot.active { background: #fff; width: 24px; border-radius: 999px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer;
  transition: background 0.25s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.32); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ===== Section shared ===== */
.section { padding: 88px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--cream-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 10px; }
.section-head-center { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center h2 { margin-top: 10px; margin-bottom: 14px; }
.section-head-center p { color: var(--brown-mute); }

/* ===== Lineup 4-col cards ===== */
.lineup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.lineup-card { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--line); }
.lineup-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lineup-photo {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: #fff;
}
.lineup-photo.c1 { background: linear-gradient(150deg,#e7c9a0,#b8703f); }
.lineup-photo.c2 { background: linear-gradient(150deg,#cfc2ad,#8a7862); }
.lineup-photo.c3 { background: linear-gradient(150deg,#dcbf95,#a97c50); }
.lineup-photo.c4 { background: linear-gradient(150deg,#f0d9b5,#c9a479); }
.lineup-body { padding: 20px 20px 24px; }
.lineup-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.lineup-body p { font-size: 0.85rem; color: var(--brown-mute); margin-bottom: 16px; min-height: 2.6em; }

/* ===== Concern grid (7-cell) ===== */
.concern-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.concern-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 22px 10px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.concern-item:hover { transform: translateY(-4px); border-color: var(--latte); }
.concern-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cream-soft); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.concern-item span.label { font-size: 0.78rem; color: var(--brown-text); font-weight: 600; }

/* ===== Horizontal scroll cards (人氣主子) ===== */
.hscroll { display: flex; gap: 20px; overflow-x: auto; padding: 6px 6px 20px; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.hs-card {
  flex: 0 0 240px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.hs-photo { aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff; }
.hs-body { padding: 16px 18px; }
.hs-body h4 { font-size: 0.95rem; margin-bottom: 4px; }
.hs-tag { display: inline-block; font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; background: var(--cream-soft); color: var(--latte-dark); font-weight: 700; margin-top: 8px; }

/* ===== Alternating feature rows (品種詳細介紹) ===== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
.feature-row.rev .feature-visual { order: 2; }
.feature-row.rev .feature-copy { order: 1; }
.feature-visual {
  aspect-ratio: 5/4; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; color: #fff; box-shadow: var(--shadow);
}
.feature-visual.fc1 { background: linear-gradient(150deg,#e9d8bf,#b8703f); }
.feature-visual.fc2 { background: linear-gradient(150deg,#cfc2ad,#6e5a45); }
.feature-visual.fc3 { background: linear-gradient(150deg,#dcbf95,#a97c50); }
.feature-visual.fc4 { background: linear-gradient(150deg,#f0d9b5,#c9a479); }
.feature-copy .eyebrow { margin-bottom: 14px; }
.feature-copy h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin-bottom: 14px; }
.feature-copy p { color: var(--brown-mute); margin-bottom: 22px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.feature-tags span { font-size: 0.76rem; padding: 4px 12px; border-radius: 999px; background: var(--cream-soft); border: 1px solid var(--line); color: var(--brown-text); }

/* ===== Testimonial marquee ===== */
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ig-card {
  flex: 0 0 220px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
}
.ig-photo { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #fff; }
.ig-cap { padding: 12px 14px; font-size: 0.8rem; color: var(--brown-mute); }
.ig-cap strong { color: var(--ink); }

/* ===== 3-feature section ===== */
.feat3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.feat3-icon { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; background: var(--cream-soft); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.feat3-item h3 { font-size: 1.1rem; margin-bottom: 12px; }
.feat3-item p { color: var(--brown-mute); font-size: 0.92rem; }

/* ===== Team cards ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1/1; border-radius: 50%; margin: 0 auto 18px; max-width: 160px;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff;
  background: linear-gradient(150deg, var(--latte), var(--terracotta));
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-role { font-size: 0.8rem; color: var(--terracotta); font-weight: 700; margin-bottom: 10px; }
.team-card p.bio { font-size: 0.84rem; color: var(--brown-mute); }

/* ===== CTA banner (滿版圖片+文字) ===== */
.cta-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: 90px 40px; text-align: center;
  background: linear-gradient(150deg, #efe1c9, #b8703f);
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-banner p { color: rgba(44,37,33,0.75); margin-bottom: 30px; }
.cta-banner .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FAQ (kept, restyled minimal) ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; font-size: 1rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-q .icon { color: var(--terracotta); transition: transform 0.25s ease; font-size: 1.2rem; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 24px; color: var(--brown-mute); font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 220px; padding-bottom: 20px; }

/* ===== Footer (4-col dark) ===== */
.site-footer { background: var(--ink); color: #cbbfae; padding: 64px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-logo { font-family: "Noto Serif TC", serif; color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.footer-desc { font-size: 0.85rem; color: #a99c88; max-width: 280px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #4a4038;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.footer-social a:hover { background: var(--terracotta); border-color: var(--terracotta); }
.footer-col h5 { color: #fff; font-size: 0.92rem; margin-bottom: 16px; letter-spacing: 0.04em; }
.footer-col ul { display: grid; gap: 10px; font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #4a4038; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: #8b7f6f; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transition: transform 0.9s cubic-bezier(.16,.84,.44,1), opacity 0.9s ease; will-change: transform, opacity; }
.reveal[data-dir="up"]    { transform: translate3d(0, 34px, 0); }
.reveal[data-dir="down"]  { transform: translate3d(0, -28px, 0); }
.reveal[data-dir="left"]  { transform: translate3d(-40px, 0, 0); }
.reveal[data-dir="right"] { transform: translate3d(40px, 0, 0); }
.reveal[data-dir="scale"] { transform: scale(.92); }
.reveal.in-view { opacity: 1; transform: translate3d(0,0,0) scale(1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Floating social stack ===== */
.fab-stack { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fab-stack .fab {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.fab-stack .fab:hover { transform: translateY(-3px) scale(1.07); box-shadow: 0 14px 30px rgba(169,124,80,0.35); }
.fab-stack .fab.fab-main { width: 58px; height: 58px; background: linear-gradient(135deg, var(--latte-dark), var(--terracotta)); color: #fff; font-size: 1.5rem; }
.fab-stack .fab::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px dashed var(--latte);
  opacity: 0; transition: opacity 0.3s ease; animation: fab-rotate 6s linear infinite;
}
.fab-stack .fab:hover::before { opacity: 1; }
@keyframes fab-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fab-stack .back-to-top { opacity: 0; visibility: hidden; transform: scale(0.8); }
.fab-stack .back-to-top.show { opacity: 1; visibility: visible; transform: scale(1); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .lineup-grid { grid-template-columns: repeat(2, 1fr); }
  .concern-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.rev .feature-visual, .feature-row.rev .feature-copy { order: initial; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .lineup-grid, .feat3-grid, .team-grid { grid-template-columns: 1fr; }
  .concern-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-slide-content { padding: 0 28px; }
  .hero-arrow { display: none; }
  .cta-banner { padding: 60px 24px; }
}
