:root {
  --ink: #111111;
  --paper: #f7f4ee;
  --paper-2: #ebe7df;
  --muted: #66605a;
  --line: rgba(17, 17, 17, 0.14);
  --teal: #0b6f63;
  --gold: #c79235;
  --coral: #bb4f3a;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 12px;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible {
  background: rgba(11, 111, 99, 0.11);
}

.nav-cta {
  border: 1px solid currentColor;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #111111;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero-taichung-event.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.68) 38%, rgba(0, 0, 0, 0.2) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #095e54;
}

.button.secondary {
  color: inherit;
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.button.large {
  min-height: 58px;
  padding-inline: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 140px));
  gap: 12px;
  max-width: 480px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 950;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.trust-strip span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.split,
.section-heading,
.area-layout,
.contact-inner,
.compliance-box {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 7vw, 80px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

p {
  margin: 0;
}

.intro-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 18px;
}

.service-section,
.process-section {
  border-top: 1px solid var(--line);
}

.section-heading p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.service-card p {
  color: var(--muted);
}

.card-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.service-card:nth-child(2) .card-number {
  background: var(--teal);
}

.service-card:nth-child(3) .card-number {
  background: var(--gold);
}

.service-card:nth-child(4) .card-number {
  background: var(--coral);
}

.area-section {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1120px) / 2));
  background: #e8efea;
}

.area-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.area-layout p {
  max-width: 600px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.process-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
  font-weight: 900;
}

.process-list p {
  margin-top: 12px;
  color: var(--muted);
}

.compliance-section {
  padding-top: 0;
}

.compliance-box {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(187, 79, 58, 0.92), rgba(11, 111, 99, 0.96)),
    var(--teal);
  box-shadow: var(--shadow);
}

.compliance-box .section-kicker,
.compliance-box p {
  color: rgba(255, 255, 255, 0.84);
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 900;
}

details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact-section {
  padding: clamp(64px, 9vw, 110px) max(18px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(199, 146, 53, 0.22), transparent 32%),
    linear-gradient(135deg, #111111, #1f241f);
}

.contact-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: center;
}

.contact-inner p {
  max-width: 640px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #111111;
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 980px) {
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .section-heading,
  .area-layout,
  .contact-inner,
  .compliance-box {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 4px);
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(247, 244, 238, 0.97);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 160ms ease,
      opacity 160ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: 6px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-bg {
    background-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.5)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.84));
  }

  .hero-inner {
    padding-top: 96px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stats,
  .trust-strip,
  .area-list {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .trust-strip span {
    min-height: 56px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
