/* ==========================================================================
   SIRIPHAT PRINTING — footer-new.css
   Footer แบบเรียบ แบ่ง 3 ส่วนด้วยเส้นคั่น: โลโก้ + ข้อความ + ที่อยู่ | ช่องทางติดต่อ | แผนที่ → แถบลิขสิทธิ์
   (ใช้คลาส .ft ทั้งหมด · มุมเหลี่ยม · ใช้สี CI ของเว็บ · แถบล่างสีเดียวกับ Topbar)
   ========================================================================== */
.ft { background: var(--c-tint); color: var(--c-muted); font-family: var(--font); font-size: 15px; line-height: 1.75; }
.ft a { color: var(--c-primary-hover); transition: color .2s; }
.ft a:hover { color: var(--c-navy); }
.ft h3 { margin: 0; color: var(--c-navy); font-weight: 700; }
.ft ul { margin: 0; padding: 0; list-style: none; }
.ft address { margin: 0; font-style: normal; }

/* --- 3 การ์ดสีขาว มุมมน เงานุ่ม ให้เข้ากับการ์ดอื่นของเว็บ --- */
.ft__grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 0; align-items: stretch; padding-block: 34px 36px; }
.ft__col { min-width: 0; padding-inline: 36px; }
.ft__col:first-child { padding-left: 0; }
.ft__col:last-child { padding-right: 0; }
.ft__col + .ft__col { border-left: 1px solid var(--c-line); }

.ft__title { position: relative; margin-bottom: 16px !important; padding-bottom: 12px; font-size: 17px; line-height: 1.4; }
.ft__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--c-sky); }

/* การ์ดซ้าย: โลโก้ + ข้อความ + ที่อยู่ */
.ft__logo { display: block; width: auto; height: 46px; margin-bottom: 12px; }
.ft__about { margin: 0 0 16px; font-size: 14px; line-height: 1.8; }
.ft__about strong { color: var(--c-navy); font-weight: 700; }

/* ไอคอนกลม + ข้อความ 2 บรรทัด (ใช้ทั้งที่อยู่และช่องทางติดต่อ) */
.ft__addr, .ft__channels li { display: flex; align-items: flex-start; gap: 14px; }
.ft__ico { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--c-navy); }
.ft__ico svg { width: 19px; height: 19px; }
.ft__txt { display: grid; min-width: 0; gap: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ft__channels .ft__txt { grid-template-columns: 78px 1fr; align-items: center; column-gap: 8px; }
.ft__channels li { align-items: center; }
.ft__txt small { color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
.ft__txt a, .ft__txt address { color: var(--c-navy); font-weight: 700; }
.ft__txt a:hover { color: var(--c-primary); }
.ft__addr .ft__txt address { font-size: 14px; font-weight: 500; line-height: 1.6; }

/* การ์ดกลาง: ช่องทางติดต่อ */
.ft__channels li + li { margin-top: 10px; }

/* การ์ดขวา: แผนที่ */
.ft__col--map { display: flex; flex-direction: column; }
.ft__map { flex: 1; min-height: 150px; overflow: hidden; background: var(--c-tint-2); }
.ft__map iframe { display: block; width: 100%; height: 100%; min-height: 150px; border: 0; }
.ft__maplink { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--c-navy); font-size: 14px; font-weight: 700; }
.ft a.ft__maplink { color: var(--c-navy); }
.ft a.ft__maplink:hover { color: var(--c-primary); }
.ft__maplink svg { width: 15px; height: 15px; transition: transform .2s; }
.ft__maplink:hover svg { transform: translateX(4px); }
/* --- แถบลิขสิทธิ์: สีเดียวกับ Topbar --- */
.ft__bar { background: var(--c-navy-2); color: #d8e5f7; }
.ft__bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; min-height: 56px; padding-block: 12px; font-size: 13px; }
.ft__bar p { margin: 0; }
.ft__bar a { color: #d8e5f7; }
.ft__bar a:hover { color: #fff; }
.ft__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; margin-left: auto; margin-right: 56px; }
.ft__legal a { white-space: nowrap; }

@media (max-width: 1000px) {
  .ft__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; padding-block: 40px 44px; }
  .ft__col { padding-inline: 32px; }
  .ft__col--map { grid-column: 1 / -1; padding-inline: 0; border-left: 0 !important; }
  .ft__map, .ft__map iframe { min-height: 260px; }
}
@media (max-width: 600px) {
  .ft__grid { grid-template-columns: 1fr; row-gap: 0; padding-block: 36px 40px; }
  .ft__col, .ft__col:first-child, .ft__col:last-child { padding-inline: 0; }
  .ft__col + .ft__col { margin-top: 28px; padding-top: 28px; border-left: 0; border-top: 1px solid var(--c-line); }
  .ft__bar-inner { flex-direction: column; justify-content: center; gap: 16px; padding: 24px 0 84px; font-size: 13.5px; line-height: 1.8; text-align: center; }
  .ft__bar-inner p { max-width: 300px; margin-inline: auto; }
  .ft__legal { justify-content: center; margin-left: 0; margin-right: 0; gap: 10px 22px; max-width: 320px; }
}