/* ห้างหุ้นส่วนจำกัด ดาวรุ่งฟาร์ม — สไตล์ชีตหลัก
   แนวคิด: ฟาร์มโคตอนฟ้าสาง ดาวรุ่งดวงเดียวบนฟ้าสีครามที่ขอบฟ้าเริ่มเป็นสีส้ม
   และป้ายหูโคสีเหลืองใช้เป็นป้ายเลขกับป้ายชื่อฝูง
   สี: ครามก่อนรุ่ง ส้มขอบฟ้า ขาวน้ำนม เหลืองป้ายหูโค เขียวทุ่งหญ้า */

:root {
  --night: #1b2350;         /* ครามก่อนรุ่ง */
  --dusk: #3b3470;
  --dawn: #f29b63;          /* ส้มขอบฟ้า */
  --glow: #ffdcb0;
  --milk: #fbf8f1;          /* ขาวน้ำนม: พื้นหลัก */
  --white: #ffffff;
  --tag: #ffd43b;           /* เหลืองป้ายหูโค */
  --pasture: #2a6a3d;       /* เขียวทุ่งหญ้า: ลิงก์ */
  --ink: #1a1f33;
  --muted: #585e73;
  --rule: #e6dfd0;
  --mist: #cfd3e6;          /* ตัวหนังสือรองบนพื้นคราม */

  --display: "Maitree", "KoHo", "Noto Serif Thai", "Leelawadee UI", Tahoma, serif;
  --body: "KoHo", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;

  --s--1: 0.88rem;
  --s-0: 1rem;
  --s-1: 1.2rem;
  --s-2: 1.5rem;
  --s-3: 1.9rem;
  --s-4: 2.4rem;
  --s-5: 3.1rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 72rem;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 112%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--milk); color: var(--ink);
  font-family: var(--body); font-size: var(--s-0); line-height: 1.75;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--pasture); text-underline-offset: 0.2em; }
a:hover { color: var(--night); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.4; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(var(--s-3), 4.6vw, var(--s-5)); line-height: 1.35; }
h2 { font-size: clamp(var(--s-2), 3vw, var(--s-4)); }
h3 { font-size: var(--s-1); font-weight: 600; line-height: 1.5; }

p { margin: 0 0 1em; max-width: 40em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.nw { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--tag); color: var(--ink); padding: 0.6em 1em; z-index: 60; }
.skip:focus { left: 0; }

