/* ============================================
   PPKITSOFT — Shared Design System
   ============================================ */

:root {
  /* Brand — from logo */
  --teal-50:  #ecfdf5;
  --teal-100: #d1fae5;
  --teal-200: #a7f3d0;
  --teal-300: #6ee7b7;
  --teal-400: #34d399;
  --teal-500: #14b8a6;   /* PRIMARY */
  --teal-600: #0d9488;   /* PRIMARY DARK */
  --teal-700: #0f766e;
  --teal-800: #115e59;

  --mint:     #5eead4;
  --gradient: linear-gradient(135deg, #0d9488 0%, #5eead4 100%);
  --gradient-soft: linear-gradient(135deg, #f0fbf7 0%, #ecfdf5 100%);

  /* Ink */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  /* Surface */
  --bg:        #ffffff;
  --bg-soft:   #f8fafb;
  --bg-tint:   #f0fbf7;
  --line:      #e6ebf2;

  /* Type */
  --font-th: "IBM Plex Sans Thai", "Sarabun", system-ui, sans-serif;
  --font-en: "Inter", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-teal: 0 12px 30px rgba(20, 184, 166, 0.25);

  /* Container */
  --container: 1200px;
  --nav-h: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-th);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }

/* Type defaults */
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
p  { margin: 0; text-wrap: pretty; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
@media (max-width: 768px) { .section { padding: 56px 0; } }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-600); max-width: 640px; margin: 0 auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20, 184, 166, 0.35); }
.btn-ghost {
  background: white;
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-700); }
.btn-line {
  background: #06C755; color: white;
}
.btn-line:hover { background: #05b04a; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ============================================
   NAV BAR
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink-900); }
.nav-brand .logo-mark {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-teal);
}
/* WordPress Custom Logo — constrain size in header */
.nav .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav .custom-logo {
  max-height: 44px;
  width: auto;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .nav .custom-logo { max-height: 36px; }
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-md);
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--teal-700); background: var(--bg-tint); }
.nav-links a.active { color: var(--teal-700); background: var(--teal-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  background: var(--ink-100);
  border-radius: var(--r-full);
  padding: 3px;
  font-size: 12px; font-weight: 600;
}
.lang-toggle button {
  padding: 5px 11px;
  border-radius: var(--r-full);
  color: var(--ink-500);
  transition: all 0.15s;
}
.lang-toggle button.active { background: white; color: var(--ink-900); box-shadow: var(--shadow-sm); }

.nav-burger { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; }
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions .btn:not(.btn-line):not(.lang-toggle) { display: none; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px;
  transform: translateY(-110%); transition: transform 0.3s ease, visibility 0.3s;
  z-index: 49;
  box-shadow: var(--shadow-lg);
  display: none;
  visibility: hidden;
}
.nav-drawer.open { transform: translateY(0); visibility: visible; }
@media (max-width: 960px) {
  .nav-drawer { display: block; }
}
.nav-drawer ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer a { display: block; padding: 12px 14px; border-radius: var(--r-md); color: var(--ink-800); font-weight: 500; }
.nav-drawer a:hover { background: var(--bg-tint); color: var(--teal-700); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(94, 234, 212, 0.18), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(13, 148, 136, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--teal-200);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); }
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lede { font-size: 18px; color: var(--ink-600); margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-500); }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient); border: 2px solid white;
  margin-left: -8px; display: grid; place-items: center;
  color: white; font-size: 12px; font-weight: 700;
}
.hero-trust .avatars span:first-child { margin-left: 0; }

/* Hero visual */
.hero-visual { position: relative; height: 480px; }
.hero-card {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
}
.hero-card .hc-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.hero-card .hc-title { font-weight: 700; color: var(--ink-900); }

.hc-workflow { top: 20px; left: 0; width: 260px; }
.hc-workflow .nodes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px;
}
.hc-workflow .node {
  aspect-ratio: 1;
  background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: 8px;
  display: grid; place-items: center;
  color: var(--teal-700);
}
.hc-workflow .node svg { width: 18px; height: 18px; }
.hc-workflow .line {
  height: 1px; background: var(--teal-300); margin: 8px 4px;
}

.hc-analytics { top: 60px; right: 0; width: 220px; }
.hc-analytics .chart { height: 80px; margin-top: 8px; display: flex; align-items: end; gap: 4px; }
.hc-analytics .chart i {
  flex: 1; background: var(--gradient); border-radius: 4px 4px 0 0;
}
.hc-analytics .stats-row { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; }
.hc-analytics .stats-row strong { color: var(--teal-700); font-size: 18px; }

