/* ============================================================
   esanwebdesign.com — Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   สีแบรนด์ #7F0238 ดึงมาจากไฟล์โลโก้โดยตรง (HSL 334, 97%, 25%)
   ชื่อตัวแปรยังใช้ --green-* ตามเดิมเพื่อไม่ต้องแก้ทุกจุดในไฟล์
   แต่ค่าที่ใส่คือเฉดไวน์แดงของโลโก้ทั้งหมด
   ------------------------------------------------------------ */
:root {
    --brand-950: #2e0014;
    --brand-900: #4d0122;   /* เข้มสุด ใช้กับพื้นหลังฮีโร่และส่วนท้าย */
    --brand-800: #66022d;
    --brand-700: #7f0238;   /* ★ สีโลโก้ */
    --brand-600: #990343;
    --brand-500: #b3044e;
    --brand-400: #cc3a72;
    --brand-200: #f0c2d5;
    --brand-100: #f9e4ec;
    --brand-50:  #fdf3f7;

    /* ชื่อเดิมที่ใช้ทั่วไฟล์ — แมปมาที่เฉดแบรนด์ */
    --green-900: var(--brand-900);
    --green-800: var(--brand-700);
    --green-700: var(--brand-600);
    --green-600: var(--brand-500);
    --green-100: var(--brand-100);
    --green-50:  var(--brand-50);

    /* ทองอมส้ม ตัดกับไวน์แดงได้ชัดและอ่านง่าย */
    --gold-600: #b8860b;
    --gold-500: #e3a92f;
    --gold-400: #f0c05a;
    --gold-100: #fdf3dd;

    --red-600: #c0392b;

    --ink-900: #23141a;
    --ink-700: #45343a;
    --ink-500: #6d5a61;
    --ink-300: #a3939a;
    --line:    #ebe2e6;
    --bg:      #ffffff;
    --bg-soft: #fbf7f9;

    --radius:    14px;
    --radius-sm: 9px;
    --shadow:    0 1px 2px rgba(127, 2, 56, .06), 0 8px 24px rgba(127, 2, 56, .08);
    --shadow-lg: 0 12px 40px rgba(127, 2, 56, .16);
    --container: 1180px;
    --font:      'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Prompt', 'Sarabun', system-ui, sans-serif;

    /* ไล่สีที่ใช้ซ้ำหลายจุด */
    --grad-brand: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 100%);
    --grad-hero:  linear-gradient(158deg, var(--brand-950) 0%, var(--brand-800) 42%, var(--brand-600) 100%);
    --grad-gold:  linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--ink-700);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink-900);
    line-height: 1.35;
    margin: 0 0 .6em;
    font-weight: 600;
}

h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }

p { margin: 0 0 1.1em; }

a { color: var(--green-700); text-decoration: none; transition: color .18s; }
a:hover { color: var(--green-600); }

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

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--green-800); color: #fff; padding: .7rem 1.2rem; z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- ปุ่ม ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .65em 1.4em;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600; font-size: .95rem;
    cursor: pointer; text-align: center;
    transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-brand); color: #fff; }
.btn--primary:hover { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; box-shadow: var(--shadow); }
.btn--accent { background: var(--grad-gold); color: #3a2a05; }
.btn--accent:hover { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #3a2a05; }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--outline { border-color: var(--green-800); color: var(--green-800); }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.btn--lg { padding: .85em 1.9em; font-size: 1.03rem; }

/* ---------- แถบบน ---------- */
.topbar {
    background: var(--brand-950);
    color: #e3c2d1;
    font-size: .84rem;
}
.topbar__inner { display: flex; align-items: center; gap: 1.4rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__item { display: inline-flex; align-items: center; gap: .4em; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--gold-500); }
.topbar__item--right { margin-left: auto; color: var(--gold-500); font-weight: 600; }

/* ---------- ส่วนหัว ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; flex-shrink: 0; }
.brand__mark {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--grad-brand);
    color: #fff; font-family: var(--font-head); font-weight: 700;
    display: grid; place-items: center; font-size: 1.05rem; letter-spacing: .5px;
}
.brand__logo { width: 46px; height: 46px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--green-900); }
.brand__text small { font-size: .76rem; color: var(--ink-500); }

/* ---------- เมนูหลัก (เดสก์ท็อป) ---------- */
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.main-nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }

.main-nav__link {
    position: relative;
    display: flex; align-items: center; gap: .3em;
    padding: .6rem .8rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .94rem; color: var(--ink-900);
    white-space: nowrap;
    transition: color .18s, background .18s;
}
/* ขีดใต้เมนูตอนชี้และตอนอยู่หน้านั้น */
.main-nav__link::after {
    content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .28rem;
    height: 2px; border-radius: 2px; background: var(--brand-700);
    transform: scaleX(0); transform-origin: center;
    transition: transform .2s ease;
}
.main-nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.main-nav__link:hover::after,
.main-nav__item.is-current > .main-nav__link::after { transform: scaleX(1); }
.main-nav__item.is-current > .main-nav__link { color: var(--brand-700); }

.main-nav__caret {
    font-size: .62em; color: var(--ink-300); transition: transform .2s;
    display: inline-block; line-height: 1;
}
.main-nav__item:hover > .main-nav__link .main-nav__caret { transform: rotate(180deg); color: var(--brand-600); }

.submenu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: .45rem; list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
/* สะพานกันเมาส์หลุดระหว่างเมนูกับเมนูย่อย */
.main-nav__item.has-children::after {
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px;
}
.main-nav__item:hover > .submenu,
.main-nav__item:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
    display: block; padding: .58rem .85rem; border-radius: 8px;
    font-size: .92rem; color: var(--ink-700);
}
.submenu a:hover { background: var(--brand-50); color: var(--brand-700); }
.submenu li.is-current > a { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }

