:root {
  --primary: #0f8b4c;
  --accent: #f15a29;
  --highlight: #c62828;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --surface: #f6f7f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Prompt", "Noto Sans Thai", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  border-bottom: 1px solid rgba(15, 139, 76, 0.1);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand div {
  font-weight: 600;
  font-size: 1.1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

nav a.active,
nav a:hover {
  background: rgba(15, 139, 76, 0.12);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
}

main {
  padding: 2rem 1.25rem 3rem;
}

.section {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.section h1,
.section h2,
.section h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  background: linear-gradient(135deg, rgba(15, 139, 76, 0.08), rgba(241, 90, 41, 0.08));
  padding: 2rem;
  border-radius: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: var(--bg);
  border: 1px solid rgba(31, 31, 31, 0.15);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(31, 31, 31, 0.06);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 139, 76, 0.2);
  text-align: center;
}

.stat strong {
  font-size: 1.5rem;
  color: var(--highlight);
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-item {
  background: var(--bg);
  border: 1px solid rgba(31, 31, 31, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(241, 90, 41, 0.12);
  color: var(--accent);
  font-size: 0.9rem;
}

.blog-list article,
.career-card,
.contact-card,
.faq-item {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 31, 31, 0.08);
  background: var(--surface);
}

.blog-list article h3 {
  margin-bottom: 0.5rem;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.map-placeholder {
  height: 260px;
  border-radius: 16px;
  border: 2px dashed rgba(15, 139, 76, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 139, 76, 0.05);
  color: var(--muted);
  font-weight: 600;
}

.faq-item button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 31, 31, 0.1);
  font-size: 0.9rem;
}

footer {
  background: #0a0a0a;
  color: white;
  padding: 2rem 1.25rem;
}

footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 900px) {
  nav ul {
    position: absolute;
    top: 72px;
    right: 1rem;
    flex-direction: column;
    background: var(--bg);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(31, 31, 31, 0.06);
    display: none;
  }

  nav ul.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}