.hc-perf { bottom: 30px; left: 80px; width: 200px; }
.hc-perf .ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--teal-500) 0 75%, var(--ink-100) 75% 100%);
  display: grid; place-items: center;
  margin: 12px auto 0;
  position: relative;
}
.hc-perf .ring::before {
  content: ""; position: absolute; inset: 8px; background: white; border-radius: 50%;
}
.hc-perf .ring span { position: relative; font-weight: 800; color: var(--teal-700); font-size: 18px; }

.hc-bot { bottom: 0; right: 30px; width: 180px; }
.hc-bot .msg {
  background: var(--bg-tint); border-radius: 10px; padding: 8px 12px; margin-top: 8px; font-size: 13px; color: var(--ink-700);
}
.hc-bot .msg.me { background: var(--teal-500); color: white; }

@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; max-width: 460px; margin: 0 auto; }
  .hc-workflow { width: 220px; }
  .hc-analytics { width: 200px; }
  .hc-perf { width: 180px; left: 40px; }
  .hc-bot { width: 160px; right: 10px; }
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-tint) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat {
  background: white;
  padding: 36px 24px;
  text-align: center;
  position: relative;
}
.stat .num {
  font-family: var(--font-en);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .num small { font-size: 0.6em; vertical-align: top; margin-left: 2px; }
.stat .lbl { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-700); }
.stat .desc { margin-top: 4px; font-size: 13px; color: var(--ink-500); }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   LOGO MARQUEE
   ============================================ */
.logos { padding: 56px 0; }
.logos-title { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 28px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo-item {
  height: 40px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  font-weight: 700; font-size: 18px;
  color: var(--ink-400);
  font-family: var(--font-en);
  letter-spacing: -0.02em;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: opacity 0.2s, filter 0.2s;
  white-space: nowrap;
}
.marquee .logo-item:hover { filter: grayscale(0%); opacity: 1; color: var(--teal-700); }
.marquee .logo-item svg { width: 28px; height: 28px; }

/* ============================================
   PRODUCT / SERVICE CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pcard {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.25s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-300); }
.pcard .pimg {
  aspect-ratio: 4/5;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
}
.pcard .pimg .badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  background: white;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}
.pcard .pimg .gfx {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--teal-600);
}
.pcard .pimg .gfx svg { width: 64px; height: 64px; opacity: 0.5; }
.pcard .pimg .gloss {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.6) 100%);
}
.pcard .pimg .pname-on-img {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  color: white; font-weight: 700; font-size: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.pcard .pbody { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pcard .pbody h3 { font-size: 17px; line-height: 1.3; }
.pcard .pbody p { color: var(--ink-600); font-size: 14px; flex: 1; }
.pcard .plink {
  font-size: 14px; font-weight: 600; color: var(--teal-700);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
}
.pcard .plink::after { content: "→"; transition: transform 0.2s; }
.pcard:hover .plink::after { transform: translateX(4px); }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .products-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

/* ============================================
   REVIEWS SLIDER
   ============================================ */
.reviews-slider {
  position: relative;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.review {
  flex: 0 0 calc(50% - 10px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 200px;
  box-shadow: var(--shadow-sm);
}
.review-head { display: flex; align-items: center; gap: 14px; }
.review .ravatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.review .rmeta .rname { font-weight: 700; color: var(--ink-900); font-size: 15px; }
.review .rmeta .rrole { font-size: 13px; color: var(--ink-500); }
.review .stars { display: flex; gap: 2px; color: #f59e0b; }
.review .stars svg { width: 16px; height: 16px; fill: currentColor; }
.review .rtext { color: var(--ink-700); font-size: 14.5px; line-height: 1.55; flex: 1; }
.review .rtext::before { content: '"'; font-size: 32px; color: var(--teal-300); line-height: 0; margin-right: 4px; vertical-align: -10px; }

.slider-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-200);
  transition: all 0.2s;
}
.slider-dots button.active { background: var(--teal-500); width: 24px; border-radius: 4px; }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-700);
  transition: all 0.2s;
}
.slider-arrows button:hover { border-color: var(--teal-500); color: var(--teal-700); }
.slider-arrows button:disabled { opacity: 0.4; cursor: not-allowed; }
.slider-arrows svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .review { flex: 0 0 100%; }
}

