@font-face {
  font-family: "Martel";
  src: url("../fonts/Martel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  src: url("../fonts/NotoSansTC-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  src: url("../fonts/NotoSansTC-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-sage: #48695a;
  --color-sage-dark: #2f5144;
  --color-cream: #fdfbef;
  --color-warm-white: #fffdf8;
  --color-soft-gray: #f4f1ec;
  --color-text: #3d3d3d;
  --color-muted: #74706a;
  --color-accent: #d8c58f;
  --color-skin: #d7b399;
  --shadow-soft: 0 24px 70px rgba(72, 105, 90, 0.12);
  --shadow-card: 0 16px 42px rgba(61, 61, 61, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.section-pad {
  padding-block: 76px;
}

.skip-link {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  background: var(--color-sage-dark);
  color: var(--color-warm-white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(95, 128, 112, 0.45);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 239, 0.82);
  border-bottom: 1px solid rgba(216, 197, 143, 0.26);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 30px rgba(61, 61, 61, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}

.brand-mark {
  width: 68px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 81, 68, 0.38);
  border-radius: 999px;
  background: var(--color-sage-dark);
  color: var(--color-warm-white);
  box-shadow: 0 10px 24px rgba(47, 81, 68, 0.14);
}

.brand-mark img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Martel", serif;
  font-weight: 400;
  line-height: 1.2;
}

.brand small {
  color: var(--color-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
  font-size: 0.86rem;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-sage-dark);
}

.site-nav .nav-cta {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--color-sage-dark);
  color: var(--color-warm-white);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: #244238;
  color: var(--color-warm-white);
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid rgba(95, 128, 112, 0.32);
  border-radius: 50%;
  background: transparent;
  color: var(--color-sage-dark);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: clip;
  padding-top: 46px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 54vw;
  height: 54vw;
  right: -18vw;
  top: -20vw;
  border-radius: 45% 55% 48% 52%;
  background: rgba(47, 81, 68, 0.1);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 4vw;
  bottom: 2rem;
  width: clamp(12rem, 26vw, 25rem);
  aspect-ratio: 2.1;
  background: rgba(47, 81, 68, 0.055);
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
  mask: url("../img/logo.svg") center / contain no-repeat;
  pointer-events: none;
}

.hero-grid,
.split-layout,
.process-grid,
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.section-label {
  margin: 0 0 1rem;
  color: var(--color-sage-dark);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: "Martel", serif;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.16;
}

h3 {
  font-size: 1.32rem;
  line-height: 1.24;
}

.hero-text,
.section-copy p,
.intro-statement p {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-text {
  max-width: 33rem;
  margin: 1.45rem 0 0;
  color: var(--color-muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--color-sage-dark);
  color: var(--color-warm-white);
  box-shadow: 0 14px 28px rgba(47, 81, 68, 0.22);
}

.button-primary:hover {
  background: #244238;
}

.button-secondary {
  border-color: rgba(47, 81, 68, 0.48);
  color: var(--color-sage-dark);
  background: rgba(255, 253, 248, 0.5);
}

.hero-media,
.image-panel {
  margin: 0;
  position: relative;
}

.hero-media img,
.image-panel img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.hero-media img {
  aspect-ratio: 1.28;
}

.image-panel img {
  aspect-ratio: 1.12;
}

.image-panel.portrait img {
  aspect-ratio: 0.82;
  max-height: 720px;
  object-position: center top;
}

.intro {
  background: var(--color-warm-white);
}

.about {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(47, 81, 68, 0.08), rgba(255, 253, 248, 0) 48%),
    var(--color-warm-white);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--color-sage-dark);
}

.intro-statement {
  max-width: 760px;
  margin-bottom: 2rem;
}

.intro-statement p {
  margin: 0;
  font-family: "Martel", serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.25;
}

.benefit-grid,
.complaint-grid {
  display: grid;
  gap: 1rem;
}

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

.benefit-card,
.complaint-card,
.contact-card {
  border: 1px solid rgba(47, 81, 68, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow-card);
}

.benefit-card,
.complaint-card {
  position: relative;
  padding: clamp(1.15rem, 2vw, 1.55rem);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.benefit-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: var(--color-sage-dark);
}

.benefit-card:hover,
.complaint-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 81, 68, 0.34);
  box-shadow: 0 22px 52px rgba(61, 61, 61, 0.11);
}

