/* ABC Translation Cambodia – main stylesheet (no framework, ~mobile first) */
:root {
  --navy: #12355b;
  --navy-2: #0b2440;
  --blue: #1f5fa3;
  --gold: #e0a526;
  --gold-2: #c98d10;
  --ink: #1b2533;
  --muted: #5b6676;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --ok: #157347;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --wrap: 1180px;
  --font: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS System", "Leelawadee UI", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--bg); }
body.lang-km { line-height: 1.85; font-size: 16px; }
body.lang-zh { font-family: "Kantumruy Pro", var(--font-zh); line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.3; color: var(--navy-2); margin: 0 0 .6em; font-weight: 700; }
.lang-km h1, .lang-km h2, .lang-km h3 { line-height: 1.55; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); margin-top: 1.4em; }
h3, .h3 { font-size: 1.15rem; }
.sec-head h2, .sec > .wrap > h2:first-child, .content > h2:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
.i { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.i.sm { width: .95em; height: .95em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; justify-content: center; padding: .7em 1.25em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--gold); color: #1a1200; box-shadow: 0 4px 14px rgba(224, 165, 38, .35); }
.btn-accent:hover { background: #f0b437; color: #1a1200; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* top bar + header */
.topbar { background: var(--navy-2); color: #cfd9e6; font-size: .86rem; }
.topbar-in { display: flex; gap: 22px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a, .topbar span { color: #cfd9e6; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-2); margin-right: auto; }
.logo-mark { width: 40px; height: 40px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt b { font-size: 1.12rem; letter-spacing: -.01em; }
.logo-txt small { color: var(--gold-2); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.lang-km .logo-txt small { text-transform: none; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { background: var(--bg-alt); color: var(--navy); }
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 10px; color: var(--muted); }
.lang-switch a { padding: 3px 9px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; }
.lang-switch a.on { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger, .burger::before, .burger::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); content: ""; transition: transform .2s; }
.burger { top: 21px; } .burger::before { top: -6px; left: 0; } .burger::after { top: 6px; left: 0; }
.nav-open .burger { background: transparent; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); top: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 86px 22px 24px; gap: 18px; transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 40px rgba(0,0,0,.12); overflow-y: auto; z-index: 60; }
  .nav-open .site-nav { transform: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { z-index: 70; }
  .lang-switch { align-self: flex-start; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8,20,36,.45); z-index: 55; }
}
@media (max-width: 640px) { .tb-hours { display: none !important; } .topbar-in { justify-content: center; gap: 16px; } }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #a0a9b6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs + .phero { margin-top: 12px; }

/* hero */
.hero, .phero { background: radial-gradient(1200px 500px at 85% -10%, #2a5d94 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #e9eff7; position: relative; overflow: hidden; }
.hero::after, .phero::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(224,165,38,.10); pointer-events: none; }
.hero h1, .phero h1 { color: #fff; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; align-items: start; position: relative; z-index: 1; }
.kicker { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: var(--gold); background: rgba(224,165,38,.12); border: 1px solid rgba(224,165,38,.3); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.12rem; color: #d3deeb; max-width: 62ch; }
.hero-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points .i { color: var(--gold); }
.hero-cta, .phero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.phero .wrap { padding-top: 40px; padding-bottom: 46px; position: relative; z-index: 1; }
.phero .lead { margin-bottom: 22px; }
@media (max-width: 920px) { .hero-in { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; } }

/* sections, grids, cards */
.sec { padding: 64px 0; }
.sec.alt { background: var(--bg-alt); }
.sec-head { max-width: 720px; margin-bottom: 28px; }
.sec-head p { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } .sec { padding: 44px 0; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.svc-card:hover { transform: translateY(-3px); border-color: #c9d6e6; box-shadow: 0 14px 34px rgba(18,53,91,.12); color: var(--ink); }
.svc-card h3 { margin: 12px 0 6px; }
.svc-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc-ic, .why-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #eaf1fa; color: var(--navy); }
.svc-ic .i, .why-ic .i { width: 24px; height: 24px; }
.more { color: var(--blue); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 4px; }
.why { padding: 4px 4px 0; }
.why h3 { margin: 12px 0 6px; }
.why p { color: var(--muted); font-size: .95rem; }
.loc-card { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); padding: 16px 18px; }
.loc-card .i { color: var(--gold-2); width: 22px; height: 22px; margin-top: 3px; }
.loc-card b { display: block; color: var(--navy-2); }
.loc-card small { color: var(--muted); display: block; line-height: 1.4; }
.loc-card:hover { border-color: #c9d6e6; box-shadow: 0 10px 26px rgba(18,53,91,.1); }
.chips { list-style: none; padding: 0; margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: .92rem; }
.chips a:hover { border-color: var(--navy); background: #eef3f9; }
.sec.alt .chips a { background: #fff; }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-lists h2 { margin-top: 0; }
@media (max-width: 800px) { .two-lists { grid-template-columns: 1fr; gap: 10px; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #1a1200; font-weight: 700; margin-bottom: 10px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* two column layout with sticky aside */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.side { position: sticky; top: 96px; }
@media (max-width: 1000px) { .cols { grid-template-columns: 1fr; } .side { position: static; } }
.content .lead-p, .lead-p { font-size: 1.08rem; color: #2c3a4d; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 24px 0; }
.split h2 { margin-top: 0; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.check li { display: flex; gap: 10px; align-items: flex-start; }
.check .i { color: var(--ok); margin-top: .3em; }
.olist { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.olist li::marker { color: var(--gold-2); font-weight: 700; }
.note-box { display: flex; gap: 14px; background: #fff8e8; border: 1px solid #f3dca5; border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; }
.note-box .i { color: var(--gold-2); width: 24px; height: 24px; margin-top: 2px; }
.note-box h3 { margin: 0 0 4px; font-size: 1.02rem; }
.note-box p { margin: 0; color: #4a4030; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; background: #eaf1fa; color: var(--navy); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.prose h2 { margin-top: 1.6em; }

/* FAQ */
.faq { margin: 30px 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; color: var(--navy-2); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold-2); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 6px; color: #374355; }

/* forms */
.form-card { padding: 24px; }
.form-card.big { padding: 30px; }
.form-card h2 { margin-top: 0; }
.hero .form-card { color: var(--ink); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.compact .fgrid { grid-template-columns: 1fr; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-weight: 600; font-size: .9rem; color: #2a3646; }
.fld label small { font-weight: 400; color: var(--muted); }
.req { color: var(--err); }
.fld input[type=text], .fld input[type=email], .fld input[type=tel], .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cdd5e0; border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.fld textarea { resize: vertical; min-height: 90px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,163,.18); }
.fld input[type=file] { font-size: .9rem; padding: 10px; border: 1px dashed #b8c3d2; border-radius: 10px; background: #f8fafc; width: 100%; }
.fld.chk label { display: flex; gap: 10px; font-weight: 400; font-size: .88rem; align-items: flex-start; color: var(--muted); }
.fld.chk input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.fld .invalid, .fld input.invalid, .fld textarea.invalid { border-color: var(--err); }
.quote-form .btn { width: 100%; margin-top: 14px; }
.form-status { margin-top: 12px; font-size: .95rem; }
.form-status.ok { color: var(--ok); background: #e9f7ef; padding: 10px 12px; border-radius: 10px; }
.form-status.err { color: var(--err); background: #fdecea; padding: 10px 12px; border-radius: 10px; }
.direct { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.direct p { margin: 0; }
.direct a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; color: var(--navy); word-break: break-all; }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } .form-card.big { padding: 20px; } }

.info-card h2 { margin-top: 0; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #eaf1fa; color: var(--navy); flex: none; }
.info-list small { display: block; color: var(--muted); }
.info-list a { font-weight: 600; text-decoration: none; word-break: break-all; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #1c4c80 100%); color: #e6edf6; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #c7d4e5; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* thank you / 404 */
.thanks { padding: 90px 0; }
.big-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #e9f7ef; color: var(--ok); margin-bottom: 18px; }
.big-ic .i { width: 42px; height: 42px; }
.big-num { font-size: 5rem; font-weight: 700; color: var(--gold); margin: 0; line-height: 1; }
.nf-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* footer */
.site-footer { background: #0a1d33; color: #b6c3d4; padding-top: 54px; font-size: .94rem; }
.site-footer a { color: #d6e0ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.ft-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ft-brand span { color: var(--gold); }
.ft-h { color: #fff; font-weight: 700; margin-bottom: 12px; }
.ft-contact li { display: flex; gap: 8px; align-items: center; }
.ft-contact a { display: inline-flex; gap: 8px; align-items: center; }
.ft-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: .86rem; }
.ft-bottom p { margin: 0; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } }

/* mobile bottom bar */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mobile-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; font-size: .78rem; text-decoration: none; color: var(--navy); font-weight: 600; min-height: 58px; }
  .mobile-cta .mc-quote { background: var(--gold); color: #1a1200; }
}

/* language suggestion banner */
.lang-hint { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 14px 40px 14px 16px; font-size: .95rem; }
.lang-hint a { font-weight: 700; }
.lang-hint button { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
@media (max-width: 760px) { .lang-hint { left: 10px; right: 10px; bottom: 74px; max-width: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .mobile-cta, .side, .cta-band, .hero-form { display: none !important; } .hero, .phero { background: none; color: #000; } .hero h1, .phero h1 { color: #000; } }
