/* =========================================================================
   Kizza vCards — Design System (matches kizza.com.sa chrome)
   Brand: green #2E813F · ink #231F20 · footer #051c14
   Typography: Noto Sans Arabic + Inter
   ========================================================================= */

:root {
  --green: #2E813F;
  --green-600: #266b34;
  --green-700: #1e5429;
  --green-50: #ecf5ee;
  --green-100: #d6e9da;
  --ink: #231F20;
  --footer-bg: #051c14;
  --hero-bg-1: #051c14;
  --hero-bg-2: #0a3a26;
  --bg: #ffffff;
  --surface: #f7f9f7;
  --surface-2: #eef2ef;
  --border: #e5e7e6;
  --border-strong: #cdd2cf;
  --text: #1f2421;
  --text-muted: #6b7569;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 20px;
  --shadow: 0 6px 20px rgba(35,31,32,.06), 0 2px 6px rgba(35,31,32,.04);
  --container: 1421px;
  --header-h: 62px;
  --header-pad-top: 30px;
  --font-ar: 'Noto Sans Arabic', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

/* ===== Floating glassmorphic header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  width: 100%;
  padding-top: var(--header-pad-top);
  pointer-events: none;
  transition: all .5s ease;
}
.site-header .header-inner {
  pointer-events: auto;
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(16.5px);
  -webkit-backdrop-filter: blur(16.5px);
}
.brand-mark {
  display: inline-flex; align-items: center;
  filter: brightness(0) invert(1);
  transition: opacity .2s ease;
}
.brand-mark:hover { opacity: .85; }
.brand-mark img { height: 32px; width: auto; display: block; }
.site-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color .2s ease;
}
.site-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-app {
  display: none;
  align-items: center; gap: 6px;
  background: #fff; color: #222120;
  font-size: 14px; font-weight: 600;
  padding: 8px 18px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .2s ease;
}
@media (min-width: 768px) { .btn-app { display: inline-flex; } }
.btn-app:hover { background: rgba(255,255,255,.92); }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
  color: var(--ink);
  font-size: 13px; font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all .2s ease;
}
.lang-toggle:hover { background: rgba(255,255,255,.85); }

/* ===== Dark hero (sits behind floating header) ===== */
.hero-dark {
  background:
    radial-gradient(1100px 400px at 20% -10%, rgba(46,129,63,.35) 0%, rgba(5,28,20,0) 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(46,129,63,.18) 0%, rgba(5,28,20,0) 55%),
    linear-gradient(180deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + var(--header-pad-top) + 32px) 0 64px;
}
.hero-dark > .container { position: relative; z-index: 2; }

/* Home page: photographic hero with darkening overlay */
.hero-dark.hero-home {
  background:
    linear-gradient(180deg, rgba(5,28,20,0.72) 0%, rgba(5,28,20,0.88) 100%),
    url("../images/home-hero.avif") center/cover no-repeat,
    var(--hero-bg-1);
}
.hero-dark.hero-home::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 20% 0%, rgba(46,129,63,.20) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* C-level pages: photographic hero with darkening overlay */
.hero-dark.hero-csuite {
  background:
    linear-gradient(180deg, rgba(5,28,20,0.78) 0%, rgba(5,28,20,0.92) 100%),
    url("../images/csuite-hero.avif") center/cover no-repeat,
    var(--hero-bg-1);
}
.hero-dark.hero-csuite::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 20% 0%, rgba(46,129,63,.20) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero-dark .crumbs { color: rgba(255,255,255,.6); padding: 0 0 16px; font-size: 13px; }
.hero-dark .crumbs a { color: rgba(255,255,255,.6); }
.hero-dark .crumbs a:hover { color: #fff; }
.hero-dark .crumbs .here { color: #fff; }
.hero-dark .crumbs .sep { margin-inline: 8px; opacity: .5; }

.hero-dark h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 16px 0 16px;
  color: #fff;
  font-weight: 800;
}
html[lang="ar"] .hero-dark h1 { letter-spacing: 0; line-height: 1.25; }
.hero-dark .lede {
  font-size: clamp(15px, 1.5vw, 19px);
  color: rgba(255,255,255,.78);
  max-width: 760px;
  margin: 0;
  font-weight: 300;
  line-height: 1.7;
}

/* ===== Cards section ===== */
.section { padding: 56px 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .25s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
html[dir="rtl"] .card::before { transform-origin: right; }
.card:hover {
  border-color: var(--green-100);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card:hover::before { transform: scaleX(1); }
.card .eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.card h3 { font-size: 22px; margin: 0 0 6px; color: var(--ink); font-weight: 800; }
.card .role { font-size: 14px; color: var(--text-muted); margin: 0 0 18px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.card .tag {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
}
.card .cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--green);
}
.card .cta::after { content: "→"; transition: transform .25s ease; }
html[dir="rtl"] .card .cta::after { content: "←"; }
.card:hover .cta::after { transform: translateX(4px); }
html[dir="rtl"] .card:hover .cta::after { transform: translateX(-4px); }

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 22px;
  margin-bottom: 18px;
  font-family: var(--font-en);
}
html[lang="ar"] .avatar { font-family: var(--font-ar); }

/* ===== Profile page (hero is dark, body is light) ===== */
.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px 0 12px;
}
.profile-hero .avatar-lg {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 42px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(46,129,63,.35);
}
.profile-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -.5px;
  font-weight: 800;
}
.profile-hero .title { font-size: 17px; color: #6cd47a; font-weight: 700; margin: 0 0 4px; }
.profile-hero .org { font-size: 14px; color: rgba(255,255,255,.6); margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  transition: all .2s ease;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.btn:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.btn.primary {
  background: var(--green); color: #fff; border-color: var(--green);
}
.btn.primary:hover { background: var(--green-600); border-color: var(--green-600); }
.btn .icon { width: 16px; height: 16px; }

.profile-body { padding: 56px 0 64px; }
.profile-body h2 {
  font-size: 13px; font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 36px 0 14px;
}
.profile-body h2:first-child { margin-top: 0; }
.profile-body .bio { font-size: 16px; color: var(--text); line-height: 1.85; max-width: 760px; margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 520px; }
.contact-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
}
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--green); }
.contact-list .lbl {
  font-size: 11px; text-transform: uppercase;
  font-weight: 700; color: var(--text-muted);
  letter-spacing: 1px;
  margin-inline-end: auto;
}

