/* A8 Digital landing — vanilla port aligned with dist / React UI */

:root {
  --color-orange: #f7931f;
  --color-orange-hover: #e88610;
  --color-navy: #001d3d;
  --color-navy-mid: #004482;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-white: #ffffff;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 76px;
  --shadow-header: 0 1px 0 rgba(15, 23, 42, 0.06);
  /* ความกว้างสูงสุดของคอนเทนต์หลัก (header / hero / sections / footer) */
  --container-max: 1400px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-header);
}

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

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-img--footer {
  width: 44px;
  height: 44px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.nav-desktop a:hover {
  color: var(--color-orange);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border: none;
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
}

.lang-switch button.is-active {
  background: #f1f5f9;
  color: var(--color-navy);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--color-navy-mid);
  color: var(--color-white) !important;
}

.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: var(--color-white);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-header.nav-open .nav-toggle-bar {
  background: transparent;
}

.site-header.nav-open .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--color-white);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
}

.site-header.nav-open .nav-panel {
  display: flex;
}

.nav-panel a {
  padding: 0.65rem 0;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.nav-panel .btn-nav-cta {
  justify-content: center;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-desktop,
  .header-actions {
    display: flex;
  }

  .nav-panel {
    display: none !important;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(100vh, 960px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 5rem;
  /* ไม่ใช้ overflow:hidden — จะทำให้ background-attachment:fixed ถูกตัด/ผิดพฤติกรรมในหลายเบราว์เซอร์ */
}

/* พื้นหลังติด viewport (เลื่อนเนื้อหา รูปอยู่กับที่) — โทนมืดแบบกลาง ลด cast สีน้ำเงินจาก navy overlay เดิม */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #050608;
  background-image: linear-gradient(
      105deg,
      rgba(5, 7, 10, 0.82) 0%,
      rgba(6, 8, 12, 0.58) 45%,
      rgba(8, 10, 14, 0.42) 100%
    ),
    url("https://d2xsxph8kpxj0f.cloudfront.net/310419663030833773/d48ZTa7VYBbHkhQ5AWYw6d/hero-bangkok-skyline-iUmq92a2BVCwKtbzc9mwH8.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* iOS / อุปกรณ์สัมผัส: fixed มักกระตุกหรือถูกบังคับเป็น scroll — ใช้ scroll เพื่อความนิ่ง */
@media (hover: none) and (pointer: coarse) {
  .hero-bg {
    background-attachment: scroll, scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    background-attachment: scroll, scroll;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-copy {
  color: var(--color-white);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  display: block;
  color: var(--color-orange);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-orange-hover);
  color: var(--color-white);
}

.btn-primary .arrow {
  font-size: 1.1em;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .hero-stats {
    gap: 1.25rem;
  }
}

.stat-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-scroll-icon {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: relative;
}

.hero-scroll-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-icon::after {
    animation: none;
  }
}

/* ——— Sections common ——— */
.section {
  padding: 4rem 0;
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 43rem;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.section-title .accent {
  color: var(--color-orange);
}

/* หัวข้อ section แบบสองช่วง: คำแรกสีทึบ + คำหลังไล่สี (บริการ / ทำไมต้องเลือก / ติดต่อ) */
.section-title--split {
  color: var(--color-navy);
}

.section-title--split .section-title__lead {
  color: #0c2340;
}

.section-title--split .section-title__gradient {
  margin-left: 0.28em;
  display: inline-block;
  background: linear-gradient(
    90deg,
    #1e3a5f 0%,
    #6b4e2e 38%,
    #e8941c 72%,
    #ffc94d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-title--split .section-title__gradient {
    color: var(--color-orange);
    -webkit-text-fill-color: unset;
    background: none;
  }

  .why-stat .val {
    color: var(--color-orange);
    -webkit-text-fill-color: unset;
    background: none;
  }
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ——— Services ——— */
.section-services {
  background: #f8fafc;
}

.service-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* การ์ดบริการ: รูปด้านบน + เนื้อหาพื้นขาว (ไม่ใช่ full-bleed background) */
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  border: 1px solid #e8eef4;
}

.service-card-media {
  position: relative;
  flex-shrink: 0;
  height: clamp(160px, 32vw, 200px);
  background-color: #0c1929;
  background-size: cover;
  background-position: center;
}

.service-card-media-ai {
  background-image: url("https://d2xsxph8kpxj0f.cloudfront.net/310419663030833773/d48ZTa7VYBbHkhQ5AWYw6d/services-bg-ai-QmDLuZoedi23R2v62vftNS.webp");
}

.service-card-media-seo {
  background-image: url("https://d2xsxph8kpxj0f.cloudfront.net/310419663030833773/d48ZTa7VYBbHkhQ5AWYw6d/services-bg-seo-CuNKeTV56zKa9bHPuv9oT3.webp");
}

.service-card-media-digital {
  background-image: url("https://d2xsxph8kpxj0f.cloudfront.net/310419663030833773/d48ZTa7VYBbHkhQ5AWYw6d/services-bg-digital-ZXwkoL5bUasvoyfZw8Rues.webp");
}

.service-card-floating-icon {
  position: absolute;
  left: 1.25rem;
  bottom: -22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.service-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  color: var(--color-text);
}

.service-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0c2340;
}

.service-sub {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-orange);
  margin: 0 0 0.75rem;
}

.service-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a5568;
  margin: 0 0 1rem;
}

.service-card-body ul {
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-card-body li {
  font-size: 0.875rem;
  padding: 0.3rem 0 0.3rem 1.15rem;
  position: relative;
  color: #4a5568;
}

.service-card-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

.btn-service {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: #0c2340;
  border: none;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-service::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}

.btn-service:hover {
  background: var(--color-navy-mid);
  color: var(--color-white);
}

.services-cta-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-outline-dark {
  display: inline-flex;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 10px;
}

.btn-outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* ——— Why ——— */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  background: var(--color-white);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #0f2747 0%, #153a5c 38%, #b45309 78%, #f7931f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.12);
}

.why-card-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #001d3d;
}

.why-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.why-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

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

.why-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.why-stat .val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  display: inline-block;
  line-height: 1.15;
  background: linear-gradient(
    90deg,
    #1e3a5f 0%,
    #6b4e2e 38%,
    #e8941c 72%,
    #ffc94d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.why-stat .lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ——— Contact ——— */
.section-contact {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-contact .section-head {
  margin-bottom: 2.75rem;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.85fr);
    gap: 3rem;
  }
}

.contact-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0f2747 0%, #153a5c 40%, #b45309 78%, #f7931f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.12);
}

