/* Kansest Holding Company - site styles. Palette from the official letterhead:
   logo navy #1D2A6B, footer slate #4A5578, footer rule #A8B0C8. No external fonts. */
:root {
  color-scheme: light;
  --navy: #1D2A6B;
  --navy-deep: #141E52;
  --slate: #4A5578;
  --mist: #A8B0C8;
  --paper: #FFFFFF;
  --tint: #F4F5F9;
  --ink: #1B2033;
  --radius: 10px;
  --wrap: 1080px;
  --font-ar: system-ui, "SF Arabic", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-en: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.8;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* Skip link */
.skip {
  position: absolute; inset-inline-start: 16px; top: -100px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 10;
  text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--navy); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 18px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 220px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav a { text-decoration: none; color: var(--slate); font-size: 0.97rem; padding-block: 6px; }
.nav a:hover { color: var(--navy); text-decoration: underline; }
.nav .lang {
  border: 1px solid var(--mist); border-radius: 999px; padding: 4px 14px; color: var(--navy);
}
.nav .lang:hover { border-color: var(--navy); text-decoration: none; }
@media (max-width: 719px) {
  .site-header .wrap { justify-content: center; }
  .brand img { width: 200px; }
  .nav { justify-content: center; gap: 2px 16px; }
}

/* Hero: echoes the letterhead's watermark */
.hero {
  background-color: var(--paper);
  background-image: url("watermark.png");
  background-repeat: no-repeat;
  background-position: center 70%;
  background-size: min(92%, 900px) auto;
  padding-block: 72px 80px;
  text-align: center;
}
.eyebrow { margin: 0 0 8px; color: var(--slate); font-size: 0.95rem; letter-spacing: 0; }
html[lang="en"] .eyebrow { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82rem; }
.hero h1 {
  margin: 0 auto; max-width: 22ch; color: var(--navy);
  font-size: clamp(1.7rem, 4.2vw, 2.6rem); line-height: 1.45; font-weight: 700;
}
html[lang="en"] .hero h1 { max-width: 26ch; line-height: 1.25; }
.hero p.lead { margin: 20px auto 0; max-width: 60ch; color: var(--slate); font-size: 1.1rem; }

/* Sections */
.section { padding-block: 64px; }
.section.tint { background: var(--tint); }
.section h2 {
  margin: 0 0 8px; color: var(--navy); font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.4;
}
.section h2::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--navy); margin-top: 12px;
}
.section .intro { margin: 16px 0 0; max-width: 70ch; color: var(--slate); }
.section h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.15rem; line-height: 1.5; }

.grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--paper); border: 1px solid #DCE0EA; border-radius: var(--radius);
  padding: 24px; border-top: 3px solid var(--navy);
}
.card p { margin: 0; color: var(--slate); }

.company-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.company-head h3 { margin: 0; }
.latin { color: var(--slate); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.08em; }
.badge {
  display: inline-block; font-size: 0.85rem; line-height: 1.6; padding: 2px 12px; border-radius: 999px;
  background: #E8EBF4; color: var(--navy); border: 1px solid var(--mist); white-space: nowrap;
}
.company p { margin-top: 12px; }

.list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; } }
.list li { position: relative; padding-inline-start: 22px; }
.list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.75em;
  width: 9px; height: 9px; background: var(--navy); transform: rotate(45deg);
}
html[lang="en"] .list li::before { top: 0.6em; }

/* Contact */
.contact { display: grid; gap: 16px; margin: 32px 0 0; }
@media (min-width: 720px) { .contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact div { background: var(--paper); border: 1px solid #DCE0EA; border-radius: var(--radius); padding: 20px 22px; }
.contact dt { color: var(--slate); font-size: 0.9rem; margin-bottom: 4px; }
.contact dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contact dd a { color: var(--navy); }

/* Footer */
.site-footer { border-top: 1px solid var(--navy); padding-block: 28px 36px; color: var(--slate); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 6px; text-align: center; }
.site-footer p { margin: 0; }
.site-footer .rule { width: 100%; height: 1px; background: var(--mist); margin: 6px 0 8px; border: 0; }

.section h3.sub { margin-top: 40px; }

/* Phone: keep the watermark below the text so it never sits behind the lead paragraph. */
@media (max-width: 719px) {
  .hero { padding-block: 48px 132px; background-position: center bottom 32px; background-size: 92% auto; }
}
