/* =========================================================
   小花 Xiaohua Flower Studio — Shared Stylesheet
   Design system driven by :root tokens. One CSS for all pages.
   ========================================================= */

:root {
  /* Brand palette */
  --color-primary: #d6708f;        /* soft rose */
  --color-primary-dark: #b9436a;
  --color-primary-light: #f6dbe4;
  --color-accent: #7fa97a;         /* leaf green */
  --color-accent-dark: #5d8758;
  --color-ink: #3a2f33;            /* warm near-black text */
  --color-muted: #7c6f74;
  --color-bg: #fffafc;             /* warm white */
  --color-surface: #ffffff;
  --color-border: #efe2e7;

  /* Typography */
  --font-base: "Noto Sans TC", "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Noto Serif TC", Georgia, "PingFang TC", serif;

  /* Layout */
  --container: 1140px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(58, 47, 51, .06);
  --shadow-md: 0 10px 30px rgba(58, 47, 51, .12);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --transition: .25s ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; color: var(--color-ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin: 0 0 .6em; }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); margin: 0 0 .4em; }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--color-primary-light); }
.section--surface { background: var(--color-surface); }

.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head .eyebrow { display:inline-block; }
.section-head p { color: var(--color-muted); margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-base);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .75rem;
}

.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .7em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.9); color: var(--color-ink); }
.btn--ghost:hover { background: #fff; color: var(--color-primary-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row--center { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 252, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--color-ink); }
.brand:hover { color: var(--color-primary-dark); }
.brand .brand-mark { font-size: 1.5rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px;
  background: var(--color-ink); position: relative; transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--color-ink); font-weight: 500; }
.nav-menu a:hover,
.nav-menu a.is-active { color: var(--color-primary-dark); }
.nav-menu .btn { color: #fff; }
.nav-menu .btn:hover { color: #fff; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--color-border); }
  .nav-menu li:first-child { border-top: 0; }
  .nav-menu a { display: block; padding: .85rem 0; }
  .nav-menu .btn { text-align: center; margin-top: .75rem; padding: .7em 1.6em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(58,30,40,.45), rgba(58,30,40,.55)), url("../images2/hero-bg.png") center/cover no-repeat;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(440px, 70vh, 640px);
  padding-block: clamp(3rem, 8vw, 6rem);
  max-width: 680px;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 46ch; color: rgba(255,255,255,.92); }
.hero .eyebrow { color: var(--color-primary-light); }

/* Generic page hero (interior pages) */
.page-hero {
  background: var(--color-primary-light);
  text-align: center;
}
.page-hero__inner { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.page-hero p { color: var(--color-muted); max-width: 56ch; margin-inline: auto; margin-bottom: 0; }

/* ---------- Grid utility ---------- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .card-icon { font-size: 2rem; margin-bottom: .6rem; }
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }

/* Product card */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.product-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { margin-bottom: .25rem; }
.product-card__price { color: var(--color-primary-dark); font-weight: 700; font-size: 1.1rem; margin: .25rem 0 1rem; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Split / media+text ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; text-align: center; }
.stat .stat-num { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--color-primary); font-weight: 700; line-height: 1; }
.stat .stat-label { color: var(--color-muted); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.quote-card p { font-style: italic; }
.quote-card .quote-author { font-style: normal; font-weight: 600; color: var(--color-ink); margin-bottom: 0; }
.quote-card .quote-author span { display: block; font-weight: 400; color: var(--color-muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-primary); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin-inline: auto; }
.cta-band .btn--ghost { margin-top: .5rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--color-ink);
  padding: .75em .9em; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .info-icon { font-size: 1.4rem; line-height: 1; }
.info-list strong { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,.78); padding-block: clamp(2.75rem, 6vw, 4rem) 1.5rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 2rem; }
.footer-brand .brand { color: #fff; margin-bottom: .75rem; }
.footer-brand p { max-width: 32ch; }
.footer-col h4 { font-family: var(--font-base); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: #fff; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .88rem; }

/* ---------- Misc ---------- */
.lead { font-size: 1.15rem; color: var(--color-muted); }
.tag { display:inline-block; background: var(--color-primary-light); color: var(--color-primary-dark); border-radius:999px; padding:.25em .9em; font-size:.82rem; font-weight:600; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