/* ============================================
   ABOUT SNIPPET
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--ink-600); font-size: 16px; margin-bottom: 14px; }
.about-text .name-card {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--teal-500);
  background: var(--bg-tint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.about-text .name-card .nm { font-weight: 700; color: var(--ink-900); }
.about-text .name-card .tt { font-size: 14px; color: var(--ink-600); margin-top: 2px; }
.about-text .skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.about-text .skill {
  padding: 5px 12px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  color: var(--ink-700);
}

.about-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--gradient);
}
.about-img .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: white;
}
.about-img .placeholder svg { width: 80px; height: 80px; opacity: 0.7; }
.about-img::after {
  content: "";
  position: absolute;
  bottom: -30px; right: -30px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  border-radius: 50%;
}
.about-img .deco-stat {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
}
.about-img .deco-stat .num { font-size: 28px; font-weight: 800; color: var(--teal-700); line-height: 1; }
.about-img .deco-stat .lbl { font-size: 12px; color: var(--ink-600); margin-top: 4px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { max-width: 360px; margin: 0 auto; order: -1; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f1f2e;
  color: #cbd5e1;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 { color: white; font-size: 15px; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: #94a3b8; font-size: 14px; transition: color 0.15s; }
.footer ul a:hover { color: var(--teal-300); }
.footer .footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 700; color: white; font-size: 18px; }
.footer .footer-brand .logo-mark { background: var(--gradient); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; font-weight: 800; }
/* WordPress Custom Logo — in footer (dark bg) */
.footer .custom-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  line-height: 0;
}
.footer .custom-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}
.footer .footer-desc { font-size: 14px; line-height: 1.6; color: #94a3b8; margin-bottom: 18px; max-width: 320px; }
.footer .socials { display: flex; gap: 10px; }
.footer .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #cbd5e1;
  transition: all 0.2s;
}
.footer .socials a:hover { background: var(--teal-500); color: white; }
.footer .socials svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #64748b;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FLOATING LINE BUTTON
   ============================================ */
.line-fab {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #06C755;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
  transition: transform 0.2s;
}
.line-fab:hover { transform: scale(1.08); }
.line-fab svg { width: 28px; height: 28px; }
.line-fab::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: #06C755;
  animation: ripple 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================
   LEGAL / DOC PAGES
   ============================================ */
.doc-hero {
  background: var(--gradient-soft);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.doc-hero .eyebrow { color: var(--teal-700); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.doc-hero h1 { margin: 12px 0 16px; }
.doc-hero .updated { color: var(--ink-500); font-size: 14px; }

.doc-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 60px; max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.doc-toc { position: sticky; top: 90px; align-self: start; }
.doc-toc-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 12px; font-weight: 600; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.doc-toc a {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  font-size: 14px; color: var(--ink-600);
  counter-increment: toc;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--ink-400); font-family: var(--font-mono); font-size: 12px; }
.doc-toc a:hover, .doc-toc a.active { color: var(--teal-700); border-color: var(--teal-500); background: var(--bg-tint); }

.doc-content { max-width: 720px; }
.doc-content h2 { font-size: 24px; margin-top: 48px; margin-bottom: 16px; scroll-margin-top: 100px; }
.doc-content h2:first-child { margin-top: 0; }
.doc-content h3 { font-size: 18px; margin-top: 24px; margin-bottom: 8px; }
.doc-content p { color: var(--ink-700); margin-bottom: 14px; }
.doc-content ul, .doc-content ol { color: var(--ink-700); margin: 0 0 14px; padding-left: 22px; }
.doc-content li { margin-bottom: 6px; }
.doc-content .callout {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--bg-tint);
  border-left: 3px solid var(--teal-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 14.5px;
}
.doc-content code { font-family: var(--font-mono); background: var(--ink-100); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.doc-content a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .doc-toc { position: static; }
  .doc-toc ol { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================
   ABOUT PAGE (DETAILED)
   ============================================ */
.bio-hero {
  background: linear-gradient(135deg, #f0fbf7 0%, #ecfdf5 60%, white 100%);
  padding: 80px 0;
}
.bio-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.bio-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bio-photo .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
}
.bio-photo .placeholder svg { width: 100px; height: 100px; }
.bio-photo .badge-row {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.bio-photo .b-chip {
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  color: var(--teal-700);
}
.bio-info .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 12px; display: inline-block; }
.bio-info h1 { font-size: clamp(36px, 4vw, 48px); margin-bottom: 6px; }
.bio-info .role { font-size: 18px; color: var(--ink-500); margin-bottom: 24px; }
.bio-info p { color: var(--ink-700); font-size: 16px; margin-bottom: 14px; }

.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px;
}
.exp-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 0.2s;
}
.exp-card:hover { border-color: var(--teal-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.exp-card .ico {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.exp-card .ico svg { width: 22px; height: 22px; }
.exp-card h3 { font-size: 16px; margin-bottom: 6px; }
.exp-card p { font-size: 14px; color: var(--ink-600); }

/* PPK Certificate cards */
.ppk-cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
}
a.ppk-cert-card { color: inherit; }
.ppk-cert-card .ppk-cert-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  margin: -24px -24px 16px;
  width: calc(100% + 48px);
  background: white;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.ppk-cert-card.is-featured .ppk-cert-thumb {
  aspect-ratio: 16/9;
  margin-bottom: 20px;
}
.ppk-cert-card .ppk-cert-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
}
.ppk-cert-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: var(--gradient);
  color: white;
  border-radius: var(--r-full);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.ppk-cert-title {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--ink-900);
  font-weight: 700;
}
.ppk-cert-card.is-featured .ppk-cert-title {
  font-size: 19px;
}
.ppk-cert-issuer {
  font-size: 13px;
  color: var(--teal-700);
  font-weight: 600;
  margin-bottom: 8px;
}
.ppk-cert-desc {
  font-size: 13.5px;
  color: var(--ink-600);
  flex: 1;
  margin-bottom: 12px;
}
.ppk-cert-date {
  font-size: 12px;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.ppk-cert-zoom-hint {
  position: absolute; bottom: 14px; right: 14px;
  font-size: 11px;
  color: var(--teal-700);
  display: inline-flex; align-items: center; gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  background: white;
  padding: 4px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--teal-200);
}
a.ppk-cert-card:hover .ppk-cert-zoom-hint { opacity: 1; }
a.ppk-cert-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: var(--ink-200);
}
.t-item { position: relative; padding-bottom: 32px; }
.t-item::before {
  content: ""; position: absolute; left: -32px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--teal-300);
}
.t-item .year { font-family: var(--font-en); font-weight: 700; color: var(--teal-700); font-size: 14px; }
.t-item h3 { margin: 4px 0 6px; font-size: 17px; }
.t-item p { color: var(--ink-600); font-size: 14.5px; }

