/* 快快救 SOS Rescue — light theme */
:root {
  --bg: #ffffff;
  --bg-elevated: #f7f7f7;
  --bg-card: #ffffff;
  --bg-soft: #f3f4f6;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --red: #de2929;
  --red-dark: #b91c1c;
  --yellow: #f5c518;
  --yellow-ink: #b45309;
  --wa: #25d366;
  --wa-dark: #1da851;
  --border: rgba(0, 0, 0, 0.08);
  --header-h: 68px;
  --sticky-h: 64px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: var(--sticky-h);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), filter 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
  min-width: min(100%, 280px);
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: var(--red-dark);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
}

.btn--wa:hover {
  background: var(--wa-dark);
}

.btn--header {
  background: var(--red);
  color: #fff;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.site-header__inner {
  width: min(1200px, calc(100% - 24px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, var(--red), #7f1111);
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.25);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.brand__text small {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
}

.site-nav a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:not(.btn):hover {
  color: var(--red);
}

.site-nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  color: #fff;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  max-width: 16ch;
  color: #fff;
}

.hero__title-accent {
  color: var(--yellow);
}

.hero__sub {
  margin: 1rem 0 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 32ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Features */
.features {
  background: var(--bg);
  padding: 1.5rem 0 2.5rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.feature-card:hover {
  border-color: rgba(222, 41, 41, 0.35);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  color: var(--red);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* About */
.about {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--red);
}

.about__copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about__copy .btn {
  margin-top: 0.5rem;
}

.about__media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.about__media:hover img {
  transform: scale(1.04);
}

/* Section heads */
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head__label {
  margin: 0 0 0.4rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
}

.section-head p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--text-muted);
}

.section-head--light h2 {
  color: var(--text);
}

/* Services — carherohk 6-card style */
.services {
  padding: 3rem 0 2.5rem;
  background: #fff;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.service-card h3 {
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: var(--red);
  color: var(--yellow);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  padding: 0.95rem 1rem 1.15rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  background: #fff;
}

/* Yellow booking strip */
.booking-strip {
  background: var(--yellow);
}

.booking-strip a {
  display: block;
  text-align: center;
  padding: 1.15rem 1rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 900;
  color: #111;
  letter-spacing: 0.04em;
  transition: filter 0.2s;
}

.booking-strip a:hover {
  filter: brightness(1.05);
}

/* Brands */
.brands {
  padding: 2.5rem 0 3rem;
  background: #fff;
  text-align: center;
}

.brands__tagline {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 900;
}

.brands__sub {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.brands__logos {
  display: block;
  width: min(720px, 100%);
  margin: 0 auto;
  height: auto;
  border-radius: 4px;
}

/* Stats */
.stats {
  padding: 2.5rem 0;
  background: var(--bg-soft);
  border-block: 1px solid rgba(222, 41, 41, 0.15);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  padding: 2.75rem 0;
  background: #fff7e6;
  border-block: 1px solid rgba(245, 197, 24, 0.35);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 900;
  color: var(--text);
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

/* Gallery */
.gallery {
  padding: 4rem 0 3rem;
  background: var(--bg-soft);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.gallery__item {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), outline 0.2s;
}

.gallery__item:hover,
.gallery__item:focus-visible {
  transform: scale(1.02);
  outline: 2px solid var(--red);
  outline-offset: 2px;
  z-index: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__cta {
  text-align: center;
  margin-top: 1.75rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(960px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

/* FAQ */
.faq {
  padding: 4rem 0;
  background: #fff;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
}

.faq__item a {
  color: var(--wa-dark);
  font-weight: 700;
}

.faq__cta {
  text-align: center;
  margin-top: 2rem;
}

/* Final CTA */
.final-cta {
  padding: 4rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(222, 41, 41, 0.08), transparent 60%),
    var(--bg-soft);
}

.final-cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
}

.final-cta p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* Footer */
.site-footer {
  background: #fafafa;
  border-top: 1px solid var(--border);
  padding: 3rem 0 calc(1.5rem + var(--sticky-h));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.site-footer__brand {
  color: var(--red);
  font-weight: 800;
  margin: 0;
}

.site-footer h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-footer p,
.site-footer a {
  margin: 0 0 0.35rem;
  display: block;
  font-size: 0.92rem;
  color: #333;
}

.site-footer a:hover {
  color: var(--wa-dark);
}

.site-footer__copy {
  text-align: center;
  margin: 2rem 0 0;
  color: #888;
  font-size: 0.8rem;
}

/* Sticky bottom bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--sticky-h);
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.sticky-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #111;
}

.sticky-bar a:first-child {
  border-right: 1px solid #e5e5e5;
}

.sticky-bar svg {
  width: 22px;
  height: 22px;
  color: var(--wa);
}

.sticky-bar a:hover {
  background: #f5f5f5;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.popup[hidden] {
  display: none;
}

.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  animation: fadeIn 0.3s ease;
}

.popup__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(88vh, 860px);
  animation: popIn 0.35s var(--ease);
}

.popup__card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  line-height: 0;
}

.popup__img-link {
  display: block;
}

.popup__card img {
  width: 100%;
  height: auto;
  max-height: min(82vh, 800px);
  object-fit: contain;
  background: #fff;
}

/* Overlay on the dashed box area of popup102.png */
.popup__phone {
  position: absolute;
  left: 5.5%;
  top: 25.2%;
  width: 58%;
  height: 5.6%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4em;
  border-radius: 0.55em;
  background: #ffc107;
  border: 2px dashed #c62828;
  color: #111;
  font-weight: 900;
  font-size: clamp(0.62rem, 3.1vw, 0.95rem);
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: filter 0.2s, transform 0.2s var(--ease);
  z-index: 2;
}

.popup__phone:hover {
  filter: brightness(1.06);
  transform: scale(1.02);
}

.popup__close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.popup__close:hover {
  background: var(--red-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.popup-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 960px) {
  .features__grid,
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--text);
  }

  .site-nav .btn--header {
    margin-top: 1rem;
    width: 100%;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .btn--lg {
    min-width: 0;
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-band__inner .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .features__grid,
  .stats__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

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

  .popup__panel {
    width: min(360px, calc(100% - 8px));
  }

  .popup__phone {
    font-size: clamp(0.55rem, 2.8vw, 0.78rem);
    white-space: normal;
    line-height: 1.2;
  }

  .popup__close {
    top: 6px;
    right: 6px;
  }
}

@media (min-width: 900px) {
  .sticky-bar {
    /* Keep sticky on desktop too for conversion, slightly narrower feel via full width still OK */
  }
}

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

  .hero__media img,
  .feature-card,
  .service-card,
  .about__media img,
  .popup__panel,
  .popup__backdrop {
    animation: none !important;
    transition: none !important;
  }
}
