
/* ══════════════════════════════
 WEDDING HERO
══════════════════════════════ */
.wedding-hero {
display: flex;
align-items: stretch;
padding-top: 65px;
padding-right:100px ;
min-height: 100vh;
overflow: hidden;
}

/* ── 左：輪播 ── */
.hero-slides {
flex: 0 0 58%;
position: relative;
overflow: hidden;
}

.hero-slide {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 1.2s ease;
}

.hero-slide.active {
opacity: 1;
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position: left;
}
/* ── 右：文字 ── */
.hero-text {
flex: 1 1 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 0 30px 80px 0;
}

.hero-script {
font-family: var(--font-script);
font-size: 2.8rem;
color: var(--color-text-lt);
letter-spacing: 0.02em;
margin-bottom: 12px;
line-height: 1.2;
}

.hero-title {
font-family: var(--font-serif);
font-size: 1.6rem;
font-weight: 700;
color: var(--color-text);
letter-spacing: 0.06em;
line-height: 1.5;
margin-bottom: 24px;
}

.hero-desc {
font-family: var(--font-serif);
font-size: 0.88rem;
font-weight: 300;
color: var(--color-text-md);
letter-spacing: 0.05em;
line-height: 2.1;
}

 
/* ══════════════════════════════
   PHOTO STRIP — 自動橫向滑動
══════════════════════════════ */
.photo-strip {
  overflow: hidden;
  padding-top: 30px;
  width: 100%;
}
 
.photo-strip-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: stripScroll 24s linear infinite;
}
 
.photo-strip:hover .photo-strip-track {
  animation-play-state: paused;
}
 
@keyframes stripScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
 
.strip-img {
  flex: 0 0 auto;
  width: 200px;
  height: 320px;
  overflow: hidden;
}
 
.strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
 
.hero-text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 30px 96px 0;
}
 
.hero-script {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-text-lt);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
 
.hero-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 24px;
}
 
.hero-desc {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--color-text-md);
  letter-spacing: 0.05em;
  line-height: 2.1;
}

 
.bridal-section {
  display: grid;
  margin-top: 50px;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
 
/* ── 左：Accordion ── */
.accordion-col {
  padding: 72px 56px 72px 72px;
}
 
.accordion-item {
  border-bottom: 1px solid var(--color-line);
}
.accordion-item:first-child { border-top: 1px solid var(--color-line); }
 
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 20px;
  text-align: left;
}
 
.accordion-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
 
.accordion-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
 
.accordion-sub {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--color-text-lt);
  letter-spacing: 0.04em;
}
 
.accordion-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-text-lt);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s;
  line-height: 1;
  user-select: none;
}
 
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }
 
/* 下拉展開 */
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding-bottom: 0;
}
 
.accordion-item.is-open .accordion-body {
  max-height: 600px;
  padding-bottom: 28px;
}
 
.body-include {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-text-md);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
 
.body-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}
 
.body-list li {
  font-size: 1rem;
  color: var(--color-text-md);
  letter-spacing: 0.04em;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
 
.body-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-lt);
}
 
.body-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.body-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
 
.body-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 32px;
  background:#BEA58A;
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  border-radius: 999px;
}
 
.body-btn:hover {
  transform: translateY(-1px);
}
 
/* ── 右：照片 ── */
.photo-col {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
 
.photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity:64%;
}

/* ══════════════════════════════════
   推薦見證
══════════════════════════════════ */
.testimonials {
  background: var(--color-bg);
  padding: 0 0 48px;
}
.testimonials-header{
  position:relative;
  padding:60px 0;
  text-align:center;
}

/* 文字 */
.testimonials-header h2{
  position:relative;
  z-index:2;
  font-size:1.4rem;
  font-weight:400;
  letter-spacing:.06em;
  color:var(--color-text);
}
/* 上層長條 */
.testimonials-header::before{
  content:'';
  position:absolute;
  left:30%;
  top:50%;
  width:1200px;
  height:30px;
  background:#EBE9E4;
  z-index:0;
}

