/* ============================================================
   FANOUSA — Brand Design System
   Everyday Beauty. Beautifully Yours.
   Palette: Warm Ivory #F6F2EA · Champagne Gold #C5A477 ·
   Soft Taupe #D8C8B8 · Dusty Blush #E7D7D1 · Deep Espresso #403A35
   ============================================================ */

:root {
  --ivory: #F6F2EA;
  --gold: #C5A477;
  --taupe: #D8C8B8;
  --blush: #E7D7D1;
  --espresso: #403A35;
  --espresso-soft: #6B625A;
  --white: #FFFDF9;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--taupe); color: var(--espresso); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.h-display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 400;
}

.h-section {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  text-align: center;
}

.h-sub {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--espresso-soft);
  max-width: 34em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section--taupe { background: var(--taupe); }
.section--blush { background: var(--blush); }
.section--espresso { background: var(--espresso); color: var(--ivory); }
.section--espresso .lede { color: #CFC5BB; }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

.rule {
  border: 0;
  border-top: 1px solid rgba(197, 164, 119, 0.5);
  width: 56px;
  margin: 1.6rem auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05em 2.4em;
  border: 1px solid var(--espresso);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
  cursor: pointer;
}

.btn--solid { background: var(--espresso); color: var(--ivory); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }

.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--ivory); }

.btn--gold {
  background: transparent;
  color: var(--espresso);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold); color: #fff; }

.section--espresso .btn--gold { color: var(--ivory); }
.section--espresso .btn--gold:hover { background: var(--gold); color: var(--espresso); }

.btn--disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(197, 164, 119, 0.28);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem 0;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--espresso);
  text-transform: uppercase;
}

.brandmark__mark { height: 36px; width: auto; display: block; }

.brandmark__text span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 2.2rem; }

.main-nav > li { list-style: none; position: relative; }

.main-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
  padding: 0.5em 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover::after { transform: scaleX(1); }

/* Dropdown */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  background: var(--white);
  border: 1px solid rgba(197, 164, 119, 0.35);
  min-width: 210px;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.dropdown a {
  display: block;
  padding: 0.55em 1.4em;
  white-space: nowrap;
  font-size: 0.72rem;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 1.5px;
  background: var(--espresso);
  position: absolute;
  left: 9px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before {
  transform: translateY(7px) rotate(45deg);
  background: var(--ivory);
}
body.nav-open .nav-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--ivory);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.03);
}

.hero__scrim {
  position: absolute; inset: 0;
  /* light touch at top so the image keeps its texture; deepen only at bottom */
  background: linear-gradient(
    to bottom,
    rgba(246, 242, 234, 0.14) 0%,
    rgba(246, 242, 234, 0.04) 38%,
    rgba(64, 58, 53, 0.30) 76%,
    rgba(64, 58, 53, 0.48) 100%
  );
}

/* subtle vignette for depth, keeps corners from looking flat */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 88% at 50% 42%,
    transparent 58%,
    rgba(64, 58, 53, 0.16) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  max-width: 46em;
}

/* soft halo behind the text block keeps copy readable without washing the image */
.hero__content::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgba(246, 242, 234, 0.88),
    rgba(246, 242, 234, 0.42) 62%,
    rgba(246, 242, 234, 0) 100%
  );
  filter: blur(8px);
}

.hero__content .eyebrow { color: #8F7452; font-size: 0.78rem; }

.hero__content .h-display { margin-bottom: 1.1rem; text-shadow: 0 1px 2px rgba(246, 242, 234, 0.5); }

.hero__content .lede {
  color: var(--espresso);
  margin: 0 auto 2.4rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Category cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}

.cat-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(197, 164, 119, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(64, 58, 53, 0.25);
}

.cat-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.cat-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cat-card:hover .cat-card__media img { transform: scale(1.05); }

.cat-card__body {
  padding: 1.6rem 1.5rem 1.8rem;
  text-align: center;
}

.cat-card__title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.cat-card__text {
  font-size: 0.92rem;
  color: var(--espresso-soft);
  line-height: 1.6;
}

.cat-card--text {
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--taupe), var(--blush));
  aspect-ratio: 4 / 5;
  padding: 2.5rem 1.8rem;
}

