/* ================================================================
   ซ่อมมือถือเพชรบุรี.com — HYBRID THEME
   dark glossy hero (อัตลักษณ์ร้าน) + light content (อ่านง่ายทุกวัย)
   fixes: Thai font fallback · line-height ไทย · WCAG contrast
   ================================================================ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img,svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul,ol { list-style: none; }

:root {
    /* ---- dark zone (nav / hero / footer) ---- */
    --bg: #060A14;
    --bg-2: #080C18;
    --surface: #0C1425;
    --line: rgba(120,160,230,0.14);
    --line-2: rgba(130,175,255,0.28);
    --text: #EDF3FF;
    --text-soft: #A9BBDE;          /* 10.1:1 on --bg */
    --text-dim: #8A97BD;           /* 6.3:1 on --bg — ผ่าน AA */
    --blue: #3B8CFF;
    --blue-bright: #6FAEFF;
    --blue-deep: #1B5FD6;
    --glow: rgba(59,140,255,0.35);
    --glow-soft: rgba(59,140,255,0.16);

    /* ---- light zone (เนื้อหา) ---- */
    --l-bg: #F3F6FC;
    --l-bg-2: #E9EFFA;
    --l-surface: #FFFFFF;
    --l-text: #0F1B33;             /* 15.9:1 on --l-bg */
    --l-soft: #42536F;             /* 7.6:1 */
    --l-dim: #5E6E8C;              /* 5.1:1 — ใช้กับ label ≥0.78rem เท่านั้น */
    --l-line: rgba(15,40,90,0.10);
    --l-line-2: rgba(15,40,90,0.17);
    --l-blue: #1B5FD6;

    --sans: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, "SFMono-Regular", monospace; /* ใช้กับเลข/ละตินเท่านั้น */

    --container: 1240px;
    --gutter: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(.2,.6,.2,1);
    --t: 260ms var(--ease);
    --radius: 14px;
}

