@charset "utf-8";
/* =============================================================
   ReSarah — Desktop A03「訂製婚鞋 Made-To-Order」切版
   來源：Figma Untitled → Desktop - A03（node 778:513，1440 × 3963）

   規則（與 a01.css / a02.css 同一套）：
   1. 版位一律用 flex，全檔沒有任何 display:grid
   2. 只有「一個」斷點：1024px
        ≥ 1024 → 桌機版（內容欄 1200px 置中，1024~1440 之間用 clamp 等比縮）
        < 1024 → 手機版（全部單欄）
   3. 圖片一律寫在 HTML 的 <img src="img/…">，CSS 不放任何 background-image
   4. 本檔自成一份，不依賴 common.css / a01.css / a02.css
   ============================================================= */

/* =============================================================
   Design Tokens（取自 Figma Variables）
   ============================================================= */
:root {
  /* Color */
  --c-text:        #212121;   /* Text Primary / Surface Dark */
  --c-text-invert: #ffffff;   /* Text Invert */
  --c-brand2:      #ead8d8;   /* Brand Secondary：訂製流程區底色 */
  --c-pink:        #eda3c6;   /* Icon Default／主要 CTA */
  --c-gold:        #caa561;   /* Text Secondary／Nav CTA */
  --c-green:       #34c759;   /* LINE */
  --c-line:        #d9d9d9;
  --c-ph:          #ded8ce;   /* 圖片載入前底色 */

  /* Typography */
  --ff-display: 'Didot', 'Bodoni 72', 'Prata', 'Playfair Display', 'Times New Roman', serif;
  --ff-base:    'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;

  /* 1024→1440 之間等比縮，1440 時等於 Figma 原值 */
  --fs-display: clamp(62px, 6.25vw, 90px);   --lh-display: 1.111;  /* H1-desk  Didot 90/100 */
  --fs-titleb:  clamp(30px, 2.78vw, 32px);   --lh-titleb: 1.3;     /* Title-big 40/52 */
  --fs-body:    16px;  --lh-body:    28px;
  --fs-bodyb:   16px;  --lh-bodyb:   24px;
  --fs-caption: 14px;  --lh-caption: 22px;
  --fs-small:   12px;  --lh-small:   18px;

  /* Layout */
  --canvas:     1440px;
  --container:  1200px;                      /* 內容欄（左右各 120px） */
  --header-pad: clamp(24px, 4.51vw, 65px);   /* 1440 時 = 65 */
  --hero-h:     900px;
  --story-row:  1122px;                      /* Figma 三段故事列的內容寬 */
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* 內容欄：桌機 1200 置中 */
.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);  /* 內容淨寬 1200，左右各留 20 安全邊 */
  margin-inline: auto;
  padding-inline: 20px;
}

/* =============================================================
   圖片版位（CSS 只管比例與裁切，路徑都在 HTML）
   ============================================================= */
.media { position: relative; overflow: hidden; background: var(--c-ph); }
.media--fill { position: absolute; inset: 0; }
.media > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   共用元件
   ============================================================= */
/* Logo */
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__main { font-family: var(--ff-display); font-size: clamp(42px, 4.44vw, 64px); letter-spacing: .01em; white-space: nowrap; }
.brand__sub  { font-family: var(--ff-display); font-size: clamp(10px, .9vw, 13px); letter-spacing: .18em; margin-top: 12px; text-align: center; white-space: nowrap; }

/* 按鈕（Figma 高 25px，這裡放寬到 32px 以符合點擊區） */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 4px 20px;
  border-radius: 999px;
  font-size: var(--fs-bodyb); line-height: var(--lh-bodyb); font-weight: 600;
  white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
}
.btn:hover  { opacity: .85; }
.btn:active { transform: translateY(1px); }
.btn--pink    { background: var(--c-pink); color: var(--c-text); }
.btn--outline { border: 1px solid var(--c-pink); color: var(--c-text); }
.btn--gold    { background: var(--c-gold); color: var(--c-text); border-radius: 4px; font-weight: 400; }

/* 區塊標籤：圓圈 + 線 + 文字（Figma 的 image 2，97 × 40） */
.sec-label { display: flex; align-items: center; min-height: 54px; font-size: var(--fs-body); line-height: var(--lh-body); }
.sec-label::before {
  content: ''; width: 28px; height: 28px; flex: none;
  border: 1px solid currentColor; border-radius: 50%; opacity: .55;
}
.sec-label span { position: relative; padding-left: 76px; }
.sec-label span::before {
  content: ''; position: absolute; left: 12px; top: 50%;
  width: 52px; height: 1px; background: currentColor; opacity: .45;
}

