:root {
  --navy: #123a5e;
  --navy-deep: #0c2a45;
  --blue: #1f74b1;
  --blue-soft: #e9f4fb;
  --blue-soft-2: #dcedf9;
  --orange: #f2953a;
  --orange-deep: #e2791a;
  --green: #3fb750;
  --ink: #1c2e3d;
  --grey: #66788a;
  --grey-light: #96a5b3;
  --line: #e3ecf3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 58, 94, 0.08);
  --maxw: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
h1,
h2,
h3 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
}
h2 {
  font-size: clamp(22px, 3vw, 30px);
}
h3 {
  font-size: 19px;
}
p {
  color: var(--grey);
  margin: 0 0 12px;
}
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.logo-mark {
  width: 38px;
  height: 38px;
  color: var(--blue);
  flex: none;
}
.logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.brand-text {
  line-height: 1.2;
}
.brand-text .cn {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.brand-text .en {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey-light);
  display: block;
}
nav.main-nav {
  display: flex;
  gap: 30px;
}
nav.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  transition: color 0.15s;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
nav.main-nav a:hover {
  color: var(--blue);
}
nav.main-nav a:hover::after {
  transform: scaleX(1);
}
nav.main-nav a.active {
  color: var(--blue);
}
nav.main-nav a.active::after {
  background: var(--orange);
  transform: scaleX(1);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(242, 149, 58, 0.35);
  transition: background 0.15s, transform 0.15s;
}
.header-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span:nth-child(1) {
  top: 13px;
}
.nav-toggle span:nth-child(2) {
  top: 19px;
}
.nav-toggle span:nth-child(3) {
  top: 25px;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* hero */
.hero {
  position: relative;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.88) 28%,
      rgba(255, 255, 255, 0.4) 42%,
      rgba(255, 255, 255, 0) 52%
    ),
    url("images/hero/hero-ac-cleaning.webp") center/cover no-repeat;
  padding: 64px 0 48px;
  overflow: hidden;
}
.hero .wrap {
  display: block;
}
.hero .wrap > div:first-child {
  max-width: 560px;
}
.hero-caption {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.hero-tag {
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.hero h1 {
  margin-bottom: 16px;
}
.hero h1 .accent {
  color: #1f74b1;
  display: block;
  font-size: clamp(18px, 2.3vw, 26px);
  white-space: nowrap;
  font-weight: 700;
  margin-top: 8px;
}
.hero p {
  font-size: 16px;
  max-width: 46ch;
}
.hero-badges {
  display: flex;
  gap: 22px;
  margin: 22px 0 26px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.hero-badge .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  box-shadow: 0 4px 10px rgba(18, 58, 94, 0.12);
  flex: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(242, 149, 58, 0.35);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}
.btn-line {
  background: var(--green);
  color: #fff;
}
.btn-cta {
  background: var(--navy);
  color: #fff;
  border: 1.5px solid var(--navy);
}
.btn-cta:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.btn-phone {
  background: var(--orange);
  color: #fff;
}
/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--blue-soft), #fff);
  padding: 56px 0 40px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
}
.page-hero h1 {
  margin-bottom: 10px;
}
.page-hero p {
  max-width: 56ch;
  margin: 0 auto;
}

/* sections */
section {
  padding: 64px 0;
}
.section-head {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head.left {
  text-align: left;
  margin: 0 0 36px;
}

/* icon row */
.icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.icon-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.icon-card .circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.icon-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.icon-card p {
  font-size: 13.5px;
  margin: 0;
}

/* service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--blue-soft-2), #bcdcf0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.service-photo svg {
  width: 46px;
  height: 46px;
}
.service-body {
  padding: 18px 20px 22px;
}
.service-body .tag {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.service-body h3 {
  margin-bottom: 4px;
}
.service-body .sub {
  font-size: 13px;
  color: var(--grey-light);
  margin-bottom: 10px;
}
.service-body .more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* about split */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: 22px;
  aspect-ratio: 5/4;
  background: linear-gradient(150deg, #dcedf9, #a9d0ea);
  box-shadow: var(--shadow);
  position: relative;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--orange);
  opacity: 0.15;
}
.map-embed {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16/7;
  box-shadow: var(--shadow);
}
.about-list {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 600;
}
.about-list li .chk {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
  font-size: 12px;
}

