:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #171717;
  --bg-elevated: #202020;
  --gold: #c9a96e;
  --gold-soft: rgba(201, 169, 110, 0.18);
  --text: #f7f3ec;
  --muted: #b7b0a5;
  --line: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --serif: "Noto Serif TC", serif;
  --sans: "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201, 169, 110, 0.2), rgba(255, 255, 255, 0.04));
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.brand-text,
.footer-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(247, 243, 236, 0.82);
  font-size: 0.95rem;
}

.nav-menu a:not(.nav-cta) {
  position: relative;
  transition: color 0.25s ease;
}

.nav-menu a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-menu a:not(.nav-cta):hover,
.nav-menu a:not(.nav-cta):focus-visible {
  color: var(--gold);
}

.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.btn,
form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(201, 169, 110, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, #d8bd82, #a98243);
  color: #120f0a;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 40px rgba(201, 169, 110, 0.18);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-cta {
  padding: 10px 20px;
}

.nav-cta:hover,
.btn:hover,
form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(201, 169, 110, 0.25);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

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

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

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

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

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 90px;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.74) 48%, rgba(10, 10, 10, 0.35) 100%), url("images/liangming-car-wrap-16.webp") center/cover no-repeat;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 24% 42%, rgba(201, 169, 110, 0.22), transparent 32%), radial-gradient(circle at 86% 30%, rgba(255, 255, 255, 0.08), transparent 22%);
  content: "";
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.18;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 26px;
  color: rgba(247, 243, 236, 0.84);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  padding: 13px 28px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.hero-card {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 76px;
  width: min(420px, calc(100% - 48px));
  padding: 28px;
  border: 1px solid rgba(201, 169, 110, 0.26);
  border-radius: 26px;
  background: rgba(16, 16, 16, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.hero-card p {
  margin-top: 10px;
  color: var(--muted);
}

.section {
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading h2,
.about-content h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.section-heading p:not(.eyebrow),
.about-content p,
.contact-copy p {
  margin-top: 18px;
  color: var(--muted);
}

.opening-promo {
  border-top: 1px solid rgba(201, 169, 110, 0.16);
  border-bottom: 1px solid rgba(201, 169, 110, 0.16);
  background: radial-gradient(circle at 18% 12%, rgba(201, 169, 110, 0.18), transparent 28%), linear-gradient(180deg, #0b0b0b 0%, #121212 100%);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.promo-card {
  position: relative;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promo-card img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

.promo-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(201, 169, 110, 0.26);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  backdrop-filter: blur(14px);
}

.services {
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.service-card::after {
  position: absolute;
  right: -64px;
  bottom: -64px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gold-soft);
  content: "";
  filter: blur(8px);
}

.service-card:hover {
  border-color: rgba(201, 169, 110, 0.54);
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.11), rgba(255, 255, 255, 0.025));
  transform: translateY(-8px);
}

.service-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 22px;
  background: rgba(201, 169, 110, 0.08);
}

.service-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.service-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.portfolio {
  background: #0a0a0a;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 18px;
}

.portfolio-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.portfolio-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.82) 100%);
  content: "";
}

.portfolio-item figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 1;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portfolio-item:hover img {
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.08);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 20%, rgba(201, 169, 110, 0.15), transparent 30%), #101010;
}

.about-content {
  max-width: 730px;
}

.about-stats {
  display: grid;
  gap: 18px;
}

.about-stats div {
  padding: 28px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.about-stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}

.about-stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.contact-section {
  background: linear-gradient(180deg, #0a0a0a, #111111);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 58px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  list-style: none;
}

.contact-list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 243, 236, 0.88);
}

.contact-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.line-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.12), rgba(255, 255, 255, 0.035));
}

.line-card img {
  width: 132px;
  height: 132px;
  border: 8px solid #ffffff;
  border-radius: 18px;
  background: #ffffff;
  object-fit: contain;
}

.line-card span {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.line-card p {
  margin-top: 8px;
}

.form-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 16px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  outline: none;
  padding: 15px 17px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(183, 176, 165, 0.75);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 15px) 21px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

select option {
  background: #111111;
  color: var(--text);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(201, 169, 110, 0.72);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.11);
}

form button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  font-size: 1rem;
}

.form-message {
  min-height: 28px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 700;
  text-align: center;
}

.form-message.error {
  color: #f5b5a8;
}

.map-section {
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
  background: #0a0a0a;
}

.map-embed {
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 430px;
  filter: grayscale(0.2) contrast(1.05) brightness(0.86);
}

.site-footer {
  padding: 48px max(24px, calc((100vw - 1180px) / 2)) 28px;
  border-top: 1px solid var(--line);
  background: #070707;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
}

.footer-inner p,
.copyright {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(247, 243, 236, 0.78);
}

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

.copyright {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .service-grid,
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 54px;
  }
}

@media (max-width: 820px) {
  .navbar {
    width: min(100% - 32px, 1180px);
  }

  .nav-toggle {
    position: relative;
    z-index: 120;
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(10, 10, 10, 0.96);
    font-size: 1.12rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding-top: 138px;
    padding-bottom: 76px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section,
  .map-section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 1rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .service-grid,
  .promo-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-auto-rows: 260px;
  }

  .portfolio-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .service-card {
    min-height: auto;
  }

  .contact-wrapper {
    gap: 36px;
  }

  .line-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .line-card img {
    margin: 0 auto;
  }

  .promo-card figcaption {
    position: static;
    margin: 16px;
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.success-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: radial-gradient(circle at 50% 0%, rgba(201, 169, 110, 0.22), transparent 34%), linear-gradient(135deg, #050505, #111111 62%, #050505);
}

.success-card {
  width: min(680px, 100%);
  padding: clamp(34px, 7vw, 62px);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 34px;
  background: rgba(17, 17, 17, 0.84);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-brand {
  justify-content: center;
  margin-bottom: 34px;
}

.success-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
}

.success-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto 34px;
  color: var(--muted);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}
