:root{
  --brand-orange:#FF8200;
  --brand-blue:#2563eb;
  --brand-navy:#1E293B;

  --bg:#f3f4f6;
  --bg-soft:#ffffff;
  --bg-alt:#e5e7eb;

  --ink:#111827;
  --ink-soft:#4b5563;

  --accent:#10b981;
  --border:rgba(15,23,42,.08);
  --shadow-soft:0 14px 35px rgba(148,163,184,.35);

  --radius-lg:18px;
  --radius-full:999px;
  --container:1120px;
}

*{box-sizing:border-box;margin:0;padding:0}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

html,body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Leelawadee","Tahoma",sans-serif;
  background:var(--bg);
  color:var(--ink);
  scroll-behavior:smooth;
  line-height:1.6;
}

/* Helper TH+EN */
.en{
  display:block;
  font-size:.82rem;
  color:var(--ink-soft);
  opacity:.9;
}

/* Layout base */
.container{max-width:var(--container);margin:0 auto;padding:0 16px}

/* Badge + Buttons */
.badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;border-radius:999px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(148,163,184,.6);
  font-size:.8rem;
  color:var(--ink-soft);
}
.badge-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--accent);box-shadow:0 0 0 6px rgba(16,185,129,.25);
}

.pill-btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 18px;border-radius:var(--radius-full);
  font-weight:600;font-size:.9rem;border:none;cursor:pointer;gap:8px;
  transition:.18s all ease-out;
}
.pill-primary{
  background:linear-gradient(135deg,var(--brand-orange),#ff5c3b);
  color:#111827;
  box-shadow:0 8px 24px rgba(248,113,22,.35);
}
.pill-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 32px rgba(248,113,22,.45);
}
.pill-outline{
  background:#ffffff;
  border:1px solid rgba(148,163,184,.7);
  color:var(--ink-soft);
}
.pill-outline:hover{
  border-color:var(--brand-blue);
  color:var(--brand-blue);
}

/* Header / Nav – light */
header{
  position:sticky;top:0;z-index:40;
  backdrop-filter:blur(16px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(148,163,184,.4);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;gap:16px;
}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{height:69px;width:auto}
.brand-text{display:flex;flex-direction:column}
.brand-name{font-size:1.05rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--brand-navy)}
.brand-tag{font-size:.72rem;color:var(--ink-soft)}
nav ul{display:flex;gap:18px;list-style:none;font-size:.84rem}
nav a{
  opacity:.85;text-align:left;
  color:var(--ink-soft);
}
nav a:hover{
  opacity:1;color:var(--brand-blue);
}
.nav-actions{display:flex;gap:10px;align-items:center}
.nav-small{display:none}