/* process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: left;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.step .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--blue-soft-2);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}
.step .circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  font-size: 13.5px;
  margin: 0;
}

/* reviews */
.rating-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 14px;
}
.rating-banner .score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rating-banner .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
}
.stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 16px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
/* booking form */
.booking-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.booking-form textarea {
  resize: vertical;
}
.booking-form button {
  justify-self: start;
  border: none;
  cursor: pointer;
}
@media (max-width: 560px) {
  .booking-row {
    grid-template-columns: 1fr;
  }
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft-2);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.review-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 14.5px;
}
.review-date {
  font-size: 12px;
  color: var(--grey-light);
}
.review-text {
  font-size: 14px;
  margin: 0;
}

/* review carousel */
.review-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}
.review-track::-webkit-scrollbar {
  display: none;
}
.review-track .review-card {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
}
.carousel-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.carousel-arrow:hover {
  background: var(--navy);
  color: #fff;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--grey-light);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots .dot.active {
  background: var(--navy);
  transform: scale(1.25);
}
@media (max-width: 900px) {
  .review-track .review-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}
@media (max-width: 640px) {
  .review-track .review-card {
    flex-basis: 86%;
  }
  .carousel-arrow {
    display: none;
  }
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 22px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 6px;
}
.cta-banner p {
  color: #dbeaf6;
  margin: 0;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* footer */
footer {
  background: var(--navy-deep);
  color: #c9d8e6;
  padding: 52px 0 26px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .logo-mark {
  color: #7cb8e0;
}
.footer-brand .cn {
  font-size: 18px;
  font-weight: 700;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
}
footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
footer a {
  font-size: 13.5px;
  color: #c9d8e6;
}
footer a:hover {
  color: #fff;
}
.footer-contact li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  align-items: flex-start;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #8fa3b6;
}

/* entrance animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-anim {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.hero-anim.d1 {
  animation-delay: 0.05s;
}
.hero-anim.d2 {
  animation-delay: 0.16s;
}
.hero-anim.d3 {
  animation-delay: 0.27s;
}
.hero-anim.d4 {
  animation-delay: 0.38s;
}
.hero-anim.d5 {
  animation-delay: 0.49s;
}

/* scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
.icon-row [data-reveal]:nth-child(1),
.service-grid [data-reveal]:nth-child(1),
.steps [data-reveal]:nth-child(1),
.review-grid [data-reveal]:nth-child(1) {
  transition-delay: 0ms;
}
.icon-row [data-reveal]:nth-child(2),
.service-grid [data-reveal]:nth-child(2),
.steps [data-reveal]:nth-child(2),
.review-grid [data-reveal]:nth-child(2) {
  transition-delay: 90ms;
}
.icon-row [data-reveal]:nth-child(3),
.service-grid [data-reveal]:nth-child(3),
.steps [data-reveal]:nth-child(3),
.review-grid [data-reveal]:nth-child(3) {
  transition-delay: 180ms;
}
.icon-row [data-reveal]:nth-child(4),
.service-grid [data-reveal]:nth-child(4),
.steps [data-reveal]:nth-child(4),
.review-grid [data-reveal]:nth-child(4) {
  transition-delay: 270ms;
}
.review-grid [data-reveal]:nth-child(5) {
  transition-delay: 360ms;
}
.review-grid [data-reveal]:nth-child(6) {
  transition-delay: 450ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .hero {
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 55%,
        rgba(255, 255, 255, 0.55) 100%
      ),
      url("images/hero/hero-ac-cleaning.webp");
  }
  .hero .wrap > div:first-child {
    max-width: none;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 6px 0;
  }
  nav.main-nav.open {
    display: flex;
  }
  nav.main-nav a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
  }
  nav.main-nav a::after {
    display: none;
  }
  nav.main-nav a.active {
    background: var(--blue-soft);
  }
  .nav-toggle {
    display: block;
  }
  .site-header {
    position: sticky;
  }
  .header-row {
    position: relative;
  }
  .icon-row,
  .service-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-split {
    grid-template-columns: 1fr;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .icon-row,
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .cta-banner .cta-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    align-self: flex-end;
    gap: 10px;
  }
  .cta-banner .cta-actions .btn {
    justify-content: center;
    padding: 12px 8px;
    font-size: 13.5px;
    white-space: normal;
  }
  .about-split .cta-actions {
    flex-direction: column;
  }
  .about-split .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .header-row {
    padding: 10px 12px;
  }
  .hero {
    padding: 40px 0 28px;
  }
  section {
    padding: 44px 0;
  }
}

/* ===== Before & After ===== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.ba-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.ba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.ba-half {
  aspect-ratio: 4/3.4;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.ba-half.before {
  background: linear-gradient(150deg, #e7e2d8, #c7bfae);
}
.ba-half.after {
  background: linear-gradient(150deg, var(--blue-soft-2), #9fc9e6);
}
.ba-half .ba-tag {
  margin: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 58, 94, 0.55);
}
.ba-half.after .ba-tag {
  background: var(--blue);
}
.ba-compare::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}
.ba-body {
  padding: 18px 20px 22px;
}
.ba-body .tag {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.ba-body h3 {
  margin-bottom: 4px;
}
.ba-body p {
  font-size: 13.5px;
  margin: 0;
}

/* ===== Price list ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured::before {
  content: "最多人選擇";
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.price-head .tag {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.price-head h3 {
  margin: 0;
}
.price-tiers {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.price-tiers li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.price-tiers li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.price-tiers .name {
  font-weight: 600;
  color: var(--navy);
}
.price-tiers .amount {
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  font-size: 16px;
}
.price-tiers .amount small {
  font-weight: 600;
  color: var(--grey-light);
  font-size: 12px;
  margin-right: 2px;
}
.price-note {
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--navy);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.price-note svg {
  flex: none;
  color: var(--blue);
  margin-top: 2px;
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-card .circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
}
.contact-card p {
  margin: 0;
  font-size: 14px;
}
.contact-cards {
  display: grid;
  gap: 16px;
}
.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--grey);
}
.hours-list li span:last-child {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 960px) {
  .ba-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Service area map ===== */
.area-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}
.area-map-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
}
.area-map-box svg {
  width: 100%;
  height: auto;
  display: block;
}
.area-map-box svg text {
  font-family: "Noto Sans TC", sans-serif;
}
.area-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--grey);
}
.area-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.area-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}
.area-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .area-split {
    grid-template-columns: 1fr;
  }
}

