:root {
  --text: #1a2e24;
  --text-muted: #3d5348;
  --bg: #fafaf8;
  --accent: #2d5a45;
  --accent-hover: #234a38;
  --border: #e2e8e4;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

html {
  scroll-padding-top: clamp(40px, 6vw, 60px);
}

section[id] {
  scroll-margin-top: clamp(40px, 6vw, 60px);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
}

.site-header nav a:hover {
  color: var(--accent);
}

.btn-phone {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-phone:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.hero {
  padding: 3rem 0 2rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  align-items: stretch;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 90px;
  line-height: 1.05;
  font-weight: 400;
  color: #153529;
}

@media (max-width: 900px) {
  .hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 90px);
  }
}

.hero-copy .tagline {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-photos {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  width: 100%;
  min-height: clamp(260px, 42vw, 520px);
}

.hero-photos img.hero-photo {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 42vw, 520px);
  object-fit: cover;
  border-radius: 10px;
}

/* Centered on the seam between 1fr | 2fr columns so the badge overlaps both photos */
.hero-brand {
  position: absolute;
  left: calc((100% - 1rem) / 3 + 0.5rem);
  top: calc(clamp(-2.75rem, -6.5vw, -1.75rem) + 30px);
  transform: translateX(-50%);
  z-index: 2;
  width: 264px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-photos {
    grid-template-columns: 1fr;
    min-height: 0;
    /* Matches first stacked image height (min + max cap) for seam placement */
    --hero-first-photo-h: min(320px, max(220px, 55vw));
  }

  .hero-photos img.hero-photo {
    min-height: clamp(220px, 55vw, 360px);
  }

  .hero-photos>img.hero-photo:nth-child(2) {
    max-height: 320px;
  }

  /* Horizontally centered; vertically on the row gap so it overlaps both stacked images */
  .hero-brand {
    left: 50%;
    top: calc(var(--hero-first-photo-h) + 0.5rem - 200px);
  }
}

section.block {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

section.block h2 {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.05;
  color: #153529;
}

@media (max-width: 900px) {
  section.block h2 {
    font-size: clamp(1.75rem, 9vw, 60px);
  }
}

section.block .testimonials-intro {
  margin: 0 0 1.1rem;
  max-width: 65ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

section.block .lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

#testimonials .testimonials-carousel {
  position: relative;
  margin-top: 0.25rem;
  padding: 12px 52px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 24px rgba(21, 53, 41, 0.07);
  overflow: hidden;
}

#testimonials .testimonials-carousel__viewport {
  position: relative;
  overflow: hidden;
}

#testimonials .testimonials-carousel__viewport blockquote {
  display: none;
  margin: 0;
}

#testimonials .testimonials-carousel__viewport blockquote.is-active {
  display: block;
}

#testimonials .testimonials-carousel__viewport blockquote p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

.split img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  max-height: 320px;
}

.split h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.05;
}

@media (max-width: 900px) {
  .split h3 {
    font-size: clamp(1.35rem, 7vw, 60px);
  }
}

#services h3,
#services h3 .sub {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

#services h3 {
  margin: 0 0 0.5rem;
}

#services article.split {
  margin-bottom: 0;
}

#services article.split+article.split {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
}

#services ul>li .li-zh {
  display: block;
  margin-top: 0.25em;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95em;
}

.split .sub {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.split ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.split ul ul {
  margin-top: 0.25rem;
  font-size: 0.92rem;
}

/* —— Our Projects: Wix canvas (4768×540), scroll + overlay nav —— */
.projects-strip {
  position: relative;
  border-radius: 14px;
  background: #fff;
  padding: 8px 48px;
  box-shadow: 0 2px 24px rgba(21, 53, 41, 0.07);
  overflow: hidden;
}

.projects-strip__scroll {
  position: relative;
  z-index: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  .projects-strip__scroll {
    scroll-behavior: auto;
  }
}

.projects-strip__canvas {
  position: relative;
  width: 4768px;
  height: 540px;
  margin: 0;
}

/* Coordinates (--gl etc.) are in 4768×540 design space */
.projects-strip__cell {
  position: absolute;
  left: calc(var(--gl) / 4768 * 100%);
  top: calc(var(--gt) / 540 * 100%);
  width: calc(var(--gw) / 4768 * 100%);
  height: calc(var(--gh) / 540 * 100%);
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #dfe8e3;
}

.projects-strip__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projects-strip__nav,
.testimonials-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(21, 53, 41, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(21, 53, 41, 0.12);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.projects-strip__nav:hover:not(:disabled),
.testimonials-carousel__nav:hover {
  background: #fff;
  border-color: rgba(21, 53, 41, 0.22);
}

.projects-strip__nav:focus-visible,
.testimonials-carousel__nav:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.projects-strip__nav:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
}

.projects-strip__nav--prev,
.testimonials-carousel__nav--prev {
  left: 10px;
}

.projects-strip__nav--next,
.testimonials-carousel__nav--next {
  right: 10px;
}

@media (max-width: 520px) {
  .projects-strip {
    padding: 8px 40px;
  }

  #testimonials .testimonials-carousel {
    padding: 12px 44px;
  }

  .projects-strip__nav,
  .testimonials-carousel__nav {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.35rem;
  }

  .projects-strip__nav--prev,
  .testimonials-carousel__nav--prev {
    left: 6px;
  }

  .projects-strip__nav--next,
  .testimonials-carousel__nav--next {
    right: 6px;
  }
}

blockquote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.suppliers-visual {
  max-width: 980px;
  margin: 0 auto;
}

.suppliers-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(21, 53, 41, 0.08);
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: #eef2ef;
  text-align: center;
}

.footer-map {
  position: relative;
  width: 100%;
  margin: 0 0 0.5rem;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: #dfe8e3;
}

.footer-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
}

@media (max-width: 520px) {
  .footer-map {
    max-height: 290px;
    aspect-ratio: 4 / 3;
  }
}

.footer-map-open {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.footer-map-open a {
  color: var(--accent);
}

.site-footer p {
  margin: 0.5rem 0;
}

.site-footer .fine {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  justify-content: center;
}

.site-footer nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}