/* =========================================================
   บ้านเปียโน Baan Piano — Main Stylesheet
   แก้สีทั้งเว็บได้จากตัวแปรด้านล่างนี้จุดเดียว
   ========================================================= */
:root {
  --cream:   #FAF7F2;  /* พื้นหลังหลัก */
  --forest:  #1F3A33;  /* สีหลัก เขียวป่าเข้ม */
  --gold:    #B98A2F;  /* สีเน้น ทองแบรส */
  --gold-soft: #F3E8D3;
  --terra:   #D98E73;  /* สีรอง เทอร์ราคอตต้า */
  --charcoal:#2B2B2B;  /* ตัวอักษร */
  --muted:   #6F6A63;  /* ตัวอักษรรอง */
  --white:   #FFFFFF;
  --radius:  18px;
  --shadow:  0 10px 30px rgba(31, 58, 51, 0.10);
  --font-head: 'Prompt', sans-serif;
  --font-body: 'Sarabun', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--cream); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--forest); line-height: 1.35; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section { padding: 90px 0; }
.section-alt { background: var(--white); }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 500; padding: 14px 32px; border-radius: 999px; transition: all .25s ease; cursor: pointer; border: 2px solid transparent; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #a1772a; transform: translateY(-2px); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-sm { padding: 9px 22px; font-size: .9rem; }
.btn-full { width: 100%; border: none; }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31,58,51,.08); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 42px; height: 42px; background: var(--forest); color: var(--gold); border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.logo-text { font-family: var(--font-head); font-weight: 600; color: var(--forest); font-size: 1.2rem; line-height: 1.1; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: .8rem; color: var(--gold); letter-spacing: .5px; }
.logo-text.light { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 26px; font-family: var(--font-head); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--gold); }
.burger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--forest); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #F5EFE4 0%, #FAF7F2 45%, #EFE6D6 100%); padding: 110px 0 130px; text-align: center; position: relative; overflow: hidden; }
/* ถ้ามีภาพถ่ายจริง: เปลี่ยน background เป็น
   background: linear-gradient(rgba(250,247,242,.85), rgba(250,247,242,.85)), url('images/hero.jpg') center/cover; */
