:root {
  --brand-900: #0f1d3a;
  --brand-800: #1b2f59;
  --brand-700: #2b4a87;
  --slate-100: #f2f5f9;
  --slate-200: #d8e0eb;
  --slate-400: #6f7e94;
  --ink-900: #0b1324;
  --glass: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Prompt', sans-serif;
  color: var(--ink-900);
  background: radial-gradient(circle at 15% -10%, #e9efff 0%, #f9fbff 32%, #ffffff 60%);
}

h1,
h2,
h3,
h4,
.brand-font {
  font-family: 'Sora', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
}

html[lang='th'] h1,
html[lang='th'] h2,
html[lang='th'] h3,
html[lang='th'] h4,
html[lang='th'] .brand-font {
  font-family: 'Prompt', 'Noto Sans JP', sans-serif;
  letter-spacing: 0;
}

/* ---------- Shared Layout ---------- */
.site-shell {
  position: relative;
  overflow-x: clip;
}

.section-space {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(43, 74, 135, 0.25);
  color: var(--brand-700);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.section-tag::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7da7ff, #2b4a87);
}

.card-glass {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(15, 29, 58, 0.09);
}

/* ---------- Navigation ---------- */
.nav-wrap {
  background: rgba(245, 249, 255, 0.82);
  border-bottom: 1px solid rgba(15, 29, 58, 0.08);
  backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
  color: #1f355f;
  font-weight: 500;
  font-family: 'Prompt', 'Noto Sans JP', sans-serif;
  transition: color 250ms ease;
}

#mobileMenu [data-nav] {
  font-family: 'Prompt', 'Noto Sans JP', sans-serif;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6f91dd, #2b4a87);
  transition: width 260ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0d1f43;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 95vh;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(4, 13, 30, 0.86), rgba(13, 29, 60, 0.7)), url('../..//hero1_bg.jpg') center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(123, 162, 255, 0.18), transparent 42%);
  z-index: -1;
}

.parallax-layer {
  transform: translateY(var(--parallax-shift, 0px));
  transition: transform 150ms linear;
}

.hero-grid-lines {
  background-image: linear-gradient(rgba(141, 167, 218, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 167, 218, 0.2) 1px, transparent 1px);
  background-size: 48px 48px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(43, 74, 135, 0.28);
}

/* ---------- Cards / Blocks ---------- */
.premium-card {
  background: #ffffff;
  border-radius: 1.35rem;
  border: 1px solid #e7edf6;
  box-shadow: 0 10px 35px rgba(16, 24, 40, 0.05);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 280ms ease, border-color 280ms ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  border-color: #cfd9ea;
  box-shadow: 0 24px 40px rgba(17, 36, 72, 0.12);
}

.product-frame {
  height: 220px;
  border-radius: 1rem;
  background: linear-gradient(165deg, #f6f9ff 0%, #edf2fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 350ms ease;
}

.premium-card:hover .product-frame img {
  transform: scale(1.08);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal='left'] {
  transform: translateX(-30px);
}

[data-reveal='right'] {
  transform: translateX(30px);
}

.revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(140deg, #0f1d3a, #091224);
}

/* ---------- Contact Form ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f355f;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  border-radius: 0.85rem;
  border: 1.5px solid #d8e0eb;
  background: #f8fafd;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #0b1324;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
}

.form-input:focus {
  border-color: #2b4a87;
  box-shadow: 0 0 0 3px rgba(43, 74, 135, 0.12);
  background: #ffffff;
}

.form-input::placeholder {
  color: #9daec9;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232b4a87' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 7rem;
}

/* ---------- Activity Cards ---------- */
.activity-thumb {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(165deg, #f0f5ff 0%, #e5edf9 100%);
  transition: height 250ms ease;
}

.activity-thumb--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.activity-badge--safety  { background: #fff0e6; color: #c05621; }
.activity-badge--business{ background: #e6f0ff; color: #1a3d87; }
.activity-badge--csr     { background: #e6faf0; color: #166534; }
.activity-badge--event   { background: #f5e6ff; color: #6b21a8; }
.activity-badge--award   { background: #fffae6; color: #92400e; }

/* ---------- Career Page ---------- */
.career-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #e8efff, #d5e2ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-dept {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.job-dept--engineering { background: #e6f0ff; color: #1a3d87; }
.job-dept--production  { background: #e9fbf0; color: #135f32; }
.job-dept--quality     { background: #fff0e6; color: #9a3412; }
.job-dept--admin       { background: #f5e6ff; color: #6b21a8; }
.job-dept--hr          { background: #fffae6; color: #78350f; }

.job-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f2f5fb;
  color: #1f355f;
  border: 1px solid #d8e0eb;
  white-space: nowrap;
}

.job-type--closed {
  background: #f2f2f2;
  color: #9b9b9b;
  border-color: #e0e0e0;
}

.career-step-num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b4a87, #1b2f59);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(43, 74, 135, 0.28);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.mobile-menu.open {
  max-height: 480px;
}

@media (max-width: 768px) {
  .section-space {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero {
    min-height: 88vh;
  }
}