/* ===== Before & After — vertical rows with drag compare ===== */
.ba-rows {
  display: grid;
  gap: 26px;
}
.ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.ba-row:nth-child(even) .ba-slider {
  order: 2;
}
.ba-row:nth-child(even) .ba-text {
  order: 1;
}
.ba-slider {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 6px 18px rgba(18, 58, 94, 0.12);
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.ba-img.before {
  background: linear-gradient(150deg, #e7e2d8, #c7bfae);
}
.ba-img.after {
  background: linear-gradient(150deg, var(--blue-soft-2), #9fc9e6);
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(18, 58, 94, 0.25);
}
.ba-divider .arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: var(--blue);
  font-weight: 800;
  z-index: 1;
}
.ba-badge {
  position: absolute;
  top: 12px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 58, 94, 0.55);
  pointer-events: none;
  z-index: 2;
}
.ba-badge.before-badge {
  left: 12px;
}
.ba-badge.after-badge {
  right: 12px;
  background: var(--blue);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-text .tag {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.ba-text h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.ba-sub {
  font-size: 13.5px;
  color: var(--grey-light);
  font-weight: 600;
  margin-bottom: 10px;
}
.ba-text p {
  margin: 0;
}

/* ===== Price list — vertical rows ===== */
.price-rows {
  display: grid;
  gap: 22px;
}
.price-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.price-items {
  display: grid;
  gap: 16px;
  margin: 18px 0 20px;
}
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.price-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.price-item-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 4px;
}
.price-item-desc {
  font-size: 13px;
  color: var(--grey);
  margin: 0;
}
.price-item-amount {
  font-weight: 800;
  color: var(--blue);
  font-size: 17px;
  white-space: nowrap;
  flex: none;
}
.price-item-amount small {
  font-weight: 600;
  color: var(--grey-light);
  font-size: 12px;
  margin-right: 2px;
}
.price-row .btn {
  display: flex;
  width: 260px;
  justify-content: center;
  margin: 4px auto 0;
}
.price-card-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--grey);
}
.price-card-note svg {
  flex: none;
  color: var(--blue);
  margin-top: 1px;
}

