/* URETEK Theme A — Trust Blue */
:root {
  --navy: #0f2c5c;
  --navy-2: #163a72;
  --blue: #2a6fdb;
  --blue-soft: #eaf1fc;
  --orange: #F15A22;
  --orange-dk: #CD4C1D;
  --ink: #1d2533;
  --muted: #5b6473;
  --line: #e4e8ef;
  --bg: #f6f8fb;
  --white: #ffffff;
  --green: #1f9d57;
  --shadow: 0 10px 30px rgba(15,44,92,.08);
  --shadow-lg: 0 20px 50px rgba(15,44,92,.14);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Thai', 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body[data-lang="en"] { font-family: 'Inter', 'Noto Sans Thai', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ── Header ──────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 88px; }
.logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: .5px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo b { color: var(--orange); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  color: #3a4555;
  transition: .18s;
}
.nav-links a:hover,
.nav-links a.active { background: var(--blue-soft); color: var(--navy); }
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  font-weight: 700;
  font-size: 13px;
}
.lang button {
  border: 0;
  background: var(--white);
  padding: 8px 11px;
  cursor: pointer;
  color: #8a93a3;
  transition: .16s;
}
.lang button.on { background: var(--navy); color: #fff; }
.cta-nav {
  background: var(--orange);
  color: #fff;
  padding: 7px 16px;                 /* ความสูงเท่าปุ่มเปลี่ยนภาษา (.lang) */
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  border: 0;
  transition: .18s;
  box-shadow: 0 6px 16px rgba(241,90,34,.32);
  display: inline-flex;
  align-items: center;
}
.cta-nav:hover { background: var(--orange-dk); color: #fff; }
.burger {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
  margin-left: auto;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 22px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  color: #3a4555;
}
.mobile-nav a:hover { background: var(--blue-soft); color: var(--navy); }

/* ── Hero Slider ─────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; }
/* กรอบ hero ใช้อัตราส่วนตรงกับรูป (1600:580) → รูปเต็มกรอบทุกจอ ไม่ถูกซูม/ตัด · min-height กันสั้นเกินบนจอเดสก์ท็อปแคบ */
.hero-slides { position: relative; aspect-ratio: 1600 / 580; min-height: 440px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.on { opacity: 1; z-index: 2; }
.hero-slide::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
  z-index: 0;
}
.hero-slide .wrap { position: relative; z-index: 2; width: 100%; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: .16s;
}
.hero-arrow:hover { background: rgba(255,255,255,.28); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 9px;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: .2s;
  padding: 0;
}
.hero-dots button.on { background: var(--orange); width: 30px; border-radius: 6px; }
.big-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(241,90,34,.4);
}
.hero h1, .hero .hero-title {
  font-size: 46px;
  line-height: 1.18;
  font-weight: 800;
  margin: 18px 0 16px;
  max-width: 760px;
  text-shadow: 0 2px 16px rgba(10,30,60,.18);
}
.hero p.lead {
  font-size: 18px;
  color: #eaf1fc;
  max-width: 600px;
  margin-bottom: 30px;
  text-shadow: 0 1px 8px rgba(10,30,60,.18);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn-ghost {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: .18s;
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-primary {
  background: var(--orange);
  border: 0;
  color: #fff;
  padding: 13px 24px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(241,90,34,.4);
  transition: .18s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-dk); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 11px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: .18s;
  display: inline-block;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ── Stats bar ───────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { background: #fff; padding: 30px 18px; text-align: center; }
.stat .num { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat .lbl { font-size: 13px; color: #6b7585; font-weight: 500; }

/* ── Section base ────────────────────────────────── */
section.block { padding: 64px 0 36px; }
/* หน้ารายละเอียดผลงาน — padding บน-ล่าง 30px */
section.block.proj-detail-block { padding: 30px 0; }
/* Home slogan / intro */
.slogan-block { padding-bottom: 0; }
.slogan-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 36px 40px; box-shadow: var(--shadow);
}
.slogan-quote {
  font-size: 30px; font-weight: 800; color: var(--orange);
  margin-bottom: 18px; line-height: 1.3;
}
.slogan-text {
  color: #566070; font-size: 16.5px; max-width: 820px;
  margin: 0 auto 12px; line-height: 1.8;
}
@media (max-width: 600px) { .slogan-quote { font-size: 23px; } }
.sec-eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}
.sec-title { font-size: 32px; font-weight: 800; color: var(--navy); margin: 8px 0 10px; }
.sec-sub { color: #5b6473; font-size: 16px; max-width: 640px; }
.center { text-align: center; margin: 0 auto; }

/* ── Service cards ───────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: .2s;
  display: block;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-ic {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
}
.ic-ur { background: linear-gradient(135deg, #2a6fdb, #1746a0); }
.ic-mp { background: linear-gradient(135deg, #F15A22, #CD4C1D); }
.ic-cc { background: linear-gradient(135deg, #1f9d57, #147a41); }
.svc-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.svc-card p { color: #5b6473; font-size: 14.5px; margin-bottom: 16px; }
.svc-link { color: var(--blue); font-weight: 700; font-size: 14px; }

/* ── 2-column service cards with side slideshow ──── */
.svc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.svc-card-h {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.svc-card-h .svc-card-body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.svc-card-h .svc-card-body p { flex: 1; }
.svc-card-media { position: relative; min-height: 210px; background: var(--navy); }
.svc-slideshow { position: relative; width: 100%; height: 100%; min-height: 210px; overflow: hidden; }
.svc-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.svc-slide.on { opacity: 1; }
.svc-slideshow-empty {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-weight: 800; font-size: 30px; letter-spacing: 1px;
}
/* Project detail card */
.proj-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* slideshow หน้า project detail — ชิดขอบ ซ้าย-ขวา (ดันออกนอก padding) · ไม่มีมุมมน */
.proj-slideshow {
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 0;
  margin: 22px -38px 0;
  width: auto;
}
/* ปุ่ม actions — กลาง · ขนาดเท่ากัน */
.proj-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin: 22px 0 28px;
}
.proj-actions .proj-btn {
  min-width: 230px;
  padding: 7px 16px;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.proj-body { color: #566070; line-height: 1.8; }
@media (max-width: 600px) {
  .proj-card { padding: 24px; }
  .proj-slideshow { margin: 18px -24px 0; }
  .proj-actions .proj-btn { min-width: 0; width: 100%; }
}
/* slideshow manual navigation */
.svc-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(15,44,92,.45); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: .16s; opacity: .85;
}
.svc-nav:hover { background: rgba(15,44,92,.85); opacity: 1; }
.svc-nav.prev { left: 8px; }
.svc-nav.next { right: 8px; }
.svc-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; gap: 6px;
}
.svc-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.6); cursor: pointer; padding: 0; transition: .2s;
}
.svc-dots button.on { background: var(--orange); width: 20px; border-radius: 4px; }

/* ── สไลด์แบบมีแถบรูปย่อ (หน้ารายละเอียดผลงาน) ── */
.svc-counter {
  position: absolute; right: 14px; bottom: 12px; z-index: 4;
  background: rgba(15,44,92,.6); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 14px;
}
.svc-thumbs {
  display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 2px 0;
  scrollbar-width: thin;
}
.svc-thumb {
  flex: 0 0 auto; width: 104px; height: 66px; padding: 0;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; opacity: .6; background: #f0f3f8; -webkit-appearance: none;
  transition: opacity .15s, border-color .15s, box-shadow .15s;
}
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-thumb:hover { opacity: 1; }
.svc-thumb.on { opacity: 1; border-color: var(--orange); box-shadow: 0 0 0 2px rgba(241,90,34,.18); }
@media (max-width: 600px) { .svc-thumb { width: 84px; height: 54px; } }

/* ── CTA band ────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, var(--orange), #ff9354);
  border-radius: var(--radius);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  margin-top: 54px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: 24px; }
.cta-band p { opacity: .92; font-size: 15px; }
.cta-band .btn-cta {
  background: #fff;
  color: var(--orange-dk);
  border: 0;
  padding: 14px 26px;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
  transition: .16s;
  display: inline-block;
}
.cta-band .btn-cta:hover { background: rgba(255,255,255,.85); }

/* ── Projects (portfolio) ────────────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.filters a, .filters button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #566070;
  transition: .16s;
  text-decoration: none;
  display: inline-block;
}
.filters a.on, .filters button.on,
.filters a:hover, .filters button:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.port-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: .2s;
  display: flex;
  flex-direction: column;
}
.port-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.port-img {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  background: var(--navy-2);
}
.port-img img { width: 100%; height: 100%; object-fit: cover; }
.port-img .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15,44,92,.9);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: .5px;
  color: #fff;
}
.port-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.port-body h4 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.port-meta {
  font-size: 12.5px;
  color: #8a93a3;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.port-body p { font-size: 14px; color: #566070; flex: 1; margin-bottom: 16px; }
.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: #fff;
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  align-self: flex-start;
  transition: .16s;
}
.fb-link:hover { background: #0d63d4; color: #fff; }
.fb-link svg { width: 15px; height: 15px; fill: #fff; }

/* ── Service detail ──────────────────────────────── */
.svc-hero {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  margin-top: 26px;
}
.svc-hero .txt { padding: 38px; }
.pill {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin: 0 6px 6px 0;
}
.svc-hero h2 { font-size: 30px; color: var(--navy); margin: 14px 0 12px; }
.svc-hero p { color: #566070; margin-bottom: 22px; }
.svc-intro { color: #566070; margin-bottom: 22px; }
.svc-intro p { margin-bottom: 12px; }
/* rich text bullet lists (service sections, intro) */
/* หัวข้อย่อยในเนื้อหา (จาก ## ใน ToRichHtml) */
.rich-h { font-weight: 800; color: var(--navy); font-size: 17.5px; line-height: 1.5; margin: 24px 0 8px; }
.rich-h:first-child { margin-top: 0; }
.rich-list { margin: 10px 0 14px; padding-left: 4px; list-style: none; }
.rich-list li { position: relative; padding-left: 26px; margin-bottom: 9px; line-height: 1.6; }
.rich-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.svc-section-body p { margin-bottom: 12px; }
.svc-hero .img {
  background: linear-gradient(135deg, var(--navy), #2a6fdb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdddf6;
  font-weight: 600;
  min-height: 280px;
  overflow: hidden;
}
.svc-hero .img img { width: 100%; height: 100%; object-fit: cover; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.feat {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.feat .chk {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.feat b { color: var(--navy); font-size: 15px; }
.feat span { display: block; font-size: 13px; color: #6b7585; margin-top: 2px; }
.svc-switch { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.svc-switch a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 18px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
  color: #566070;
  transition: .16s;
  text-decoration: none;
  display: inline-block;
}
.svc-switch a.on,
.svc-switch a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Before/After */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.ba .panel {
  border-radius: 14px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
}
.ba .before { background: linear-gradient(135deg, #b5482f, #8a3220); }
.ba .after { background: linear-gradient(135deg, #1f9d57, #147a41); }
.ba-cap { font-size: 13.5px; color: #566070; margin-top: 8px; text-align: center; }
.ba .ba-img { padding: 0; overflow: hidden; }
.ba .ba-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── About ───────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}
.about-img {
  background: linear-gradient(135deg, var(--navy), #2a6fdb);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cdddf6;
  font-weight: 600;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* About highlight fade slideshow */
/* About cover banner (fix 1 รูป ขนาดเท่า hero) */
.about-cover {
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 900px) { .about-cover { height: 320px; } }
@media (max-width: 600px) { .about-cover { height: 220px; } }

/* Certifications grid + lightbox */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.cert-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  transition: .18s;
  display: block;
}
.cert-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.cert-item img { width: 100%; height: 200px; object-fit: contain; display: block; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } }

.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,20,40,.88);
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.on { display: flex; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 14px; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: 0;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

.about-intro {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .about-intro { padding: 22px; } }
.about-intro h2 { font-size: 30px; color: var(--navy); margin-bottom: 14px; }
.about-intro p { color: #566070; margin-bottom: 12px; text-indent: 2.5em; text-align: justify; }
.about-intro .btn-primary { margin-top: 8px; }

.about-slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;          /* กรอบคงที่ กัน layout shift (CLS) */
  min-height: 320px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--navy), #2a6fdb);
}
/* แบบเต็มความกว้าง wrap (ใต้ข้อความ) */
.about-slideshow-wide {
  aspect-ratio: 16 / 6;
  min-height: 0;
  margin-top: 30px;
  width: 100%;
}
@media (max-width: 700px) { .about-slideshow-wide { aspect-ratio: 4 / 3; } }
.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  margin: 0;
}
.about-slide.on { opacity: 1; }
.about-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(15,44,92,.85));
  color: #fff;
  font-size: 13.5px;
  padding: 28px 18px 14px;
}
.about-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 8px;
}
.about-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: .2s;
}
.about-dots button.on { background: var(--orange); width: 26px; border-radius: 5px; }
/* keep slideshow square-ish when it's the only child in grid */
.about-grid > .about-slideshow { align-self: stretch; }
.about-grid h2 { font-size: 30px; color: var(--navy); margin-bottom: 14px; }
.about-grid p { color: #566070; margin-bottom: 10px; text-indent: 2.5em; text-align: justify; }
/* ปุ่ม/ลิงก์ใน about-grid ไม่ต้องเยื้อง */
.about-grid p:has(> .btn-primary), .about-grid .btn-primary { text-indent: 0; }
.val-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.val {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
}
.val .vic { font-size: 30px; margin-bottom: 10px; }
.val b { color: var(--navy); display: block; margin-bottom: 6px; font-size: 17px; }
.val p { font-size: 13.5px; color: #6b7585; }
.timeline { margin-top: 46px; border-left: 3px solid var(--blue-soft); padding-left: 26px; }
.tl-item { margin-bottom: 24px; position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--orange);
}
.tl-item b { color: var(--navy); }
.tl-item .yr { color: var(--orange); font-weight: 800; font-size: 14px; }

/* ── Contact form ────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  margin-top: 30px;
}
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .16s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42,111,219,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.info-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px;
  color: #c7d3e8;
}
.info-card h4 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.info-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; }
.info-icon { font-size: 20px; flex-shrink: 0; }

.alert-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}
.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────── */
footer { background: var(--navy); color: #c7d3e8; padding: 54px 0 30px; margin-top: 64px; }

/* horizontal full-width map band */
.foot-map { width: 100%; line-height: 0; margin-bottom: 40px; }
.foot-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}
@media (max-width: 600px) { .foot-map iframe { height: 200px; } }

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 34px;
}
footer h5 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .5px; }
footer a,
footer p { font-size: 14px; color: #a9b8d4; margin-bottom: 9px; display: block; }
footer a:hover { color: #fff; }
.foot-logo { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.foot-logo b { color: var(--orange); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 13px;
  color: #8a99ba;
  text-align: center;
}

/* ── Pagination ──────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: #566070;
  transition: .16s;
}
.pagination a:hover { background: var(--blue-soft); color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #8a93a3; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: #c0c8d8; }

/* ── Validation ──────────────────────────────────── */
.field-validation-error { color: #c0392b; font-size: 13px; display: block; margin-top: 4px; }
.input-validation-error { border-color: #e74c3c !important; }
.validation-summary-errors ul { list-style: none; color: #c0392b; font-size: 13.5px; margin-top: 4px; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .lang, .cta-nav { display: none; }
  .burger { display: block; }
  .mobile-lang { margin-top: 8px; }
  .mobile-lang .lang { display: inline-flex; }   /* แสดงปุ่มเปลี่ยนภาษาใน mobile menu */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .port-grid, .svc-grid-2 { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card-h { grid-template-columns: 1fr; }
  .svc-card-media, .svc-slideshow { min-height: 180px; }
  .svc-hero, .about-grid, .feat-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero h1, .hero .hero-title { font-size: 30px; }
  .hero-slides { height: auto; min-height: 480px; padding: 48px 0; }
  .hero-slide { position: relative; opacity: 0; display: none; }
  .hero-slide.on { opacity: 1; display: flex; }
  .hero-arrow { display: none; }
  .ba, .form-row { grid-template-columns: 1fr; }
  .sec-title { font-size: 26px; }
}

@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: 1fr; }
  .hero h1, .hero .hero-title { font-size: 26px; }
}

/* ── กฎกลางเดียว (ท้ายไฟล์ — ชนะทุก definition ก่อนหน้า): ขนาดปุ่มมาตรฐานทั้งเว็บ เท่า btn-navsize ── */
.btn-primary, .btn-ghost, .btn-outline, .btn-cta, .fb-link, .btn-navsize {
  padding: 7px 16px;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 9px;
}

/* ── Success/flash modal popup (public) ── */
.flash-modal {
  display: none;
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(15,44,92,.55);
  align-items: center; justify-content: center; padding: 20px;
}
.flash-modal.on { display: flex; }
.flash-box {
  background: #fff; border-radius: 16px; padding: 36px 32px;
  width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: flashpop .2s ease;
}
@keyframes flashpop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.flash-box .flash-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: #e4f6ec; color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.flash-box h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.flash-box p { color: var(--muted); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
/* processing state — spinner กันกดส่งซ้ำ */
.flash-spinner {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border: 5px solid #dfe6f1; border-top-color: var(--blue);
  border-radius: 50%; animation: flashspin .8s linear infinite;
}
@keyframes flashspin { to { transform: rotate(360deg); } }
.flash-box.proc p { margin-bottom: 0; }

/* ── Modern file uploader (Contact / Quote) ── */
.uploader-modern { position: relative; }
.up-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  padding: 26px 18px; cursor: pointer;
  border: 2px dashed #c4d0e2; border-radius: 14px;
  background: #f8fafd; color: var(--muted);
  transition: border-color .15s, background .15s, transform .15s;
}
.up-drop:hover { border-color: var(--blue); background: #eef4fd; }
.uploader-modern.dragover .up-drop {
  border-color: var(--blue); background: #e7f0fe; transform: scale(1.01);
}
.up-drop .up-ic {
  width: 46px; height: 46px; border-radius: 50%;
  background: #e7f0fe; color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
}
.up-drop .up-title { font-size: 14px; color: var(--ink); font-weight: 600; }
.up-drop .up-title span { color: var(--blue); text-decoration: underline; }
.up-drop .up-sub { font-size: 12px; color: #8a93a3; }

.up-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.up-preview:empty { margin-top: 0; }
.up-thumb {
  position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #f0f3f8;
  animation: upin .18s ease;
}
@keyframes upin { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb .up-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 12px 6px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-thumb .up-del {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15,44,92,.78); color: #fff; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.up-thumb .up-del:hover { background: var(--orange); }
.up-count { font-size: 12px; color: var(--muted); margin-top: 8px; }
.up-count b { color: var(--navy); }

/* ── Logo image (header) ── */
.logo-img { height: 64px; width: auto; display: block; }

/* ── Announcement popup (homepage) ── */
.ann-overlay {
  display: none; position: fixed; inset: 0; z-index: 3500;
  background: rgba(15,44,92,.6); padding: 24px;
  align-items: center; justify-content: center;
}
.ann-overlay.on { display: flex; animation: annfade .2s ease; }
@keyframes annfade { from { opacity: 0; } to { opacity: 1; } }
.ann-box {
  position: relative; max-width: 460px; width: 100%;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); animation: annpop .25s ease;
}
@keyframes annpop { from { transform: scale(.9) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.ann-box img { width: 100%; height: auto; display: block; }
.ann-box .ann-title {
  font-size: 19px; font-weight: 800; color: var(--navy);
  padding: 18px 24px 6px; text-align: center;
}
.ann-box .ann-body {
  font-size: 15px; color: var(--muted); line-height: 1.75;
  padding: 6px 26px 22px; text-align: center; white-space: pre-line;
}
.ann-box .ann-cta { padding: 0 26px 24px; text-align: center; }
/* ประกาศแบบข้อความล้วน — แถบสีส้มบนหัวการ์ด */
.ann-box.ann-textonly { border-top: 6px solid var(--orange); }
.ann-box.ann-textonly .ann-title { padding-top: 26px; }
.ann-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15,44,92,.55); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ann-close:hover { background: var(--orange); }

/* ── Cookie consent bar (PDPA) ── */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3400;
  max-width: 940px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15,44,92,.18);
  padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .35s ease;
}
.cookie-bar.on { transform: translateY(0); }
.cookie-text { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.cookie-text a { color: var(--blue); font-weight: 600; margin-left: 4px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn-primary, .cookie-actions .btn-ghost { flex: 1; text-align: center; justify-content: center; }
}