/* 下層長條 */
.testimonials-header::after{
  content:'';
  position:absolute;
  left:30%;
  top:60%;
  width:1000px;
  height:24px;
  background:#F4F3F0;
  transform:translate(calc(-50% - 10px),calc(-50% + 8px));
  z-index:0;
}
.testimonials-scroll {
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  border-top: 1px solid #d8d4ce;
  border-bottom: 1px solid #d8d4ce;
}
.testimonials-scroll::-webkit-scrollbar { display: none; }
.testimonials-scroll.grabbing { cursor: grabbing; }
.testimonials-cards {
  display: flex;
  min-width: max-content;
}
.t-card {
  width: 420px;
  flex-shrink: 0;
  background: var(--color-beige);
  padding: 40px 36px 36px;
  border-right: 1px solid #d0cbc5;
  display: flex; flex-direction: column;
}
.t-card:last-child { border-right: none; }
.t-card__header {
  display: flex; align-items: baseline;
  gap: 10px; margin-bottom: 10px;
}
.t-card__name {
  font-family: var(--font-en);
  font-size: 0.95rem; font-weight: 400;
  color: var(--color-text); letter-spacing: 0.04em;
}
.t-card__divider { color: #aaa49e; }
.t-card__type {
  font-size: 0.82rem; font-weight: 400;
  color: var(--color-text); letter-spacing: 0.04em;
}
.t-card__stars {
  font-size: 1rem; letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.t-card__text {
  font-size: 0.82rem; font-weight: 300;
  line-height: 2; color: var(--color-text-md);
  flex: 1; overflow: hidden;
  max-height: calc(0.82rem * 2 * 7);
  transition: max-height 0.4s ease;
}
.t-card__text.expanded { max-height: 2000px; }
.t-card__toggle {
  display: flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: 0.82rem; font-weight: 300;
  color: var(--color-text-md); letter-spacing: 0.06em;
  font-family: var(--font-serif);
  transition: color 0.2s;
}
.t-card__toggle:hover { color: var(--color-text); }
.t-card__toggle .chevron {
  display: inline-block;
  transition: transform 0.3s;
}
.t-card__toggle.open .chevron { transform: rotate(180deg); }


/* ══════════════════════════════
   LAYOUT：左大圖 + 右分類+縮圖
══════════════════════════════ */
.gallery-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  margin-bottom: 40px;               
}
 
/* ── 左：主圖 ── */
.gallery-featured {
  width: 500px;
  height: 400px; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
 
.featured-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  transition: opacity 0.35s ease;
}
 
.featured-img.fading { opacity: 0; }
 
 
/* ── 右：分類 tab + 縮圖 ── */
.gallery-right {
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  overflow: hidden;
}
 
/* Tab 列 */
.gallery-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-line);
  flex-shrink: 0;
}
 
.gallery-tab {
  flex: 1;
  padding: 18px 0 14px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--color-text-lt);
  letter-spacing: 0.06em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
 
.gallery-tab.active {
  color: var(--color-text);
  font-weight: 700;
  border-bottom: 2px solid #BEA58A;
}
 
/* 箭頭 */
.gallery-nav-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 24px 4px;
  flex-shrink: 0;
}
 
.gallery-nav-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  background: none;
  border: none;
}
 
.gallery-nav-btn:hover { 
  opacity: 1; 
}
 
.gallery-nav-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}
 
/* 縮圖捲動區 */
.gallery-thumbs-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 8px 24px 16px;
}
 
/* 右側淡出 */
.gallery-thumbs-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 100%;
  background: linear-gradient(to right, transparent, var(--color-white));
  pointer-events: none;
  z-index: 2;
}
 
.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  cursor: grab;
  height: 100%;
  align-items: flex-start;
}
 
.gallery-thumbs:active { cursor: grabbing; }
 
.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--color-line); border-radius: 2px; }
 
/* 縮圖 */
.thumb {
  flex-shrink: 0;
  width: 180px;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  filter: saturate(0.6);
  transition: opacity 0.25s, filter 0.25s, transform 0.25s, box-shadow 0.25s;
}
 
.thumb:hover {
  opacity: 0.82;
  filter: saturate(0.85);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
 
.thumb.active {
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
 
.thumb img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
 
/* ── Section ── */
.notes-section {
  background: var(--color-beige-lt);
  border-radius: 16px;
  margin: 48px 72px;
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: center;
  overflow: hidden;
  min-height: 360px;
}
 
/* ── 左：插圖 ── */
.notes-illust {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 16px 0;
  height: 100%;
}
 
.notes-illust img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
}
 

/* ── 右：文字 ── */
.notes-content {
  padding: 48px 56px 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.notes-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}
 
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.notes-list li {
  font-family: var(--font-serif);
  font-size:1rem;
  font-weight: 300;
  color: var(--color-text-md);
  letter-spacing: 0.05em;
  line-height: 1.8;
  padding-left: 14px;
  position: relative;
}
 
.notes-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-text-lt);
}
 
.notes-deposit {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  text-align: right;
  margin-top: 8px;
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
 
/* 背景圖 */
.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 90%;
  transform: scale(1.8);
}
 
 
/* 左側漸層遮罩*/
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(244,243,240,0.72) 0%,
    rgba(244,243,240,0.45) 50%,
    rgba(244,243,240,0.0) 100%
  );
  z-index: 1;
}
 
/* 文字內容 */
.cta-content {
  position: relative;
  z-index: 2;
  padding: 13px 70px;
  margin-left: 140px; 
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 900px;
}
 
.cta-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 8px;
}
 
.cta-desc {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.8;
}
 
/* LINE 按鈕 */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  align-self:flex-start;
  background:#b8a898;
  color:white;
  padding:12px 42px;
  border-radius:50px;
  font-size:14px;
  letter-spacing:.18em;
  transition:.25s;
}


