:root {
  --ink: #15202b;
  --muted: #667085;
  --brand: #d31145;
  --gold: #c9a45c;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --deep: #333d47;
  --line: #e7e9ee;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.72;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-width: 160px;
}

.brand-title {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 12px 14px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  color: var(--brand);
}

.nav .cta {
  margin-left: 6px;
  background: var(--brand);
  color: #fff;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 625px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1d2731;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 28, 36, 0.76), rgba(20, 28, 36, 0.28));
  z-index: 1;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 36px));
  padding: 72px 0;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.18;
  font-weight: 780;
}

.hero p,
.page-hero p {
  margin: 18px auto 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.page-hero {
  min-height: 400px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(28, 37, 48, 0.72), rgba(28, 37, 48, 0.72)),
    url("assets/banner-blog.jpg") center/cover;
}

.banner-about {
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    url("assets/banner-about.jpg") center/cover;
}

.banner-service {
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    url("assets/banner-service.jpg") center/cover;
}

.banner-blog {
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    url("assets/banner-blog.jpg") center/cover;
}

.banner-recruit {
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    url("assets/banner-recruit.jpg") center/cover;
}

.banner-contact {
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    url("assets/banner-contact.png") center/cover;
}

.banner-enquiry {
  background:
    linear-gradient(rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.36)),
    url("assets/banner-enquiry.png") center/cover;
}

.section {
  padding: 74px 0;
}

.section.soft {
  background: var(--soft);
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.22;
}

.lead {
  max-width: 820px;
  margin: 0 auto 34px;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 26px;
}

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

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.06);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  line-height: 1.3;
}

.card p,
.article p,
.copy p,
.job-list li,
.contact-list li {
  color: var(--muted);
}

.location-carousel {
  position: relative;
  overflow: hidden;
  width: 100vw;
  min-height: 460px;
  margin-left: calc(50% - 50vw);
  background: #fff;
}

.location-track {
  position: absolute;
  inset: 0;
}

.location-slide {
  position: absolute;
  top: 42px;
  left: 50%;
  width: min(27vw, 470px);
  min-width: 300px;
  height: 300px;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateX(-50%) scale(0.94);
  transition: opacity 520ms ease, visibility 520ms ease, transform 520ms ease, top 520ms ease, height 520ms ease;
}

.location-slide.prev,
.location-slide.next {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.location-slide.prev {
  transform: translateX(calc(-50% - min(30vw, 560px)));
}

.location-slide.next {
  transform: translateX(calc(-50% + min(30vw, 560px)));
}

.location-slide.active {
  top: 0;
  height: 380px;
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: translateX(-50%);
}

.location-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(20, 28, 36, 0.08), rgba(0, 0, 0, 0.72));
  transition: opacity 360ms ease;
}

.location-slide.active::after {
  opacity: 1;
}

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

