/* ==========================================================
   蔓寧女子美容美體美睫 SPA 館
   Breakpoints: desktop ≥1024 / tablet 768–1023 / mobile <768
   ========================================================== */

:root {
  --cream: #F5F1E8;
  --paper: #FBF8F2;
  --forest: #1E3326;
  --green: #35603A;
  --green-hover: #2A4E2F;
  --sage: #E3E7D6;
  --lime: #C6DE7E;
  --lime-hover: #B5D163;
  --ink: #1F2A22;
  --muted: #5E6A5F;
  --line: #D8D3C4;
  --on-dark: rgba(251, 248, 242, .72);
  --on-dark-soft: rgba(251, 248, 242, .6);
  --line-dark: rgba(251, 248, 242, .15);

  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --gutter: clamp(24px, 5.5vw, 80px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-dark { background: var(--forest); color: var(--paper); }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(32px, 4.45vw, 64px); line-height: 1.3; letter-spacing: .03em; }
h2 { font-size: clamp(28px, 3.05vw, 44px); line-height: 1.38; }
.h2-lg { font-size: clamp(28px, 3.35vw, 48px); }
.h2-xl { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.3; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .2em; color: var(--green);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--lime); }

.lead { font-size: 17px; line-height: 1.85; color: var(--muted); }
.lead-light { font-size: 17px; line-height: 1.85; color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 12px 24px; }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-lime { background: var(--lime); color: var(--forest); font-weight: 600; }
.btn-lime:hover { background: var(--lime-hover); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--green);
  padding-bottom: 6px; border-bottom: 1.5px solid currentColor;
}
.text-link .i { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover .i { transform: translateX(4px); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.section-dark :focus-visible { outline-color: var(--lime); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--lime);
  display: grid; place-items: center;
}
.logo-mark .i { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .18em; }
.logo-sub { font-size: 10px; letter-spacing: .25em; color: var(--muted); }
.logo-light .logo-sub { color: var(--on-dark-soft); }

.nav-links { display: flex; align-items: center; gap: 44px; font-size: 15px; }
.nav-links > a:not(.btn) { position: relative; padding: 4px 0; }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--green); transform: scaleX(0); transition: transform .2s;
}
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-menu-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta-short { display: none; }
.nav-cta .i { width: 16px; height: 16px; }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  place-items: center; cursor: pointer; padding: 0;
}
.menu-btn .i { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 72px; align-items: center;
  padding-top: 32px; padding-bottom: 96px;
}
.hero-copy h1 { margin-bottom: 36px; }
.hero-sub { max-width: 520px; font-size: 18px; line-height: 1.8; color: var(--muted); margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.trust {
  display: flex; gap: 40px; max-width: 520px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.trust dt { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--green); line-height: 1.3; }
.trust dd { font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; }
.hero-img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 1000px 1000px 8px 8px;
  background: var(--sage);
}
.offer-badge {
  position: absolute; left: -56px; bottom: 40px;
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: 16px; min-width: 260px;
  background: var(--forest); color: var(--paper);
  box-shadow: 0 16px 40px rgba(30, 51, 38, .2);
}
.offer-badge-label { font-size: 14px; color: var(--lime); letter-spacing: .08em; }
.offer-badge-price { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.3; }
.offer-badge-note { font-size: 13px; color: var(--on-dark); }

/* ---------- Promise ---------- */
.promise { padding: 112px 0; }
.promise-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; margin-bottom: 72px; }
.promise-head .lead-light { max-width: 460px; flex: none; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); }
.principles article { padding: 36px 40px 8px; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.principles article:first-child { padding-left: 0; border-left: 0; }
.principles .num { display: block; font-family: var(--serif); font-size: 16px; color: var(--lime); letter-spacing: .12em; margin-bottom: 20px; }
.principles h3 { font-size: 32px; letter-spacing: .12em; margin-bottom: 20px; }
.principles p { font-size: 16px; line-height: 1.8; color: var(--on-dark-soft); }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 96px; align-items: start;
  padding-top: var(--section); padding-bottom: var(--section);
}
.services-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.services-intro h2 { margin-bottom: 28px; }
.services-intro .lead { margin-bottom: 28px; }

.service {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 200px;
  grid-template-areas: "num text img";
  gap: 40px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service .num { grid-area: num; font-family: var(--serif); font-size: 18px; color: var(--green); }
.service-text { grid-area: text; }
.service h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 28px; margin-bottom: 12px; }
.pill { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--green); background: var(--sage); padding: 4px 12px; border-radius: 999px; letter-spacing: 0; }
.service p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.service img { grid-area: img; width: 100%; height: 140px; object-fit: cover; border-radius: 8px; background: var(--sage); }

