/* อ๊อฟ รถยก โคราช — แลนดิ้งเพจ แพ็ก 999 */

:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --blue: #1B4F9C;
  --blue-soft: #E7EEF9;
  --amber: #F7B500;
  --amber-deep: #D99B00;
  --ink: #16233A;
  --muted: #5B6B82;
  --bg: #F4F6FA;
  --white: #FFFFFF;
  --line: #DCE3EE;
  --line-green: #06C755;
  --fb: #1877F2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-hover: 0 2px 4px rgba(11, 37, 69, 0.08), 0 16px 32px rgba(11, 37, 69, 0.14);
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", "Anuphan", system-ui, sans-serif;
  --container: 1140px;
  --float-h: 60px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: calc(var(--float-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; font-weight: 700; }
h2 { font-size: 28px; }
h3 { font-size: 19px; }
svg { display: block; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border-radius: 10px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--amber); color: var(--navy-deep); }
.btn-primary:hover { background: var(--amber-deep); }
.btn-lg { min-height: 60px; padding: 14px 30px; font-size: 20px; border-radius: 12px; box-shadow: 0 8px 24px rgba(247, 181, 0, 0.35); }
.btn-lg svg { width: 26px; height: 26px; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-outline .logo-line { color: var(--line-green); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}

/* ส่วนหัว */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; min-height: 44px; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--navy); color: var(--amber);
  display: grid; place-items: center;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.brand-text strong { font-size: 17px; color: var(--navy); white-space: nowrap; }
.brand-text small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.site-nav { display: none; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding: 8px 0; }
.site-nav a:hover { color: var(--blue); }
.btn-header { min-height: 44px; min-width: 44px; padding: 6px 14px; font-size: 15px; }
.btn-header span { display: none; }
.btn-header svg { width: 20px; height: 20px; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .btn-header span { display: inline; }
  .btn-header { padding: 6px 18px; }
}

/* แบนเนอร์ */
.hero {
  position: relative; overflow: hidden;
  min-height: 62vh; max-height: 70vh;
  display: flex; align-items: flex-end;
  background: var(--navy-deep);
  color: #fff;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 51, 0.25) 0%, rgba(7, 26, 51, 0.55) 45%, rgba(7, 26, 51, 0.88) 100%);
}
.hero-content { position: relative; padding-top: 48px; padding-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  background: rgba(247, 181, 0, 0.18); color: var(--amber);
  border: 1px solid rgba(247, 181, 0, 0.5);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { font-size: 30px; line-height: 1.4; margin-bottom: 12px; text-wrap: balance; }
.hero-sub { font-size: 17px; color: rgba(255, 255, 255, 0.86); max-width: 560px; margin-bottom: 22px; }

@media (min-width: 768px) {
  .hero { min-height: 560px; max-height: 82vh; height: 82vh; align-items: center; }
  .hero-content { padding-top: 80px; padding-bottom: 80px; }
  .hero h1 { font-size: 44px; max-width: 760px; }
  .hero-sub { font-size: 19px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(7, 26, 51, 0.88) 0%, rgba(7, 26, 51, 0.6) 55%, rgba(7, 26, 51, 0.25) 100%); }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 54px; }
}

/* จุดเด่น */
.features { background: var(--white); padding: 40px 0 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature {
  background: var(--bg); border-radius: var(--radius); padding: 18px 16px;
}
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--amber); margin-bottom: 12px;
}
.icon-badge svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; margin-bottom: 4px; color: var(--navy); }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.6; }
@media (min-width: 480px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 768px) {
  .features { padding: 56px 0 16px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature { padding: 24px 20px; }
  .feature h3 { font-size: 18px; }
}

/* หัวข้อส่วน */
.section-label {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue);
  text-transform: none; letter-spacing: .02em; margin-bottom: 8px;
}
.section-label.light { color: var(--amber); }
.section-head { margin-bottom: 28px; max-width: 720px; }
.section-head h2 { color: var(--navy); text-wrap: balance; }
.section-sub { color: var(--muted); margin-top: 8px; }
@media (min-width: 768px) {
  h2 { font-size: 36px; }
  .section-head { margin-bottom: 40px; }
}

