/* Service Pathcore — modern minimalist, soft neutrals */
:root {
  --bg: #f8f7f4;
  --bg-deep: #ebe8e1;
  --surface: #ffffff;
  --ink: #1f2420;
  --ink-soft: #5a615c;
  --line: #d9d5cc;
  --accent: #3d6b5a;
  --accent-deep: #2c4f42;
  --accent-soft: #e8f0ec;
  --warn: #8a4b2e;
  --success: #2f6b4f;
  --error: #9b2c2c;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(31, 36, 32, 0.06);
  --font-display: "Bai Jamjuree", "Sarabun", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --header-h: 4.25rem;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8e8e8;
  color: var(--error);
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0.7;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--accent-deep);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
}

.nav-list a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-list a {
    font-size: 1.15rem;
  }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed visual plane */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 28, 24, 0.35) 0%,
    rgba(20, 28, 24, 0.72) 55%,
    rgba(20, 28, 24, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.05;
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  max-width: 28rem;
  margin-bottom: 0.85rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 26rem;
  margin-bottom: 0;
}

.hero .btn-primary {
  background: #fff;
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Page hero (inner pages) — quieter */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  max-width: 18ch;
}

/* Grids */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

.metric-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 2rem;
}

.metric {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--ink);
  font-weight: 600;
}

.metric span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.course-grid,
.card-grid,
.blog-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.course-item,
.blog-item {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.course-item:hover,
.blog-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.course-item img,
.blog-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-item-body,
.blog-item-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.course-item h3,
.blog-item h3 {
  margin-bottom: 0.4rem;
}

.course-item h3 a,
.blog-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.course-item h3 a:hover,
.blog-item h3 a:hover {
  color: var(--accent);
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.quote-list {
  display: grid;
  gap: 1.5rem;
}

.quote {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.quote:last-child {
  border-bottom: 1px solid var(--line);
}

.quote p {
  color: var(--ink);
  font-size: 1.05rem;
}

.quote footer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.stars {
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

/* Pricing */
.price-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 40%);
}

.price-tier h3 {
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  margin: 0.75rem 0;
}

.price-amount small {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.price-tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-tier li {
  margin-bottom: 0.4rem;
}

.price-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* Forms */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  max-width: 36rem;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.address-block {
  background: var(--accent-soft);
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
}

.address-block p {
  color: var(--ink);
  word-break: break-word;
}

/* Legal prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-display);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin-top: 0.75rem;
}

/* Modules list */
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mod;
}

.modules li {
  counter-increment: mod;
  padding: 1.15rem 0 1.15rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modules li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #1f2420;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tag {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-cols {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 2.5rem 0 2rem;
}

.footer-heading {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-address {
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
}

.cookie-banner-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal].delay-1 {
  transition-delay: 0.12s;
}

[data-reveal].delay-2 {
  transition-delay: 0.24s;
}

/* Soft band */
.band {
  background: var(--bg-deep);
}

.band-accent {
  background: var(--accent-soft);
}

.instructor {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 640px) {
  .instructor {
    grid-template-columns: 140px 1fr;
  }
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.case-study h3 {
  margin-bottom: 0.5rem;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  padding: 0 0 1.5rem 1.35rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin: 0;
}
