/* =============================================
   Site Footer — matches reference design
   ============================================= */

.site-footer {
  background: #003d71;
  color: rgba(255,255,255,0.9);
  font-family: 'IBM Plex Sans Thai', sans-serif;
}

.footer-new-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ROW 1 ── */
.footer-row1 {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  min-height: 100px;
}

/* ── ติดต่อโครงการ ── */
.footer-contact-label {
  flex-shrink: 0;
  padding: 20px 28px 20px 0;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 28px;
}
.footer-contact-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.footer-contact-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ── DOH logo + address ── */
.footer-doh {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 20px 28px 20px 0;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 28px;
}
.footer-doh-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.footer-doh-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.footer-doh-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  white-space: nowrap;
}
.footer-doh-addr p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 280px;
}

/* ── Companies ── */
.footer-companies-new {
  flex: 1;
  padding: 16px 28px 16px 0;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 24px;
}
.footer-co-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.footer-co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.footer-co-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-co-item img {
  width: 56px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}
.footer-co-item span {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* ── Visitor Counter ── */
.footer-visitor-new {
  flex-shrink: 0;
  text-align: center;
  padding: 16px 0 16px 8px;
}
.footer-visitor-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  white-space: nowrap;
}
.counter-digits {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.digit {
  background: rgba(0,0,0,0.35);
  color: #fff;
  width: 24px;
  height: 30px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
}

/* ── ROW 2 ── */
.footer-row2 {
  padding: 12px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-row1 {
    flex-wrap: wrap;
    padding: 16px 0;
    gap: 16px;
  }
  .footer-contact-label,
  .footer-doh,
  .footer-companies-new {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .footer-doh { border-bottom: 1px solid rgba(255,255,255,0.12); width: 100%; }
  .footer-co-grid { grid-template-columns: 1fr; }
  .footer-visitor-new { width: 100%; }
}
@media (max-width: 600px) {
  .footer-new-inner { padding: 0 16px; }
  .footer-doh-addr p { font-size: 12px; }
  .footer-co-item span { font-size: 11px; }
}

/* ── Keep old classes for other pages that use them ── */
.visitor-wrap { display: flex; align-items: center; gap: 8px; }
.visitor-label { font-size: 12px; color: rgba(255,255,255,0.6); }