/* ปุ่มเปิดเมนูมือถือ */
.nav-toggle {
    display: none; margin-left: auto;
    width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer; padding: 12px 11px;
    transition: border-color .18s;
}
.nav-toggle:hover { border-color: var(--brand-700); }
.nav-toggle span { display: block; height: 2px; background: var(--brand-800); border-radius: 2px; transition: .25s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- เมนูมือถือ ----------
   วางไว้นอก <header> เพราะ .site-header ใช้ backdrop-filter
   ซึ่งทำให้ position:fixed ที่อยู่ข้างในยึดกับ header แทนหน้าจอ
   ------------------------------------------------------------ */
.nav-backdrop {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(46, 0, 20, .55);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.mobile-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000;
    width: min(86vw, 350px);
    display: none;                       /* เปิดใช้เฉพาะจอเล็ก */
    flex-direction: column;
    background: #fff;
    box-shadow: -10px 0 44px rgba(46, 0, 20, .28);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__head {
    display: flex; align-items: center; gap: .7rem;
    padding: .9rem 1rem;
    background: var(--grad-brand); color: #fff;
    flex-shrink: 0;
}
.mobile-nav__logo { width: 36px; height: 36px; border-radius: 8px; background: #fff; padding: 2px; flex-shrink: 0; }
.mobile-nav__title {
    flex: 1; min-width: 0;
    font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.25;
}
.mobile-nav__title small { display: block; font-family: var(--font); font-size: .74rem; font-weight: 400; opacity: .82; }
.mobile-nav__close {
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .4); border-radius: 10px;
    background: rgba(255, 255, 255, .14); color: #fff;
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
}
.mobile-nav__close:hover { background: rgba(255, 255, 255, .28); }

/* รายการเมนู — ส่วนเดียวที่เลื่อนได้ */
.mobile-nav__list {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    list-style: none; margin: 0; padding: .25rem 0;
}
.mobile-nav__item { position: relative; border-bottom: 1px solid var(--line); }
.mobile-nav__item:last-child { border-bottom: 0; }

.mobile-nav__link {
    display: flex; align-items: center;
    min-height: 54px; padding: .85rem 1.1rem;
    font-size: 1rem; font-weight: 600; color: var(--ink-900);
}
.mobile-nav__item.has-children > .mobile-nav__link { padding-right: 4rem; }
.mobile-nav__link:active { background: var(--brand-50); }
.mobile-nav__item.is-current > .mobile-nav__link {
    color: var(--brand-700); background: var(--brand-50);
    box-shadow: inset 4px 0 0 var(--brand-700);
}

/* ปุ่มกางเมนูย่อย แยกจากตัวลิงก์ ทำให้กดชื่อเมนูแม่ไปหน้านั้นได้ */
.mobile-nav__expand {
    position: absolute; top: 0; right: 0;
    width: 58px; height: 54px;
    border: 0; border-left: 1px solid var(--line);
    background: transparent; color: var(--brand-700);
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
}
.mobile-nav__expand::before { content: '+'; }
.mobile-nav__item.is-open > .mobile-nav__expand::before { content: '−'; }
.mobile-nav__expand:active { background: var(--brand-50); }

.mobile-nav__sub { list-style: none; margin: 0; padding: 0; background: var(--bg-soft); display: none; }
.mobile-nav__item.is-open > .mobile-nav__sub { display: block; }
.mobile-nav__sub a {
    display: flex; align-items: center;
    min-height: 46px; padding: .6rem 1.1rem .6rem 2rem;
    font-size: .94rem; color: var(--ink-700);
    border-top: 1px solid var(--line);
}
.mobile-nav__sub li.is-current > a { color: var(--brand-700); font-weight: 600; }

/* ท้ายเมนู — ปุ่มติดต่อ ตรึงอยู่ล่างสุด */
.mobile-nav__foot {
    flex-shrink: 0;
    padding: 1rem; border-top: 1px solid var(--line); background: var(--bg-soft);
}
.mobile-nav__foot .btn { width: 100%; }
.mobile-nav__foot .btn + .btn { margin-top: .5rem; }
.mobile-nav__note { font-size: .82rem; color: var(--ink-500); margin: .75rem 0 0; text-align: center; }

/* ---------- ฮีโร่ ---------- */
.hero {
    position: relative;
    background: var(--grad-hero);
    color: #fff; overflow: hidden;
    padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 84% 14%, rgba(227, 169, 47, .26), transparent 46%),
        radial-gradient(circle at 8% 92%, rgba(204, 58, 114, .30), transparent 52%);
}
.hero__art {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    pointer-events: none; opacity: .56;
}
.hero__art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(46, 0, 20, .96) 0%, rgba(77, 1, 34, .87) 33%, rgba(77, 1, 34, .45) 67%, rgba(46, 0, 20, .25) 100%);
}
.hero__art img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    filter: saturate(.86) contrast(1.04);
}
.hero__lead { color: #f0d9e3; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero__eyebrow {
    display: inline-block; background: rgba(255, 255, 255, .14); color: var(--gold-500);
    border: 1px solid rgba(224, 169, 44, .4);
    padding: .3em 1em; border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .hl { color: var(--gold-500); }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.16rem); color: #d6e9e0; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__points { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .6rem; }
