/* ══════════════════════════════════════════════════════════════
   global.css  —  Indo Thai Global
   Base reset, variables, typography & shared utilities
══════════════════════════════════════════════════════════════ */
p {
  text-align: justify;
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* ── Root tokens ── */
:root {
  --nav-h: 72px;

  --white:         #ffffff;
  --off-white:     #f2faff;
  --cream:         #d8f2fc;
  --border:        rgba(90, 185, 220, 0.20);
  --border-strong: rgba(90, 185, 220, 0.40);
  --text-dark:     #0d2a1a;
  --text-mid:      #1a5040;
  --text-light:    #3a7860;

  /* Sky-blue palette from the photo */
  --blue:    #2a9abf;
  --sky:     #5ac8e8;
  --navy:    #1a7aaa;
  --blue-bg: rgba(42, 154, 191, 0.08);
  --sky-bg:  rgba(90, 200, 232, 0.10);

  /* Nature accent colours */
  --teal:    #5ac8e8;
  --gold:    #7dd4ee;
  --green: #5ac8e8;
  --amber:   #7dd4ee;

  --font-sans:  'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Plus Jakarta Sans', sans-serif;
  --font-mono:  'DM Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 100px;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: #f5fafd;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
}

em, i { font-style: normal; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.page-body { padding-top: var(--nav-h); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.8rem);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--teal);
  opacity: 0.6;
}

.h-display {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:active { transform: translateY(1px) !important; }

.btn-dark {
  padding: 0.78rem 2rem;
  background: linear-gradient(120deg, #1a7aaa 0%, #2a9abf 100%);
  color: #ffffff;
  border: 1px solid rgba(58, 172, 224, 0.22);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.btn-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
  transform: translateX(-100%) skewX(-18deg);
  transition: transform 0.45s ease;
}
.btn-dark:hover::before { transform: translateX(200%) skewX(-18deg); }
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.20), 0 0 20px rgba(58, 172, 224, 0.14);
}

.btn-ghost {
  padding: 0.75rem 1.6rem;
  border: 1.5px solid var(--border-strong);
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.22s;
}
.btn-ghost:hover {
  border-color: var(--sky);
  color: var(--text-dark);
  background: var(--sky-bg);
}

.btn-ghost-white {
  padding: 0.75rem 1.6rem;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.90);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.22s;
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.80);
  color: #fff;
  background: rgba(255,255,255,0.10);
  transform: translateY(-2px);
}

.grad-rule {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  border-radius: 2px;
  margin: 1.6rem 0;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s var(--ease) forwards;
}

/* ── Footer ── */
.site-footer {
  background-color: #0a1a1e;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(90,200,232,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(42,154,191,0.05) 0%, transparent 55%);
  color: rgba(255,255,255,0.70);
  padding: clamp(2rem, 4vw, 3rem) 0 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* Wavy decorative overlay */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%230a1a1e' fill-opacity='0.6' d='M0,30 C240,60 480,0 720,30 C960,60 1200,0 1440,30 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat top center / cover;
  pointer-events: none;
  z-index: 0;
}

/* Second wave layer for depth */
.site-footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 45'%3E%3Cpath fill='%23061215' fill-opacity='0.45' d='M0,15 C360,45 720,0 1080,20 C1260,30 1350,10 1440,15 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat top center / cover;
  pointer-events: none;
  z-index: 0;
}

.site-footer > .container,
.site-footer > .footer-bottom {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.footer-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

/* Two-column quick links */
.footer-links {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
  row-gap: 0;
}
.footer-links li { margin-bottom: 5px; }
.footer-links a {
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.90); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.4;
}

.social-dock__btn--tw {
  background-color: #000000; /* Black for X */
  color: #ffffff;
}

/* Bottom bar — warm wood grain tone, items at each corner */
.footer-bottom {
  padding: 9px clamp(1.2rem, 4vw, 2.8rem);
  margin-top: 14px;
  background: linear-gradient(105deg,
    #3d2510 0%,
    #6b3e1c 20%,
    #9b6030 40%,
    #c48840 55%,
    #9b6030 70%,
    #6b3e1c 85%,
    #3d2510 100%
  );
  box-shadow: inset 0 1px 0 rgba(255,215,130,0.18), inset 0 -1px 0 rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}

.footer-bottom-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 6px;
}

.footer-copy {
  font-size: 0.73rem;
  color: rgba(255,225,165,0.92);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-dev-text {
  font-size: 0.73rem;
  color: rgba(255,215,150,0.72);
  font-weight: 500;
  text-align: right;
}

.footer-dev-link {
  font-size: 0.73rem;
  color: #ffd070;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s, opacity 0.2s;
}
.footer-dev-link:hover {
  color: #fff5cc;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-dev-text, .footer-dev-link { text-align: left; }
}

/* ── Scroll Reveal ── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX( 40px); }

.reveal-up.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #d0eaf5; }
::-webkit-scrollbar-thumb { background: rgba(42,154,191,0.65); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(42,154,191,0.90); }

/* Hide Google Translate toolbar */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ── Hide Google Translate toolbar ── */
.goog-te-banner-frame,
.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }

/* ── Lang dropdown styles ── */
.lang-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 8px 12px 4px;
  opacity: 0.8;
}
.lang-group.all-hidden { display: none; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-dark, #243b4a);
  text-align: left;
  border-radius: 6px;
  transition: background 0.15s;
}
.lang-option:hover { background: rgba(47,143,165,0.10); }
.lang-option.active { background: rgba(47,143,165,0.15); font-weight: 600; }
.lang-option-flag { font-size: 1rem; flex-shrink: 0; }
.lang-option-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-option-nat { opacity: 0.55; font-size: 0.75rem; }
.lang-option-code { font-family: var(--font-mono); font-size: 0.65rem; opacity: 0.4; flex-shrink: 0; }