/* ===== Fandora 繁朵拉 — site styles ===== */
:root {
  --cream: #fbf6ef;
  --cream-2: #f4ebdd;
  --paper: #fffdf9;
  --cocoa: #3b2a22;
  --cocoa-soft: #6e5a4f;
  --pistachio: #8fae6b;
  --lavender: #8a7cc9;
  --lavender-deep: #6a5bb0;
  --lavender-soft: #ece7f9;
  --pistachio-deep: #5f7f45;
  --berry: #d9506a;
  --mango: #f4b740;
  --line: rgba(59, 42, 34, 0.12);
  --radius: 22px;
  --shadow: 0 18px 40px -22px rgba(59, 42, 34, 0.35);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --en: "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(59,42,34,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .brand-logo { height: 50px; width: auto; }
.site-footer .brand .brand-logo { height: 80px; }
.brand-text { padding-left: 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 20px; letter-spacing: .08em; }
.brand-text span { font-family: var(--en); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--cocoa-soft); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; color: var(--cocoa-soft);
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--cream-2); color: var(--cocoa); }
.nav-links .nav-cta { background: var(--cocoa); color: var(--cream); }
.nav-links .nav-cta:hover { background: var(--lavender-deep); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--cocoa); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--en); font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--lavender-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0; }
.en { font-family: var(--en); font-style: italic; color: var(--cocoa-soft); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 14px; }
.section-head p { margin: 16px 0 0; color: var(--cocoa-soft); }
.section-head p.en { margin-top: 6px; font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cocoa); color: var(--cream); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--lavender-deep); }
.btn-ghost { border: 1px solid var(--cocoa); color: var(--cocoa); }
.btn-ghost:hover { background: var(--cocoa); color: var(--cream); }
.arrow { transition: transform .2s; }
a:hover .arrow { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(138,124,201,.22), transparent 62%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; top: -20%; left: -15%; width: 50vw; height: 50vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(244,183,64,.18), transparent 62%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 20px 0 8px; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--lavender-deep); }
.hero .tagline { font-family: var(--en); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--cocoa-soft); margin: 0 0 24px; }
.hero p.lead { font-size: 17px; max-width: 34em; margin: 0 0 10px; }
.hero p.lead-en { font-size: 15px; color: var(--cocoa-soft); max-width: 36em; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .photo, .hero-art svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-art .photo { object-fit: cover; border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow); }
.hero-art { aspect-ratio: 4 / 5; }
.hero-badge {
  position: absolute; left: -12px; bottom: -4%;
  background: var(--paper); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; font-size: 14px;
  animation: float 6s ease-in-out infinite;
}
.hero-badge b { font-family: var(--serif); font-size: 16px; display: block; }
.hero-badge span.en { font-size: 12px; }
.hero-badge .dot { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--lavender), #d9d1f3); flex: none; }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; order: -1; }
  .hero-badge { left: 0; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--cocoa); color: var(--cream); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--en); font-style: italic; font-size: 20px; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; font-style: normal; color: var(--lavender); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 36px 30px 32px;
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar .icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 24px;
}
.pillar .icon svg { width: 34px; height: 34px; }
.pillar h3 { font-size: 24px; }
.pillar h3 small { display: block; font-family: var(--en); font-style: italic; font-weight: 400; font-size: 15px; color: var(--cocoa-soft); margin-top: 4px; }
.pillar p { margin: 16px 0 0; font-size: 15px; }
.pillar p.en { margin-top: 8px; font-size: 14px; flex: 1; }
.pillar .link { margin-top: 24px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--lavender-deep); }
.ic-gelato { background: #fde3e8; color: var(--berry); }
.ic-bake { background: #fdf0d2; color: #c98a12; }
.ic-machine { background: var(--lavender-soft); color: var(--lavender-deep); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.services-bg { background: var(--paper); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.service .bg, .service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.service:hover .bg, .service:hover img { transform: scale(1.05); }
.service::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(40, 26, 20, .78));
}
.service .num { position: absolute; top: 20px; left: 22px; font-family: var(--en); font-size: 15px; letter-spacing: .2em; opacity: .85; }
.service .body { padding: 26px; }
.service h3 { font-size: 22px; }
.service p { margin: 4px 0 0; font-family: var(--en); font-style: italic; opacity: .9; }
.service .bg::before, .service .bg::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.22); }
.service .bg::before { width: 70%; aspect-ratio: 1; right: -18%; top: -8%; }
.service .bg::after { width: 30%; aspect-ratio: 1; left: 12%; top: 22%; background: rgba(255,255,255,.14); }
.service .num { font-size: 40px; font-style: italic; letter-spacing: .02em; opacity: .75; top: 14px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { aspect-ratio: 16 / 11; } }