/* Didot 大標 */
.display { font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-display); line-height: var(--lh-display); }

/* 內文級距 */
.t-titleb  { font-size: var(--fs-titleb); line-height: var(--lh-titleb); font-weight: 500; }
.t-body    { font-size: var(--fs-body);    line-height: var(--lh-body); }
.t-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); }



/* =============================================================
   01 HERO（Figma 0–900）
   ============================================================= */
.hero { position: relative; height: var(--hero-h); background: #b08a76; }
.hero__slider,
.hero__slider .slick-list,
.hero__slider .slick-track,
.hero__slide { height: var(--hero-h); }
.hero__slide { position: relative; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.22) 100%);
}
.hero__inner {
  position: relative; height: 100%;
  max-width: var(--canvas); margin-inline: auto;
  padding: 366px var(--header-pad) 0;   /* Figma 主標 y=366 */
  display: flex;
}
/* 文案框：Figma x 887–1333（寬 446），距畫布右緣 107px = header-pad(65) + 42 */
.hero__copy {
  width: 446px; max-width: 100%;
  margin-left: auto; margin-right: 42px;
  color: var(--c-text-invert);
}
.hero__title { font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-display); line-height: var(--lh-display); }
.hero__title span { padding-left: .1em; }      /* Figma 第二行 "To-Order" 略內縮 */
.hero__lead { margin-top: 10px; font-size: var(--fs-titleb); line-height: var(--lh-titleb); font-weight: 500; }
.hero__desc { margin-top: 11px; max-width: 279px; }
.hero__cta  { margin-top: 16px; }

/* slick dots：Figma 60 × 3px 短線，y=854 靠右 */
.hero .slick-dots {
  position: absolute; bottom: 43px; left: 50%; transform: translateX(-50%);
  width: min(100%, var(--canvas)); padding-inline: var(--header-pad);
  display: flex !important; justify-content: flex-end; gap: 6px; z-index: 5;
}
.hero .slick-dots li { width: 60px; height: 3px; }
.hero .slick-dots li button {
  display: block; width: 60px; height: 3px; padding: 0;
  text-indent: -9999px; background: var(--c-line);
  transition: background .25s ease;
}
.hero .slick-dots li.slick-active button,
.hero .slick-dots li button:hover { background: var(--c-gold); }

/* =============================================================
   02 STORY 三段故事（Figma 900–3129，底色 #ead8d8）
   每列：標題欄 230 + 方圖 619 + （間距 20 + 文字欄 253）= 1122
   flex-grow 直接寫 Figma 像素寬，比例自動成立
   ============================================================= */
.story { background: var(--c-brand2); padding: 23px 0 clamp(72px, 9.17vw, 132px); }
.story__rows {
  max-width: calc(var(--story-row) + 40px); margin: 31px auto 0; padding-inline: 20px;
  display: flex; flex-direction: column; gap: clamp(44px, 4.58vw, 66px);
}
.story__row { display: flex; align-items: center; gap: 0; }

/* 標題欄只佔 230，但文字實寬約 280 → 依 Figma 讓它壓在方圖上（z-index 蓋過圖） */
.story__col--title { flex: 230 1 0; min-width: 0; position: relative; z-index: 2; }
.story__title { font-size: var(--fs-titleb); line-height: var(--lh-titleb); font-weight: 500; white-space: nowrap; }

.story__media { flex: 619 1 0; aspect-ratio: 1 / 1; }

.story__col--text { flex: 253 1 0; min-width: 0; margin-left: 20px; }
.story__desc { font-size: var(--fs-body); line-height: var(--lh-body); }
.story__col--text .btn { width: 240px; max-width: 100%; margin-top: 20px; }
.ribon__en {
    font-size:clamp(2.5rem, 10vw, 86px);    font-family: var(--ff-display);font-weight: 400;
    color: #FFF;
    line-height: 1;
    margin-left: -50px;
    white-space: nowrap;
}
/* =============================================================
   03 FINALE 結語（Figma 3129–3705，白底）
   Didot 巨標 + CTA + 右側手繪插圖（插圖與巨標重疊 → absolute）
   ============================================================= */
