/* ═══════════════════════════════════════════
   ทีปต์88การช่าง — รถแม็คโครรับจ้าง ลำปาง
   ═══════════════════════════════════════════ */
:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fb923c;
  --amber: #f59e0b;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --line-green: #06c755;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(15, 23, 42, .1);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .18);
  --grad: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Prompt', 'Kanit', sans-serif;
  color: var(--dark-2);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Kanit', 'Prompt', sans-serif; line-height: 1.3; color: var(--dark); }

.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 90px 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─────────── Reveal animations ─────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); }
  70% { box-shadow: 0 0 0 16px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
.pulse { animation: pulse-ring 2.2s infinite; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float { animation: floaty 4s ease-in-out infinite; }

/* ─────────── Navbar ─────────── */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 14px 0;
  transition: background .35s, box-shadow .35s, padding .35s;
  background: rgba(15, 23, 42, .25);
  backdrop-filter: blur(6px);
}
.navbar.scrolled {
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Kanit'; font-weight: 800; font-size: 1.35rem; color: var(--white); }
.logo-icon { font-size: 1.6rem; }
.logo em { font-style: normal; color: var(--orange); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,.88); font-weight: 500; font-size: .95rem; position: relative; transition: color .25s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .3s;
}
.nav-links a:hover { color: var(--orange-light); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: var(--white);
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s, box-shadow .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,.45); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─────────── Hero ─────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -12% 0; background-size: cover; background-position: center;
  will-change: transform;
  background-color: var(--dark-2);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.72) 45%, rgba(15,23,42,.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 90px; }
.hero-badge {
  display: inline-block; background: rgba(249,115,22,.16); border: 1px solid rgba(249,115,22,.5);
  color: var(--orange-light); padding: 8px 18px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; color: var(--white); margin-bottom: 20px; }
.typed { color: var(--orange-light); border-right: 3px solid var(--orange); padding-right: 4px; }
.hero-sub { color: rgba(255,255,255,.85); font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 300; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px;
  font-family: 'Prompt'; font-weight: 600; font-size: 1.05rem;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 28px rgba(249,115,22,.4); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(249,115,22,.55); }
.btn-line { background: var(--line-green); color: var(--white); box-shadow: 0 8px 28px rgba(6,199,85,.35); }
.btn-line:hover { box-shadow: 0 14px 36px rgba(6,199,85,.5); }
.btn-white { background: var(--white); color: var(--orange-dark); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.btn-block { width: 100%; justify-content: center; margin-top: 22px; }
.hero-tags { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; }
.hero-tags span { color: rgba(255,255,255,.9); font-size: .95rem; font-weight: 400; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 10px; margin-left: -2px;
  background: var(--orange); border-radius: 2px;
  animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* ─────────── Stats ─────────── */
.stats { background: var(--dark); padding: 54px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-num { font-family: 'Kanit'; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: var(--orange); }
.stat-label { color: rgba(255,255,255,.75); font-weight: 300; }

/* ─────────── Section head ─────────── */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; color: var(--orange-dark); background: rgba(249,115,22,.1);
  padding: 6px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--gray); font-weight: 300; }

/* ─────────── Services ─────────── */
.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-img { position: relative; height: 210px; overflow: hidden; background: var(--dark-3); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 26px 26px 30px; position: relative; }
.service-body.no-img { padding-top: 34px; }
.service-icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--grad); border-radius: 14px; font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(249,115,22,.35);
  margin-bottom: 16px;
}
.service-img + .service-body .service-icon { margin-top: -55px; position: relative; z-index: 2; border: 4px solid var(--white); }
.service-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.service-body p { color: var(--gray); font-weight: 300; font-size: .95rem; }

/* ─────────── Why us ─────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.why-img { position: relative; }
.why-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.why-img-badge {
  position: absolute; right: -18px; bottom: 34px;
  background: var(--grad); color: var(--white);
  padding: 18px 26px; border-radius: 14px; text-align: center;
  box-shadow: 0 14px 34px rgba(249,115,22,.45);
}
.why-img-badge strong { display: block; font-family: 'Kanit'; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.why-img-badge span { font-size: .85rem; font-weight: 300; }
.why-content h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.why-content > p { color: var(--gray); font-weight: 300; margin-bottom: 26px; }
.why-list { display: grid; gap: 18px; margin-bottom: 32px; }
.why-list li { display: flex; gap: 16px; }
.check {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; margin-top: 3px;
  background: rgba(249,115,22,.12); color: var(--orange-dark);
  border-radius: 50%; font-weight: 800;
}
.why-list strong { display: block; font-size: 1.02rem; }
.why-list p { color: var(--gray); font-weight: 300; font-size: .92rem; }

/* ─────────── Gallery ─────────── */
.gallery { background: var(--dark); }
.gallery .section-head h2, .gallery .section-head h2 * { color: var(--white); }
.gallery .grad-text { -webkit-text-fill-color: transparent; }
.gallery .section-sub { color: rgba(255,255,255,.65); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--dark-3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(15,23,42,.9));
  color: var(--white); font-weight: 500;
  transform: translateY(8px); opacity: 0; transition: .35s;
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ─────────── Areas ─────────── */
.areas { background: var(--light); }
.areas-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.areas-grid span {
  background: var(--white); border: 1.5px solid #e2e8f0;
  padding: 12px 26px; border-radius: 999px; font-weight: 500;
  transition: .3s; cursor: default;
}
.areas-grid span:hover {
  background: var(--grad); color: var(--white); border-color: transparent;
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(249,115,22,.35);
}

