/* Cambo Quick — temporary public site.
   Brand: orange #F78F08, ink #231F20. Built to be light: Cambodian visitors are
   mostly on phones, so no framework, no webfont beyond one Google Fonts call. */

:root {
  --orange: #f78f08;
  --orange-dark: #d9780a;
  --orange-soft: #fff5e6;
  --ink: #231f20;
  --ink-2: #333538;
  --grey: #61666c;
  --grey-2: #808990;
  --line: #e7e9ea;
  --bg: #ffffff;
  --bg-2: #fbfbfb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 8px 24px rgba(35, 31, 32, .06);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.brand img { height: 32px; width: auto; }
.brand span {
  font-size: 1.18rem; font-weight: 600; color: var(--ink);
  letter-spacing: -.02em; line-height: 1;
}
.brand b { font-weight: 800; color: var(--orange); }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 26px; }
/* :not(.btn) matters — `.nav a` outranks `.btn` on specificity, so without it
   the header's Get-a-quote pill loses its padding and gains a stray underline. */
.nav a:not(.btn) {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--orange-dark); text-decoration: none; }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.nav .btn { padding: 10px 22px; font-size: .93rem; letter-spacing: .01em; }
.nav .btn:hover { box-shadow: 0 4px 14px rgba(247, 143, 8, .35); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; line-height: 0;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; inset: 68px 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; width: 100%; padding: 13px 22px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-primary:disabled { background: var(--grey-2); cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #d7dadd; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- hero ---------- */

.hero { background: linear-gradient(180deg, var(--orange-soft), #fff 70%); padding: 64px 0 56px; }
.hero p.lead { font-size: 1.15rem; color: var(--grey); max-width: 46ch; margin: 0 0 8px; }
.hero .km { font-size: 1rem; color: var(--grey-2); max-width: 52ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--orange-dark);
  background: #fff; border: 1px solid #f5d9ab; border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px;
}

/* ---------- sections ---------- */

section.band { padding: 56px 0; }
section.band.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 32px; }
.section-head p { color: var(--grey); margin: 0; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; font-size: .95rem; color: var(--grey);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark);
  font-weight: 700; font-size: .9rem; margin-bottom: 12px;
}
.steps li strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }

/* ---------- article cards ---------- */

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card a { text-decoration: none; color: inherit; }
.card .thumb { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.card h3 a:hover { color: var(--orange-dark); }
.card time { font-size: .8rem; color: var(--grey-2); }
.card p { margin: 0; font-size: .9rem; color: var(--grey); }

/* ---------- article ---------- */

.article-head { padding-block: 40px 24px; border-bottom: 1px solid var(--line); }
.article-head time { color: var(--grey-2); font-size: .88rem; }
.crumbs { font-size: .87rem; color: var(--grey-2); margin-bottom: 14px; }
.crumbs a { color: var(--grey); }

.prose { padding-block: 32px 8px; }
.prose img { border-radius: 10px; display: block; margin: 20px auto; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose a { text-decoration: underline; }
.prose iframe, .prose table { max-width: 100%; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
/* Elementor leftovers: the markup ships with grid/flex class names whose CSS we dropped. */
.prose .elementor-widget-container > p:last-child { margin-bottom: 0; }
.prose .elementor-image-box-wrapper { margin-bottom: 1.4em; }
.prose .elementor-section, .prose .elementor-column, .prose .elementor-widget-wrap { display: block !important; width: auto !important; }

/* ---------- forms ---------- */

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--grey-2); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid #d7dadd; border-radius: 10px; transition: .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 143, 8, .16); }
.field textarea { resize: vertical; min-height: 96px; }
.field .err { color: #c8372d; font-size: .85rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #c8372d; }
.field.invalid .err { display: block; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.item-row { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-2); position: relative; }
.item-row .row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.item-row .row-head span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); }
.item-row .drop { background: none; border: 0; color: var(--grey-2); cursor: pointer; font-size: .85rem; padding: 2px 6px; }
.item-row .drop:hover { color: #c8372d; }
.item-grid { display: grid; gap: 12px; grid-template-columns: 1fr 110px; }
@media (max-width: 560px) { .item-grid { grid-template-columns: 1fr; } }

/* ---------- outbox status ---------- */

.outbox { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.outbox:empty { display: none; }
.qitem {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .9rem;
}
.qitem .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; }
.qitem .txt { flex: 1; }
.qitem .txt strong { display: block; color: var(--ink); }
.qitem .txt small { color: var(--grey-2); }
.qitem .retry { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--ink); }
.qitem.waiting { background: #fffaf0; border-color: #f3ddb4; }
.qitem.waiting .dot { background: var(--orange); }
.qitem.sending .dot { background: var(--orange); animation: pulse 1s infinite; }
.qitem.sent { background: #f2fbf5; border-color: #cbe9d5; }
.qitem.sent .dot { background: #2f9e5e; }
.qitem.failed { background: #fdf4f3; border-color: #f0cfcb; }
.qitem.failed .dot { background: #c8372d; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- contact strip ---------- */

.channels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.channel {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); font-weight: 600; line-height: 1.35; min-width: 0;
}
.channel:hover { border-color: var(--orange); text-decoration: none; }
.channel .ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.15rem; background: var(--orange-soft);
}
.channel .tx { min-width: 0; }
.channel .tx small {
  display: block; font-weight: 400; color: var(--grey-2); font-size: .82rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- footer ---------- */

/* No margin-top: every page ends in a .band, and the gap read as a stray white strip. */
.site-footer { background: var(--ink); color: #b9bdc0; padding: 44px 0 32px; font-size: .92rem; }
.site-footer a { color: #e6e8e9; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .fine { margin-top: 34px; padding-top: 20px; border-top: 1px solid #3a3637; color: #8a8f92; font-size: .85rem; }

.notice {
  background: var(--orange-soft); border: 1px solid #f5d9ab; border-radius: var(--radius);
  padding: 16px 20px; color: #7a5205; font-size: .92rem;
}

/* ---------- home sections (icons + copy straight from the company) ---------- */

.kicker {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.section-head h2 { margin: 0; }

.steps li img { display: block; width: 45px; height: 45px; margin-bottom: 14px; }
.steps li::before { display: none; }
.steps li {
  counter-increment: none; text-align: left; position: relative;
}

.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
}
.feature img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 14px; display: block; }
.feature h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--grey); font-size: .93rem; }

.reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.reviews img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}

/* ---------- FAQ ---------- */

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 26px;
  width: 9px; height: 9px; border-right: 2px solid var(--grey-2); border-bottom: 2px solid var(--grey-2);
  transform: rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--orange-dark); }
.faq-body { padding: 0 0 20px; color: var(--grey); }
.faq-body p { margin: 0 0 .9em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body strong { color: var(--ink); }

/* The four step icons are solid white PNGs: the old front end sat them on an
   orange rounded tile, so without it they are invisible on white. */
.step-icon {
  display: grid; place-items: center; width: 72px; height: 72px;
  border-radius: 20px; background: var(--orange); margin-bottom: 16px;
}
.step-icon img { width: 34px; height: 34px; margin: 0; }
.reviews.one { grid-template-columns: minmax(0, 560px); }

/* Step 1's subtitle is the call to action, so it reads as a link, not caption text. */
.step-link { display: inline-block; font-weight: 600; color: var(--orange-dark); }
.step-link:hover { text-decoration: underline; }

/* Shown only on ?test=1 — see IS_TEST in app.js. */
.test-flag {
  position: sticky; top: 0; z-index: 60;
  background: #b91c1c; color: #fff; text-align: center;
  padding: 9px 16px; font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.test-flag + .site-header { top: 38px; }