.finale { position: relative; background: #fff; padding: 110px 0 126px; overflow: hidden; }
.finale__inner { position: relative; }
.finale__display { margin-left: 20.8%;position: relative;z-index: 1;}       /* Figma x=370（內容欄左緣 +250） */
.finale__cta { margin-left: 41.6%; margin-top: 17px; }   /* Figma x=619（內容欄左緣 +499） */
.finale__title { font-size: var(--fs-titleb); line-height: var(--lh-titleb); font-weight: 500; }
.finale__desc { max-width: 349px; }
.finale__cta .btn { margin-top: 20px; }
.finale__fig {
  position: absolute; left: 64.7%; top: 68px;   /* Figma x=902 / y=3307 */
  width: clamp(210px, 20.4vw, 294px);
}
.finale__fig img { width: 100%; height: auto; }

/* =============================================================
   FOOTER（Figma 3705–3963）
   Figma：內容帶 x165–1283（寬 1118），欄距 219 已含在間距內，所以 column-gap = 0
   ============================================================= */
.site-footer { background: var(--c-text); color: var(--c-text-invert); }
.footer__inner {
  max-width: 1158px; margin-inline: auto;
  padding: 75px 20px 40px;
  display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 28px 0;
  min-height: 258px;
  /* nowrap：1024 時六欄一起等比壓縮，不會像 a01/a02 把最後一欄擠到第二排 */
}
.footer__brand { flex: 0 1 152px; min-width: 0; display: flex; flex-direction: column; line-height: 1; }
.footer__brand .brand__main { font-size: 28px; }
.footer__brand .brand__sub  { font-size: 8px; margin-top: 7px; letter-spacing: .14em; text-align: left; }
.footer__col { flex: 0 1 219px; min-width: 0; padding-right: 24px; }
.footer__col--social { flex-basis: 165px; }
.footer__col--last   { flex: 1 1 104px; min-width: 0; padding-right: 0; }
.footer__list { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.footer__list li { position: relative; padding-left: 14px; }
.footer__list li::before { content: '・'; position: absolute; left: -2px; color: rgba(255,255,255,.75); }
.footer__list a { transition: opacity .25s ease; }
.footer__list a:hover { opacity: .65; }
.footer__list--plain li::before { content: none; }
.footer__list--hours { margin-top: 22px; }
.footer__social { display: flex; gap: 48px; margin-top: 60px; }
.footer__social svg { width: 28px; height: 28px; }

/* =============================================================
   ★ 唯一的斷點：1024px
     ≥ 1024 → 上面的桌機版
     < 1024 → 以下的手機版（全部單欄）
   ============================================================= */
@media (max-width: 1023.98px) {
  :root {
    --header-pad: 20px;
    --fs-display: 40px;  --lh-display: 1.2;
    --fs-titleb:  24px;  --lh-titleb: 1.5;
  }

  /* ---------- Header → 漢堡選單 ---------- */
  .header__inner { padding-top: 18px; align-items: center; }
  .header__inner .brand { margin-top: 0; }
  .brand__main { font-size: 32px; }
  .brand__sub  { font-size: 10px; margin-top: 5px; }

/*
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 8px;
  }
  .nav-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
*/

  .nav {
    position: absolute; inset: 100% 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    color: var(--c-text);
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .site-header.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: 12px 0; border-bottom: 1px solid rgba(33,33,33,.08); }
  .nav .btn--gold { margin-top: 16px; align-self: flex-start; }

  /* ---------- 01 Hero ---------- */
  .hero,
  .hero__slider,
  .hero__slider .slick-list,
  .hero__slider .slick-track,
  .hero__slide { height: auto; }
  .hero__inner { display: block; max-width: none; min-height: 560px; padding: 148px 20px 90px; }
  .hero__copy { width: 100%; margin: 0; }
  .hero__desc { max-width: none; }
  .hero .slick-dots { bottom: 26px; justify-content: flex-start; padding-inline: 20px; }
  .hero .slick-dots li, .hero .slick-dots li button { width: 36px; }

  /* ---------- 02 Story ---------- */
  .story { padding: 28px 0 48px; }
  .story__rows { margin-top: 24px; gap: 44px; }
  .story__row { flex-direction: column; align-items: stretch; gap: 20px; }
  .story__col--title,
  .story__media,
  .story__col--text { flex: 0 0 auto; width: 100%; }
  .story__title { white-space: normal; }
  .story__media { max-height: 520px; }
  .story__col--text { margin-left: 0; }
  .story__col--text .btn { width: auto; }

  /* ---------- 03 Finale ---------- */
  .finale { padding: 48px 0 56px; }
  .finale__display,
  .finale__cta { margin-left: 0; }
  .finale__cta { margin-top: 28px; }
  .finale__desc { max-width: none; }
  .finale__fig { position: static; width: 200px; margin: 28px 0 0 auto; }

  /* ---------- Footer ---------- */
  .footer__inner { flex-direction: column; gap: 26px; padding: 48px 20px 40px; min-height: 0; }
  .footer__inner > * { flex: 0 0 auto; width: auto; }
  .footer__col { padding-right: 0; }
  .footer__social { margin-top: 24px; gap: 32px; }
}

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