@font-face {
  font-family: "Noto Sans Thai";
  src: url('/assets/fonts/NotoSansThai-Thai.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: Sriracha;
  src: url('/assets/fonts/Sriracha-Thai.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

.site-design {
  --body: Gotham, "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --forest: #365b47;
  --forest-dark: #17382e;
  --forest-active: #496c56;
  --paper: #fff9ed;
  --ink: #234237;
  --header-height: 84px;
  background: var(--paper);
  color: var(--ink);
}

html[lang=th] .site-design {
  --body: "Noto Sans Thai", Gotham, "Leelawadee UI", Tahoma, sans-serif;
  --hand: Sriracha, "Noto Sans Thai", Caveat, sans-serif;
}

.site-design main [id] { scroll-margin-top: var(--header-height); }
body.site-design .site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--forest);
  box-shadow: 0 2px 10px #152f2530;
}
.site-design .header-inner { width: 94%; gap: clamp(12px, 1.45vw, 22px); }
.site-design .brand { width: 68px; flex: 0 0 68px; }
.site-design .header-logo { width: 66px; height: 68px; mix-blend-mode: normal; }
.site-design .main-nav { gap: 3px; }
html[lang=th] .site-design .main-nav { font-family: var(--body); }
.site-design .nav-item { display: flex; align-items: center; flex-wrap: wrap; }
.site-design .nav-item > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 11px;
  font-size: 14px;
  border-radius: 8px;
  color: var(--paper);
}
.site-design .nav-item > a:hover,
body.site-design .nav-item > a[aria-current] { background: var(--forest-active); }
.site-design .nav-sub:not([hidden]) { display: block; }
.site-design .nav-sub {
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 6px;
}
.site-design .nav-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 7px;
}
.submenu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
}
.submenu-toggle:hover, .submenu-toggle[aria-expanded=true] { background: var(--forest-active); }
.submenu-toggle span {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.submenu-toggle[aria-expanded=true] span { transform: rotate(225deg); margin-top: 4px; }

.language-pills {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  isolation: isolate;
  flex: 0 0 110px;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid #c1d5bc;
  border-radius: 999px;
  background: var(--forest);
}
.language-pills::before {
  position: absolute;
  z-index: -1;
  inset: 3px auto 3px 3px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--paper);
  content: '';
  transition: transform 180ms ease;
}
.language-pills[data-active-language=en]::before { transform: translateX(calc(100% + 2px)); }
.language-pills a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 999px;
  color: var(--paper);
  font: 700 14px/1 "Noto Sans Thai", Gotham, sans-serif;
}
.language-pills a[aria-current=true] { color: var(--forest-dark); }

