:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #e9eef1;
  --ink: #1f2933;
  --muted: #5f6c76;
  --line: #d9e1e6;
  --accent: #e2a72e;
  --accent-strong: #b77511;
  --steel: #2f4858;
  --deep: #111820;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(17, 24, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 10px 32px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand img {
  width: 150px;
  height: auto;
}

.brand span {
  max-width: 270px;
  line-height: 1.25;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.primary-nav a,
.gallery-toolbar button,
.language-switch button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.gallery-toolbar button:hover,
.gallery-toolbar button:focus-visible,
.language-switch button:hover,
.language-switch button:focus-visible {
  border-color: var(--line);
  background: var(--surface-2);
  outline: none;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.language-switch button {
  min-width: 44px;
  padding: 0 8px;
  font-weight: 700;
}

.language-switch button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section {
  scroll-margin-top: 90px;
  padding: 88px 0;
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-muted {
  background: var(--surface-2);
}

.section-dark {
  background: var(--deep);
  color: #edf2f5;
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--deep);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 32, 0.92), rgba(17, 24, 32, 0.46)),
    linear-gradient(0deg, rgba(17, 24, 32, 0.72), transparent 45%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 660px;
  margin: 20px 0 0;
  color: #dce4e8;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #15120a;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f0bd52;
  outline: none;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.stats-strip div {
  min-height: 116px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong {
  display: block;
  color: var(--steel);
  font-size: 2rem;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-rows: 180px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 24, 32, 0.08);
}

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

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

.service-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.split p:not(.eyebrow) {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent-strong);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.process-panel {
  padding: 26px;
  border: 1px solid #cfd9df;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.type-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.type-item {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.type-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.type-item strong {
  color: var(--steel);
}

.type-item span {
  color: var(--muted);
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.gallery-toolbar button {
  padding: 0 14px;
  background: var(--surface);
  font-weight: 800;
}

.gallery-toolbar button.is-active {
  border-color: var(--steel);
  background: var(--steel);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #000000;
  cursor: zoom-in;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 12px;
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.contact-list div {
  display: grid;
  gap: 4px;
}

.contact-list dt {
  color: var(--accent);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  color: #dce4e8;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.map-image {
  width: min(100%, 520px);
  max-height: 320px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.contact-form input {
  min-height: 46px;
  padding: 0 12px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  padding: 12px;
}

.form-note {
  margin: 0;
  color: #b8c6cf;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: #0c1117;
  color: #c7d2da;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lightbox {
  width: min(960px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #111820;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #000000;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .brand span {
    display: none;
  }

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

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

  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 10px 16px;
  }

  .brand img {
    width: 132px;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .language-switch {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    padding: 14px 16px 22px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 24px 40px rgba(17, 24, 32, 0.18);
  }

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

  .primary-nav a {
    min-height: 48px;
    justify-content: center;
  }

  .section {
    padding: 64px 0;
  }

  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 600px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(17, 24, 32, 0.92), rgba(17, 24, 32, 0.7)),
      linear-gradient(0deg, rgba(17, 24, 32, 0.78), transparent 45%);
  }

  .hero-inner {
    padding-bottom: 54px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stats-strip,
  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-strip div:last-child {
    border-bottom: 0;
  }

  .process-panel,
  .contact-form {
    padding: 20px;
  }

  .site-footer {
    padding: 24px 16px;
  }
}
