/* ============================================================
   Grow with Pols — shared stylesheet
   DESIGN SYSTEM: Busuu × Preply blend
   - Busuu:  indigo→blue gradient hero, mint (#11ee92) pill CTA,
             mist canvas (#f2f7fd), white 16px cards, 1px shadow,
             circular tiles, charcoal text
   - Preply: rotated photo collage w/ black text stickers,
             stat strip social proof, hairline card borders,
             dark inverted footer
   Type: Poppins (display, Nista substitute) + Sarabun (Thai/body)
   ============================================================ */

:root {
  /* --- Busuu core --- */
  --indigo: #3b1e90;
  --violet: #5a3cc4;
  --sky: #3a6ef0;
  --blue: #116eee;          /* brand accent: links, nav, logo — never a filled action */
  --mint: #11ee92;          /* the ONLY filled action colour */
  --mint-dark: #0dd482;
  --charcoal: #252b2f;      /* body + headings */
  --canvas: #f2f7fd;        /* page background */
  --white: #ffffff;         /* cards, nav */
  --border: #d6dee6;
  --caption: #666e7e;
  --star: #ffcf00;

  /* --- Preply carry-over --- */
  --ink: #121117;           /* stickers + dark footer */
  --pink: #ff7aac;          /* decorative canvas / sticker accent only — never a control */

  --gradient-hero: linear-gradient(90deg, #3b1e90 0%, #5a3cc4 30%, #3a6ef0 100%);

  --font-display: 'Poppins', 'Sarabun', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Sarabun', 'Poppins', ui-sans-serif, system-ui, sans-serif;

  --max: 1200px;
  --section-gap: 64px;

  --r-card: 16px;
  --r-btn: 45px;
  --r-input: 5px;
  --r-circle: 9999px;

  --shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  color: var(--charcoal);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.14;
}
h3, h4 { font-weight: 700; line-height: 1.3; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* surfaces */
.sec-canvas { background: var(--canvas); }
.sec-white  { background: var(--white); }
.sec-grad   { background: var(--gradient-hero); }
section { padding: var(--section-gap) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 16px; font-weight: 700;
  padding: 14px 28px; border-radius: var(--r-btn);
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
/* the single filled action */
.btn-mint { background: var(--mint); color: var(--charcoal); }
.btn-mint:hover { background: var(--mint-dark); }
/* outlined brand-blue: lighter-weight entry point */
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
/* outlined on the gradient hero */
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: var(--white); color: var(--charcoal); }
/* tertiary */
.btn-ghost { background: transparent; color: var(--charcoal); border-color: transparent; font-size: 15px; padding: 10px 18px; }
.btn-ghost:hover { color: var(--blue); }
.btn .arw { font-size: 17px; line-height: 1; }

/* ---------- top utility bar ---------- */
.utility {
  background: var(--ink); color: var(--white);
  font-family: var(--font-ui); font-size: 13px;
  min-height: 40px; display: flex; align-items: center; justify-content: center;
  padding: 8px 40px 8px 24px; position: relative; text-align: center;
}
.utility b { font-weight: 700; }
.utility .close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--white);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 4px;
}

/* ---------- nav ---------- */
.nav {
  background: var(--white); box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 60;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.navlink {
  font-family: var(--font-ui); font-size: 15px; font-weight: 400;
  color: var(--charcoal); white-space: nowrap;
}
.nav-links a.navlink:hover { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch {
  display: flex; border: 1px solid var(--border);
  border-radius: var(--r-circle); overflow: hidden;
}
.lang-btn {
  border: none; background: var(--white); padding: 6px 12px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  color: var(--caption); cursor: pointer;
}
.lang-btn.active { background: var(--blue); color: var(--white); }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--charcoal); }

@media (max-width: 940px) {
  .hamburger { display: block; order: 3; }
  .nav-links {
    position: fixed; top: 108px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 24px; box-shadow: var(--shadow); display: none; z-index: 59;
  }
  .nav-links.open { display: flex; }
  .nav-right .btn-outline { display: none; }
}

/* ---------- interior page hero (gradient) ---------- */
.page-hero { background: var(--gradient-hero); padding: 64px 0; }
.page-hero .wrap { max-width: 900px; }
.page-hero .tag {
  display: inline-block; background: rgba(255,255,255,.18); color: var(--white);
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  padding: 7px 16px; border-radius: var(--r-btn); margin-bottom: 20px;
}
.page-hero h1 { font-size: clamp(28px, 4.4vw, 40px); color: var(--white); margin-bottom: 16px; }
.page-hero p {
  font-family: var(--font-ui); font-size: 16px; font-weight: 400;
  color: rgba(255,255,255,.92); max-width: 560px; line-height: 1.6;
}

/* ---------- section heading ---------- */
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-ui); font-size: 13px;
  font-weight: 700; color: var(--blue); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.sec-head p {
  font-family: var(--font-ui); font-size: 16px; font-weight: 400;
  color: var(--caption); margin-top: 16px; line-height: 1.6;
}

/* ---------- generic card ---------- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px;
}

/* ---------- footer (Preply carry-over: inverted dark band) ---------- */
footer { background: var(--ink); color: var(--white); padding: 64px 0 32px; }
.foot-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.foot-col h5 {
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 20px;
}
.foot-col a, .foot-col span {
  display: block; font-family: var(--font-ui); font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,.72); margin-bottom: 8px; line-height: 1.6;
}
.foot-col a:hover { color: var(--mint); }
.foot-bottom {
  max-width: var(--max); margin: 48px auto 0; padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  font-family: var(--font-ui); font-size: 13px; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
/* the wordmark is dark artwork — give it a light chip so it reads on the dark footer */
.foot-logo img {
  height: 44px; width: auto; margin-bottom: 16px;
  background: var(--white); padding: 8px 12px; border-radius: 10px;
}

/* ---------- shared CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--white); margin-bottom: 16px; }
.cta-band p { font-family: var(--font-ui); font-size: 16px; color: rgba(255,255,255,.92); margin-bottom: 32px; }