/* ─────────── Process ─────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step {
  text-align: center; padding: 36px 22px;
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid #eef2f7; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.process-step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step-num {
  width: 60px; height: 60px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--grad); color: var(--white);
  font-family: 'Kanit'; font-size: 1.6rem; font-weight: 800;
  border-radius: 50%; box-shadow: 0 10px 24px rgba(249,115,22,.4);
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--gray); font-weight: 300; font-size: .92rem; }

/* ─────────── FAQ ─────────── */
.faq { background: var(--light); }
.faq-container { max-width: 860px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; border: 1.5px solid transparent; transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(249,115,22,.4); }
.faq-item summary {
  padding: 20px 54px 20px 24px; font-weight: 600; cursor: pointer; position: relative;
  list-style: none; font-family: 'Kanit'; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(249,115,22,.12); color: var(--orange-dark);
  border-radius: 50%; font-size: 1.3rem; transition: .3s;
}
.faq-item[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); background: var(--grad); color: var(--white); }
.faq-item p { padding: 0 24px 22px; color: var(--gray); font-weight: 300; }

/* ─────────── CTA banner ─────────── */
.cta-banner {
  background: linear-gradient(120deg, var(--orange-dark), var(--orange), var(--amber));
  background-size: 220% 220%;
  animation: gradmove 8s ease infinite;
  padding: 80px 0; text-align: center; color: var(--white);
}
@keyframes gradmove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner h2 span { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.cta-banner p { font-weight: 300; margin-bottom: 30px; font-size: 1.08rem; }
.cta-banner .hero-btns { justify-content: center; }

/* ─────────── Contact ─────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: stretch; }
.contact-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 34px; height: 100%;
  border-top: 5px solid var(--orange);
}
.contact-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #e2e8f0; }
.contact-item:last-of-type { border-bottom: 0; }
.contact-icon {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(249,115,22,.1); border-radius: 12px; font-size: 1.4rem;
}
.contact-item strong { font-family: 'Kanit'; }
.contact-item p, .contact-item a { color: var(--gray); font-weight: 300; }
.contact-item a { color: var(--orange-dark); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; }
.contact-map iframe { min-height: 420px; }

/* ─────────── SEO text ─────────── */
.seo-text { background: var(--light); padding: 56px 0; border-top: 1px solid #eef2f7; }
.seo-text h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--dark-3); }
.seo-text p { color: var(--gray); font-weight: 300; font-size: .92rem; }
.seo-text a { color: var(--orange-dark); font-weight: 500; }

/* ─────────── Footer ─────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { margin-bottom: 16px; }
.footer p { font-weight: 300; font-size: .93rem; }
.footer h4 { color: var(--white); margin-bottom: 18px; font-size: 1.05rem; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { font-weight: 300; font-size: .93rem; transition: color .25s, padding-left .25s; }
.footer ul a:hover { color: var(--orange-light); padding-left: 6px; }
.footer-contact li { font-weight: 300; font-size: .93rem; }
.footer-contact a { color: var(--orange-light); font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .85rem; font-weight: 300; }

/* ─────────── Floating buttons ─────────── */
.float-btns { position: fixed; right: 22px; bottom: 26px; z-index: 999; display: grid; gap: 14px; }
.float-btn {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .25s;
}
.float-btn:hover { transform: scale(1.12); }
.float-line { background: var(--line-green); }
.float-call { background: var(--grad); }

.back-top {
  position: fixed; left: 22px; bottom: 26px; z-index: 999;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--dark-2); color: var(--white); font-size: 1.2rem;
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: .35s; box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--orange); }

/* ─────────── Responsive ─────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw);
    background: rgba(15,23,42,.98); backdrop-filter: blur(10px);
    flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1);
    margin-left: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; z-index: 1001; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-img-badge { right: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