@media (max-width: 960px) {
  .ba-row {
    grid-template-columns: 1fr;
  }
  .ba-row:nth-child(even) .ba-slider,
  .ba-row:nth-child(even) .ba-text {
    order: initial;
  }
  .price-item {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  .price-item > div:first-child {
    align-self: stretch;
  }
}

/* ===== Section tone system =====
   White section -> tinted card. Tinted section -> white card. */
section.sec-tint {
  background: var(--blue-soft-2);
}
section.sec-plain {
  background: #fff;
}
.rating-banner {
  /* background: #fff; */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sec-plain .icon-card {
  background: var(--white);
}
.sec-plain .service-card,
.sec-plain .step,
.sec-plain .price-row,
.sec-plain .ba-row,
.sec-plain .contact-card {
  background: var(--blue-soft);
  border-color: var(--blue-soft-2);
}
.sec-plain .review-card,
.sec-plain .rating-banner {
  background: var(--blue-soft-2);
  border-color: #c5ddf0;
}
.sec-tint .price-note {
  background: #fff;
}

/* Before & After rows: keep text column centered against the photo's height */
.ba-row {
  align-items: stretch;
}
.ba-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* service list + notices (about) */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.notice-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.notice-card .circle {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notice-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.notice-card p {
  font-size: 13.5px;
  margin: 0;
  color: var(--grey);
}
@media (max-width: 960px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .notice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .svc-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }
}

/* about: framed service icons */
.about-split .tag {
  width: 52px;
  height: 52px;
  border: 2px solid var(--blue);
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.about-title h2 {
  margin: 0;
}
.ba-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ba-title .tag {
  flex: none;
  margin-bottom: 0;
}
.ba-title h3 {
  margin: 0;
}

/* rating: same width as the carousel track (arrows 40px + gap 12px each side) */
.rating-banner {
  margin-inline: 52px;
}
@media (max-width: 640px) {
  .rating-banner {
    margin-inline: 0;
    flex-direction: column;
    justify-content: center;
  }
}

/* image zoom lightbox */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 42, 69, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.zoom-overlay[hidden] {
  display: none;
}
.zoom-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  background: #fff;
  cursor: default;
}
.zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* service quick links (home) */
.svc-strip {
  padding-block: 28px;
}
.svc-link-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.svc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.svc-link:hover {
  transform: translateY(-3px);
}
.svc-link-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.svc-link-text strong {
  font-size: 17px;
  color: var(--navy);
}
.svc-link-text small {
  font-size: 12.5px;
  color: var(--grey);
}
.svc-link-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft-2);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 960px) {
  .svc-link-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .svc-link-row {
    grid-template-columns: 1fr;
  }
}
.svc-link-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-link-text {
  flex: 1;
}

/* case links (home) */
.hero-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}
.hero-actions .btn {
  justify-content: center;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.hero-actions .btn-outline {
  border-color: var(--navy);
}
@media (max-width: 480px) {
  .hero-actions {
    grid-auto-flow: row;
    width: 100%;
  }
}
.review-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* service photo cards (portrait photos) */
.about-photo.about-photo-card {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 280px;
  justify-self: center;
  background-color: #fff;
  border: 2px solid var(--blue);
}

/* badges on the story photo (home) — same look as the hero badges */
.photo-badges {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px 12px;
  padding: 10px 8px;
  background: rgba(233, 244, 251, 0.92);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(18, 58, 94, 0.15);
}
.photo-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.photo-badge .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  box-shadow: 0 4px 10px rgba(18, 58, 94, 0.12);
  flex: none;
}
@media (max-width: 480px) {
  .photo-badges {
    left: 8px;
    right: 8px;
    gap: 4px 6px;
    padding: 8px 4px;
  }
  .photo-badge {
    gap: 4px;
    font-size: 11.5px;
  }
  .photo-badge .dot {
    width: 24px;
    height: 24px;
  }
  .photo-badge .dot svg {
    width: 16px;
    height: 16px;
  }
}

/* photos as <img> inside the about cards */
.about-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.ba-img > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Safari fallback: keep the before/after box tall even where aspect-ratio
   collapses inside a stretched grid item */
.ba-slider {
  width: 100%;
  min-width: 0;
}
.ba-slider::before {
  content: "";
  display: block;
  padding-top: 75%;
}
@media (max-width: 960px) {
  .ba-row {
    align-items: start;
  }
}

/* tip banner: floating card, stays put while scrolling */
.tip-badge {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft-2);
  border-radius: 16px;
  padding: 14px 30px 14px 18px;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 40px);
}
.tip-badge-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-badge svg {
  flex: none;
  color: var(--blue);
}
.tip-badge-close {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--grey);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tip-badge-close:hover {
  color: var(--navy);
}
.tip-badge[hidden] {
  display: none;
}
@media (max-width: 560px) {
  .tip-badge {
    right: 12px;
    bottom: 12px;
    padding: 10px 26px 10px 14px;
    font-size: 12px;
  }
}
