/* ProgrammerThai — site styles (plain CSS) */
@font-face{font-family:'IBM Plex Sans Thai';font-weight:400;font-display:swap;src:url('../fonts/IBMPlexSansThai-Regular.woff') format('woff')}
@font-face{font-family:'IBM Plex Sans Thai';font-weight:500;font-display:swap;src:url('../fonts/IBMPlexSansThai-Medium.woff') format('woff')}
@font-face{font-family:'IBM Plex Sans Thai';font-weight:600;font-display:swap;src:url('../fonts/IBMPlexSansThai-SemiBold.woff') format('woff')}
@font-face{font-family:'IBM Plex Sans Thai';font-weight:700;font-display:swap;src:url('../fonts/IBMPlexSansThai-Bold.woff') format('woff')}

:root{
  --green:#2F9E44;--green-dark:#1B7F3B;--green-soft:#E6F4EA;--green-light:#69DB7C;
  --ink:#263238;--ink-2:#455A64;--muted:#546E7A;--line:#ECEFF1;--line-2:#CFD8DC;--soft:#F5F7FA;
  --radius:12px;--shadow:0 20px 50px rgba(38,50,56,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
[id]{scroll-margin-top:84px}
body{margin:0;font-family:'IBM Plex Sans Thai',system-ui,sans-serif;color:var(--ink);background:#fff;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--green)}a:hover{color:var(--green-dark)}
h1,h2,h3{line-height:1.3;margin:0}
p{margin:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.section{padding:88px 0}
.section-sm{padding:64px 0}
.bg-soft{background:var(--soft)}
.center{text-align:center}
.muted{color:var(--muted)}
.h1{font-size:52px;font-weight:700;letter-spacing:-.5px;line-height:1.2}
.h2{font-size:36px;font-weight:700}
.h3{font-size:28px;font-weight:700}
.accent{color:var(--green)}
.lead{font-size:19px;color:var(--muted)}
.sec-head{display:flex;flex-direction:column;gap:8px;margin-bottom:40px}
.sec-head.center{align-items:center}
.sec-head p{max-width:640px;color:var(--muted)}
.sec-head.row{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:#fff;padding:8px 12px;z-index:99}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 26px;border-radius:8px;font-weight:600;text-decoration:none;border:1.5px solid transparent;font-family:inherit;font-size:16px;cursor:pointer;transition:background .15s,border-color .15s}
.btn-green{background:var(--green);color:#fff}.btn-green:hover{background:var(--green-dark);color:#fff}
.btn-alt{background:#fff;color:var(--ink);border-color:var(--line-2)}.btn-alt:hover{border-color:var(--green);color:var(--green-dark)}
.btn-white{background:#fff;color:var(--green-dark)}.btn-white:hover{color:var(--green-dark);background:#F1F8F2}
.btn-ghost{color:#fff;border-color:#fff}.btn-ghost:hover{color:#fff;background:rgba(255,255,255,.12)}
.btn-sm{min-height:44px;padding:0 20px;font-size:15px}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}
.link-arrow{font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-height:44px}

/* header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px 28px;padding-top:14px;padding-bottom:14px}
.logo{display:flex;align-items:center;min-height:44px}.logo img{height:38px;width:auto;display:block}
.nav{display:flex;flex-wrap:wrap;gap:4px 24px;font-size:15px;font-weight:500}
.nav a{color:var(--ink);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.nav a:hover{color:var(--green)}
.nav-toggle{display:none;background:none;border:1px solid var(--line-2);border-radius:8px;width:44px;height:44px;align-items:center;justify-content:center;color:var(--ink);cursor:pointer}
@media (max-width:980px){
  .nav-toggle{display:inline-flex}
  .header-cta{display:none}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;padding:8px 24px 16px;gap:0}
  .nav.open{display:flex}
}

/* hero */
.hero{background:var(--soft)}
.hero .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:48px;padding-top:72px;padding-bottom:72px}
.hero-text{flex:1 1 480px;min-width:0;display:flex;flex-direction:column;gap:20px}
.hero-art{flex:1 1 420px;min-width:0}
.badge{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;background:var(--green-soft);color:var(--green-dark);font-size:14px;font-weight:600;padding:6px 14px;border-radius:999px}
.ticks{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:15px;color:var(--muted)}
.ticks span{display:inline-flex;align-items:center;gap:6px}
.price-line{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.price-line strong{font-size:34px}
.breadcrumb{font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-top:20px}
.breadcrumb a{text-decoration:none}
.hero-crumb .wrap{padding-top:0}
.hero-crumb .hero-inner{display:flex;flex-wrap:wrap;align-items:center;gap:48px;padding:36px 0 72px}

/* drawn hero visual */
.mock{position:relative;min-height:380px}
.mock-browser{position:absolute;left:0;top:10px;right:60px;background:#fff;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.mock-bar{display:flex;align-items:center;gap:6px;padding:12px 16px;border-bottom:1px solid var(--line)}
.mock-bar i{width:10px;height:10px;border-radius:5px;background:var(--line-2)}.mock-bar i:first-child{background:var(--green)}
.mock-bar b{margin-left:12px;flex:1;height:22px;border-radius:6px;background:var(--soft)}
.mock-body{padding:22px;display:flex;flex-direction:column;gap:14px}
.mock-hero{height:120px;border-radius:10px;background:var(--green-soft);display:flex;align-items:center;padding:20px;gap:16px}
.mock-lines{flex:1;display:flex;flex-direction:column;gap:8px}
.bar{display:block;height:10px;border-radius:4px;background:var(--line)}
.mock-phone{position:absolute;right:0;bottom:0;width:150px;height:280px;background:var(--ink);border-radius:22px;padding:10px;box-shadow:0 20px 40px rgba(38,50,56,.25)}
.mock-phone div{width:100%;height:100%;background:#fff;border-radius:14px;padding:14px 10px;display:flex;flex-direction:column;gap:8px}
.mock-chip{position:absolute;left:-12px;bottom:30px;background:#fff;border-radius:12px;padding:12px 16px;box-shadow:0 10px 30px rgba(38,50,56,.12);display:flex;align-items:center;gap:10px;line-height:1.3}
.mock-chip small{display:block;font-size:13px;color:var(--muted)}
@media (max-width:600px){.mock{min-height:320px}.mock-phone{width:120px;height:230px}.mock-chip{left:0}}

/* cards */
.cards{display:flex;flex-wrap:wrap;gap:24px}
.card{flex:1 1 240px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:12px;box-shadow:0 4px 16px rgba(38,50,56,.05)}
.card h3{font-size:20px;font-weight:600}
.card p{color:var(--muted);font-size:15px}
.icon-box{flex:none;width:52px;height:52px;border-radius:12px;background:var(--green-soft);display:flex;align-items:center;justify-content:center;color:var(--green)}
.icon-box.sm{width:36px;height:36px;border-radius:10px}
.row-card{display:flex;gap:16px;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;background:#fff}
.row-card h3{font-size:18px;font-weight:600}.row-card p{color:var(--muted);font-size:15px;margin-top:2px}
.split{display:flex;flex-wrap:wrap;gap:48px 56px;align-items:center}
.split>*{flex:1 1 440px;min-width:0}
.stack{display:flex;flex-direction:column;gap:14px}
.check-item{display:flex;gap:12px;align-items:flex-start}
.check-dot{flex:none;width:26px;height:26px;border-radius:13px;background:var(--green);display:flex;align-items:center;justify-content:center;margin-top:2px;color:#fff}
.check-item b{display:block;font-weight:600}
.check-item span{color:var(--muted);font-size:15px}
.panel{background:#fff;border-radius:16px;padding:28px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px}

/* clients */
.clients{border-bottom:1px solid var(--line)}
.clients .wrap{padding-top:40px;padding-bottom:40px;display:flex;flex-direction:column;align-items:center;gap:20px}
.logo-row{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 32px;align-items:center}
.logo-row img{height:44px;width:auto;filter:grayscale(1);opacity:.7}

/* stats */
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.stat{display:flex;gap:14px;align-items:center;line-height:1.3}
.stat strong{display:block;font-size:28px}
.stat span{color:var(--muted);font-size:15px}

/* pricing */
.pkgs{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
.pkg{flex:1 1 340px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px 28px;display:flex;flex-direction:column;gap:18px}
.pkg.featured{border:2px solid var(--green);box-shadow:0 20px 50px rgba(47,158,68,.15)}
.pkg-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pkg-name{font-size:15px;font-weight:700;letter-spacing:1px;color:var(--green-dark)}
.pkg-pop{font-size:13px;font-weight:600;background:var(--green);color:#fff;padding:4px 12px;border-radius:999px}
.pkg-sub{color:var(--muted);font-size:15px;margin-top:-10px}
.pkg-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:15px}
.pkg-price strong{font-size:32px;line-height:1.15;color:var(--ink)}
.pkg hr{border:0;height:1px;background:var(--line);margin:0}
.ticklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;flex:1}
.ticklist li{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.ticklist svg{flex:none;margin-top:3px}
.care{flex:1 1 300px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px 24px;display:flex;flex-direction:column;gap:14px}
.care h3{font-size:19px;font-weight:600}.care small{display:block;color:var(--muted);font-size:14px}
.care .amt strong{font-size:26px}.care .amt span{color:var(--muted);font-size:14px}
.note-bar{display:flex;flex-wrap:wrap;gap:12px 32px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 24px;font-size:15px;color:var(--ink-2);margin-top:24px}

.calc-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px dashed var(--line-2);border-radius:14px;padding:20px 24px;margin-top:16px}
.calc-cta b{display:block;font-size:17px}.calc-cta span{color:var(--muted);font-size:15px}

/* portfolio */
.works{display:flex;flex-wrap:wrap;gap:24px}
.work{flex:1 1 320px;min-width:0;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;background:#fff}
.work:hover{color:var(--ink);border-color:var(--line-2)}
.work-img{height:200px;border-bottom:1px solid var(--line);overflow:hidden;background:var(--soft)}
.work-img img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.work-body{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.work-body b{display:block;font-weight:600}.work-body span{font-size:14px;color:var(--muted)}
.tagpill{font-size:13px;padding:4px 10px;border-radius:999px;white-space:nowrap;background:var(--soft);color:var(--muted)}
.tagpill.on{background:var(--green-soft);color:var(--green-dark)}
.shot{height:100%;padding:18px 22px 0;display:flex;align-items:flex-end}
.shot-win{width:100%;height:100%;background:#fff;border-radius:10px 10px 0 0;box-shadow:0 8px 24px rgba(38,50,56,.12);overflow:hidden;display:flex;flex-direction:column}
.shot-bar{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid var(--line)}
.shot-bar i{width:8px;height:8px;border-radius:4px}.shot-bar b{width:44px;height:6px;border-radius:3px;background:var(--line-2)}
.shot-bar em{width:24px;height:6px;border-radius:3px;background:var(--line)}.shot-bar em:first-of-type{margin-left:auto}
.shot-main{flex:1;display:flex;gap:10px;padding:12px}
.shot-hero{flex:1.4;border-radius:6px;padding:14px;display:flex;flex-direction:column;gap:7px;justify-content:center}
.shot-hero span{display:block;height:9px;width:78%;border-radius:4px;background:rgba(255,255,255,.92)}
.shot-hero span+span{height:6px;width:58%;background:rgba(255,255,255,.6)}
.shot-hero em{margin-top:4px;height:16px;width:48px;border-radius:4px;background:#fff}
.shot-side{flex:1;display:flex;flex-direction:column;gap:8px}.shot-side span{flex:1;border-radius:6px}

/* steps & reviews */
.steps{display:flex;flex-wrap:wrap;gap:20px}
.step{flex:1 1 190px;min-width:0;background:#fff;border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:8px}
.step b{font-size:32px;font-weight:700;color:var(--green);line-height:1}
.step h3{font-size:18px;font-weight:600}.step p{color:var(--muted);font-size:15px}
.reviews{display:flex;flex-wrap:wrap;gap:24px}
.review{margin:0;flex:1 1 300px;min-width:0;border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:16px;background:#fff}
.review blockquote{margin:0;color:var(--ink-2)}
.review figcaption{line-height:1.4}.review figcaption span{display:block;font-size:14px;color:var(--muted)}

/* chips & districts */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--line-2);border-radius:999px;color:var(--ink);text-decoration:none;font-size:15px;background:#fff}
.chip:hover{border-color:var(--green);color:var(--green-dark)}
.districts{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px 20px;margin-top:8px}
.districts div{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--ink-2)}

/* faq */
.faq{max-width:880px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq details{border:1px solid var(--line);border-radius:12px;padding:4px 22px;background:#fff}
.faq details[open]{background:var(--soft)}
.faq summary{font-weight:600;font-size:17px;padding:14px 0;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';color:var(--green);font-size:22px;line-height:1}
.faq details[open] summary::after{content:'−'}
.faq p{margin:0 0 18px;color:var(--ink-2)}

/* CTA */
.cta{padding:0 24px 88px}
.cta-box{max-width:1200px;margin:0 auto;background:var(--green);border-radius:20px;padding:56px 48px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:32px;color:#fff}
.cta-box>div:first-child{flex:1 1 420px;min-width:0}
.cta-box h2{font-size:34px}.cta-box p{margin-top:10px;font-size:17px;color:#E8F5E9}
@media (max-width:600px){.cta-box{padding:40px 24px}}

/* lead form */
.form-card{background:#fff;border-radius:16px;padding:28px;box-shadow:var(--shadow)}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;font-weight:500}
.field input,.field select,.field textarea{font:inherit;padding:12px 14px;border:1px solid var(--line-2);border-radius:8px;min-height:48px;background:#fff;color:var(--ink)}
.field textarea{min-height:110px}
.fields2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
@media (max-width:600px){.fields2{grid-template-columns:1fr}}
.alert{padding:12px 16px;border-radius:8px;margin-bottom:14px}.alert.ok{background:var(--green-soft);color:var(--green-dark)}.alert.bad{background:#FDECEA;color:#B71C1C}
.hp{position:absolute;left:-9999px}

/* calculator */
.calc-opt{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:14px 16px;cursor:pointer;background:#fff;margin-bottom:10px}
.calc-opt:has(input:checked){border-color:var(--green);background:#F1F8F2}
.calc-opt input{margin-top:5px;width:18px;height:18px;accent-color:var(--green)}
.calc-opt b{display:block}.calc-opt span{color:var(--muted);font-size:14px}
.calc-sum{position:sticky;top:96px}
.calc-sum ul{list-style:none;padding:0;margin:0 0 16px;display:flex;flex-direction:column;gap:8px}
.calc-sum li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed var(--line);padding-bottom:8px}

/* footer */
.site-footer{background:var(--ink);color:#CFD8DC;font-size:15px}
.site-footer .wrap{padding-top:64px;padding-bottom:28px;display:flex;flex-direction:column;gap:44px}
.site-footer a{color:#CFD8DC;text-decoration:none}.site-footer a:hover{color:#fff}
.f-cols{display:flex;flex-wrap:wrap;gap:40px}
.f-col{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:8px}
.f-col.wide{flex:1 1 300px;gap:14px}
.f-col .f-title{color:#fff;font-weight:600;font-size:16px;margin-bottom:4px}
.f-col p{color:#B0BEC5}
.f-logo{height:38px;width:auto;align-self:flex-start}
.f-block{display:flex;flex-direction:column;gap:14px}
.f-block .f-title{color:#fff;font-weight:600;font-size:16px}
.f-inline{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px}
.f-inline a{color:#B0BEC5}
.f-regions{display:flex;flex-wrap:wrap;gap:28px 32px;border-top:1px solid #37474F;padding-top:32px}
.f-region{flex:1 1 160px;min-width:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.f-region .f-rt{color:var(--green-light);font-weight:600}
.f-region a{color:#B0BEC5}
.f-bottom{border-top:1px solid #37474F;padding-top:20px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:13px;color:#B0BEC5}

/* floating */
.float-line{position:fixed;right:18px;bottom:18px;z-index:60;display:inline-flex;align-items:center;gap:8px;background:var(--green);color:#fff;border-radius:999px;padding:0 20px;min-height:52px;font-weight:600;text-decoration:none;box-shadow:0 10px 30px rgba(47,158,68,.35)}
.float-line:hover{color:#fff;background:var(--green-dark)}
.float-edit{position:fixed;left:18px;bottom:18px;z-index:60;display:inline-flex;align-items:center;gap:8px;background:var(--ink);color:#fff;border-radius:999px;padding:0 18px;min-height:44px;font-size:14px;font-weight:600;text-decoration:none}
.float-edit:hover{color:#fff}

@media (max-width:760px){
  .h1{font-size:36px}.h2{font-size:28px}.h3{font-size:24px}.cta-box h2{font-size:26px}
  .section{padding:64px 0}
  .stats{grid-template-columns:1fr}
}
