/* ============================================================
   ชุดสี JSR — โหลดเป็นไฟล์สุดท้ายในทุกหน้า
   กรมท่า #142A4E · กรมท่าเข้ม (ท้ายเว็บ/หัวเว็บ) #0B1426
   ทอง #B08A4F · ทองเข้ม #8A6A35 (บนพื้นขาว) · ทองอ่อน #D2B37E (บนพื้นกรมท่า)
   พื้นหลัง ขาว / ฟ้าอ่อน #EEF2F8 · ตัวหนังสือ #0F1B38 / #475164
   ============================================================ */
:root{--navy:#142A4E;--deep:#0B1426;--gold:#B08A4F;--gold-dark:#8A6A35;--gold-light:#D2B37E;--paper:#fff;--soft:#EEF2F8;--ink:#0F1B38;--muted:#475164;--line:#dfe5ee}
body{color:var(--ink)}
.gold,.label.gold{color:var(--gold-dark)}
::selection{background:#ead9b8;color:var(--ink)}

/* ปุ่มหลัก: ทอง + ตัวหนังสือกรมท่า */
.btn-gold,.hero-actions .line-link,.cta-band .nav-contact,.project-facts .nav-contact,.empty-state .nav-contact,.contact-circle,.service-dialog .nav-contact{background:var(--gold)!important;color:var(--navy)!important;border:0}
.hero-actions .line-link:hover,.cta-band .nav-contact:hover,.project-facts .nav-contact:hover,.empty-state .nav-contact:hover{background:#c09b5f!important}
/* ปุ่มส่งฟอร์ม: กรมท่า */
.original-contact-grid form button{background:var(--navy)!important;color:#fff!important}
.original-contact-grid form button:hover{background:#1d3a68!important}

/* หัวเว็บ: กรมท่าเข้ม ตัวหนังสือขาว */
header{background:var(--deep);border-bottom:1px solid #ffffff1a}
header .wordmark{color:#fff}header .wordmark small{color:#d9e0ea}
.navlinks>a{color:#fff}
.navlinks>a:hover,.navlinks>a[aria-current="page"]{color:var(--gold-light)}
.navlinks>.nav-contact,header .nav-contact{background:transparent;color:#fff;border:1px solid #ffffff80}
.navlinks>.nav-contact:hover{background:#ffffff14;color:#fff;border-color:#fff}
.menu-toggle{color:#fff}
@media(max-width:760px){.navlinks{background:var(--deep);border-top:1px solid #ffffff1a}}
a:focus-visible,button:focus-visible,summary:focus-visible{outline-color:var(--gold-light)}

/* หน้าแรก — วิดีโอ */
.hero .label{color:var(--gold-light)}.hero .label:before{background:var(--gold-light)}
.hero h1{color:#fff}.hero-description{color:#e6ebf2}
.explore{color:#fff;border-bottom:1px solid #ffffff80;padding-bottom:6px}

/* หัวข้อเล็กบนพื้นขาว = ทองเข้ม */
.label,.solution-number,.section-heading .label,.contact-head .label,.intro-top>.label,.advantages-grid span,.wheel-copy .solution-number,.wheel-detail-number,.project-details,.page-hero .label{color:var(--gold-dark)}
/* ตัวเลขสำคัญ = กรมท่า */
.stat strong,.experience .stat strong,.experience .stat strong b{color:var(--navy)}
.stat p,.solutions-header>p,.portfolio-intro,.news-item p,.original-contact-grid p,.wheel-lead,.wheel-detail p,.project-info .label{color:var(--muted)}

/* พื้นหลังสลับ ขาว / ฟ้าอ่อน */
.experience{background:#fff}.solutions{background:#fff}
.work{background:#fff}
.original-contact{background:#fff}
.news-section{background:#fff}

/* วงล้อ — โทนกรมท่าเข้มทั้งส่วน ตามภาพอ้างอิง */
section.wheel-section{background:radial-gradient(120% 90% at 85% 35%,#1d3157 0,#13234a 38%,#0B1426 100%);color:#fff}
section.wheel-section:before{display:none}
.wheel-section .wheel-copy .solution-number{color:var(--gold-light);font-size:12.48px;letter-spacing:2px}
.wheel-section .wheel-copy h2{color:#fff}
.wheel-section .wheel-lead{color:#d3dbe7}
.wheel-section .wheel-detail{border-top:1px solid #ffffff2e}
.wheel-section .wheel-detail-number{color:var(--gold-light);letter-spacing:1.5px}
.wheel-section .wheel-detail h3{color:#fff}
.wheel-section .wheel-detail p{color:#c9d3e0}
.wheel-section .wheel-arrows button{background:transparent;border:1px solid #ffffff59;color:#fff;border-radius:50%}
.wheel-section .wheel-arrows button:hover{background:var(--gold-light);border-color:var(--gold-light);color:var(--deep)}
.wheel-section #wheel-auto{color:var(--gold-light)}
.wheel-section .wheel-art{background:#172a4d;border-radius:50%;box-shadow:0 0 0 1px #ffffff1f,0 0 0 14px #ffffff05,0 30px 70px #00000059}
.wheel-section .wheel-sector,.wheel-section .wheel-sector:nth-child(even){fill:#34507a;stroke:none}
.wheel-section .wheel-sector.selected{fill:var(--gold-light)}
.wheel-section .wheel-item{color:#dbe3ee}
.wheel-section .wheel-item.selected{color:var(--gold-light)}
.wheel-section .wheel-icon{background:#ffffff08;border:1px solid #ffffff33;border-radius:14px;color:#fff}
.wheel-section .wheel-item.selected .wheel-icon{background:var(--gold-light);border-color:var(--gold-light);color:var(--deep)}
.wheel-section .wheel-center{background:#14254a;border:1px solid #ffffff26;box-shadow:none}
.wheel-section .wheel-center img{width:72%;height:72%}
.wheel-section .wheel-pointer{border-top-color:var(--gold-light)}
.wheel-section .wheel-hint{color:#c9d3e0}
.wheel-section a:focus-visible,.wheel-section button:focus-visible{outline-color:var(--gold-light)}

/* "ทำไมต้อง JSR" — พื้นกรมท่า */
.advantages{background:var(--navy);color:#fff}
.advantages h2,.advantages h3{color:#fff}
.advantages-grid>div{border-top-color:#ffffff26}
.advantages-grid span{color:var(--gold-light)}

/* ฟอร์มติดต่อ */
.original-contact-grid input,.original-contact-grid textarea{background:var(--soft);border-color:#cfd8e4;color:var(--ink)}

/* ท้ายเว็บ */
footer{background:var(--deep)}
.footer-grid .label{color:var(--gold-light)}
.footer-grid h3{color:#fff}

/* หน้าย่อย */
.page-hero{background:var(--soft)}
.cta-band{background:var(--navy)}
.cta-band h2{color:#fff}
.project-go{color:var(--navy)}
.crumbs a:hover{color:var(--gold-dark)}

/* ที่อยู่บริษัท */
a.addr{line-height:1.75;max-width:34ch}
a.addr:hover{text-decoration:underline}

/* หัวข้อบนวิดีโอหน้าแรก: แต่ละวลีอยู่บรรทัดของตัวเอง ไม่ให้คำตก */
.hero h1>span{display:block}
@media(min-width:600px){.hero h1>span{white-space:nowrap}}

/* รูปการ์ดผลงานและข่าว: สี่เหลี่ยมจัตุรัส 1:1 */
.project .project-image img,.news-item img{aspect-ratio:1/1!important;width:100%;height:auto;object-fit:cover}

/* ============================================================
   การ์ดบริการหน้าแรก — สไตล์การ์ดสูงมุมมน (แบบ Apple) ในสีของบริษัท
   ============================================================ */
section.solutions .solution-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;counter-reset:svc}
section.solutions .solution-card{counter-increment:svc;--bg:#EEF2F8;--band:#C9D6E8;--ink:#142A4E;--eyebrow:#8A6A35}
section.solutions .solution-card:nth-child(2){--bg:#F3EADB;--band:#D2B37E;--ink:#142A4E;--eyebrow:#8A6A35}
section.solutions .solution-card:nth-child(3){--bg:#1D3A68;--band:#142A4E;--ink:#fff;--eyebrow:#D2B37E}
section.solutions .solution-card:nth-child(4){--bg:#142A4E;--band:#0B1426;--ink:#fff;--eyebrow:#D2B37E}
section.solutions .service-open{position:relative;display:flex;flex-direction:column;height:100%;min-height:470px;border-radius:26px;overflow:hidden;isolation:isolate;
  background:linear-gradient(180deg,var(--bg) 0,var(--bg) 62%,var(--band) 62%,var(--band) 100%);color:var(--ink);text-decoration:none;
  transition:transform .5s cubic-bezier(.16,1,.3,1),box-shadow .5s cubic-bezier(.16,1,.3,1)}
section.solutions .service-open:hover{transform:translateY(-6px);box-shadow:0 22px 45px rgba(20,42,78,.18)}
section.solutions .service-open:focus-visible{outline:3px solid #B08A4F;outline-offset:4px}
section.solutions .service-open:before{content:counter(svc,decimal-leading-zero);order:0;padding:30px 28px 0;font-size:13px;font-weight:600;letter-spacing:.5px;color:var(--eyebrow)}
section.solutions .solution-card h3{order:1;margin:10px 0 0;padding:0 28px;min-height:0;font-size:24px;font-weight:600;line-height:1.35;letter-spacing:-.3px;color:var(--ink)}
section.solutions .solution-photo{order:2;margin:auto 0 0 auto;width:86%;aspect-ratio:auto;height:250px;border-radius:18px 0 0 0;background:var(--band);box-shadow:-10px -10px 30px rgba(11,20,38,.12)}
section.solutions .solution-photo img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.16,1,.3,1)}
section.solutions .service-open:hover .solution-photo img{transform:scale(1.06)}
section.solutions .solution-more{position:absolute;right:18px;bottom:18px;z-index:2;width:44px;height:44px;margin:0;border-radius:50%;background:rgba(255,255,255,.94);
  display:grid;place-items:center;font-size:0;color:#142A4E;box-shadow:0 6px 16px rgba(11,20,38,.18);transition:transform .4s cubic-bezier(.16,1,.3,1),background .3s}
section.solutions .solution-more span{font-size:19px;line-height:1}
section.solutions .service-open:hover .solution-more{transform:scale(1.08);background:#fff;text-decoration:none}

/* แท็บเล็ต + มือถือ: เลื่อนการ์ดไปด้านข้าง */
@media(max-width:1100px){
  section.solutions .solution-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(280px,38%);overflow-x:auto;scroll-snap-type:x mandatory;
    padding:6px 4px 26px;margin:0 -4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  section.solutions .solution-grid::-webkit-scrollbar{display:none}
  section.solutions .solution-card{scroll-snap-align:start}
}
@media(max-width:760px){
  section.solutions .solution-grid{grid-auto-columns:78%;gap:14px}
  section.solutions .service-open{min-height:420px;border-radius:22px}
  section.solutions .solution-card h3{font-size:21px;padding:0 22px}
  section.solutions .service-open:before{padding:24px 22px 0}
  section.solutions .solution-photo{height:220px}
}
@media(prefers-reduced-motion:reduce){section.solutions .service-open,section.solutions .solution-photo img{transition:none}}

/* ============================================================
   การ์ดผลงาน — สไตล์รายการสินค้าแบบ Apple (รูปมุมมนใหญ่ + ข้อความกึ่งกลาง)
   ============================================================ */
a.project{display:flex;flex-direction:column;align-items:center;text-align:center;border-bottom:0;padding-bottom:10px;text-decoration:none;color:var(--ink)}
a.project .project-image{width:100%;border-radius:28px;overflow:hidden;background:linear-gradient(180deg,#EEF2F8 0,#dfe6f0 100%);isolation:isolate;
  transition:transform .6s cubic-bezier(.16,1,.3,1),box-shadow .6s cubic-bezier(.16,1,.3,1)}
a.project .project-image img{display:block;transition:transform .9s cubic-bezier(.16,1,.3,1)}
a.project:hover .project-image{transform:translateY(-6px);box-shadow:0 26px 50px rgba(20,42,78,.16)}
a.project:hover .project-image img{transform:scale(1.045)}
a.project .project-go{display:none}
a.project .project-info{display:flex;flex-direction:column;align-items:center;margin-top:30px;padding:0 10px}
a.project .project-info .label{order:-1;margin:0 0 10px;font-size:13px;font-weight:500;letter-spacing:.2px;color:var(--gold-dark)}
a.project h3{font-size:clamp(22px,2vw,28px);font-weight:600;line-height:1.3;letter-spacing:-.4px;color:var(--ink);max-width:22ch;text-wrap:balance}
a.project .project-details{margin-top:16px;font-size:14px;font-weight:500;color:var(--navy);display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:999px;background:var(--soft);
  transition:background .3s,color .3s}
a.project:hover .project-details{background:var(--navy);color:#fff}
a.project:focus-visible{outline:none}
a.project:focus-visible .project-image{outline:3px solid var(--gold);outline-offset:4px}
.project-grid{row-gap:56px}
@media(max-width:760px){a.project .project-image{border-radius:22px}a.project .project-info{margin-top:22px}.project-grid{row-gap:44px}}
@media(prefers-reduced-motion:reduce){a.project .project-image,a.project .project-image img{transition:none}}
