/* SolveServe Group — company site. CI from solveserve.group: ink #14143c,
   purple #7828ff, lavender tints. Sarabun (roomy Thai marks). Flat surfaces,
   no gradients/glow. Runtime: /assets/sites/sites.js. */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

.sg-hero{--ink:#14143c;--brand2:#7828ff;--lav:#f0efff;
  font-family:'Sarabun',system-ui,sans-serif;background:var(--ink);color:#eef0fb;
  min-height:88vh;display:flex;align-items:center;position:relative;overflow:hidden;padding:96px 0 80px}
.sg-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0;opacity:.28}
.sg-hero::after{content:"";position:absolute;inset:0;background:rgba(20,20,60,.55);z-index:1}
.sg-hero .container{position:relative;z-index:2;max-width:1120px;margin:0 auto;padding:0 24px;width:100%}
.sg-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.12em;color:#b89aff}
.sg-hl{font-size:clamp(2.5rem,6.2vw,4.8rem);font-weight:700;letter-spacing:-.015em;line-height:1.2;margin:22px 0 26px;color:#fff}
.sg-line{display:block;overflow:hidden;padding:.28em 0 .45em;margin:-.28em 0 -.45em}
.sg-line-in{display:inline-block;color:inherit;transition:color .35s ease}
.sg-line:nth-child(2) .sg-line-in{color:#a06bff}
.sg-hl:hover .sg-line:nth-child(1) .sg-line-in{color:#a06bff}
.sg-hl:hover .sg-line:nth-child(2) .sg-line-in{color:#fff}
body.motion .sg-line-in{translate:0 118%}
body.motion .sg-line-in.in{translate:0 0}
.sg-hero-copy>p{max-width:56ch;font-size:1.08rem;line-height:1.7;color:#c9cdf0}
.sg-hero-ctas{display:flex;gap:12px;margin-top:34px;flex-wrap:wrap}
a.sg-btn-primary{background:#7828ff;color:#fff;font-weight:600;padding:13px 26px;border-radius:6px}
a.sg-btn-primary:hover{background:#6520e0}
a.sg-btn-ghost{border:1px solid #55559a;color:#dcd9f7;font-weight:600;padding:12px 25px;border-radius:6px}
a.sg-btn-ghost:hover{border-color:#a06bff;color:#fff}

/* section rhythm */
.sg-services,.sg-products,.sg-why,.sg-process,.sg-cases,.sg-blog,.sg-contact{font-family:'Sarabun',system-ui,sans-serif}
.sg-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:30px}
.sg-sec-head h2{font-size:clamp(1.6rem,3vw,2.1rem);font-weight:700;letter-spacing:-.015em;color:#14143c}
.sg-sec-link{color:var(--brand-deep,#6520e0);font-weight:600;font-size:.92rem}

/* services */
.sg-services{padding:80px 0;background:var(--lav)}
.sg-svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.sg-svc{background:#fff;border:1px solid #e4e1f5;border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:10px}
.sg-svc img{width:56px;height:56px;object-fit:contain}
.sg-svc h3{font-size:1.02rem;font-weight:700;color:#14143c;margin:0}
.sg-svc p{color:#5a5a74;font-size:.92rem;line-height:1.6;margin:0}

/* products */
.sg-products{padding:80px 0}
.sg-prod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.sg-prod{display:flex;flex-direction:column;background:#fff;border:1px solid #e4e1f5;border-radius:14px;overflow:hidden;color:inherit;text-decoration:none;transition:translate .2s ease,box-shadow .2s ease}
.sg-prod:hover{translate:0 -4px;box-shadow:0 14px 34px rgba(20,20,60,.1)}
.sg-prod-flag{grid-column:1 / -1;flex-direction:row;align-items:stretch;background:var(--ink);border-color:var(--ink)}
.sg-prod-img{display:block;background:#f4f2fd}
.sg-prod-flag .sg-prod-img{flex:0 0 42%;order:2}
.sg-prod-img img{width:100%;height:100%;object-fit:cover;display:block}
.sg-prod-body{padding:22px 24px;display:flex;flex-direction:column;gap:7px}
.sg-prod-flag .sg-prod-body{color:#e9ebf4;justify-content:center}
.sg-prod-name{font-size:1.2rem;font-weight:700;color:#14143c}
.sg-prod-flag .sg-prod-name{color:#fff}
.sg-prod-tag{font-weight:600;color:var(--brand-deep,#6520e0);font-size:.9rem}
.sg-prod-flag .sg-prod-tag{color:#b89aff}
.sg-prod-text{color:#5a5a74;font-size:.94rem;line-height:1.6}
.sg-prod-flag .sg-prod-text{color:#c9cdf0}
.sg-prod-chip{align-self:flex-start;font-size:.64rem;font-weight:700;letter-spacing:.12em;color:#14143f;background:#b89aff;border-radius:4px;padding:4px 9px;margin-top:6px}

/* why */
.sg-why{padding:80px 0;background:var(--lav)}
.sg-why-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid #ddd8f0}
.sg-why-item{padding:20px 26px 20px 0;border-bottom:1px solid #ddd8f0}
.sg-why-item:nth-child(odd){border-right:1px solid #ddd8f0;padding-left:0}
.sg-why-item:nth-child(even){padding-left:26px}
.sg-why-item h3{font-size:1.02rem;font-weight:700;color:#14143c;margin:0 0 6px}
.sg-why-item p{color:#5a5a74;font-size:.92rem;line-height:1.6;margin:0}

/* process */
.sg-process{padding:80px 0}
.sg-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.sg-steps li{border-top:3px solid #7828ff;padding-top:14px}
.sg-steps img{width:42px;height:42px;object-fit:contain;margin-bottom:8px}
.sg-steps h3{font-size:.98rem;font-weight:700;color:#14143c;margin:0 0 5px}
.sg-steps p{color:#5a5a74;font-size:.86rem;line-height:1.55;margin:0}

/* cases */
.sg-cases{padding:80px 0;background:var(--lav)}
.sg-case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.sg-case{background:#fff;border:1px solid #e4e1f5;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.sg-case img{aspect-ratio:16/10;object-fit:cover;width:100%}
.sg-case-body{padding:18px 20px;display:flex;flex-direction:column;gap:5px}
.sg-case-industry{font-size:.72rem;font-weight:700;letter-spacing:.08em;color:var(--brand-deep,#6520e0)}
.sg-case h3{font-size:1.04rem;font-weight:700;color:#14143c;margin:0}
.sg-case p{color:#5a5a74;font-size:.9rem;line-height:1.55;margin:0}

/* blog */
.sg-blog{padding:80px 0}
.sg-blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.sg-post{display:flex;flex-direction:column;gap:7px;background:#fff;border:1px solid #e4e1f5;border-radius:12px;padding:16px;color:inherit;text-decoration:none}
.sg-post img{aspect-ratio:16/9;object-fit:cover;width:100%;border-radius:8px}
.sg-post-date{font-size:.78rem;font-weight:600;color:var(--brand-deep,#6520e0)}
.sg-post strong{font-size:1rem;color:#14143c;line-height:1.45}
.sg-post-excerpt{color:#5a5a74;font-size:.88rem}

/* contact + forms */
.sg-contact{padding:84px 0;background:var(--ink);color:#e9ebf4}
.sg-contact .sg-sec-head h2{color:#fff}
.sg-contact-sub{color:#c9cdf0;max-width:64ch;margin:-14px 0 26px;line-height:1.65}
.sg-flash{border-radius:8px;padding:13px 18px;font-weight:600;margin-bottom:22px}
.sg-flash-ok{background:rgba(120,40,255,.16);border:1px solid #7828ff;color:#d9c8ff}
.sg-flash-err{background:rgba(224,60,60,.14);border:1px solid #e05a5a;color:#ffc9c9}
.sg-forms{display:grid;grid-template-columns:1fr 1.25fr;gap:20px;align-items:start}
.sg-form{background:#1c1c4a;border:1px solid #34347a;border-radius:14px;padding:26px 28px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.sg-form h3{grid-column:1 / -1;font-size:1.15rem;font-weight:700;color:#fff;margin:0}
.sg-form-note{grid-column:1 / -1;color:#a3a5d6;font-size:.88rem;margin:-8px 0 4px;line-height:1.5}
.sg-form .sg-form-send{grid-column:1 / -1;justify-self:start;border:0;cursor:pointer;font-family:inherit}
.sg-field{display:flex;flex-direction:column;gap:6px}
.sg-field span{font-size:.82rem;font-weight:600;color:#c9cdf0}
.sg-field span em{font-style:normal;color:#ff9d9d}
.sg-field.sg-field-full{grid-column:1 / -1}
.sg-form .input{background:#14143c;border:1px solid #34347a;color:#fff;border-radius:7px;padding:11px 13px;font-family:inherit;font-size:.95rem}
.sg-form .input:focus{outline:2px solid #7828ff;outline-offset:1px}
.sg-form .input::placeholder{color:#7779ad}
select.sg-form .input{appearance:auto}
.sg-hp{position:absolute;left:-4000px;top:-4000px;opacity:0;height:0;width:0}
.sg-contact-info{display:flex;gap:26px;flex-wrap:wrap;margin-top:26px;color:#c9cdf0;font-size:.95rem}

/* motion — reuse the platform's masked-line choreography */
@media(max-width:920px){
  .sg-hero{min-height:0;padding:72px 0 56px}
  .sg-svc-grid,.sg-case-grid,.sg-blog-grid{grid-template-columns:1fr 1fr}
  .sg-steps{grid-template-columns:repeat(2,1fr)}
  .sg-why-grid{grid-template-columns:1fr}
  .sg-why-item:nth-child(odd){border-right:0;padding-left:0}
  .sg-why-item:nth-child(even){padding-left:0}
  .sg-prod-grid{grid-template-columns:1fr}
  .sg-prod-flag{flex-direction:column}
  .sg-prod-flag .sg-prod-img{order:0;flex:none}
  .sg-forms{grid-template-columns:1fr}
}
@media(max-width:640px){
  .sg-svc-grid,.sg-case-grid,.sg-blog-grid{grid-template-columns:1fr}
  .sg-steps{grid-template-columns:1fr}
  .sg-form{grid-template-columns:1fr;padding:20px}
}

/* button + reveal scoping (sections live directly under <main>) */
button.sg-btn-primary.sg-form-send, a.sg-btn-primary { background:#7828ff;color:#fff;font-weight:600;padding:13px 26px;border-radius:6px; }
button.sg-btn-primary.sg-form-send:hover, a.sg-btn-primary:hover { background:#6520e0; }