.hero-inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.hero-tag { display: inline-block; font-family: var(--font-head); font-size: .85rem; letter-spacing: 2px; color: var(--forest); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 7px 20px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 600; margin-bottom: 22px; }
.accent-serif { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-weight: 600; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- มินิเปียโน ---------- */
.mini-piano { margin-top: 56px; }
.mini-piano-label { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: .95rem; display: block; margin-bottom: 12px; }
.mini-keys { display: inline-flex; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--forest); }
.mini-key { width: 52px; height: 130px; background: var(--white); border: none; border-right: 1px solid #ddd; cursor: pointer; transition: background .15s; }
.mini-key:last-child { border-right: none; }
.mini-key:hover { background: var(--gold-soft); }
.mini-key:active { background: var(--gold); transform: translateY(2px); }

/* ---------- สถิติ ---------- */
.stats { background: var(--forest); color: var(--white); padding: 44px 0; }
.stats-grid { max-width: 1000px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; color: var(--gold); display: block; }
.stat-label { font-family: var(--font-head); font-size: .9rem; opacity: .85; }

/* ---------- หัวข้อ section ---------- */
.section-eyebrow { font-family: var(--font-head); font-size: .85rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 600; text-align: center; margin-bottom: 52px; }

/* ---------- การ์ด 4 ใบ ---------- */
.cards-4, .cards-3 { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid rgba(31,58,51,.08); border-radius: var(--radius); padding: 34px 26px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { width: 56px; height: 56px; margin: 0 auto 18px; background: var(--gold-soft); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); }

/* ---------- การ์ดคอร์ส ---------- */
.section-alt .section-eyebrow, .section-alt .section-title { text-align: center; }
.course-card { display: block; background: var(--cream); border-radius: var(--radius); padding: 36px 28px; border-top: 5px solid var(--gold); transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-tag { display: inline-block; font-family: var(--font-head); font-size: .82rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; color: var(--white); }
.tone-kid { border-top-color: var(--terra); }        .tone-kid .course-tag { background: var(--terra); }
.tone-core { border-top-color: var(--gold); }        .tone-core .course-tag { background: var(--gold); }
.tone-adult { border-top-color: var(--forest); }     .tone-adult .course-tag { background: var(--forest); }
.course-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.course-card p { font-size: .93rem; color: var(--muted); margin-bottom: 18px; }
.course-link { font-family: var(--font-head); font-weight: 500; color: var(--gold); font-size: .92rem; }

/* ---------- ครูแพท ---------- */
.teacher-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.teacher-grid .section-eyebrow, .teacher-grid .section-title { text-align: left; }
.photo-placeholder { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, #E8DFCE, #D9CDB6); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--forest); border: 1px dashed var(--gold); }
.photo-placeholder span { font-family: var(--font-head); font-weight: 500; }
.photo-placeholder small { color: var(--muted); margin-top: 6px; }
.checklist { list-style: none; margin: 18px 0 28px; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 16px; }
.testimonial { scroll-snap-align: center; background: var(--cream); border-radius: var(--radius); padding: 34px 30px; border-left: 5px solid var(--gold); }
.testimonial blockquote { font-size: 1.02rem; margin-bottom: 16px; }
.testimonial figcaption { font-family: var(--font-head); font-weight: 500; color: var(--forest); font-size: .92rem; }
.testimonial figcaption span { color: var(--muted); font-weight: 400; }

/* ---------- ค่าเรียน ---------- */
.price-card { background: var(--white); border: 1px solid rgba(31,58,51,.08); border-radius: var(--radius); padding: 38px 30px; text-align: center; position: relative; transition: transform .25s ease; }
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--white); font-family: var(--font-head); font-size: .8rem; padding: 5px 18px; border-radius: 999px; }
.price { margin: 18px 0 6px; }
.price-num { font-family: var(--font-serif); font-style: italic; font-size: 2.6rem; color: var(--forest); }
.price-unit { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price-card .btn { margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border: 1px solid rgba(31,58,51,.1); border-radius: 14px; padding: 22px 26px; margin-bottom: 14px; }
.faq summary { font-family: var(--font-head); font-weight: 500; color: var(--forest); cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--gold); font-size: 1.3rem; font-weight: 600; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--muted); }
.faq-more { display: block; text-align: center; font-family: var(--font-head); color: var(--gold); margin-top: 26px; }

/* ---------- ติดต่อ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-grid .section-eyebrow, .contact-grid .section-title { text-align: left; }
.contact-list { list-style: none; margin-top: 20px; }
.contact-list li { margin-bottom: 10px; color: var(--muted); }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { font-family: var(--font-body); font-size: .98rem; padding: 13px 16px; border: 1.5px solid #E3DCD0; border-radius: 10px; background: var(--cream); color: var(--charcoal); outline: none; transition: border .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: var(--white); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: var(--gold); margin-bottom: 16px; font-size: 1rem; }
.footer a { display: block; margin-bottom: 10px; opacity: .8; font-size: .95rem; }
.footer a:hover { opacity: 1; color: var(--gold); }
.footer-desc { opacity: .75; margin-top: 14px; font-size: .93rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 20px; font-size: .85rem; opacity: .6; }

/* ---------- ปุ่ม LINE ลอย ---------- */
.line-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; background: #06C755; color: var(--white); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(6, 199, 85, .45); z-index: 200; transition: transform .2s; }
.line-float:hover { transform: scale(1.1); }

