:root {
  --bg: #070b0d;
  --surface: #0e1517;
  --surface-2: #121d20;
  --text: #f3f7f6;
  --muted: #9eb0ad;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #28d49a;
  --accent-dark: #0a8c67;
  --warm: #d6bd84;
  --max: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 0%, rgba(40, 212, 154, 0.1), transparent 28rem),
    var(--bg);
  font-family: Inter, "Phetsarath OT", "Lao Sangam MN", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

.wechat-share-image {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.001;
  pointer-events: none;
}

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

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 13, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 230px;
}

.brand-logo {
  width: auto;
  height: 52px;
  max-width: 290px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.language-switch a {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.language-switch a[aria-current="true"] {
  color: #03120d;
  background: var(--accent);
}

.site-nav a {
  color: #dce6e4;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(40, 212, 154, 0.45);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: white;
  background: transparent;
  border-radius: 50%;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 9, 0.95) 0%, rgba(3, 7, 9, 0.65) 48%, rgba(3, 7, 9, 0.22) 100%),
    linear-gradient(0deg, var(--bg), transparent 35%),
    url("../images/hero/headquarters.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 130px 100px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(43px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 660px;
  color: #cfdbd9;
  font-size: clamp(17px, 2.1vw, 21px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #03120d;
  font-size: 14px;
  font-weight: 750;
}

.button.secondary {
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 21, 23, 0.86);
  backdrop-filter: blur(18px);
}

.stat {
  padding: 25px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding-block: 110px;
}

.section.tight {
  padding-block: 76px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-head h2,
.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 500px;
  margin-bottom: 3px;
  color: var(--muted);
}

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

.split-copy p {
  color: #b8c6c4;
}

.split-copy .lead {
  color: white;
  font-size: 23px;
  line-height: 1.45;
}

.image-frame {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.service-grid,
.province-grid,
.value-grid,
.gallery {
  display: grid;
  gap: 20px;
}

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

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 212, 154, 0.5);
}

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

.services-page .service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.services-page .service-card img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #050708;
}

.services-page .service-card div {
  padding: 24px 26px 26px;
}

.services-page .service-card h3 {
  font-size: 21px;
}

.services-page .service-card p {
  font-size: 14px;
}

.service-card div {
  padding: 20px;
}

.service-card h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.dark-band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(40, 212, 154, 0.08), transparent 50%),
    var(--surface);
}

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.process div {
  min-height: 180px;
  padding: 26px 22px;
  background: var(--surface);
}

.process span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.process h3 {
  margin: 38px 0 6px;
  font-size: 18px;
}

.process p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.province-grid {
  grid-template-columns: repeat(4, 1fr);
}

.province-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(40, 212, 154, 0.1), transparent 60%),
    var(--surface);
}

.province-card:hover {
  border-color: rgba(40, 212, 154, 0.5);
}

.province-card span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.province-card h3 {
  margin: auto 0 8px;
  font-size: 24px;
}

.province-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding-block: 110px 75px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(40, 212, 154, 0.14), transparent 22rem),
    var(--surface);
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.value-grid {
  grid-template-columns: repeat(4, 1fr);
}

.value-card {
  min-height: 180px;
  padding: 24px;
  border-top: 2px solid var(--accent);
  background: var(--surface);
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.value-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.gallery img {
  width: 100%;
  height: clamp(240px, 26vw, 340px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13px;
}

.case-hero {
  padding-bottom: 92px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.province-card-live {
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease;
}

.province-card-live:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 212, 154, 0.55);
}

.province-card-live b {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--accent);
  font-size: 22px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.project-list-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  min-height: 118px;
  padding: 21px 22px;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: background 180ms ease, border-color 180ms ease;
}

.project-list-card:hover {
  border-color: rgba(40, 212, 154, 0.5);
  background: var(--surface-2);
}

.project-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.project-list-card p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.project-list-card h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.4;
}

.project-arrow {
  color: var(--accent);
  font-size: 20px;
}

.project-detail-hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 6vw, 70px);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-facts div {
  padding: 28px 30px;
}

.project-facts div + div {
  border-left: 1px solid var(--line);
}

.project-facts span,
.project-facts strong {
  display: block;
}

.project-facts span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.project-facts strong {
  color: var(--accent);
  font-size: 20px;
}

.project-content {
  padding-top: 36px;
}

.project-gallery img {
  height: clamp(250px, 25vw, 350px);
}

.case-note {
  padding: 28px 30px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(40, 212, 154, 0.06);
}

.case-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.case-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.no-photo {
  min-height: 220px;
  display: grid;
  align-content: center;
}

.project-pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: var(--accent);
  font-size: 14px;
}

.contact-band {
  padding-block: 70px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(40, 212, 154, 0.16), transparent 60%),
    var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
}

.contact-grid h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 48px);
}

.contact-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding-block: 42px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}

.footer-grid h3 {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.copyright {
  margin: 35px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #6f817e;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: none;
    padding: 24px 20px 34px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: #091012;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 8px 0;
    font-size: 17px;
  }

  .language-switch {
    justify-content: center;
    margin-top: 8px;
  }

  .language-switch a {
    padding: 5px 12px;
    font-size: 13px;
  }

  .nav-cta {
    text-align: center;
  }

  .stats,
  .service-grid,
  .province-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .process div {
    min-height: auto;
  }

  .process h3 {
    margin-top: 16px;
  }

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

  .project-list {
    grid-template-columns: 1fr;
  }

  .services-page .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 42px;
    max-width: 215px;
  }

  .hero {
    min-height: 700px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(3, 7, 9, 0.98) 5%, rgba(3, 7, 9, 0.5) 100%),
      url("../images/hero/headquarters.jpg") 58% center / cover no-repeat;
  }

  .hero-content {
    padding-block: 140px 95px;
  }

  h1 {
    font-size: 44px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 22px;
  }

  .stat {
    padding: 18px;
  }

  .stat strong {
    font-size: 22px;
  }

  .section {
    padding-block: 80px;
  }

  .section-head,
  .contact-grid {
    display: block;
  }

  .section-head p {
    margin-top: 16px;
  }

  .service-grid,
  .province-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid .button {
    margin-top: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-pagination {
    flex-direction: column;
  }
}