/* ---------- Offer ---------- */
.offer { padding-bottom: var(--section); }
.offer-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 560px;
  background: var(--green); color: var(--paper);
  border-radius: 24px; overflow: hidden;
}
.offer-main { padding: 72px 64px; }
.offer-title { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 28px; }
.price { display: flex; align-items: flex-end; gap: 12px; color: var(--lime); font-family: var(--serif); font-weight: 600; margin-bottom: 28px; }
.price-cur { font-size: 32px; font-weight: 500; line-height: 1.6; }
.price-amt { font-size: clamp(76px, 8.4vw, 120px); line-height: 1; }
.offer-note { max-width: 440px; font-size: 16px; line-height: 1.8; color: var(--on-dark); margin-bottom: 28px; }
.offer-cta-mobile { display: none; }

.offer-courses { background: var(--forest); padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.offer-courses li { display: flex; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(251, 248, 242, .12); }
.course-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid rgba(198, 222, 126, .4); color: var(--lime); display: grid; place-items: center; }
.course-icon .i { width: 22px; height: 22px; }
.course-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.course-text strong { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.course-text small { font-size: 14px; color: var(--on-dark-soft); }
.course-min { display: flex; align-items: flex-end; gap: 4px; font-size: 14px; color: var(--on-dark-soft); }
.course-min b { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; color: var(--paper); }

/* ---------- Space ---------- */
.space { background: var(--paper); padding: var(--section) 0; }
.space-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; margin-bottom: 56px; }
.space-head > div { max-width: 640px; }
.space-head .lead { max-width: 420px; flex: none; }
.gallery {
  display: grid; gap: 20px; height: 560px;
  grid-template-columns: minmax(0, 1fr) 420px 300px;
  grid-template-rows: 1fr 1fr;
  grid-template-areas: "room towels plant" "room oils plant";
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: var(--sage); }
.g-room { grid-area: room; }
.g-towels { grid-area: towels; }
.g-oils { grid-area: oils; }
.g-plant { grid-area: plant; }

/* ---------- Reviews ---------- */
.reviews { padding: var(--section) 0; }
.reviews-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 96px; }
.reviews-stats h2 { margin-bottom: 32px; }
.stats { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.stats > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--on-dark-soft); }
.stats strong { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; color: var(--lime); }
.stars { color: var(--lime); letter-spacing: 3px; font-size: 15px; }
.quotes figure { padding: 40px 0; border-bottom: 1px solid rgba(251, 248, 242, .12); }
.quotes figure:first-child { padding-top: 0; }
.quotes figure:last-child { border-bottom: 0; padding-bottom: 0; }
.quotes blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.75; margin-bottom: 20px; }
.quotes figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--on-dark-soft); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--lime); display: grid; place-items: center; font-weight: 500; }

