/* Kazoza public website (served by api/src/site). Logical properties keep RTL and LTR in one sheet. */
@font-face { font-family: 'Cairo'; font-weight: 400; font-display: swap; src: url('/site/fonts/cairo-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-weight: 700; font-display: swap; src: url('/site/fonts/cairo-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-weight: 800; font-display: swap; src: url('/site/fonts/cairo-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-weight: 400; font-display: swap; src: url('/site/fonts/cairo-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; font-weight: 700; font-display: swap; src: url('/site/fonts/cairo-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; font-weight: 800; font-display: swap; src: url('/site/fonts/cairo-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Kazoza Lime brand: logo orange, cream, lime; ink text on orange fills (WCAG AA) */
  --red: #ff6402;
  --red-dark: #e05700;
  --red-text: #c24b00;
  --lime: #b6e439;
  --ink: #1f1b18;
  --muted: #695f57;
  --paper: #ffffff;
  --tint: #fff8ef;
  --line: #e9e2d8;
  --ok-bg: #e8f7ee;
  --ok-ink: #14532d;
  --err-bg: #fdecec;
  --err-ink: #8a1c1c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 27, 26, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { max-width: 720px; margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand .pill { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; font-weight: 800; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--ink); font-weight: 600; }
.menu a.btn { color: var(--ink); }
.menu .lang { font-weight: 700; color: var(--red-text); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 1.3rem; width: 44px; height: 40px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 26px; font: inherit; font-weight: 700; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--red-dark); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.85); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-small { padding: 8px 18px; font-size: 0.95rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 10, 10, 0.82) 0%, rgba(20, 10, 10, 0.55) 55%, rgba(20, 10, 10, 0.25) 100%); }
[dir='rtl'] .hero-scrim { background: linear-gradient(260deg, rgba(20, 10, 10, 0.82) 0%, rgba(20, 10, 10, 0.55) 55%, rgba(20, 10, 10, 0.25) 100%); }
.hero-content { position: relative; padding-block: 72px; max-width: 720px; margin-inline-start: max(16px, (100% - 1160px) / 2); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.1em; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.3px; color: #ffc59a; margin-bottom: 10px; }
.eyebrow.dark { color: var(--red-text); }
.hero-sub { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 700; margin-bottom: 0.6em; }
.hero-desc { font-size: 1.1rem; opacity: 0.92; max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- stats ---------- */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 12px; text-align: center; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.stat:first-child { border-inline-start: 0; }
.stat strong { display: block; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; color: var(--red); }
.stat span { font-size: 0.95rem; opacity: 0.85; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.tinted { background: var(--tint); }
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.about-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.facts { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 0; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.tinted .facts div { background: #fff; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .icon { font-size: 2rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.flavors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.flavor { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow); overflow: hidden; }
.flavor span { position: absolute; inset-inline-start: 12px; bottom: 12px; color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-img { position: relative; background: #f4f0e8; }
.product-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.badge { position: absolute; top: 12px; inset-inline-end: 12px; color: #fff; font-size: 0.85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body p { margin: 0; }
.tag { display: inline-block; align-self: flex-start; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; font-size: 0.85rem; font-weight: 600; }
.link { margin-top: auto; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.steps { padding-inline-start: 1.2em; margin: 16px 0 0; }
.steps li { margin-bottom: 6px; font-weight: 600; }

/* ---------- forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; }
.form .grid .field { margin-bottom: 0; }
.form .grid + .field { margin-top: 14px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #d6cfc4; border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(255, 100, 2, 0.25); border-color: var(--red); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--err-ink); }
.form .btn { width: 100%; margin-top: 4px; }
.privacy { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.form-status { margin: 12px 0 0; border-radius: 10px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-bg); color: var(--ok-ink); padding: 10px 14px; }
.form-status.err { background: var(--err-bg); color: var(--err-ink); padding: 10px 14px; }
.form-status.busy { color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.85); padding-block: 26px; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: #fff; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards, .flavors, .products { grid-template-columns: repeat(2, 1fr); }
  .about, .two-col { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; inset-inline: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu a.btn { margin-top: 10px; border-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .form .grid { grid-template-columns: 1fr; }
  .hero-content { padding-block: 56px; }
}
@media (max-width: 480px) {
  .cards, .flavors, .products { grid-template-columns: 1fr; }
  .flavor { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
