/* ════════════════════════════════════════════
   xy- 命名空間 — 夏悅窗飾 服務流程 + FAQ 頁面
   ════════════════════════════════════════════ */

:root {
  --xy-brand:       #AA7566;
  --xy-brand-light: #FCCABC;
  --xy-brand-pale:  #FFF4F0;
  --xy-brand-soft:  #F9E8E1;
  --xy-brand-dark:  #7A4F42;
  --xy-brand-deep:  #4E2E24;
  --xy-cream:       #FFFAF8;
  --xy-white:       #FFFFFF;
  --xy-text-1:      #2C1A14;
  --xy-text-2:      #6B4A40;
  --xy-text-3:      #A07B72;
  --xy-border:      #EBCFC6;
  --xy-border-soft: #F5E5DF;
  --xy-step-line:   #DFBDB5;
  --xy-shadow-sm:   0 2px 12px rgba(170,117,102,.10);
  --xy-shadow-md:   0 6px 28px rgba(170,117,102,.14);
  --xy-shadow-lg:   0 12px 48px rgba(170,117,102,.16);
  --xy-radius-sm:   10px;
  --xy-radius-md:   16px;
  --xy-radius-lg:   24px;
  --xy-serif:       'Noto Serif TC', serif;
  --xy-sans:        'Noto Sans TC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--xy-sans);
  background: var(--xy-cream);
  color: var(--xy-text-1);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── 麵包屑 ── */
.xy-breadcrumb {
  background: var(--xy-white);
  border-bottom: 1px solid var(--xy-border-soft);
  padding: 0.6rem 2rem;
}
.xy-breadcrumb-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--xy-text-3);
}
.xy-breadcrumb-inner a {
  color: var(--xy-brand);
  text-decoration: none;
  transition: opacity .2s;
}
.xy-breadcrumb-inner a:hover { opacity: .7; }
.xy-breadcrumb-sep { color: var(--xy-border); font-size: 10px; }

/* ── HERO HEADER ── */
.xy-hero {
  background: var(--xy-brand-deep);
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem 3.5rem;
}
.xy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 110% 50%, rgba(252,202,188,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at -10% 80%, rgba(170,117,102,.22) 0%, transparent 55%);
}
.xy-hero-deco {
  position: absolute;
  right: -40px; top: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(252,202,188,.12);
}
.xy-hero-deco2 {
  position: absolute;
  right: 30px; top: 30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(252,202,188,.08);
}
.xy-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.xy-hero-eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--xy-brand-light);
  margin-bottom: .6rem;
  font-weight: 400;
}
.xy-hero-h2 {
  font-family: var(--xy-serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: .8rem;
}
.xy-hero-h2 em {
  font-style: normal;
  color: var(--xy-brand-light);
}
.xy-hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 1.6rem;
}
.xy-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.xy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(252,202,188,.25);
  color: var(--xy-brand-light);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}
.xy-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--xy-brand-light);
}

/* ── LAYOUT ── */
.xy-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

/* ── SECTION HEADING ── */
.xy-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}
.xy-section-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--xy-brand-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--xy-border);
}
.xy-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--xy-brand);
  font-weight: 500;
  margin-bottom: 2px;
}
.xy-section-title {
  font-family: var(--xy-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--xy-brand-deep);
}

/* ── TRUST STRIP ── */
.xy-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 3.5rem;
  padding: 1.5rem;
  background: var(--xy-white);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-md);
  box-shadow: var(--xy-shadow-sm);
}
@media (max-width: 640px) {
  .xy-trust-strip { grid-template-columns: repeat(2, 1fr); }
}
.xy-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0.75rem;
}
.xy-trust-num {
  font-family: var(--xy-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--xy-brand);
  line-height: 1;
}
.xy-trust-unit {
  font-size: 11px;
  color: var(--xy-brand);
  font-weight: 500;
}
.xy-trust-label {
  font-size: 12px;
  color: var(--xy-text-2);
  line-height: 1.4;
}
.xy-trust-divider {
  width: 1px;
  background: var(--xy-border-soft);
  align-self: stretch;
  margin: auto 0;
}
@media (max-width: 640px) { .xy-trust-divider { display: none; } }

