/* =====================================================================
   YM Studio — 指定攝影師 Landing Page (Cloudflare Pages)
   Shared stylesheet for lok.html / kirsten.html
   Brand tokens mirror src/app/globals.css of the main ERP so the
   standalone Cloudflare page feels native to /customer.
   ⚠️ This is a STATIC export for Cloudflare Pages — NOT deployed via
   Vercel/Next. Do not move into the Next app folder.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Noto+Serif+TC:wght@500;600;700&display=swap');

:root {
  /* Elegant editorial palette — quiet warm neutrals so the PHOTOS carry the colour.
     Re-aligned 2026-06-18 from the heavy ERP brown to YM 的 Wix／孕攝 唯美風格. */
  --primary: #2f2a23;        /* deep warm near-black — logo / emphasis / numerals */
  --primary-light: #6f6757;
  --primary-dark: #211d17;
  --accent: #a8865f;         /* muted bronze — hairline accents */
  --accent-dark: #7c5f37;    /* darker bronze — small labels (AA on cream) */
  --accent-light: #ece2d2;   /* soft gold tint — badge / subtle fills */
  --surface: #f7f3ec;        /* warm off-white page */
  --surface-dark: #efe8dd;
  --text: #2b2722;
  --text-muted: #8a8175;
  --border: #e6ddcf;
  --success: #4caf50;
  --warning: #b88a3a;
  --danger: #b4524a;

  /* Refined, muted CTA green — elegant, white text still passes AA */
  --wa: #3f6f52;
  --wa-dark: #335b43;

  --font-serif: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(45, 33, 24, 0.08);
  --shadow-md: 0 8px 30px rgba(45, 33, 24, 0.10);
  --maxw: 1152px; /* max-w-6xl */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans HK", -apple-system, BlinkMacSystemFont, "PingFang HK",
    "Microsoft JhengHei", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

/* Serif display — names, headings, numerals (the 唯美 editorial voice) */
.brand, .hero-content h1, .section-title, .cta-band h2,
.photog-card .pname, .photog-card .price, .price-card .amount {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.philosophy .pull { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.18em;
}
.header-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.header-cta:hover { background: var(--accent-light); border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-light); }
.btn svg { width: 18px; height: 18px; }

/* Visible keyboard focus for all interactive controls (mouse clicks stay clean via :focus-visible) */
:where(.btn, .tab, .header-cta, .faq-item summary, a):focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

/* ---------- Badge / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-size: 13px;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 92px;
}
.hero-content h1 {
  font-size: clamp(32px, 5.2vw, 50px);
  line-height: 1.16;
  font-weight: 600;
  margin: 10px 0 16px;
}
.hero-content .lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 26px;
}
.hero-content .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-meta .stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.hero-meta .stat span { font-size: 13px; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section.alt { background: #fffdfa; border-block: 1px solid var(--border); }
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 600;
  margin: 0 0 12px;
}
.section-intro { color: var(--text-muted); max-width: 60ch; margin: 0 0 32px; }

/* ---------- Philosophy ---------- */
.philosophy p { font-size: 17px; margin: 0 0 18px; max-width: 64ch; }
.philosophy .pull {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 8px 0 26px;
  line-height: 1.4;
}

/* ---------- Portfolio ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-panel[hidden] { display: none; }
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-dark);
  aspect-ratio: 3 / 4;
}
.gallery-item.wide { aspect-ratio: 3 / 2; grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Image placeholder (renders before real photos are dropped in) */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background:
    repeating-linear-gradient(45deg, rgba(196,149,106,0.10) 0 10px, rgba(196,149,106,0.04) 10px 20px),
    var(--accent-light);
  padding: 10px;
}

/* ---------- Star / KOL social proof ---------- */
.proof-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.proof-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--surface-dark);
  position: relative;
}
.proof-item .tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(45, 33, 24, 0.6);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  backdrop-filter: blur(2px);
}
.consent-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Why designate / differentiators ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.why-card .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.why-card h3 { margin: 0 0 6px; font-size: 17px; }
.why-card p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- Steps (half-self-serve flow) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px; left: 22px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.step h3 { margin: 6px 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: var(--text-muted); }

.notice {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff7ec;
  border: 1px solid #f3d9b0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14px;
}
.notice .ico { color: var(--warning); flex: none; }
.notice strong { color: var(--primary-dark); }

/* ---------- Price ---------- */
.price-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, var(--accent-light), #fff);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.price-card .amount { font-size: 34px; font-weight: 700; color: var(--primary-dark); }
.price-card .amount small { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.price-card .note { font-size: 13px; color: var(--text-muted); max-width: 42ch; margin-top: 4px; }

/* ---------- Photographer list (第一版 / Page 1: price + short desc + click-in) ---------- */
.photog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.photog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.photog-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.photog-card .thumb { aspect-ratio: 4 / 5; background: var(--surface-dark); }
.photog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photog-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.photog-card .tier { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--text-muted); letter-spacing: 0.02em; }
.photog-card .pname { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin: 0; }
.photog-card .price { font-size: 28px; font-weight: 700; color: var(--primary); margin: 2px 0; }
.photog-card .price small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.photog-card .desc { font-size: 14px; color: var(--text-muted); flex: 1; margin: 2px 0 14px; }
.photog-card .btn { align-self: flex-start; }

/* ---------- Trailer / micro-film video (第二版 / Page 2) ---------- */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-dark);
  box-shadow: var(--shadow-sm);
}
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { width: 100%; height: 100%; }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  width: 66px; height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.play-btn::before {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--primary);
  margin-left: 4px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 4px;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { margin: 0 4px 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding-block: 56px;
}
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  border-top: 1px solid var(--border);
  padding-block: 36px;
  font-size: 13px;
  color: var(--text-muted);
}
.site-footer .brand { font-size: 16px; }
.disclaimer { margin-top: 14px; max-width: 70ch; line-height: 1.7; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.sticky-cta .btn { width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 44px; gap: 30px; }
  .hero-portrait { max-width: 420px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .proof-wall { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .steps { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .sticky-cta { display: block; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
