/* ============================================================
   บริษัท โปร ไอ.ที. ลิ้งค์ จำกัด — Landing Page
   Theme: formal, blue-white
   ============================================================ */

:root {
  --navy-deep: #101c48;
  --navy: #13245c;
  --primary: #16307a;
  --blue: #2e5cc5;
  --tint: #eef3fb;
  --tint-icon: #e1eafc;
  --line: #e3e9f5;
  --text: #1c2740;
  --text-soft: #55617e;
  --text-faint: #7a86a5;
  --hero-text: #c6d4f2;
  --hero-soft: #9ab4e8;
}

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

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 90px; }

body {
  font-family: 'Sarabun', 'Noto Sans Thai', Tahoma, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
}

img { max-width: 100%; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  padding: 13px 26px;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { filter: brightness(1.15); color: #ffffff; }

.btn-light { background: #ffffff; color: var(--primary); }
.btn-light:hover { background: var(--tint); color: var(--primary); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  font-weight: 500;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; }

.brand-th {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  line-height: 1.3;
  white-space: nowrap;
}

.brand-en {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  color: var(--text-faint);
  font-weight: 500;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 34px; }

.nav-link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 0;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-phone { padding: 12px 22px; font-size: 15px; font-weight: 500; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
}
.menu-toggle .icon { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); padding: 88px 0; }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 660px;
}

.hero-tag {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13.5px;
  color: #cfe0ff;
}

.hero-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.3;
  color: #ffffff;
}

.hero-en {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--hero-soft);
  font-weight: 600;
}

.hero-desc { font-size: 17px; line-height: 1.9; color: var(--hero-text); }

.hero-proof {
  font-family: 'Prompt', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.8;
  color: #ffffff;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.hero-badge { flex-shrink: 0; }

.hero-badge-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08), 0 0 0 28px rgba(255, 255, 255, 0.04);
}

.hero-badge-img { height: 220px; width: auto; }

.hero-badge-label {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: 1px;
}

/* ---------- Trust bar ---------- */
.trust { background: #ffffff; border-bottom: 1px solid var(--line); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 44px 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.trust-item-mid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.trust-number {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--primary);
  line-height: 1.3;
}

.trust-label { font-size: 15px; color: var(--text-soft); }

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 600;
}

.section-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 34px;
  color: var(--primary);
  line-height: 1.4;
}

.section-title-left { font-size: 32px; }

.section-desc {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.8;
}

/* ---------- Services ---------- */
.services { background: var(--tint); padding: 84px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--tint-icon);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
}

.service-desc { font-size: 15px; line-height: 1.8; color: var(--text-soft); }

.service-card-link {
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.service-card-link:hover {
  color: inherit;
  border-color: #b9caea;
  box-shadow: 0 10px 26px rgba(16, 28, 72, 0.1);
  transform: translateY(-2px);
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}

.service-card-link:hover .service-more { color: var(--blue); }
.service-more .icon { transition: transform 0.15s ease; }
.service-card-link:hover .service-more .icon { transform: translateX(3px); }

/* ---------- Consulting ---------- */
.consulting { background: #ffffff; padding: 84px 0; }

.consulting-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.consulting-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.consulting-desc { font-size: 16px; line-height: 1.9; color: var(--text-soft); }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
}

.icon.check { width: 22px; height: 22px; color: var(--blue); }

.quote-card {
  flex-shrink: 0;
  width: 480px;
  background: var(--navy);
  border-radius: 14px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quote-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
}

.quote-logo img { width: 100%; height: 100%; object-fit: cover; }

.quote-text {
  font-family: 'Prompt', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.7;
  color: #ffffff;
}

.quote-author {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 18px;
}

.quote-name {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}

.quote-role { font-size: 14px; color: var(--hero-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--tint); padding: 84px 0; }

.contact-inner { display: flex; gap: 60px; }

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-lead { font-size: 16px; color: var(--text-soft); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.contact-item { display: flex; align-items: flex-start; gap: 14px; }

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--tint-icon);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon .icon { width: 20px; height: 20px; }

.contact-label {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
}

.contact-value { font-size: 15px; line-height: 1.8; color: var(--text-soft); }
.contact-value-en { font-size: 13.5px; color: var(--text-faint); }

.contact-map {
  flex: 1;
  position: relative;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d7e0f0;
  background: #ffffff;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-open {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(16, 28, 72, 0.25);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); padding: 26px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--hero-soft);
}

.site-footer a { color: var(--hero-soft); }
.site-footer a:hover { color: #ffffff; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-title { font-size: 38px; }
  .hero-badge-circle { width: 260px; height: 260px; }
  .hero-badge-img { height: 175px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consulting-inner { gap: 44px; }
  .quote-card { width: 400px; padding: 36px 32px; }
}

@media (max-width: 860px) {
  /* Header → mobile */
  .header-inner { height: 64px; }
  .brand { gap: 10px; }
  .brand-logo { height: 44px; }
  .brand-th { font-size: 14px; }
  .brand-en { font-size: 9px; letter-spacing: 1.2px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(16, 28, 72, 0.08);
    padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 24px; font-size: 16px; }

  .btn-phone { width: 44px; height: 44px; padding: 0; border-radius: 8px; }
  .btn-phone-text { display: none; }
  .menu-toggle { display: flex; }

  /* Hero → stacked, centered */
  .hero { padding: 48px 0; }
  .hero-inner { flex-direction: column-reverse; gap: 24px; }
  .hero-content { align-items: center; text-align: center; max-width: 100%; }
  .hero-title { font-size: 28px; line-height: 1.4; }
  .hero-en { font-size: 11px; letter-spacing: 2.5px; }
  .hero-desc { font-size: 15px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-badge-circle {
    width: 160px;
    height: 160px;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08);
  }
  .hero-badge-img { height: 108px; }
  .hero-badge-label { display: none; }

  /* Trust */
  .trust-grid { gap: 8px; padding: 24px 16px; }
  .trust-number { font-size: 20px; }
  .trust-label { font-size: 12px; line-height: 1.5; }

  /* Sections */
  .services, .consulting, .contact { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .section-title-left { font-size: 24px; }
  .section-head { margin-bottom: 24px; }
  .section-desc { font-size: 14.5px; }

  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 20px; }
  .service-title { font-size: 16.5px; }
  .service-desc { font-size: 14px; }

  /* Consulting → stacked */
  .consulting-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .quote-card { width: 100%; padding: 28px 24px; }
  .quote-text { font-size: 16px; }

  /* Contact → stacked */
  .contact-inner { flex-direction: column; gap: 24px; }
  .contact-map { min-height: 280px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; font-size: 13px; }
}