@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-photo { max-width: 320px; margin: 0 auto; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA STRIP (reusable)
   ============================================ */
.cta-strip {
  background: var(--gradient);
  color: white;
  padding: 56px 0;
  text-align: center;
}
.cta-strip h2 { color: white; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 28px; font-size: 16px; }
.cta-strip .btn-primary { background: white; color: var(--teal-700); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.cta-strip .btn-primary:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.2); }
.cta-strip .btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.4); }
.cta-strip .btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }
.cta-strip .cta-cluster { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================
   UTILITIES
   ============================================ */
.text-grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
[data-lang="en"] body { font-family: var(--font-en); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Lang visibility helpers */
html[lang="th"] .lang-en-only { display: none !important; }
html[lang="en"] .lang-th-only { display: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   CookieYes — ปรับแถบคุกกี้ให้เข้าธีม PPKITSOFT
   ========================================================= */
.cky-consent-container .cky-consent-bar {
  font-family: var(--font-th) !important;
  border-radius: 16px !important;
  border: 1px solid var(--teal-100) !important;
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.18) !important;
}
.cky-title { color: var(--ink-900) !important; font-weight: 700 !important; }
.cky-notice-des, .cky-notice-des * { color: var(--ink-600) !important; }
.cky-notice-des a { color: var(--teal-600) !important; text-decoration: underline; }

.cky-consent-container .cky-btn {
  border-radius: 9999px !important;
  font-weight: 600 !important;
  padding: 11px 22px !important;
  transition: all .2s ease !important;
}
.cky-consent-container .cky-btn-accept {
  background: var(--gradient) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.30) !important;
}
.cky-consent-container .cky-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.40) !important;
}
.cky-consent-container .cky-btn-reject {
  background: #fff !important;
  border: 1px solid var(--teal-600) !important;
  color: var(--teal-700) !important;
}
.cky-consent-container .cky-btn-reject:hover {
  background: var(--teal-50) !important;
  border-color: var(--teal-500) !important;
}
.cky-consent-container .cky-btn-customize {
  background: #fff !important;
  border: 1px solid var(--ink-200) !important;
  color: var(--ink-700) !important;
}
.cky-consent-container .cky-btn-customize:hover {
  border-color: var(--teal-500) !important;
  color: var(--teal-700) !important;
}
.cky-switch input:checked + label,
.cky-switch input:checked + .cky-switch-bg { background: var(--teal-500) !important; }
.cky-btn-revisit-wrapper { background: var(--teal-600) !important; }