/* เกี่ยวกับ */
.about { padding: 56px 0; }
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-text h2 { color: var(--navy); margin-bottom: 16px; }
.about-text p + p { margin-top: 12px; }
.about-text .btn { margin-top: 24px; }
.about-media { margin: 0; border-radius: var(--radius); overflow: hidden; }
.about-media img { width: 100%; aspect-ratio: 2 / 1; }
.about-media picture { display: block; }
@media (min-width: 900px) {
  .about { padding: 88px 0; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

/* บริการ */
.services { background: var(--bg); padding: 56px 0; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
}
.card-media img { width: 100%; aspect-ratio: 4 / 3; }
.card-body { padding: 14px 14px 18px; }
.card-body h3 { color: var(--navy); margin-bottom: 6px; font-size: 17px; }
.card-body p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.service-grid .card:last-child { grid-column: span 2; }
.service-grid .card:last-child .card-media img { aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .services { padding: 88px 0; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service-grid .card:last-child { grid-column: auto; }
  .card-body { padding: 20px 20px 24px; }
  .card-body h3 { font-size: 20px; }
  .card-body p { font-size: 16px; }
}

.cases-title { margin: 40px 0 16px; color: var(--navy); font-size: 20px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.case {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 12px; padding: 14px;
  font-weight: 600; font-size: 15px; color: var(--ink);
}
.case svg { width: 24px; height: 24px; flex: none; color: var(--blue); }
@media (min-width: 768px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .case { padding: 18px; font-size: 16px; }
  .cases-title { margin-top: 56px; }
}

/* ขั้นตอน */
.steps { padding: 56px 0; }
.step-list { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 20px 20px 20px 72px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step-num {
  position: absolute; left: 20px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--amber); color: var(--navy-deep);
  font-weight: 700; display: grid; place-items: center;
}
.step h3 { color: var(--navy); margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (min-width: 768px) {
  .steps { padding: 88px 0; }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { padding: 28px 24px 28px 24px; }
  .step-num { position: static; margin-bottom: 16px; width: 44px; height: 44px; font-size: 18px; }
  .step p { font-size: 16px; }
}

/* ผลงาน */
.gallery { background: var(--bg); padding: 56px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-flow: dense; }
.gallery-item { border-radius: 12px; overflow: hidden; }
.gallery-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .2s ease;
}
.gallery-btn img { width: 100%; }
.ratio-4-3 img { aspect-ratio: 4 / 3; }
.ratio-2-1 img { aspect-ratio: 2 / 1; }
.gallery-wide { grid-column: span 2; }
.gallery-social a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  height: 100%; aspect-ratio: 4 / 3;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 16px; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.5;
  transition: background-color .2s ease;
}
.gallery-social a:hover { background: var(--blue); }
.gallery-social svg { width: 36px; height: 36px; }
@media (hover: hover) and (pointer: fine) {
  .gallery-btn:hover { transform: scale(1.02); }
}
@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery-social a { aspect-ratio: 1 / 1; }
}
@media (min-width: 768px) {
  .gallery { padding: 88px 0; }
  .gallery-grid { gap: 16px; }
  .gallery-social a { font-size: 16px; }
}

/* ติดต่อ */
.contact { background: var(--navy); color: #fff; padding: 56px 0; }
.contact .section-head h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-card {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 20px; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.12); }
@media (hover: hover) and (pointer: fine) {
  .contact-card:hover { transform: translateY(-3px); }
}
.contact-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber); color: var(--navy-deep); margin-bottom: 12px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-icon-line { background: var(--line-green); color: #fff; }
.contact-label { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.contact-card strong { font-size: 22px; line-height: 1.4; }
.contact-hint { font-size: 14px; color: rgba(255, 255, 255, 0.72); margin-top: 4px; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; color: rgba(255, 255, 255, 0.86); }
.contact-meta p { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.contact-meta svg { width: 20px; height: 20px; color: var(--amber); flex: none; }
.contact-meta a { color: #fff; display: inline-block; padding: 10px 0; }
@media (min-width: 600px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) {
  .contact { padding: 88px 0; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-card strong { font-size: 24px; }
}

/* โซเชียล */
.social { padding: 48px 0; text-align: center; }
.social h2 { font-size: 22px; color: var(--navy); margin-bottom: 20px; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 10px;
  text-decoration: none; font-weight: 600; color: #fff;
  transition: transform .2s ease, filter .2s ease;
}
.social-btn svg { width: 22px; height: 22px; }
.social-fb { background: var(--fb); }
.social-tt { background: #111; }
@media (hover: hover) and (pointer: fine) {
  .social-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
}
@media (min-width: 768px) { .social { padding: 64px 0; } .social h2 { font-size: 26px; } }

/* ท้ายหน้า */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); padding: 32px 0; font-size: 15px; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.site-footer strong { color: #fff; font-size: 17px; display: block; margin-bottom: 4px; }
.copyright { color: rgba(255, 255, 255, 0.55); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ปุ่มลอยมือถือ */
.float-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; height: var(--float-h);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(11, 37, 69, 0.18);
}
.float-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 16px; min-height: 48px;
}
.float-bar svg { width: 22px; height: 22px; }
.float-call { flex: 1.6; background: var(--amber); color: var(--navy-deep); }
.float-line { flex: 1; background: var(--line-green); color: #fff; }
@media (min-width: 768px) {
  .float-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 12, 24, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 8px;
}
.lb-close, .lb-nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close svg, .lb-nav svg { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (min-width: 768px) { .lb-prev { left: 24px; } .lb-next { right: 24px; } .lb-close { top: 24px; right: 24px; } }

/* อนิเมชันปรากฏ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
