/* Ooya — one shared style file. Vanilla CSS, own tokens (CSS-2). */
:root {
  --green: #3F6B4F;
  --green-deep: #2F5039;
  --green-soft: #E4EEE6;
  --gold: #C9A24B;
  --gold-soft: #F3E7C6;
  --cream: #FBF8F1;
  --ink: #2B2A26;
  --font-latin-head: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --font-th-head: "Noto Serif Thai", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
html[lang="th"] body { font-family: "Noto Sans Thai", "Inter", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.bar { background: var(--cream); border-bottom: 1px solid var(--gold-soft); position: sticky; top: 0; z-index: 10; }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand img { width: 88px; height: auto; border-radius: 12px; }
.lang { display: inline-block; padding: 8px 18px; border: 2px solid var(--gold); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang:hover, .lang:focus-visible { background: var(--gold-soft); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; background: linear-gradient(180deg, var(--cream) 0%, var(--green-soft) 100%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.card { background: #fff; border-radius: 32px; box-shadow: 0 24px 60px rgba(47, 80, 57, .22); }
.logo-card { padding: 20px; width: min(420px, 100%); animation: float 6s ease-in-out infinite; }
.logo-card img { border-radius: 20px; }
.qr-card { padding: 20px; width: min(260px, 100%); text-align: center; animation: float 6s ease-in-out -3s infinite; }
.qr-card img { border-radius: 16px; width: 100%; }
.qr-card p { margin: 12px 0 0; font-size: .95rem; }
h1 { margin: 8px 0 0; font: 600 clamp(2rem, 6vw, 3.4rem)/1.15 var(--font-latin-head); color: var(--green-deep); max-width: 18ch; }
.msg { margin: 0; font-size: 1.2rem; max-width: 34ch; }
html[lang="th"] .msg { font-family: "Noto Serif Thai", serif; font-weight: 500; }

.btn { display: inline-block; padding: 14px 32px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; border: 2px solid var(--green-deep); box-shadow: 0 8px 20px rgba(47, 80, 57, .25); transition: transform .2s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: var(--gold-soft); }

/* decorative shapes (drawn in CSS) */
.shape { position: absolute; z-index: 0; border-radius: 50%; opacity: .55; animation: float 6s ease-in-out infinite; }
.s1 { width: 220px; height: 220px; background: var(--gold-soft); top: -40px; left: -60px; }
.s2 { width: 160px; height: 160px; background: var(--green-soft); border: 3px solid var(--gold); bottom: 40px; right: -30px; animation-delay: -2s; }
.s3 { width: 120px; height: 180px; background: var(--green); border-radius: 100% 0 100% 0; opacity: .18; top: 40%; left: 6%; animation-delay: -4s; }

/* band */
.band { background: var(--green-deep); color: var(--cream); padding: 56px 0; text-align: center; }
.band-in { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.band-msg { margin: 0; font: 500 clamp(1.5rem, 4.5vw, 2.2rem)/1.3 var(--font-latin-head); color: var(--gold); max-width: 26ch; }
html[lang="th"] .band-msg { font-family: var(--font-th-head); }

/* footer */
.foot { background: var(--cream); padding: 32px 0 40px; text-align: center; border-top: 1px solid var(--gold-soft); }
.foot p { margin: 4px 0; }
.foot-name { font: 600 1.5rem var(--font-latin-head); color: var(--green-deep); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .logo-card, .qr-card, .shape { animation: none; }
  .btn { transition: none; }
  html { scroll-behavior: auto; }
}
@media (min-width: 820px) {
  .hero { padding: 72px 0 96px; }
  .hero-in { display: grid; grid-template-columns: 1fr 1fr; text-align: left; align-items: center; column-gap: 56px; row-gap: 20px; }
  .logo-card { grid-column: 1; grid-row: 1 / span 3; justify-self: center; }
  h1, .msg { grid-column: 2; }
  .btn { grid-column: 2; justify-self: start; }
  .qr-card { grid-column: 2; justify-self: start; }
}
