/* ==========================================================================
   TCBA Shared Footer Stylesheet
   Applied globally to all pages on tcba.or.th
   Stitch "Footer Component - Desktop" — Heritage Modernism system
   ========================================================================== */

:root {
  --tcba-primary:    #253576;
  --tcba-primary-dk: #162153;
  --tcba-cyan:       #00b4d8;
  --tcba-gold:       #c5a059;
  --tcba-bg-footer:  #253576;
  --tcba-text:       #f8fafc;
  --tcba-muted:      rgba(241, 243, 249, 0.7);
  --tcba-border:     rgba(255, 255, 255, 0.1);
  --tcba-font:       'Noto Sans Thai', 'Inter', -apple-system, sans-serif;
}

/* Google Fonts inline - Inter & Noto Sans Thai */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

/* ================================================
   Footer Wrapper
   ================================================ */
.tcba-site-footer {
  background-color: var(--tcba-bg-footer);
  padding: 80px 0 40px;
  font-family: var(--tcba-font);
  color: var(--tcba-text);
  width: 100%;
}

.tcba-site-footer * {
  box-sizing: border-box;
}

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

/* ================================================
   Footer Grid — 4 columns (Stitch layout)
   ================================================ */
.tcba-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 64px;
  text-align: left;
}

/* ================================================
   Brand Column
   ================================================ */
.tcba-footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}

.tcba-footer-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.tcba-footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tcba-gold);
}

.tcba-footer-desc {
  font-size: 0.9rem;
  color: var(--tcba-muted);
  line-height: 1.7;
  max-width: 360px;
}

.tcba-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.tcba-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tcba-footer-social a svg {
  width: 18px;
  height: 18px;
}

.tcba-footer-social a:hover {
  background-color: var(--tcba-gold);
  color: var(--tcba-primary-dk);
}

/* ================================================
   Links Columns (เมนูหลัก / ลิงก์ด่วน)
   ================================================ */
.tcba-footer-links,
.tcba-footer-contact {
  min-width: 0;
}

.tcba-footer-links h3,
.tcba-footer-contact h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: var(--tcba-font);
}

.tcba-footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tcba-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--tcba-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tcba-footer-links a svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}

.tcba-footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.tcba-footer-contact p {
  font-size: 0.9rem;
  color: var(--tcba-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.tcba-footer-contact a {
  color: var(--tcba-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tcba-footer-contact a:hover {
  color: #ffffff;
}

/* ================================================
   Bottom Bar
   ================================================ */
.tcba-footer-bottom {
  border-top: 1px solid var(--tcba-border);
  padding-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--tcba-font);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
  .tcba-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .tcba-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .tcba-site-footer {
    padding: 56px 0 24px;
  }
  .tcba-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    margin-bottom: 40px;
  }
  .tcba-footer-desc {
    max-width: 100%;
  }
  .tcba-footer-contact {
    grid-column: 1 / -1;
  }
}

/* ================================================
   TCBA Standard Organization Footer Components
   ================================================ */
.tcba-footer-address {
  font-size: 0.95rem;
  color: var(--tcba-text) !important;
  line-height: 1.6;
  margin-bottom: 15px;
}

.tcba-footer-map-wrapper {
  margin-bottom: 20px;
}

.tcba-footer-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--tcba-gold) !important;
  border: 1px solid var(--tcba-gold);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tcba-footer-map-btn:hover {
  background-color: var(--tcba-gold);
  color: var(--tcba-primary-dk) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
}

.tcba-map-icon {
  width: 14px;
  height: 14px;
}

.tcba-contact-details {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tcba-contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--tcba-muted);
}

.tcba-contact-details li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--tcba-gold);
}

.tcba-contact-details a {
  color: var(--tcba-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tcba-contact-details a:hover {
  color: var(--tcba-gold) !important;
}
