/* ===== S.W.O website UI kit — layout & component styles =====
   Consumes tokens from ../../colors_and_type.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

.swk-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.swk-section { padding: 92px 0; }
.swk-section.tone-light { background: var(--bg-1); }
.swk-section.tone-soft  { background: var(--bg-2); }
.swk-section.tone-ink   { background: var(--ink-900); background-image: var(--grad-mesh); color: #fff; }

/* ---------- eyebrow ---------- */
.swk-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--brand-blue);
}
.swk-eyebrow.is-light { color: var(--cyan-300); }
.swk-eyebrow-tick { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- headings ---------- */
.swk-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px,4vw,40px);
  line-height: 1.12; letter-spacing: -0.02em; margin: 14px 0 0; }
.swk-lead { font-size: 18px; line-height: 1.65; color: var(--fg-2); margin: 16px 0 0; max-width: 640px; }
.tone-ink .swk-lead { color: #B9C6DC; }

/* ---------- buttons ---------- */
.swk-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--radius-md); cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .2s, background .2s, color .2s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.swk-btn.sz-sm { padding: 9px 16px; font-size: 13.5px; }
.swk-btn.sz-lg { padding: 16px 30px; font-size: 16px; }
.swk-btn.v-primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-brand); }
.swk-btn.v-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.swk-btn.v-primary:active { background: var(--blue-700); transform: scale(.98); }
.swk-btn.v-gradient { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.swk-btn.v-gradient:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.swk-btn.v-cyan { background: var(--brand-cyan); color: var(--ink-900); box-shadow: var(--shadow-cyan); }
.swk-btn.v-cyan:hover { transform: translateY(-2px); filter: brightness(1.04); }
.swk-btn.v-secondary { background: #fff; color: var(--brand-blue); border-color: var(--border-2); }
.swk-btn.v-secondary:hover { background: var(--blue-50); border-color: var(--blue-200); }
.swk-btn.v-ghost { background: transparent; color: var(--brand-blue); padding-left: 8px; padding-right: 8px; }
.swk-btn.v-ghost:hover { color: var(--blue-700); }
.swk-btn.v-onink { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.22); }
.swk-btn.v-onink:hover { background: rgba(255,255,255,.2); }

/* ---------- reveal ---------- */
.swk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.swk-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .swk-reveal{ opacity:1; transform:none; } }

/* ---------- header ---------- */
.swk-header { position: sticky; top: 0; z-index: 50; transition: all .25s ease; }
.swk-header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.swk-header.scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-1); box-shadow: var(--shadow-xs); }
.swk-logo { height: 40px; display: block; }
.swk-nav { display: flex; gap: 4px; margin-left: auto; }
.swk-nav a { padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--fg-2);
  border-radius: var(--radius-sm); transition: all .15s; }
.swk-nav a:hover { color: var(--brand-blue); background: var(--blue-50); }
.swk-header-cta { display: flex; align-items: center; gap: 12px; }
.swk-burger { display: none; background: none; border: none; color: var(--fg-1); cursor: pointer; padding: 6px; }
.swk-mobile { display: none; }

