:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #6d6258;
  --paper: #fffdf8;
  --warm: #f5efe5;
  --line: #ded3c4;
  --taupe: #b8b090;
  --tan: #b47a45;
  --umber: #3a2418;
  --copper: #b87333;
  --blue: #1e88e5;
  --red: #e53935;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans Thai", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: min(210px, 42vw);
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.lang-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

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

main {
  overflow: hidden;
}

.hero {
  display: grid;
  align-items: end;
  min-height: 54vh;
  padding: clamp(80px, 14vw, 150px) clamp(22px, 7vw, 92px) clamp(42px, 8vw, 80px);
  background:
    linear-gradient(115deg, rgba(58, 36, 24, 0.92), rgba(58, 36, 24, 0.64)),
    radial-gradient(circle at 88% 20%, rgba(198, 161, 91, 0.32), transparent 30%),
    linear-gradient(135deg, #3a2418, #8d5a34 54%, #f5efe5);
  color: #ffffff;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d8bd82;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", "Noto Serif Thai", serif;
  font-size: clamp(2.25rem, 6vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", "Noto Serif Thai", serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.lang-panel {
  display: none;
}

.lang-panel.is-active {
  display: block;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-card {
  min-height: 430px;
  padding: clamp(28px, 5vw, 64px);
  background: #ffffff;
}

.brand-card.premium {
  background: linear-gradient(180deg, #ffffff, #fbf7ef);
}

.brand-card.value {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  width: min(260px, 72%);
  min-height: 96px;
  margin-bottom: 24px;
}

.brand-logo-wrap img {
  max-width: 100%;
  max-height: 116px;
  object-fit: contain;
}

.brand-logo-wrap.bbf {
  width: 150px;
  min-height: 130px;
}

.brand-card p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.02rem;
}

.keyword-line {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--umber);
  font-size: 0.94rem;
}

.links-section,
.contact-section {
  padding: clamp(42px, 7vw, 84px) clamp(22px, 7vw, 92px);
}

.links-section.muted {
  background: var(--warm);
}

.section-heading {
  margin-bottom: 24px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card::after {
  content: "↗";
  margin-left: auto;
  color: var(--copper);
  font-size: 1.1rem;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--tan);
  background: #fffaf1;
}

.value-link::after {
  color: var(--blue);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  background: var(--umber);
  color: #ffffff;
}

.contact-section p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.8);
}

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

.contact-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: #d8bd82;
  background: rgba(255, 255, 255, 0.12);
}

footer {
  padding: 22px clamp(22px, 7vw, 92px);
  background: #201814;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .language-switcher {
    width: 100%;
  }

  .lang-button {
    flex: 1;
  }

  .hero {
    min-height: 58vh;
  }

  .brand-grid,
  .link-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: auto;
  }

  .contact-section {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .link-card,
  .contact-list a {
    min-height: 64px;
    padding: 14px 15px;
  }

  .brand-logo-wrap {
    width: 82%;
  }
}
