/* ==========================================================================
   Green Link Logistics — Shared Stylesheet
   Theme: Blue
   ========================================================================== */

:root {
  --blue-900: #0a2e5c;
  --blue-800: #0d3f7a;
  --blue-700: #114f96;
  --blue-600: #1565c0;
  --blue-500: #1e7be0;
  --blue-400: #4d9bf0;
  --blue-100: #e8f1fd;
  --blue-50:  #f4f9ff;
  --ink-900: #0f1b2d;
  --ink-700: #34495e;
  --ink-500: #62748a;
  --white: #ffffff;
  --line: #dfe9f7;
  --shadow: 0 10px 30px rgba(10, 46, 92, 0.10);
  --shadow-sm: 0 4px 14px rgba(10, 46, 92, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans Thai", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Kanit", "Noto Sans Thai", sans-serif;
  color: var(--blue-900);
  line-height: 1.35;
  margin: 0 0 16px;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-700); }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-800); }

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

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

section { padding: 72px 0; }

.section-alt { background: var(--blue-50); }

.eyebrow {
  display: inline-block;
  font-family: "Kanit", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-700); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--blue-400);
  color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-100); color: var(--blue-800); }
.btn-light {
  background: var(--white);
  color: var(--blue-700);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-900);
}
.brand:hover { color: var(--blue-900); }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-800));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text .th { font-family: "Kanit", sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand-text .en { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--blue-500); text-transform: uppercase; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.98rem;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--blue-100);
  color: var(--blue-700);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.12rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.2;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(10, 46, 92, 0.88);
  color: var(--white);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "Kanit", sans-serif;
}
.hero-badge strong { font-size: 1.3rem; display: block; line-height: 1; }
.hero-badge span { font-size: 0.78rem; color: var(--blue-100); }

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat strong {
  display: block;
  font-family: "Kanit", sans-serif;
  font-size: 1.7rem;
  color: var(--blue-700);
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--ink-500); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-media { order: -1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  padding: 70px 0 56px;
}
.page-hero .eyebrow { background: rgba(255,255,255,0.14); color: var(--white); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: var(--blue-100); max-width: 620px; font-size: 1.05rem; margin: 0; }
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--blue-100);
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--white); opacity: 0.85; }
.page-hero .breadcrumb a:hover { opacity: 1; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-700);
}
.icon-box svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* Service card with image */
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card .media { aspect-ratio: 16/10; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .media img { transform: scale(1.06); }
.service-card .body { padding: 22px 24px 26px; }
.service-card .tag {
  font-family: "Kanit", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* ---------- Feature list (image + text split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3.1;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-700);
}
.check-list li:last-child { border-bottom: none; }
.check-list .dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: -1; }
}

/* ---------- Timeline / process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process .step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 20px;
}
.process .step::before {
  counter-increment: step;
  content: counter(step);
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  color: var(--blue-600);
  background: var(--blue-100);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: var(--blue-100); margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--blue-700); }
.cta-band .btn-primary:hover { background: var(--blue-100); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-strip .stat strong {
  display: block;
  font-family: "Kanit", sans-serif;
  font-size: 2.1rem;
  color: var(--blue-700);
}
.stats-strip .stat span { color: var(--ink-500); font-size: 0.9rem; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; }
.info-row .icon-box { margin-bottom: 0; flex-shrink: 0; }
.info-row h3 { margin-bottom: 4px; font-size: 1rem; }
.info-row p { margin: 0; font-size: 0.96rem; }
.info-row a { color: var(--ink-700); }
.info-row a:hover { color: var(--blue-700); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
@media (max-width: 700px) { .channel-grid { grid-template-columns: 1fr; } }
.channel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  background: var(--blue-50);
}
.channel-card .icon-box { margin: 0 auto 12px; background: var(--white); }
.channel-card strong { display: block; font-family: "Kanit", sans-serif; color: var(--blue-800); margin-bottom: 4px; }
.channel-card span { font-size: 0.9rem; color: var(--ink-500); }

/* ---------- Policy page ---------- */
.policy-body h2 {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.policy-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.policy-body ul { padding-left: 22px; color: var(--ink-700); }
.policy-body li { margin-bottom: 8px; }
.policy-meta {
  display: inline-flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-500);
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 30px;
}
.toc {
  background: var(--blue-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.toc h3 { margin-bottom: 12px; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 20px; color: var(--blue-700); }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--blue-700); font-weight: 500; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-text .th { color: var(--white); }
.footer-brand p { color: var(--blue-100); font-size: 0.92rem; margin-top: 14px; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--blue-100); font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: var(--blue-100); font-size: 0.94rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.86rem;
  color: rgba(232, 241, 253, 0.75);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(232, 241, 253, 0.75); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