/* ── STEP SECTION ── */
.xy-steps-wrap { margin-bottom: 4rem; }

.xy-steps-intro {
  background: linear-gradient(135deg, var(--xy-brand-pale) 0%, var(--xy-white) 100%);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-md);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  font-size: 14px;
  color: var(--xy-text-2);
  line-height: 1.85;
  position: relative;
  overflow: hidden;
}
.xy-steps-intro::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--xy-brand), var(--xy-brand-light));
  border-radius: 4px 0 0 4px;
}
.xy-steps-intro strong { color: var(--xy-brand-deep); }

.xy-steps-timeline {
  position: relative;
  padding-left: 0;
}

/* 垂直連接線 */
.xy-steps-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background: linear-gradient(to bottom, var(--xy-brand-light), transparent);
}

.xy-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0 20px;
  margin-bottom: 1.2rem;
  position: relative;
}
.xy-step:last-child { margin-bottom: 0; }

.xy-step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.xy-step-num {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--xy-brand);
  color: #fff;
  font-family: var(--xy-serif);
  font-size: 20px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(170,117,102,.3);
  position: relative;
  z-index: 1;
  transition: transform .2s, box-shadow .2s;
}
.xy-step:hover .xy-step-num {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(170,117,102,.38);
}
.xy-step-num-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--xy-brand-light) 0%, rgba(252,202,188,0) 100%);
  min-height: 12px;
}
.xy-step:last-child .xy-step-num-line { display: none; }

.xy-step-card {
  background: var(--xy-white);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--xy-shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.xy-step-card:hover {
  box-shadow: var(--xy-shadow-md);
  border-color: var(--xy-brand-light);
}

.xy-step-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: .75rem;
}
.xy-step-tag {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--xy-brand);
  background: var(--xy-brand-pale);
  border: 1px solid var(--xy-border);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.xy-step-h3 {
  font-family: var(--xy-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--xy-brand-deep);
  line-height: 1.4;
}
.xy-step-body {
  font-size: 13.5px;
  color: var(--xy-text-2);
  line-height: 1.85;
}
.xy-step-body strong { color: var(--xy-text-1); font-weight: 500; }

.xy-step-tip {
  margin-top: .8rem;
  padding: .7rem 1rem;
  background: var(--xy-brand-pale);
  border-left: 3px solid var(--xy-brand-light);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: var(--xy-brand-dark);
  line-height: 1.7;
}
.xy-step-tip strong { color: var(--xy-brand-deep); }

/* ── 服務承諾橫幅 ── */
.xy-promise-banner {
  background: var(--xy-brand-deep);
  border-radius: var(--xy-radius-lg);
  padding: 2.2rem 2.4rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.xy-promise-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--xy-brand);
  opacity: .12;
}
@media (max-width: 600px) {
  .xy-promise-banner { grid-template-columns: 1fr; }
}
.xy-promise-item {
  position: relative;
  z-index: 1;
}
.xy-promise-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(252,202,188,.15);
  border: 1px solid rgba(252,202,188,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: .75rem;
}
.xy-promise-name {
  font-family: var(--xy-serif);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}
.xy-promise-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* ── FAQ SECTION ── */
.xy-faq-wrap { margin-bottom: 4rem; }

.xy-faq-intro {
  font-size: 13.5px;
  color: var(--xy-text-2);
  line-height: 1.85;
  margin-bottom: 1.8rem;
  max-width: 680px;
}

.xy-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 680px) {
  .xy-faq-grid { grid-template-columns: 1fr; }
}

/* 特寬問題獨佔一行 */
.xy-faq-item.xy-full { grid-column: 1 / -1; }

.xy-faq-item {
  background: var(--xy-white);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-md);
  overflow: hidden;
  box-shadow: var(--xy-shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.xy-faq-item:hover {
  box-shadow: var(--xy-shadow-md);
  border-color: var(--xy-brand-light);
}

.xy-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--xy-border-soft);
}
.xy-faq-q-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--xy-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--xy-serif);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.xy-faq-q-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--xy-brand-deep);
  line-height: 1.55;
  flex: 1;
}
.xy-faq-arrow {
  font-size: 12px;
  color: var(--xy-brand);
  margin-top: 3px;
  flex-shrink: 0;
  transition: transform .3s;
}
.xy-faq-item.xy-open .xy-faq-arrow { transform: rotate(180deg); }

