@font-face {
  font-family: 'Noto Sans Thai Fallback';
  src: local('Leelawadee UI'), local('Tahoma'), local('Segoe UI'), local('Arial');
  ascent-override: 110%;
  descent-override: 45%;
  line-gap-override: 0%;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0f2942;
  --navy-hover: #1a3d5f;
  --text: #1e293b;
  --muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --line-green: #008438;
  --line-green-hover: #006b2d;
  --shadow-sm: 0 1px 3px rgba(15, 41, 66, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 41, 66, 0.08);
  --radius: 12px;
  --max-width: 1040px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans Thai', 'Noto Sans Thai Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.hero-media img,
.zone-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--line-green);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
  padding: 0.25rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  order: 3;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 0.45rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
}

.header-cta {
  order: 2;
}

/* LINE CTA Button */
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--line-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-line:hover {
  background-color: var(--line-green-hover);
  color: #ffffff;
}

.btn-line:active {
  transform: translateY(1px);
}

.btn-line-sm {
  font-size: 0.9375rem;
  padding: 0.6rem 1rem;
  min-height: 44px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  min-height: 48px;
  border-radius: 8px;
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: #ffffff;
}

.line-cta-wrap {
  margin: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Main Content */
main {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #94a3b8;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Hero Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.65rem;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: 1.625rem;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 700;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: 1.325rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 700;
}

h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.075rem;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 700;
}

p {
  margin: 0 0 0.9rem;
}

p:last-child {
  margin-bottom: 0;
}

.hero-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

/* Section Card */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem;
  margin-bottom: 1.35rem;
}

.usp-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1px solid #bbf7d0;
  border-left: 5px solid var(--line-green);
}

.usp-card h2 {
  color: var(--navy);
}

.section-card ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
}

.section-card li {
  margin-bottom: 0.65rem;
}

.section-card li:last-child {
  margin-bottom: 0;
}

.project-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0.9rem 0 0;
}

.project-list li {
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
}

/* Numbered Steps */
.steps-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  counter-reset: step-counter;
}

.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 0.95rem;
  min-height: 2rem;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Zone Cards Grid */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.zone-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zone-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.zone-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zone-card-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.zone-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 0.95rem;
}

.zone-card-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
}

/* FAQ Blocks */
.faq-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
}

.faq-item h3,
.faq-item h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.075rem;
}

.faq-note {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border-left: 4px solid var(--navy);
  border-radius: 6px;
}

.ref-links {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Internal Navigation Grid */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.nav-card-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.95rem 1.1rem;
  min-height: 56px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

.nav-card-link span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}

.nav-card-link:hover {
  border-color: var(--navy);
  background: #eef2f6;
}

/* Bottom CTA Band */
.cta-band {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-top: 1.5rem;
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: #e2e8f0;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  padding-bottom: 5.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.footer-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--line-green);
  text-decoration: underline;
}

/* Floating Mobile LINE CTA */
.floating-line-cta {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 132, 56, 0.35);
  border-radius: 999px;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 2;
    width: auto;
    border-top: none;
    padding-top: 0;
    gap: 0.35rem;
  }

  .header-cta {
    order: 3;
  }

  .hero-card,
  .section-card,
  .cta-band {
    padding: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .zone-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .site-footer {
    padding-bottom: 2rem;
  }

  .floating-line-cta {
    display: none;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 2.15rem;
  }
}
