/* =====================================================
   傳統祈福科儀 — stylesheet
   配色：溫潤米杏色 + 古銅金
   ===================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- design tokens ---------- */
:root {
  --cream-50: #fdf9f1;
  --cream-100: #f7efe0;
  --cream-200: #f0e5d1;
  --cream-300: #e6d6bb;
  --bg: #f7f0e1;
  --card: #ffffff;
  --soft-card: #fbf6ec;
  --ink-900: #3a2817;
  --ink-700: #4e3a24;
  --ink-500: #806447;
  --ink-300: #b39a76;
  --bronze: #a07a4a;
  --bronze-deep: #6f4d27;
  --whatsapp: #5f4326;
  --whatsapp-deep: #4a3318;
  --shadow-sm: 0 2px 8px rgba(74, 50, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(74, 50, 24, 0.08);
  --shadow-lg: 0 18px 40px rgba(74, 50, 24, 0.10);
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Hiragino Sans", sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.6;
  font-size: 18px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fcf8f5;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(176, 138, 90, 0.10);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.85; }
.brand-logo {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-title {
  font-size: 30px;
  color: var(--ink-900);
  font-weight: 600;
}
.brand-sub {
  font-size: 16px;
  color: var(--ink-500);
  letter-spacing: 0.05em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn img { width: 20px; height: 20px; }
.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 12px rgba(95, 67, 38, 0.25);
}
.btn-wa:hover {
  background: var(--whatsapp-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 51, 24, 0.30);
}
.btn-wa:active { transform: translateY(0); }
.btn-sm {
  padding: 11px 20px;
  font-size: 15px;
}
.btn-sm img { width: 18px; height: 18px; }
.btn-cta {
  padding: 16px 30px;
  font-size: 19px;
  background: var(--whatsapp);
  box-shadow: 0 6px 14px rgba(95, 67, 38, 0.25);
}
.btn-cta:hover {
  background: var(--whatsapp-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(74, 51, 24, 0.32);
}
.btn-cta img { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero {

padding: 128px 0 200px;

position: relative;

background-image:url(../assets/banner.jpg);

overflow: hidden;

background-repeat: no-repeat;

background-position: bottom right;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(207, 170, 110, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
}
.hero-text {
  display: flex;
  flex-direction: column;
}
.hero-title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hero-title-line {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.hero-title-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 68px;
  height: 3px;
  background: var(--bronze);
  border-radius: 2px;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-700);
  line-height: 2;
  margin-bottom: 28px;
}
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.6;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image:hover img { transform: scale(1.03); }

/* ---------- hero features (4 icons inside banner left) ---------- */
.hero-features {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}
.hero-feat {
  /* display: flex; */
  text-align: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  /* background: rgba(255, 255, 255, 0.55); */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* border: 1px solid rgba(176, 138, 90, 0.12); */
  transition: background-color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.hero-feat:hover {
  background: rgba(255, 255, 255, 0.80);
  transform: translateY(-2px);
  border-color: rgba(176, 138, 90, 0.28);
}
.hero-feat img {
  width: 40px;
  height: 40px;
  color: var(--bronze);
  transition: color 0.22s ease, transform 0.22s ease;
  margin: 0px auto;
}
.hero-feat:hover img {
  color: var(--bronze-deep);
  transform: scale(1.08);
}
.hero-feat span {
  font-size: 16px;
  color: var(--ink-700);
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: block;
  font-weight: bold;
  margin-top: 5px;
}

/* ---------- lotus CTA card ---------- */
.lotus-cta-wrap {
  padding: 0px 0 44px;
  margin-top: -50px;
}
.lotus-cta {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 44px 36px 34px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 34px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(176, 138, 90, 0.18);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lotus-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.lotus-cta::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 220, 170, 0.5), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.lotus-cta-img {
  width: 130px;
  height: 108px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lotus-cta-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06));
}
.lotus-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.lotus-title {
  font-size: 30px;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.lotus-line {
  font-size: 20px;
  color: var(--ink-700);
  line-height: 1;
}
.lotus-foot {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ---------- section divider ---------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 38px;
  max-width: 640px;
  position: relative;
  text-align: center;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze) 50%, transparent);
  opacity: 0.5;
}
.section-divider-text {
  padding: 0 22px;
  font-size: 35px;
  color: var(--ink-700);
  font-weight: 600;
  letter-spacing: 0.15em;
  position: relative;
}
.section-divider-text::before,
.section-divider-text::after {
  content: "❀";
  margin: 0 10px;
  color: var(--bronze);
  opacity: 0.7;
  font-size: 16px;
}

/* ---------- prayers grid ---------- */
.prayers {
  padding: 44px 0 22px;
}
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prayer-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 18px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(176, 138, 90, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  cursor: default;
}
.prayer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(176, 138, 90, 0.32);
  background: linear-gradient(180deg, #fff 0%, #fdf6e9 100%);
}
.prayer-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--soft-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.prayer-card:hover .prayer-icon {
  background: linear-gradient(135deg, #f0d9a8, #e6c388);
  transform: scale(1.08);
}
.prayer-icon img {
  width: 30px;
  height: 30px;
  color: var(--bronze-deep);
}
.prayer-card h3 {
  font-size: 20px;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.prayer-card p {
  font-size: 16px;
  color: var(--ink-700);
  line-height: 1.7;
}

/* ---------- service flow ---------- */
.flow {
  padding: 50px 0 32px;
}
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.flow-list::before {
  content: "";
  position: absolute;
  top: 62px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--bronze) 0 6px, transparent 6px 12px);
  opacity: 0.55;
  z-index: 0;
}
.flow-step {
  position: relative;
  text-align: center;
  padding: 0 6px;
  z-index: 1;
}
.flow-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  background: var(--card);
  border: 2px solid rgba(176, 138, 90, 0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.flow-step:hover .flow-icon {
  border-color: var(--bronze);
  background: linear-gradient(135deg, #f8ebd0, #f0d9a8);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.flow-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: var(--bronze);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--bg);
}
.flow-icon img {
  width: 36px;
  height: 36px;
  color: var(--bronze-deep);
  transition: color 0.25s ease;
}
.flow-step:hover .flow-icon img { color: var(--bronze-deep); }
.flow-step h4 {
  font-size: 18px;
  color: var(--ink-900);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.flow-step p {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 44px 0 34px;
}
.faq-list {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--card);
  border: 1px solid rgba(176, 138, 90, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(176, 138, 90, 0.30);
}
.faq-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 18px;
  color: var(--ink-900);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color 0.22s ease;
}
.faq-trigger:hover { background: var(--soft-card); }
.faq-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze);
}
.faq-icon img { width: 26px; height: 26px; }
.faq-q {
  flex: 1;
}
.faq-toggle {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  color: var(--bronze);
  transition: color 0.22s ease, transform 0.22s ease;
}
.faq-toggle img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.faq-toggle .icon-minus { opacity: 0; transform: rotate(-90deg); }
.faq-item.is-open .faq-toggle { color: var(--bronze-deep); transform: rotate(0); }
.faq-item.is-open .faq-toggle .icon-plus { opacity: 0; transform: rotate(90deg); }
.faq-item.is-open .faq-toggle .icon-minus { opacity: 1; transform: rotate(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
  padding: 0 24px;
}
.faq-item.is-open .faq-answer {
  max-height: 240px;
  padding: 0 24px 22px;
}
.faq-answer p {
  font-size: 17px;
  color: var(--ink-700);
  line-height: 1.85;
  padding-left: 46px;
  position: relative;
}
.faq-answer p::before {
  content: "答：";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bronze);
  font-weight: 600;
}

/* ---------- bottom CTA ---------- */
.bottom-cta-wrap {
  padding: 48px 0 44px;
}
.bottom-cta {
  background: linear-gradient(135deg, #f6e6c3 0%, #ead7ad 100%);
  border-radius: var(--radius-lg);
  padding: 0;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  align-items: stretch;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(176, 138, 90, 0.20);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bottom-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(74, 50, 24, 0.16);
}
.bottom-cta-img {
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}
.bottom-cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bottom-cta:hover .bottom-cta-img img { transform: scale(1.04); }
.bottom-cta-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.bottom-cta-title {
  font-size: 26px;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.bottom-cta-line {
  font-size: 17px;
  color: var(--ink-700);
  line-height: 1.7;
}
.bottom-cta-content .btn-cta { align-self: flex-start; margin-top: 12px; }
.bottom-cta-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-500);
  margin-top: 10px;
}
.bottom-cta-foot img {
  width: 16px;
  height: 16px;
  color: var(--ink-500);
}

/* ---------- disclaimer ---------- */
.disclaimer {
  padding: 22px 0 32px;
  text-align: center;
}
.disclaimer p {
  display: inline-block;
  font-size: 15px;
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.55);
  padding: 12px 22px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(176, 138, 90, 0.12);
}

/* ---------- footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--cream-100), var(--cream-200));
  padding: 30px 0 34px;
  border-top: 1px solid rgba(176, 138, 90, 0.18);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--ink-700);
}
.footer-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-features img {
  width: 20px;
  height: 20px;
  color: var(--bronze);
}
.footer-features .sep {
  width: 1px;
  height: 16px;
  background: rgba(176, 138, 90, 0.30);
}
.copyright {
  font-size: 14px;
  color: var(--ink-500);
  letter-spacing: 0.05em;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1100px) {
  .hero-features { gap: 14px; }
  .hero-feat { padding: 8px 12px; }
  .hero-feat img { width: 22px; height: 22px; }
  .hero-feat span { font-size: 14px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .brand-sub { display: none; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-title { font-size: 16px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .btn-sm { padding: 10px 16px; font-size: 14px; }
  .btn-sm span { display: none; }
  .btn-sm img { margin: 0; }

  .hero { padding: 32px 0 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 17px; margin-bottom: 20px; }
  .hero-image { aspect-ratio: 4 / 3.2; }

  .hero-features { gap: 10px; flex-wrap: wrap; }
  .hero-feat { padding: 8px 12px; }
  .hero-feat img { width: 20px; height: 20px; }
  .hero-feat span { font-size: 13px; }

  .lotus-cta-wrap { padding: 24px 0 24px; }
  .lotus-cta {
    grid-template-columns: 90px 1fr;
    gap: 20px;
    padding: 24px 24px 24px 20px;
  }
  .lotus-cta-img { width: 76px; height: 70px; }
  .lotus-title { font-size: 19px; }
  .lotus-line { font-size: 15px; }
  .lotus-cta .btn-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    padding: 14px 22px;
    font-size: 17px;
  }
  .lotus-cta .btn-cta span { flex: 1; text-align: center; }
  .lotus-foot { grid-column: 1 / -1; padding: 0 4px; }

  .prayers { padding: 32px 0 14px; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .prayer-card { padding: 24px 16px 20px; }
  .prayer-card h3 { font-size: 18px; }
  .prayer-card p { font-size: 14px; }

  .flow { padding: 36px 0 20px; }
  .flow-list { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .flow-list::before { display: none; }
  .flow-icon { width: 58px; height: 58px; }
  .flow-icon img { width: 26px; height: 26px; }
  .flow-num { width: 22px; height: 22px; font-size: 12px; }
  .flow-step h4 { font-size: 15px; }
  .flow-step p { font-size: 13px; }

  .faq-trigger { padding: 16px 18px; font-size: 17px; gap: 12px; }
  .faq-icon { width: 26px; height: 26px; }
  .faq-icon img { width: 22px; height: 22px; }
  .faq-answer p { font-size: 15px; }

  .bottom-cta-wrap { padding: 32px 0; }
  .bottom-cta {
    grid-template-columns: 1fr;
  }
  .bottom-cta-img { min-height: 200px; max-height: 240px; }
  .bottom-cta-content { padding: 30px 26px; }
  .bottom-cta-title { font-size: 22px; }
  .bottom-cta-line { font-size: 15px; }

  .footer-features { gap: 10px; font-size: 14px; }
  .footer-features .sep { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; margin-bottom: 16px; }
  .hero-features { gap: 8px; }
  .hero-feat { padding: 6px 10px; gap: 5px; }
  .hero-feat img { width: 18px; height: 18px; }
  .hero-feat span { font-size: 12px; }

  .section-divider-text { font-size: 17px; padding: 0 14px; }
  .section-divider-text::before, .section-divider-text::after { margin: 0 5px; }
  .flow-list { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .flow-icon { width: 50px; height: 50px; }
  .flow-step h4 { font-size: 13px; }
  .flow-step p { display: none; }
  .flow-step p:nth-of-type(1) { display: block; }

  .lotus-cta { grid-template-columns: 76px 1fr; padding: 20px 18px; gap: 14px; }
  .lotus-cta-img { width: 64px; }
  .lotus-title { font-size: 17px; }
  .lotus-line { font-size: 14px; }
  .faq-trigger { padding: 14px 16px; font-size: 15px; gap: 10px; }
  .faq-icon { width: 22px; height: 22px; }
  .faq-icon img { width: 18px; height: 18px; }
  .faq-answer p { font-size: 14px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .btn, .bottom-cta-wrap, .disclaimer { display: none !important; }
}

/* ---------- accessibility focus ---------- */
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
  border-radius: 4px;
}