body {
    font-family: var(--sans);
    font-size: 17px;                /* ฐานใหญ่ขึ้นเพื่อผู้อ่านไทยทุกวัย */
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}
::selection { background: var(--blue); color: #fff; }

/* ---- Type — line-height เผื่อสระบน-ล่าง/วรรณยุกต์ไทย ---- */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.display {
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    font-weight: 700; line-height: 1.12; letter-spacing: -0.015em;
    background: linear-gradient(180deg, #FFFFFF 0%, #C9DCFF 75%, #9FC0FF 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.display em {
    font-style: normal; display: block;
    font-size: 0.52em; font-weight: 600; line-height: 1.35; margin-top: 14px;
    -webkit-text-fill-color: var(--blue-bright);
    color: var(--blue-bright);
    text-shadow: 0 0 24px var(--glow-soft);
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
p { color: var(--text-soft); }
strong { color: #fff; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.65; }

/* ---- Kicker: เลขเป็น mono, ข้อความไทยเป็น sans ---- */
.kicker {
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--blue-bright);
    display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), transparent); }
.kicker .knum { font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em; }

/* ---- Layout ---- */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

/* ================================================================
   DARK ZONE — NAV
   ================================================================ */
.nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(6,10,20,0.78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.nav-brand .tag { font-size: 0.8rem; font-weight: 500; color: var(--blue-bright); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a { padding: 9px 14px; font-size: 0.95rem; color: var(--text-soft); transition: color var(--t); position: relative; }
.nav-menu a:not(.btn)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px;
    height: 2px; border-radius: 2px; background: var(--blue);
    transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-menu a:not(.btn):hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: #fff; }
.nav-menu .btn { margin-left: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,0.03); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 12px 22px; font-size: 1rem; font-weight: 600;
    border-radius: 12px; border: 1px solid transparent;
    transition: transform var(--t), box-shadow var(--t), filter var(--t), background var(--t), border-color var(--t), color var(--t);
    white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
    color: #fff;
    /* gradient ทุกจุด ≥4.5:1 กับตัวอักษรขาว */
    background: linear-gradient(180deg, #2F72E4 0%, #1B5FD6 55%, #1548A8 100%);
    border-color: rgba(150,195,255,0.5);
    box-shadow: 0 8px 26px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 34px -8px var(--glow); }
.btn-outline {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border-color: var(--line-2);
}
.btn-outline:hover { color: #fff; border-color: var(--blue); background: rgba(59,140,255,0.10); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }

/* ================================================================
   DARK ZONE — HERO
   ================================================================ */
.hero { position: relative; padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image:
        radial-gradient(700px 500px at 8% 10%, rgba(46,124,246,0.26), transparent 60%),
        radial-gradient(600px 500px at 92% 85%, rgba(59,140,255,0.16), transparent 55%),
        linear-gradient(rgba(130,175,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130,175,255,0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px;
    mask-image: linear-gradient(to bottom, #000 65%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { margin-bottom: 22px; }
.hero .display { margin-bottom: 22px; }
.hero-lead { max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.95rem; font-weight: 500; color: var(--text-soft); margin-bottom: 34px;
}
.hero-note svg { width: 17px; height: 17px; color: var(--blue-bright); stroke-width: 2.4; }
.hero-note b { color: #fff; font-weight: 600; }

.hero-meta {
    display: flex; flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
}
.hero-meta div { flex: 1; min-width: 130px; padding: 15px 18px; border-right: 1px solid var(--line); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta dt { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); margin-bottom: 4px; }
.hero-meta dd { font-size: 1rem; font-weight: 600; color: #fff; }

/* ---- Hero visual: ใบรับซ่อม ---- */
.hero-visual { position: relative; }
.ticket-back {
    position: absolute; inset: 0; border-radius: 16px;
    background: linear-gradient(160deg, rgba(59,140,255,0.10), rgba(59,140,255,0.02));
    border: 1px solid var(--line);
    transform: rotate(-3.5deg) translate(14px, 16px); z-index: 0;
}
.ticket {
    position: relative; z-index: 1; border-radius: 16px;
    background: linear-gradient(165deg, #101D35 0%, #0A1220 100%);
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 80px -30px #000, 0 0 60px -18px var(--glow), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
}
.ticket::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(180deg, rgba(90,160,255,0.13), transparent);
    pointer-events: none;
}
.ticket-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px dashed var(--line-2); }
.ticket-shop { font-weight: 600; font-size: 1.05rem; color: #fff; }
.ticket-no { font-size: 0.78rem; color: var(--text-dim); text-align: right; line-height: 1.5; }
.ticket-no .mono { font-family: var(--mono); letter-spacing: 0.06em; }
.ticket-rows { padding: 6px 22px; }
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row .k { font-size: 0.82rem; font-weight: 500; color: var(--text-dim); }
.ticket-row .v { font-size: 0.95rem; font-weight: 500; color: var(--text); text-align: right; }
.ticket-row .v.ok { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-bright); }
.ticket-row .v.ok svg { width: 15px; height: 15px; filter: drop-shadow(0 0 6px var(--glow)); }
.ticket-foot {
    display: flex; justify-content: space-between; align-items: center; padding: 17px 22px;
    background: linear-gradient(180deg, #2F72E4, #1548A8);
    color: #fff;
}
.ticket-foot .lbl { font-size: 0.82rem; font-weight: 500; opacity: 0.92; }
.ticket-foot .val { font-weight: 700; font-size: 1.05rem; }
.ticket-stamp {
    position: absolute; z-index: 2; right: -12px; bottom: 64px;
    width: 82px; height: 82px; border: 2px solid var(--blue); border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: rgba(10,18,32,0.92); transform: rotate(-12deg);
    line-height: 1; color: var(--blue-bright);
    box-shadow: 0 0 24px var(--glow), inset 0 0 16px rgba(59,140,255,0.22);
}
.ticket-stamp b { font-size: 1.2rem; }
.ticket-stamp span { font-size: 0.68rem; font-weight: 500; color: var(--text-soft); }

/* ================================================================
   LIGHT ZONE — เนื้อหาหลัก
   ================================================================ */
.light { background: var(--l-bg); color: var(--l-text); }
.light h1, .light h2, .light h3, .light h4 { color: var(--l-text); }
.light p { color: var(--l-soft); }
.light strong { color: var(--l-text); }
.light .kicker { color: var(--l-blue); }
.light .kicker::before { background: linear-gradient(90deg, var(--l-blue), transparent); }
.light .section { border: 0; }
.light .section + .section { border-top: 1px solid var(--l-line); }
.light .alt { background: var(--l-bg-2); }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-item { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--l-surface); border-radius: 12px; border: 1px solid var(--l-line); box-shadow: 0 4px 18px -8px rgba(15,40,90,0.14); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.g-item:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---- Services ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
    padding: 32px 28px 34px; border-radius: var(--radius);
    background: var(--l-surface); border: 1px solid var(--l-line);
    box-shadow: 0 6px 24px -12px rgba(15,40,90,0.12);
    position: relative; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.svc:hover { transform: translateY(-3px); border-color: rgba(27,95,214,0.35); box-shadow: 0 16px 36px -14px rgba(27,95,214,0.30); }
.svc-idx { font-family: var(--mono); font-size: 0.78rem; color: var(--l-blue); letter-spacing: 0.1em; margin-bottom: 22px; }
.svc-ico { width: 46px; height: 46px; color: var(--l-blue); margin-bottom: 18px; }
.svc-ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: 0.98rem; line-height: 1.7; }
.svc-price {
    margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--l-line-2);
    display: flex; align-items: baseline; gap: 8px;
}
.svc-price .from { font-size: 0.85rem; color: var(--l-dim); }
.svc-price .amt { font-family: var(--mono); font-size: 1.35rem; font-weight: 500; color: var(--l-blue); }
.svc-price .note { font-size: 0.85rem; color: var(--l-dim); }

.tags { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 32px; }
.tags li { display: flex; align-items: center; gap: 9px; font-size: 0.98rem; font-weight: 500; color: var(--l-soft); }
.tags svg { width: 17px; height: 17px; color: var(--l-blue); stroke-width: 2.4; }

/* ---- Price strip ---- */
.prices { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--l-line-2); background: var(--l-surface); box-shadow: 0 6px 24px -12px rgba(15,40,90,0.12); }
.prices-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.price {
    padding: 22px 22px 20px; border-right: 1px solid var(--l-line);
    display: flex; flex-direction: column; gap: 4px;
}
.price:last-child { border-right: 0; }
.price .p-name { font-weight: 600; font-size: 1rem; color: var(--l-text); }
.price .p-amt { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; color: var(--l-blue); line-height: 1.2; }
.price .p-amt .p-from { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; color: var(--l-dim); margin-right: 6px; }
.price .p-amt.p-amt-txt { font-family: var(--sans); font-weight: 700; font-size: 1.4rem; } /* ข้อความไทย ห้ามใช้ mono */
.price .p-sub { font-size: 0.85rem; color: var(--l-dim); }
.prices-note {
    padding: 14px 22px; border-top: 1px solid var(--l-line);
    background: var(--l-bg-2);
    font-size: 0.92rem; color: var(--l-soft);
    display: flex; align-items: center; gap: 9px;
}
.prices-note svg { width: 16px; height: 16px; color: var(--l-blue); stroke-width: 2.2; flex-shrink: 0; }
@media (max-width: 900px) { .prices-grid { grid-template-columns: 1fr 1fr; } .price { border-bottom: 1px solid var(--l-line); } .price:nth-child(even) { border-right: 0; } .price:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 480px) { .prices-grid { grid-template-columns: 1fr; } .price { border-right: 0 !important; border-bottom: 1px solid var(--l-line); } .price:last-child { border-bottom: 0; } }

/* ---- Process: 2 ทางเลือก + 4 ขั้น ---- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: clamp(36px, 5vw, 52px); }
.path {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px 24px; border-radius: var(--radius);
    background: var(--l-surface); border: 1px solid var(--l-line);
    box-shadow: 0 6px 24px -12px rgba(15,40,90,0.10);
}
.path-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(27,95,214,0.10); color: var(--l-blue); }
.path-ico svg { width: 22px; height: 22px; stroke-width: 1.8; }
.path h3 { font-size: 1.08rem; margin-bottom: 4px; }
.path p { font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 720px) { .paths { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: st; }
.step { counter-increment: st; padding: 30px 24px 8px 0; border-top: 2px solid var(--l-blue); margin-right: 22px; position: relative; }
.step::before {
    content: counter(st, decimal-leading-zero);
    font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--l-blue); letter-spacing: 0.06em;
    position: absolute; top: -2px; left: 0; background: var(--l-bg-2); padding-right: 12px; transform: translateY(-50%);
}
.section:not(.alt) .step::before { background: var(--l-bg); }
.step h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.step h3 a { color: var(--l-blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.step h3 a:hover { color: #1548A8; }
.step p { font-size: 0.94rem; line-height: 1.65; }

/* ---- Brands ---- */
.brands {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
    border: 1px solid var(--l-line-2); border-radius: var(--radius); overflow: hidden;
    background: var(--l-line-2);
}
.brand {
    aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
    padding: 18px; background: var(--l-surface);
    transition: background var(--t);
}
.brand:hover { background: #EDF3FE; }
.brand img {
    max-width: 86%; max-height: 24px; width: auto; height: auto; object-fit: contain;
    filter: brightness(0) invert(21%) sepia(14%) saturate(1400%) hue-rotate(185deg); /* น้ำเงินเทาเข้ม */
    opacity: 0.8; transition: opacity var(--t);
}
.brand:hover img { opacity: 1; }
.brand span { font-family: var(--mono); font-size: 1rem; font-weight: 500; color: var(--l-soft); transition: color var(--t); }
.brand:hover span { color: var(--l-text); }
@media (max-width: 900px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .brands { grid-template-columns: repeat(3, 1fr); } }

/* ---- Proof numbers ---- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--l-line-2); border-radius: var(--radius); overflow: hidden; background: var(--l-surface); box-shadow: 0 6px 24px -12px rgba(15,40,90,0.12); }
.proof div { padding: 20px 22px; border-right: 1px solid var(--l-line); }
.proof div:last-child { border-right: 0; }
.proof b { display: block; font-family: var(--mono); font-size: 1.8rem; font-weight: 500; line-height: 1.15; color: var(--l-blue); margin-bottom: 4px; }
.proof span { font-size: 0.9rem; color: var(--l-soft); }
@media (max-width: 560px) { .proof { grid-template-columns: 1fr; } .proof div { border-right: 0; border-bottom: 1px solid var(--l-line); } .proof div:last-child { border-bottom: 0; } }

/* ---- Review channels ---- */
.review-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.review-channels a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px; padding: 15px 18px;
    border: 1px solid var(--l-line-2); border-radius: 12px;
    font-size: 0.98rem; font-weight: 500; color: var(--l-text);
    background: var(--l-surface); transition: all var(--t);
}
.review-channels a:hover { border-color: var(--l-blue); background: #EDF3FE; transform: translateX(3px); }
.review-channels svg { width: 18px; height: 18px; color: var(--l-blue); flex-shrink: 0; }
@media (max-width: 640px) { .review-channels { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--l-line-2); }
.faq-item { border-bottom: 1px solid var(--l-line-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: baseline; gap: 18px; font-weight: 600; font-size: 1.08rem; color: var(--l-text); transition: color var(--t); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .qn { font-family: var(--mono); font-size: 0.82rem; color: var(--l-blue); flex-shrink: 0; min-width: 34px; }
.faq-item summary .qt { flex: 1; }
.faq-item summary .sign { flex-shrink: 0; width: 20px; height: 20px; position: relative; align-self: center; }
.faq-item summary .sign::before, .faq-item summary .sign::after { content: ""; position: absolute; background: var(--l-blue); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-item summary .sign::before { width: 14px; height: 2px; }
.faq-item summary .sign::after { width: 2px; height: 14px; transition: transform var(--t); }
.faq-item[open] summary .sign::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item summary:hover { color: var(--l-blue); }
.faq-body { padding: 0 0 24px 52px; color: var(--l-soft); line-height: 1.75; font-size: 1rem; max-width: 720px; }
@media (max-width: 560px) { .faq-body { padding-left: 0; } }

/* ---- CTA banner (การ์ดดาร์กในโซนสว่าง — สะท้อน hero) ---- */
.cta-banner {
    margin-top: clamp(36px, 5vw, 52px);
    border-radius: 18px; overflow: hidden; position: relative;
    background:
        radial-gradient(500px 300px at 12% 0%, rgba(46,124,246,0.30), transparent 60%),
        linear-gradient(165deg, #0E1930 0%, #060A14 100%);
    border: 1px solid var(--line-2);
    box-shadow: 0 24px 60px -24px rgba(10,25,60,0.55);
    padding: clamp(30px, 5vw, 48px);
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 8px; }
.cta-banner p { color: var(--text-soft); font-size: 1rem; max-width: 460px; }
.cta-banner .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Location ---- */
.map { position: relative; aspect-ratio: 16 / 9; max-height: 460px; width: 100%; border: 1px solid var(--l-line-2); border-radius: var(--radius); overflow: hidden; background: var(--l-surface); box-shadow: 0 10px 32px -16px rgba(15,40,90,0.25); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; transition: background var(--t); }
.map-placeholder:hover { background: rgba(27,95,214,0.05); }
.map-placeholder svg { width: 40px; height: 40px; color: var(--l-blue); stroke-width: 1.4; }
.map-placeholder span { font-size: 0.95rem; font-weight: 500; color: var(--l-soft); }
.loc-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.loc-info .kicker { margin-bottom: 18px; }
.loc-info h2 { margin-bottom: 22px; }
.loc-lines { display: flex; flex-direction: column; }
.loc-lines div { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--l-line-2); }
.loc-lines div:last-child { border-bottom: 1px solid var(--l-line-2); }
.loc-lines dt { font-size: 0.92rem; font-weight: 600; color: var(--l-soft); min-width: 74px; flex-shrink: 0; padding-top: 2px; }
.loc-lines dd { font-size: 1.02rem; color: var(--l-text); line-height: 1.6; overflow-wrap: anywhere; }
.loc-lines dd a { color: var(--l-blue); font-weight: 500; }
.loc-lines dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.light .btn-outline { color: var(--l-blue); border-color: rgba(27,95,214,0.4); background: var(--l-surface); }
.light .btn-outline:hover { color: #1548A8; border-color: var(--l-blue); background: #EDF3FE; }

/* ================================================================
   DARK ZONE — FOOTER
   ================================================================ */
.footer { background: linear-gradient(180deg, var(--bg-2), #04060C); color: var(--text); padding: clamp(52px, 7vw, 84px) 0 32px; border-top: 1px solid var(--line-2); position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; color: #fff; }
.footer p { color: var(--text-soft); font-size: 0.96rem; line-height: 1.7; max-width: 340px; }
.footer h4 { font-size: 0.88rem; font-weight: 600; color: var(--blue-bright); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 0.96rem; color: var(--text-soft); }
.footer-col a { transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 11px; color: var(--text); background: rgba(255,255,255,0.03); transition: all var(--t); }
.footer-social a:hover { background: linear-gradient(180deg, #2F72E4, #1548A8); color: #fff; border-color: transparent; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: 0.04em; }

/* ================================================================
   STICKY MOBILE CONTACT BAR — โทร | ทักแชท
   ================================================================ */
.mbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--l-line-2);
    box-shadow: 0 -8px 30px -12px rgba(15,40,90,0.25);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr 1fr; gap: 10px;
}
.mbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; border-radius: 12px;
    font-size: 1rem; font-weight: 700;
}
.mbar a svg { width: 19px; height: 19px; flex-shrink: 0; }
.mbar-call { color: var(--l-blue); border: 1.5px solid rgba(27,95,214,0.5); background: #fff; }
.mbar-chat { color: #fff; background: linear-gradient(180deg, #2F72E4 0%, #1B5FD6 55%, #1548A8 100%); box-shadow: 0 6px 18px -6px rgba(27,95,214,0.55); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 52px; }
    .hero-visual { max-width: 440px; }
    .loc-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .svc-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
    .step { margin-right: 0; }
}
@media (max-width: 768px) {
    .mbar { display: grid; }
    body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    /* nav ยุบเป็น hamburger ตั้งแต่ 768px — เมนูแนวนอน 7 รายการล้นที่ช่วง 561–750px */
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 66px; left: 0; right: 0;
        background: rgba(6,10,20,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        flex-direction: column; align-items: stretch; padding: 14px var(--gutter) 22px;
        border-bottom: 1px solid var(--line); gap: 2px;
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity var(--t), transform var(--t);
    }
    .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu a:not(.btn) { padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
    .nav-menu a:not(.btn)::after { display: none; }
    .nav-menu .btn { margin: 10px 0 0; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .cta-banner { flex-direction: column; align-items: flex-start; }
    .cta-banner .cta-actions { width: 100%; flex-direction: column; }
    .cta-banner .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
