/* KaveHS home page. Shared by the English and Arabic pages. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --sand: #f1efe7;
  --yellow: #f5c400;
  --blue: #0b57b7;
  --green: #12823f;
  --red: #d3202b;
  --muted: #3a3a3a;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 80px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.5px;
  overflow-wrap: anywhere;
}
.h2 { font-size: clamp(38px, 6vw, 64px); }

/* Header */
.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 14px;
}
.logo {
  background: var(--ink); color: #f3efe6; padding: 10px 16px 12px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 30px; line-height: 1;
  text-decoration: none; direction: ltr; unicode-bidi: isolate;
}
.logo .h { color: #5b9be0; }
.logo .s { color: #d4a62a; }
.logo sup { font-size: 13px; color: #a9b4c4; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 16px; font-weight: 700; }
.nav a {
  color: var(--ink); text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .lang {
  border: 2px solid var(--ink); padding-inline: 16px;
}
.nav .lang:hover { background: var(--ink); color: var(--yellow); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 54px; padding-inline: 28px;
  font-weight: 800; text-decoration: none; font-family: inherit; font-size: 17px;
  border: 3px solid var(--ink); cursor: pointer;
}
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-dark:hover { background: #2a2a2a; color: var(--yellow); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--yellow); }

/* Hero */
.hero { background: var(--yellow); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 64px 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.eyebrow { font-size: 16px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }
.hero h1 { margin-top: 20px; font-size: clamp(44px, 8vw, 104px); }
.hero h1 .stamp {
  display: inline-block; margin-top: 8px; padding-inline: 14px;
  background: var(--ink); color: var(--yellow);
}
.hero .lead { margin-top: 28px; max-width: 560px; font-size: 22px; line-height: 1.5; font-weight: 500; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hazard {
  height: 28px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 24px, var(--yellow) 24px 48px);
}

/* Permit tag in hero */
.tag-wrap { flex: 0 1 380px; min-width: 280px; transform: rotate(3deg); }
[dir="rtl"] .tag-wrap { transform: rotate(-3deg); }
.tag {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  padding-bottom: 20px;
}
[dir="rtl"] .tag { box-shadow: -8px 8px 0 var(--ink); }
.tag-head {
  background: var(--ink); color: var(--yellow); padding: 14px 20px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 1px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tag-dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--yellow); display: inline-block; }
.tag-body {
  padding: 18px 20px 0; font-family: var(--font-mono); font-weight: 500; font-size: 16px;
  line-height: 1.5; display: flex; flex-direction: column; gap: 10px;
}
.tag-row { display: flex; justify-content: space-between; gap: 12px; }
.tag-row:first-of-type { border-top: 2px solid var(--ink); padding-top: 10px; }
.ok { background: var(--green); color: #fff; padding-inline: 8px; }
.tag-ready { background: var(--green); color: #fff; text-align: center; padding: 10px 0; font-weight: 600; letter-spacing: 1px; margin-top: 6px; }
.tag-note { font-size: 13px; color: #4b4b4b; }

/* Problems */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 48px; }
.problem { display: flex; flex-direction: column; gap: 12px; }
.problem h3 { font-size: 24px; font-weight: 800; }
.problem p { color: var(--muted); }

/* Modules */
.modules { background: var(--sand); border-block: 3px solid var(--ink); }
.modules .intro { margin-top: 16px; max-width: 640px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; margin-top: 48px; }
.card {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
[dir="rtl"] .card { box-shadow: -6px 6px 0 var(--ink); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-no { font-family: var(--font-mono); font-weight: 600; font-size: 15px; direction: ltr; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.dot.y { background: var(--yellow); } .dot.b { background: var(--blue); }
.dot.g { background: var(--green); } .dot.r { background: var(--red); }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { color: var(--muted); font-size: 17px; }

/* Flow */
.flow { background: var(--ink); color: #fff; }
.flow .h2 { color: var(--yellow); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 56px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; text-transform: uppercase; }
.step p { color: #d6d6d6; font-size: 17px; }

/* Industries */
.industry { border-top: 3px solid var(--ink); padding-block: 12px; font-size: clamp(34px, 9vw, 104px); }
.industry:last-of-type { border-bottom: 3px solid var(--ink); }
.industries .note { margin-top: 24px; color: var(--muted); }

/* Standards */
.standards { background: var(--blue); color: #fff; }
.standards .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.standards h2 { font-size: clamp(34px, 6vw, 44px); }
.standards .col { display: flex; flex-direction: column; gap: 14px; }

/* Contact */
.contact { background: var(--yellow); }
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.contact h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; }
.contact .col { display: flex; flex-direction: column; gap: 16px; }
.contact .lead { font-weight: 500; }
.contact .details { font-weight: 700; }
.contact .details a { color: var(--ink); }
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 700; }
input, textarea {
  min-height: 50px; padding: 12px 14px; border: 3px solid var(--ink); background: var(--paper);
  color: var(--ink); font-size: 17px; font-family: inherit; border-radius: 0;
}
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}
form .btn { align-self: flex-start; }
.form-msg { font-weight: 700; min-height: 1.6em; }

/* Footer */
.site-footer { background: var(--ink); color: #bdbdbd; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; }

/* Cairo, self-hosted (SIL Open Font License 1.1, (c) The Cairo Project Authors). Used by the Arabic page. */
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/cairo-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/cairo-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/cairo-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/cairo-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/cairo-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('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+0304,U+0308,U+0329,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-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/cairo-arabic-800-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('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+0304,U+0308,U+0329,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-style: normal; font-weight: 900; font-display: swap;
  src: url('fonts/cairo-arabic-900-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('fonts/cairo-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Arabic: one family (Cairo) for the whole page. Heavy weights for headings give the
   same poster feel as Anton in English; body text gets a larger size and generous leading,
   because Arabic needs more line height than Latin. */
html[lang="ar"] {
  --font-body: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-display: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-mono: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
html[lang="ar"] body {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.95;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] .display,
html[lang="ar"] .step h3 {
  font-family: var(--font-display);
  font-weight: 900; text-transform: none; letter-spacing: 0; line-height: 1.35;
}
html[lang="ar"] .hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.3; }
html[lang="ar"] .hero h1 .stamp { padding-block: 0 6px; padding-inline: 18px; margin-top: 12px; }
html[lang="ar"] .hero .lead { font-size: 22px; line-height: 1.9; font-weight: 600; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 19px; font-weight: 800; }
html[lang="ar"] .h2 { font-size: clamp(34px, 5vw, 52px); }
html[lang="ar"] .standards h2 { font-size: clamp(30px, 5vw, 38px); }
html[lang="ar"] .contact h2 { font-size: clamp(36px, 5.5vw, 58px); line-height: 1.3; }
html[lang="ar"] .industry { font-size: clamp(42px, 8vw, 88px); padding-block: 6px; line-height: 1.5; }
html[lang="ar"] .step h3 { font-size: 30px; }
html[lang="ar"] .problem h3, html[lang="ar"] .card h3 { font-size: 24px; font-weight: 800; line-height: 1.5; }
html[lang="ar"] .card p, html[lang="ar"] .problem p, html[lang="ar"] .step p { font-size: 18px; line-height: 1.9; }
html[lang="ar"] .nav { font-size: 17px; font-weight: 700; }
html[lang="ar"] .btn { font-weight: 800; font-size: 18px; }
html[lang="ar"] label { font-size: 17px; font-weight: 800; }
html[lang="ar"] input, html[lang="ar"] textarea { font-size: 18px; font-weight: 500; }
html[lang="ar"] .tag-head { font-size: 19px; letter-spacing: 0; font-weight: 800; }
html[lang="ar"] .tag-body { font-size: 17px; line-height: 1.7; font-weight: 600; }
html[lang="ar"] .tag-ready { letter-spacing: 0; font-weight: 800; }
html[lang="ar"] .tag-note { font-size: 14px; font-weight: 500; }
html[lang="ar"] .card-no { font-family: 'Cairo', system-ui, sans-serif; font-weight: 800; }
html[lang="ar"] .site-footer { font-size: 16px; }
html[lang="ar"] input[type="email"] { direction: ltr; text-align: right; }

@media (max-width: 600px) {
  .section { padding-block: 56px; }
  .wrap { padding-inline: 18px; }
  .hero .wrap { padding-block: 44px 52px; gap: 36px; }
  .hero .lead { font-size: 20px; }
  .tag-wrap { transform: none; }
  [dir="rtl"] .tag-wrap { transform: none; }
  .nav { gap: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
