/* ================= ROOT VARIABLES & GLOBAL ================= */

:root {
  --primary-blue: #0b3c6f;
  --primary-yellow: #f2c94c;
  --light-bg: #f5f7fb;
  --white: #ffffff;
  --text-main: #222222;
  --text-muted: #555555;
  --border-soft: #dde3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ปรับขนาดพื้นฐานให้อ่านง่าย */
p {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 0.7em;
}

/* ================= LAYOUT HELPERS ================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 40px 0;
  scroll-margin-top: 90px;
  background-color: var(--light-bg);
}

.section-alt {
  background-color: var(--white);
}

/* margin utilities */
.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

/* ================= HEADER & NAVBAR ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 60, 111, 0.98);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Brand block */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 60%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-yellow);
  overflow: hidden; /* ตัดส่วนเกินของรูป */
}

/* ให้รูปโลโก้ย่อขนาดพอดีกรอบ */
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* Navigation menu */

/*.main-nav {}*/

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

/*.nav-item {}*/

.nav-link {
  color: #e8f1ff;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--primary-yellow);
  color: #1a2a3a;
}

/* ================= HERO SECTION ================= */

.hero {
  background: linear-gradient(135deg, #0b3c6f 0%, #145fa8 60%, #2274c9 100%);
  color: var(--white);
  padding: 60px 0 70px;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.hero-text {
  flex: 1 1 360px;
}

.hero-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 20px;
  color: #337ade;
}

.hero-text p {
  color: #e9f2ff;
}

/* Hero buttons */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary-yellow);
  color: #1a2a3a;
  font-weight: 600;
  border-color: #e5b930;
}

.btn-primary:hover {
  background: #ffd84c;
}

.btn-outline {
  background: transparent;
  color: #f3f7ff;
  border-color: #f3f7ff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero side box */

.hero-side {
  flex: 1 1 280px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.hero-side-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffef9a;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-side-list {
  margin: 0;
  padding-left: 16px;
  color: #eef4ff;
}

/* ================= GENERIC SECTION STYLES ================= */

.section-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.sub-title {
  font-size: 16px;
  margin-bottom: 8px;
  margin-top: 4px;
  color: #1c3554;
}

.section-intro {
  max-width: 800px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Two-column layout */

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}

.col {
  flex: 1 1 280px;
}

/* Card */

.card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  font-size: 14px;
}

/* Text helpers */

.text-sm {
  font-size: 13px;
}

.muted-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Lists */

.list-dot {
  padding-left: 18px;
  margin: 6px 0;
}

.list-dot li {
  margin-bottom: 4px;
}

.list-dash {
  padding-left: 18px;
  margin: 6px 0;
}

.list-dash li {
  margin-bottom: 4px;
}

.list-numbered {
  padding-left: 18px;
  margin: 10px 0;
  font-size: 14px;
}

.list-numbered li {
  margin-bottom: 4px;
}

/* ================= BUSINESS SECTION ================= */

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.business-item-title {
  font-size: 15px;
  margin: 0 0 6px;
  color: #1c3554;
}

/* ================= SUPPLY CHAIN SECTION ================= */

.flow-chart-wrapper {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.flow-chart-text {
  flex: 1 1 260px;
  font-size: 14px;
}

.flow-chart-image {
  flex: 1 1 260px;
}

.flow-chart-image img {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
}

/* ================= RISK & COMPLIANCE ================= */

.risk-list {
  font-size: 14px;
  margin-top: 10px;
  padding-left: 18px;
}

.risk-list li {
  margin-bottom: 4px;
}

/* ================= CONTACT SECTION ================= */

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 12px;
  font-size: 14px;
}

.contact-label {
  margin: 8px 0 4px;
}

.contact-address {
  font-style: normal;
  white-space: pre-line;
}

.contact-details {
  margin: 0;
}

.contact-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 600px;
}

/* ================= PRODUCT GALLERY ================= */

.product-gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 12px;
  font-size: 13px;
}

.product-card-caption {
  margin-top: 6px;
  color: var(--text-muted);
}

/* ================= FOOTER ================= */

.site-footer {
  background: #0b223a;
  color: #e1e8f5;
  font-size: 12px;
  padding: 14px 0;
  text-align: center;
  margin-top: 10px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .section {
    scroll-margin-top: 0;
  }

  .navbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-inner {
    gap: 20px;
  }

  .brand-title {
    font-size: 14px;
  }
}