.location-caption {
  position: absolute;
  right: 30px;
  bottom: 58px;
  left: 30px;
  z-index: 2;
  opacity: 0;
  color: #fff;
  text-align: center;
  transform: translateY(8px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.location-slide.active .location-caption {
  opacity: 1;
  transform: translateY(0);
}

.location-caption h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
}

.location-caption p {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}

.carousel-control {
  position: absolute;
  top: 195px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(21, 32, 43, 0.72);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.carousel-control:hover {
  color: var(--brand);
}

.carousel-control.prev {
  left: max(28px, calc(50% - min(47vw, 900px)));
}

.carousel-control.next {
  right: max(28px, calc(50% - min(47vw, 900px)));
}

.carousel-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e1e3e6;
  cursor: pointer;
}

.carousel-dots button.active {
  background: #4b5563;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.portrait {
  border-radius: 4px;
  box-shadow: 0 20px 44px rgba(16, 24, 40, 0.12);
}

.copy h2 {
  margin: 0 0 12px;
  font-size: 34px;
}

.copy p {
  margin: 0 0 16px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:nth-child(even) img {
  order: 2;
}

.service-row img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 4px;
}

.eyebrow {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.article + .article {
  margin-top: 22px;
}

.article img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.article h2 {
  margin: 4px 0 8px;
  font-size: 23px;
  line-height: 1.35;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.read-more {
  color: var(--brand);
  font-weight: 750;
}

.article-detail {
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
}

.article-detail .article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
}

.article-detail h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.2;
}

.article-detail .summary {
  margin: 18px 0 28px;
  padding-left: 18px;
  border-left: 4px solid var(--brand);
  color: var(--muted);
  font-size: 19px;
}

.article-content {
  font-size: 18px;
}

.article-content p {
  margin: 0 0 18px;
  color: #344054;
}

.article-back {
  display: inline-flex;
  margin-top: 22px;
  color: var(--brand);
  font-weight: 800;
}

.comment-box {
  margin-top: 46px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.comment-box h2 {
  margin: 0 0 26px;
  font-size: 30px;
}

.comment-form {
  display: grid;
  gap: 24px;
}

.comment-form label {
  display: block;
  margin-bottom: 7px;
  color: #111827;
  font-size: 22px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid #d6d9df;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

.comment-form textarea {
  min-height: 240px;
  resize: vertical;
}

.comment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #344054;
  font-size: 20px;
}

.remember-row input {
  width: 26px;
  height: 26px;
}

.captcha-box {
  width: min(434px, 100%);
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #d8dbe1;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.captcha-check {
  width: 42px;
  height: 42px;
  border: 3px solid #69707a;
  background: #fff;
}

.captcha-title {
  flex: 1;
  color: #111827;
  font-size: 20px;
}

.captcha-mark {
  color: #6b7280;
  text-align: center;
  font-size: 12px;
}

.captcha-mark strong {
  display: block;
  color: #5b7ee5;
  font-size: 36px;
  line-height: 1;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
}

.comment-submit {
  min-height: 72px;
  padding: 0 34px;
  border: 0;
  background: #087f99;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.article-tail {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
}

.share-button {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.share-button img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-tags {
  margin: 0 0 50px;
  color: #2f3742;
  font-weight: 750;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 0 0 48px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-nav a {
  display: grid;
  gap: 10px;
}

.post-nav .next {
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.post-nav-label {
  color: #007a99;
  font-size: 22px;
}

.post-nav-title {
  color: #007a99;
  font-size: 24px;
  line-height: 1.36;
}

.related-heading {
  margin: 0 0 26px;
  font-size: 25px;
}

.related-heading::before {
  content: "›";
  margin-right: 10px;
  color: #007a99;
  font-size: 34px;
  vertical-align: -2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

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

.related-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: #fff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.job-list {
  margin: 14px 0 30px;
  padding-left: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 34px;
  align-items: start;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.map-box {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
    repeating-linear-gradient(45deg, #e9edf2 0 8px, #f7f8fa 8px 16px);
  text-align: center;
}

.form {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 3px;
  font: inherit;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  padding: 34px 0;
  background: var(--deep);
  color: #f1f1f1;
}

.footer-wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: center;
}

.footer-logo {
  max-width: 190px;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .nav-wrap,
  .footer-wrap,
  .split,
  .service-row,
  .blog-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    display: grid;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(even) img {
    order: 0;
  }

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

  .article img {
    width: 100%;
    height: 220px;
  }

  .hero {
    min-height: 400px;
  }

  .page-hero {
    min-height: 300px;
  }

  .post-nav,
  .related-grid,
  .comment-grid {
    grid-template-columns: 1fr;
  }

  .post-nav .next {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
    text-align: left;
  }

  .location-carousel {
    min-height: 330px;
  }

  .location-slide {
    top: 32px;
    width: 74vw;
    min-width: 0;
    height: 200px;
  }

  .location-slide.prev {
    transform: translateX(calc(-50% - 78vw));
  }

  .location-slide.next {
    transform: translateX(calc(-50% + 78vw));
  }

  .location-slide.active {
    height: 260px;
  }

  .location-caption {
    right: 18px;
    bottom: 44px;
    left: 18px;
  }

  .location-caption h3 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .location-caption p {
    font-size: 30px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 28px;
    top: 145px;
  }

  .carousel-control.prev {
    left: 8px;
  }

  .carousel-control.next {
    right: 8px;
  }

  .carousel-dots {
    bottom: 20px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }

  .nav a {
    padding: 8px 10px;
  }

  .hero {
    min-height: 220px;
  }

  .page-hero {
    min-height: 200px;
  }
}
