:root {
  --navy: #14335E;
  --navy-dark: #0B2140;
  --navy-mid: #0F2A4F;
  --accent: #F2A73B;
  --accent-ink: #1A1500;
  --bg: #F5F3EE;
  --text: #23261F;
  --text-muted: #6B6F62;
  --border: #E7E4DA;
  --card-shadow: 0 1px 3px rgba(20, 51, 94, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans Thai', sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .jtp-h, .logo-text, .nav a, .btn, .badge, .pill {
  font-family: 'Kanit', sans-serif;
}

button { font-family: inherit; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  padding: 14px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #EF9A1F; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(242,167,59,0.35); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0F2A4F; transform: translateY(-1px); }
.btn-pill { border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; }
.btn-light { background: #F1EFE7; color: var(--text); }
.btn-light:hover { background: #E9E6DA; }
.btn:active { transform: translateY(0); }

/* Header */
.site-header {
  width: 100%;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .name { color: #fff; font-size: 18px; font-weight: 700; }
.brand-text .tag { color: #A9B7CE; font-size: 12px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  text-decoration: none;
  color: #EDEFE9;
  font-size: 15px;
}
.nav a:hover, .nav a.active { color: var(--accent); }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* Page banner (interior pages) */
.page-banner {
  position: relative;
  width: 100%;
  background: var(--navy-mid);
  overflow: hidden;
}
.page-banner .bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.page-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-mid) 30%, rgba(15,42,79,0.55) 100%);
}
.page-banner .content {
  position: relative;
  padding-top: 48px;
  padding-bottom: 42px;
}
.breadcrumb { color: #93A6C4; font-size: 14px; margin-bottom: 10px; }
.breadcrumb span { color: var(--accent); }
.page-banner h1 { margin: 0; font-size: 36px; font-weight: 800; color: #fff; }
.page-banner p { margin: 10px 0 0; font-size: 16px; color: #C4CEDE; max-width: 620px; line-height: 1.7; }

/* Hero (home) */
.hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero img.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,26,51,0.93) 0%, rgba(10,26,51,0.82) 42%, rgba(10,26,51,0.45) 78%, rgba(10,26,51,0.25) 100%);
}
.hero .content {
  position: relative;
  padding-top: 70px;
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eyebrow-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px;
  border-radius: 999px;
  color: #E8ECF3;
  font-size: 13px;
}
.hero h1 { margin: 0; font-size: 46px; font-weight: 800; color: #fff; line-height: 1.25; max-width: 680px; }
.hero p.lead { margin: 0; font-size: 17px; color: #D7DEE9; max-width: 560px; line-height: 1.7; }
.hero .actions { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }

/* Stats bar */
.stats-bar { width: 100%; background: var(--navy-mid); }
.stats-bar .container {
  padding: 26px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stat { display: flex; align-items: center; gap: 12px; }
.stat svg { flex-shrink: 0; }
.stat .t1 { color: #fff; font-size: 15px; font-weight: 700; }
.stat .t2 { color: #9FB1CB; font-size: 12.5px; }

/* Section headings */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 700; color: var(--navy); }
.section-head p { margin: 12px auto 0; max-width: 620px; font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* Product / service cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 51, 94, 0.14);
}
.card img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.35s ease; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 14px 16px 18px; }
.card-title { font-size: 15px; font-weight: 600; }
.badge {
  display: inline-flex;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.badge-product { background: #E7EEF7; color: var(--navy); }
.badge-service { background: rgba(242,167,59,0.18); color: #8A5A10; }

.p-card .card { min-height: 100%; }
.p-card img { height: 190px; }
.p-card .card-body { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.p-card .card-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.p-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; flex-grow: 1; }
.p-link { font-size: 14px; font-weight: 600; margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--navy); }
.p-link svg { transition: transform 0.2s ease; }
.p-link:hover svg { transform: translateX(3px); }
.p-link:hover { color: var(--accent-ink); }

.badge-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  color: #fff; background: var(--navy);
}
.badge-tag.service { background: var(--accent); color: var(--accent-ink); }
.card-media { position: relative; overflow: hidden; }

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-split img { border-radius: 18px; }
.about-img-wrap { position: relative; }
.about-badge {
  position: absolute; bottom: -22px; right: -22px;
  background: var(--accent); color: var(--accent-ink);
  padding: 20px 26px; border-radius: 14px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.about-badge .big { font-size: 24px; font-weight: 800; }
.about-badge .small { font-size: 13px; font-weight: 600; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-item svg { flex-shrink: 0; margin-top: 2px; }

/* Value cards */
.val-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.val-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 51, 94, 0.1);
  border-color: transparent;
}
.val-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: #E7EEF7;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background-color 0.2s ease;
}
.val-card:hover .val-icon { background: var(--accent); }
.val-card:hover .val-icon svg { stroke: var(--accent-ink); }
.val-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--navy); }
.val-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Branch / contact cards */
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.branch-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.branch-card:hover { box-shadow: 0 14px 28px rgba(20, 51, 94, 0.12); transform: translateY(-3px); }
.branch-card img { height: 180px; object-fit: cover; }
.branch-card iframe { display: block; }
.branch-body { padding: 26px; }
.branch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.branch-head .name { font-size: 19px; font-weight: 700; color: var(--navy); }
.branch-info { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.branch-info .row { display: flex; gap: 10px; align-items: flex-start; }
.branch-info .row svg { flex-shrink: 0; margin-top: 3px; }
.branch-info .phone { font-weight: 700; color: var(--navy); }
.branch-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #1B4A82 100%);
  border-radius: 20px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h3 { margin: 0 0 4px; color: #fff; font-size: 22px; font-weight: 700; }
.cta-banner p { margin: 0; color: #C4CEDE; font-size: 15px; }
.cta-banner.center { flex-direction: column; text-align: center; padding: 48px; }
.cta-banner.center .btn { margin-top: 18px; }

/* Filter pills */
.filter-row { display: flex; gap: 10px; padding: 18px 0; }
.pill {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: #F1EFE7; color: var(--text-muted); border: none; cursor: pointer;
}
.pill.active { background: var(--navy); color: #fff; }
.pill:hover { background: #E9E6DA; }
.pill.active:hover { background: var(--navy); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field input, .field textarea {
  font-family: 'Noto Sans Thai', sans-serif;
  border: 1px solid #DEDACE; border-radius: 10px; padding: 12px 14px;
  font-size: 14.5px; color: var(--text); background: #FBFAF6; width: 100%;
  resize: vertical;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-wrap {
  border-radius: 18px; overflow: hidden; background: var(--border);
  min-height: 380px; position: relative;
}
.map-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.map-wrap .pin {
  position: relative; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.pin-circle {
  width: 52px; height: 52px; border-radius: 999px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.pin-label {
  background: #fff; padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,0.12); text-decoration: none;
}

/* Footer */
.site-footer { width: 100%; background: var(--navy-dark); padding: 48px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand span { color: #fff; font-size: 16px; font-weight: 700; }
.footer-desc { color: #93A1B8; font-size: 13.5px; line-height: 1.7; max-width: 320px; margin: 0; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: #C7CBC0; font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; color: #93A1B8; font-size: 13.5px; }
.footer-bottom {
  padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: #6C7A90; font-size: 12.5px;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-split, .contact-grid, .branch-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .about-badge {
    bottom: -16px; right: 16px;
    padding: 12px 18px; border-radius: 12px;
  }
  .about-badge .big { font-size: 18px; }
  .about-badge .small { font-size: 11.5px; }
  .site-header .container {
    height: 76px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
  }
  .brand {
    grid-column: 2;
    justify-self: center;
    flex-direction: column;
    gap: 2px;
  }
  .brand img { height: 34px; }
  .brand-text { align-items: center; }
  .brand-text .name { font-size: 12.5px; white-space: nowrap; }
  .brand-text .tag { display: none; }
  .header-cta span { display: none; }
  .header-cta {
    grid-column: 3;
    justify-self: end;
    padding: 10px !important;
    border-radius: 999px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-cta svg { width: 15px; height: 15px; }
  .menu-toggle { grid-column: 1; justify-self: start; padding: 8px; margin-left: -8px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .hero { min-height: 460px; }
  .page-banner h1 { font-size: 26px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .cta-banner { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    gap: 18px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
}