.hero__points li { display: flex; align-items: flex-start; gap: .6em; color: #f3e0e8; font-size: .96rem; }
.hero__points li::before {
    content: '✓'; flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold-500); color: #3a2a05;
    display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 3px;
}

.hero__card {
    background: #fff; color: var(--ink-700);
    border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow-lg);
}
.hero__card h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.hero__card .stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.stat { background: var(--green-50); border-radius: var(--radius-sm); padding: .9rem; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--green-800); line-height: 1.1; }
.stat__label { font-size: .8rem; color: var(--ink-500); }

/* ---------- ส่วนเนื้อหา ---------- */
.section { padding: clamp(2.8rem, 2rem + 3vw, 4.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--grad-brand); color: #f0d9e3; }
.section--green h2, .section--green h3 { color: #fff; }

.section-head { max-width: 60ch; margin: 0 auto clamp(1.8rem, 1.2rem + 2vw, 2.8rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-title { margin-bottom: .4em; }
.section-sub { color: var(--ink-500); margin: 0; }
.section--green .section-sub { color: #e0b8c9; }

.eyebrow {
    display: inline-block; color: var(--green-700); background: var(--green-100);
    padding: .25em .9em; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: .7rem;
}

/* ---------- กริดการ์ด ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.card__media { aspect-ratio: 16 / 9; background: var(--green-50); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card__meta { font-size: .8rem; color: var(--ink-300); display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.card__tag { background: var(--green-100); color: var(--green-800); padding: .1em .7em; border-radius: 999px; font-weight: 600; }
.card__title { font-size: 1.04rem; margin-bottom: .45rem; }
.card__title a { color: var(--ink-900); }
.card__title a:hover { color: var(--green-700); }
.card__text { font-size: .92rem; color: var(--ink-500); margin: 0 0 1rem; }
.card__foot { margin-top: auto; font-size: .88rem; font-weight: 600; }

/* การ์ดบริการ */
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__icon {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    display: grid; place-items: center; font-size: 1.5rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.service-card p { font-size: .93rem; color: var(--ink-500); margin: 0; }

/* ---------- กล่องคำตอบ (AEO) ---------- */
.answer-box {
    background: linear-gradient(135deg, var(--brand-50), #fff);
    border: 1px solid var(--green-100);
    border-left: 5px solid var(--green-700);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin: 0 0 2rem;
}
.answer-box__q { font-size: 1.12rem; margin-bottom: .5rem; color: var(--green-900); }
.answer-box__a p { margin-bottom: .6em; font-size: 1.02rem; color: var(--ink-700); }
.answer-box__a ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.answer-box__a li { margin-bottom: .3em; font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: .7rem; max-width: 900px; margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item[open] { border-color: var(--green-100); box-shadow: var(--shadow); }
.faq__q {
    cursor: pointer; list-style: none; padding: 1rem 1.3rem;
    font-family: var(--font-head); font-weight: 600; color: var(--ink-900);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; color: var(--green-700); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.faq__item[open] .faq__q::after { content: '−'; }
.faq__q:hover { background: var(--green-50); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--ink-500); font-size: .96rem; }

/* ---------- ตารางจังหวัด ---------- */
.region-block { margin-bottom: 2.4rem; scroll-margin-top: 120px; }
.region-block__title {
    display: flex; align-items: center; gap: .7rem;
    font-size: 1.15rem; padding-bottom: .6rem; border-bottom: 2px solid var(--green-100);
}
.region-block__count { font-size: .8rem; font-weight: 500; color: var(--ink-300); font-family: var(--font); }
.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .55rem; margin-top: 1.1rem; }
.province-chip {
    display: block; padding: .6rem .9rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .93rem; font-weight: 500; color: var(--ink-700);
    transition: .18s;
}
.province-chip:hover { border-color: var(--green-700); background: var(--green-50); color: var(--green-800); transform: translateX(3px); }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { background: var(--grad-brand); color: #fff; padding: 2.8rem 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 90% 20%, rgba(227,169,47,.22), transparent 45%); }
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band__title { color: #fff; margin-bottom: .3em; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); }
.cta-band__text { color: #f0d0dd; margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- ส่วนท้าย ---------- */
.site-footer { background: var(--brand-950); color: #d3aebf; font-size: .93rem; }
.site-footer__grid {
    display: grid; gap: 2.2rem; padding: 3rem 0 2.4rem;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
}
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer__links, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__links a, .contact-list a { color: #d3aebf; }
.site-footer__links a:hover, .contact-list a:hover { color: var(--gold-500); }
.site-footer__links--region { grid-template-columns: 1fr 1fr; }
.site-footer__about { font-size: .89rem; margin-bottom: 1rem; }
.site-footer__note { font-size: .82rem; color: #9d7284; margin: .8rem 0 0; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer { margin-bottom: 1rem; }
.contact-list strong { color: #f2dde5; font-weight: 600; }
.site-footer__bottom { border-top: 1px solid #4a1030; padding: 1.1rem 0; font-size: .85rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }
.site-footer__stat { color: #9d7284; }

/* ---------- ปุ่มลอย ---------- */



/* ---------- หน้าเนื้อหา ---------- */
.page-hero { background: var(--green-50); border-bottom: 1px solid var(--line); padding: 2.4rem 0 2.2rem; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero__lead { color: var(--ink-500); max-width: 70ch; margin: 0; }

.breadcrumb { font-size: .85rem; color: var(--ink-300); margin-bottom: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: var(--ink-300); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.6rem; align-items: start; }

.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
    margin: 1.4em 0; padding: .9em 1.3em;
    background: var(--green-50); border-left: 4px solid var(--green-700); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
.prose th { background: var(--green-50); font-weight: 600; color: var(--green-900); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.table-scroll { overflow-x: auto; }

.sidebar { position: sticky; top: 96px; display: grid; gap: 1.4rem; }
.widget { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.widget__title { font-size: 1rem; margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green-100); }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.widget a { font-size: .92rem; color: var(--ink-700); }
.widget a:hover { color: var(--green-700); }
.widget__count { color: var(--ink-300); font-size: .82rem; }

.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: var(--ink-300); margin-bottom: 1.4rem; }

/* ---------- ฟอร์ม ---------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-900); }
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
    width: 100%; padding: .7em .9em;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .97rem; color: var(--ink-900); background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--ink-300); }

.alert { padding: .9rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-size: .95rem; }
.alert--ok { background: var(--green-100); color: var(--green-900); border: 1px solid #b8dfcc; }
.alert--err { background: #fdeceb; color: #8a2b20; border: 1px solid #f3c7c2; }

/* ---------- แบ่งหน้า ---------- */
.pagination { margin-top: 2.4rem; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 0; padding: 0; }
.pagination a, .pagination span {
    display: block; min-width: 40px; padding: .5em .8em; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .92rem; color: var(--ink-700); background: #fff;
}
.pagination a:hover { border-color: var(--green-700); color: var(--green-800); background: var(--green-50); }
.pagination .is-active a { background: var(--green-800); border-color: var(--green-800); color: #fff; font-weight: 600; }
.pagination .is-disabled span, .pagination .is-gap span { color: var(--ink-300); background: transparent; border-color: transparent; }

/* ---------- อื่น ๆ ---------- */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ink-300); }
.empty-state__icon { font-size: 2.6rem; margin-bottom: .6rem; }

.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem 1.3rem; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -16px; left: 1.3rem;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad-brand); color: #fff;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.step h3 { font-size: 1.03rem; margin: .5rem 0 .35rem; }
.step p { font-size: .91rem; color: var(--ink-500); margin: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge { background: var(--gold-100); color: #6b4d09; border: 1px solid #f0dcae; padding: .25em .85em; border-radius: 999px; font-size: .84rem; font-weight: 600; }

.slider { position: relative; max-width: 1120px; margin-inline: auto; }
.slider__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none;
    border: 1px solid rgba(127, 2, 56, .13); border-radius: calc(var(--radius) + 5px);
    box-shadow: 0 14px 34px rgba(84, 1, 38, .11); background: var(--brand-900);
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; isolation: isolate; }
.slider__slide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.slider__caption {
    position: absolute; inset: auto 0 0 0; z-index: 1; padding: 2rem 2.1rem 1.7rem;
    background: linear-gradient(180deg, transparent, rgba(46, 0, 20, .92)); color: #fff;
}
.slider__caption h2 { color: #fff; margin-bottom: .2em; font-size: clamp(1.1rem, 1rem + 1vw, 1.8rem); }
.slider__caption p { margin: 0; color: #f3dce6; font-size: .95rem; }
.slider__dots { display: flex; gap: .4rem; justify-content: center; padding: .9rem 0 0; }
.slider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: width .18s, background .18s; }
.slider__dot.is-active { background: var(--green-700); width: 26px; border-radius: 5px; }

/* ---------- แพ็กเกจและราคา ---------- */
.pkg-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pkg-tab {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .6em 1.1em; border-radius: 999px;
    background: #fff; border: 1.5px solid var(--line);
    font-size: .93rem; font-weight: 600; color: var(--ink-700);
    transition: .18s;
}
.pkg-tab:hover { border-color: var(--green-700); color: var(--green-800); }
.pkg-tab.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pkg-tab__icon { font-size: 1.05rem; }

.pkg-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

.pkg-card {
    position: relative;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 1.7rem 1.5rem 1.5rem;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pkg-card.is-featured { border-color: var(--gold-500); border-width: 2px; box-shadow: var(--shadow); }
.pkg-card__badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gold-500); color: #3a2a05;
    padding: .22em 1.1em; border-radius: 999px;
    font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.pkg-card__name { font-size: 1.2rem; margin-bottom: .2rem; }
.pkg-card__sub { font-size: .88rem; color: var(--ink-500); margin: 0 0 .6rem; }
.pkg-card__price {
    padding: .9rem 0 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
}
.pkg-card__amount { font-family: var(--font-head); font-size: 2.15rem; font-weight: 700; color: var(--green-800); line-height: 1; }
.pkg-card__unit { font-size: .95rem; color: var(--ink-500); }
.pkg-card__quote { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--green-700); }
.pkg-card__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .45rem; flex: 1; }
.pkg-card__list li { position: relative; padding-left: 1.5rem; font-size: .91rem; line-height: 1.5; }
.pkg-card__list li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--green-600); font-weight: 700;
}
.pkg-card__list .pkg-card__more { color: var(--ink-300); font-size: .85rem; padding-left: 0; }
.pkg-card__list .pkg-card__more::before { content: ''; }
.pkg-card__cta { width: 100%; margin-top: auto; }

/* ตารางเปรียบเทียบ */
table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; background: #fff; }
table.compare th, table.compare td {
    border: 1px solid var(--line); padding: .7rem .9rem; text-align: center; vertical-align: middle;
}
table.compare thead th { background: var(--green-50); color: var(--green-900); }
table.compare thead th.is-featured { background: var(--gold-100); }
table.compare .compare__feat { text-align: left; font-weight: 500; color: var(--ink-700); background: #fbfdfc; min-width: 240px; }
table.compare thead .compare__feat { background: var(--green-50); font-weight: 600; }
table.compare .compare__name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
table.compare .compare__price { display: block; font-size: .88rem; color: var(--green-700); font-weight: 600; margin-top: .15rem; }
table.compare .compare__text { font-size: .88rem; color: var(--ink-700); }
table.compare td.is-featured { background: #fffdf7; }
table.compare tbody tr:hover td { background: var(--green-50); }
table.compare tbody tr:hover td.is-featured { background: #fdf6e6; }
table.compare .tick { color: var(--green-600); font-size: 1.1rem; font-weight: 700; }
table.compare .cross { color: var(--ink-300); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    /* สลับจากเมนูแนวนอนไปใช้เมนูลิ้นชักแทน */
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .mobile-nav { display: flex; }

    .site-header__inner { gap: .75rem; min-height: 66px; }
    .brand__logo, .brand__mark { width: 40px; height: 40px; }
    .brand__text strong { font-size: .98rem; }
    .brand__text small { display: none; }

    .topbar__item--hide-sm { display: none; }
    .hero__art { display: none; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .province-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .topbar__item--right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .topbar, .site-header, .mobile-nav, .nav-backdrop,
    .cta-band, .site-footer, .float-contact, .edit-bar, .pagination { display: none !important; }
    body { font-size: 12pt; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}

/* ---------- ที่ตั้งสาขาในส่วนท้าย ---------- */
.site-footer__grid--5 { grid-template-columns: 1.4fr 1fr 1.2fr 1.15fr 1.1fr; }

.branch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.branch { display: grid; gap: .15rem; }
.branch__name {
    font-weight: 600; color: #f2dde5; font-size: .9rem;
    display: inline-flex; align-items: center; gap: .35em;
}
.branch__name::before { content: '📍'; font-size: .85em; }
.branch__addr { font-size: .86rem; line-height: 1.55; }
.branch__map { font-size: .82rem; color: var(--gold-500); }
.branch__map:hover { color: var(--gold-400); }

@media (max-width: 1180px) {
    .site-footer__grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .site-footer__grid--5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .site-footer__grid--5 { grid-template-columns: 1fr; }
}

/* ---------- ช่องทางติดต่อในหน้าติดต่อ ---------- */
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.channel-list li { display: flex; align-items: flex-start; gap: .7rem; }
.channel__icon {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
    background: var(--brand-100); display: grid; place-items: center; font-size: 1rem;
}
.channel__body { display: grid; gap: .05rem; min-width: 0; }
.channel__label { font-size: .78rem; color: var(--ink-300); }
.channel__value { font-size: .96rem; font-weight: 600; color: var(--brand-700); word-break: break-word; }
.channel__value:hover { color: var(--brand-500); }

/* บล็อกสาขาบนพื้นหลังสว่าง */
.branch-list--light .branch__name { color: var(--ink-900); font-size: .95rem; }
.branch-list--light .branch__addr { color: var(--ink-500); }
.branch-list--light .branch__map { color: var(--brand-700); font-weight: 600; }
.branch-list--light .branch__map:hover { color: var(--brand-500); }
.branch-list--light .branch { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.branch-list--light .branch:last-child { padding-bottom: 0; border-bottom: 0; }

/* ---------- ปุ่ม LINE ---------- */
.btn--line { background: linear-gradient(135deg, #06C755 0%, #04a344 100%); color: #fff; }
.btn--line:hover { background: linear-gradient(135deg, #05b14c, #038a39); color: #fff; }
.btn__line-icon { flex-shrink: 0; }
.btn__ico { font-size: .95em; }

/* กลุ่มปุ่มติดต่อ */
.contact-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.contact-actions--stack { flex-direction: column; }
.contact-actions--stack .btn { width: 100%; }

/* ---------- ปุ่มลอยติดต่อ (ขึ้นบน + โทร + LINE) ----------
   ทุกปุ่มอยู่ในกองเดียวกันแบบ flex column
   จึงไม่มีทางทับกันไม่ว่าจะตั้งเบอร์โทรไว้กี่เบอร์
   ------------------------------------------------------------ */
.float-contact {
    position: fixed; right: 16px; bottom: 16px; z-index: 90;
    display: flex; flex-direction: column; gap: .55rem; align-items: flex-end;
    max-width: calc(100vw - 32px);
}

.float-contact__btn {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .72em 1.15em; border-radius: 999px;
    font-weight: 700; font-size: .93rem; line-height: 1.2;
    box-shadow: 0 4px 14px rgba(46, 0, 20, .22), 0 1px 3px rgba(0, 0, 0, .12);
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, .55);
    transition: transform .16s, box-shadow .16s, filter .16s;
}
.float-contact__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(46, 0, 20, .3); }
.float-contact__btn--call { background: var(--grad-gold); color: #3a2a05; }
.float-contact__btn--call:hover { filter: brightness(1.06); color: #3a2a05; }
.float-contact__btn--line { background: linear-gradient(135deg, #06C755, #04a344); color: #fff; }
.float-contact__btn--line:hover { filter: brightness(1.08); color: #fff; }
.float-contact__btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ปุ่มขึ้นบน — เล็กและจางกว่า เพื่อไม่แย่งสายตาจากปุ่มติดต่อ */
.to-top {
    width: 38px; height: 38px; padding: 0;
    border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .96);
    border: 1.5px solid var(--line);
    color: var(--brand-700);
    display: none; place-items: center;
    box-shadow: 0 3px 10px rgba(46, 0, 20, .16);
    transition: transform .16s, border-color .16s, background .16s;
}
.to-top svg { width: 17px; height: 17px; fill: currentColor; }
.to-top:hover { background: #fff; border-color: var(--brand-700); transform: translateY(-2px); }
/* ใช้ display สลับ เพื่อให้ปุ่มไม่กินที่ในกองตอนซ่อน กองจึงไม่มีช่องว่างค้าง */
.to-top.is-visible { display: grid; animation: toTopIn .22s ease; }
@keyframes toTopIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- แถบเครื่องมือผู้ดูแล ---------- */
.edit-bar { position: fixed; left: 18px; bottom: 18px; z-index: 95; }
.edit-bar__toggle {
    display: inline-flex; align-items: center; gap: .45em;
    padding: .65em 1.1em; border: 0; border-radius: 999px;
    background: var(--grad-brand); color: #fff;
    font-family: var(--font); font-weight: 600; font-size: .9rem;
    cursor: pointer; box-shadow: var(--shadow-lg);
}
.edit-bar__toggle:hover { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); }
.edit-bar__menu {
    position: absolute; left: 0; bottom: calc(100% + .6rem);
    min-width: 260px; max-width: min(88vw, 320px);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: .4rem;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.edit-bar.is-open .edit-bar__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.edit-bar__head {
    font-size: .76rem; color: var(--ink-300); padding: .5rem .7rem .35rem;
    text-transform: none; letter-spacing: 0;
}
.edit-bar__link {
    display: flex; align-items: center; gap: .5em;
    padding: .6rem .7rem; border-radius: 8px;
    font-size: .91rem; color: var(--ink-700);
}
.edit-bar__link:hover { background: var(--brand-50); color: var(--brand-700); }
.edit-bar__link--muted { color: var(--ink-300); border-top: 1px solid var(--line); margin-top: .25rem; }

@media (max-width: 620px) {
    /* คงตัวเลขไว้ให้เห็น เพราะถ้าเหลือแต่ไอคอนจะแยกไม่ออกว่าปุ่มไหนเบอร์อะไร */
    .float-contact { right: 12px; bottom: 12px; gap: .45rem; }
    .float-contact__btn { padding: .6em .9em; font-size: .85rem; gap: .4em; }
    .float-contact__btn svg { width: 16px; height: 16px; }
    .to-top { width: 34px; height: 34px; }
    .edit-bar__toggle-text { display: none; }
    .edit-bar__toggle { padding: .8em; }
}

/* จอเตี้ยมาก — ย่อปุ่มลงอีกขั้นไม่ให้กองสูงเกินจอ */
@media (max-height: 520px) {
    .float-contact { gap: .35rem; }
    .float-contact__btn { padding: .5em .8em; font-size: .8rem; }
}

/* ============================================================
   โปรโมชั่น
   ============================================================ */
.section--promo { background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%); }
.eyebrow--promo { background: var(--gold-100); color: #8a6212; }

.promo-card {
    position: relative;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.promo-card.is-featured { border-color: var(--gold-500); border-width: 2px; }
.promo-card.is-expired { opacity: .72; }

/* ป้ายส่วนลด
   - การ์ดที่มีรูป: วางทับมุมบนซ้ายของรูป (ไม่ทับตัวอักษรเพราะอยู่บนรูป)
   - การ์ดที่ไม่มีรูป: อยู่ในลำดับปกติเหนือหัวข้อ จึงไม่บังข้อความ */
.promo-card__badge {
    display: inline-block;
    background: var(--grad-gold); color: #3a2a05;
    padding: .32em 1em; border-radius: 999px;
    font-size: .82rem; font-weight: 700; white-space: nowrap; line-height: 1.4;
    box-shadow: 0 2px 8px rgba(46, 0, 20, .18);
}
.promo-card__badge--muted { background: var(--ink-300); color: #fff; }

/* แถวป้ายสำหรับการ์ดที่ไม่มีรูป */
.promo-card__badge-row { margin-bottom: .7rem; }

/* การ์ดที่มีรูป — ป้ายลอยทับบนรูป */
.promo-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--brand-50); overflow: hidden; }
.promo-card__media .promo-card__badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    box-shadow: 0 2px 10px rgba(46, 0, 20, .32);
}

/* การ์ดที่ไม่มีรูป — เพิ่มเส้นสีด้านบนให้ยังดูมีจุดเด่น */
.promo-card.has-no-image { border-top: 4px solid var(--gold-500); }
.promo-card.has-no-image.is-featured { border-top-color: var(--brand-700); }
.promo-card.has-no-image.is-expired { border-top-color: var(--ink-300); }
.promo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.promo-card:hover .promo-card__media img { transform: scale(1.05); }

.promo-card__body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.promo-card__title { font-size: 1.08rem; margin-bottom: .4rem; }
.promo-card__title a { color: var(--ink-900); }
.promo-card__title a:hover { color: var(--brand-700); }
.promo-card__sub { font-size: .92rem; color: var(--ink-500); margin: 0 0 .9rem; }

.promo-card__price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.promo-card__old { text-decoration: line-through; color: var(--ink-300); font-size: 1rem; }
.promo-card__new { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--brand-700); line-height: 1; }
.promo-card__unit { font-size: .9rem; color: var(--ink-500); }

.promo-card__period {
    font-size: .88rem; color: var(--ink-500);
    display: flex; align-items: center; gap: .4em; margin-bottom: .35rem;
}
.promo-card__left {
    display: inline-block; align-self: flex-start;
    background: var(--brand-100); color: var(--brand-700);
    padding: .18em .8em; border-radius: 999px;
    font-size: .82rem; font-weight: 600; margin-bottom: 1rem;
}
.promo-card__left.is-urgent { background: #fdeceb; color: var(--red-600); }
.promo-card__cta { margin-top: auto; width: 100%; }

/* แถบเตือนโปรหมดอายุ */
.alert-band {
    background: var(--amber-50, #fdf6e3); border: 1px solid #f0dcae; color: #7a5a10;
    padding: .8rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: .93rem;
}

.promo-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .4rem; }
.promo-meta__item {
    display: inline-flex; align-items: center; gap: .4em;
    background: var(--bg-soft); border: 1px solid var(--line);
    padding: .35em .9em; border-radius: 999px; font-size: .88rem; color: var(--ink-700);
}
.promo-meta__item--hl { background: var(--gold-100); border-color: #f0dcae; color: #8a6212; font-weight: 600; }
.promo-meta__item--urgent { background: #fdeceb; border-color: #f3c7c2; color: var(--red-600); font-weight: 600; }

.promo-price-box {
    display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-end;
    background: var(--brand-50); border: 1px solid var(--brand-100);
    border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.4rem 0;
}
.promo-price-box__label { display: block; font-size: .82rem; color: var(--ink-500); }
.promo-price-box__old { font-size: 1.2rem; color: var(--ink-300); text-decoration: line-through; }
.promo-price-box__new { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--brand-700); line-height: 1.1; }

/* ============================================================
   ผู้แนะนำ / ตัวแทนขาย
   ============================================================ */
.referral-band {
    background: var(--grad-brand); color: #fff;
    padding: 2.6rem 0; position: relative; overflow: hidden;
}
.referral-band::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 88% 30%, rgba(227, 169, 47, .26), transparent 48%);
}
.referral-band__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.referral-band__eyebrow {
    display: inline-block; background: rgba(255, 255, 255, .16); color: var(--gold-400);
    border: 1px solid rgba(227, 169, 47, .45);
    padding: .25em .9em; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: .7rem;
}
.referral-band__title { color: #fff; margin-bottom: .3em; font-size: clamp(1.25rem, 1.1rem + .9vw, 1.8rem); }
.referral-band__sub { color: #f0d0dd; margin: 0; max-width: 56ch; }
.referral-band__side { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.referral-band__rate { text-align: center; }
.referral-band__num {
    display: block; font-family: var(--font-head); font-weight: 700;
    font-size: 3.2rem; line-height: 1; color: var(--gold-400);
}
.referral-band__num small { font-size: .45em; margin-left: .05em; }
.referral-band__label { display: block; font-size: .82rem; color: #e0b8c9; margin-top: .2rem; }

.page-hero--referral { background: linear-gradient(150deg, var(--brand-50), #fff); }
.rate-hl { color: var(--brand-700); }

.earn-card {
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 1.3rem 1rem; text-align: center;
    transition: transform .2s, border-color .2s;
}
.earn-card:hover { transform: translateY(-3px); border-color: var(--gold-500); }
.earn-card__base { font-size: .85rem; color: var(--ink-500); margin-bottom: .5rem; }
.earn-card__value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--brand-700); line-height: 1; }
.earn-card__unit { font-size: .82rem; color: var(--ink-300); margin-top: .2rem; }

.term-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.term-list li { position: relative; padding-left: 1.6rem; font-size: .91rem; line-height: 1.6; }
.term-list li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--brand-700); font-weight: 700;
}

@media (max-width: 720px) {
    .referral-band__inner { flex-direction: column; align-items: flex-start; }
    .referral-band__side { width: 100%; justify-content: space-between; }
    .promo-price-box { gap: 1.2rem; }
}

/* ---------- จังหวัดที่ให้บริการเป็นหลัก ---------- */
.focus-grid {
    display: grid; gap: .9rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.focus-card {
    display: flex; flex-direction: column; gap: .35rem;
    padding: 1.1rem 1.2rem;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
    border-left: 5px solid var(--brand-700);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.focus-card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-lg);
    border-color: var(--brand-200); border-left-color: var(--gold-500);
}
.focus-card__name { font-size: .92rem; color: var(--ink-500); line-height: 1.45; }
.focus-card__name strong {
    display: block; font-family: var(--font-head);
    font-size: 1.22rem; color: var(--brand-700); margin-top: .1rem;
}
.focus-card__meta { font-size: .82rem; color: var(--ink-300); margin-top: auto; }

.focus-second {
    margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.focus-second__label { font-size: .9rem; color: var(--ink-500); margin-right: .3rem; }
.focus-second__link {
    padding: .32em .9em; border-radius: 999px;
    background: var(--brand-50); border: 1px solid var(--brand-100);
    font-size: .89rem; font-weight: 600; color: var(--brand-700);
    transition: .16s;
}
.focus-second__link:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* ============================================================
   Visual refresh — รูปลักษณ์ร่วมสมัยโดยไม่เพิ่มรูปหรือไลบรารี
   ============================================================ */

/* ช่วยให้หน้าที่ยาวแสดงเนื้อหาส่วนล่างเมื่อใกล้ถึงเท่านั้น ลดงาน render ตอนเปิดหน้า */
@supports (content-visibility: auto) {
    .section:not(.hero) {
        content-visibility: auto;
        contain-intrinsic-size: auto 760px;
    }
}

/* คุมจังหวะและบรรยากาศของแบรนด์ให้คมขึ้น โดยใช้ gradient แบบ CSS ทั้งหมด */
.site-header {
    border-bottom-color: rgba(127, 2, 56, .12);
    box-shadow: 0 1px 0 rgba(127, 2, 56, .035);
}
.site-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-800), var(--gold-500), var(--brand-500));
    opacity: 0; transition: opacity .2s ease;
}
.site-header.is-stuck::before { opacity: 1; }
.brand__logo {
    padding: 2px; border-radius: 12px;
    background: linear-gradient(145deg, #fff, var(--brand-100));
    box-shadow: 0 4px 14px rgba(127, 2, 56, .11);
}
.main-nav__cta { box-shadow: 0 5px 14px rgba(184, 134, 11, .2); }

.hero {
    isolation: isolate;
    background:
        radial-gradient(circle at 76% 36%, rgba(255, 205, 89, .17) 0 2px, transparent 2.5px) 0 0 / 24px 24px,
        var(--grad-hero);
}
.hero::before {
    content: ''; position: absolute; z-index: 0; width: 520px; height: 520px;
    right: -190px; top: -270px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255, 255, 255, .035), 0 0 0 96px rgba(255, 255, 255, .025);
    pointer-events: none;
}
.hero__content { max-width: 670px; }
.hero__eyebrow {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 22px rgba(24, 0, 10, .12);
    letter-spacing: .01em;
}
.hero h1 { text-wrap: balance; letter-spacing: -.025em; }
.hero__lead { line-height: 1.8; }
.hero__actions .btn--accent { box-shadow: 0 9px 20px rgba(227, 169, 47, .24); }
.hero__card {
    position: relative; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 22px 54px rgba(26, 0, 11, .32), 0 2px 6px rgba(26, 0, 11, .1);
}
.hero__card::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
    background: linear-gradient(90deg, var(--brand-700), var(--gold-500));
}
.hero__card h2 { padding-top: .15rem; }
.stat {
    position: relative; overflow: hidden;
    border: 1px solid rgba(127, 2, 56, .07);
    background: linear-gradient(145deg, #fff, var(--brand-50));
}
.stat::after {
    content: ''; position: absolute; width: 54px; height: 54px; right: -27px; bottom: -27px;
    border-radius: 50%; background: var(--brand-100); opacity: .68;
}
.stat__num { position: relative; z-index: 1; }

.section--soft { background: linear-gradient(180deg, #fcf8fa, var(--bg-soft)); }
.section-head .eyebrow { box-shadow: inset 0 0 0 1px rgba(127, 2, 56, .06); }
.section-title { text-wrap: balance; letter-spacing: -.018em; }
.section-sub { text-wrap: pretty; }
.card, .service-card, .step, .focus-card, .promo-card, .pkg-card, .faq__item {
    box-shadow: 0 1px 0 rgba(127, 2, 56, .025);
}
.card:hover, .service-card:hover, .step:hover, .focus-card:hover, .promo-card:hover, .pkg-card:hover {
    box-shadow: 0 18px 42px rgba(87, 1, 39, .13);
}
.service-card { position: relative; overflow: hidden; }
.service-card::after {
    content: ''; position: absolute; width: 86px; height: 86px; right: -42px; bottom: -42px;
    border-radius: 50%; background: var(--brand-50); transition: transform .25s ease;
}
.service-card:hover::after { transform: scale(1.8); }
.service-card > * { position: relative; z-index: 1; }
.service-card__icon { box-shadow: 0 8px 18px rgba(127, 2, 56, .08); }
.step { border-top: 3px solid transparent; }
.step:hover { border-top-color: var(--gold-500); }
.card__media img, .promo-card__media img { transform: translateZ(0); }

/* ปุ่มติดต่อเดสก์ท็อปเป็นไอคอนเรียบร้อย และเผยเบอร์เมื่อวางเมาส์ */
@media (min-width: 901px) {
    .float-contact__btn {
        width: 48px; height: 48px; padding: 0; justify-content: center; border-width: 2px;
    }
    .float-contact__btn span {
        position: absolute; right: calc(100% + .7rem); padding: .55em .9em;
        border-radius: 999px; background: var(--brand-950); color: #fff;
        box-shadow: 0 5px 16px rgba(46, 0, 20, .2); font-size: .9rem;
        opacity: 0; transform: translateX(6px); pointer-events: none;
        transition: opacity .18s ease, transform .18s ease;
    }
    .float-contact__btn:hover span, .float-contact__btn:focus-visible span {
        opacity: 1; transform: translateX(0);
    }
}

@media (max-width: 620px) {
    .hero { padding-top: 2.6rem; }
    .hero__card { padding: 1.25rem; }
    .hero__card .stat-grid { gap: .65rem; }
    .hero__points { margin-top: 1.35rem; }
    .hero__actions .btn { width: 100%; }
    .section { padding: 2.7rem 0; }

    /* จอเล็กให้เหลือช่องทางติดต่อหลัก 2 ปุ่ม เพื่อไม่บังปุ่มสำคัญของหน้า */
    .float-contact__btn {
        width: 44px; height: 44px; padding: 0; justify-content: center;
        border-width: 2px;
    }
    .float-contact__btn span { display: none; }
    .float-contact__btn--call + .float-contact__btn--call { display: none; }
}
