/* ========================================
   QY甜點舖 — 法式甜點・多巴胺配色系統
   ======================================== */

/* ===== CSS Custom Properties ===== */
:root {
  --primary:    #FF6B9D;
  --primary-dk: #e8507f;
  --secondary:  #FFD93D;
  --accent1:    #C77DFF;
  --accent2:    #4CAF82;
  --accent3:    #4FC3F7;
  --dark:       #2D1B35;
  --dark2:      #3d2449;
  --mid:        #7a5a8a;
  --light:      #FFF8F0;
  --light2:     #fff3e8;
  --white:      #FFFFFF;
  --border:     rgba(45,27,53,.1);

  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Noto Sans TC', 'PingFang TC', sans-serif;
  --font-acc:   'Cormorant Garamond', Georgia, serif;

  --radius:     16px;
  --radius-sm:  8px;
  --radius-pill:99px;
  --shadow:     0 4px 20px rgba(45,27,53,.12);
  --shadow-lg:  0 8px 40px rgba(45,27,53,.18);
  --trans:      .3s ease;

  --container:  1200px;
  --header-h:   72px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--mid); font-size: 1rem; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== Section ===== */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { color: var(--dark); margin-bottom: .6rem; }
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--mid); font-size: 1.05rem; max-width: 540px; margin-inline: auto; }

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent1));
  border-radius: 2px;
  margin: .8rem auto 0;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: .7em 2em;
  background: linear-gradient(135deg, var(--primary), var(--accent1));
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--trans);
  box-shadow: 0 4px 20px rgba(255,107,157,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,157,.45); }

.btn-secondary {
  display: inline-block;
  padding: .7em 2em;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--trans);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-white {
  display: inline-block;
  padding: .7em 2em;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--trans);
  box-shadow: 0 4px 16px rgba(255,255,255,.3);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,.4); }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,248,240,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-acc);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--dark);
  letter-spacing: .02em;
}
.logo span { color: var(--primary); }

.main-nav { display: flex; gap: 2rem; }
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--mid);
  position: relative;
  transition: var(--trans);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--trans);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--trans);
}

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 50%, var(--accent3) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45,27,53,.45) 0%, rgba(45,27,53,.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--white);
}
.hero-content h1 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero-content h1 em { font-style: italic; color: var(--secondary); }
.hero-content p {
  color: rgba(255,255,255,.9);
  font-size: 1.15rem;
  margin-block: 1.2rem 2rem;
  max-width: 480px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Decorative blobs */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .25;
  pointer-events: none;
}
.hero-deco-1 { width: 400px; height: 400px; background: var(--secondary); top: -100px; right: -100px; }
.hero-deco-2 { width: 300px; height: 300px; background: var(--accent2); bottom: -80px; right: 30%; }

/* ===== Product Cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,107,157,.22);
}

.product-card figure {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light2);
}
.product-card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover figure img { transform: scale(1.06); }

.card-body { padding: 1.2rem; }
.card-body h3 { font-size: 1.05rem; margin-bottom: .3rem; color: var(--dark); }
.card-body p { font-size: .85rem; color: var(--mid); margin-bottom: .8rem; line-height: 1.5; }
.card-body .price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.card-body .card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; }
.btn-card {
  padding: .45em 1.2em;
  background: linear-gradient(135deg, var(--primary), var(--accent1));
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 600;
  transition: var(--trans);
  box-shadow: 0 2px 10px rgba(255,107,157,.25);
}
.btn-card:hover { transform: scale(1.04); }

/* ===== About Brief ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1.5rem; }

/* ===== Testimonials ===== */
.testimonials-bg { background: var(--light2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.4rem;
  font-family: var(--font-acc);
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: .15;
}
.stars { color: var(--secondary); font-size: 1rem; margin-bottom: .8rem; }
.testimonial-card blockquote { font-style: italic; color: var(--mid); margin-bottom: 1rem; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: .7rem; }
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent1));
  color: white;
  font-weight: 700;
}
.reviewer-name { font-weight: 600; font-size: .9rem; color: var(--dark); }
.reviewer-tag { font-size: .78rem; color: var(--mid); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 50%, var(--accent3) 100%);
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,217,61,.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(78,195,247,.2) 0%, transparent 60%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: .8rem; text-shadow: 0 2px 12px rgba(0,0,0,.15); }
.cta-banner p { color: rgba(255,255,255,.88); margin-bottom: 2rem; font-size: 1.1rem; }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, var(--light2) 0%, #ffe8f0 50%, #f0e8ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--dark); margin-bottom: .6rem; }
.page-hero p { color: var(--mid); font-size: 1.1rem; }
.page-hero-deco {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}

/* ===== Filter Tabs ===== */
.filter-section { padding-block: 2.5rem 0; }
.filter-tabs {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: .5em 1.5em;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--mid);
  background: var(--white);
  transition: var(--trans);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent1));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255,107,157,.3);
}

/* ===== Order Notice ===== */
.notice-section {
  background: var(--light2);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 3rem;
}
.notice-section h3 { color: var(--dark); margin-bottom: 1.2rem; }
.notice-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .92rem;
  color: var(--mid);
}
.notice-item::before { content: '✦'; color: var(--primary); flex-shrink: 0; margin-top: .1em; }

/* ===== Values Cards ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--trans);
  border-top: 4px solid transparent;
}
.value-card:nth-child(1) { border-color: var(--primary); }
.value-card:nth-child(2) { border-color: var(--accent1); }
.value-card:nth-child(3) { border-color: var(--accent2); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.value-card h3 { margin-bottom: .6rem; color: var(--dark); }
.value-card p { font-size: .9rem; }

/* ===== Stats Section ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 60%, var(--accent3) 100%);
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative; overflow: hidden;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item { position: relative; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: .4rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75em 1em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--trans);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,157,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-grid input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.contact-info-card h2 { color: var(--dark); margin-bottom: 1.5rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.info-icon { font-size: 1.3rem; flex-shrink: 0; }
.info-text strong { display: block; font-size: .9rem; color: var(--dark); margin-bottom: .1rem; }
.info-text span { font-size: .88rem; color: var(--mid); }

.hours-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: .5rem; }
.hours-table td { padding: .35rem .2rem; color: var(--mid); }
.hours-table td:first-child { font-weight: 600; color: var(--dark); }

.social-links { display: flex; gap: .8rem; margin-top: 1rem; }
.social-link {
  padding: .5em 1.2em;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--trans);
  border: 1.5px solid var(--border);
  color: var(--mid);
}
.social-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding-block: 4rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: .8rem; display: block; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: .88rem; transition: var(--trans); }
.footer-col ul a:hover { color: var(--primary); }
.footer-col address { font-style: normal; font-size: .88rem; line-height: 1.8; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 600; color: var(--dark); padding: .5rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu a.active { color: var(--primary); }

/* ===== RWD ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .testimonials-grid, .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .notice-list { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .filter-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
  .checkbox-grid { grid-template-columns: 1fr; }
}