/* ท้องฟ้ายามรุ่งกับเนินทุ่งหญ้า: ใช้เป็นพื้นสำรองเมื่อภาพโหลดไม่ขึ้น */
.dawnbg {
  background:
    radial-gradient(120% 38% at 30% 108%, #2a6a3d 0 60%, transparent 61%),
    radial-gradient(120% 34% at 85% 110%, #1f5330 0 60%, transparent 61%),
    linear-gradient(180deg, #1b2350 0%, #3b3470 38%, #b9617a 62%, #f29b63 78%, #ffdcb0 92%);
}

/* เครื่องหมายใต้หัวข้อ: ดาวรุ่งกับเส้นขอบฟ้า */
.mark { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; }
.mark::before {
  content: ""; width: 1.05rem; height: 1.05rem; flex: none; background: var(--dawn);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.mark::after { content: ""; width: 4.2rem; height: 2px; background: linear-gradient(90deg, var(--dawn), transparent); }
.band--night .mark::before, .page-head .mark::before, .hero .mark::before { background: var(--tag); }
.band--night .mark::after, .page-head .mark::after { background: linear-gradient(90deg, var(--tag), transparent); }

/* ป้ายหูโค */
.tag {
  position: relative; display: inline-grid; place-items: center; min-width: 3.5rem;
  padding: 1.6rem 0.75rem 0.45rem; background: var(--tag); color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: 1.3rem; line-height: 1.25; letter-spacing: 0.02em;
  border-radius: 0 0 0.85rem 0.85rem;
  clip-path: polygon(31% 0, 69% 0, 69% 1rem, 100% 1.45rem, 100% 100%, 0 100%, 0 1.45rem, 31% 1rem);
}
.tag::before { content: ""; position: absolute; top: 0.3rem; left: 50%; width: 0.5rem; height: 0.5rem; margin-left: -0.25rem; border-radius: 50%; background: var(--ink); }

/* ---------- ส่วนหัว ---------- */
.site-head { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 2.7rem; height: 2.7rem; flex: none; }
.brand__name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.32rem; line-height: 1.25; color: var(--night); }
.brand__legal { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }

.nav ul { list-style: none; display: flex; gap: 0.1rem; }
.nav a {
  display: block; padding: 0.45em 0.8em; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { background: var(--milk); }
.nav a[aria-current="page"] { background: var(--night); color: #fff; }

.nav-toggle {
  display: none; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--white); color: var(--night); border: 2px solid var(--night); border-radius: 8px; padding: 0.25em 1em;
}
@media (max-width: 68rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--night); padding: 0.6rem var(--gutter) 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0.3rem; }
  .nav a { padding: 0.65em 1em; }
}
@media (max-width: 34rem) { .brand__legal { display: none; } }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1.02rem; line-height: 1.4;
  padding: 0.72em 1.4em; border-radius: 8px; cursor: pointer; text-decoration: none;
  background: var(--tag); color: var(--ink); border: 2px solid var(--tag);
}
.btn:hover { background: #ffe37a; border-color: #ffe37a; color: var(--ink); }
.btn--night { background: var(--night); border-color: var(--night); color: #fff; }
.btn--night:hover { background: var(--dusk); border-color: var(--dusk); color: #fff; }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--night); }
.btn--line { background: transparent; border-color: var(--night); color: var(--night); }
.btn--line:hover { background: var(--night); border-color: var(--night); color: #fff; }
.band--night .btn { color: var(--ink); }
.band--night .btn--ghost { color: #fff; }
.band--night .btn--ghost:hover { color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- แบนเนอร์หน้าแรก ---------- */
.hero { position: relative; overflow: hidden; color: #fff; display: grid; align-items: end; min-height: clamp(30rem, 78vh, 42rem); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,35,80,.82) 0%, rgba(27,35,80,.35) 42%, rgba(20,24,52,.82) 100%); }
.hero__star { position: absolute; z-index: 1; top: clamp(1.6rem, 6vw, 3.4rem); right: clamp(1.6rem, 9vw, 9rem); width: clamp(3.2rem, 7vw, 5.4rem); aspect-ratio: 1; filter: drop-shadow(0 0 14px rgba(255,220,176,.95)) drop-shadow(0 0 40px rgba(255,212,59,.6)); }
.hero__star::before { content: ""; position: absolute; inset: 0; background: #fff6d6; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.hero__body { position: relative; z-index: 1; padding: clamp(6rem, 16vw, 9rem) 0 clamp(2.6rem, 6vw, 4rem); max-width: 44rem; }
.hero__place { font-weight: 700; letter-spacing: 0.06em; color: var(--tag); margin-bottom: 0.6rem; }
.hero__lead { font-size: var(--s-1); line-height: 1.75; margin-top: 1.1rem; color: #f1f2f8; max-width: 34em; }
.hero__phones { margin-top: 1.3rem; font-size: 0.97rem; color: #e2e5f2; }
.hero__phones a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero__phones a:hover { text-decoration: underline; }
.hero__credit { position: absolute; z-index: 2; right: 0.9rem; bottom: 0.5rem; font-size: 0.72rem; color: #e6e8f3; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.hero__credit a { color: inherit; }

/* ---------- แบนเนอร์หน้าใน ---------- */
.page-head { position: relative; overflow: hidden; color: #fff; background: var(--night); }
.page-head__media { position: absolute; inset: 0; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(27,35,80,.94) 0%, rgba(27,35,80,.78) 50%, rgba(27,35,80,.3) 100%); }
.page-head--plain { background: linear-gradient(120deg, var(--night) 0%, var(--dusk) 70%, #7a4a78 100%); }
.page-head__body { position: relative; z-index: 1; padding: clamp(2.6rem, 7vw, 4.8rem) 0; max-width: 40rem; }
.page-head__body p { font-size: var(--s-1); line-height: 1.75; margin-top: 1.1rem; color: #e8eaf5; }
.page-head__credit { position: absolute; z-index: 1; right: 0.9rem; bottom: 0.5rem; font-size: 0.72rem; color: #e6e8f3; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.page-head__credit a { color: inherit; }

/* ---------- ส่วนเนื้อหา ---------- */
.band { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.band--white { background: var(--white); }
.band--night { background: var(--night); color: #fff; }
.band--night p { color: var(--mist); }
.band--night a { color: var(--tag); }
.band--horizon { position: relative; padding-bottom: calc(clamp(3rem, 7vw, 5.2rem) + 3rem); }
.band--horizon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5rem; background: linear-gradient(180deg, transparent, rgba(185,97,122,.55) 55%, rgba(242,155,99,.95)); pointer-events: none; }
.band--horizon > .wrap { position: relative; z-index: 1; }

.band__head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); max-width: 44rem; }
.band__head p { margin-top: 1rem; color: var(--muted); font-size: var(--s-1); line-height: 1.7; }
.band--night .band__head p { color: var(--mist); }
.lead-gap { margin-top: 1.5rem; }

.split { display: grid; gap: clamp(1.8rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.split--top { align-items: start; }
.split--flip { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 54rem) { .split, .split--flip { grid-template-columns: 1fr; } }

/* ---------- ภาพถ่าย ---------- */
.photo { margin: 0; }
.photo__frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.photo--tall .photo__frame { aspect-ratio: 4 / 5; }
.photo--wide .photo__frame { aspect-ratio: 16 / 10; }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.45rem; }
.photo figcaption a { color: inherit; }
.band--night .photo figcaption { color: #b4b9d1; }
img.is-missing { visibility: hidden; }

/* ---------- สองฝูง: โคนมและโคเนื้อ ---------- */
.herds { list-style: none; display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 52rem) { .herds { grid-template-columns: 1fr; } }
.herd { position: relative; background: var(--milk); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.band:not(.band--white) .herd { background: var(--white); }
.herd .photo__frame { border-radius: 0; }
.herd .photo figcaption { padding: 0 1.4rem; }
.herd > .tag { position: absolute; z-index: 2; top: 0; left: 1.4rem; font-size: 1.15rem; padding-inline: 1rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.herd__body { padding: 0.9rem 1.4rem 1.6rem; }
.herd__body h3 { font-size: var(--s-2); font-weight: 700; }
.herd__body p { color: var(--muted); margin-top: 0.4rem; }
.herd__body .more { display: inline-block; margin-top: 0.7rem; font-weight: 700; }

/* ---------- การ์ดมีป้ายเลข ---------- */
.founds { list-style: none; display: grid; gap: 1.3rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .founds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .founds { grid-template-columns: 1fr; } }
.founds li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 0 1.3rem 1.5rem; }
.founds .tag { margin-top: -0.2rem; }
.founds h3 { color: #fff; margin-top: 0.9rem; }
.founds p { margin-top: 0.35rem; }

.flow { list-style: none; display: grid; gap: 1.8rem 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 58rem) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 32rem) { .flow { grid-template-columns: 1fr; } }
.flow h3 { margin-top: 0.8rem; }
.flow p { margin-top: 0.3rem; color: var(--muted); }

.ways { list-style: none; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 54rem) { .ways { grid-template-columns: 1fr; } }
.ways li { background: var(--white); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.5rem; border-left: 5px solid var(--dawn); }
.band--white .ways li { background: var(--milk); }
.ways p { margin-top: 0.4rem; color: var(--muted); }
.note { margin-top: 1.8rem; font-size: 0.95rem; color: var(--muted); }
.band--night .note { color: #b4b9d1; }

/* ---------- ตารางเทียบโคนมกับโคเนื้อ ---------- */
.versus { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.band--white .versus { background: var(--milk); }
.versus th, .versus td { text-align: left; vertical-align: top; padding: 0.95em 1.2em; border-top: 1px solid var(--rule); }
.versus thead th { border-top: 0; background: var(--night); color: #fff; font-family: var(--display); font-size: 1.1rem; }
.versus tbody th { width: 11.5rem; font-weight: 700; }
.versus td { color: var(--muted); }
@media (max-width: 44rem) {
  .versus thead { position: absolute; left: -999rem; }
  .versus tr, .versus th, .versus td { display: block; width: auto; }
  .versus tbody th { width: auto; background: var(--night); color: #fff; }
  .versus td { border-top: 0; }
  .versus td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--ink); }
}

/* ---------- รายการหัวข้อ-คำอธิบาย ---------- */
.deflist { margin: 0; }
.deflist div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.3rem 1.8rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.deflist div:last-child { border-bottom: 1px solid var(--rule); }
.deflist dt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.5; color: var(--night); }
.deflist dd { margin: 0; color: var(--muted); max-width: 40em; }
@media (max-width: 46rem) { .deflist div { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin-top: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-top: 0.4rem; max-width: 38em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 0.9rem; height: 0.9rem; background: var(--dawn);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- รายละเอียด (หน้าสินค้าและบริการ) ---------- */
.item { padding: clamp(2.2rem, 5vw, 3.4rem) 0; border-top: 1px solid var(--rule); }
.item:first-of-type { border-top: 0; padding-top: 0; }
.item:last-of-type { padding-bottom: 0; }
.item h3 { font-weight: 700; font-size: clamp(var(--s-2), 2.6vw, var(--s-3)); }
.item h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; margin: 1.3rem 0 0; }
.item p { margin-top: 0.8rem; }
.item:nth-of-type(even) .split > .photo { order: -1; }
@media (max-width: 54rem) { .item .split > .photo { order: -1; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { max-width: 50rem; }
.faq details { background: var(--white); border-radius: var(--radius); margin-top: 0.7rem; border: 1px solid var(--rule); }
.band--white .faq details { background: var(--milk); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-weight: 700; font-size: 1.08rem; line-height: 1.5;
  padding: 0.95rem 3.2rem 0.95rem 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.7rem; font-weight: 500; color: var(--dawn); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- ช่องติดต่อท้ายหน้า ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
@media (max-width: 54rem) { .cta { grid-template-columns: 1fr; } }
.cta__card { background: var(--milk); color: var(--ink); border-radius: var(--radius); padding: 0.5rem 1.6rem; }
.cta__card div { padding: 0.9rem 0; border-top: 1px dashed #cfc6b3; }
.cta__card div:first-child { border-top: 0; }
.cta__card small { display: block; font-size: var(--s--1); color: var(--muted); }
.band--night .cta__card a { font-weight: 700; font-size: 1.12rem; line-height: 1.6; color: var(--night); text-decoration: none; overflow-wrap: anywhere; }
.band--night .cta__card a:hover { color: var(--pasture); text-decoration: underline; }
.cta__card span { display: block; }

/* ---------- ตารางข้อมูลกิจการ ---------- */
.spec { width: 100%; border-collapse: collapse; background: var(--milk); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 0.9em 1.2em; border-top: 1px solid var(--rule); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 13rem; font-weight: 500; color: var(--muted); }
.spec td { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .spec th, .spec td { display: block; width: auto; }
  .spec td { border-top: 0; padding-top: 0; }
}

/* ---------- หน้าเนื้อหายาว (นโยบาย) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--s-2); font-weight: 600; margin-top: 2.6rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-top: 0.35rem; max-width: 38em; }
.prose .meta { color: var(--muted); font-size: 0.95rem; margin-top: 0; }

/* ---------- หน้าติดต่อ ---------- */
.contact-list { margin: 1.8rem 0 0; }
.contact-list div { padding: 1rem 0; border-top: 1px solid var(--rule); }
.contact-list div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); font-size: var(--s--1); }
.contact-list dd { margin: 0.1rem 0 0; font-weight: 700; font-size: var(--s-1); line-height: 1.6; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list dd small { display: block; font-weight: 400; font-size: var(--s--1); color: var(--muted); }
.contact-list .big a { display: block; font-family: var(--display); font-size: var(--s-3); line-height: 1.45; color: var(--night); white-space: nowrap; }

.form { background: var(--white); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); border-top: 8px solid var(--night); }
.form h2 { font-size: var(--s-2); }
.form > p { color: var(--muted); margin-top: 0.6rem; font-size: 0.97rem; }
.field { margin-top: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--milk);
  padding: 0.55em 0.85em; border: 1.5px solid #9a9486; border-radius: 8px;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--tag); outline-offset: 0; border-color: var(--night); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: end; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }
.form .btn { margin-top: 1.4rem; }
.form__hint { font-size: var(--s--1); color: var(--muted); margin-top: 0.8rem; }

.map { background: var(--milk); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.map iframe { display: block; width: 100%; height: clamp(18rem, 45vw, 26rem); border: 0; }
.map p { padding: 0.8rem 1.2rem; font-size: 0.95rem; max-width: none; }

/* ---------- ส่วนท้าย ---------- */
.site-foot { background: #121836; color: var(--mist); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: 0.97rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--tag); }
.site-foot__grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 54rem) { .site-foot__grid { grid-template-columns: 1fr; } }
.site-foot h2 { font-family: var(--body); font-weight: 700; font-size: var(--s-1); color: #fff; margin-bottom: 0.7rem; }
.site-foot ul { list-style: none; }
.site-foot li { margin-top: 0.3rem; }
.site-foot address { font-style: normal; overflow-wrap: anywhere; }
.site-foot__base {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between;
  font-size: var(--s--1); color: #a9aecb;
}
.site-foot__base p { max-width: none; margin: 0; }

/* ---------- การเคลื่อนไหว: ดาวรุ่งกะพริบช้า ๆ ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__star::before { animation: twinkle 4.5s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.82); opacity: 0.8; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-head { position: static; }
  .nav, .nav-toggle, .btn-row, .map, .hero__star { display: none; }
}