.site-design .hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: clamp(470px, 47vw, 735px);
  height: auto;
  max-height: none;
  padding: clamp(34px, 6vw, 90px) 5%;
}
.site-design .hero-content { position: relative; inset: auto; width: min(100%, 1040px); }
.site-design .hero-shade { background: linear-gradient(90deg, #17281f24, #17281fa8 72%); }
.site-design .hero h1 {
  font-size: clamp(24px, 7.7vw, 104px);
  color: #fff4d8;
  text-shadow: 1px 2px 3px #17281f60;
}
.site-design .hero-tagline { margin-top: clamp(15px, 2.8vw, 35px); }
.site-design .hero-body { margin-top: 17px; }
.site-design .hero-place { margin-top: 8px; color: #e2edca; }
.hero-action, .site-design main .detail-link, .site-design .contact-form .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 17px;
  background: var(--forest);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.hero-action { margin-top: 24px; background: var(--paper); color: var(--forest-dark); }
.hero-action:hover { background: #e5efdc; }
.site-design main .detail-link:hover,
.site-design .contact-form .button:hover { background: var(--forest-dark); opacity: 1; }
.site-design .feature-regenerations { color: #284c35; }
.site-design .feature-livelihoods { color: var(--ink); }
.site-design :is(.feature-livelihoods, .story-callout) { background: #dce8c8; }
.site-design .feature-creativities { color: #5f4298; }
.site-design .feature-copy { min-width: 0; overflow-wrap: anywhere; }

.site-design .page-hero {
  display: grid;
  align-items: center;
  min-height: clamp(340px, 43vw, 630px);
  height: auto;
  max-height: none;
  padding: clamp(36px, 7vw, 92px) 6%;
}
.site-design .page-hero-content {
  position: relative;
  inset: auto;
  justify-self: end;
  max-width: min(100%, 920px);
}
.site-design .page-hero-about .page-hero-content { inset: auto; justify-self: center; }
.site-design .page-hero-about .hero-shade { background: linear-gradient(90deg, #17281f45, #17281fa8 45%, #17281f66); }
.site-design .page-hero h1 { font-size: clamp(38px, 8vw, 104px); overflow-wrap: anywhere; }
.site-design .page-hero-content > p { line-height: 1.5; }
.site-design .page-hero-about,
.site-design .story-animals,
.site-design .story-mangrove,
.site-design .creative-blue { --edge: var(--paper); }
.site-design .page-hero-regenerations,
.site-design .story-mangrove { --mangrove-tint: #dce8c8; }
.site-design .page-hero-regenerations { --edge: var(--mangrove-tint); }
.site-design .story-mangrove { background: var(--mangrove-tint); }
.site-design :is(.story-animals, .creative-blue) { background: #d9ebee; }
.site-design :is(.story-mangrove, .story-animals, .story-callout, .creative-blue) { color: var(--forest-dark); }
.site-design .story-waste { background: var(--paper); --edge: #d9ebee; }
.site-design .page-hero-creativities { --edge: #d9ebee; }
.site-design :is(.creative-activities h2, .creative-intro > .catalog-label, .cottage-section > h2) { color: #644a81; }
.site-design .creative-intro > .catalog-label { background: #eee6f5; }
.site-design .livelihood-edge .rough-edge { fill: var(--paper); }
.site-design .activity-photo-card h4 { color: var(--forest); }
.site-design :is(.about-intro p, .mission-grid p, .story-section p, .livelihood-entry p, .regeneration-story p:not(.group-tagline)) {
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.65;
}
.site-design .experience-collage { display: grid; }
.site-design :is(.experience-photos, .experience-paper) { grid-area: 1 / 1; }
.site-design .experience-paper {
  position: relative;
  z-index: 1;
  inset: auto;
  align-self: start;
  justify-self: center;
  width: min(88%, 550px);
  margin-block: clamp(28px, 9vw, 150px);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 30px #17382e30;
  overflow-wrap: anywhere;
}
.site-design .experience-paper h1 { font-size: clamp(32px, 4.5vw, 55px); }

.site-design .contact-section {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: auto 1fr;
  width: min(90%, 1050px);
  gap: 20px clamp(24px, 5vw, 70px);
  align-items: start;
  padding-block: clamp(36px, 6vw, 80px);
  color: var(--ink);
}
.site-design .contact-brand { grid-column: 1; grid-row: 1; }
.site-design .contact-info { grid-column: 1; grid-row: 2; }
.site-design .contact-logo { height: 115px; }
.site-design .stg-logo { height: 68px; }
.site-design .contact-info h2 { margin-bottom: 12px; }
.site-design .contact-info > a { min-height: 44px; margin: 6px 0; font-size: 14px; color: var(--ink); }
.site-design .contact-form {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: clamp(18px, 3vw, 32px);
  background: #fff;
  border: 1px solid #d7dfd1;
  border-radius: 18px;
  box-shadow: 0 12px 30px #17382e12;
}
.site-design .contact-form h2 { text-align: left; }
.site-design .form-subtitle { text-align: left; }
.site-design .contact-form label { font-size: 14px; font-weight: 600; }
.site-design .contact-form input,
.site-design .contact-form textarea,
.site-design .contact-form select {
  min-height: 44px;
  border-color: #839487;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 16px;
  line-height: 1.5;
}
.site-design .contact-form .button:disabled { opacity: 0.6; cursor: default; }
.site-design .form-note { color: #4d5b51; font-size: 12px; }
.site-design .inquiry-result p { font-size: 14px; }
.site-design .site-footer { background: var(--forest); font-size: 12px; }

html[lang=th] .site-design :is(.hero-tagline, .feature-copy h2, .feature-subtitle, .feature-end, .fun-section h2, .collaborators h2, .contact-info h2, .contact-form h2, .page-hero h1, .experience-paper h1, .mission-grid h2, .regeneration-story h2, .livelihood-intro h2, .livelihood-entry h3, .creative-activities h2) {
  font-family: var(--hand);
  font-weight: 400;
  line-height: 1.45;
}
html[lang=th] .site-design .page-hero h1 { font-size: clamp(32px, 6vw, 76px); }

@media (max-width: 1120px) {
  .site-design { --header-height: 72px; }
  .site-design .header-logo { height: 58px; }
  .site-design .menu-toggle {
    display: flex;
    order: 3;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: transparent;
    border: 1px solid #c1d5bc;
    border-radius: 8px;
  }
  .site-design .menu-toggle span { display: block; height: 2px; width: 100%; background: var(--paper); }
  .site-design .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 12px 5% 18px;
    background: var(--forest);
  }
  .site-design .main-nav.is-open { display: flex; }
  .site-design .nav-item > a { flex: 1; }
  .site-design .nav-sub { position: static; flex: 0 0 100%; min-width: 0; margin: 4px 0; }
  .site-design :is(.experience-photos, .experience-paper) { grid-area: auto; }
  .site-design .experience-paper {
    margin-block: clamp(24px, 5vw, 52px);
    background: #fff;
    border: 1px solid #d7dfd1;
    box-shadow: 0 12px 30px #17382e12;
  }
  .site-design .experience-photos { width: 88%; margin: 0 auto 32px; }
  .site-design .experience-photos img { height: clamp(130px, 30vw, 300px); }
}

@media (max-width: 600px) {
  .site-design .header-inner { gap: 10px; }
  .site-design .hero { min-height: 490px; justify-content: center; padding: 32px 5%; }
  .site-design .hero-content { text-align: center; }
  .site-design .page-hero-content { justify-self: center; text-align: center; }
  .site-design .hero-shade { background: linear-gradient(180deg, #17281f6b, #17281f66 35%, #17281fab); }
  .site-design .hero-body { font-size: 15px; }
  .site-design .hero-place { font-size: 18px; }
  .site-design .hero-tagline { font-size: 36px; }
  html[lang=th] .site-design .hero-tagline { font-size: clamp(24px, 6.6vw, 32px); }
  .site-design .contact-section { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 21px; }
  .site-design :is(.contact-brand, .contact-info, .contact-form) { grid-column: 1; grid-row: auto; }
  .site-design .contact-logo { height: 85px; }
  .site-design .contact-info h2 { font-size: 31px; }
  .site-design .contact-form h2 { font-size: 34px; }
  html[lang=th] .site-design .contact-form h2 { font-size: 26px; }
}