/* ---------- story ---------- */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 32px; overflow: hidden;
  background: var(--cocoa); color: var(--cream);
}
.story-art { background: linear-gradient(135deg, #f7c9d2, #f4b740 60%, #8fae6b); min-height: 360px; position: relative; }
.story-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-body { padding: clamp(36px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.story-body .eyebrow { color: #c3b8ee; }
.story-body h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 6px; }
.story-body .en { color: rgba(251,246,239,.7); margin: 0 0 22px; }
.story-body p { margin: 0 0 14px; color: rgba(251,246,239,.88); }
.story-body .btn-ghost { border-color: var(--cream); color: var(--cream); align-self: flex-start; margin-top: 16px; }
.story-body .btn-ghost:hover { background: var(--cream); color: var(--cocoa); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-art { min-height: 240px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 14px; background: var(--cream-2); display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cocoa-soft); }
.contact-list a, .contact-list div > span { font-size: 17px; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--lavender-deep); }
.contact-cta {
  border-radius: var(--radius); padding: 36px; color: var(--cocoa);
  background: linear-gradient(140deg, #ece7f9, #fde3e8 55%, #fdf0d2);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.contact-cta h3 { font-size: 28px; }
.contact-cta p { margin: 10px 0 0; }
.contact-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--cocoa); color: rgba(251,246,239,.8); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-text strong { color: var(--cream); }
.site-footer .brand-text span { color: rgba(251,246,239,.6); }
.site-footer h4 { font-family: var(--serif); color: var(--cream); font-size: 16px; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #c3b8ee; }
.site-footer p { margin: 14px 0 0; max-width: 32em; }
.footer-bottom { border-top: 1px solid rgba(251,246,239,.14); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(251,246,239,.55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- cakes page ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% 10% auto; height: 120%;
  background: radial-gradient(ellipse at center, rgba(138,124,201,.16), transparent 60%);
  z-index: -1;
}
.page-hero h1 { font-size: clamp(38px, 5.5vw, 64px); margin: 18px 0 10px; }
.page-hero p { max-width: 640px; margin: 0 auto; }
.page-hero p.en { margin-top: 10px; font-size: 15px; }
.page-hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.cat-nav {
  position: sticky; top: 72px; z-index: 40; background: rgba(251,246,239,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.cat-nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; white-space: nowrap; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; background: var(--paper); transition: all .2s; }
.cat-nav a:hover, .cat-nav a.active { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }
@media (max-width: 640px) { .cat-nav ul { justify-content: flex-start; } }

.category { padding: 72px 0 8px; scroll-margin-top: 140px; }
.category-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.category-head h2 { font-size: clamp(26px, 3vw, 34px); }
.category-head .en { font-size: 18px; }
.category-head .count { margin-left: auto; font-size: 13px; color: var(--cocoa-soft); letter-spacing: .1em; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(140deg, var(--c1), var(--c2)); }
.product-media::before, .product-media::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.28);
}
.product-media::before { width: 56%; aspect-ratio: 1; right: -10%; bottom: -22%; }
.product-media::after { width: 26%; aspect-ratio: 1; left: 10%; top: 12%; background: rgba(255,255,255,.18); }
.product-media .glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: .12em;
  color: rgba(255,255,255,.92); text-shadow: 0 2px 18px rgba(0,0,0,.12);
}
.product-media.light .glyph { color: rgba(59,42,34,.78); text-shadow: none; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: transform .6s; }
.product:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 22px 24px 26px; }
.product-body h3 { font-size: 21px; }
.product-body .name-en { font-family: var(--en); font-style: italic; color: var(--lavender-deep); font-size: 16px; margin: 2px 0 12px; }
.product-body p { margin: 0; font-size: 15px; }
.product-body p.en { margin-top: 6px; font-size: 14px; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

.custom-banner {
  margin-top: 96px; border-radius: 32px; padding: clamp(36px, 6vw, 64px);
  background: var(--cocoa); color: var(--cream); text-align: center; position: relative; overflow: hidden;
}
.custom-banner::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(138,124,201,.25); top: -160px; left: -80px; }
.custom-banner::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(217,80,106,.2); bottom: -150px; right: -60px; }
.custom-banner > * { position: relative; z-index: 1; }
.custom-banner h2 { font-size: clamp(28px, 3.6vw, 40px); }
.custom-banner p { margin: 14px auto 28px; max-width: 560px; color: rgba(251,246,239,.85); }
.custom-banner .btn-primary { background: var(--cream); color: var(--cocoa); }
.custom-banner .btn-primary:hover { background: var(--mango); }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-badge { animation: none; }
}