/* Sections */
main{padding-bottom:80px}
section{padding:56px 0}
.hero{
  padding:40px 0 52px;
  background:linear-gradient(to bottom,#e5f0ff 0,#f9fafb 45%,#f3f4f6 100%);
}

/* Hero grid */
.hero-grid{
  display:grid;grid-template-columns:3fr 2.4fr;
  gap:32px;align-items:center;
}
.eyebrow{font-size:.9rem;color:var(--brand-blue);margin-bottom:8px}
.hero h1{font-size:2.4rem;line-height:1.25;margin-bottom:16px;color:var(--brand-navy)}
.hero-highlight{color:var(--brand-orange)}
.hero p.lead{font-size:1rem;color:var(--ink-soft);max-width:520px}
.hero-actions{margin-top:22px;display:flex;gap:10px;flex-wrap:wrap}
.hero-meta{
  margin-top:16px;font-size:.8rem;color:var(--ink-soft);
  display:flex;flex-wrap:wrap;gap:10px;
}
.hero-meta span{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;border-radius:999px;
  border:1px dashed rgba(148,163,184,.7);
  background:rgba(255,255,255,.9);
}

/* Hero visual – light card style */
.hero-visual{
  position:relative;border-radius:24px;overflow:hidden;
  box-shadow:var(--shadow-soft);
  background:radial-gradient(circle at top,#dbeafe 0,#eff6ff 40%,#e5e7eb 100%);
  min-height:260px;
}
.hero-visual img.main-shot{
  height:100%;width:100%;object-fit:cover;opacity:.96;
}
.hero-float{
  position:absolute;bottom:16px;left:16px;right:16px;
  background:rgba(255,255,255,.9);border-radius:16px;
  padding:10px 14px;font-size:.8rem;display:flex;
  justify-content:space-between;gap:10px;
  border:1px solid rgba(148,163,184,.6);
  color:var(--ink-soft);
}
.hero-float strong{color:var(--brand-navy)}
.hero-float .sub{color:var(--ink-soft);font-size:.75rem}

/* Generic Section Titles */
.section-title{text-align:center;margin-bottom:32px}
.section-title h2{font-size:1.6rem;margin-bottom:6px;color:var(--brand-navy)}
.section-title p{font-size:.9rem;color:var(--ink-soft)}

/* Cards / Grids */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.card{
  background:var(--bg-soft);
  border-radius:18px;
  padding:18px 18px 20px;
  border:1px solid rgba(148,163,184,.35);
  box-shadow:0 4px 16px rgba(148,163,184,.25);
}
.card h3{font-size:1rem;margin-bottom:8px;color:var(--brand-navy)}
.card p{font-size:.86rem;color:var(--ink-soft)}

.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chip{
  font-size:.75rem;padding:3px 9px;border-radius:999px;
  background:#eff6ff;border:1px solid rgba(129,140,248,.35);
  color:#1e3a8a;
}

/* Two column, lists, steps */
.two-col{
  display:grid;grid-template-columns:1.3fr 1fr;
  gap:26px;align-items:start;
}
.list{
  list-style:none;font-size:.9rem;color:var(--ink-soft);
  display:grid;gap:8px;margin-top:10px;
}
.list li{display:flex;align-items:flex-start;gap:8px}
.list li::before{
  content:"•";color:var(--brand-orange);
  margin-top:4px;font-size:1.1em;
}

.steps{display:grid;gap:12px;margin-top:10px;font-size:.88rem;color:var(--ink-soft)}
.step-item{display:flex;gap:10px;align-items:flex-start}
.step-badge{
  width:26px;height:26px;border-radius:999px;
  background:#eff6ff;
  border:1px solid rgba(59,130,246,.7);
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;color:var(--brand-blue);flex-shrink:0;margin-top:2px;
}

/* Projects */
.projects-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;
}
.project-card{
  background:#ffffff;
  border-radius:18px;overflow:hidden;
  border:1px solid rgba(148,163,184,.4);
  display:flex;flex-direction:column;height:100%;
  box-shadow:0 4px 18px rgba(148,163,184,.3);
}
.project-card img{height:170px;object-fit:cover}
.project-body{
  padding:14px 16px 16px;
  display:flex;flex-direction:column;gap:6px;flex:1;
}
.project-meta{font-size:.8rem;color:var(--ink-soft)}
.project-link{
  margin-top:8px;font-size:.82rem;
  color:var(--brand-blue);font-weight:600;
}
.project-link:hover{color:var(--brand-orange)}
.project-desc{font-size:.86rem;color:var(--ink-soft);margin-top:4px}

/* Downloads */
.download-wrap{
  display:grid;grid-template-columns:1.2fr 1fr;
  gap:26px;align-items:center;
}
.dl-list{display:grid;gap:12px;margin-top:10px}
.dl-item{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 12px;border-radius:12px;
  background:#ffffff;border:1px solid rgba(148,163,184,.6);
  font-size:.86rem;color:var(--ink-soft);
}
.dl-item span{max-width:70%}
.dl-item a{font-size:.8rem;color:var(--brand-blue);font-weight:600}
.dl-item a:hover{color:var(--brand-orange)}

/* FAQ */
.faq-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
  font-size:.88rem;
}
.faq-q{font-weight:600;margin-bottom:4px;color:var(--brand-navy)}
.faq-a{color:var(--ink-soft)}

/* Contact */
.contact{padding-top:32px}
.contact-grid{
  display:grid;grid-template-columns:1.1fr 1fr;
  gap:28px;align-items:start;
}
.contact-box{
  background:#ffffff;
  border-radius:18px;padding:20px;
  border:1px solid rgba(148,163,184,.55);
  box-shadow:0 4px 18px rgba(148,163,184,.3);
}
.form-row{display:flex;gap:12px;margin-bottom:12px}
.form-row-col{flex:1}
label{font-size:.8rem;color:var(--ink-soft)}
input,textarea,select{
  width:100%;margin-top:4px;background:#f9fafb;
  border-radius:10px;border:1px solid rgba(148,163,184,.8);
  color:#111827;font-size:.86rem;padding:8px 10px;outline:none;
}
textarea{min-height:100px;resize:vertical}
input:focus,textarea:focus,select:focus{
  border-color:var(--brand-blue);
  box-shadow:0 0 0 1px rgba(37,99,235,.25);
}

