:root {
  --navy: #172243;
  --navy-2: #0f1833;
  --ink: #161922;
  --muted: #6c7280;
  --line: #e5e0d6;
  --paper: #fbfaf7;
  --white: #ffffff;
  --gold: #c6a15b;
  --gold-dark: #9a773a;
  --shadow: 0 28px 80px rgba(13, 20, 41, 0.16);
  --radius: 8px;
  --sans: "Noto Sans Thai", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.7;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: rgba(23, 34, 67, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.82;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch,
.header-cta,
.button {
  border: 0;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch {
  color: var(--white);
  background: transparent;
  padding: 10px 8px;
}

.header-cta {
  padding: 11px 18px;
  color: var(--navy);
  background: var(--white);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.76fr);
  gap: clamp(42px, 7vw, 118px);
  min-height: 100vh;
  padding: 150px clamp(24px, 5vw, 86px) 88px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 24, 51, 0.98) 0%, rgba(23, 34, 67, 0.94) 44%, rgba(23, 34, 67, 0.7) 100%),
    var(--navy);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  align-self: center;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(4rem, 7.4vw, 6.8rem);
}

.hero-lede {
  margin: 20px 0 0;
  color: #f2d89d;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  font-weight: 600;
}

.hero-body {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.button-form {
  color: var(--navy);
  background: var(--gold);
}

.button-primary:hover,
.button-form:hover {
  background: #d5b36b;
}

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

.hero-visual {
  position: absolute;
  z-index: 1;
  inset: 78px 0 0 auto;
  width: min(54vw, 920px);
  height: calc(100% - 78px);
  opacity: 0.72;
  border: 0;
  mask-image: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(198, 161, 91, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9d3c8;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: 500 0.95rem var(--sans);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.16);
}

.contact-form label + label,
.contact-form .form-row + label {
  margin-top: 16px;
}

.button-form {
  width: 100%;
  margin-top: 18px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section {
  padding: clamp(78px, 9vw, 130px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
}

.section-heading p {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(2.15rem, 4.2vw, 4.4rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 7vw, 92px);
  margin-top: 42px;
}

.about-grid > p {
  margin: 0;
  max-width: 860px;
  color: #343946;
  font-size: clamp(1.03rem, 1.55vw, 1.22rem);
}

.principles {
  display: grid;
  gap: 14px;
}

.principles span {
  padding: 18px 20px;
  color: var(--navy);
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(23, 34, 67, 0.07);
  font-weight: 800;
}

.services-section {
  background: var(--white);
}

.services-heading {
  display: block;
  max-width: 760px;
}

.services-heading > p:first-child {
  grid-column: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 54px);
  margin-top: 54px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: none;
}

.service-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.service-top {
  display: contents;
}

.service-number {
  display: none;
}

.service-icon {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  color: var(--navy);
  opacity: 0.78;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.18rem, 1.8vw, 1.48rem);
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-intro {
  max-width: 700px;
  margin: 0;
  padding-top: 24px;
  color: var(--navy);
  font-size: clamp(1.08rem, 1.35vw, 1.24rem);
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
}

.contact-form .button-primary {
  margin-top: 22px;
}

.articles-section {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.article-list-grid {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
  gap: 22px;
  margin-top: 42px;
}

.real-article-card {
  display: grid;
  overflow: hidden;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(23, 34, 67, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.real-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 161, 91, 0.5);
  box-shadow: 0 24px 58px rgba(23, 34, 67, 0.12);
}

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

.real-article-card > div {
  padding: 24px;
}

.real-article-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.32;
}

.real-article-card p:not(.article-date) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.real-article-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--gold-dark);
  font-weight: 800;
}

.article-page {
  background: var(--paper);
  padding-top: 78px;
}

.article-hero {
  padding: clamp(82px, 10vw, 130px) clamp(20px, 5vw, 72px) clamp(42px, 6vw, 72px);
  color: var(--white);
  background: var(--navy);
}

.article-hero h1 {
  max-width: 980px;
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
}

.article-hero > p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.back-link {
  color: var(--gold);
  font-weight: 800;
}

.article-detail {
  padding: clamp(58px, 7vw, 92px) clamp(20px, 5vw, 72px);
  margin-top: 0;
}

.article-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 68px);
  margin-top: 42px;
  align-items: start;
}

.article-media {
  position: sticky;
  top: 100px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(23, 34, 67, 0.08);
}

.article-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-content {
  max-width: 860px;
  color: #394050;
}

.article-content h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.12;
}

.article-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
}

.article-content p + p,
.article-content .article-body-grid + p {
  margin-top: 18px;
}

.article-body-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0;
}

.article-body-grid section {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-body-grid h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.45;
}

.article-body-grid h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.45;
}

.article-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.article-template-card {
  display: grid;
  min-height: 420px;
  grid-template-rows: 180px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(23, 34, 67, 0.06);
}

.article-template-card > div:last-child {
  padding: 24px;
}

.article-image-placeholder {
  position: relative;
  background:
    linear-gradient(135deg, rgba(23, 34, 67, 0.08), rgba(198, 161, 91, 0.14)),
    #f3f0ea;
}

.article-image-placeholder::before,
.article-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(23, 34, 67, 0.16);
}

.article-image-placeholder::after {
  inset: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: rgba(198, 161, 91, 0.58);
}

.article-date {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.article-template-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.35;
}

.article-template-card p:not(.article-date) {
  margin: 0;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 84px);
  color: var(--white);
  background: var(--navy);
}

.contact-section .section-heading p,
.contact-section .section-heading h2 {
  color: var(--white);
}

.contact-section .section-heading p {
  color: var(--gold);
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 44px 0 0;
}

dt {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  align-self: start;
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy-2);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

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

  .menu-toggle {
    justify-self: end;
    display: grid;
    gap: 6px;
    width: 42px;
    height: 42px;
    place-content: center;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .site-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 18px;
  }

  .site-header.is-open .site-nav {
    flex-direction: column;
    gap: 10px;
  }

  .hero,
  .contact-section,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    position: absolute;
    inset: 70px 0 0 0;
    width: 100%;
    min-height: 100%;
    opacity: 0.32;
    border-left: 0;
    mask-image: none;
  }

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

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

  .article-media {
    position: static;
  }

  .services-heading {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .services-intro {
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 70px;
    padding: 12px 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 116px 18px 70px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .services-grid,
  .article-template-grid,
  .article-body-grid,
  .form-row,
  dl {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .section {
    padding: 70px 18px;
  }
}