.timeline { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.timeline li {
  position: relative;
  padding-inline-start: 26px;
  padding-block: 14px;
  border-inline-start: 2px solid var(--border-strong);
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -7px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
}
.timeline .role { font-weight: 700; color: var(--ink); margin: 0 0 2px; font-size: 15px; }
.timeline .org { color: var(--text); margin: 0 0 2px; font-size: 14px; }
.timeline .when { color: var(--text-muted); font-size: 12px; margin: 0; }

.qr-block {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin-top: 36px;
  padding: 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  max-width: 200px;
}
.qr-block .qr {
  width: 156px; height: 156px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: grid; place-items: center;
  color: var(--text-muted); font-size: 11px;
  overflow: hidden;
}
.qr-block .qr svg { width: 100%; height: 100%; display: block; }
.qr-block .qr-cap { font-size: 12px; color: var(--text-muted); }

/* Force LTR for phone numbers, emails, URLs in RTL context */
.ltr {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}

/* ===== Footer (matches kizza.com.sa) ===== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg);
  color: #fff;
  padding: 64px 0 28px;
  margin-top: 72px;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/wave.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; gap: 56px; } }

.footer-brand {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 24px;
  width: 100%;
}
@media (min-width: 768px) { .footer-brand { width: auto; } }
.footer-brand .logo-row {
  display: inline-flex; align-items: center;
  filter: brightness(0) invert(1);
}
.footer-brand .logo-row img { height: 36px; width: auto; display: block; }
.footer-brand .tag {
  max-width: 320px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: rgb(209 213 219);
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  flex: 1;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .footer-cols {
    display: flex; flex-wrap: wrap;
    justify-content: flex-end;
    gap: 48px;
  }
  .footer-cols > div { min-width: 150px; }
}
@media (min-width: 1024px) {
  .footer-cols { gap: 64px; }
  .footer-cols > div { min-width: 180px; }
}
.footer-cols h4 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-cols li { transition: transform .2s ease; }
.footer-cols li:hover { transform: translateX(4px); }
html[dir="rtl"] .footer-cols li:hover { transform: translateX(-4px); }
.footer-cols a {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgb(156 163 175);
  font-size: 15px;
  transition: color .2s ease;
}
.footer-cols a:hover { color: #fff; }

.footer-bottom {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 32px;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-bottom .copyright { font-size: 16px; color: rgb(156 163 175); margin: 0; }
.socials { display: flex; gap: 16px; }
.socials a { color: rgb(156 163 175); transition: all .2s ease; }
.socials a:hover { color: #fff; transform: scale(1.1); }
.socials svg { width: 22px; height: 22px; }

/* ===== vCard download CTA card ===== */
.vcf-cta {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  margin: 24px 0 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  max-width: 760px;
  box-shadow: 0 10px 30px rgba(46,129,63,.20);
  flex-wrap: wrap;
}
.vcf-cta .vcf-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.vcf-cta .vcf-icon svg { width: 26px; height: 26px; color: #fff; }
.vcf-cta .vcf-text { flex: 1; min-width: 200px; }
.vcf-cta .vcf-text h3 {
  margin: 0 0 4px; font-size: 17px; font-weight: 700;
  color: #fff;
}
.vcf-cta .vcf-text p {
  margin: 0; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 400;
}
.vcf-cta .vcf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 14px; font-weight: 700;
  transition: all .2s ease;
}
.vcf-cta .vcf-btn:hover { background: rgba(255,255,255,.92); transform: translateY(-1px); }
.vcf-cta .vcf-btn svg { width: 16px; height: 16px; }

/* ===== Sitemap ===== */
.sitemap-list { padding: 24px 0 64px; }
.sitemap-list h2 {
  font-size: 14px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--green);
  font-weight: 700; margin: 28px 0 12px;
}
.sitemap-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sitemap-list a { color: var(--ink); font-weight: 500; }
.sitemap-list a:hover { color: var(--green); text-decoration: underline; }

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .site-header .header-inner { padding: 0 16px; }
  .profile-hero { grid-template-columns: 1fr; gap: 18px; padding: 8px 0 4px; }
  .profile-hero .avatar-lg { width: 88px; height: 88px; font-size: 32px; }
  .profile-body { padding: 40px 0 56px; }
  .section { padding: 40px 0; }
  .hero-dark { padding: calc(var(--header-h) + var(--header-pad-top) + 16px) 0 48px; }
}
