:root {
  --ink: #17211f;
  --muted: #66736f;
  --paper: #f8f4ec;
  --white: #fffdf8;
  --line: rgba(23, 33, 31, 0.14);
  --moss: #506d43;
  --sea: #0f6a73;
  --ember: #d95f28;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--wp--preset--font-family--system-font, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(20, 29, 27, 0.94);
  backdrop-filter: blur(16px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.32);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 253, 248, 0.08);
  cursor: pointer;
}
.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 50%;
  font-weight: 900;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.brand-logo img,
.brand-logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--brand-logo-max-width, 180px);
  max-height: var(--brand-logo-max-height, 64px);
  object-fit: contain;
}
.brand-copy {
  min-width: 0;
}
.brand strong, .brand small { display: block; }
.brand small {
  margin-top: 2px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 12px;
}

.nav-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav {
  color: rgba(255, 253, 248, 0.82);
  font-size: 15px;
}

.nav a {
  display: inline-flex;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.current-menu-item > a,
.current_page_item > a {
  color: var(--white);
  border-color: var(--ember);
}

.call {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
}
.nav .mobile-call {
  display: none;
}

.page-hero {
  --hero-min-height: 510px;
  --hero-video-crop-x: 180px;
  --hero-video-crop-y: 120px;
  position: relative;
  min-height: var(--hero-min-height);
  display: grid;
  align-items: end;
  padding: 84px clamp(18px, 5vw, 72px) 56px;
  color: var(--white);
  overflow: hidden;
}

.page-hero.compact { min-height: 380px; }
.page-hero img,
.hero-slider,
.page-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero img { object-fit: cover; }
.hero-slider {
  overflow: hidden;
}
.hero-slider img {
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-slider img.is-active {
  opacity: 1;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(
    calc(100% + var(--hero-video-crop-x)),
    calc((var(--hero-min-height) + var(--hero-video-crop-y)) * 16 / 9),
    calc(100vh * 16 / 9 + var(--hero-video-crop-x))
  );
  height: max(
    calc(100% + var(--hero-video-crop-y)),
    calc((100vw + var(--hero-video-crop-x)) * 9 / 16),
    calc(var(--hero-min-height) + var(--hero-video-crop-y))
  );
  border: 0;
  background: #000;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.page-hero::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 17, 16, 0.82), rgba(11, 17, 16, 0.34) 55%, rgba(11, 17, 16, 0.68)),
    linear-gradient(to top, rgba(11, 17, 16, 0.8), rgba(11, 17, 16, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

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

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.98;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}
h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
}
.lead {
  max-width: 680px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
}

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

.button,
.wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.button.primary,
.wp-block-button__link {
  color: var(--white);
  background: var(--ember);
}
.button.outline {
  color: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.5);
}

.section {
  padding: 78px clamp(18px, 5vw, 72px);
}
.section.alt { background: var(--white); }
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.quick-grid a,
.quick-grid div {
  min-height: 128px;
  padding: 24px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
}
.quick-grid strong,
.quick-grid span { display: block; }
.quick-grid strong { font-size: 20px; }
.quick-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 46px;
  align-items: start;
}
.intro-grid p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.9;
}

.card-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card,
.post-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card.dark {
  color: var(--white);
  background: var(--ink);
}
.card p,
.post-card p {
  color: var(--muted);
  line-height: 1.75;
}
.card.dark p { color: rgba(255, 253, 248, 0.74); }
.card strong,
.post-card .read-more {
  color: var(--sea);
  font-size: 18px;
  font-weight: 900;
}
.card.dark strong { color: var(--ember); }
.post-card img {
  width: calc(100% + 48px);
  max-width: none;
  height: 220px;
  margin: -24px -24px 22px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.post-meta {
  color: var(--muted);
  font-size: 14px;
}

.feature-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  padding: 0;
  overflow: hidden;
}
.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}
.feature-card .feature-copy {
  align-self: end;
  padding: 30px 30px 26px 0;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  color: var(--white);
  background: var(--moss);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.media-band {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 54px clamp(18px, 5vw, 72px);
  color: var(--white);
  overflow: hidden;
}
.media-band img,
.media-band::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.media-band img { object-fit: cover; }
.media-band [data-parallax-image] {
  inset: auto;
  top: -24%;
  left: 0;
  width: 100%;
  height: 148%;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}
.media-band::after {
  content: "";
  background: linear-gradient(90deg, rgba(13, 22, 21, 0.78), rgba(13, 22, 21, 0.24));
}
.media-band div {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
.media-band p:last-child {
  color: rgba(255, 253, 248, 0.8);
  font-size: 19px;
  line-height: 1.8;
}

.price-list { display: grid; gap: 12px; }
.price-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.price-list span { font-size: 19px; }
.price-list strong {
  color: var(--sea);
  white-space: nowrap;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  min-height: 210px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 28px;
  color: var(--ember);
  font-weight: 900;
}
.steps strong,
.steps span { display: block; }
.steps span {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 36px;
  align-items: center;
  color: var(--white);
  background: var(--ink);
}
.contact-panel p {
  max-width: 640px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 19px;
  line-height: 1.8;
}
.contact-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
}
.contact-card a.phone {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
}
.contact-card span { color: rgba(255, 253, 248, 0.72); }

.content-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.entry-content {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.9;
}
.entry-content a { color: var(--sea); text-decoration: underline; }
.entry-content img { border-radius: 8px; }
.pagination {
  margin-top: 34px;
  color: var(--sea);
  font-weight: 900;
}

.search-form {
  display: flex;
  gap: 10px;
}
.search-field {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.search-submit {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--ember);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
}

@media (max-width: 980px) {
  .site-header {
    gap: 14px;
  }
  .menu-toggle {
    display: grid;
    order: 3;
  }
  .nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: block;
    padding: 12px;
    border: 1px solid rgba(255, 253, 248, 0.14);
    border-radius: 8px;
    color: var(--white);
    background: rgba(20, 29, 27, 0.98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .site-header.is-menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-menu {
    display: grid;
    gap: 0;
  }
  .nav a {
    width: 100%;
    min-height: 46px;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 253, 248, 0.12);
  }
  .nav-menu li:last-child a {
    border-bottom: 0;
  }
  .call {
    display: none;
  }
  .nav .mobile-call {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--white);
    background: rgba(239, 127, 38, 0.18);
    font-weight: 900;
  }
  .quick-grid,
  .card-grid,
  .post-grid,
  .steps,
  .intro-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .feature-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .feature-card .feature-copy { padding: 0 24px 24px; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .page-hero { --hero-min-height: 420px; padding: 66px 18px 38px; }
  .section { padding: 58px 18px; }
  .quick-grid a,
  .quick-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .price-list div {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer { flex-direction: column; }
}
