/* Better Tourism — Main Stylesheet */

@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_W_Th.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_W_Rg.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_W_Bd.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_W_XBd.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "LINE Seed Sans TH"; src: url("../fonts/LINESeedSansTH_W_He.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --primary: #1E6B3C;
  --primary-dark: #165430;
  --primary-darker: #0F3B22;
  --secondary: #8DC63F;
  --secondary-dark: #74A832;
  --ink: #0e1a24;
  --ink-2: #233240;
  --muted: #5b6976;
  --line: #e3e8ec;
  --line-2: #eef1f4;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-tinted: #F0F9E8;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.5s var(--ease);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "LINE Seed Sans TH", "IBM Plex Sans Thai", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Typography ── */
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--primary); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--primary); }
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 { font-family: "LINE Seed Sans TH", system-ui, sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 80px);  font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p  { margin: 0; color: var(--ink-2); }

/* ── Top Bar ── */
.topbar { background: var(--primary-darker); color: rgba(255,255,255,.85); font-size: 12.5px; letter-spacing: .02em; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a:hover { color: var(--secondary); }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); display: inline-block; margin-right: 6px; }
.lang-switcher a { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.lang-switcher .lang-item-current a { color: var(--secondary); }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow var(--t); }
.nav.scrolled { box-shadow: 0 4px 20px rgba(14,26,36,.06); }
.nav-inner { display: flex; align-items: center; height: 84px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .name { font-size: 17px; letter-spacing: .04em; font-weight: 600; }
.brand-text .sub { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); font-weight: 500; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; list-style: none; }
.nav-links a { font-size: 14px; letter-spacing: .02em; font-weight: 500; color: var(--ink); position: relative; padding: 8px 0; transition: color var(--t); }
.nav-links a:hover { color: var(--primary); }
.nav-links .current-menu-item > a::after,
.nav-links a.active::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary); }
.nav-utils { display: flex; align-items: center; gap: 18px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background var(--t); }
.icon-btn:hover { background: var(--bg-soft); }

/* Mobile menu */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; font-family: "LINE Seed Sans TH", system-ui, sans-serif;
  border-radius: 999px; transition: all var(--t); cursor: pointer;
  white-space: nowrap; border: 1px solid transparent;
}
.btn-dark    { background: #005085; color: #fff; }
.btn-dark:hover    { background: #003b63; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-yellow  { background: var(--secondary); color: var(--ink); }
.btn-yellow:hover  { background: var(--ink); color: var(--secondary); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn .arrow  { display: inline-flex; transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Hero ── */
.hero { position: relative; height: 88vh; min-height: 640px; max-height: 860px; overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,59,34,.25) 0%, rgba(15,59,34,.55) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; color: #fff; padding: 0 var(--gutter) clamp(64px,9vh,120px); }
.hero-eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; margin-bottom: 28px; opacity: .95; display: inline-flex; align-items: center; gap: 14px; font-weight: 700; }
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--secondary); }
.hero h1 { color: #fff; font-weight: 800; max-width: 880px; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--secondary); font-weight: 800; }
.hero-sub { max-width: 540px; font-size: 17px; line-height: 1.7; opacity: .9; margin-bottom: 40px; color: rgba(255,255,255,.92); }

/* Multiple content panels — only active visible */
.hero-content { display: none; }
.hero-content.active { display: flex; }

/* Slide arrows */
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: rgba(255,255,255,.28); }
.hero-arrow--prev { left: clamp(16px, 3vw, 48px); }
.hero-arrow--next { right: clamp(16px, 3vw, 48px); }

/* Dot indicators */
.hero-dots { position: absolute; bottom: clamp(24px,4vh,48px); left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; transition: background .25s, width .25s; }
.hero-dot.active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* ── Sections ── */
section { padding: clamp(80px,10vw,140px) 0; }
.sect-soft  { background: var(--bg-soft); }
.sect-tight { padding: clamp(60px,6vw,100px) 0; }
.sect-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; }
.sect-head--single { margin-bottom: 72px; }
.sect-head--single .eyebrow { margin-bottom: 18px; }
.sect-head.center { display: block; text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; margin-bottom: 80px; }
.sect-head .eyebrow { margin-bottom: 18px; }
.sect-head p { font-size: 17px; line-height: 1.75; max-width: 480px; }
.sect-head.center p { max-width: 580px; margin: 18px auto 0; }

