:root {
  --bg: #f3f6f8;
  --bg-soft: #eef3f6;
  --surface: #ffffff;
  --surface-alt: #f8fbfc;
  --text: #112235;
  --muted: #546579;
  --line: #d9e2e8;
  --primary: #16324f;
  --primary-strong: #0f2740;
  --accent: #2fbf7a;
  --accent-strong: #28a96c;
  --shadow: 0 18px 50px rgba(17, 34, 53, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22, 50, 79, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fbfc 0%, var(--bg) 40%, #edf2f6 100%);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 252, 0.9);
  border-bottom: 1px solid rgba(217, 226, 232, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #355677);
  color: #fff;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--primary);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--bg-soft);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.button-whatsapp {
  background: var(--accent);
  color: #fff;
  transition: all 0.2s ease;
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 40px 0 32px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(22, 50, 79, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6));
  pointer-events: none;
}

.hero-grid,
.process-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.hero-copy,
.process-copy,
.contact-copy,
.form-panel,
.hero-image-frame,
.process-visual,
.credential-card,
.service-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-top: 12px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.15;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 10ch;
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.badge-secondary {
  background: rgba(31, 143, 95, 0.1);
  color: var(--accent-strong);
}

.hero-note {
  margin: 18px 0 0;
  max-width: 38rem;
}

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

.hero-image-frame {
  overflow: hidden;
  border-radius: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(217, 226, 232, 0.8);
  background: #dfe8ee;
  box-shadow: var(--shadow);
}

.hero-image-frame img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.section {
  padding: 32px 0;
}

.section-heading {
  max-width: 46rem;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.service-grid,
.credential-grid,
.contact-cards {
  display: grid;
  gap: 16px;
}

.service-card,
.credential-card,
.contact-card,
.form-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 226, 232, 0.85);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 20px;
}

.service-card h3,
.process-list h3,
.form-panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.service-card p,
.process-list p,
.contact-card,
.form-panel p,
.footer-disclaimer {
  color: var(--muted);
}

.services-section {
  background-color: #ffffff;
}

.process-section {
  background-color: #f5f7f9;
}

.credentials-section {
  background-color: #ffffff;
}

.process-visual {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(217, 226, 232, 0.85);
  box-shadow: var(--shadow);
}

.process-visual img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 226, 232, 0.85);
  border-radius: var(--radius-sm);
}

.process-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.credential-card {
  overflow: hidden;
}

.credential-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.credential-card figcaption {
  padding: 14px 16px 16px;
  color: var(--primary);
  font-weight: 700;
}

.contact-section {
  position: relative;
  background-color: #f9fafb;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 50, 79, 0.06), transparent 36%),
    radial-gradient(circle at bottom right, rgba(31, 143, 95, 0.08), transparent 26%);
  pointer-events: none;
}

.contact-cards {
  margin-top: 20px;
}

.contact-card {
  display: block;
  padding: 18px;
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--text);
  font-size: 1rem;
}

.form-panel {
  padding: 22px;
}

.form-panel form {
  display: grid;
  gap: 12px;
}

.form-panel label {
  font-weight: 700;
  color: var(--primary);
}

.form-panel input,
.form-panel textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--text);
}

.form-panel input:focus,
.form-panel textarea:focus {
  outline: 2px solid rgba(31, 143, 95, 0.2);
  border-color: var(--accent);
}

.form-submit {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.form-message {
  min-height: 1.6em;
  margin: 0;
  font-weight: 700;
}

.form-message.is-success {
  color: var(--accent-strong);
}

.site-footer {
  padding: 28px 0 40px;
  background: #102337;
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 700px) {
  .service-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 10px 14px;
  }

  .nav-cta {
    margin-left: 8px;
  }

  .hero-section {
    padding: 60px 0 48px;
  }

  .hero-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 36px;
  }

  .section {
    padding: 52px 0;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .credential-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}
