@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap');

@font-face {
  font-family: "NotoSansThai-Bold";
  src: url("https://sycapt-semplice-hnbmvakdyq-as.a.run.app/5lab-cdn/sycapt/NotoSansThai-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "NotoSansThai-Regular";
  src: url("https://sycapt-semplice-hnbmvakdyq-as.a.run.app/5lab-cdn/sycapt/NotoSansThai-Regular.ttf") format("truetype");
}

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

:root {
  --blue: #0047FF;
  --dark: #020202;
  --nav-h: 96px;
  --max-w: 1170px;
  --pad: 0 2rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.8rem;
  width: 100%;
}

/* ─── NAV ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #fff;
  z-index: 1000;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.navbar .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.8rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo img { width: 200px; height: auto; display: block; }
.navbar nav ul { list-style: none; display: flex; }
.navbar nav ul li a {
  display: block;
  padding: 0 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #9e9e9e;
  text-decoration: none;
  transition: color .2s;
}
.navbar nav ul li a:hover,
.navbar nav ul li.active a { color: var(--dark); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 22px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); background:#fff; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background:#fff; }

/* overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,89,177,1);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.overlay nav ul { list-style: none; text-align: center; }
.overlay nav ul li a {
  display: block;
  padding: 1.1rem 1.5rem;
  font-size: 1.33rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.overlay nav ul li a:hover { opacity: .75; }

/* ─── PAGE OFFSET ─── */
.page { padding-top: var(--nav-h); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #0038cc; }
.btn-text {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  text-decoration: none;
  transition: opacity .2s;
}
.btn-text:hover { opacity: .7; }
.btn-text-white {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-text-white:hover { opacity: .75; }

/* ─── SCROLL REVEAL ─── */
.sr { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.sr.sl { transform: translateX(-36px); }
.sr.sr2 { transform: translateX(36px); }
.sr.sc { transform: scale(.93); }
.sr.visible { opacity: 1 !important; transform: none !important; }
.sr.d1 { transition-delay: .1s; }
.sr.d2 { transition-delay: .2s; }
.sr.d3 { transition-delay: .3s; }
.sr.d4 { transition-delay: .4s; }
.sr.d5 { transition-delay: .5s; }
.sr.d6 { transition-delay: .6s; }

/* ─── VIDEO ─── */
.video-wrap {
  background: rgba(205,222,255,.16);
  border-radius: 12px;
  overflow: hidden;
}
.video-wrap video { width: 100%; display: block; }

/* ─── PRODUCTS ICON GRID ─── */
.prod-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}
.prod-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem .5rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.prod-icon-btn:hover { background: #f0f4ff; }
.prod-icon-btn img {
  width: 72px; height: 72px;
  object-fit: contain;
  border-radius: 50%;
  transition: box-shadow .3s;
  margin-bottom: 10px;
}
.prod-icon-btn:hover img { box-shadow: 0 0 0 6px #6F94F1, 0 0 0 12px #E1EAFE; }
.prod-icon-btn span {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  color: #32325d;
  transition: color .3s;
}
.prod-icon-btn:hover span { color: var(--blue); }

/* ─── CUSTOMERS ─── */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.logo-cell {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 1.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}
.logo-cell img {
  max-width: 120px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(.2);
  transition: filter .2s;
}
.logo-cell img:hover { filter: none; }

/* ─── FOOTER ─── */
.footer {
  background: #000;
  color: #ccc;
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 3rem;
}
.footer h6 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: .9rem;
}
.footer p { font-size: .875rem; line-height: 1.8; color: #aaa; }
.footer a { color: #aaa; text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .f-links { display: flex; flex-direction: column; gap: .45rem; }
.footer .f-contact { display: flex; flex-direction: column; gap: .7rem; }
.footer .f-contact-row { display: flex; align-items: center; gap: 10px; }
.footer .f-contact-row img { width: 17px; height: 17px; object-fit: contain; filter: brightness(4); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: .78rem;
  color: #555;
}

/* ─── PRODUCT SECTIONS ─── */
.prod-section {
  padding: 6rem 0;
}
.prod-section:nth-of-type(odd) { background: #fff; }
.prod-section:nth-of-type(even) { background: #f8f9ff; }
.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.prod-grid.reverse .prod-img { order: 1; }
.prod-grid.reverse .prod-text { order: 2; }
.prod-img img { width: 100%; height: auto; border-radius: 12px; object-fit: contain; }
.prod-text h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.78rem);
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--dark);
}
.prod-text p {
  font-size: 1rem;
  line-height: 1.82;
  color: #555;
  margin-bottom: .9rem;
}
.prod-text p:last-child { margin-bottom: 0; }

/* ─── CONTACT INFO GRID ─── */
.contact-info-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; }
.contact-info-row img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
  .prod-icon-grid { grid-template-columns: repeat(3,1fr); }
  .logo-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .navbar nav { display: none; }
  .hamburger { display: flex; }
  .navbar .logo img { width: 165px; }
  .prod-icon-grid { grid-template-columns: repeat(3,1fr); }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .prod-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .prod-grid.reverse .prod-img { order: 1 !important; }
  .prod-grid.reverse .prod-text { order: 2 !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .about-split { grid-template-columns: 1fr !important; }
  .contact-split { grid-template-columns: 1fr !important; }
}
@media (max-width: 543px) {
  .container { padding: 0 1.1rem; }
  .prod-icon-grid { grid-template-columns: repeat(2,1fr); }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .navbar .logo img { width: 145px; }
  .top-section-text { text-align: center; }
  .top-section-text .btn { display: block; text-align: center; }
}
