/* =====================================================================
   หน้าที่มาของเรา (about.html)
   ใช้สี มุมโค้ง และตัวอักษรจาก styles.css + theme-festival.css
   เปิดหน้าด้วยแถบเหลืองเหมือน hero หน้าแรก: ข้อความซ้าย | การ์ดเพจ Facebook ขวา
   ===================================================================== */

/* ---------- เปิดหน้า ---------- */
.about-hero { padding: 92px 0 36px; background: #FED94F; color: #33210F; }
.about-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.about-hero__text { min-width: 0; }
.crumbs--hero { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 14px; color: #5E4620; }
.crumbs--hero a { color: var(--red-700); font-weight: 600; }
.about-eyebrow { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #5E4620; }
.about-hero h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.35; color: #33210F; text-wrap: balance; }
.about-hero h1 span { color: var(--red); }
.about-lead { max-width: 34em; margin-top: 12px; font-size: 16px; line-height: 1.8; color: #4A3517; }

/* การ์ดเพจ Facebook */
.page-card { margin: 0; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 16px 36px rgba(110, 70, 0, .18); }
.page-card__top { position: relative; width: 64px; height: 64px; margin-bottom: 12px; }
.page-card__logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--red); color: #FFE08A; font: 900 36px/1 var(--font-logo); }
.page-card__fb { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #0866FF; color: #fff; border: 3px solid #fff; }
.page-card__fb svg { width: 13px; height: 13px; fill: currentColor; }
.page-card__name { display: block; font: 700 17px/1.45 var(--font-head); color: var(--ink); }
.page-card__type { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.page-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.page-card__facts div { padding: 10px 8px; text-align: center; }
.page-card__facts div + div { border-left: 1px solid var(--line-2); }
.page-card__facts dt { font-size: 12px; color: var(--ink-2); }
.page-card__facts dd { margin: 2px 0 0; font: 700 15px/1.35 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.btn--fb-solid { background: #0866FF; color: #fff; }

/* ---------- ส่วนเนื้อหา ---------- */
.about-sec { margin-top: 56px; }
.about-sec h2 { font-size: 24px; line-height: 1.4; text-wrap: balance; }
.about-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.about-story__text p:not(.section-kicker) { max-width: 36em; margin-top: 14px; font-size: 16px; line-height: 1.85; color: var(--ink); }

/* เส้นเวลา: เหตุการณ์เรียงตามลำดับจริง */
.timeline { position: relative; display: grid; gap: 22px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.timeline li:last-child::before { background: var(--red); }
.timeline time, .timeline__when { font-size: 13px; font-weight: 700; color: var(--red-700); }
.timeline h3 { margin-top: 2px; font-size: 17px; }
.timeline p { margin-top: 2px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }

/* สามสิ่งที่เราทำ */
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.pillar { padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.pillar__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); }
.pillar__icon .ms { font-size: 26px; color: var(--red); }
.pillar h3 { margin-top: 12px; font-size: 17px; }
.pillar p { margin-top: 4px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }

/* คำถามที่พบบ่อย */
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px;
  font: 600 16px/1.5 var(--font-head); color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { flex: none; font-size: 24px; color: var(--red); transition: transform .2s var(--ease); }
.faq details[open] summary .ms { transform: rotate(180deg); }
.faq details p { max-width: 42em; padding: 0 16px 16px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.faq a { color: var(--red-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ชวนลงร้าน */
.about-cta {
  display: grid; gap: 18px; margin-top: 56px; padding: 24px 20px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(circle at 100% 0, rgba(255, 120, 60, .25), transparent 55%), linear-gradient(120deg, #5A1414, #7A1C1C 55%, #8E2420);
}
.about-cta h2 { font-size: 24px; line-height: 1.4; color: #fff; }
.about-cta h2 em { font-style: normal; color: #FFD54F; }
.about-cta p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.about-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--line { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.about-updated { margin-top: 20px; font-size: 13px; color: var(--ink-2); }

@media (hover: hover) {
  .faq summary:hover { color: var(--red-700); }
  .btn--fb-solid:hover { background: #0757D9; }
  .btn--line:hover { background: rgba(255, 255, 255, .1); }
}

/* ---------- จอใหญ่ ---------- */
@media (min-width: 768px) {
  .about-hero { padding: 120px 0 56px; }
  .about-hero h1 { font-size: 48px; }
  .about-lead { font-size: 18px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .about-sec { margin-top: 72px; }
  .about-sec h2 { font-size: 30px; }
  .about-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 36px 40px; }
  .about-cta h2 { font-size: 28px; }
}
@media (min-width: 1024px) {
  .about-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; }
  .about-story { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .timeline { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary .ms { transition: none; }
}