.contact-info-icon svg {
  display: block;
}

.contact-info-label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

a.contact-info-value:hover {
  color: var(--color-orange);
}

.contact-info-value--multiline {
  max-width: 22rem;
}

.contact-social {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.contact-social-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy);
}

.contact-social-links {
  display: flex;
  gap: 0.65rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #64748b;
  background: #f1f5f9;
  transition: color 0.15s ease, background 0.15s ease;
}

.contact-social-link:hover {
  color: var(--color-orange);
  background: #fff7ed;
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid #e8edf3;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-form-grid {
  display: grid;
  gap: 1.25rem;
}

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

.contact-field--full {
  margin-top: 0.25rem;
}

.contact-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.contact-req {
  margin-left: 0.15rem;
  text-decoration: none;
  font-weight: 700;
  color: #ef4444;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.65rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: var(--color-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(0, 29, 61, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 29, 61, 0.08);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-select-wrap {
  position: relative;
}

.contact-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.875rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.35rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  pointer-events: none;
}

.contact-form select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.contact-form select:invalid {
  color: #94a3b8;
}

.btn-contact-submit {
  display: block;
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-navy);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-contact-submit:hover {
  background: var(--color-navy-mid);
}

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

.contact-note {
  margin: 2rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.25fr repeat(4, 1fr);
  }
}

.footer-desc {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 22rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--color-white);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-bottom-copy {
  margin: 0;
  line-height: 1.5;
}

.footer-bottom-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.footer-bottom-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer-bottom-link:hover {
  color: var(--color-orange);
}

.footer-bottom-link svg {
  flex-shrink: 0;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— WordPress / theme isolation (#a8-landing) ———
   ห่อ landing ด้วย <div id="a8-landing"> เพื่อกันธีมที่ใส่ flex/สี กับ h1 h2 button แบบ global */
#a8-landing {
  isolation: isolate;
}

/* Hero: บังคับสีขาวที่หัวข้อ (ธีมมักใส่สีเข้มให้ h1 ในเนื้อหา) */
#a8-landing .hero .hero-title,
#a8-landing .hero #hero-heading {
  display: block !important;
  color: #ffffff !important;
}

#a8-landing .hero .hero-title > span:first-child {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#a8-landing .hero .hero-title .accent {
  display: block;
  color: var(--color-orange) !important;
  -webkit-text-fill-color: var(--color-orange) !important;
}

#a8-landing .hero .hero-lead {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* หัว section แบบสอง span: ยกเลิก flex + space-between ที่ธีมมักใส่ให้ h2 */
#a8-landing h2.section-title.section-title--split,
#a8-landing h2.section-title--split {
  display: block !important;
  text-align: center !important;
  justify-content: unset !important;
  align-items: unset !important;
  align-content: unset !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  gap: unset !important;
  width: auto !important;
  max-width: none !important;
}

#a8-landing .section-title--split .section-title__lead {
  display: inline !important;
}

#a8-landing .section-title--split .section-title__gradient {
  display: inline-block !important;
  margin-left: 0.28em;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  #a8-landing .section-title--split .section-title__gradient {
    color: var(--color-orange) !important;
    -webkit-text-fill-color: unset !important;
  }
}

/* ปุ่มสลับภาษา: reset จาก global button ของธีม */
#a8-landing .lang-switch {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: max-content;
}

#a8-landing .lang-switch button {
  box-sizing: border-box !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.25 !important;
  font-family: inherit !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0.4rem 0.65rem !important;
  cursor: pointer !important;
  background: var(--color-white) !important;
  color: var(--color-text-muted) !important;
  text-align: center !important;
  vertical-align: middle !important;
}

#a8-landing .lang-switch button.is-active {
  background: #f1f5f9 !important;
  color: var(--color-navy) !important;
}

@media (min-width: 1024px) {
  #a8-landing .header-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    width: auto !important;
  }
}
