/* =========================================================================
   mce60.co.th — static rebuild (HTML/CSS/JS only)
   หน้าตาอิงธีม Hestia เดิม: ฟอนต์ Kanit, สีหลัก #00a1f2, container 1170px
   ========================================================================= */

:root {
  --accent: #00a1f2;
  --text: #3c4858;
  --nav-text: #555;
  --topbar: #363537;
  --footer: #323437;
  --line: #06c755;
  --container: 1170px;
}

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

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

body {
  margin: 0;
  font-family: Kanit, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.618;
  color: var(--text);
  background-color: #b7b7b7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: Kanit, sans-serif;
  font-weight: 700;
  line-height: 1.618;
  margin: 20px 0 10px;
  color: var(--text);
  word-wrap: break-word;
}
h1 { font-size: 42px; }
h2 { font-size: 37px; }
h3 { font-size: 32px; }
h4 { font-size: 27px; }
h5 { font-size: 23px; }
p { margin: 0 0 10px; }
figure { margin: 0; }
strong, b { font-weight: 700; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  transition: transform .3s ease;
}
.site-header.is-scrolled { transform: translateY(-40px); }

.topbar {
  height: 40px;
  background: var(--topbar);
}

.navbar {
  height: 70px;
  background: #fff;
  box-shadow: 0 1px 10px -6px rgba(0,0,0,.42), 0 1px 10px 0 rgba(0,0,0,.12), 0 4px 5px -2px rgba(0,0,0,.1);
}
.navbar .container {
  display: flex;
  align-items: center;
  height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: auto; height: 50px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 10px;
  border: 0;
  background: none;
  color: var(--nav-text);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: .3s ease;
}
.nav-toggle .bar + .bar { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:hover { color: var(--accent); }

.main-nav { margin-left: auto; }
.menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu > li { position: relative; }
.menu > li > a {
  display: block;
  padding: 15px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: var(--nav-text);
  text-transform: uppercase;
  border-radius: 3px;
  white-space: nowrap;
  transition: color .3s ease;
}
.menu > li:hover > a,
.menu > li > a:focus,
body:not(.home) .menu > li.active > a { color: var(--accent); }

.caret {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 2px;
  vertical-align: -1px;
  fill: currentColor;
}

.sub-toggle { display: none; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 160px;
  margin: -5px 0 0;
  padding: 5px 0;
  list-style: none;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 12px rgba(0,0,0,.176);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover > .dropdown,
.has-sub:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown a {
  display: block;
  margin: 0 5px;
  padding: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.43;
  color: #333;
  border-radius: 2px;
  white-space: nowrap;
}
.dropdown a:hover, .dropdown a:focus { color: var(--accent); }

/* ------------------------------------------------------------------ layout */
.main { padding-top: 110px; }

body.home { background-color: #b7b7b7; }

/* วิดีโอพื้นหลังหน้าแรก (เหมือนเดิม: เต็มจอ ตรึงอยู่กับที่) */
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background: #000 url(../video/bg-poster.jpg) center / cover no-repeat;
  z-index: -1;
}

/* ------------------------------------------------------------------ home: about */
.hestia-about {
  position: relative;
  padding: 65px 0 30px;
  color: #fefefe;
}
.body-front {
  padding: 20px 60px;
  border-radius: 15px;
  background: rgba(2, 2, 2, .7);
}
.body-front h2, .body-front h3 { color: #fff; text-align: center; }
.body-front h3 { font-size: 32px; margin: 20px 0 10px; }
.body-front h2 { font-size: 37px; margin: 20px 0 10px; }
.body-front h2 span { color: #ff6600; }
.body-front p { font-size: 18px; text-align: center; color: #fefefe; }
.body-front figure { margin: 0 auto 24px; text-align: center; }
.body-front figure a { display: inline-block; }

/* ------------------------------------------------------------------ home: contact */
.hestia-contact {
  position: relative;
  padding: 90px 0 70px;
  background: #343434 url(../img/slide1.jpg) center / cover no-repeat;
}
.hestia-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 1;
}
.hestia-contact .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact-info { flex: 0 0 41.6667%; max-width: 41.6667%; }
.contact-card-col { flex: 0 0 41.6667%; max-width: 41.6667%; }

.hestia-contact .hestia-title {
  font-size: 37px;
  margin: 20px 0 30px;
  color: #fff;
}
.hestia-contact h5.description {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  margin: 10px 0 15px;
  color: #ccc;
}
.info {
  display: flex;
  max-width: 360px;
  margin-top: 30px;
  color: #eaeaea;
}
.info .icon {
  flex: 0 0 auto;
  width: 32px;
  margin: 14px 10px 0 0;
}
.info .icon svg { display: block; width: 32px; height: 32px; fill: #fff; }
.info-title {
  margin: 20px 0 15px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.618;
  color: #fff;
}
h4.info-title { font-size: 18px; }
.info-title a { color: #fff; }
.info-sub { margin-top: 30px; color: #eaeaea; }
.info-sub h4 { font-size: 18px; color: #fff; margin: 20px 0 15px; }
.info-sub .row-tel { display: flex; align-items: center; gap: 4px; }
.info-sub .row-tel svg { width: 12px; height: 12px; fill: #fff; flex: 0 0 auto; }
.info-sub a { color: #eaeaea; }
.info-sub a:hover { color: #fff; }

/* การ์ด Contact Us (แทนฟอร์มเดิมด้วยปุ่ม LINE + โทร) */
.card-contact {
  position: relative;
  margin: 30px 0;
  background: #fff;
  border-radius: 6px;
  color: rgba(0, 0, 0, .87);
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}
.card-contact .card-header {
  margin: -20px 15px 15px;
  padding: 17px 10px;
  border-radius: 3px;
  background: var(--accent);
  text-align: center;
  box-shadow: 0 16px 38px -12px rgba(0,0,0,.56), 0 4px 25px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,0,0,.2);
}
.card-contact .card-title {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}
.card-contact .card-body { padding: 15px 30px 30px; text-align: center; }
.card-contact .lead {
  margin: 0 0 20px;
  font-size: 16px;
  color: #555;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 33px;
  border: 0;
  border-radius: 3px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.43;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus { color: #fff; }
.btn-line {
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  background: var(--line);
  box-shadow: 0 2px 2px 0 rgba(6,199,85,.14), 0 3px 1px -2px rgba(6,199,85,.2), 0 1px 5px 0 rgba(6,199,85,.12);
}
.btn-line:hover { box-shadow: 0 14px 26px -12px rgba(6,199,85,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(6,199,85,.2); }
.btn-line svg { width: 26px; height: 26px; }
.btn-primary {
  background: var(--accent);
  box-shadow: 0 2px 2px 0 rgba(0,161,242,.14), 0 3px 1px -2px rgba(0,161,242,.2), 0 1px 5px 0 rgba(0,161,242,.12);
}
.btn-primary:hover { box-shadow: 0 14px 26px -12px rgba(0,161,242,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,161,242,.2); }
.line-id { margin: 10px 0 22px; font-size: 14px; color: #777; }
.line-id strong { color: #333; }
.call-list { display: grid; gap: 10px; }
.call-list .btn { width: 100%; text-transform: none; font-size: 14px; }
.call-list .btn svg { width: 16px; height: 16px; fill: #fff; }
.call-list .btn small { font-size: 12px; opacity: .9; }

/* ------------------------------------------------------------------ inner pages */
body:not(.home) .main { background: #fff; }
.page-section { padding: 40px 0 70px; }
.page-content-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 15px;
}
.page-content-wrap .hestia-title {
  font-size: 42px;
  line-height: 1.3;
  margin: 0 0 15px;
}
.image-in-page { display: block; width: 100%; margin: 0 0 30px; }
.page-content-wrap p,
.page-content-wrap ol,
.page-content-wrap ul { font-size: 18px; margin: 0 0 15px; }
.page-content-wrap h2 { font-size: 37px; font-weight: 500; margin: 0 0 15px; }
.page-content-wrap h2 strong { font-weight: 700; }
.page-content-wrap h4 { font-size: 27px; margin: 0 0 15px; }
.page-content-wrap h5 { font-size: 23px; margin: 0 0 15px; }
.page-content-wrap .wp-figure { margin: 0 0 24px; }
.page-content-wrap .wp-figure.center { text-align: center; }
.page-content-wrap .gallery img { display: block; margin: 0 0 4px; }
.text-center { text-align: center; }

.kv { margin: 0 0 15px; font-size: 18px; }
.kv div { display: flex; }
.kv dt { flex: 0 0 auto; min-width: 7.6em; font-weight: 700; }
.kv dd { margin: 0; }
.kv dt::after { content: " :"; }

blockquote {
  margin: 0 0 20px;
  padding: 10px 20px;
  border-left: 5px solid #eee;
  font-size: 18px;
}
blockquote p { font-style: italic; }

.video-embed {
  position: relative;
  margin: 0 0 24px;
  padding-top: 56.25%;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-actions {
  max-width: 420px;
  margin: 0 0 30px;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
  text-align: center;
}

/* ------------------------------------------------------------------ footer */
.footer {
  padding: 30px 0 18px;
  background: var(--footer);
  color: #999;
}
body.home .footer { background: transparent; }
.footer .content { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.footer .widget { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 15px; }
.fb-frame {
  display: block;
  width: 340px;
  max-width: 100%;
  height: 650px;
  border: 0;
  overflow: hidden;
}
.footer hr {
  margin: 10px 0 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.footer .bottom { display: flex; justify-content: flex-end; }
.copyright { padding: 15px 0; color: #fff; text-align: center; }
.copyright a { color: #fff; opacity: .86; }
.copyright a:hover { opacity: 1; color: #fff; }

/* ------------------------------------------------------------------ floating LINE */
.line-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.line-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 22px rgba(0, 0, 0, .35); }
.line-float svg { width: 36px; height: 36px; }
.line-float .tip {
  position: absolute;
  right: 72px;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: .2s ease;
  pointer-events: none;
}
.line-float:hover .tip, .line-float:focus .tip { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    display: none;
  }
  .site-header.is-scrolled .main-nav { top: 110px; }
  .main-nav.open { display: block; }
  .menu { flex-direction: column; padding: 10px 0; }
  .menu > li > a { padding: 12px 20px; font-size: 14px; }
  .has-sub > a { padding-right: 56px; }
  .menu .caret { display: none; }
  .sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 6px;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--nav-text);
    cursor: pointer;
  }
  .sub-toggle svg { width: 12px; height: 12px; fill: currentColor; transition: transform .2s ease; }
  .has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
  .dropdown {
    position: static;
    display: none;
    margin: 0;
    padding: 0 0 6px 20px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-sub.open > .dropdown { display: block; }
  .has-sub:hover > .dropdown { display: none; }
  .has-sub.open:hover > .dropdown { display: block; }
  .dropdown a { font-size: 14px; }
}

@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 22px; }
  h5 { font-size: 20px; }
  .page-content-wrap .hestia-title { font-size: 36px; }
  .page-content-wrap h2 { font-size: 28px; }
  .page-content-wrap h4 { font-size: 22px; }
  .page-content-wrap h5 { font-size: 20px; }
  .page-content-wrap p,
  .page-content-wrap ol,
  .page-content-wrap ul,
  .kv, blockquote { font-size: 16px; }
  .body-front h3 { font-size: 24px; }
  .body-front h2 { font-size: 28px; }
  .hestia-contact .hestia-title { font-size: 24px; }
  .contact-info, .contact-card-col { flex-basis: 100%; max-width: 100%; }
  .contact-card-col { margin-top: 30px; }
  .footer .widget { flex-basis: 100%; max-width: 100%; }
  .footer .bottom { justify-content: center; }
  .kv div { display: block; }
  .kv dt { min-width: 0; }
}

@media (max-width: 480px) {
  .line-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .line-float .tip { display: none; }
}

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