/* DAJILI eCard — standalone stylesheet.
   Deliberately does NOT load main.css: the site's global `footer` and type scale
   were fighting this layout. Everything here is self-contained. */

:root{
  --deep:#04381A;
  --light:#98E48C;
  --paper:#FAF6EE;
  --ink:#16261C;
  --body:#4A5A50;
  --muted:#7E8C80;
  --line:#E4DFD3;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,
    "Noto Sans Thai","Thonburi","Tahoma",sans-serif;
  background:var(--paper); color:var(--ink);
  font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  min-height:100vh; display:flex; flex-direction:column;
  padding-bottom:36px;
}
a{color:inherit}
img{max-width:100%;display:block}

/* ---------- top bar ---------- */
.card-head{
  width:100%; max-width:560px; margin:0 auto;
  padding:24px 22px 0;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.card-brand{
  font-size:13px; font-weight:700; letter-spacing:.16em;
  color:var(--deep); text-decoration:none;
}
.lang{display:flex; gap:0; border:1px solid var(--line); border-radius:99px;
  padding:3px; width:max-content; background:#fff}
.lang a{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:5px 11px; border-radius:99px; color:var(--muted); text-decoration:none;
  line-height:1.2;
}
.lang a[aria-current="true"]{background:var(--deep); color:#fff}

/* ---------- card body ---------- */
.ecard{
  width:100%; max-width:560px; margin:0 auto;
  padding:8px 22px 0; text-align:center; flex:1;
}
.card-photo{
  width:148px; height:148px; border-radius:50%; object-fit:cover;
  margin:22px auto 20px; border:4px solid #fff;
  box-shadow:0 6px 26px rgba(4,56,26,.14);
}
.ecard h1{
  font-size:clamp(22px,5.6vw,28px); line-height:1.28; font-weight:700;
  color:var(--deep); letter-spacing:-.01em;
  overflow-wrap:break-word; margin:0 0 10px;
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}

.card-names{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:9px; margin:2px 0 0;
  font-size:17px; line-height:1.65; color:var(--muted); font-weight:500;
}
html[lang="th"] .card-names{line-height:1.9}
.card-names .sep{color:#B9C3BB}

/* social icon row */
.card-socials{
  display:flex; flex-wrap:wrap; gap:9px; justify-content:center; margin:18px 0 0;
}
.soc{
  width:44px; height:44px; border-radius:13px;
  border:1px solid var(--line); background:#fff; color:var(--deep);
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; transition:border-color .15s ease, transform .15s ease;
}
.soc svg{width:21px; height:21px}
.soc:hover,.soc:focus-visible{border-color:var(--deep); transform:translateY(-1px)}
.card-role{
  display:inline-block; margin-top:16px;
  font-size:11px; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:var(--deep);
}
.card-line{
  font-size:15px; line-height:1.66; color:var(--body);
  margin:15px auto 0; max-width:420px;
}

/* ---------- action buttons ---------- */
.card-actions{display:grid; gap:10px; margin:26px 0 0; text-align:left}
.cbtn{
  display:flex; flex-direction:column; gap:2px;
  padding:13px 17px; border:1px solid var(--line); border-radius:14px;
  background:#fff; text-decoration:none;
  transition:border-color .15s ease, transform .15s ease;
}
.cbtn:hover,.cbtn:focus-visible{border-color:var(--deep); transform:translateY(-1px)}
.cbtn-main{background:var(--deep); border-color:var(--deep)}
.cbtn-l{
  font-size:10.5px; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color:var(--muted);
}
.cbtn-v{font-size:15.5px; font-weight:600; color:var(--deep); overflow-wrap:anywhere}
.cbtn-main .cbtn-l{color:var(--light)}
.cbtn-main .cbtn-v{color:#fff}

/* ---------- link pills ---------- */


/* ---------- addresses ---------- */
.card-addr{
  display:grid; gap:20px; margin:30px 0 0; padding-top:24px;
  border-top:1px solid var(--line); text-align:left;
}
@media (min-width:520px){ .card-addr{grid-template-columns:1fr 1fr; gap:26px} }
.card-addr h2{
  font-size:10.5px; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:var(--muted); margin:0 0 7px;
}
.card-addr p{font-size:13.5px; line-height:1.66; color:var(--body)}

/* ---------- footer ---------- */
.card-foot{
  width:100%; max-width:560px; margin:26px auto 0;
  padding:18px 22px 0; text-align:center;
  border-top:1px solid var(--line);
  background:none;
}
.card-foot p{
  font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted);
}

/* ---------- Thai ---------- */
html[lang="th"] body{line-height:1.75}
html[lang="th"] .card-brand,
html[lang="th"] .card-role,
html[lang="th"] .cbtn-l,
html[lang="th"] .card-addr h2,
html[lang="th"] .card-foot p{letter-spacing:0; text-transform:none}
html[lang="th"] .card-role{font-size:13px}
html[lang="th"] .cbtn-l{font-size:12px}
html[lang="th"] .card-line{line-height:1.85}
html[lang="th"] .card-addr p{line-height:1.85}
html[lang="th"] .ecard h1{line-height:1.45}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important}
}

/* ---------- icon rows ---------- */
.cbtn{flex-direction:row; align-items:center; gap:13px; padding:13px 16px}
.cbtn-txt{display:flex; flex-direction:column; gap:2px; min-width:0}
.cbtn-ico{
  flex:0 0 38px; width:38px; height:38px; border-radius:11px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(4,56,26,.06); color:var(--deep);
}
.cbtn-ico svg{width:20px; height:20px}
.cbtn-main .cbtn-ico{background:rgba(255,255,255,.14); color:#fff}

/* ---------- WeChat disclosure ---------- */
.cbtn-drop{display:block; padding:0; overflow:hidden}
.cbtn-drop summary{
  display:flex; align-items:center; gap:13px; padding:13px 16px;
  cursor:pointer; list-style:none;
}
.cbtn-drop summary::-webkit-details-marker{display:none}
.cbtn-caret{
  margin-left:auto; width:9px; height:9px; flex:0 0 9px;
  border-right:1.7px solid var(--muted); border-bottom:1.7px solid var(--muted);
  transform:rotate(45deg) translateY(-2px); transition:transform .18s ease;
}
.cbtn-drop[open] .cbtn-caret{transform:rotate(-135deg) translateY(-2px)}
.cbtn-panel{
  padding:0 16px 16px 67px; display:grid; gap:12px;
}
@media (max-width:430px){ .cbtn-panel{padding-left:16px} }
.cbtn-panel img{
  width:190px; height:190px; border-radius:10px; border:1px solid var(--line);
  background:#fff; padding:6px;
}
.cbtn-panel p{font-size:12.5px; line-height:1.6; color:var(--muted); max-width:330px}
html[lang="th"] .cbtn-panel p{line-height:1.8}

/* ---------- page buttons (Website / Services / Work / About) ---------- */
.card-nav{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:8px; margin:30px 0 0;
}
.card-nav a{
  display:inline-flex; align-items:center; gap:5px;
  font-size:13.5px; font-weight:500; color:var(--deep);
  text-decoration:none; padding:9px 16px;
  border:1px solid var(--line); border-radius:999px; background:#fff;
  transition:border-color .15s ease, background .15s ease, transform .15s ease;
}
.card-nav a:hover,.card-nav a:focus-visible{
  border-color:var(--deep); background:#fff; transform:translateY(-1px);
}
/* the arrow marks "opens in a new tab" so leaving the card is never a surprise */
.card-nav a::after{
  content:"\2197"; font-size:.82em; color:var(--muted);
}
html[lang="th"] .card-nav a{font-size:14px}

/* ---------- selected work ---------- */
.card-work{
  margin:30px 0 0; padding-top:24px; border-top:1px solid var(--line); text-align:left;
}
.card-work h2{
  font-size:10.5px; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:var(--muted); margin:0 0 12px;
}
html[lang="th"] .card-work h2{letter-spacing:0; text-transform:none; font-size:13px}
.wcard{
  display:flex; align-items:center; gap:12px;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:11px 13px; margin-bottom:9px; text-decoration:none;
  transition:border-color .15s ease, transform .15s ease;
}
.wcard:last-child{margin-bottom:0}
.wcard:hover,.wcard:focus-visible{border-color:var(--deep); transform:translateY(-1px)}
.wcard img{width:38px; height:38px; border-radius:9px; flex:0 0 38px; object-fit:contain}
.wcard-txt{display:flex; flex-direction:column; gap:2px; min-width:0; flex:1}
.wcard-name{font-size:14.5px; font-weight:600; color:var(--deep); line-height:1.3}
.wcard-desc{font-size:12.5px; line-height:1.5; color:var(--muted)}
html[lang="th"] .wcard-desc{line-height:1.75}
.wcard-tag{
  flex:0 0 auto; font-size:10px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:#1F5B33; background:rgba(152,228,140,.34); border-radius:6px; padding:3px 7px;
}
html[lang="th"] .wcard-tag{letter-spacing:0; text-transform:none; font-size:11px}

/* see-all link under selected work */
.wcard-more{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin-top:4px; padding:10px; font-size:13px; font-weight:500;
  color:var(--deep); text-decoration:none; border-radius:10px;
  transition:background .15s ease;
}
.wcard-more:hover,.wcard-more:focus-visible{background:rgba(4,56,26,.06)}
.wcard-more::after{content:"\2192"; color:var(--muted)}