.xy-faq-a {
  padding: 0 1.3rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.xy-faq-item.xy-open .xy-faq-a {
  max-height: 500px;
  padding: 1rem 1.3rem 1.2rem;
}

.xy-faq-a-inner {
  font-size: 13.5px;
  color: var(--xy-text-2);
  line-height: 1.85;
  border-left: 3px solid var(--xy-brand-pale);
  padding-left: 12px;
}
.xy-faq-a-inner strong { color: var(--xy-text-1); font-weight: 500; }

/* ── 服務區域 ── */
.xy-geo-section { margin-bottom: 4rem; }

.xy-geo-intro {
  font-size: 13.5px;
  color: var(--xy-text-2);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.xy-geo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 1.2rem;
}
@media (max-width: 560px) {
  .xy-geo-grid { grid-template-columns: 1fr; }
}
.xy-geo-card {
  background: var(--xy-white);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-md);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--xy-shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.xy-geo-card:hover {
  box-shadow: var(--xy-shadow-md);
  border-color: var(--xy-brand-light);
}
.xy-geo-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .75rem;
}
.xy-geo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--xy-brand);
  flex-shrink: 0;
}
.xy-geo-district {
  font-family: var(--xy-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--xy-brand-deep);
}
.xy-geo-address {
  font-size: 12px;
  color: var(--xy-text-3);
  margin-top: 2px;
}
.xy-geo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: .6rem;
}
.xy-geo-tag {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--xy-brand-pale);
  color: var(--xy-brand-dark);
  border: 1px solid var(--xy-border);
}

/* ── E-E-A-T 訊息塊 ── */
.xy-eeat-block {
  background: linear-gradient(135deg, var(--xy-brand-pale) 0%, #FFF8F5 100%);
  border: 1px solid var(--xy-border);
  border-radius: var(--xy-radius-md);
  padding: 1.6rem 1.8rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
}
@media (max-width: 580px) {
  .xy-eeat-block { grid-template-columns: 1fr; }
}
.xy-eeat-item { display: flex; gap: 12px; align-items: flex-start; }
.xy-eeat-icon {
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}
.xy-eeat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--xy-brand-deep);
  margin-bottom: 3px;
}
.xy-eeat-text {
  font-size: 12.5px;
  color: var(--xy-text-2);
  line-height: 1.7;
}

/* ── CTA ── */
.xy-cta {
  background: var(--xy-brand);
  border-radius: var(--xy-radius-lg);
  padding: 2.4rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  box-shadow: var(--xy-shadow-lg);
  position: relative;
  overflow: hidden;
}
.xy-cta::before {
  content: '';
  position: absolute;
  right: -50px; bottom: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.xy-cta-left { position: relative; z-index: 1; }
.xy-cta-eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: .4rem;
}
.xy-cta-h2 {
  font-family: var(--xy-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.xy-cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-top: .4rem;
}
.xy-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.xy-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--xy-brand-deep);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--xy-sans);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}
.xy-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.xy-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--xy-sans);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  white-space: nowrap;
  transition: background .2s;
}
.xy-btn-secondary:hover { background: rgba(255,255,255,.22); }



/* ── UTILITY ── */
.xy-section-sep {
  height: 1px;
  background: var(--xy-border-soft);
  margin: 3.5rem 0;
}

@media (max-width: 520px) {
  .xy-main { padding: 2rem 1.2rem 3rem; }
  .xy-hero { padding: 3rem 1.2rem 2.5rem; }
  .xy-cta { padding: 1.8rem 1.4rem; }
  .xy-promise-banner { padding: 1.6rem 1.4rem; }
}

/* ── 動畫 ── */
@keyframes xy-fadeup {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.xy-hero-inner > * {
  animation: xy-fadeup .6s ease both;
}
.xy-hero-inner > *:nth-child(1) { animation-delay: .05s; }
.xy-hero-inner > *:nth-child(2) { animation-delay: .15s; }
.xy-hero-inner > *:nth-child(3) { animation-delay: .25s; }
.xy-hero-inner > *:nth-child(4) { animation-delay: .35s; }