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

:root {
  --paper: #f4f3ef;
  --ral: #e2e0d9;            /* เทาตู้ไฟฟ้า */
  --ral-edge: #b9b6ad;
  --white: #ffffff;
  --graphite: #20252b;       /* เทาเข้ม: ส่วนหัวและพื้นเข้ม */
  --steel: #39414a;
  --copper: #b9622a;         /* ทองแดงบัสบาร์ */
  --copper-hot: #e08b4a;
  --copper-deep: #8f4517;    /* ลิงก์บนพื้นสว่าง */
  --ink: #1c2025;
  --muted: #59626d;
  --rule: #d6d3cb;
  --fog: #c5cbd2;            /* ตัวหนังสือรองบนพื้นเข้ม */
  --lamp-r: #d8322a;
  --lamp-y: #f2b01e;
  --lamp-g: #2f9e4f;

  --display: "Fahkwang", "Sarabun", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --body: "Sarabun", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;

  --s--1: 0.88rem;
  --s-0: 1rem;
  --s-1: 1.18rem;
  --s-2: 1.42rem;
  --s-3: 1.75rem;
  --s-4: 2.15rem;
  --s-5: 2.7rem;

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

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

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

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

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

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

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.45; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(var(--s-3), 4vw, var(--s-5)); font-weight: 700; line-height: 1.4; }
h2 { font-size: clamp(var(--s-2), 2.8vw, var(--s-4)); }
h3 { font-size: var(--s-1); 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(--copper); color: #fff; padding: 0.6em 1em; z-index: 60; }
.skip:focus { left: 0; }

/* พื้นสำรองเมื่อภาพโหลดไม่ขึ้น: แผ่นเหล็กเทามีแนวบานเกล็ดระบายอากาศ */
.steelbg {
  background:
    repeating-linear-gradient(0deg, rgba(32,37,43,.16) 0 3px, transparent 3px 14px) 50% 62% / 46% 30% no-repeat,
    linear-gradient(135deg, #d9d7d0, #bfbcb3);
}

/* ป้ายชื่อสลักหน้าตู้ */
.plate {
  position: relative; display: inline-block; background: var(--graphite); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 0.78rem; line-height: 1.5; letter-spacing: 0.1em;
  padding: 0.28em 1.9em; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.plate::before, .plate::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #aab1b8; }
.plate::before { left: 0.6em; }
.plate::after { right: 0.6em; }
.band--graphite .plate, .page-head .plate { background: #f4f3ef; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.band--graphite .plate::before, .band--graphite .plate::after, .page-head .plate::before, .page-head .plate::after { background: #6c747d; }
h2 + .phases, h1 + .phases { margin-top: 0.85rem; }
.plate + h2, .plate + h1 { margin-top: 0.8rem; }

/* แถบสีเฟส: L1 น้ำตาล L2 ดำ L3 เทา N ฟ้า และสายดินเขียวแถบเหลือง */
.phases { display: flex; gap: 4px; }
.phases i { display: block; width: 1.5rem; height: 0.34rem; border-radius: 1px; }
.phases i:nth-child(1) { background: #7a4a2a; }
.phases i:nth-child(2) { background: #16181b; }
.phases i:nth-child(3) { background: #8d9299; }
.phases i:nth-child(4) { background: #2a78c2; }
.phases i:nth-child(5) { background: repeating-linear-gradient(90deg, #2f9e4f 0 5px, #f2d01e 5px 10px); }
.band--graphite .phases i:nth-child(2), .page-head .phases i:nth-child(2) { box-shadow: 0 0 0 1px #6c747d; }

/* หลอดไฟแสดงสถานะ */
.lamps { display: flex; gap: 0.7rem; }
.lamp { width: 1.05rem; height: 1.05rem; border-radius: 50%; box-shadow: 0 0 0 3px #8f959c, 0 0 0 4px #5d646b; }
.lamp--r { background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--lamp-r) 45%, #8a1712 100%); }
.lamp--y { background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--lamp-y) 45%, #a06a00 100%); }
.lamp--g { background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--lamp-g) 45%, #14602c 100%); }

/* ---------- ส่วนหัว ---------- */
.site-head { background: var(--graphite); color: #fff; border-bottom: 4px solid var(--copper); 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: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand svg { width: 2.6rem; height: 2.6rem; flex: none; }
.brand__name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.3; }
.brand__legal { display: block; font-size: 0.8rem; color: var(--fog); 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: 4px;
  color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav a:hover { background: var(--steel); }
.nav a[aria-current="page"] { background: var(--copper); color: #fff; }

.nav-toggle {
  display: none; font: inherit; font-weight: 700; cursor: pointer;
  background: transparent; color: #fff; border: 2px solid #fff; border-radius: 4px; 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(--graphite); border-bottom: 4px solid var(--copper); 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: 4px; cursor: pointer; text-decoration: none;
  background: var(--copper); color: #fff; border: 2px solid var(--copper);
}
.btn:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }
.btn--line { background: transparent; border-color: var(--graphite); color: var(--graphite); }
.btn--line:hover { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--graphite); }
.band--graphite .btn { color: #fff; }
.band--graphite .btn--ghost:hover { color: var(--graphite); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- แบนเนอร์หน้าแรก: บานตู้ ---------- */
.hero { background: linear-gradient(180deg, var(--ral) 0%, var(--paper) 100%); padding: clamp(2.4rem, 6vw, 4.4rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 58rem) { .hero__grid { grid-template-columns: 1fr; } }
.hero__lead { font-size: var(--s-1); line-height: 1.8; color: var(--muted); margin-top: 1.2rem; max-width: 32em; }
.hero__phones { margin-top: 1.3rem; color: var(--muted); }
.hero__phones a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero__phones a:hover { text-decoration: underline; }

.door {
  position: relative; margin: 0; background: linear-gradient(160deg, #eceae4, #d5d2ca);
  border: 2px solid var(--ral-edge); border-radius: 8px;
  padding: 0.9rem 3rem 1rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 1.5rem 3rem rgba(32,37,43,.26);
}
.door::after {                              /* มือจับบานตู้ */
  content: ""; position: absolute; right: 1.05rem; top: 50%; width: 0.75rem; height: 4.4rem; margin-top: -2.2rem;
  border-radius: 0.4rem; background: linear-gradient(90deg, #2c3238, #50585f 45%, #20252b); box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.door__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.2rem 0.3rem 0.9rem; }
.door__window { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; border: 2px solid #8f959c; box-shadow: inset 0 0 0 1px #fff; }
.door__window img { width: 100%; height: 100%; object-fit: cover; }
.door figcaption { font-size: 0.74rem; color: var(--muted); margin-top: 0.55rem; }
.door figcaption a { color: inherit; }

/* ---------- แบนเนอร์หน้าใน ---------- */
.page-head { position: relative; overflow: hidden; color: #fff; background: var(--graphite); }
.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(32,37,43,.96) 0%, rgba(32,37,43,.84) 50%, rgba(32,37,43,.4) 100%); }
.page-head__body { position: relative; z-index: 1; padding: clamp(2.6rem, 7vw, 4.6rem) 0; max-width: 40rem; }
.page-head__body h1 { font-size: clamp(var(--s-3), 3.6vw, var(--s-4)); }
.page-head__body p { font-size: var(--s-1); line-height: 1.8; margin-top: 1.1rem; color: #e3e7eb; }
.page-head__credit { position: absolute; z-index: 1; right: 0.9rem; bottom: 0.5rem; font-size: 0.72rem; color: #dfe3e7; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.page-head__credit a { color: inherit; }

/* ---------- ส่วนเนื้อหา ---------- */
.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band--white { background: var(--white); }
.band--ral { background: var(--ral); }
.band--graphite { background: var(--graphite); color: #fff; }
.band--graphite p { color: var(--fog); }
.band--graphite a { color: var(--copper-hot); }

.band__head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); max-width: 44rem; }
.band__head p { margin-top: 1rem; color: var(--muted); font-size: var(--s-1); line-height: 1.75; }
.band--graphite .band__head p { color: var(--fog); }
.lead-gap { margin-top: 1.4rem; }

.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); border: 1px solid var(--ral-edge); }
.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--graphite .photo figcaption { color: #a5adb6; }
img.is-missing { visibility: hidden; }

/* ---------- งานหลักสามอย่าง ---------- */
.units { list-style: none; display: grid; gap: clamp(1.3rem, 3vw, 2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 58rem) { .units { grid-template-columns: 1fr; max-width: 30rem; } }
.unit { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; height: 100%; }
.band:not(.band--white) .unit { background: var(--white); }
.unit .photo__frame { border: 0; border-radius: 0; aspect-ratio: 16 / 10; }
.unit .photo figcaption { padding: 0 1.3rem; }
.unit__body { padding: 0.9rem 1.3rem 1.5rem; }
.unit__body h3 { margin-top: 0.7rem; font-size: var(--s-2); }
.unit__body p { margin-top: 0.4rem; color: var(--muted); }
.unit__body .more { display: inline-block; margin-top: 0.7rem; font-weight: 700; }

/* ---------- แผนผังเส้นทางไฟฟ้า ---------- */
.sld { max-width: 54rem; margin-inline: auto; display: grid; justify-items: center; }
.sld__node { border: 2px solid #fff; border-radius: 4px; padding: 0.6rem 1.6rem; text-align: center; min-width: 13rem; background: var(--steel); }
.sld__node b, .sld__feeders b { display: block; font-family: var(--display); font-weight: 600; color: #fff; line-height: 1.5; }
.sld__node small, .sld__feeders small { display: block; color: var(--fog); font-size: var(--s--1); line-height: 1.5; }
.sld__wire { width: 3px; height: 1.6rem; background: var(--copper-hot); }
.sld__bus { justify-self: stretch; background: linear-gradient(180deg, #f0a468, var(--copper) 55%, #7c3d14); border-radius: 3px; padding: 0.25rem 1rem; text-align: center; }
.sld__bus span { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.sld__feeders { justify-self: stretch; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.sld__feeders li { position: relative; margin-top: 1.6rem; border: 2px solid #fff; border-radius: 4px; padding: 0.6rem 0.7rem; text-align: center; background: var(--steel); }
.sld__feeders li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 3px; height: 1.6rem; margin: 0 0 2px -1.5px; background: var(--copper-hot); }
@media (max-width: 46rem) {
  .sld__feeders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sld__node { min-width: 0; width: min(100%, 15rem); }
}

/* ---------- ประเภทตู้ ---------- */
.types { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 58rem) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .types { grid-template-columns: 1fr; } }
.types li { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.4rem; }
.band--white .types li { background: var(--paper); }
.types h3 { margin-top: 0.7rem; }
.types p { margin-top: 0.3rem; color: var(--muted); }

/* ---------- ขั้นตอน: เลขบนเทอร์มินอล ---------- */
.flow { list-style: none; counter-reset: fl; display: grid; gap: 1.8rem 1.4rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 64rem) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .flow { grid-template-columns: 1fr; } }
.flow li { counter-increment: fl; }
.flow li::before {
  content: counter(fl); display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  background: var(--white); color: var(--ink); border: 2px solid var(--graphite); border-bottom: 6px solid var(--copper); border-radius: 3px;
  font-family: var(--display); font-weight: 700; font-size: var(--s-1); margin-bottom: 0.8rem;
}
.flow p { margin-top: 0.3rem; color: var(--muted); }

.ways { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .ways { grid-template-columns: 1fr; } }
.ways li { background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.4rem; border-top: 5px solid var(--copper); }
.band--white .ways li { background: var(--paper); }
.ways p { margin-top: 0.4rem; color: var(--muted); }
.note { margin-top: 1.8rem; font-size: 0.95rem; color: var(--muted); }
.band--graphite .note { color: #a5adb6; text-align: center; margin-inline: auto; }

/* ---------- รายการหัวข้อ-คำอธิบาย ---------- */
.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.05rem; line-height: 1.55; }
.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.72em; width: 0.9rem; height: 0.3rem; border-radius: 1px; background: var(--copper); }

/* ---------- รายละเอียด (หน้าสินค้าและบริการ) ---------- */
.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-size: clamp(var(--s-2), 2.4vw, var(--s-3)); margin-top: 0.8rem; }
.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); border-left: 5px solid var(--copper); }
.band--white .faq details { background: var(--paper); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-weight: 700; font-size: 1.06rem; line-height: 1.55;
  padding: 0.9rem 3.2rem 0.9rem 1.2rem;
}
.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(--copper); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.2rem 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(--ral); color: var(--ink); border-radius: var(--radius); padding: 0.5rem 1.5rem; border: 2px solid var(--ral-edge); }
.cta__card div { padding: 0.85rem 0; border-top: 1px solid #c2bfb6; }
.cta__card div:first-child { border-top: 0; }
.cta__card small { display: block; font-size: var(--s--1); color: var(--muted); }
.cta__card b, .band--graphite .cta__card a { font-weight: 700; font-size: 1.1rem; line-height: 1.6; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.band--graphite .cta__card a:hover { color: var(--copper-deep); text-decoration: underline; }
.cta__card span { display: block; }

/* ---------- ตารางข้อมูลบริษัท ---------- */
.spec { width: 100%; border-collapse: collapse; background: var(--paper); 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: 400; 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); 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.5; color: var(--ink); white-space: nowrap; }

.form { background: var(--white); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--rule); border-top: 8px solid var(--graphite); }
.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(--paper);
  padding: 0.55em 0.85em; border: 1.5px solid #8f959c; border-radius: 4px;
}
.field input, .field select { height: 2.8rem; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--copper-hot); outline-offset: 0; border-color: var(--graphite); }
.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(--paper); 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: #171b20; color: var(--fog); padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: 0.97rem; border-top: 4px solid var(--copper); }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--copper-hot); }
.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: #9aa2ab;
}
.site-foot__base p { max-width: none; margin: 0; }

/* ---------- การเคลื่อนไหว: หลอดไฟหน้าตู้ติดทีละดวงตอนเปิดหน้าแรก ---------- */
@media (prefers-reduced-motion: no-preference) {
  .door .lamp { animation: energize 0.5s ease-out both; }
  .door .lamp:nth-child(2) { animation-delay: 0.35s; }
  .door .lamp:nth-child(3) { animation-delay: 0.7s; }
  @keyframes energize { from { filter: brightness(0.35) saturate(0.4); } to { filter: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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