:root {
  --navy: #16324a;
  --navy-dark: #0d1f2f;
  --navy-light: #20415e;
  --gold: #c9a25e;
  --gold-light: #e4cfa0;
  --cream: #f7f5f0;
  --cream-dark: #f0ece2;
  --ink: #262524;
  --ink-soft: #5c5a56;
  --white: #ffffff;
  --border: #e5e0d6;
  --shadow: 0 20px 40px -20px rgba(22, 50, 74, 0.25);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  color: var(--navy);
  margin: 0 0 0.6em;
  line-height: 1.4;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-eyebrow {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-sub { color: var(--ink-soft); }
.section-head.light .section-eyebrow { color: var(--gold-light); }
.section-head.light h2 { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); flex-shrink: 0; }
.logo-mark { color: var(--gold); display: flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-text strong { font-family: "Noto Serif TC", serif; font-size: 1.15rem; letter-spacing: 0.02em; }
.logo-text em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--ink-soft); }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-pill:hover { background: var(--navy-light); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 140px 0 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  color: var(--gold-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin-bottom: 22px;
}
.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}
.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(201, 162, 94, 0.2);
  color: var(--gold-light);
  flex-shrink: 0;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-visual { max-width: 340px; margin: 0 auto; }
.about-points {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 500;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

/* ===== Services ===== */
.services { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: var(--white);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ===== Process / timeline ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  counter-reset: step;
}
.timeline li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px 22px;
  text-align: center;
}
.timeline-num {
  display: inline-block;
  font-family: "Noto Serif TC", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.timeline h3 { font-size: 1rem; margin-bottom: 8px; }
.timeline p { font-size: 0.85rem; margin-bottom: 0; }
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -20px;
  width: 20px;
  height: 1px;
  background: var(--border);
  display: none;
}

/* ===== Why ===== */
.why {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(201, 162, 94, 0.18);
  color: var(--gold-light);
  margin-bottom: 16px;
}
.why-card h3 { color: var(--white); font-size: 1.05rem; }
.why-card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  margin-left: 12px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; margin-bottom: 0; font-size: 0.95rem; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-phone-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius);
  margin: 28px 0;
}
.contact-phone-block small { display: block; font-size: 0.8rem; opacity: 0.75; }
.contact-phone-block strong { font-size: 1.35rem; letter-spacing: 0.02em; }
.contact-locations { display: grid; gap: 16px; }
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.location-card h3 { font-size: 1rem; margin-bottom: 6px; }
.location-card p { margin-bottom: 0; color: var(--ink); font-weight: 500; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 8px; }
.form-note { font-size: 0.88rem; margin-bottom: 22px; }
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: #2f7d4f; }
.form-status.error { color: #b3453c; }

.line-contact {
  text-align: center;
}
.line-contact h3 { margin-bottom: 8px; }
.line-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 24px auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px;
  background: var(--white);
}
.line-id-block {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 28px;
}
.line-id-block small { color: var(--ink-soft); font-size: 0.8rem; }
.line-id-block strong { color: var(--navy); font-size: 1.3rem; letter-spacing: 0.04em; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 64px 24px 40px;
}
.footer-brand strong { display: block; color: var(--white); font-size: 1.15rem; margin-bottom: 10px; font-family: "Noto Serif TC", serif; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: var(--gold-light); font-size: 0.95rem; margin-bottom: 16px; font-family: "Noto Sans TC", sans-serif; }
.footer-col p { font-size: 0.88rem; margin-bottom: 10px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-light); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 220px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta .phone-pill span { display: none; }
  .header-cta .phone-pill { padding: 10px; }
  .menu-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    gap: 4px;
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 80px; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .contact-form-wrap { padding: 24px; }
  .logo-text strong { font-size: 0.95rem; }
}
