/* Snapolux — static site skeleton. Zero JS, mobile-first. */
:root {
  --ink: #14202b;
  --muted: #5b6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --soft: #f5f8fa;
  --brand: #0e7c86;      /* teal — light, signage feel */
  --brand-dark: #0a5a63;
  --cta: #f59e0b;        /* amber CTA */
  --cta-dark: #d97706;
  --radius: 14px;
  --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Myanmar Text", "Noto Sans Myanmar", "Khmer UI", "Noto Sans Khmer",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: .02em; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--cta); color: #fff; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.nav-cta:hover { background: var(--cta-dark); text-decoration: none; }
/* "> li" is load-bearing: a bare "li" selector also matches the language
   dropdown's own items (.lang-sw ul li) and hides the whole list on mobile */
@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links > li:not(.nav-keep):not(.nav-lang) { display: none; }
  .nav-links a { font-size: .9rem; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 48px; background:
  radial-gradient(1200px 500px at 85% -10%, #e6f4f5 0%, transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.hero h1 { font-size: 2.6rem; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 26px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; border: 2px solid transparent;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(20,32,43,.35);
  aspect-ratio: 1; object-fit: cover;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; font-size: .85rem; font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(20,32,43,.25);
}
.hero-badge b { color: var(--brand); font-size: 1.05rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 0; }
.trust-item { text-align: center; font-size: .88rem; color: var(--muted); }
.trust-item b { display: block; color: var(--ink); font-size: 1rem; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: 1.9rem; letter-spacing: -.01em; margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 16px 40px -18px rgba(20,32,43,.28); transform: translateY(-2px); }
.card img { aspect-ratio: 4/3; object-fit: cover; background: #fff; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: #e6f4f5;
  padding: 3px 10px; border-radius: 999px;
}
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); font-size: .92rem; flex: 1; }
.card .spec { font-size: .85rem; color: var(--ink); background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.card .ask { font-weight: 600; font-size: .92rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; border-radius: 50%; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* about / applications */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin-top: 18px; }
.checklist li { padding: 7px 0 7px 30px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--brand); font-weight: 800;
}
.apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.apps span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: .9rem; color: var(--muted);
}

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; }
.cta-inner { padding: 56px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.7rem; margin-bottom: 6px; }
.cta-band p { opacity: .85; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: #fdecc8; text-decoration: none; }

/* ---------- products page ---------- */
.family { margin-bottom: 52px; }
.family:last-child { margin-bottom: 0; }
.family h2 { font-size: 1.4rem; margin-bottom: 6px; }
.family > p { color: var(--muted); margin-bottom: 22px; max-width: 680px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card .row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-card .val { font-weight: 600; }
.note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
form input, form textarea, form select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.hint { color: var(--muted); font-weight: 400; }

/* ---------- footer ---------- */
.site-footer { background: #10202b; color: #9db3c2; padding: 40px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.site-footer a { color: #cfe0ea; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 3px 0; font-size: .92rem; }
.footer-bottom { border-top: 1px solid #22394a; margin-top: 28px; padding-top: 18px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* placeholder marker for factory images (to be replaced by own photos) */
.ph-note { font-size: .78rem; color: var(--muted); }

/* ---------- language switcher (native <details>, zero JS) ---------- */
.lang-sw { position: relative; }
.lang-sw summary {
  list-style: none; cursor: pointer; user-select: none; white-space: nowrap;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--muted);
}
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw summary:hover { color: var(--ink); border-color: var(--brand); }
.lang-sw[open] summary { color: var(--brand); border-color: var(--brand); }
.lang-sw ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  list-style: none; min-width: 160px; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(20,32,43,.22);
}
.lang-sw ul a {
  display: block; padding: 7px 12px; border-radius: 8px;
  font-size: .88rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.lang-sw ul a:hover { background: var(--soft); color: var(--brand); text-decoration: none; }
.lang-sw ul a.cur { font-weight: 700; color: var(--brand); background: #e6f4f5; pointer-events: none; }

/* ---------- RTL / Arabic ---------- */
/* letter-spacing breaks Arabic letter joining and Burmese/Khmer mark stacking — zero it everywhere it is set */
[dir="rtl"] .kicker,
[dir="rtl"] .tag,
[dir="rtl"] .contact-card .label,
[dir="rtl"] .footer-col h4,
:lang(my) .kicker, :lang(my) .tag, :lang(my) .contact-card .label, :lang(my) .footer-col h4,
:lang(km) .kicker, :lang(km) .tag, :lang(km) .contact-card .label, :lang(km) .footer-col h4 { letter-spacing: 0; }
/* stacked vowel marks need more leading than tight Latin heading rhythm */
:lang(my) .hero h1, :lang(km) .hero h1,
:lang(my) .section-head h2, :lang(km) .section-head h2 { line-height: 1.45; }
/* checklist ticks sit on the reading-start side */
[dir="rtl"] .checklist li { padding: 7px 30px 7px 0; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
/* hero badge overhangs the reading-start edge */
[dir="rtl"] .hero-badge { left: auto; right: -14px; }
/* Latin brand name + numerals inside RTL text keep LTR order */
[dir="rtl"] .logo, [dir="rtl"] .hero-badge b { direction: ltr; unicode-bidi: isolate; }
