/* ============================================
   FestiveHaus — Christmas & Easter Decor Store
   ============================================ */

:root {
  /* Christmas palette */
  --xmas-green: #1a4d2e;
  --xmas-deep: #0e3220;
  --xmas-red: #b02a2a;
  --xmas-gold: #d4a24a;
  --xmas-gold-light: #f0d9a8;

  /* Easter palette */
  --easter-pink: #f4a8c0;
  --easter-mint: #a8dcd1;
  --easter-yellow: #f7e3a1;
  --easter-lilac: #cdb9e8;
  --easter-bg: #fdf6f8;

  /* Neutrals */
  --ink: #22252a;
  --ink-soft: #5b6068;
  --line: #e8e5df;
  --bg: #fbfaf8;
  --white: #ffffff;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 30, 30, 0.10);
  --shadow-hover: 0 18px 40px rgba(30, 30, 30, 0.16);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--xmas-deep);
  color: var(--xmas-gold-light);
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.logo-icon { font-size: 1.4rem; }
.accent { color: var(--xmas-red); }
body[data-theme="easter"] .accent { color: #d0628c; }

.nav { display: flex; gap: 28px; }
.nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); padding: 6px 0; position: relative; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--xmas-red); transition: width 0.25s;
}
body[data-theme="easter"] .nav a::after { background: #d0628c; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  border: none; background: transparent; padding: 6px 12px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; transition: 0.2s;
}
.lang-btn + .lang-btn { border-left: 1.5px solid var(--line); }
.lang-btn.active { background: var(--xmas-green); color: #fff; }
body[data-theme="easter"] .lang-btn.active { background: #d0628c; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-img.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,26,16,0.55) 0%, rgba(10,26,16,0.35) 45%, rgba(10,26,16,0.72) 100%);
}
body[data-theme="easter"] .hero-overlay {
  background: linear-gradient(180deg, rgba(80,40,60,0.45) 0%, rgba(80,40,60,0.28) 45%, rgba(80,40,60,0.62) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 110px; max-width: 760px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  padding: 7px 18px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.ht-line { display: block; }
.ht-accent { color: var(--xmas-gold-light); }
body[data-theme="easter"] .ht-accent { color: #ffd9e8; }
.hero-sub {
  margin: 22px 0 32px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 560px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 700;
  cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--xmas-red); color: #fff;
  box-shadow: 0 10px 24px rgba(176, 42, 42, 0.4);
}
.btn-primary:hover { background: #962222; transform: translateY(-2px); }
body[data-theme="easter"] .btn-primary {
  background: #d0628c; box-shadow: 0 10px 24px rgba(208, 98, 140, 0.4);
}
body[data-theme="easter"] .btn-primary:hover { background: #b84f77; }
.btn-ghost {
  background: rgba(255,255,255,0.14); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.26); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: 1.7rem; }
.stat span { font-size: 0.85rem; opacity: 0.85; }

.hero-scroll {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 1.6rem; opacity: 0.8;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 26px 0;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.ti-icon { font-size: 1.7rem; }
.trust-item strong { display: block; font-size: 0.95rem; }
.trust-item span:last-child { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow-christmas { background: #e7f0ea; color: var(--xmas-green); }
.eyebrow-easter { background: #fce9f0; color: #b04f77; }
.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.section-sub { margin-top: 14px; color: var(--ink-soft); }

.collection { padding: 90px 0; }
.collection-christmas {
  background: linear-gradient(180deg, #f4f1ea 0%, #fbfaf8 100%);
}
.collection-easter { background: linear-gradient(180deg, var(--easter-bg) 0%, #fbfaf8 100%); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.06); }
.tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: #fff;
}
.tag-best { background: var(--xmas-red); }
.tag-new { background: #2e7d5b; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.08rem; font-weight: 700; }
.card-desc { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--xmas-green); }
.stars { font-size: 0.8rem; color: #c98f1b; }
.stars em { color: var(--ink-soft); font-style: normal; }
.btn-card {
  margin-top: 6px; padding: 11px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-card:hover { background: var(--xmas-green); }

/* ---------- Feature / Why us ---------- */
.feature { padding: 100px 0; background: var(--white); }
.feature-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.feature-text .eyebrow { background: #eef1f5; color: var(--ink-soft); }
.feature-text .section-title { margin-bottom: 18px; }
.feature-text p { color: var(--ink-soft); margin-bottom: 20px; }
.checklist { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.checklist li { font-weight: 500; }
.feature-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-imgs img { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }
.feature-imgs img:first-child { transform: rotate(-2deg); }
.feature-imgs img:last-child { transform: rotate(2deg); margin-top: 30px; }

/* ---------- Reviews ---------- */
.reviews { padding: 90px 0; background: linear-gradient(180deg, #fbfaf8 0%, #f4f1ea 100%); }
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.review-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--xmas-green); color: #fff; font-weight: 700; font-size: 0.85rem;
}
.reviewer strong { display: block; font-size: 0.92rem; }
.reviewer span:not(.avatar) { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter { padding: 80px 0; background: var(--xmas-deep); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.newsletter p { color: #cfe0d5; }
.nl-form { display: flex; gap: 12px; }
.nl-form input {
  flex: 1; padding: 15px 20px; border-radius: 999px; border: none;
  font-family: var(--font-body); font-size: 0.95rem; outline: none; min-width: 0;
}
.nl-form .btn-primary { white-space: nowrap; }
.nl-msg { grid-column: 1 / -1; display: none; font-weight: 600; color: var(--xmas-gold-light); }
.nl-msg.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9bcc2; padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 6px; }
.footer-col a { font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #36393f; padding: 22px 0; text-align: center; font-size: 0.8rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Chinese typography ---------- */
html[lang="zh"] body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", var(--font-body);
}
html[lang="zh"] .hero-title,
html[lang="zh"] .section-title,
html[lang="zh"] .price,
html[lang="zh"] .logo,
html[lang="zh"] .newsletter h2 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Songti SC", "Microsoft YaHei", var(--font-head);
}
html[lang="zh"] .hero-title { line-height: 1.22; font-weight: 700; letter-spacing: 0.02em; }
html[lang="zh"] .section-title { line-height: 1.3; font-weight: 700; }
html[lang="zh"] .hero-sub { line-height: 1.8; }
html[lang="zh"] .card-body h3 { line-height: 1.5; }
html[lang="zh"] .eyebrow { letter-spacing: 0.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
    background: var(--white); flex-direction: column; gap: 0;
    padding: 80px 30px 30px; box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    transition: right 0.35s ease;
  }
  .nav.open { right: 0; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-toggle { display: flex; z-index: 210; position: relative; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .hero-stats { gap: 24px; }
  .feature-imgs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-imgs img:last-child { margin-top: 16px; }
  .nl-form { flex-direction: column; }
  .lang-btn { padding: 5px 7px; font-size: 0.68rem; }
  .announce { font-size: 0.72rem; }
}