/* ---------- Visit ---------- */
.visit { padding-top: var(--section); padding-bottom: var(--section); }
.visit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 72px; }
.visit-ctas { display: flex; gap: 16px; }
.br-mobile { display: none; }
.visit-body { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 64px; align-items: center; }
.info li {
  display: grid; grid-template-columns: 44px 110px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.info li:last-child { border-bottom: 1px solid var(--line); }
.info-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sage); color: var(--green); display: grid; place-items: center; }
.info-icon .i { width: 20px; height: 20px; }
.info-label { font-size: 15px; color: var(--muted); }
.info-value { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
a.info-value:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.map { height: 420px; border-radius: 16px; overflow: hidden; background: var(--sage); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.footer-tagline { font-family: var(--serif); font-size: 18px; color: var(--lime); letter-spacing: .18em; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 24px; border-top: 1px solid rgba(251, 248, 242, .12);
  font-size: 13px; color: rgba(251, 248, 242, .5);
}
.footer-bottom nav { display: flex; gap: 32px; }
.footer-bottom nav a { color: var(--on-dark); }
.footer-bottom nav a:hover { color: var(--lime); }

/* ==========================================================
   Tablet (768–1023) & shared small-screen rules (<1024)
   ========================================================== */
@media (max-width: 1023px) {
  :root { --header-h: 72px; }

  /* Mobile menu */
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(30, 51, 38, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not(.btn) { padding: 18px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-menu-cta { display: flex; margin-top: 24px; padding: 16px 24px; font-size: 16px; }

  /* Hero stacks, image first */
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 8px; padding-bottom: 72px; }
  .hero-visual { order: -1; width: 100%; max-width: 520px; margin: 0 auto; }
  .hero-img { aspect-ratio: 342 / 420; }
  .offer-badge { left: 16px; bottom: -20px; }

  .promise { padding: var(--section) 0; }
  .promise-head { flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 40px; }
  .promise-head .lead-light { max-width: 640px; }

  .services { grid-template-columns: 1fr; gap: 40px; }
  .services-intro { position: static; max-width: 640px; }
  .service { grid-template-columns: 32px minmax(0, 1fr) 160px; gap: 28px; }
  .service img { height: 120px; }

  .offer-card { grid-template-columns: 1fr; }
  .offer-cta-desktop { display: none; }
  .offer-cta-mobile { display: flex; }

  .space-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .gallery {
    height: auto; gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 380px 220px;
    grid-template-areas: "room room room" "towels oils plant";
  }

  .reviews-grid { grid-template-columns: 1fr; gap: 40px; }

  .visit-head { flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 40px; }
  .visit-body { grid-template-columns: 1fr; gap: 40px; }
  .map { height: 360px; }
}

/* ==========================================================
   Mobile (<768)
   ========================================================== */
@media (max-width: 767px) {
  .logo { gap: 10px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-mark .i { width: 18px; height: 18px; }
  .logo-name { font-size: 18px; }
  .logo-sub { font-size: 8px; letter-spacing: .2em; }
  .nav-cta { padding: 8px 16px; font-size: 14px; }
  .nav-cta-long, .nav-cta-icon { display: none; }
  .nav-cta-short { display: inline; }

  .eyebrow { font-size: 12px; letter-spacing: .15em; gap: 8px; margin-bottom: 20px; }
  .eyebrow::before { width: 24px; }
  .lead, .lead-light { font-size: 15px; }
  .btn-lg { padding: 16px 24px; font-size: 16px; }

  .hero { gap: 32px; padding-bottom: 64px; }
  .hero-copy h1 { margin-bottom: 20px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .hero-ctas .btn { width: 100%; }
  .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: none; padding-top: 24px; }
  .trust dt { font-size: 24px; }
  .trust dd { font-size: 13px; }
  .offer-badge { min-width: 0; padding: 16px 20px; gap: 4px; bottom: -16px; }
  .offer-badge-label { font-size: 12px; }
  .offer-badge-price { font-size: 22px; }
  .offer-badge-note { display: none; }

  .principles { grid-template-columns: 1fr; }
  .principles article,
  .principles article:first-child { display: flex; gap: 16px; padding: 24px 0; border-left: 0; }
  .principles .num { width: 28px; flex: none; font-size: 14px; margin: 6px 0 0; }
  .principles h3 { font-size: 22px; margin-bottom: 8px; }
  .principles p { font-size: 15px; line-height: 1.75; }

  .services { gap: 32px; }
  .services-intro h2, .services-intro .lead { margin-bottom: 20px; }
  .service {
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-areas: "num img" "text img";
    gap: 8px 16px; align-items: start; padding: 24px 0;
  }
  .service .num { font-size: 13px; letter-spacing: .08em; }
  .service h3 { font-size: 20px; gap: 6px 10px; margin-bottom: 8px; }
  .pill { font-size: 12px; padding: 3px 10px; }
  .service p { font-size: 14px; line-height: 1.7; }
  .service img { height: 120px; }

  .offer { padding-left: 16px; padding-right: 16px; }
  .offer-card { border-radius: 20px; }
  .offer-main { padding: 40px 24px 32px; }
  .offer-main .eyebrow { margin-bottom: 16px; }
  .offer-title { font-size: 20px; margin-bottom: 16px; }
  .price { gap: 8px; margin-bottom: 16px; }
  .price-cur { font-size: 22px; line-height: 1.8; }
  .offer-note { font-size: 15px; margin-bottom: 0; }
  .offer-courses { padding: 8px 24px 32px; }
  .offer-courses li { gap: 14px; padding: 20px 0; }
  .course-icon { width: 40px; height: 40px; }
  .course-icon .i { width: 18px; height: 18px; }
  .course-text strong { font-size: 17px; }
  .course-text small { font-size: 13px; }
  .course-min { font-size: 13px; }
  .course-min b { font-size: 26px; }

  .gallery { gap: 10px; grid-template-rows: 240px 150px; }
  .gallery img { border-radius: 10px; }

  .stats { gap: 32px; padding-top: 8px; padding-bottom: 24px; border-top: 0; border-bottom: 1px solid var(--line-dark); }
  .stats strong { font-size: 44px; }
  .stars { font-size: 13px; }
  .reviews-grid { gap: 8px; }
  .reviews-stats h2 { margin-bottom: 24px; }
  .quotes figure, .quotes figure:first-child { padding: 24px 0; }
  .quotes blockquote { font-size: 17px; margin-bottom: 14px; }
  .quotes figcaption { font-size: 13px; gap: 10px; }
  .avatar { width: 30px; height: 30px; font-size: 13px; }

  .br-mobile { display: inline; }
  .visit-ctas { flex-direction: column; width: 100%; gap: 12px; }
  .visit-ctas .btn { width: 100%; }
  .visit-body { gap: 24px; }
  .info li {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "icon label" "icon value";
    gap: 2px 14px; padding: 18px 0;
  }
  .info-icon { grid-area: icon; width: 40px; height: 40px; }
  .info-icon .i { width: 18px; height: 18px; }
  .info-label { grid-area: label; font-size: 13px; }
  .info-value { grid-area: value; font-size: 16px; }
  .map { height: 240px; border-radius: 14px; }

  .site-footer { padding: 48px 0 32px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
  .footer-tagline { font-size: 15px; letter-spacing: .12em; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; border-top: 0; padding-top: 0; font-size: 12px; }
  .footer-bottom nav { gap: 24px; font-size: 13px; }
}

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