:root {
  --navy: #163756;
  --navy-deep: #0e2942;
  --cyan: #2aaee6;
  --cyan-light: #e9f7fd;
  --text: #15293b;
  --muted: #617381;
  --surface: #ffffff;
  --background: #f4f7f9;
  --border: #dbe4e9;
  --placeholder: #e8eef1;
  --wrap: 1160px;
  --shadow: 0 18px 50px rgba(22, 55, 86, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Noto Sans Thai", "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(22, 55, 86, 0.1);
  background: rgba(255, 255, 255, 0.96);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-image { width: auto; height: 52px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a {
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--cyan); }
.language-switcher {
  display: flex;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.language-switcher button {
  min-width: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 10px;
}
.language-switcher button.active { background: var(--navy); color: #fff; }

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(14, 41, 66, 0.9), rgba(22, 55, 86, 0.64));
  content: "";
}
.hero-content { position: relative; z-index: 1; padding-block: 100px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 860px;
  margin: 0 auto 20px;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.lede { max-width: 620px; margin: 0 auto 34px; color: #dce8ef; font-size: 1.14rem; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-weight: 800;
  padding: 12px 28px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover, .button:focus-visible { background: #67caf2; transform: translateY(-2px); }

.section { padding: 104px 0; }
.section-alt { background: var(--background); }
.section-heading { margin-bottom: 38px; }
.section-heading h2, .contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.about-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 64px; }
.about-photos { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; }
.about-photos .content-image { width: 100%; height: 320px; }
.about-photos .content-image-large { height: 450px; }
.about-copy {
  border-left: 4px solid var(--cyan);
  color: var(--muted);
  font-size: 1.1rem;
  padding: 14px 0 14px 28px;
}
.about-copy p { margin: 0; }

.content-image, .card-image, .gallery-grid img {
  display: block;
  border-radius: 16px;
  object-fit: cover;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card-image { width: 100%; height: 245px; border-radius: 0; }
.card-body { padding: 28px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; }
.gallery-grid img:nth-child(2),
.gallery-grid img:nth-child(6) { grid-row: span 2; aspect-ratio: auto; }

.contact-section { padding: 92px 0; background: var(--navy); color: #fff; }
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 72px; }
.eyebrow-light { color: var(--cyan); }
.contact-section h2 { color: #fff; }
.contact-intro { color: #c7d7e3; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social-links a:hover, .social-links a:focus-visible { border-color: var(--cyan); background: var(--cyan); color: var(--navy-deep); transform: translateY(-2px); }
.social-links svg { width: 21px; height: 21px; fill: currentColor; }
.social-links .social-pending { cursor: not-allowed; opacity: 0.45; }
.contact-details { display: grid; gap: 12px; font-style: normal; }
.contact-details > a, .contact-details > .contact-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 0;
  text-decoration: none;
}
.contact-details span { color: #9eb5c5; font-size: 0.9rem; }
.contact-details strong { overflow-wrap: anywhere; font-weight: 650; }
.contact-details a:hover strong { color: var(--cyan); }
.address-content { display: grid; gap: 8px; }
.address-content small { color: #9eb5c5; font-size: 0.8rem; }
.address-content .map-link {
  width: fit-content;
  color: var(--cyan);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  text-underline-offset: 3px;
}
.address-content .map-link:hover, .address-content .map-link:focus-visible { color: #67caf2; }

.site-footer { background: var(--navy-deep); color: #9eb5c5; font-size: 0.85rem; padding: 26px 0; text-align: center; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px 20px; padding-block: 12px; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .language-switcher { margin-left: auto; }
  .hero { min-height: 570px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .cards { gap: 16px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  html { scroll-padding-top: 130px; }
  .header-inner { min-height: 68px; }
  .logo-image { height: 46px; }
  .main-nav { gap: 0; justify-content: space-between; overflow-x: auto; }
  .main-nav a { padding: 5px 8px; font-size: 0.8rem; white-space: nowrap; }
  .language-switcher button { min-width: 37px; padding-inline: 8px; }
  .hero { min-height: 500px; }
  .hero-content { padding-block: 74px; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 3.7rem); }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 28px; }
  .about-photos { grid-template-columns: 1fr 1fr; }
  .about-photos .content-image, .about-photos .content-image-large { height: 230px; }
  .about-copy { padding-left: 20px; }
  .cards { grid-template-columns: 1fr; }
  .card-image { height: 210px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(6) { grid-row: auto; aspect-ratio: 4 / 3; }
  .contact-section { padding: 70px 0; }
  .contact-details > a, .contact-details > .contact-row { grid-template-columns: 78px 1fr; gap: 12px; }
}

@media (max-width: 390px) {
  .logo > span:last-child { display: none; }
  .about-photos { grid-template-columns: 1fr; }
  .about-photos .content-image, .about-photos .content-image-large { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
