:root {
  --ink: #232421;
  --ink-soft: #4d4b45;
  --charcoal: #30332f;
  --stone: #f5f1e8;
  --paper: #fffdf8;
  --sand: #d7c8aa;
  --gold: #b89555;
  --earth: #756347;
  --moss: #58614d;
  --line: rgba(184, 149, 85, 0.28);
  --shadow: 0 22px 60px rgba(34, 32, 27, 0.14);
  --radius: 8px;
  --sans: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.8;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(35, 36, 33, 0.08);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: var(--charcoal);
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 22px;
}

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

.brand strong {
  font-family: var(--serif);
  font-size: 18px;
}

.brand small {
  color: var(--earth);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav-links a {
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 9px 16px;
  color: var(--paper) !important;
  background: var(--charcoal);
  border: 1px solid var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(35, 36, 33, 0.2);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.section {
  padding: 96px 0;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.section-muted {
  background: var(--stone);
}

.section-dark {
  color: var(--paper);
  background: var(--charcoal);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 21px;
}

.hero {
  min-height: calc(100vh - 76px);
  color: var(--paper);
  background: #1f211f;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(26, 27, 25, 0.92), rgba(26, 27, 25, 0.62) 52%, rgba(26, 27, 25, 0.35));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px 0 96px;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--sand);
  font-size: clamp(19px, 2.8vw, 28px);
  font-weight: 600;
}

.hero-text {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--paper);
  background: var(--gold);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #c9a966;
}

.btn-outline {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 253, 248, 0.42);
}

.btn-outline:hover {
  border-color: var(--gold);
}

.btn-line {
  color: #113b27;
  background: #d9efe0;
  border-color: #9fcfaf;
}

.btn-chat {
  color: var(--paper);
  cursor: pointer;
  background: var(--moss);
  border-color: rgba(255, 253, 248, 0.22);
  font-family: inherit;
  font-size: 16px;
}

.btn-chat:hover {
  background: #69745c;
}

.btn-outline.light {
  color: var(--paper);
}

.hero-panel {
  align-self: end;
  padding: 28px;
  background: rgba(35, 36, 33, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.hero-panel span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel strong {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.4;
}

.hero-panel p {
  margin: 14px 0 0;
  color: rgba(255, 253, 248, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.about-text p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 18px;
}

.visual-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
  margin-top: 54px;
}

.visual-card {
  display: flex;
  align-items: end;
  min-height: 240px;
  padding: 20px;
  overflow: hidden;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.visual-card span {
  position: relative;
  z-index: 1;
  padding: 7px 10px;
  background: rgba(35, 36, 33, 0.6);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.section-dark .section-heading p:last-child {
  color: rgba(255, 253, 248, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 238px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid rgba(35, 36, 33, 0.08);
  border-top: 3px solid var(--gold);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.service-card h3 {
  margin-top: 16px;
}

.service-card p,
.case-card p,
.faq p {
  color: var(--ink-soft);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.process-step {
  position: relative;
  min-height: 150px;
  padding: 24px 18px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step::after {
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 2;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}

.process-step:last-child::after {
  display: none;
}

.process-step span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper);
  background: var(--charcoal);
  font-family: var(--serif);
}

.process-step strong {
  display: block;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.case-image {
  height: 170px;
}

.case-card h3,
.case-card p {
  padding: 0 22px;
}

.case-card h3 {
  margin-top: 24px;
}

.case-card p {
  margin-bottom: 26px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: var(--paper);
  border: 1px solid rgba(35, 36, 33, 0.12);
}

summary {
  position: relative;
  min-height: 62px;
  padding: 17px 58px 17px 22px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--gold);
  content: "+";
  font-size: 28px;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact {
  color: var(--paper);
  background:
    linear-gradient(rgba(35, 36, 33, 0.9), rgba(35, 36, 33, 0.9)),
    linear-gradient(135deg, rgba(184, 149, 85, 0.28), transparent 35%),
    var(--charcoal);
}

.contact-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
}

.contact h2 + p {
  max-width: 640px;
  color: rgba(255, 253, 248, 0.78);
}

address {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid var(--line);
  font-style: normal;
}

address strong {
  font-family: var(--serif);
  font-size: 22px;
}

address a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  margin-top: 8px;
  padding: 10px 16px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.22s ease, transform 0.22s ease;
}

.map-link:hover {
  background: rgba(184, 149, 85, 0.18);
  transform: translateY(-2px);
}

.disclaimer {
  padding: 26px 0;
  color: #6c6659;
  background: #eee6d8;
  font-size: 14px;
}

.disclaimer p {
  margin: 0;
}

.site-footer {
  padding: 36px 0;
  color: rgba(255, 253, 248, 0.78);
  background: #1f211f;
  text-align: center;
}

.site-footer a {
  color: rgba(255, 253, 248, 0.86);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer p {
  margin: 4px 0;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--paper);
  cursor: pointer;
  background: var(--gold);
  border: 0;
  box-shadow: 0 10px 28px rgba(35, 36, 33, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ai-image {
  position: relative;
  overflow: hidden;
  background-color: #3a3d36;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(135deg, rgba(255, 253, 248, 0.14), transparent 36%),
    linear-gradient(45deg, transparent 44%, rgba(184, 149, 85, 0.26) 45%, rgba(184, 149, 85, 0.26) 46%, transparent 47%),
    repeating-linear-gradient(90deg, rgba(255, 253, 248, 0.07) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(0deg, rgba(255, 253, 248, 0.05) 0 1px, transparent 1px 46px);
}

.ai-image::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 24% 24%, rgba(215, 200, 170, 0.26), transparent 26%),
    linear-gradient(160deg, transparent 0 38%, rgba(35, 36, 33, 0.28) 39% 55%, transparent 56%),
    linear-gradient(22deg, rgba(117, 99, 71, 0.58), transparent 48%);
}

.aerial {
  background-color: #2c352b;
  background-image: url("images/hero-land-development.png");
  background-position: center;
}

.cadastral,
.blueprint {
  background-color: #2d3437;
  background-image: url("images/cadastral-map.png");
}

.office {
  background-color: #5a5449;
  background-image: url("images/office-consulting.png");
  background-position: center;
}

.architecture,
.skyline {
  background-color: #383b3b;
  background-image: url("images/modern-architecture.png");
  background-position: center;
}

.land {
  background-color: #46513f;
  background-image: url("images/hero-land-development.png");
  background-position: center;
}

.contract {
  background-color: #6a6356;
  background-image: url("images/contracts-finance.png");
  background-position: center;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid rgba(35, 36, 33, 0.1);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-grid,
  .split,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
    padding-top: 60px;
  }

  .hero-panel {
    align-self: auto;
    max-width: 520px;
  }

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

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-step::after {
    top: auto;
    right: 50%;
    bottom: -9px;
    transform: translateX(50%) rotate(135deg);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding: 72px 0;
  }

  .hero-bg::after {
    background: rgba(26, 27, 25, 0.78);
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .visual-row,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .visual-card {
    min-height: 190px;
  }

  .contact-box {
    padding: 28px 18px;
  }

  address {
    padding: 22px;
  }

  .brand strong {
    font-size: 16px;
  }
}
