body { margin: 0; }
#tp-corp {
  --tp-max: 1200px;
  --tp-gutter: clamp(20px, 4vw, 40px);
  --tp-ink: #151619;
  --tp-ink-2: #3d434b;
  --tp-muted: #6b7280;
  --tp-line: #e1e5ea;
  --tp-surface: #f6f7f9;
  --tp-dark: #151619;
  --tp-accent: #24569b;
  --tp-accent-soft: #e6eff9;
  color: var(--tp-ink);
  font: 400 16px/1.6 "Noto Sans", "Noto Sans Thai", Arial, sans-serif;
}
html[lang="th-TH"] #tp-corp {
  font-family: "Noto Sans Thai", "Noto Sans", Tahoma, sans-serif;
  line-height: 1.75;
}
#tp-corp *, #tp-corp *::before, #tp-corp *::after { box-sizing: border-box; }
.tp-container {
  width: 100%;
  max-width: var(--tp-max);
  margin-inline: auto;
  padding-inline: var(--tp-gutter);
}
#tp-corp :is(h1, h2, h3) { margin: 0 0 16px; line-height: 1.15; font-weight: 600; }
#tp-corp h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.02em; }
#tp-corp h2 { font-size: clamp(26px, 3vw, 32px); }
#tp-corp h3 { font-size: clamp(18px, 2vw, 20px); margin-bottom: 8px; }
html[lang="th-TH"] #tp-corp :is(h1, h2, h3) { line-height: 1.3; letter-spacing: 0; }
#tp-corp p { margin: 0 0 16px; color: var(--tp-ink-2); }
#tp-corp p:last-child { margin-bottom: 0; }
#tp-corp a { color: var(--tp-accent); text-decoration: none; }
#tp-corp a:hover { text-decoration: underline; }
#tp-corp :is(a, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
#tp-corp .tp-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--tp-accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
#tp-corp .tp-btn:hover { box-shadow: inset 0 0 0 2px var(--tp-muted); }

.tp-header { border-bottom: 1px solid var(--tp-line); }
.tp-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
#tp-corp .tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-end: auto;
  color: var(--tp-ink);
  font-size: 20px;
  letter-spacing: -.02em;
  text-decoration: none;
}
.tp-brand svg { flex: none; }
.tp-primary { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.tp-primary [aria-current="page"], .tp-language strong { font-weight: 600; }
.tp-language { display: flex; gap: 6px; align-items: center; white-space: nowrap; font-size: 14px; }
.tp-mobile { display: none; }
.tp-mobile summary {
  cursor: pointer;
  padding-block: 12px;
  font-size: 14px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.tp-hero, .tp-footer { background: var(--tp-dark); color: white; }
.tp-hero { padding-block: 72px; border-bottom: 4px solid var(--tp-accent); }
#tp-corp .tp-kicker {
  margin-bottom: 8px;
  color: #aab3bd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[lang="th-TH"] #tp-corp .tp-kicker { letter-spacing: 0; text-transform: none; }
#tp-corp .tp-lead {
  max-width: 60ch;
  margin-bottom: 24px;
  color: #d3d8df;
  font-size: 18px;
  line-height: 1.5;
}
.tp-hero h1 { max-width: 28ch; }
html[lang="th-TH"] .tp-hero h1 { max-width: 21em; }
.tp-section, .tp-footer { padding-block: 64px; }
.tp-surface { background: var(--tp-surface); }
.tp-service-article { max-width: 72ch; }
.tp-service-article h2:not(:first-child) { margin-top: 32px; }
.tp-service-story {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.tp-service-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
@media (max-width: 699px) {
  .tp-service-story { grid-template-columns: minmax(0, 1fr); }
  .tp-service-image { max-width: 320px; }
}
.tp-about-grid, .tp-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tp-about-grid ol { margin: 0; padding-inline-start: 24px; }
.tp-about-grid li + li { margin-top: 8px; }
.tp-cards { display: grid; gap: 16px; }
.tp-cards-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-cards-enquiry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 24px;
  background: white;
  border: 1px solid var(--tp-line);
  border-radius: 8px;
}
.tp-service-tile:hover, .tp-service-tile:focus-within {
  border-color: var(--tp-accent);
  transform: translateY(-2px);
}
.tp-service-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tp-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  background: var(--tp-accent-soft);
  color: var(--tp-accent);
}
.tp-card-more { margin-top: auto; color: var(--tp-accent); font-size: 14px; font-weight: 600; }
.tp-enquiry { padding-block: 48px; border-top: 1px solid var(--tp-line); }
.tp-enquiry-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tp-enquiry-inner .tp-btn { flex-shrink: 0; }
#tp-corp .tp-article-source { margin-top: 32px; font-size: 14px; }
.tp-footer { padding-bottom: 24px; font-size: 15px; }
.tp-footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.tp-footer-brand { display: block; margin-bottom: 8px; font-size: 20px; font-weight: 600; }
#tp-corp .tp-footer h2 { font-size: 18px; margin-bottom: 8px; }
#tp-corp .tp-footer :is(p, address) { color: #d3d8df; }
.tp-footer address { font-style: normal; margin-bottom: 16px; }
#tp-corp .tp-footer a:not(.tp-btn) { color: white; }
.tp-footer-grid nav { display: grid; gap: 8px; }
.tp-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--tp-muted);
  font-size: 14px;
}

@media (max-width: 999px) {
  .tp-header-inner > .tp-primary { display: none; }
  .tp-mobile { display: block; }
  .tp-mobile .tp-primary {
    position: absolute;
    z-index: 1;
    inset-inline: 0;
    top: 64px;
    display: grid;
    justify-items: start;
    gap: 4px;
    padding: 12px var(--tp-gutter) 20px;
    border-bottom: 1px solid var(--tp-line);
    background: white;
    box-shadow: 0 8px 16px #15161920;
  }
  .tp-mobile .tp-primary a:not(.tp-btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
  }
  .tp-cards-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .tp-header-inner { gap: 12px; }
  .tp-header-inner .tp-brand { gap: 4px; }
  .tp-hero, .tp-section, .tp-enquiry, .tp-footer { padding-block: 40px; }
  #tp-corp .tp-lead { font-size: 17px; }
  html[lang="th-TH"] #tp-corp :is(h1, h2) { text-wrap: balance; }
  .tp-cards-home, .tp-cards-enquiry, .tp-about-grid, .tp-footer-grid { grid-template-columns: 1fr; }
  .tp-enquiry-inner { align-items: flex-start; flex-direction: column; }
}