.benefit-card h2 {
  font-size: 1.38rem;
}

.benefit-card p,
.complaint-card p {
  margin: 0.8rem 0 0;
  color: var(--color-muted);
}

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

.reverse .section-copy {
  order: 2;
}

.section-copy p {
  max-width: 38rem;
  color: var(--color-muted);
}

.text-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--color-sage-dark);
  font-weight: 400;
  text-decoration-color: rgba(95, 128, 112, 0.38);
  text-underline-offset: 0.24em;
}

.complaint-grid {
  grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(2rem, 5vw, 4rem);
}

.complaint-card {
  grid-column: span 2;
}

.complaint-card:nth-last-child(2) {
  grid-column: 2 / span 2;
}

.process {
  background:
    linear-gradient(120deg, rgba(47, 81, 68, 0.1), rgba(255, 253, 248, 0.78)),
    var(--color-warm-white);
}

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

.process-list li {
  display: grid;
  grid-template-columns: 0.5rem 1fr;
  column-gap: 1rem;
  align-items: center;
  min-height: 74px;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid rgba(47, 81, 68, 0.24);
  background: rgba(255, 253, 248, 0.52);
}

.process-list li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-sage-dark);
}

.qualification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.qualification-list li {
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: rgba(47, 81, 68, 0.1);
  color: var(--color-sage-dark);
  font-size: 0.9rem;
}

.quote-band {
  position: relative;
  overflow: clip;
  background: var(--color-sage-dark);
}

.quote-band .container {
  position: relative;
}

.quote-logo {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(34vw, 420px);
  min-width: 260px;
  opacity: 0.18;
  transform: translateY(-50%);
  pointer-events: none;
}

blockquote {
  max-width: 980px;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.18;
}

.quote-band blockquote {
  position: relative;
  z-index: 1;
  max-width: min(820px, 68%);
  color: var(--color-warm-white);
}

.contact-card {
  overflow: hidden;
  border-top: 6px solid var(--color-sage-dark);
}

.contact-card img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

address {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem;
  font-style: normal;
}

address strong {
  font-family: "Martel", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

address a {
  color: var(--color-sage-dark);
  text-decoration-color: rgba(95, 128, 112, 0.35);
  text-underline-offset: 0.22em;
}

.notice {
  padding-left: 1rem;
  border-left: 2px solid var(--color-accent);
}

.site-footer {
  padding-block: 1.4rem;
  border-top: 1px solid rgba(116, 112, 106, 0.14);
  background: var(--color-warm-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
}

.footer-inner a {
  text-decoration-color: rgba(116, 112, 106, 0.34);
  text-underline-offset: 0.24em;
}

.legal-page {
  min-height: 100vh;
  background: var(--color-cream);
}

.legal-main {
  padding-block: 72px 100px;
}

.legal-main article {
  max-width: 820px;
}

.legal-main h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.legal-main h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(calc(22px + var(--parallax-y, 0px)));
  transition: opacity 700ms ease, transform 700ms ease;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(var(--parallax-y, 0px));
}

.legal-page .site-nav {
  position: static;
  display: flex;
  visibility: visible;
  transform: none;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

@media (min-width: 1024px) {
  .section-pad {
    padding-block: 112px;
  }
}

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

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 1rem;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid rgba(216, 197, 143, 0.28);
    box-shadow: 0 28px 50px rgba(61, 61, 61, 0.1);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 0.9rem 0.35rem;
    border-bottom: 1px solid rgba(116, 112, 106, 0.12);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .legal-page .site-nav {
    position: static;
    display: flex;
    visibility: visible;
    transform: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .legal-page .site-nav a {
    border-bottom: 0;
  }

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

  .hero-media {
    order: -1;
  }

  .reverse .section-copy {
    order: initial;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .complaint-grid {
    grid-template-columns: 1fr;
  }

  .complaint-card,
  .complaint-card:nth-last-child(2) {
    grid-column: auto;
  }

  .quote-band blockquote {
    max-width: 100%;
  }

  .quote-band {
    padding-bottom: 112px;
  }

  .quote-logo {
    top: auto;
    right: 1rem;
    bottom: -2.4rem;
    width: 170px;
    min-width: 0;
    opacity: 0.22;
    transform: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, 1180px);
  }

  .section-pad {
    padding-block: 68px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-mark {
    width: 58px;
    height: 36px;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .site-nav {
    top: 70px;
  }

  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
