:root {
  --ink: #243027;
  --muted: #667068;
  --sage: #738466;
  --sage-dark: #4d5d47;
  --gold: #c8ad72;
  --cream: #f7f4ec;
  --paper: #fffefb;
  --line: #e7e0d2;
  --warm: #9b6049;
  --line-green: #39b54a;
  --shadow: 0 18px 48px rgba(37, 48, 39, 0.09);
  --shadow-soft: 0 10px 30px rgba(37, 48, 39, 0.07);
  --radius: 24px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf7;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--sage-dark);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #e0b857; outline-offset: 3px; }

.announcement { color: white; background: var(--sage-dark); font-size: 0.88rem; }
.announcement__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.94);
  backdrop-filter: blur(14px);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 72px; height: 72px; object-fit: contain; }
.brand__text { display: grid; line-height: 1.3; }
.brand__text strong { font-family: "Noto Serif TC", "PMingLiU", serif; font-size: 1.3rem; letter-spacing: 0.08em; }
.brand__text small { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.primary-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 21px); }
.primary-nav > a:not(.button) { color: #566059; font-size: 0.92rem; white-space: nowrap; }
.primary-nav > a:not(.button):hover { color: var(--sage-dark); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: linear-gradient(135deg, var(--sage), var(--sage-dark)); box-shadow: 0 10px 24px rgba(77, 93, 71, 0.24); }
.button--line { color: white; background: var(--line-green); box-shadow: 0 10px 22px rgba(57, 181, 74, 0.18); }
.button--outline { color: var(--sage-dark); border-color: #bec9b7; background: white; }
.button--light { color: var(--sage-dark); border-color: var(--line); background: white; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 46px;
  background: linear-gradient(115deg, #f8f6f0 0%, #fff 52%, #f1ede4 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -170px;
  top: -130px;
  border-radius: 50%;
  background: rgba(115, 132, 102, 0.1);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.03fr 0.97fr; gap: 38px; align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--sage-dark); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.12em; }
.hero h1 { margin: 8px 0 18px; font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(2.45rem, 4.3vw, 4.7rem); line-height: 1.14; letter-spacing: 0.03em; }
.hero h1 span { color: var(--sage-dark); }
.hero__lead { max-width: 680px; margin: 0 0 20px; color: #4c574f; font-size: 1.06rem; }
.hero__proofs { display: grid; gap: 9px; margin: 20px 0 25px; padding: 0; list-style: none; }
.hero__proofs li { display: flex; gap: 10px; align-items: center; color: #4d574f; }
.hero__proofs span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 1px solid #a9b7a1; border-radius: 50%; color: var(--sage-dark); font-size: 0.78rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__media { position: relative; min-width: 0; }
.hero__media > img { width: 100%; aspect-ratio: 1.34 / 1; object-fit: cover; object-position: center 38%; border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: var(--shadow); }
.hero-card { position: absolute; right: 16px; min-width: 150px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.hero-card strong, .hero-card span { display: block; }
.hero-card strong { color: var(--sage-dark); }
.hero-card span { color: var(--muted); font-size: 0.84rem; }
.hero-card--training { top: 20px; }
.hero-card--clean { top: 108px; }
.hero-card--area { top: 196px; }

.trust-strip { border-block: 1px solid var(--line); background: #f8f7f2; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-strip__grid > div { padding: 17px 14px; text-align: center; border-right: 1px solid var(--line); }
.trust-strip__grid > div:last-child { border-right: 0; }
.trust-strip span { color: var(--gold); font-size: 0.7rem; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip small { color: var(--muted); font-size: 0.84rem; }

.section { padding: 64px 0; }
.section--tinted { background: var(--cream); }
.section--brand { padding-top: 20px; }
.section-heading { max-width: 790px; margin: 0 auto 28px; text-align: center; }
.section-heading--split { display: flex; align-items: end; justify-content: space-between; max-width: none; text-align: left; gap: 24px; }
.section-heading h2 { margin: 0 0 7px; font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.service-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 13px; border-radius: 17px; background: linear-gradient(135deg, #eef2eb, #f4ead8); font-size: 1.35rem; }
.service-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.service-card p { margin: 0; color: var(--muted); }

.pricing-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: stretch; }
.price-panel { position: relative; overflow: hidden; padding: 32px; border-radius: 30px; color: white; background: linear-gradient(135deg, var(--sage-dark), #6e7f63); }
.price-panel::after { content: ""; position: absolute; width: 270px; height: 270px; right: -80px; bottom: -130px; border-radius: 50%; background: rgba(255,255,255,.08); }
.price-panel > p:first-child { margin: 0; color: #e7efdf; font-weight: 800; letter-spacing: 0.08em; }
.price-panel > strong { display: block; margin: 12px 0 16px; font-family: "Noto Serif TC", serif; font-size: clamp(3.8rem, 7vw, 5.6rem); line-height: 1; }
.price-panel strong small { font-size: 1.05rem; }
.price-panel ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.price-panel li { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 0.9rem; }
.price-panel__note { max-width: 610px; color: #eef3ea; font-size: 0.9rem; }
.estimate-card { padding: 25px; border: 1px solid var(--line); border-radius: 25px; background: white; box-shadow: var(--shadow-soft); }
.estimate-card h3 { margin: 0; font-size: 1.35rem; }
.estimate-card > p { margin: 4px 0 17px; color: var(--muted); }
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
.form-row label { font-weight: 700; font-size: 0.92rem; }
.form-row input, .form-row select, .form-row textarea { width: 100%; min-height: 47px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; }
.form-row textarea { resize: vertical; }
.estimate-result { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 15px 0; padding: 16px; border: 1px solid #dfe6da; border-radius: 16px; background: #f5f6f2; }
.estimate-result strong { color: var(--warm); font-size: 1.8rem; }

.portfolio-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: 20px; align-items: start; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; padding: 4px 3px 14px; }
.carousel::-webkit-scrollbar { display: none; }
.portfolio-card { overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-soft); }
.portfolio-card img { width: 100%; height: 205px; object-fit: cover; object-position: center; }
.portfolio-card div { padding: 12px 14px; }
.portfolio-card strong, .portfolio-card span { display: block; }
.portfolio-card span { color: var(--muted); font-size: 0.85rem; }
.carousel-buttons { display: flex; gap: 9px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); }
.video-card__text { padding: 20px 20px 12px; }
.video-card h3 { margin: 0 0 6px; }
.video-card p:not(.eyebrow) { margin: 0; color: var(--muted); }
.video-card video { width: 100%; aspect-ratio: 9 / 11; object-fit: cover; background: #111; }

.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.comparison-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-soft); }
.comparison-slider { position: relative; height: 255px; overflow: hidden; background: #ddd; }
.comparison-slider img { width: 100%; height: 100%; object-fit: cover; }
.comparison-slider__after { position: absolute; inset: 0; }
.comparison-slider__before { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.comparison-slider__before img { width: 100%; height: 100%; object-fit: cover; }
.comparison-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: white; box-shadow: 0 0 0 1px rgba(0,0,0,.18); transform: translateX(-50%); pointer-events: none; }
.comparison-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--sage-dark); background: white; box-shadow: var(--shadow-soft); transform: translate(-50%, -50%); }
.comparison-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison-label { position: absolute; z-index: 3; top: 10px; padding: 5px 9px; border-radius: 999px; color: white; background: rgba(36,48,39,.82); font-size: 0.76rem; pointer-events: none; }
.comparison-label--before { left: 10px; }
.comparison-label--after { right: 10px; background: rgba(155,96,73,.88); }
.comparison-card__body { padding: 15px; }
.comparison-card__body h3 { margin: 0 0 4px; }
.comparison-card__body p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.disclaimer { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 0.84rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.process-grid li { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); }
.process-grid li > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; color: white; background: var(--sage-dark); font-weight: 800; }
.process-grid h3 { margin: 0 0 7px; }
.process-grid p { margin: 0; color: var(--muted); }

.about-card { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 25px; align-items: center; padding: 34px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(120deg, #f6f3eb, #eef2eb); }
.about-card h2 { margin: 0 0 10px; font-family: "Noto Serif TC", serif; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.about-card p:not(.eyebrow) { color: #566158; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-points div { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.78); }
.about-points strong, .about-points span { display: block; }
.about-points span { color: var(--muted); font-size: 0.86rem; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
details { padding: 17px 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
summary { position: relative; padding-right: 28px; font-weight: 800; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; color: var(--sage-dark); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

.booking { padding: 66px 0; color: white; background: var(--sage-dark); }
.booking__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 26px; align-items: start; }
.booking .eyebrow { color: #e7efdf; }
.booking h2 { margin: 0 0 10px; font-family: "Noto Serif TC", serif; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.booking__intro > p:not(.eyebrow) { color: #dce5d8; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 22px; }
.contact-card { padding: 17px 12px; border-radius: 18px; color: var(--ink); background: white; text-align: center; }
.contact-card > span { display: block; min-height: 30px; font-size: 1.25rem; font-weight: 800; }
.contact-card strong, .contact-card small { display: block; }
.contact-card small { color: var(--muted); }
.booking-form { padding: 24px; border-radius: 25px; color: var(--ink); background: white; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row--full { grid-column: 1 / -1; }
.booking-form__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.form-status { min-height: 24px; margin: 10px 0 0; color: var(--sage-dark); font-weight: 700; }
.form-note { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; }
.form-note code { padding: 1px 5px; border-radius: 5px; background: #f0eee9; }

.site-footer { padding: 24px 0; color: #5c655e; background: #eef0e9; }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { color: #778078; font-size: 0.83rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 0.9rem; }
.footer__grid > p { margin: 0; color: #778078; font-size: 0.84rem; text-align: right; }

.mobile-actionbar { display: none; }
.noscript { position: fixed; inset: auto 12px 12px; z-index: 200; padding: 12px; border-radius: 12px; color: white; background: #8b5744; text-align: center; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,254,251,.98);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: grid; }
  .primary-nav > a { padding: 8px 10px; }
  .nav-cta { margin-top: 4px; }
  .hero__grid, .pricing-layout, .about-card, .booking__grid { grid-template-columns: 1fr; }
  .hero__content { max-width: 800px; }
  .hero__media { max-width: 850px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-layout { grid-template-columns: 1fr; }
  .video-card { display: grid; grid-template-columns: 1fr 300px; align-items: center; }
  .video-card video { aspect-ratio: 4 / 3; height: 100%; }
  .comparison-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer__grid > p { text-align: center; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 96px; }
  body { padding-bottom: 78px; }
  .announcement__inner { justify-content: center; text-align: center; }
  .announcement__inner span:last-child { display: none; }
  .navbar { min-height: 74px; }
  .brand img { width: 58px; height: 58px; }
  .brand__text strong { font-size: 1.08rem; }
  .brand__text small { font-size: 0.7rem; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .hero__media > img { aspect-ratio: 4 / 5; }
  .hero-card { position: static; display: inline-block; min-width: auto; margin: 10px 6px 0 0; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__actions .button:first-child { grid-column: 1 / -1; }
  .trust-strip__grid { grid-template-columns: 1fr 1fr; }
  .trust-strip__grid > div { border-bottom: 1px solid var(--line); }
  .trust-strip__grid > div:nth-child(even) { border-right: 0; }
  .trust-strip__grid > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .section { padding: 50px 0; }
  .section-heading--split { display: block; }
  .carousel-buttons { margin-top: 14px; }
  .service-grid, .comparison-grid, .process-grid, .faq-grid { grid-template-columns: 1fr; }
  .carousel { grid-auto-columns: 82%; }
  .portfolio-card img { height: 210px; }
  .video-card { display: block; }
  .video-card video { aspect-ratio: 9 / 10; }
  .comparison-slider { height: 270px; }
  .about-points { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .form-row--full { grid-column: auto; }
  .booking-form__actions { display: grid; }
  .mobile-actionbar {
    position: fixed;
    z-index: 150;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 9px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }
  .mobile-actionbar .button { min-height: 48px; }
}

@media (max-width: 420px) {
  .container { width: min(var(--container), calc(100% - 22px)); }
  .brand__text small { display: none; }
  .hero__actions { grid-template-columns: 1fr; }
  .hero__actions .button:first-child { grid-column: auto; }
  .rate { font-size: 3.7rem; }
}

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

@media (prefers-contrast: more) {
  :root { --line: #9d9d96; --muted: #4f544f; }
  .button, .service-card, .portfolio-card, details, .comparison-card { border-width: 2px; }
}


/* LINE official account panel */
.line-qr-panel {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.09);
}
.line-qr-panel__image {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
.line-qr-panel__image img { width: 100%; height: auto; }
.line-qr-panel strong { display: block; font-size: 1.08rem; }
.line-qr-panel p { margin: 4px 0 12px; color: #dce5d8; font-size: .9rem; }
.line-qr-panel .button { min-height: 42px; padding: 9px 16px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .line-qr-panel { grid-template-columns: 112px 1fr; gap: 13px; padding: 13px; }
  .line-qr-panel p { font-size: .82rem; line-height: 1.55; }
  .line-qr-panel .button { width: 100%; }
}
