/* DKSC Cambodia — marketing site. Mobile first, no framework. */
:root {
  --green: #0d5a43;
  --green-700: #0a4734;
  --green-50: #eef6f2;
  --orange: #f5a01a;
  --orange-600: #d9860a;
  --ink: #15201b;
  --ink-2: #44514b;
  --line: #dfe6e2;
  --bg: #ffffff;
  --bg-2: #f6f8f7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(13,90,67,.08);
  --wrap: 1160px;
  --font: "Noto Sans Khmer", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-700); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* Language toggle: the build writes both languages; CSS shows one. */
html.lang-km .l-en, html.lang-en .l-km { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--green); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .card, .section.dark .card h3 { color: var(--ink); }
.mini { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini .card { padding: 16px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--orange-600); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }

/* Buttons: 48px tap targets */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #1b1300; }
.btn-primary:hover { background: var(--orange-600); color: #1b1300; }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green-50); }
.section.dark .btn-ghost { border-color: #fff; color: #fff; }
.section.dark .btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-tg { background: #229ed9; color: #fff; }
.btn-tg:hover { background: #1b87bb; color: #fff; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #188d47; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.nav-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.15; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-weight: 500; font-size: .75rem; color: var(--ink-2); }
.nav { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { min-height: 44px; padding: 8px 16px; }
.lang-btn {
  min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink);
}
.menu-btn { min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.hide-sm, .hide-md { display: none !important; }

.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--bg-2); }
.mobile-nav .group { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 14px 4px 4px; }
.mobile-nav .sub a { padding-left: 16px; font-weight: 500; }

@media (min-width: 1180px) {
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
  .hide-sm:not(.hide-md) { display: inline-flex !important; }
}
@media (min-width: 1320px) {
  .hide-md { display: inline-flex !important; }
}
@media (min-width: 1180px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
  .nav > a, .nav .dd > button {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; white-space: nowrap;
    color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer;
  }
  .nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { background: var(--green-50); color: var(--green); }
  .dd { position: relative; }
  .dd-menu {
    position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow); display: none;
  }
  .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
  .dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
  .dd-menu a:hover { background: var(--green-50); }
}

/* Hero */
.hero { padding: 40px 0 48px; background: linear-gradient(180deg, var(--green-50), #fff 80%); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 .accent { color: var(--green); }
.hero .lead { max-width: 560px; }
.hero-media { position: relative; }
.hero-media .photo { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-media .phone { position: absolute; right: -6px; bottom: -22px; width: 30%; max-width: 170px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); border: 4px solid #fff; background: #fff; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: .95rem; color: var(--ink-2); }
.trust-line > span::before { content: "✓ "; color: var(--green); font-weight: 800; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* Page hero (inner pages) */
.page-hero { padding: 40px 0 32px; background: linear-gradient(180deg, var(--green-50), #fff); }
.page-hero .lead { max-width: 720px; }
.crumbs { font-size: .9rem; margin-bottom: 8px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

/* Trust strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: center; }
.strip .num { font-size: 1.5rem; font-weight: 800; color: var(--green); line-height: 1.2; }
.strip .lbl { font-size: .9rem; color: var(--ink-2); }
@media (min-width: 760px) { .strip-grid { grid-template-columns: repeat(4, 1fr); } }
.names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 18px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .g2, .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 4px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
.card.link:hover { transform: translateY(-2px); border-color: var(--green); }
.card .more { font-weight: 700; color: var(--green); }
.card-media { margin: -22px -22px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.section.dark .ticks li::before { border-color: var(--orange); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green-50); color: var(--green); margin: 0 6px 6px 0; }
.tag.orange { background: #fff3df; color: #8a5300; }

/* Feature rows (alternating media/text) */
.feature-row { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.feature-row .shots { display: flex; gap: 14px; justify-content: center; }
.feature-row .shots img { width: 46%; max-width: 230px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-row .wide { border-radius: 18px; box-shadow: var(--shadow); width: 100%; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature-row.flip > :first-child { order: 2; }
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #1b1300; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.2rem; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--green); position: relative; }
.price-card .badge { position: absolute; top: -13px; left: 22px; background: var(--green); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; color: var(--green); line-height: 1.1; margin: 8px 0 2px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.price-card .btn { margin-top: auto; }
.price-card .ticks { margin-bottom: 20px; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
table.compare th, table.compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare th { background: var(--bg-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 18px 16px; color: var(--ink-2); }

/* Case studies */
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .95rem; }
.case dt { font-weight: 700; color: var(--ink-2); }
.case dd { margin: 0; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; border-radius: 22px; padding: 36px 24px; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d7ebe3; margin: 0; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; padding: 44px 48px; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #b9c6c0; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: 3px solid rgba(13,90,67,.18); }
.form .hint { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.form-status { padding: 14px 16px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: none; }
.form-status.show { display: block; }

/* Prose (legal, guides) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.note { border-left: 4px solid var(--orange); background: #fff8ec; padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 1em 0; }

/* Footer */
.site-footer { background: #0b1f18; color: #c9d6d0; padding: 48px 0 96px; font-size: .95rem; }
.site-footer a { color: #e8f1ed; text-decoration: none; display: inline-block; padding: 5px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-grid .about { grid-column: 1 / -1; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .foot-grid .about { grid-column: auto; } .site-footer { padding-bottom: 48px; } }
.foot-bottom { border-top: 1px solid #23392f; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Sticky mobile contact bar: one primary action + Telegram */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.mobile-cta .btn { flex: 1; min-height: 48px; padding: 8px 12px; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

.qr { width: 160px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.shot-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shot-strip figure { margin: 0; }
.shot-strip img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-strip figcaption { font-size: .9rem; text-align: center; margin-top: 8px; color: var(--ink-2); font-weight: 600; }
@media (min-width: 760px) { .shot-strip { grid-template-columns: repeat(5, 1fr); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card.link { transition: none; } }
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230d5a43' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
}