/* ── Stats / Tabs ── */
.stats-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 64px; overflow-x: auto; }
.stats-tab { flex: 1; text-align: left; padding: 24px 8px; font-size: 14px; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--t); font-weight: 500; white-space: nowrap; font-family: inherit; cursor: pointer; }
.stats-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.stats-tab:hover { color: var(--ink); }
.stats-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.stats-num { font-size: clamp(64px,9vw,120px); font-weight: 200; line-height: 1; letter-spacing: -.04em; margin-bottom: 24px; color: var(--ink); }
.stats-num em { font-style: normal; color: var(--primary); font-weight: 300; }
.stats-text h3 { margin-bottom: 18px; font-weight: 400; }
.stats-text p  { font-size: 16px; margin-bottom: 32px; }
.stats-visual  { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; border-radius: 4px; }
.stats-visual img { width: 100%; height: 100%; object-fit: cover; }
.stats-overlay { position: absolute; bottom: 24px; right: 24px; background: rgba(14,26,36,.92); backdrop-filter: blur(10px); color: #fff; padding: 22px 28px; display: flex; gap: 28px; }
.stats-overlay-item { display: flex; flex-direction: column; }
.stats-overlay-num { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.stats-overlay-num .yel { color: var(--secondary); }
.stats-overlay-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }

/* ── Features 3-col ── */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 56px; padding-top: 88px; border-top: 1px solid var(--line); }
.feature h4 { font-size: 19px; margin-bottom: 16px; font-weight: 500; display: flex; align-items: flex-start; gap: 14px; line-height: 1.3; }
.feature h4 .num { font-size: 11px; letter-spacing: .22em; color: var(--primary); font-weight: 600; padding-top: 4px; }
.feature p { font-size: 14.5px; line-height: 1.7; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--line); }
.svc { background: var(--bg); padding: 56px 48px; display: flex; flex-direction: column; gap: 24px; position: relative; transition: background var(--t); cursor: pointer; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); transform: scaleY(0); transform-origin: top; transition: transform var(--t); }
.svc:hover::before { transform: scaleY(1); }
.svc:hover { background: var(--bg-soft); }
.svc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.svc-num { font-size: 12px; letter-spacing: .24em; color: var(--muted); font-weight: 600; }
.svc-tag { display: inline-block; padding: 5px 11px; font-size: 10.5px; letter-spacing: .18em; font-weight: 600; background: var(--secondary); color: var(--ink); border-radius: 2px; }
.svc-tag.b2b { background: var(--primary); color: #fff; }
.svc-title { font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.svc-desc  { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.svc-chip  { font-size: 11.5px; letter-spacing: .04em; padding: 5px 12px; background: var(--bg-soft); color: var(--ink-2); border-radius: 999px; font-weight: 500; }
.svc-link  { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); padding-top: 12px; }
.svc-link .arrow { transition: transform var(--t); }
.svc:hover .svc-link .arrow { transform: translateX(6px); }

/* ── Portfolio ── */
.portfolio-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.case { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 4/3; cursor: pointer; }
.case > a { display: block; height: 100%; }
.case.wide { aspect-ratio: 16/10; }
.case-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s var(--ease); }
.case:hover .case-img { transform: scale(1.05); }
.case-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(14,26,36,0) 30%,rgba(14,26,36,.85) 100%); }
.case-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 36px; color: #fff; z-index: 2; }
.case-meta  { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--secondary); font-weight: 600; margin-bottom: 12px; }
.case-title { font-size: 22px; font-weight: 500; line-height: 1.3; margin-bottom: 12px; max-width: 460px; color: #fff; }
.case-stats { display: flex; gap: 24px; opacity: .85; font-size: 13px; }
.case-stat strong { display: block; font-size: 22px; font-weight: 500; color: var(--secondary); }
.portfolio-col { display: flex; flex-direction: column; gap: 24px; }
.portfolio-col .case { aspect-ratio: auto; height: calc(50% - 12px); min-height: 240px; }

/* Portfolio dark section */
.portfolio-section { background: var(--primary-darker); color: #fff; }
.portfolio-section .eyebrow { color: var(--secondary); }
.portfolio-section .eyebrow::before { background: var(--secondary); }
.portfolio-section h2 { color: #fff; }
.portfolio-section .sect-head p { color: rgba(255,255,255,.75); }
.portfolio-section .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.portfolio-section .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ── Accordion ── */
.accordion-section { position: relative; min-height: 640px; background-size: cover; background-position: center; padding: 0; overflow: hidden; }
.accordion-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(14,26,36,.82) 0%,rgba(14,26,36,.55) 45%,rgba(14,26,36,.7) 100%); }
.accordion-section .wrap { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 100px; }
.accordion-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.accordion-grid h2 { color: #fff; font-weight: 300; margin-bottom: 24px; }
.accordion-grid .eyebrow { color: var(--secondary); margin-bottom: 18px; }
.accordion-grid .eyebrow::before { background: var(--secondary); }
.accordion-grid p { color: rgba(255,255,255,.85); font-size: 16px; }
.accordion { display: flex; flex-direction: column; }
.acc-item { border-bottom: 1px solid rgba(255,255,255,.15); color: #fff; }
.acc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 500; transition: color var(--t); width: 100%; text-align: left; }
.acc-head:hover { color: var(--secondary); }
.acc-icon { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; transition: all var(--t); flex-shrink: 0; }
.acc-item.open .acc-icon { background: var(--secondary); border-color: var(--secondary); color: var(--ink); transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc-item.open .acc-body { max-height: 240px; }
.acc-body-inner { padding-bottom: 24px; padding-right: 60px; color: rgba(255,255,255,.8); font-size: 14.5px; line-height: 1.75; }

/* ── Process ── */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proc { background: var(--bg); padding: 48px 32px 56px; display: flex; flex-direction: column; gap: 18px; transition: background var(--t); }
.proc:hover { background: var(--bg-tinted); }
.proc-num { font-size: 56px; font-weight: 200; letter-spacing: -.04em; color: var(--primary); line-height: 1; }
.proc-num::after { content: "."; color: var(--secondary); }
.proc h4 { font-size: 18px; font-weight: 500; }
.proc p  { font-size: 14px; line-height: 1.7; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.testi { background: var(--bg); padding: 40px 44px 44px; display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); position: relative; }
.testi.tinted { background: var(--bg-tinted); border-color: transparent; }
.testi-quote { font-size: 28px; font-weight: 300; letter-spacing: -.01em; line-height: 1.4; color: var(--ink); position: relative; }
.testi-quote::before { content: "\201C"; font-family: Georgia, serif; font-size: 72px; color: var(--primary); position: absolute; left: -8px; top: -38px; line-height: 1; opacity: .4; }
.testi-person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; }
.testi-ava { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-soft); background-size: cover; background-position: center; flex-shrink: 0; }
.testi-name { font-weight: 600; font-size: 15px; }
.testi-role { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.testi-stars { color: var(--secondary); letter-spacing: 2px; font-size: 13px; margin-top: 2px; }

/* ── Partners ── */
.partners { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.partner-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plogo { background: var(--bg); aspect-ratio: 5/3; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-align: center; padding: 16px; transition: all var(--t); filter: grayscale(1); opacity: .7; }
.plogo:hover { filter: grayscale(0); opacity: 1; color: var(--primary); }
.plogo img { max-width: 80%; max-height: 40px; object-fit: contain; margin: 0 auto; filter: grayscale(1); opacity: .6; transition: all var(--t); }
.plogo:hover img { filter: grayscale(0); opacity: 1; }

/* ── Insights / Blog ── */
.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.post { display: flex; flex-direction: column; gap: 16px; cursor: pointer; }
.post-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--bg-soft); overflow: hidden; }
.post-img > div { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.post:hover .post-img > div { transform: scale(1.05); }
.post-meta  { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.post-title { font-size: 20px; line-height: 1.4; font-weight: 500; transition: color var(--t); }
.post:hover .post-title { color: var(--primary); }
.post-title a { color: inherit; }
.post-excerpt { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ── CTA / Contact ── */
.cta { position: relative; background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg,rgba(15,59,34,.92) 0%,rgba(15,59,34,.6) 60%,rgba(15,59,34,.4) 100%); }
.cta .wrap { position: relative; z-index: 2; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cta-left h2 { color: #fff; font-weight: 300; margin-bottom: 24px; }
.cta-left h2 em { font-style: normal; color: var(--secondary); }
.cta-left p  { color: rgba(255,255,255,.85); font-size: 16px; max-width: 460px; margin-bottom: 32px; }
.cta-bullets { display: flex; flex-direction: column; gap: 12px; }
.cta-bullet  { display: flex; align-items: center; gap: 14px; font-size: 14.5px; color: rgba(255,255,255,.92); }
.cta-bullet svg { color: var(--secondary); flex-shrink: 0; }

.cta-form { background: var(--bg); padding: 48px 44px; display: flex; flex-direction: column; gap: 18px; color: var(--ink); border-radius: 4px; }
.cta-form h3 { font-size: 22px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.cta-form > p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { background: var(--bg-soft); border: 1px solid transparent; padding: 14px 16px; font-size: 14px; color: var(--ink); font-family: inherit; outline: none; transition: border-color var(--t); border-radius: 2px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: var(--bg); }
.field textarea { resize: vertical; min-height: 100px; }
.cta-form .btn { margin-top: 6px; align-self: flex-start; }
.bt-form-status { font-size: 14px; min-height: 20px; }
.bt-form-status.success { color: #1a7a4e; }
.bt-form-status.error   { color: #c0392b; }

/* CF7 integration */
.wpcf7-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form select,
.wpcf7-form textarea { background: var(--bg-soft); border: 1px solid transparent; padding: 14px 16px; font-size: 14px; color: var(--ink); font-family: inherit; outline: none; transition: border-color var(--t); border-radius: 2px; width: 100%; margin-bottom: 14px; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { border-color: var(--primary); background: var(--bg); }
.wpcf7-form .wpcf7-submit { background: var(--primary); color: #fff; padding: 16px 32px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; border-radius: 999px; cursor: pointer; border: none; font-family: inherit; transition: background var(--t); }
.wpcf7-form .wpcf7-submit:hover { background: var(--ink); }

/* ── Footer ── */
.footer { background: var(--primary); color: rgba(255,255,255,.85); padding: 88px 0 24px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 56px; margin-bottom: 64px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-text .name { color: #fff; }
.footer-brand .brand-text .sub { color: rgba(255,255,255,.5); }
.footer-brand p { color: rgba(255,255,255,.65); font-size: 14px; max-width: 320px; margin-top: 18px; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-links a:hover { color: var(--secondary); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer-contact .row { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.75); }
.footer-contact .row a { color: inherit; }
.footer-contact .row a:hover { color: var(--secondary); }
.footer-contact .row svg { color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.footer-socials { display: flex; gap: 10px; margin-top: 8px; }
.footer-socials a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; transition: all var(--t); }
.footer-socials a:hover { background: var(--secondary); color: var(--ink); border-color: var(--secondary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--secondary); }
.footer-wrap { position: relative; }

/* ── Reveal ── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ── Responsive ── */
@media (max-width: 980px) {
  /* Nav: ซ่อน links + CTA, แสดง hamburger ชิดขวา */
  .nav { position: relative; }
  .nav-inner { gap: 0; }
  .nav-utils { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(14,26,36,.10);
    z-index: 59;
  }
  .nav-links.open li { border-bottom: 1px solid var(--line); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open a { display: block; padding: 14px 0; font-size: 15px; }
  .mobile-menu-toggle { display: flex; margin-left: auto; }

  /* Layout */
  .stats-body, .sect-head, .accordion-grid, .partners, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .features, .process-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid, .portfolio-grid, .testimonials-grid, .insights-grid { grid-template-columns: 1fr; }
  .portfolio-col .case { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero { height: auto; padding: 120px 0 80px; min-height: 560px; }
  .field-row { grid-template-columns: 1fr; }
  .cta-form { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .features, .process-grid, .partner-logos { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-left .hide-sm { display: none; }
  .topbar-right { gap: 12px; }
  .topbar-right a:first-child { display: none; } /* ซ่อนเบอร์โทรบน mobile เหลือแค่ email */
  .stats-overlay { right: 12px; bottom: 12px; padding: 14px 18px; gap: 18px; }
  .testi-quote { font-size: 22px; }
}

/* ── Generic page / single ── */
.page-content { max-width: 820px; margin: 0 auto; padding: clamp(60px,8vw,120px) var(--gutter); }
.page-content h1 { margin-bottom: 32px; }
.page-content p,
.page-content li { font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.entry-content img { width: 100%; height: auto; border-radius: 4px; margin: 32px 0; }

/* ── Archive ── */
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
@media (max-width: 980px) { .archive-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .archive-grid { grid-template-columns: 1fr; } }