.cta-btn:hover {
  background:#a8998a;
  transform:translateY(-1px);
}


/* ══════════════════════════════
   Hero 文字：頁面載入淡入
══════════════════════════════ */
 
/* 初始隱藏 */
.hero-script,
.hero-title,
.hero-desc {
  opacity: 0;
  transform: translateY(20px);
}
 
/* 各自的 transition（JS 加上 .hero-loaded 後生效） */
.hero-script {
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.15s;
}
 
.hero-title {
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.38s;
}
 
.hero-desc {
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.62s;
}
 
/* 觸發狀態 */
.hero-text.hero-loaded .hero-script,
.hero-text.hero-loaded .hero-title,
.hero-text.hero-loaded .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

.page-end {
  text-align: center;
  font-size: 12px;
  color: #b5aca4;
  padding-bottom: 10px;
}


/* ══════════════════════════════
   RWD — 平板 (max-width: 1024px)
══════════════════════════════ */
@media (max-width: 1024px) {

  /* ── Wedding Hero ── */
  .wedding-hero {
    padding: 80px 50px 0 0 !important;
    min-height: auto;
    align-items: stretch;
  }

  .hero-script {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-text {
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 32px !important;
  }

  /* ── Photo Strip ── */
  .strip-img {
    height: 220px;
  }
  .photo-col {
    height: 60vh;
  }
  /* ── Bridal Section ── */
  .bridal-section {
    min-height: auto;
  }

  .accordion-col {
    padding: 48px 32px 48px 40px;
  }

  /* ── Gallery ── */
  .gallery-section {
    gap: 24px;
  }

  .gallery-featured {
    width: 380px;
    height: 320px;
  }

  .thumb {
    width: 140px;
    height: 180px;
  }

  /* ── Notes ── */
  .notes-section {
    margin: 40px 40px;
    grid-template-columns: 280px 1fr;
  }

  .notes-content {
    padding: 40px 40px 40px 20px;
  }

  /* ── CTA ── */
  .cta-content {
    margin-left: 48px;
    padding: 24px 40px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-overlay {
    background: linear-gradient(
      to right,
      rgba(244,243,240,0.85) 0%,
      rgba(244,243,240,0.55) 60%,
      rgba(244,243,240,0.0) 100%
    );
  }
}


@media (max-width: 640px) {

  /* ── Wedding Hero ── */
  .wedding-hero {
    flex-direction: column;
    padding-top: 80px;
    padding-right: 0 !important;
    min-height: auto;
  }

  .hero-slides {
    flex: none;
    width: 100%;
    height: 75vw;
    min-height: 260px;
    position: relative;
    display: flex;
    justify-content: center;
  }

  .hero-slide img {
    object-position: center top;
  }

  .hero-text {
    text-align: center;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 24px 40px;
  }

  .hero-script {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 0.85rem;
    line-height: 2;
  }

  /* ── Photo Strip ── */
  .strip-img {
    width: 130px;
    height: 220px;
  }

  /* ── Bridal Section ── */
  .bridal-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .photo-col {
    display: none;
  }

  .accordion-col {
    padding: 32px 24px;
  }

  .accordion-title {
    font-size: 1rem;
  }

  .body-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .body-btn {
    align-self: stretch;
    justify-content: center;
  }

  /* ── Gallery ── */
  .gallery-section {
    flex-direction: column;
    gap: 0;
  }

  .gallery-featured {
    width: 100%;
    height: 70vw;
  }

  .gallery-right {
    width: 100%;
  }

  .thumb {
    width: 120px;
    height: 160px;
  }

  .gallery-thumbs-wrap::after {
    width: 40px;
  }

  /* ── Notes ── */
  .notes-section {
    margin: 32px 20px;
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .notes-illust {
    padding: 24px 40px 0;
    height: 180px;
  }

  .notes-illust img {
    max-width: 200px;
  }

  .notes-content {
    padding: 24px 24px 32px;
    gap: 16px;
  }

  .notes-title {
    font-size: 1rem;
  }

  .notes-list li {
    font-size: 0.88rem;
  }

  .notes-deposit {
    font-size: 1rem;
    text-align: left;
  }

  /* ── CTA ── */
  .cta-banner {
    min-height: auto;
    align-items: flex-end;
  }

  .cta-bg img {
    transform: scale(1.2);
    object-position: center top;
  }

  .cta-overlay {
    background: linear-gradient(
      to bottom,
      rgba(244,243,240,0.0) 0%,
      rgba(244,243,240,0.6) 45%,
      rgba(244,243,240,0.95) 75%,
      rgba(244,243,240,1.0) 100%
    );
  }

  .cta-content {
    margin-left: 0;
    padding: 160px 24px 40px;
    max-width: 100%;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .cta-desc {
    font-size: 13px;
  }

  .cta-btn {
    padding: 11px 32px;
    font-size: 13px;
    margin-top: 16px;
    align-self: stretch;
    justify-content: center;
  }
}