/* Zlotworks marketing site — shared stylesheet.
   Neutral parent-company palette (slate + indigo) so it reads distinct from
   both product sub-brands (Budhix = green, Prachara = violet/amber), while
   product cards borrow each product's own accent for quick recognition. */

:root {
  --ink: #0f172a;
  --ink-dim: #475569;
  --ink-faint: #94a3b8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --brand: #eb934c;
  --brand-dim: #fdf0e2;
  --brand-deep: #9c5015;
  --budhix: #16a34a;
  --budhix-dim: #dcfce7;
  --prachara: #6d28d9;
  --prachara-dim: #ede9fe;
  --amber: #d97706;
  --radius: 14px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.045em;
}
.nav-logo:hover {
  text-decoration: none;
}
.brand-mark {
  width: auto;
  height: 40px;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:not(.nav-cta) {
  padding-bottom: 4px;
  transition:
    color 300ms ease,
    box-shadow 300ms ease;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:not(.nav-cta).active {
  box-shadow: inset 0 -2px 0 var(--brand);
}
.nav-cta {
  background: var(--brand);
  color: var(--ink) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700 !important;
  transition:
    background-color 300ms ease,
    color 300ms ease;
}
.nav-cta:hover {
  background: var(--brand-deep);
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 720px) {
  .nav .wrap {
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .nav-logo {
    align-self: flex-start;
  }
  .nav-links {
    width: 100%;
    gap: 9px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
  .nav-cta {
    padding: 6px 10px;
  }
}

@media (max-width: 390px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .nav-links {
    gap: 7px;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
  .nav-cta {
    padding: 5px 8px;
  }
}

/* Hero */
.hero {
  padding: 20px 0 32px;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-dim);
  max-width: 600px;
  margin: 0 auto 20px;
}
.eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  padding: 12px 25px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--brand);
  color: var(--ink) !important;
  transition:
    background-color 300ms ease,
    color 300ms ease;
}
.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff !important;
  text-decoration: none;
}
.btn-ghost {
  background-color: var(--brand-dim);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  /* border-color: var(--ink-faint); */
  border-color: transparent;
  text-decoration: none;
  color: var(--brand);
}
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Product cards (homepage) */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 8px 0 24px;
}
@media (max-width: 720px) {
  .products {
    grid-template-columns: 1fr;
  }
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}
.product-tag.budhix {
  background: var(--budhix-dim);
  color: var(--budhix);
}
.product-tag.prachara {
  background: var(--prachara-dim);
  color: var(--prachara);
}
.product-card h3 {
  margin: 0;
  font-size: 1.4rem;
}
.product-card p {
  color: var(--ink-dim);
  margin: 0;
  font-size: 0.96rem;
}
.product-card .learn-more {
  font-weight: 600;
  margin-top: 4px;
}

/* Generic section */
section {
  padding: 22px 0;
}
section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
h2 + p.section-lead {
  color: var(--ink-dim);
  margin: 0 0 16px;
  max-width: 620px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
}
.feature h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.audience-list span {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.audience-list svg {
  width: 16px;
  height: 16px;
  color: var(--brand-deep);
  stroke-width: 2;
}

/* Product page hero variants */
.product-hero {
  text-align: left;
  padding: 20px 0 24px;
}
.product-hero .eyebrow.budhix {
  color: var(--budhix);
  background: var(--budhix-dim);
}
.product-hero .eyebrow.prachara {
  color: var(--prachara);
  background: var(--prachara-dim);
}
.product-hero h1 {
  margin-left: 0;
}
.product-hero p.lead {
  margin-left: 0;
}
.product-hero .btn-row {
  justify-content: flex-start;
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 30px;
}
.legal h1 {
  font-size: 1.9rem;
  margin-bottom: 4px;
}
.legal .updated {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 1.15rem;
  margin-top: 40px;
}
.legal p,
.legal li {
  color: var(--ink-dim);
  font-size: 0.96rem;
}
.legal ul {
  padding-left: 20px;
}
.legal a {
  font-weight: 600;
}
.callout {
  background: var(--brand-dim);
  border: 1px solid #f3d3ad;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--brand-deep);
  margin: 24px 0;
}
.warn-box {
  background: #fff8f0;
  border-left: 3px solid var(--amber);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  font-size: 0.9rem;
}
.step-grid {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px 16px;
  margin: 20px 0 28px;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text {
  padding-top: 4px;
  font-size: 0.96rem;
  color: var(--ink-dim);
}
.step-text strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.contact-card .label {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.contact-card .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
.contact-card .value:last-child {
  margin-bottom: 0;
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 0 80px;
}
.contact-form h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.contact-form p.lead {
  color: var(--ink-dim);
  margin: 0 0 32px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 14px;
}
.form-success {
  background: var(--budhix-dim);
  border: 1px solid #bbf0cf;
  color: #166534;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  margin-bottom: 6px;
}
footer .brand-mark {
  width: auto;
  height: 30px;
  border-radius: 0;
}
footer .foot-tagline {
  color: var(--ink-faint);
  font-size: 0.85rem;
  max-width: 320px;
}
footer .foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer .foot-links a {
  color: var(--ink-dim);
  font-size: 0.88rem;
}
footer .foot-copy {
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin-top: 24px;
}