/* ---------- เอฟเฟกต์ reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Responsive แท็บเล็ต ---------- */
@media (max-width: 900px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .teacher-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .teacher-grid .section-eyebrow, .teacher-grid .section-title,
  .contact-grid .section-eyebrow, .contact-grid .section-title { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive มือถือ ---------- */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 70px 0 90px; }
  .burger { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid rgba(31,58,51,.1); display: none; }
  .nav-links.open { display: flex; }
  .cards-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mini-key { width: 38px; height: 100px; }
}

/* ===== CSS หน้าย่อย — วางต่อท้าย style.css ===== */

/* ลิงก์ active ในเมนู */
.nav-links a.active { color: var(--gold); font-weight: 600; }

/* แถบหัวหน้าย่อย */
.page-hero { background: linear-gradient(135deg, #F5EFE4, #FAF7F2 60%, #EFE6D6); padding: 68px 0 54px; text-align: center; border-bottom: 1px solid rgba(31,58,51,.06); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.breadcrumb { font-family: var(--font-head); font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); }

/* แถวรายละเอียดคอร์ส (สลับซ้าย-ขวา) */
.course-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.course-detail + .course-detail { border-top: 1px solid rgba(31,58,51,.08); }
.course-detail:nth-child(even) .cd-media { order: 2; }
.cd-media { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(160deg, #E8DFCE, #D9CDB6); display: grid; place-items: center; color: var(--forest); border: 1px dashed var(--gold); font-family: var(--font-head); text-align: center; padding: 20px; }
.cd-age { display: inline-block; font-family: var(--font-head); font-size: .82rem; background: var(--gold-soft); color: var(--forest); border: 1px solid var(--gold); border-radius: 999px; padding: 4px 14px; margin-bottom: 12px; }
.cd-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-head); font-size: .9rem; color: var(--muted); margin: 14px 0 4px; }
.cd-meta strong { color: var(--forest); }

/* ไทม์ไลน์ประวัติครู */
.timeline { position: relative; padding-left: 28px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--gold-soft); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); }
.tl-year { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.05rem; }
.tl-item h4 { font-size: 1rem; margin: 2px 0 4px; }
.tl-item p { color: var(--muted); font-size: .93rem; }

/* ตารางข้อมูล */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th { background: var(--forest); color: var(--white); font-family: var(--font-head); font-weight: 500; font-size: .92rem; padding: 14px 18px; text-align: left; }
table.data td { padding: 13px 18px; border-bottom: 1px solid rgba(31,58,51,.08); font-size: .94rem; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) { background: var(--cream); }