.contact-side p{font-size:.86rem;color:var(--ink-soft);margin-bottom:6px}
.contact-side a.link{color:var(--brand-blue);font-weight:600}
.contact-side a.link:hover{color:var(--brand-orange)}
.contact-list{list-style:none;font-size:.86rem;color:var(--ink-soft);display:grid;gap:4px;margin-top:4px}
.map-frame{margin-top:12px;border-radius:14px;overflow:hidden;border:1px solid rgba(148,163,184,.6)}

/* Footer – light grey */
footer{
  border-top:1px solid rgba(148,163,184,.5);
  padding:18px 0 28px;
  font-size:.78rem;
  color:var(--ink-soft);
  background:#e5e7eb;
}
.foot-grid{
  display:grid;grid-template-columns:1.3fr 1fr 1fr;
  gap:24px;margin-bottom:14px;
}
.foot-title{font-weight:600;margin-bottom:6px;color:var(--brand-navy)}
.foot-list{list-style:none;display:grid;gap:4px}
.foot-list a{opacity:.85}
.foot-list a:hover{opacity:1;color:var(--brand-blue)}

/* Responsive */
@media (max-width:960px){
  .hero-grid,.two-col,.download-wrap,.contact-grid{
    grid-template-columns:1fr;
  }
  .hero-visual{order:-1}
  .projects-grid,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .faq-grid{grid-template-columns:1fr}
  header{background:rgba(255,255,255,.98)}
}
@media (max-width:720px){
  .nav-main{display:none}
  .nav-small{display:flex}
  .hero h1{font-size:1.9rem}
  .projects-grid,.grid-3{grid-template-columns:1fr}
}
/* ===========================
   Responsive media helpers
   =========================== */

/* ใช้กับรูปที่ต้องการให้เต็มความกว้าง content */
img.full-width {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* กล่องครอบ video / iframe (YouTube / Google Map ฯลฯ) ให้เป็น 16:9 auto */
.responsive-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

.responsive-media iframe,
.responsive-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* กันไม่ให้รูป/วิดีโอชนขอบจอเล็กเกินไป */
@media (max-width: 720px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}
/* ===========================
   Mobile refinements (<= 720px)
   =========================== */
@media (max-width: 720px) {

  html, body {
    font-size: 15px;
  }

  /* Header / Brand */
  .nav {
    padding: 8px 0;
  }

  .brand-logo {
    height: 52px;
  }

  /* ซ่อนเมนูหลักบนจอเล็ก (ใช้ปุ่มโทรเป็น CTA แทนชั่วคราว) */
  .nav-main {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .nav-small {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-small .pill-btn {
    padding: 8px 14px;
    font-size: .82rem;
  }

  /* Hero */
  .hero {
    padding: 24px 0 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p.lead {
    font-size: .94rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    flex-direction: column;
  }

  /* Section title */
  .section-title h2 {
    font-size: 1.4rem;
  }

  .section-title p {
    font-size: .86rem;
  }

  /* Grid → 1 column on mobile */
  .grid-3,
  .projects-grid,
  .faq-grid,
  .download-wrap,
  .contact-grid,
  .two-col,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .contact-box {
    padding: 16px;
  }

  /* Form layout */
  .form-row {
    flex-direction: column;
  }

  label {
    font-size: .78rem;
  }

  input,
  textarea,
  select {
    font-size: .86rem;
  }

  /* Download list */
  .dl-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dl-item span {
    max-width: 100%;
  }

  .dl-item a {
    margin-top: 2px;
  }

  /* Projects card */
  .project-card img {
    height: 180px;
  }

  .project-body {
    padding: 12px 14px 14px;
  }

  /* FAQ */
  .faq-grid .card {
    padding: 14px;
  }

  /* Footer */
  footer {
    font-size: .78rem;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .hero p.lead,
  .card p,
  .project-desc,
  .dl-item,
  .faq-a {
    font-size: .9rem;
  }

  .en {
    font-size: .78rem;
  }

  .pill-btn {
    padding: 9px 14px;
  }
}
