/* ===== Lianudom Digital Group — public site ===== */
:root {
  --ink: #0b1b2e;
  --ink-2: #33475b;
  --muted: #6b7a8a;
  --paper: #f6f7f4;
  --line: #dde3ea;
  --line-dark: #22364d;
  --blue: #0c77c2;          /* ฟ้า LDG จากโลโก้ */
  --blue-deep: #0a4f8a;
  --blue-soft: #e3f0fa;
  --sky: #7cc8ff;
  --busy: #f2a516;
  --busy-soft: #fdf0d5;
  --danger: #d13b2f;
  --f-display: "Bai Jamjuree", "IBM Plex Sans Thai", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
::selection { background: var(--blue); color: #fff; }

/* ----- nav ----- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--blue); transition: width .25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav .btn { margin-left: auto; }
.nav-links + .btn { margin-left: 0; }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 600 1rem var(--f-display); text-decoration: none; border: 0; cursor: pointer; border-radius: 999px; padding: 11px 12px 11px 22px; transition: background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn .arr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .3s var(--ease); font-size: .95rem; }
.btn:hover .arr { transform: rotate(-45deg); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); padding: 11px 22px; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white .arr { background: var(--blue); color: #fff; }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 15px 15px 15px 28px; font-size: 1.08rem; }
.btn-lg.btn-line { padding: 15px 28px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ----- hero ----- */
.hero { position: relative; overflow: hidden; padding: 80px 0 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 25% 35%, #000 25%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .85fr; gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 .8rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.kicker::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 700; margin: 24px 0 26px; }
.hero h1 .hl { color: var(--blue); background: linear-gradient(transparent 70%, var(--blue-soft) 70%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-word {
  font: 700 clamp(4.5rem, 16.5vw, 15rem)/.78 var(--f-display); letter-spacing: -.045em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px #cdd6df; margin-top: 48px; user-select: none; transform: translateY(14%);
}

/* live board */
.board { position: relative; background: var(--ink); color: #fff; border-radius: 24px; padding: 26px 26px 22px; box-shadow: 0 40px 80px -40px rgba(11, 27, 46, .6); }
.board::after { content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1px; background: linear-gradient(140deg, rgba(124, 200, 255, .55), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.board-head { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #a9b8c8; }
.board-head .sp { margin-left: auto; font-size: .78rem; color: #7f93a8; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
.board-big { display: flex; align-items: flex-end; gap: 14px; margin: 20px 0 22px; }
.board-big b { font: 700 4.8rem/.85 var(--f-display); letter-spacing: -.04em; }
.board-big span { color: #a9b8c8; font-size: .95rem; padding-bottom: 6px; line-height: 1.4; }
.strip { display: grid; grid-template-columns: repeat(15, 1fr); gap: 4px; min-height: 120px; }
.strip i { aspect-ratio: 1; border-radius: 3px; background: #1b2e44; }
.strip i.open { background: var(--blue); }
.strip i.busy { background: var(--busy); }
.strip i.full { background: #2a3d52; background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255, 255, 255, .13) 3px 4px); }
.strip-scale { display: flex; justify-content: space-between; font-size: .74rem; color: #7f93a8; margin-top: 8px; }
.board-foot { border-top: 1px solid var(--line-dark); margin-top: 18px; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: #a9b8c8; }
.board-foot b { color: #fff; font-family: var(--f-display); font-size: 1.05rem; }
.mini-legend { display: flex; gap: 12px; font-size: .74rem; color: #7f93a8; }
.mini-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }

/* ----- sections ----- */
.section { padding: 112px 0; }
#why { padding-top: 72px; }
.sec-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: end; margin-bottom: 60px; }
.sec-tag { display: block; font: 600 .8rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 500px; justify-self: end; font-size: 1.05rem; }

/* features: numbered editorial rows */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.points li { display: grid; grid-template-columns: 64px 1fr; gap: 8px 16px; padding: 34px 36px 38px 0; border-bottom: 1px solid var(--line); }
.points li:nth-child(odd) { border-right: 1px solid var(--line); }
.points li:nth-child(even) { padding-left: 36px; }
.points .n { font: 700 1rem var(--f-display); color: var(--blue); grid-row: span 2; padding-top: 7px; }
.points h3 { font-size: 1.5rem; }
.points p { margin: 0; color: var(--ink-2); }

/* positions: job board */
.dark { background: var(--ink); color: #fff; }
.dark .sec-head p { color: #a9b8c8; }
.dark .sec-tag { color: var(--sky); }
.jobs { border-top: 1px solid var(--line-dark); }
.job { position: relative; display: grid; grid-template-columns: 70px 1.1fr 1fr auto; align-items: center; gap: 24px; padding: 30px 12px; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: #fff; overflow: hidden; }
.job::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.job:hover::before, .job:focus-visible::before { transform: scaleY(1); }
.job > * { position: relative; }
.job .n { color: #7f93a8; font: 600 .95rem var(--f-display); transition: color .3s; }
.job h3 { font-size: clamp(1.45rem, 2.7vw, 2.3rem); font-weight: 600; }
.job p { margin: 0; color: #a9b8c8; transition: color .3s; }
.job:hover .n, .job:hover p { color: #e3f0fa; }
.job .go { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid #3a4d63; display: grid; place-items: center; font-size: 1.2rem; transition: all .35s var(--ease); }
.job:hover .go { background: #fff; color: var(--ink); border-color: #fff; transform: rotate(-45deg); }
.jobs-empty { color: #a9b8c8; padding: 28px 0; }

/* availability calendar */
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: .9rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 7px; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: all .2s; }
.arrows button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.arrows button:disabled { opacity: .25; cursor: default; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.month h3 { font-size: 1.15rem; margin-bottom: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mgrid .wd { font-size: .72rem; color: var(--muted); text-align: center; padding-bottom: 4px; }
.mgrid .d { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font: 600 .88rem var(--f-display); background: #fff; border: 1px solid var(--line); }
.mgrid .d.open { background: var(--blue-soft); border-color: transparent; color: var(--blue-deep); }
.mgrid .d.busy { background: var(--busy-soft); border-color: transparent; color: #8a5a00; }
.mgrid .d.full { background: var(--ink); border-color: var(--ink); color: #5d7086; text-decoration: line-through; }
.mgrid .d.past { opacity: .32; }
.mgrid .d.today { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--blue); }
.cal-note { margin: 28px 0 0; color: var(--muted); font-size: .93rem; }

/* CTA + marquee */
.cta { background: var(--blue); color: #fff; overflow: hidden; padding: 100px 0 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); max-width: 820px; }
.cta p { color: #d6ebfa; margin: 14px 0 0; font-size: 1.12rem; }
.marquee { margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, .28); padding: 24px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marq 32s linear infinite; font: 600 clamp(1.5rem, 3.4vw, 2.6rem) var(--f-display); }
.marquee-track span { padding-right: 56px; }
.marquee-track span::after { content: "✦"; margin-left: 56px; color: var(--sky); }
@keyframes marq { to { transform: translateX(-50%); } }

/* footer */
.foot { background: var(--ink); color: #a9b8c8; padding: 52px 0; font-size: .93rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.foot img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.foot-contact { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-contact a:hover { color: var(--sky); }
.foot-copy { width: 100%; border-top: 1px solid var(--line-dark); padding-top: 20px; color: #7f93a8; font-size: .85rem; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== apply page ===== */
.apply { display: grid; grid-template-columns: minmax(340px, .8fr) 1.2fr; min-height: calc(100vh - 72px); }
.apply-side { background: var(--ink); color: #fff; padding: 64px 52px; position: relative; overflow: hidden; }
.apply-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 60%); opacity: .6; }
.apply-side-inner { position: sticky; top: 120px; }
.apply-side .kicker { color: var(--sky); }
.apply-side h1 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); margin: 20px 0 16px; }
.apply-side > div > p { color: #a9b8c8; margin: 0; }
.prep { list-style: none; padding: 0; margin: 36px 0; display: grid; gap: 16px; }
.prep li { display: flex; gap: 14px; align-items: flex-start; color: #d5dee8; }
.prep .n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #3a4d63; display: grid; place-items: center; font: 600 .82rem var(--f-display); color: var(--sky); }
.prep b { color: #fff; font-weight: 600; }
.side-board { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.side-board .board-head { margin-bottom: 14px; }
.side-board .strip { min-height: 0; }

.apply-main { padding: 64px 56px 96px; max-width: 820px; width: 100%; }
.back { display: inline-flex; gap: 8px; color: var(--muted); text-decoration: none; font-size: .93rem; margin-bottom: 36px; }
.back:hover { color: var(--blue); }
.fsec { margin-bottom: 48px; }
.fsec-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 24px; }
.fsec-head .n { font: 700 .9rem var(--f-display); color: var(--blue); }
.fsec-head h2 { font-size: 1.45rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fgrid .full { grid-column: 1 / -1; }
.l { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.req::after { content: " *"; color: var(--danger); }
.apply input, .apply select, .apply textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.apply input:focus, .apply select:focus, .apply textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.apply textarea { min-height: 130px; resize: vertical; }
.drop { position: relative; display: flex; align-items: center; gap: 18px; border: 1.5px dashed #b6c4d2; border-radius: 14px; padding: 22px; background: #fff; cursor: pointer; transition: all .2s; }
.drop:hover, .drop.drag { border-color: var(--blue); background: var(--blue-soft); }
.drop .ic { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.4rem; transition: all .2s; }
.drop.has { border-style: solid; border-color: var(--blue); }
.drop.has .ic { background: var(--blue); color: #fff; }
.drop b { display: block; font-family: var(--f-display); font-weight: 600; word-break: break-all; }
.drop small { color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hint { margin-top: 12px; font-size: .92rem; padding: 11px 14px; border-radius: 10px; }
.hint.ok { background: var(--blue-soft); color: var(--blue-deep); }
.hint.warn { background: var(--busy-soft); color: #7a4f00; }
.hint.bad { background: #fde8e6; color: #8a1f17; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); cursor: pointer; }
.apply .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); padding: 0; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 24px; background: #fde8e6; color: #8a1f17; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.submit-row small { color: var(--muted); }
.success { text-align: center; padding: 72px 12px; }
.success .big { width: 96px; height: 96px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 28px; animation: pop .6s var(--ease); }
.success h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.success p { color: var(--ink-2); max-width: 460px; margin: 0 auto 32px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .sec-head { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .hero-grid { gap: 48px; }
  .months { grid-template-columns: 1fr 1fr; }
  .months .month:nth-child(3) { display: none; }
  .points { grid-template-columns: 1fr; }
  .points li:nth-child(odd) { border-right: 0; }
  .points li:nth-child(even) { padding-left: 0; }
  .nav-links { display: none; }
  .apply { grid-template-columns: 1fr; }
  .apply-side { padding: 44px 24px; }
  .apply-side-inner { position: static; }
  .apply-main { padding: 44px 24px 72px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { height: 64px; }
  .nav-logo img { height: 30px; }
  .nav .btn { padding: 9px 10px 9px 16px; font-size: .92rem; }
  .hero { padding-top: 44px; }
  .section { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .board-big b { font-size: 3.8rem; }
  .points li { grid-template-columns: 40px 1fr; padding: 26px 0 28px; }
  .points h3 { font-size: 1.3rem; }
  .months { grid-template-columns: 1fr; }
  .months .month:nth-child(n+2) { display: none; }
  .job { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 24px 4px; }
  .job .n { display: none; }
  .job h3, .job p { grid-column: 1; }
  .job .go { grid-column: 2; grid-row: 1 / 3; width: 44px; height: 44px; }
  .cta { padding-top: 72px; }
  .marquee { margin-top: 56px; }
  .fgrid { grid-template-columns: 1fr; }
  .apply-main { padding: 32px 16px 64px; }
  .apply-side { padding: 36px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .live, .success .big { animation: none; }
}