/* วิดีโอ 16:9 */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-embed { position: relative; aspect-ratio: 16/9; background: var(--forest); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { padding: 14px 18px; font-size: .92rem; color: var(--muted); }
.video-card figcaption strong { display: block; color: var(--forest); font-family: var(--font-head); font-weight: 500; font-size: .98rem; margin-bottom: 2px; }

/* แกลเลอรี */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .ph { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(160deg, #E8DFCE, #D9CDB6); display: grid; place-items: center; color: var(--forest); font-family: var(--font-head); font-size: .88rem; text-align: center; padding: 10px; }

/* การ์ดข้อมูลติดต่อ */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; text-align: center; border: 1px solid rgba(31,58,51,.08); }
.info-card .ic { width: 52px; height: 52px; margin: 0 auto 14px; background: var(--gold-soft); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; }
.info-card h4 { font-size: 1rem; margin-bottom: 8px; }
.info-card p { font-size: .92rem; color: var(--muted); }

/* กลุ่มคำถาม */
.faq-group { margin-bottom: 44px; }
.faq-group h3 { font-size: 1.15rem; margin-bottom: 18px; padding-left: 14px; border-left: 4px solid var(--gold); }

/* แถบ CTA ท้ายหน้า */
.cta-band { background: var(--forest); color: var(--white); text-align: center; padding: 72px 24px; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { opacity: .8; max-width: 560px; margin: 0 auto 28px; }

/* Responsive หน้าย่อย */
@media (max-width: 900px) {
  .course-detail { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .course-detail:nth-child(even) .cd-media { order: 0; }
  .video-grid, .info-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Responsive ครบทุกอุปกรณ์ + Accessibility + แถบ CTA มือถือ
   วางต่อท้าย style.css
   ========================================================= */

/* ---------- Skip link (Accessibility) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--forest); color: #fff; font-family: var(--font-head); padding: 12px 22px; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }

/* ---------- กดลิงก์ anchor แล้วหัวข้อไม่โดน Navbar บัง ---------- */
section[id] { scroll-margin-top: 90px; }

/* ---------- แถบ CTA มือถือ (ปิดไว้ก่อน เปิดเฉพาะจอเล็ก) ---------- */
.mobile-cta { display: none; }

/* ---------- จอใหญ่พิเศษ 2K / 4K ---------- */
@media (min-width: 1600px) {
  .container { max-width: 1240px; }
}

/* ---------- แท็บเล็ตแนวนอน ---------- */
@media (max-width: 1024px) and (min-width: 901px) {
  .nav-links { gap: 18px; font-size: .9rem; }
}

/* ---------- มือถือเล็ก ---------- */
@media (max-width: 480px) {
  .hero { padding: 56px 0 72px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .mini-key { width: 34px; height: 88px; }
  .stat-num { font-size: 1.9rem; }
  .stats-grid { gap: 18px; }
  .section { padding: 54px 0; }
  .contact-form { padding: 26px 18px; }
  .course-detail { padding: 30px 0; }
}

/* ---------- จอแคบสุด ---------- */
@media (max-width: 360px) {
  .logo-text { font-size: 1.05rem; }
  .logo-icon { width: 38px; height: 38px; }
  .mini-keys { max-width: 92vw; overflow-x: auto; }
  .mini-key { min-width: 40px; }
}

/* ---------- อุปกรณ์ทัช: ปุ่มขนาดนิ้วโป้ง (Apple แนะนำ ≥44px) ---------- */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 48px; }
  .nav-links.open a:not(.btn) { padding: 10px 0; }
  .faq summary { padding: 12px 0; }
  .line-float { width: 62px; height: 62px; }
}

/* ---------- เคารพผู้ใช้ที่ปิดแอนิเมชัน (แอนิเมชันเป็นสาเหตุหนึ่งของ motion sickness) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .course-card:hover, .price-card:hover, .btn:hover, .line-float:hover { transform: none; }
}

/* ---------- รองรับรอยบาก iPhone (notch / Dynamic Island) ---------- */
@supports (padding: max(0px)) {
  .nav-inner { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .mobile-cta { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* ---------- มือถือแนวนอน ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 40px 0 50px; }
  .nav-links.open { max-height: 72vh; overflow-y: auto; }
}

/* ---------- โหมดพิมพ์ (ผู้ปกครองปริ้นหน้าค่าเรียน) ---------- */
@media print {
  .navbar, .line-float, .mobile-cta, .cta-band, .video-grid, .mini-piano { display: none !important; }
  body { background: #fff; }
  .section { padding: 20px 0; }
}

/* ---------- เปิดแถบ CTA มือถือ: โทร + จองฟรี ติดอยู่ล่างจอเสมอ ---------- */
@media (max-width: 640px) {
  .mobile-cta { display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--white); box-shadow: 0 -6px 24px rgba(31,58,51,.12); padding: 10px 14px; }
  .mcta-call { display: grid; place-items: center; width: 50px; border: 2px solid var(--forest); border-radius: 12px; color: var(--forest); font-size: 1.25rem; background: var(--cream); }
  .mcta-book { display: grid; place-items: center; background: var(--gold); color: var(--white); border-radius: 12px; font-family: var(--font-head); font-weight: 500; padding: 13px 10px; }
  body { padding-bottom: 74px; }                                   /* กันเนื้อหาติดแถบล่าง */
  .line-float { bottom: 88px; right: 14px; width: 52px; height: 52px; } /* ปุ่ม LINE ยกขึ้นพ้นแถบ */
}