/* ---------- hero ---------- */
.swk-hero { position: relative; background: var(--ink-900); background-image: var(--grad-mesh); color: #fff; overflow: hidden; }
.swk-hero .swk-container { padding-top: 88px; padding-bottom: 100px; position: relative; z-index: 2; }
.swk-hero-tag { display:inline-flex; align-items:center; gap:8px; padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 500; color:#CFE0F5; }
.swk-hero-tag b { color: var(--cyan-300); font-weight: 700; }
.swk-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02; letter-spacing: -0.03em; margin: 22px 0 0; }
.swk-hero h1 .grad { background: linear-gradient(100deg,var(--cyan-300),var(--blue-300));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.swk-hero-sub { font-size: 20px; line-height: 1.6; color: #BFD0E8; max-width: 560px; margin: 22px 0 0; }
.swk-hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.swk-hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.swk-hero-stats .n { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: #fff; }
.swk-hero-stats .l { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: #93A7C4; margin-top: 2px; }
.swk-hero-grid { position:absolute; inset:0; z-index:1; opacity:.5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 70% 20%, #000, transparent); }

/* ---------- value triad ---------- */
.swk-triad { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.swk-vcard { background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.swk-vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.swk-itile { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.t-blue { background: var(--blue-50); color: var(--brand-blue); }
.t-cyan { background: var(--cyan-50); color: var(--cyan-600); }
.t-ink  { background: var(--gray-100); color: var(--ink-800); }
.swk-vcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.swk-vcard p { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.swk-vcard .en { font-size: 12px; font-weight: 600; color: var(--brand-cyan); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- vision / mission ---------- */
.swk-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.swk-vmcard { border-radius: var(--radius-xl); padding: 32px; position: relative; overflow: hidden; }
.swk-vmcard.is-vision { background: var(--grad-ink); color: #fff; }
.swk-vmcard.is-mission { background: #fff; border: 1px solid var(--border-1); }
.swk-vmcard .k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.swk-vmcard.is-vision .k { color: var(--cyan-300); }
.swk-vmcard.is-mission .k { color: var(--brand-blue); }
.swk-vmcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 12px 0 10px; }
.swk-vmcard p { font-size: 15px; line-height: 1.6; margin: 0; }
.swk-vmcard.is-vision p { color: #C3D2E8; }
.swk-vmcard.is-mission p { color: var(--fg-2); }

/* ---------- stats band ---------- */
.swk-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.swk-statcell { text-align: center; padding: 8px; }
.swk-statcell .n { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1;
  background: var(--grad-smart); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swk-statcell .l { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); margin-top: 10px; }

/* ---------- solutions ---------- */
.swk-solgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 40px; }
.swk-sol { background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  padding: 28px; display: flex; gap: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.swk-sol:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.swk-sol:hover .swk-itile { background: var(--brand-blue); color:#fff; }
.swk-sol .swk-itile { transition: all .2s; flex: none; }
.swk-sol h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 2px 0 8px; }
.swk-sol p { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0 0 14px; }
.swk-sol .more { font-size: 14px; font-weight: 600; color: var(--brand-blue); display: inline-flex; align-items: center; gap: 6px; }
.swk-sol:hover .more svg { transform: translateX(3px); }
.swk-sol .more svg { transition: transform .18s; }

/* ---------- project feature ---------- */
.swk-project { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; margin-top: 40px; }
.swk-shot { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-1); aspect-ratio: 16/10; background: var(--gray-75); position: relative; }
.swk-shot .ph { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color: var(--gray-300); }
.swk-shot .browserbar { height: 34px; background: #fff; border-bottom: 1px solid var(--border-1); display:flex; align-items:center; gap:6px; padding:0 12px; }
.swk-shot .dot { width: 9px; height: 9px; border-radius: 50%; }
.swk-project .tag { display:inline-block; font-size:12px; font-weight:600; color:var(--cyan-700); background:var(--cyan-50); padding:5px 12px; border-radius:var(--radius-pill); }
.swk-project h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.15; margin: 16px 0 10px; letter-spacing: -0.01em; }
.swk-project .client { font-size: 15px; color: var(--brand-blue); font-weight: 600; }
.swk-project ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.swk-project li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--fg-2); }
.swk-project li svg { color: var(--success); flex: none; margin-top: 1px; }

/* ---------- clients / partners ---------- */
.swk-clients { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 40px; }
.swk-client { background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.swk-client:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.swk-client .mark { height: 54px; display:flex; align-items:center; justify-content:center; margin-bottom: 14px; }
.swk-client .lockup { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink-800); letter-spacing: -0.01em; }
.swk-client .name { font-weight: 600; font-size: 14.5px; color: var(--fg-1); }
.swk-client .cat { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.swk-partners { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.swk-pchip { padding: 12px 22px; background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; color: var(--fg-2); transition: all .18s; }
.swk-pchip:hover { color: var(--brand-blue); border-color: var(--blue-200); background: var(--blue-50); }

/* ---------- contact ---------- */
.swk-contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.swk-contact .info { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.swk-irow { display: flex; gap: 14px; align-items: flex-start; }
.swk-irow .ic { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; color: var(--cyan-300); flex: none; }
.swk-irow .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: #8FA4C2; }
.swk-irow .val { font-size: 15.5px; color: #fff; font-weight: 500; margin-top: 2px; }
.swk-form { background: #fff; border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-xl); }
.swk-form .frow { margin-bottom: 16px; }
.swk-form label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 7px; }
.swk-form input, .swk-form textarea { width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--fg-1);
  background: var(--bg-1); border: 1.5px solid var(--border-2); border-radius: var(--radius-md); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.swk-form textarea { resize: vertical; min-height: 96px; }
.swk-form input:focus, .swk-form textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: var(--ring-focus); }
.swk-form .captcha { display: flex; align-items: center; gap: 12px; }
.swk-form .captcha .q { font-family: var(--font-mono); font-weight: 600; color: var(--fg-1); background: var(--gray-100); padding: 10px 14px; border-radius: var(--radius-sm); white-space: nowrap; }
.swk-form .ok { display:flex; align-items:center; gap:10px; color: var(--success); font-weight:600; font-size:15px; background: var(--success-soft); padding: 14px; border-radius: var(--radius-md); }

/* ---------- footer ---------- */
.swk-footer { background: var(--ink-950); color: #9FB2CC; padding: 64px 0 28px; }
.swk-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.swk-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 16px; }
.swk-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.swk-footer a { font-size: 14px; color: #9FB2CC; transition: color .15s; }
.swk-footer a:hover { color: var(--cyan-300); }
.swk-footer .brandcol p { font-size: 14px; line-height: 1.6; color: #8194B0; margin: 16px 0 0; max-width: 280px; }
.swk-footer .addr { font-size: 13.5px; line-height: 1.7; color: #8194B0; }
.swk-footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #6E809C; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .swk-nav, .swk-header-cta .swk-btn { display: none; }
  /* nav (margin-left:auto) bi an -> cum CTA mat luc day phai, burger dinh canh logo.
     Day CA cum .swk-header-cta sang mep phai. */
  .swk-header-cta { margin-left: auto; }
  .swk-burger { display: inline-flex; }
  /* header luon co nen khi mo menu - tranh menu trang "lo lung" duoi header trong suot */
  .swk-header:has(.swk-mobile.open) { background: #fff; }
  .swk-triad, .swk-stats, .swk-clients { grid-template-columns: repeat(2,1fr); }
  .swk-solgrid, .swk-vm, .swk-project, .swk-contact, .swk-footer-grid { grid-template-columns: 1fr; }
  .swk-project { gap: 24px; }
  .swk-footer-grid { gap: 28px; }
  .swk-mobile.open { display: block; background: #fff; border-bottom: 1px solid var(--border-1); padding: 12px 24px 18px; }
  .swk-mobile.open a { display: block; padding: 12px 4px; font-weight: 500; color: var(--fg-1); border-bottom: 1px solid var(--gray-75); }
}
@media (max-width: 560px) {
  .swk-section { padding: 64px 0; }
  .swk-triad, .swk-stats, .swk-clients { grid-template-columns: 1fr; }
  .swk-hero-stats { gap: 28px; }
}

/* ===== News — tin tức từ portal (cms_posts) ===== */
.swk-newsgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.swk-news { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-1);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.swk-news:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-blue); }
.swk-news-cover { aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.swk-news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swk-news-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue); background: linear-gradient(135deg, rgba(18,197,192,.12), rgba(20,102,224,.12)); }
.swk-news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.swk-news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--fg-3); }
.swk-news-meta .cat { color: var(--brand-blue); font-weight: 700; }
.swk-news h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.4; margin: 0; }
.swk-news p { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swk-news .more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--brand-blue);
  display: inline-flex; align-items: center; gap: 6px; }
/* modal đọc bài */
.swk-news-overlay { position: fixed; inset: 0; background: rgba(10,23,48,.55); z-index: 90;
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.swk-news-modal { position: relative; background: #fff; border-radius: var(--radius-lg); max-width: 760px;
  width: 100%; box-shadow: var(--shadow-lg); }
.swk-news-modal .hero { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.swk-news-modal .inner { padding: 28px 32px 36px; }
.swk-news-modal h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px,3vw,30px);
  line-height: 1.3; margin: 10px 0 18px; }
.swk-news-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none;
  border-radius: 50%; background: rgba(10,23,48,.55); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; z-index: 2; }
.swk-news-close:hover { background: rgba(10,23,48,.8); }
.swk-news-content { font-size: 15.5px; line-height: 1.75; color: var(--fg-1); }
.swk-news-content img { max-width: 100%; border-radius: var(--radius-md); }
.swk-news-content a { color: var(--brand-blue); }
@media (max-width: 900px) { .swk-newsgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .swk-newsgrid { grid-template-columns: 1fr; } .swk-news-modal .inner { padding: 20px 18px 28px; } }

/* ảnh minh hoạ giải pháp (thay icon tile khi có) */
.swk-sol-img { width: 52px; height: 52px; border-radius: var(--radius-md); object-fit: cover; flex: none; }
