@import url("assets/fonts/kanit.css");

:root {
  --maroon: #8a1a2a;
  --maroon-2: #5e0f1c;
  --maroon-deep: #3a0810;
  --maroon-ink: #1c0509;
  --gold-1: #f7db85;
  --gold-2: #d9a72c;
  --gold: #e0b53a;
  --gold-deep: #b9861f;
  --cream: #fbf6f2;
  --cream-2: #f4ece6;
  --ink: #241a1c;
  --text: #33262a;
  --muted: #83717a;
  --line: #ecdfe0;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 12px 34px rgba(58, 8, 16, 0.09);
  --shadow-lg: 0 26px 60px rgba(58, 8, 16, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* จุดยึด anchor (เช่น #quote) — header เป็น position:fixed จึงเว้นระยะบนเท่ากับ padding ของ .section ให้เลื่อนแล้วหัวข้อไม่โดน nav บัง */
.scroll-anchor { scroll-margin-top: 90px; }
body {
  font-family: "Kanit", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-weight: 300;
}
/* Kanit ภาษาไทยต้องเผื่อพื้นที่ให้สระบน/ล่างและวรรณยุกต์ โดยเฉพาะ Safari
   ค่าเดิม 1.28 ทำให้ glyph สูงกว่ากรอบบรรทัดและดูเหมือนตัวอักษรถูกตัด */
h1, h2, h3, h4 { line-height: 1.48; }
.container { width: min(1200px, 92%); margin: 0 auto; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 100%);
  color: #4a2a00; box-shadow: 0 10px 24px rgba(217, 167, 44, 0.4);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--gold:hover { filter: brightness(1.05); box-shadow: 0 14px 30px rgba(217, 167, 44, 0.5); }
.btn--outline { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-1); }
.btn--outline.btn--dark { color: var(--maroon); border-color: rgba(138,26,42,0.3); background: transparent; }
.btn--outline.btn--dark:hover { border-color: var(--maroon); color: var(--maroon); background: rgba(138,26,42,0.04); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.92rem; }

/* Header (topbar + nav) */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.topbar {
  background: rgba(18, 4, 7, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230, 181, 58, 0.25); color: #e6ccce; font-size: 0.82rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 40px; }
.topbar__license { color: #d8bfc2; }
.topbar__license b { color: var(--gold-1); font-weight: 600; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__hotline { color: #fff; font-weight: 500; white-space: nowrap; }
.topbar__hotline b { color: var(--gold-1); }
.topbar__hotline:hover { color: var(--gold-1); }
.topbar__line { background: #06c755; color: #fff; padding: 4px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: filter 0.2s; }
.topbar__line:hover { filter: brightness(1.08); }

.nav {
  position: relative; z-index: 2;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.scrolled {
  background: rgba(28, 5, 9, 0.95); backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo { height: 48px; width: auto; }
.brand__text { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: 0.5px; }
.brand__text strong { color: var(--gold); font-weight: 800; }
.brand__text small { display: block; font-size: 0.58rem; letter-spacing: 3px; color: rgba(255,255,255,0.6); font-weight: 500; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > a:not(.btn) { font-weight: 400; color: rgba(255,255,255,0.88); font-size: 0.98rem; transition: color 0.2s; }
.nav__links > a:not(.btn):hover { color: var(--gold-1); }
.nav__toggle { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(120deg, #1c0509 0%, #33090f 42%, #5a0f1a 100%);
  padding-top: 116px;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Full-bleed hero background image + readability overlay */
.hero__photo {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(20,4,7,0.95) 0%, rgba(28,5,9,0.86) 34%, rgba(58,8,16,0.60) 66%, rgba(90,15,26,0.42) 100%),
    linear-gradient(0deg, rgba(20,4,7,0.85) 0%, transparent 45%);
}
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 72px 0 88px; min-height: 76vh; }
.hero__content { max-width: 640px; }
.hero__eyebrow { display: inline-block; color: var(--gold-1); letter-spacing: 1.5px; font-size: 0.85rem; font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.26; letter-spacing: 1px; text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.hero h1 span { color: var(--gold); }
.hero__slogan { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; margin-top: 16px; color: #fff; }
.hero__desc { color: #e6ccce; margin: 16px 0 30px; font-size: 1.06rem; max-width: 560px; line-height: 1.8; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 14px; margin-top: 52px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 12px; padding-right: 22px; border-right: 1px solid rgba(255,255,255,0.16); }
.stat:last-child { border-right: none; }
.stat__ic {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: linear-gradient(180deg, rgba(230,181,58,0.22), rgba(230,181,58,0.08));
  border: 1px solid rgba(230,181,58,0.4); font-size: 1.25rem;
}
.stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gold-1); line-height: 1.1; }
.stat span { font-size: 0.85rem; color: #d8bfc2; }
/* Stat band (dark rounded card overlapping hero bottom) */
.statband { background: linear-gradient(180deg, var(--maroon-ink) 0%, #2a0710 100%); }
.statband .container { position: relative; }
.statband__card {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: linear-gradient(160deg, rgba(58,8,16,0.92), rgba(28,5,9,0.96));
  border: 1px solid rgba(230,181,58,0.32); border-radius: var(--radius-lg);
  padding: 26px 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); margin-top: -46px;
}
.statband__item { display: flex; align-items: center; gap: 16px; justify-content: center; position: relative; }
.statband__item + .statband__item::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(230,181,58,0.22);
}
.statband__ic {
  flex: 0 0 auto; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; font-size: 1.5rem;
  background: linear-gradient(180deg, rgba(230,181,58,0.24), rgba(230,181,58,0.08));
  border: 1px solid rgba(230,181,58,0.45);
}
.statband__meta { display: block; }
.statband__item strong { display: block; font-size: 2rem; font-weight: 800; color: var(--gold-1); line-height: 1.3; }
.statband__label { display: block; font-size: 0.98rem; font-weight: 600; color: #fff; margin-top: 2px; }
.statband__sub { display: block; font-size: 0.82rem; color: #cbaeb2; margin-top: 1px; }

/* Clients logos */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.client {
  flex: 1 1 170px; max-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  min-height: 96px; padding: 18px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.client img { max-width: 100%; max-height: 56px; width: auto; object-fit: contain; opacity: 1; transition: transform 0.2s ease; }
.client:hover img { transform: scale(1.05); }
.client__name { font-weight: 700; font-size: 0.95rem; color: #8f8489; text-align: center; letter-spacing: 0.3px; transition: color 0.2s; }
.client:hover .client__name { color: var(--maroon); }

/* Sections */
.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.section--dark {
  color: #fff; position: relative;
  background: radial-gradient(900px 400px at 12% 0%, #7d1523 0%, transparent 55%),
              linear-gradient(160deg, var(--maroon-2) 0%, var(--maroon-ink) 100%);
}
.section__head { text-align: center; width: min(720px, 92%); margin: 0 auto 56px; }
/* หัวข้อแบบชิดซ้าย + ลิงก์ "ดูทั้งหมด" ชิดขวา (ส่วนบริการ/บทความ) */
.section__head--row { width: min(1200px, 92%); text-align: left; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; margin-bottom: 40px; }
.section__head--row .section__sub { max-width: 640px; }
.seeall {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-bottom: 6px;
  color: var(--gold-deep); font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid rgba(217,167,44,0.5); border-radius: 999px; padding: 9px 20px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.16s ease;
}
.seeall:hover { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #4a2a00; border-color: transparent; transform: translateY(-2px); }
.section--dark .seeall { color: var(--gold-1); border-color: rgba(230,181,58,0.5); }
.section--dark .seeall:hover { color: #4a2a00; }
/* ข้อความไทยไม่ควรมี letter-spacing (สระ/วรรณยุกต์จะหลุดตำแหน่ง) — คง tracking ไว้เฉพาะ eyebrow ที่เป็นภาษาอังกฤษ */
.eyebrow { color: var(--gold-deep); font-weight: 600; letter-spacing: normal; text-transform: uppercase; font-size: 0.8rem; }
.eyebrow[data-content="servicesEyebrow"], .eyebrow[data-content="appEyebrow"] { letter-spacing: 2px; }
.eyebrow--light { color: var(--gold-1); }
.section__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; margin-top: 12px; color: var(--maroon-deep); }
.section--dark .section__head h2 { color: #fff; }
.section__sub { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.section--dark .section__sub { color: #e6ccce; }

/* About / Chairman */
.about { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 54px; align-items: center; }
.about__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__photo img { width: 100%; display: block; }
.about__plate {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: linear-gradient(180deg, rgba(30,6,10,0.55), rgba(20,4,7,0.96));
  border: 1px solid rgba(230,181,58,0.3); border-radius: 14px; padding: 16px 20px; color: #fff;
  backdrop-filter: blur(3px);
}
.about__plate strong { display: block; font-size: 1.3rem; font-weight: 600; }
.about__plate span { display: block; color: var(--gold-1); font-size: 0.92rem; margin-top: 2px; }
.about__plate em { display: block; font-style: normal; font-size: 0.8rem; color: #cbb2b6; margin-top: 4px; }
.about__body h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; color: var(--maroon-deep); margin: 10px 0 20px; }
.about__quote { position: relative; font-size: 1.12rem; color: #4a3a3e; line-height: 1.9; padding-left: 8px; }
.qmark { color: var(--gold); font-size: 2.4rem; font-family: Georgia, serif; vertical-align: -0.4em; margin-right: 4px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.vm__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start;
}
.vm__icon { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.vm__icon--maroon { background: linear-gradient(160deg, var(--maroon), var(--maroon-2)); }
.vm__icon--gold { background: linear-gradient(160deg, var(--gold-1), var(--gold-2)); }
.vm__card h4 { font-size: 1.12rem; color: var(--maroon-deep); font-weight: 600; margin-bottom: 4px; }
.vm__card p { font-size: 0.94rem; color: var(--muted); }

/* Services */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.scard {
  background: linear-gradient(180deg, rgba(94,15,28,0.50) 0%, rgba(28,5,9,0.86) 100%);
  border: 1px solid rgba(230,181,58,0.22); border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0,0,0,0.4); position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.scard:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,0.5); border-color: rgba(230,181,58,0.55); }
.scard__media {
  position: relative; height: 158px; background-size: cover; background-position: center;
}
.scard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,4,7,0) 40%, rgba(20,4,7,0.55) 100%);
}
.scard__media--photo { background-color: var(--maroon-2); }
/* cohesive warm maroon/gold family (matches the dark mockup palette) */
.scard__media--blue   { background-image: linear-gradient(150deg, #9a6b16 0%, #4a2a08 100%); }
.scard__media--pink   { background-image: linear-gradient(150deg, #8a1a2a 0%, #3a0810 100%); }
.scard__media--purple { background-image: linear-gradient(150deg, #6b1330 0%, #24061a 100%); }
.scard__media--gold2  { background-image: linear-gradient(150deg, #b9861f 0%, #6b4b10 100%); }
.scard__media--teal   { background-image: linear-gradient(150deg, #8a3a14 0%, #2f0f06 100%); }
.scard__media--red    { background-image: linear-gradient(150deg, #a01d2e 0%, #4a0c14 100%); }
.scard__badge {
  position: absolute; left: 22px; bottom: -26px; z-index: 2;
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; color: #4a2a00;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border: 3px solid #fff; box-shadow: 0 10px 22px rgba(185,134,31,0.4);
}
.scard__body { padding: 40px 26px 26px; }
.scard h3 { font-size: 1.18rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.scard p { color: #e4cccf; font-size: 0.96rem; }
.scard__link {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 16px;
  width: 40px; height: 40px; border-radius: 50%; color: var(--gold-1); font-size: 1.2rem; font-weight: 700;
  background: rgba(230,181,58,0.14); border: 1px solid rgba(230,181,58,0.35);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.scard:hover .scard__link { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #4a2a00; transform: translateX(3px); }

/* Timeline (horizontal) */
.tline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 10px; }
.tline__track { position: absolute; top: 39px; left: 8%; right: 8%; height: 3px; background: linear-gradient(90deg, var(--maroon), var(--gold-2)); border-radius: 3px; }
.tline__item { display: flex; flex-direction: column; align-items: center; position: relative; }
.tline__dot {
  width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem; color: #fff; border: 4px solid #fff; box-shadow: var(--shadow); z-index: 1; margin-bottom: 22px;
}
.tline__dot--maroon { background: linear-gradient(160deg, var(--maroon), var(--maroon-2)); }
.tline__dot--gold { background: linear-gradient(160deg, var(--gold-1), var(--gold-2)); color: #4a2a00; }
.tline__dot--present { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon-ink)); color: var(--gold-1); font-size: 0.92rem; }
.tline__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); text-align: center; width: 100%; }
.tline__ic { font-size: 1.7rem; margin-bottom: 8px; }
.tline__card h3 { font-size: 1rem; font-weight: 600; color: var(--maroon-deep); margin-bottom: 6px; }
.tline__card p { font-size: 0.88rem; color: var(--muted); }

/* Application */
.app { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
.app__text h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; margin: 10px 0 16px; }
.app__text > p { color: #e6ccce; font-size: 1.05rem; margin-bottom: 22px; }
.app__features { list-style: none; display: grid; gap: 13px; }
.app__features li { color: #f3e2e4; font-size: 1rem; padding-left: 30px; position: relative; }
.app__features li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--gold); color: var(--maroon-ink); border-radius: 50%; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.app__visual { position: relative; min-height: 480px; }
/* composition ทแยง: แดชบอร์ด (landscape) หลัง-ขวาบน ใส่กรอบทองให้เด่นจากพื้นมืด, โปสเตอร์/มือถือ (portrait) หน้า-ซ้ายล่าง ซ้อนมุมเดียว เห็นชัดทั้งคู่ */
.app__phone { position: absolute; left: 0; bottom: 0; width: 270px; border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.55); z-index: 2; }
.app__dash { position: absolute; top: 20px; right: 0; width: 440px; border-radius: 12px; border: 1px solid rgba(230,181,58,0.4); box-shadow: 0 22px 48px rgba(0,0,0,0.5); z-index: 1; }

/* Grid 4 col */
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Credentials / trust strip (dark rounded panel) */
.creds { background: linear-gradient(180deg, #1c0509 0%, #2a0710 100%); padding: 20px 0 64px; }
.creds__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: linear-gradient(160deg, #5e0f1c 0%, #1c0509 100%);
  border: 1px solid rgba(230,181,58,0.28); border-radius: var(--radius-lg);
  padding: 30px 12px; box-shadow: 0 22px 52px rgba(58,8,16,0.28);
}
.cred { display: flex; align-items: center; gap: 14px; padding: 6px 26px; position: relative; }
.cred + .cred::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: rgba(230,181,58,0.22); }
.cred__ic {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #4a2a00;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}
.cred strong { color: #fff; font-weight: 600; font-size: 1.02rem; display: block; }
.cred span { color: #d8bfc2; font-size: 0.86rem; }

/* Real staff band */
.staffband__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 46px; align-items: center; }
.staffband__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(230,181,58,0.28); }
.staffband__photo img { width: 100%; display: block; filter: contrast(1.18) saturate(1.22) brightness(0.95); }
.staffband__badge { position: absolute; left: 14px; bottom: 14px; background: rgba(20,4,7,0.82); color: #fff; font-size: 0.8rem; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(230,181,58,0.35); backdrop-filter: blur(4px); }
.staffband__text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin: 10px 0 14px; }
.staffband__text > p { color: #e6ccce; font-size: 1.04rem; margin-bottom: 26px; }
.staffband__stats { display: flex; gap: 16px; flex-wrap: wrap; }
.staffband__stats > div { flex: 1; min-width: 128px; background: rgba(255,255,255,0.06); border: 1px solid rgba(230,181,58,0.3); border-radius: 14px; padding: 16px 18px; }
.staffband__stats strong { display: block; font-size: 1.85rem; font-weight: 700; color: var(--gold-1); line-height: 1.3; }
.staffband__stats span { font-size: 0.85rem; color: #e6ccce; }

/* Why choose PP SECURE (features + team stats) */
.whychoose__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: start; }
.whychoose__features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.wfeat { display: flex; gap: 14px; align-items: flex-start; }
.wfeat__ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); box-shadow: 0 8px 18px rgba(0,0,0,0.3); }
.wfeat strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.wfeat span { color: #e6ccce; font-size: 0.88rem; line-height: 1.55; }
.whychoose__media { position: relative; margin-top: -150px; }/* ดึงรูป+แถบสถิติขึ้นไปเสมอหัวข้อ ใช้พื้นที่ว่างข้างขวา (เฉพาะจอ 2 คอลัมน์ — reset ที่ breakpoint มือถือ) */
.whychoose__media img { width: 100%; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(230,181,58,0.28); filter: contrast(1.12) saturate(1.15); }
.whychoose__badge { position: absolute; left: 14px; top: 14px; background: rgba(20,4,7,0.82); color: #fff; font-size: 0.8rem; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(230,181,58,0.35); backdrop-filter: blur(4px); }
.whychoose__stats { position: static; margin-top: 18px; display: flex; gap: 12px; padding: 18px 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(58,8,16,0.95), rgba(28,5,9,0.97)); border: 1px solid rgba(230,181,58,0.32); box-shadow: 0 22px 48px rgba(0,0,0,0.5); }
.whychoose__stats > div { flex: 1; text-align: center; position: relative; }
.whychoose__stats > div + div::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(230,181,58,0.22); }
.whychoose__stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold-1); line-height: 1.3; }
.whychoose__stats span { font-size: 0.78rem; color: #e6ccce; }

/* บนจอกว้าง รูปถูกยกขึ้นมาอยู่ข้างหัวข้อ จึงต้องจำกัด copy ให้อยู่ในคอลัมน์ซ้าย
   เพื่อไม่ให้ภาพที่วาดทีหลังซ้อนทับข้อความ */
@media (min-width: 1001px) {
  .whychoose > .section__head {
    width: min(1200px, 92%);
    max-width: none;
    text-align: left;
  }
  .whychoose > .section__head .section__head-main {
    flex: 0 0 calc(52.5% - 26px);
    width: calc(52.5% - 26px);
  }
}

/* Area / solution cards */
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
.acard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(217,167,44,0.5); }
.acard__ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: linear-gradient(160deg, #fbe0e4, #fbf1d9); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.acard h3 { font-size: 1.15rem; font-weight: 600; color: var(--maroon-deep); margin-bottom: 8px; }
.acard p { color: var(--muted); font-size: 0.94rem; }
.addon { margin-top: 34px; background: var(--cream); border: 1px dashed rgba(138,26,42,0.25); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.addon__label { font-weight: 600; color: var(--maroon-deep); }
.addon__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.addon__chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 0.92rem; color: var(--text); }

/* Articles */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post__thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.post__thumb--1 { background: linear-gradient(160deg, #7d1523, #3a0810); }
.post__thumb--2 { background: linear-gradient(160deg, #b9861f, #7a5211); }
.post__thumb--3 { background: linear-gradient(160deg, #5e0f1c, #241016); }
.post__thumb--cover { background-size: cover; background-position: center; }
.post__thumb span { filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
.post__body { padding: 22px 24px 24px; }
.post__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post__tag { display: inline-block; background: var(--cream-2); color: var(--maroon); font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.post__date { font-size: 0.82rem; color: var(--muted); }
.post__body h3 a { color: inherit; }
.post__body h3 a:hover { color: var(--maroon); }
a.post__thumb { text-decoration: none; }
.articles__more { text-align: center; margin-top: 34px; }
.post__body h3 { font-size: 1.1rem; font-weight: 600; color: var(--maroon-deep); line-height: 1.4; margin-bottom: 8px; }
/* จำกัดข้อความในการ์ดให้สั้น (~3 บรรทัด) แล้วตัดด้วย … — เนื้อหาเต็มอ่านได้ในหน้ารายละเอียด
   กันหน้าแรกยาวเกินเมื่อกิจกรรม/บทความมี desc ยาว (ดันส่วนติดต่อ/ท้ายเว็บลงไปไกล) */
.post__body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.post__link { color: var(--gold-deep); font-weight: 600; font-size: 0.92rem; }
.post__link:hover { color: var(--maroon); }
.post__link--btn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }

/* Activity cards (clickable → photo lightbox) */
.post--activity .post__thumb { cursor: pointer; position: relative; }
.post--activity .post__thumb::after { content: "🔍"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: rgba(20,4,7,0.35); opacity: 0; transition: opacity 0.2s; }
.post--activity:hover .post__thumb::after { opacity: 1; }
.post__count { position: absolute; right: 12px; bottom: 12px; z-index: 1; background: rgba(20,4,7,0.8); color: #fff; font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(230,181,58,0.35); }

/* Photo lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(12,2,4,0.9); backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox__fig { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__fig img { max-width: 92vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 70px rgba(0,0,0,0.6); object-fit: contain; }
.lightbox__fig figcaption { color: #fff; font-size: 0.95rem; text-align: center; }
.lightbox__close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ปุ่ม + กล่องเล่นวิดีโอแนะนำในส่วนหัวเว็บ (ฝัง YouTube) */
.hero__videobtn { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); padding-left: 14px; }
.hero__videobtn[hidden] { display: none; }  /* .btn เป็น inline-flex จึงต้องทับ [hidden] เอง */
.hero__videobtn:hover { border-color: var(--gold); color: var(--gold-1); }
.hero__videobtn__ic {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; padding-left: 3px;  /* สามเหลี่ยมมีช่องว่างด้านขวาในตัว — ดันขวาให้ดูอยู่กลางวง */
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 100%); color: #4a2a00;
}
.videobox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(12,2,4,0.92); backdrop-filter: blur(4px); }
.videobox.open { display: flex; }
.videobox__frame { width: min(1100px, 92vw); aspect-ratio: 16 / 9; max-height: 82vh; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.6); background: #000; }
.videobox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.videobox__close { position: fixed; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: #fff; font-size: 1.2rem; cursor: pointer; }
.videobox__close:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 640px) { .videobox { padding: 16px; } }

/* Careers */
.careers { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.careers__intro h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin: 10px 0 14px; }
.careers__intro > p { color: #e6ccce; font-size: 1.04rem; margin-bottom: 24px; }
.careers__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.careers__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jcard { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 22px 20px; backdrop-filter: blur(4px); }
.jcard h4 { color: var(--gold-1); font-size: 1.02rem; font-weight: 600; margin-bottom: 12px; }
.jcard ul, .jcard ol { padding-left: 18px; display: grid; gap: 8px; }
.jcard li { color: #ecdcde; font-size: 0.92rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: start; }
.contact__info { padding-top: 6px; }
.contact__list { list-style: none; display: grid; gap: 18px; margin-bottom: 24px; }
.contact__list li { font-size: 1.04rem; display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.contact__list a:hover { color: var(--maroon); }
.cic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact__form { background: #fff; padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; color: var(--maroon-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 1rem; font-weight: 300; background: #fdfbfa;
  transition: border-color 0.2s, box-shadow 0.2s; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217, 167, 44, 0.18);
}
.field input.invalid { border-color: #e5484d; }
.form__note { margin-top: 14px; font-weight: 500; text-align: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 300; color: var(--text); cursor: pointer; }
.check input { width: auto; margin: 0; accent-color: var(--maroon); flex: 0 0 auto; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn--line { background: #06c755; color: #fff; box-shadow: 0 10px 22px rgba(6,199,85,0.35); }
.btn--line:hover { filter: brightness(1.06); }
.btn--fb { background: #1877f2; color: #fff; box-shadow: 0 10px 22px rgba(24,119,242,0.35); }
.btn--fb:hover { filter: brightness(1.06); }
.btn--fb::before { content: "f"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1877f2; font-weight: 800; font-size: 0.85rem; }

/* Floating LINE button */
.line-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  background: #06c755; color: #fff; padding: 13px 20px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 12px 30px rgba(6,199,85,0.45);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.line-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(6,199,85,0.55); }
.line-fab__ic { font-size: 1.2rem; }
/* Facebook variant of the floating button */
.line-fab--fb { background: #1877f2; box-shadow: 0 12px 30px rgba(24,119,242,0.45); }
.line-fab--fb:hover { box-shadow: 0 16px 36px rgba(24,119,242,0.55); }
.line-fab--fb .line-fab__ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #1877f2; font-weight: 800; font-size: 0.95rem; }

/* Footer */
.footer { background: linear-gradient(180deg, var(--maroon-deep), var(--maroon-ink)); color: #cbb2b6; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1.2fr 0.9fr 1.35fr; gap: 34px; padding-bottom: 44px; }
/* Footer newsletter */
.footer__news-txt { font-size: 0.9rem; margin: 0 0 14px !important; }
.footer__news-form { display: flex; flex-direction: column; gap: 10px; }
.footer__news-form input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; font-size: 0.95rem; }
.footer__news-form input::placeholder { color: rgba(255,255,255,0.45); }
.footer__news-form input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217,167,44,0.18); }
.footer__news-note { margin-top: 10px !important; font-size: 0.88rem !important; color: var(--gold-1) !important; }
.brand--footer .brand__text { color: #fff; }
.footer__brand > p { margin-top: 16px; font-size: 0.92rem; line-height: 1.8; max-width: 320px; }
.footer__license { color: var(--gold-1) !important; font-size: 0.85rem !important; margin-top: 12px !important; opacity: 0.9; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; transition: transform 0.18s ease, background 0.2s, color 0.2s, box-shadow 0.2s; }
.footer__social a:hover { transform: translateY(-3px); }
.footer__social a[aria-label="Facebook"]:hover { background: #1877f2; color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(24,119,242,0.45); }
.footer__social a[aria-label="Line"]:hover { background: #06c755; color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(6,199,85,0.45); }
.footer__social a[aria-label="YouTube"]:hover { background: #ff0000; color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(255,0,0,0.4); }
.footer__social a[aria-label="TikTok"]:hover { background: #010101; color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(0,0,0,0.5); }
.footer__col h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: #c3aab0; font-size: 0.92rem; margin-bottom: 11px; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold-1); }
.footer__col p .cic { width: auto; height: auto; background: none; display: inline; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; }
.footer__bar-inner a { margin-left: 22px; color: #c3aab0; }
.footer__bar-inner a:hover { color: var(--gold-1); }

/* Subpages (article / blog) */
body.subpage { background: var(--cream); }
body.subpage .nav { background: rgba(28, 5, 9, 0.96); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0,0,0,0.28); }
.subpage__main { padding-top: 150px; padding-bottom: 80px; min-height: 70vh; }

.article { width: min(760px, 92%); }
.article__crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.article__crumb a { color: var(--maroon); }
.article__crumb a:hover { text-decoration: underline; }
.article__head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.article__head .post__tag { margin-bottom: 14px; }
.article__head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; color: var(--maroon-deep); line-height: 1.3; }
.article__meta { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
.article__cover { margin: 0 0 28px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.article__cover img { width: 100%; display: block; }
.article__body { font-size: 1.08rem; line-height: 1.95; color: #3a2e31; }
.article__body a { color: var(--maroon); text-decoration: underline; }
.md-img { max-width: 100%; height: auto; border-radius: 10px; }
.md-figure { margin: 24px 0; text-align: center; }
.md-figure .md-img { border-radius: 12px; box-shadow: var(--shadow); }
.article__body h2 { font-size: 1.4rem; font-weight: 600; color: var(--maroon-deep); margin: 30px 0 12px; }
.article__body h3 { font-size: 1.15rem; font-weight: 600; color: var(--maroon-deep); margin: 24px 0 10px; }
.article__body p { margin-bottom: 18px; }
.article__body ul { margin: 0 0 18px; padding-left: 26px; display: grid; gap: 8px; }
.article__body li { line-height: 1.8; }
.article__body strong { color: var(--maroon-deep); font-weight: 600; }
.article__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.article__loading { color: var(--muted); text-align: center; padding: 40px 0; }

/* ===== Apply page (apply.html) ===== */
.apply { max-width: 760px; }
.apply__head { margin: 4px 0 24px; }
.apply__head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; color: var(--maroon-deep); margin-bottom: 8px; }
.apply__head p { color: var(--muted); }
.apply__sect { font-size: 1.05rem; font-weight: 600; color: var(--maroon); margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.apply__sect:first-of-type { margin-top: 0; }
.apply__done-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: center; padding: 54px 30px; }
.apply__done-ic { font-size: 3rem; display: block; margin-bottom: 14px; }
.apply__done-card h2 { color: var(--maroon-deep); font-weight: 700; margin-bottom: 10px; }
.apply__done-card p { color: var(--muted); margin-bottom: 24px; line-height: 1.9; }

/* ===== Service detail page (service.html) ===== */
#service { max-width: 900px; }
.svc-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  margin: 4px 0 28px; min-height: 240px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: #fff; box-shadow: var(--shadow-lg);
}
.svc-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,4,7,0.15) 0%, rgba(20,4,7,0.30) 45%, rgba(20,4,7,0.86) 100%);
}
.svc-hero--photo { background-color: var(--maroon-2); }
/* รูปบางใบเป็นโปสเตอร์ที่มีตัวหนังสือของตัวเอง — เบลอ + คลุมเข้มกว่าปกติ ไม่งั้นชื่อบริการอ่านไม่ออก */
.svc-hero--photo::before {
  content: ""; position: absolute; inset: -8px;
  background-image: inherit; background-size: cover; background-position: center;
  filter: blur(2px);
}
.svc-hero--photo::after {
  background: linear-gradient(180deg, rgba(20,4,7,0.32) 0%, rgba(20,4,7,0.52) 45%, rgba(20,4,7,0.92) 100%);
}
.svc-hero--blue   { background-image: linear-gradient(150deg, #9a6b16 0%, #4a2a08 100%); }
.svc-hero--pink   { background-image: linear-gradient(150deg, #8a1a2a 0%, #3a0810 100%); }
.svc-hero--purple { background-image: linear-gradient(150deg, #6b1330 0%, #24061a 100%); }
.svc-hero--gold2  { background-image: linear-gradient(150deg, #b9861f 0%, #6b4b10 100%); }
.svc-hero--teal   { background-image: linear-gradient(150deg, #8a3a14 0%, #2f0f06 100%); }
.svc-hero--red    { background-image: linear-gradient(150deg, #a01d2e 0%, #4a0c14 100%); }
.svc-hero__inner { position: relative; z-index: 1; padding: 30px 34px; width: 100%; }
.svc-hero__icon { display: block; font-size: 2.1rem; margin-bottom: 8px; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4)); }
.svc-hero__title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,0.4); }
.svc-hero__tagline { color: var(--gold-1); font-size: 1.05rem; font-weight: 500; margin-top: 8px; }
.svc-badge { display: inline-block; margin-top: 14px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #4a2a00; font-weight: 700; font-size: 0.85rem; padding: 5px 15px; border-radius: 999px; box-shadow: 0 8px 18px rgba(185,134,31,0.35); }
.svc-desc { font-size: 1.06rem; line-height: 1.95; color: #3a2e31; margin-bottom: 8px; }
.svc-h2 { font-size: 1.32rem; font-weight: 700; color: var(--maroon-deep); margin: 32px 0 16px; }
.svc-duties { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.svc-duty { display: flex; gap: 12px; align-items: flex-start; color: #3a2e31; font-size: 1rem; line-height: 1.6; }
.svc-duty__ic { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #4a2a00; font-weight: 700; font-size: 0.78rem; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.svc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.svc-branches__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-branch { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.svc-branch strong { display: block; color: var(--maroon-deep); font-weight: 600; margin-bottom: 6px; }
.svc-branch span { color: var(--muted); font-size: 0.94rem; }

/* ---- บล็อกเสริมหน้าบริการ (stats / highlights / chips / steps / related / faq) ---- */
.svc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 10px 0 4px; }
.svc-stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 14px; padding: 18px 14px; text-align: center; box-shadow: var(--shadow); }
.svc-stat__val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--maroon-deep); line-height: 1.2; }
.svc-stat__lbl { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--muted); }

.svc-hl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-hl__card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.svc-hl__ic { flex: 0 0 auto; font-size: 1.55rem; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #fff5e0, #ffe9bf); box-shadow: inset 0 0 0 1px rgba(185,134,31,0.25); }
.svc-hl__body { display: flex; flex-direction: column; gap: 4px; }
.svc-hl__title { color: var(--maroon-deep); font-weight: 700; font-size: 1.02rem; }
.svc-hl__text { color: #4a3d40; font-size: 0.95rem; line-height: 1.65; }

.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; color: var(--maroon-deep); font-weight: 500; font-size: 0.96rem; box-shadow: var(--shadow); }
.svc-chip__ic { font-size: 0.9rem; }

.svc-steps { list-style: none; display: grid; gap: 14px; padding: 0; }
.svc-step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.svc-step__num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #4a2a00; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.svc-step__body { display: flex; flex-direction: column; gap: 3px; }
.svc-step__title { color: var(--maroon-deep); font-weight: 700; }
.svc-step__text { color: #4a3d40; font-size: 0.95rem; line-height: 1.6; }

.svc-rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-rel__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.svc-rel__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-rel__media { height: 130px; background: var(--maroon-2) center / cover no-repeat; }
.svc-rel__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.svc-rel__date { color: var(--muted); font-size: 0.82rem; }
.svc-rel__title { color: var(--maroon-deep); font-weight: 700; font-size: 1rem; line-height: 1.45; }

.svc-faq { display: grid; gap: 10px; }
.svc-faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.svc-faq__q { cursor: pointer; list-style: none; padding: 15px 46px 15px 18px; position: relative; font-weight: 600; color: var(--maroon-deep); }
.svc-faq__q::-webkit-details-marker { display: none; }
.svc-faq__q::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--gold); font-weight: 700; }
.svc-faq__item[open] .svc-faq__q::after { content: "\2212"; }
.svc-faq__a { padding: 0 18px 16px; color: #4a3d40; line-height: 1.75; }
@media (max-width: 1000px) {
  .svc-stats { grid-template-columns: repeat(2, 1fr); }
  .svc-hl { grid-template-columns: 1fr; }
  .svc-rel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .svc-rel { grid-template-columns: 1fr; }
  .svc-step { gap: 12px; }
}

/* Responsive */
@media (max-width: 1000px) {
  .nav__links > a:not(.btn) { display: none; }
  .nav__links .btn { display: inline-flex; }
  .nav__toggle { display: block; }
  .nav__links.mobile-open { position: absolute; top: 100%; left: 0; right: 0; background: rgba(28,5,9,0.98); flex-direction: column; padding: 12px 0; gap: 0; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
  .nav__links.mobile-open > a:not(.btn) { display: block; padding: 12px 26px; width: 100%; }
  .nav__links.mobile-open .btn { margin: 10px 26px; }
  .hero__inner { padding: 40px 0 64px; min-height: 62vh; }
  .about, .app, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; margin: 0 auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .creds__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; padding: 24px 12px; }
  .cred + .cred::before { display: none; }
  .statband__card { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .statband__item + .statband__item::before { display: none; }
  .staffband__inner { grid-template-columns: 1fr; gap: 30px; }
  .whychoose__grid { grid-template-columns: 1fr; gap: 40px; }
  .whychoose__media { max-width: 520px; margin-top: 0; }
  .careers { grid-template-columns: 1fr; }
  .addon { flex-direction: column; align-items: flex-start; }
  .topbar__license { display: none; }
  .topbar__inner { justify-content: center; }
  .tline { grid-template-columns: 1fr; gap: 0; }
  .tline__track { display: none; }
  .tline__item { flex-direction: row; align-items: flex-start; gap: 20px; text-align: left; margin-bottom: 22px; }
  .tline__dot { margin-bottom: 0; width: 66px; height: 66px; flex: 0 0 auto; }
  .tline__card { text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .app__visual { min-height: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .app__phone { position: static; left: auto; bottom: auto; width: 260px; }
  .app__dash { position: static; top: auto; right: auto; width: 100%; max-width: 480px; }
  .svc-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .stat { border-right: none; }
  .hero__stats { gap: 22px; }
  .statband__card { grid-template-columns: 1fr; gap: 8px; padding: 20px 18px; }
  .statband__item { justify-content: flex-start; }
  .whychoose__features { grid-template-columns: 1fr; }
  .whychoose__stats { position: static; margin-top: 16px; left: auto; right: auto; }
  .statband__item + .statband__item::before { display: none; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .creds__grid { grid-template-columns: 1fr; }
  .careers__cards { grid-template-columns: 1fr; }
  .svc-duties { grid-template-columns: 1fr; }
  .svc-gallery { grid-template-columns: 1fr; }
  .svc-branches__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .vm { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
  .footer__bar-inner a { margin: 0 10px; }
  .app__dash { display: none; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .line-fab__txt { display: none; }
  .line-fab { padding: 14px; }
}

/* ===== UX effects & micro-interactions ===== */
/* Scroll reveal — ทำงานเฉพาะเมื่อ JS เพิ่มคลาส .anim (ถ้า JS ไม่รัน เนื้อหาแสดงปกติ) */
html.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.anim .reveal.in { opacity: 1; transform: none; }

/* Hero: ภาพพื้นหลังซูมช้า ๆ (Ken Burns) */
html.anim .hero__photo { animation: pp-kenburns 26s ease-in-out infinite alternate; }
@keyframes pp-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }

/* การ์ดบริการ: ซูมรูปนุ่ม ๆ ตอน hover */
.scard__media { transition: transform .5s ease; }
.scard:hover .scard__media { transform: scale(1.06); }

/* ปุ่มทอง: ประกายวิ่งผ่านตอน hover */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after {
  content: ""; position: absolute; top: 0; left: -140%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn--gold:hover::after { left: 150%; }

/* เมนูที่กำลังดูอยู่ (scrollspy) */
.nav__links a.nav--active:not(.btn) { color: var(--gold-1); }

/* ปุ่มกลับขึ้นด้านบน */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(230,181,58,0.5); background: rgba(28,5,9,0.85); color: var(--gold-1);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s, color .2s, border-color .2s;
  backdrop-filter: blur(6px); box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.anim .hero__photo { animation: none !important; }
  .btn--gold::after { display: none; }
}

/* ===== Corporate Premium 2026 ===== */
body {
  color: var(--pp-text);
  background: #fff;
}
.container { width: min(var(--pp-content), calc(100% - 48px)); }
.site-header { transition: transform .2s ease; }
.topbar { background: rgba(30, 4, 9, .96); }
.nav { border-bottom: 1px solid rgba(255,255,255,.1); }
.nav__inner { height: 72px; }
.nav.scrolled { background: rgba(38, 5, 11, .97); }
.brand__logo { height: 46px; }
.nav__links { gap: 24px; }
.nav__links > a:not(.btn) { position: relative; font-weight: 400; }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px;
  background: var(--pp-gold); transition: right .2s ease;
}
.nav__links > a:not(.btn):hover::after,
.nav__links > a.nav--active:not(.btn)::after { right: 0; }
.nav__toggle { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); }

.btn { min-height: 48px; padding: 12px 26px; border-radius: 12px; transition: transform .16s ease, box-shadow .2s ease, background .2s ease; }
.btn--sm { min-height: 42px; padding: 9px 18px; }
.btn--gold { background: linear-gradient(135deg, #e6c75f, var(--pp-gold)); color: #372500; box-shadow: 0 10px 24px rgba(167, 121, 18, .26); }
.btn--gold:hover { box-shadow: 0 14px 30px rgba(167, 121, 18, .34); }

.hero { min-height: 720px; background: var(--pp-deep); }
.hero__inner { min-height: 720px; padding: 86px 0 92px; }
.hero__overlay {
  background: linear-gradient(90deg, rgba(24,3,7,.98) 0%, rgba(36,5,10,.92) 38%, rgba(58,8,16,.58) 70%, rgba(58,8,16,.3) 100%),
              linear-gradient(0deg, rgba(24,3,7,.8) 0%, transparent 48%);
}
.hero__content { max-width: 680px; }
.hero__eyebrow { padding: 7px 12px; border: 1px solid rgba(244,220,138,.36); border-radius: 999px; background: rgba(255,255,255,.06); }
.hero h1 { margin-top: 12px; letter-spacing: -.02em; }
.hero__desc { max-width: 610px; color: #eadfe1; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: #e8d7da; font-size: .9rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust span::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(217,167,44,.16); border: 1px solid rgba(217,167,44,.42); color: var(--pp-gold-soft); font-weight: 700; }

.statband__card { margin-top: -54px; padding: 28px 24px; border-color: rgba(217,167,44,.28); box-shadow: 0 22px 60px rgba(26,3,8,.35); }
.section { padding: 104px 0; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head h2, .about__body h2, .app__body h2 { letter-spacing: -.025em; }
.eyebrow { letter-spacing: .14em; font-weight: 600; }
.section--cream { background: linear-gradient(180deg, #fcf9f7, var(--pp-cream)); }
.section--dark { background: radial-gradient(900px 500px at 12% -10%, #7b1523 0%, transparent 58%), linear-gradient(155deg, #530c18, #21040a); }

.scard, .acard, .post, .jcard, .vm__card, .cred, .contact__form, .contact__info {
  border-radius: var(--pp-radius-md); border-color: var(--pp-line); box-shadow: var(--pp-shadow-sm);
}
.scard { overflow: hidden; }
.scard__media { height: 210px; }
/* การ์ดพื้นสีเข้ม (ไล่เฉด maroon) — ตัวอักษรต้องเป็นสีอ่อน ไม่ใช่ --pp-* ที่เป็นโทนเข้มของธีมการ์ดขาว
   และเว้น padding บนให้พอ ไม่ให้ badge ที่ยื่นลงมา 26px มาทับหัวข้อ */
.scard__body { padding: 42px 22px 22px; }
.scard__body h3 { min-height: 2.55em; color: #fff; font-weight: 600; }
.scard__body p { color: #e4cccf; }
.scard__link { width: 42px; height: 42px; border-radius: 12px; background: rgba(230,181,58,0.14); border: 1px solid rgba(230,181,58,0.35); color: var(--gold-1); }
.scard:hover, .acard:hover, .post:hover, .jcard:hover { transform: translateY(-5px); box-shadow: var(--pp-shadow-md); }
.acard, .post, .jcard { transition: transform .2s ease, box-shadow .2s ease; }
.acard__ic, .scard__badge { filter: saturate(.75); }

.about__photo img, .whychoose__media img { border-radius: var(--pp-radius-lg); }
.about__plate { border-radius: 14px; }
.whychoose__feature { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; padding: 18px; }
.clients { gap: 16px; }
.client { box-shadow: none; min-height: 104px; }
.client:hover { border-color: rgba(138,26,42,.28); box-shadow: var(--pp-shadow-sm); }

.contact { align-items: start; }
.contact__info, .contact__form { padding: 30px; }
.contact__form { border: 1px solid var(--pp-line); box-shadow: var(--pp-shadow-md); }
.contact__form::before { content: "ข้อมูลสำหรับติดต่อกลับ"; display: block; color: var(--pp-deep); font-size: 1.12rem; font-weight: 600; margin-bottom: 18px; }
.field input, .field select, .field textarea {
  min-height: 48px; border: 1px solid var(--pp-line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pp-gold); box-shadow: var(--pp-focus); }
.check { min-height: 44px; border-radius: 10px; padding: 9px 10px; background: var(--pp-surface-muted); }
.form__note { border-radius: 10px; padding: 10px 12px; background: var(--pp-surface-muted); }

.footer { background: #21040a; }
.line-fab { border-radius: 14px; box-shadow: 0 14px 34px rgba(6,100,45,.28); }
.subpage__main { background: linear-gradient(180deg, var(--pp-cream), #fff 320px); }
.article__head h1, .apply__head h1 { letter-spacing: -.02em; }

/* Multi-step job application */
.apply { max-width: 940px; }
.apply .contact__form::before { display: none; }
.apply__head { text-align: center; max-width: 680px; margin: 8px auto 28px; }
.apply__progress { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 22px; }
.apply__step {
  display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 10px 12px; border: 1px solid var(--pp-line);
  border-radius: 12px; color: var(--pp-muted); background: #fff; font-size: .88rem;
}
.apply__step span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--pp-surface-muted); font-weight: 600; }
.apply__step.is-active { color: var(--pp-maroon); border-color: rgba(138,26,42,.3); box-shadow: var(--pp-shadow-sm); }
.apply__step.is-active span, .apply__step.is-done span { background: var(--pp-maroon); color: #fff; }
.apply__step.is-done { color: var(--pp-success); }
.apply__panel[hidden] { display: none !important; }
.apply__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.apply__actions .btn { min-width: 150px; }
.apply__privacy { margin: 18px 0 0; color: var(--pp-muted); font-size: .82rem; text-align: center; }

@media (max-width: 1000px) {
  .nav__links.mobile-open { inset: 100% 16px auto; border: 1px solid rgba(255,255,255,.1); border-radius: 0 0 16px 16px; overflow: hidden; }
  .nav__links.mobile-open > a:not(.btn)::after { display: none; }
  .nav__links.mobile-open > a:not(.btn) { min-height: 48px; display: flex; align-items: center; }
  .hero, .hero__inner { min-height: 650px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, var(--pp-content)); }
  .topbar { display: none; }
  .nav__inner { height: 72px; }
  .hero { padding-top: 72px; min-height: auto; }
  .hero__inner { min-height: 650px; padding: 62px 0 84px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.5rem); }
  .hero__cta { display: grid; grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .hero__trust { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .statband__card { margin-top: -30px; }
  .section { padding: 76px 0; }
  .section__head { width: calc(100% - 32px); margin-bottom: 30px; }
  .contact__info, .contact__form { padding: 22px 18px; }
  .apply__progress { grid-template-columns: 1fr; }
  .apply__step { display: none; }
  .apply__step.is-active { display: flex; }
  .apply__actions { flex-direction: column-reverse; }
  .apply__actions .btn { width: 100%; }
}

/* ===== PP SECURE Experience refresh · system-wide public surfaces ===== */
.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px;
  border-radius: 10px; background: #fff; color: var(--pp-deep); font-weight: 600;
  box-shadow: var(--pp-shadow-md); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.topbar__inner { height: 36px; }
.topbar__license { font-size: .78rem; }
.topbar__right { gap: 14px; }
.topbar__line { padding: 3px 11px; }
.nav__inner { height: 78px; }
.brand__text { letter-spacing: -.01em; }
.brand__text small { letter-spacing: .18em; }

.hero { min-height: 680px; padding-top: 114px; }
.hero__inner { min-height: 680px; padding: 72px 0 92px; }
.hero__content { max-width: 700px; }
.hero h1 { max-width: 720px; font-size: clamp(3rem, 6.2vw, 5.3rem); line-height: 1.12; letter-spacing: -.045em; }
.hero__slogan { max-width: 620px; margin-top: 22px; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.55; }
.hero__desc { margin-top: 12px; max-width: 600px; color: rgba(255,255,255,.78); }
.hero__cta { margin-top: 4px; }
.hero__trust { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }

.statband { background: #fff; }
.statband__card {
  background: #fff; border: 1px solid var(--pp-line); box-shadow: 0 24px 58px rgba(45, 9, 16, .13);
}
.statband__item strong { color: var(--pp-maroon); }
.statband__label { color: var(--pp-deep); }
.statband__sub { color: var(--pp-muted); }
.statband__item + .statband__item::before { background: var(--pp-line); }
.statband__ic { background: #fbf6e8; border-color: #ead8a6; }
.statband__ic svg { stroke: var(--pp-gold-600); }

.section { padding: 96px 0; }
.section__head--row { align-items: center; }
.section__head h2, .about__body h2, .careers__intro h2, .app__text h2 {
  line-height: 1.35; letter-spacing: -.035em;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 999px; background: currentColor; opacity: .72; }

.grid { gap: 20px; }
.scard {
  display: flex; flex-direction: column; background: linear-gradient(165deg, #4a0b15, #21040a); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 42px rgba(24,3,7,.22);
}
.scard__media { height: 196px; overflow: hidden; }
.scard__body { display: flex; flex: 1; flex-direction: column; padding: 38px 24px 24px; }
.scard__body h3 { min-height: 0; color: #fff; }
.scard__body p { flex: 1; margin-top: 6px; }
.scard__link {
  width: auto; height: auto; align-self: flex-start; gap: 8px; margin-top: 20px; padding: 8px 12px;
  border-radius: 9px; font-size: .86rem; font-weight: 500;
}
.scard__badge { width: 50px; height: 50px; bottom: -24px; border-radius: 12px; font-size: 1.25rem; }

.about { gap: clamp(38px, 6vw, 78px); }
.about__body { max-width: 670px; }
.about__story { color: var(--pp-neutral-700); line-height: 1.9; }
.about__quote { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--pp-gold); background: var(--pp-neutral-50); }
.vm__card { padding: 20px; box-shadow: none; }

.acard, .post, .jcard { border: 1px solid var(--pp-line); box-shadow: none; }
.acard:hover, .post:hover, .jcard:hover { border-color: rgba(138,26,42,.24); }
.post__body { display: flex; flex-direction: column; }
/* ดันลิงก์ "ดูกิจกรรม/อ่านต่อ" ไปชิดล่างการ์ดให้เท่ากันทุกใบ (ข้อความถูก clamp แล้ว จึงไม่ใช้ fl:1 กับ p เพื่อกันช่องว่างใต้ข้อความ) */
.post__body .post__link { margin-top: auto; }

.contact { gap: 26px; }
.contact__info { position: sticky; top: 112px; background: var(--pp-maroon-950); color: #fff; border: 0; box-shadow: var(--pp-shadow-lg); }
.contact__info a, .contact__info b { color: #fff; }
.contact__list li { border-color: rgba(255,255,255,.12); }
.contact__form { background: #fff; }
.contact__form::after {
  content: "ทีมงานจะติดต่อกลับภายใน 24 ชั่วโมง · ข้อมูลของคุณจะใช้เพื่อการติดต่อเสนอราคาเท่านั้น";
  display: block; margin-top: 14px; color: var(--pp-muted); font-size: .78rem; text-align: center;
}
.field label { font-weight: 500; color: var(--pp-deep); }
.field input::placeholder, .field textarea::placeholder { color: #a79da0; }
.check { border: 1px solid transparent; cursor: pointer; }
.check:has(input:checked) { border-color: rgba(138,26,42,.25); background: #fbf3f4; color: var(--pp-maroon); }

.footer__grid { gap: 42px; }
.footer__col a { min-height: 32px; display: inline-flex; align-items: center; }

.mobile-actionbar { display: none; }

@media (max-width: 1000px) {
  .hero h1 { font-size: clamp(3rem, 8.2vw, 4.8rem); }
  .contact__info { position: static; }
}

@media (max-width: 620px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav__inner { height: 70px; }
  .brand__logo { height: 42px; }
  .brand__text { font-size: 1.14rem; }
  .brand__text small { font-size: .48rem; }
  .nav__links .btn { padding-inline: 14px; font-size: .82rem; }
  .hero { padding-top: 70px; min-height: 640px; }
  .hero__inner { min-height: 640px; padding: 44px 0 78px; }
  .hero__eyebrow { margin-bottom: 10px; font-size: .72rem; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.8rem); }
  .hero__slogan { margin-top: 18px; font-size: 1.18rem; }
  .hero__desc { font-size: .96rem; line-height: 1.75; margin-bottom: 22px; }
  .hero__trust { grid-template-columns: 1fr 1fr; font-size: .79rem; }
  .hero__trust span:last-child { grid-column: 1 / -1; }
  .statband__card { padding: 12px 16px; gap: 0; }
  .statband__item { padding: 13px 0; border-bottom: 1px solid var(--pp-line); }
  .statband__item:last-child { border-bottom: 0; }
  .statband__ic { width: 48px; height: 48px; }
  .statband__item strong { font-size: 1.55rem; }
  .statband__sub { display: none; }
  .section { padding: 68px 0; }
  .section__head h2 { font-size: 1.9rem; }
  .scard__media { height: 184px; }
  .vm { gap: 12px; }
  .vm__card { padding: 16px; }
  .contact__info, .contact__form { border-radius: 16px; }
  .footer { padding-bottom: 14px; }
  .line-fab, .to-top { display: none !important; }
  .mobile-actionbar {
    position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; display: grid;
    grid-template-columns: .8fr .8fr 1.4fr; min-height: 66px; padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--pp-line);
    box-shadow: 0 -10px 30px rgba(35,5,10,.12); backdrop-filter: blur(14px);
  }
  .mobile-actionbar a { display: grid; place-items: center; align-content: center; gap: 1px; color: var(--pp-neutral-700); }
  .mobile-actionbar a > span { font-size: 1rem; color: var(--pp-maroon); line-height: 1; }
  .mobile-actionbar small { font-size: .7rem; font-weight: 500; }
  .mobile-actionbar__primary { border-radius: 11px; background: var(--pp-maroon); color: #fff !important; }
  .mobile-actionbar__primary span { color: var(--pp-gold-300) !important; }
}

/* ===== Responsive repair: real tablet layout (not stretched mobile) ===== */
@media (min-width: 761px) {
  .hero { min-height: 720px; }
  .hero__inner { min-height: 606px; padding: 52px 0 68px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .container { width: min(var(--pp-content), calc(100% - 40px)); }
  .hero__content { max-width: 610px; }
  .hero h1 { font-size: clamp(3.4rem, 8vw, 4.35rem); }

  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scard__media { height: 170px; }
  .scard__body { padding: 36px 18px 20px; }
  .scard h3 { font-size: 1.04rem; }
  .scard p { font-size: .88rem; }

  .about { grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
  .about__photo { max-width: none; margin: 0; }
  .about__body h2 { font-size: 2rem; }
  .about__story, .about__quote { font-size: .94rem; }
  .vm { grid-template-columns: 1fr; gap: 12px; }

  .whychoose__grid { grid-template-columns: 1.08fr .92fr; gap: 30px; }
  .whychoose__media { max-width: none; margin: 0; }

  .tline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .tline__track { display: block; }
  .tline__item { flex-direction: column; align-items: center; gap: 0; margin: 0; text-align: center; }
  .tline__dot { width: 62px; height: 62px; margin: 0 0 16px; font-size: .88rem; }
  .tline__card { min-height: 220px; padding: 16px 12px; text-align: center; }
  .tline__card p { font-size: .8rem; }

  .app { grid-template-columns: .92fr 1.08fr; gap: 28px; }
  .app__visual { position: relative; display: block; min-height: 430px; }
  .app__phone { position: absolute; left: 0; bottom: 0; width: 190px; }
  .app__dash { position: absolute; top: 30px; right: 0; display: block; width: min(360px, 86%); }

  .contact { grid-template-columns: .88fr 1.12fr; gap: 20px; }
  .contact__info, .contact__form { padding: 22px; }
}

@media (max-width: 620px) {
  .hero { min-height: 0; }
  .hero__inner { min-height: 0; padding: 38px 0 72px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.25rem); }
  .hero__slogan { font-size: 1.08rem; }
  .hero__desc { font-size: .91rem; }
}

/* ===== Critical layout containment & contrast repair ===== */
html {
  scroll-behavior: auto;
  scroll-padding-top: 146px;
}
main section[id],
.scroll-anchor { scroll-margin-top: 0; }

/* The app artwork is layered, so give it a fixed composition frame.
   This prevents either source image from escaping into adjacent sections. */
#app {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.app__visual {
  height: 520px;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
}
.app__phone {
  width: auto;
  height: min(500px, 96%);
  max-width: 46%;
  object-fit: contain;
}
.app__dash {
  width: min(500px, 82%);
  height: auto;
  max-height: 410px;
  object-fit: cover;
  object-position: top center;
}

/* The card has a dark surface; all nested contact copy must inherit its
   light foreground instead of the global body text colour. */
.contact__info,
.contact__info .contact__list li,
.contact__info .contact__list li > span:not(.cic),
.contact__info .contact__list li > span:not(.cic) span {
  color: #f7eef0;
}
.contact__info .contact__list a { color: #fff; }
.contact__info .cic { color: var(--pp-deep); }
#contact { padding-bottom: 72px; }

@media (min-width: 761px) and (max-width: 1000px) {
  html { scroll-padding-top: 106px; }
  .app__visual { height: 430px; min-height: 430px; }
  .app__phone { width: auto; height: 400px; max-width: 44%; }
  .app__dash { width: min(360px, 84%); max-height: 330px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 86px; }
  .app__visual {
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 0;
  }
  .app__phone {
    width: min(260px, 82vw);
    height: auto;
    max-width: 100%;
  }
  .app__dash {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* Preserve the CEO portrait's intrinsic ratio. The HTML height attribute is
   only a layout hint and must not remain fixed when CSS scales the width. */
.about__photo img {
  height: auto;
  aspect-ratio: auto;
}

/* Same fix for the why-choose photo, which never got it: CSS scales the width
   to the column while the HTML height attribute stays pinned, so the picture is
   squashed ~16% vertically at desktop width. It also means any replacement
   uploaded from the admin panel is distorted unless it happens to be 650x452. */
.whychoose__media img {
  height: auto;
  aspect-ratio: auto;
}

/* About section: mid-size screens need a reading layout, not a squeezed
   desktop split. The portrait becomes a contained profile banner and the
   supporting cards use the full content width. */
@media (min-width: 621px) and (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }
  .about__photo {
    width: min(560px, 100%);
    max-width: 560px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
  }
  .about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
  }
  .about__body {
    width: 100%;
    max-width: none;
  }
  .about__body h2 { font-size: clamp(1.9rem, 4.4vw, 2.35rem); }
  .about__story { max-width: 72ch; }
  .vm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .line-fab {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .line-fab__txt { display: none; }
}

/* Service badges intentionally bridge the image/body boundary. The card
   itself clips the outer shape; the media layer must not clip its badge. */
.scard__media { overflow: visible; }
.scard__badge { z-index: 3; }

/* ===== ส่วนกิจกรรม: สไลด์รูปทุกงาน (ซ้าย) + 3 งานล่าสุด (ขวา) ===== */
.actv {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* --- เวทีสไลด์ --- */
.actv__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow);
}
.actv__viewport { position: absolute; inset: 0; }
/* ทุกสไลด์ซ้อนกัน แล้วสลับด้วย opacity — ไม่ขยับ layout ระหว่างเปลี่ยนรูป */
.actv__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  text-decoration: none;
}
/* แสดงเฉพาะใบที่ติด is-on — JS ติดให้ใบแรกตั้งแต่ตอนสร้าง (อย่าใช้ :first-child เป็น fallback
   เพราะความจำเพาะเท่ากับ .is-on ทำให้ใบแรกค้างแสดงทับใบอื่นตลอดเวลา) */
.actv__slide.is-on { opacity: 1; visibility: visible; }
.actv__cap {
  width: 100%;
  padding: 44px 20px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 4, 7, 0.88), rgba(20, 4, 7, 0));
}
.actv__cap strong { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.actv__cap span { display: block; margin-top: 3px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); }

/* ปุ่มเลื่อน — ซ่อนไว้จาง ๆ แล้วชัดขึ้นเมื่อชี้/โฟกัส */
.actv__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--maroon-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, background 0.2s;
}
.actv__nav:hover, .actv__nav:focus-visible { opacity: 1; background: #fff; }
.actv__nav--prev { left: 12px; }
.actv__nav--next { right: 12px; }

.actv__dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  flex-wrap: wrap;
}
.actv__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.actv__dot.is-on { background: var(--gold); transform: scale(1.3); }

/* --- การ์ดกิจกรรมล่าสุดด้านขวา --- */
.actv__side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.actvmini {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.actvmini:hover {
  border-color: rgba(138, 26, 42, 0.24);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.actvmini__thumb {
  flex: 0 0 38%;
  border-radius: 12px;
  background: var(--cream-2) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.actvmini__body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding-right: 6px; }
.actvmini__date { font-size: 0.78rem; color: var(--muted); }
.actvmini__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--maroon-deep);
  line-height: 1.45;
  /* หัวข้อยาวให้ตัด 3 บรรทัด — การ์ดทุกใบสูงเท่ากันเสมอ ไม่ดันแถวเพี้ยน */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.actvmini:hover .actvmini__title { color: var(--maroon); }

/* แท็บเล็ตลงมา: สไลด์อยู่บน การ์ดล่าสุดเรียง 3 คอลัมน์ด้านล่าง */
@media (max-width: 900px) {
  .actv { grid-template-columns: 1fr; }
  .actv__side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .actvmini { flex-direction: column; }
  .actvmini__thumb { flex: 0 0 92px; }
  .actvmini__body { padding: 0 4px 4px; }
}
@media (max-width: 620px) {
  .actv__stage { aspect-ratio: 4 / 3.4; }
  .actv__side { grid-template-columns: 1fr; }
  .actvmini { flex-direction: row; }
  .actvmini__thumb { flex: 0 0 34%; }
  .actv__cap { padding: 34px 14px 14px; }
  .actv__cap strong { font-size: 0.94rem; }
}