.cat-card--text .glyph {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.cat-card--text .cat-card__title { color: var(--espresso); }

/* ---------- Product cards ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-top: 3rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.prod-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(197, 164, 119, 0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(64, 58, 53, 0.25);
}

.prod-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ivory);
}

.prod-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.prod-card:hover .prod-card__media img { transform: scale(1.04); }

.prod-card__body {
  padding: 1.4rem 1.4rem 1.6rem;
  text-align: center;
}

.prod-card__title { font-size: 1.3rem; margin-bottom: 0.3rem; }

.prod-card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.prod-card__view {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- Brand statement ---------- */
.brand-statement {
  max-width: 42em;
  margin-inline: auto;
  text-align: center;
}

/* Fanousa 品牌徽标（灯笼圆徽） */
.brand-crest {
  display: block;
  margin: 0 auto 1.8rem;
  width: clamp(120px, 20vw, 160px);
  filter: saturate(1.06) contrast(1.02);
}

.brand-crest--sm { width: clamp(80px, 12vw, 104px); margin-bottom: 1.4rem; }

.brand-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.5;
  font-weight: 400;
}

.quote-chips {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.2rem;
}

.quote-chips span {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  border: 1px solid rgba(197, 164, 119, 0.45);
  padding: 0.55em 1.3em;
  background: rgba(255, 253, 249, 0.6);
}

/* ---------- Split feature (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.split__media img { width: 100%; height: auto; }

.split__content .eyebrow { text-align: left; }

/* ---------- Product detail ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.gallery__main {
  background: var(--white);
  border: 1px solid rgba(197, 164, 119, 0.3);
}

.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin-top: 0.7rem; }

.gallery__thumbs button {
  border: 1px solid rgba(197, 164, 119, 0.3);
  background: var(--white);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.gallery__thumbs button.active,
.gallery__thumbs button:hover { border-color: var(--gold); }

.gallery__thumbs img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }

.product-info h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.product-info .lede { margin: 1rem 0 1.8rem; }

.spec-list { list-style: none; border-top: 1px solid rgba(197, 164, 119, 0.35); }

.spec-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(197, 164, 119, 0.35);
  font-size: 0.92rem;
}

.spec-list li strong {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--espresso-soft);
  padding-top: 3px;
}

.product-actions { margin-top: 2rem; }

.product-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--espresso-soft);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 46em; margin: 2.6rem auto 0; }

details.faq {
  border-bottom: 1px solid rgba(197, 164, 119, 0.35);
  padding: 0.2rem 0;
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 1rem 0;
  position: relative;
  transition: color 0.3s;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease);
}

details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

details.faq[open] summary { color: var(--gold); }

details.faq p {
  padding: 0 0 1.4rem;
  color: var(--espresso-soft);
  font-size: 0.95rem;
  max-width: 40em;
}

/* ---------- Forms ---------- */
.form { max-width: 560px; margin: 2.4rem auto 0; }

.form-row { margin-bottom: 1.1rem; text-align: left; }

.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  margin-bottom: 0.45rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--espresso);
  background: var(--white);
  border: 1px solid rgba(197, 164, 119, 0.45);
  padding: 0.85em 1em;
  outline: none;
  transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus { border-color: var(--gold); }

.form-row textarea { min-height: 140px; resize: vertical; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9em 1.2em;
  font-size: 0.9rem;
  background: var(--taupe);
  border-left: 2px solid var(--gold);
}

.form-status.show { display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-hero .lede { margin: 0.8rem auto 0; }

/* ---------- Prose ---------- */
.prose { max-width: 42em; margin-inline: auto; }

.prose p { margin-bottom: 1.3rem; color: var(--espresso-soft); }

.prose p:first-of-type {
  font-size: 1.08rem;
  color: var(--espresso);
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2.2rem 0 1rem;
  color: var(--espresso);
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }

.cta-band .lede { margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: #CFC5BB;
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 242, 234, 0.14);
}

.footer-brand .brandmark {
  color: var(--ivory);
  font-size: 1.4rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 22em;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #BDB2A8;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }

.footer-col a {
  display: block;
  padding: 0.28em 0;
  color: #CFC5BB;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--ivory); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: #9C9087;
}

.footer-legal .dot-sep { margin: 0 0.5em; }

/* ---------- Preview ribbon ---------- */
.preview-tag {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 100;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(64, 58, 53, 0.72);
  border: 1px solid rgba(197, 164, 119, 0.6);
  padding: 0.5em 1em;
  user-select: none;
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  margin-bottom: 1.4rem;
}

.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--espresso); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--espresso);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  body.nav-open .main-nav { opacity: 1; visibility: visible; }

  .main-nav a { color: var(--ivory); font-size: 1rem; letter-spacing: 0.24em; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    text-align: center;
    min-width: 0;
  }

  .dropdown a { color: #CFC5BB; font-size: 0.85rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }

  .spec-list li { grid-template-columns: 110px 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--espresso);
  color: var(--ivory);
  padding: 0.7em 1.2em;
  z-index: 200;
}

.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
