@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --text: #222;
  --muted: #666;
  --grey-bg: #f0f0f0;
  --blue: #0693e3;
  --green: #00d084;
  --purple: #9b51e0;
  --orange: #ff6900;
  --amber: #fcb900;
  --container: 1200px;
  --font: "Inter", "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Header */
.site-header { padding-block: 15px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.brand img { border-radius: 50%; }

/* Hero */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / .5)), url(/assets/img/header-bg.jpg) center / cover no-repeat;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.hero__tagline { font-size: 1.25rem; margin: 0 0 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: .75em 1.5em;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn--blue { background: var(--blue); }
.btn--green { background: var(--green); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 2rem;
  scroll-margin-top: 1rem;
}
.stat {
  padding: 2rem 1.25rem;
  color: #fff;
  text-align: center;
}
.stat p { margin: 0; }
.stat__value { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: .25rem !important; }
.stat__label { font-size: 1.25rem; }
.stat--blue { background: var(--blue); }
.stat--purple { background: var(--purple); }
.stat--orange { background: var(--orange); }
.stat--amber { background: var(--amber); }

/* Sections */
.section { padding-block: 4rem; }
.section--grey { background: var(--grey-bg); }
.section__title { text-align: center; font-size: 2rem; margin-bottom: 2rem; }

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px 20px;
}
.product { margin: 0; }
.product figcaption { margin-top: .75rem; font-size: 1.15rem; font-weight: 600; }

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project { background: #fff; }
.project__body { padding: 1.25rem 20px 20px; }
.project__body p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer {
  background: #000;
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}
.footer-cols p { color: rgb(255 255 255 / .7); margin: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .4rem; }

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}
.contact__card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background: rgb(255 255 255 / .15);
}
.contact__card p { margin: 0; }
.contact__card p:last-child { color: rgb(255 255 255 / .7); font-size: .9rem; }
.contact__title { font-weight: 700; }

.copyright { text-align: center; font-size: .8rem; margin: 0 0 20px; }
.social { display: block; width: 24px; margin-inline: auto; }

@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .section { padding-block: 3rem; }
}
