:root {
  --ink: #1E2227;
  --ink-2: #2A2F35;
  --text: #2B2F33;
  --muted: #5F656B;
  --bg: #FFFFFF;
  --bg-alt: #F3F3F1;
  --line: #E2E2DE;
  --orange: #F58220;
  --orange-deep: #E2650A;
  --radius: 10px;
  --wrap: 1120px;
  --font-head: "Kanit", "IBM Plex Sans Thai", sans-serif;
  --font-body: "IBM Plex Sans Thai", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0; color: var(--ink); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.i { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  border-radius: 8px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, var(--orange), var(--orange-deep)); color: #fff; box-shadow: 0 6px 18px rgba(245,130,32,.35); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: var(--orange-deep); }
.btn-light:hover { background: #FFF3E8; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { white-space: nowrap; font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.55rem; letter-spacing: .5px; color: #fff; }
.brand-name b { color: var(--orange); font-weight: 700; }

.site-nav { display: flex; gap: 8px; }
.site-nav a { position: relative; white-space: nowrap; padding: 20px 18px; text-decoration: none; font-weight: 500; color: #E8E8E6; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--orange); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 3px; border-radius: 2px; background: var(--orange); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: 420px; display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 36%, rgba(30,34,39,.75) 50%, rgba(30,34,39,0) 70%);
}
.hero-copy { position: relative; z-index: 2; padding-block: 64px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }
.accent { color: var(--orange); }
.hero-sub { position: relative; margin: 34px 0 30px; font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 500; }
.hero-sub::before { content: ""; position: absolute; left: 0; top: -18px; width: 48px; height: 4px; border-radius: 2px; background: var(--orange); }

/* Sections */
.section { padding-block: 56px; }
.section-alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: center; }
.section-head h2 { white-space: nowrap; position: relative; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; padding-top: 18px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 4px; border-radius: 2px; background: var(--orange); }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 245 / 168; text-decoration: none; color: #fff; background: var(--ink-2); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,34,39,0) 35%, rgba(30,34,39,.9) 100%); }
.svc:hover img { transform: scale(1.05); }
.svc-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.svc-label::before { content: ""; position: absolute; left: 16px; bottom: 6px; width: 34px; height: 3px; background: var(--orange); border-radius: 2px; }
.svc-label .i:first-child { width: 26px; height: 26px; }
.svc-arrow { margin-left: auto; transition: transform .2s; }
.svc:hover .svc-arrow { transform: translateX(4px); }

/* Gallery */
.gallery-wrap { position: relative; min-width: 0; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 5); gap: 10px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; aspect-ratio: 4 / 3.3; border-radius: 8px; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-next { position: absolute; right: -14px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; }
.gallery-next:hover { color: var(--orange); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 52px; width: 10px; height: 10px; border-right: 2px solid #8A9096; border-top: 2px solid #8A9096; transform: rotate(45deg); }
.step-icon { width: 42px; height: 42px; color: var(--orange); }
.steps h3 { margin-top: 10px; font-size: 1.02rem; font-weight: 600; }
.steps h3 span { color: var(--orange); margin-right: 4px; }
.steps p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-block: 8px 0; padding: 30px 40px; border-radius: var(--radius);
  color: #fff; background: linear-gradient(100deg, var(--orange-deep), var(--orange) 60%, #F7A04E);
  box-shadow: 0 10px 30px rgba(226,101,10,.3);
}
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; }
.cta-band p { margin: 4px 0 0; opacity: .95; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Contact */
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.contact-list div { background: #fff; border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--line); }
.contact-list dt { font-size: .85rem; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.contact-list a { text-decoration: none; }
.contact-list .wide { grid-column: 1 / -1; }
.contact-list .address { font-size: 1rem; line-height: 1.5; }
.contact-list a:hover { color: var(--orange-deep); }

/* Footer */
.site-footer { background: var(--ink); color: #C9CACC; padding-block: 22px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.2); }
.footer-nav a { text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--orange); }
.copy { margin: 0 0 0 auto; font-size: .85rem; padding-right: 190px; }

/* Floating chat */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
  border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .95rem; box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.chat-fab .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--orange); color: #fff; }
.chat-fab:hover { color: var(--orange-deep); }

.mobile-bar { display: none; }

/* Tablet */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2)::after { display: none; }
  .gallery { grid-auto-columns: calc((100% - 20px) / 3); }
}

/* Mobile */
@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .header-inner { min-height: 60px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.2rem; }
  .menu-btn { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a[aria-current="page"]::after { display: none; }

  .hero { min-height: 0; align-items: flex-end; }
  .hero-img { width: 100%; }
  .hero::before { background: linear-gradient(90deg, rgba(30,34,39,.92) 0%, rgba(30,34,39,.7) 55%, rgba(30,34,39,.25) 100%); }
  .hero-copy { padding-block: 40px 32px; }
  .hero-sub { margin: 26px 0 22px; }
  .hero .btn-row { flex-direction: column; max-width: 280px; gap: 10px; }

  .section { padding-block: 36px; }
  .services { grid-template-columns: 1fr; gap: 10px; }
  .svc { aspect-ratio: auto; height: 64px; }
  .svc::after { background: linear-gradient(90deg, rgba(30,34,39,.15) 0%, rgba(30,34,39,.85) 45%, rgba(30,34,39,.92) 100%); }
  .svc img { position: absolute; inset: 0; width: 40%; }
  .svc-label { inset: 0; justify-content: flex-end; padding: 0 16px 0 30%; font-size: 1.02rem; white-space: nowrap; }
  .svc-label::before { display: none; }
  .svc-arrow { margin-left: 14px; }

  .gallery { grid-auto-columns: calc((100% - 20px) / 3); }
  .gallery-next { right: -6px; width: 34px; height: 34px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }

  .cta-band { width: 100%; border-radius: 0; margin: 0; padding: 26px 16px; }
  .cta-band .btn-row { width: 100%; flex-direction: column; gap: 10px; }

  .contact-list { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-nav { padding-left: 0; border-left: 0; }
  .copy { margin: 0; padding-right: 0; }

  .chat-fab { bottom: 80px; right: 14px; padding: 6px; }
  .chat-fab span { display: none; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--ink); box-shadow: 0 -2px 10px rgba(0,0,0,.25);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #fff; text-decoration: none; font-size: .85rem; }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.15); }
  .mobile-bar .i { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
