/* ARabiAI — shared stylesheet
   Design tokens per the ARabiAI design system (bridge concept). */

:root {
  --brand-blue: #16567A;
  --ink: #111111;
  --amber: #D68C2B;
  --paper: #F2F6F8;
  --deep-navy: #0E3A52;
  --line: #DCE3E7;
  --radius: 4px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; }
html[lang="en"] body { font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif; }

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] .kicker, html[lang="ar"] .display {
  font-family: 'El Messiri', serif;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .kicker, html[lang="en"] .display {
  font-family: 'Fraunces', serif;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em 0; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1em 0; max-width: 62ch; }

a { color: var(--brand-blue); }

/* Language visibility toggling */
[data-lang] { display: none; }
html[lang="ar"] [data-lang="ar"] { display: block; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="ar"] [data-lang="ar"].inline { display: inline; }
html[lang="en"] [data-lang="en"].inline { display: inline; }

/* Layout helpers */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.center { text-align: center; }

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; background: var(--brand-blue);
  color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { inset-inline-start: 12px; top: 12px; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--max-width); margin: 0 auto;
}
.logo {
  font-weight: 700; font-size: 1.3rem; color: var(--brand-blue);
  text-decoration: none; letter-spacing: 0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-blue); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  border: 1.5px solid var(--brand-blue); background: transparent; color: var(--brand-blue);
  border-radius: var(--radius); padding: 6px 14px; font-weight: 600; cursor: pointer;
  font-size: 0.9rem;
}
.lang-toggle:hover { background: var(--brand-blue); color: #fff; }

.menu-toggle {
  display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer;
  color: var(--brand-blue);
}

@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px 24px; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
}

/* Buttons */
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; font-size: 0.98rem; margin: 6px 8px 6px 0; }
[dir="rtl"] .btn { margin: 6px 0 6px 8px; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--brand-blue); border: 1.5px solid var(--brand-blue); }
.btn-secondary:hover { background: var(--brand-blue); color: #fff; }

/* Hero */
.hero { padding: 80px 0 40px 0; }
.kicker {
  display: inline-block; color: var(--brand-blue); font-weight: 700;
  letter-spacing: 0.08em; margin-bottom: 16px; font-size: 0.95rem;
}
.hero p.lead { font-size: 1.15rem; max-width: 60ch; }
.cta-row { margin-top: 24px; }

/* Bridge arc — the signature element */
.arc-wrap { display: flex; justify-content: center; margin: 24px 0 8px 0; }
.arc-large { width: 100%; max-width: 480px; height: auto; }
.arc-small { width: 140px; height: auto; opacity: 0.9; }
.arc-divider { display: flex; justify-content: center; padding: 8px 0 32px 0; }
.arc-mark { width: 48px; height: auto; }

/* Content blocks */
.lede { font-size: 1.05rem; max-width: 68ch; }
.divider { border: none; border-top: 1px solid var(--line); margin: 8px 0; }

/* Learn grid (no boxed cards — hairline separated) */
.learn-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .learn-grid { grid-template-columns: repeat(3, 1fr); }
}
.learn-item {
  padding: 28px 20px; border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
}
@media (min-width: 760px) {
  .learn-item:last-child { border-inline-end: none; }
}
.learn-icon { color: var(--brand-blue); margin-bottom: 14px; }
.learn-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.learn-item p { font-size: 0.96rem; color: #333; }

/* About / founders */
.founders-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; }
@media (min-width: 760px) { .founders-grid { grid-template-columns: repeat(2, 1fr); } }
.founders-grid .founder-block { margin-top: 0; }
.founder-role { color: var(--brand-blue); font-weight: 600; margin-bottom: 8px; }

.founder-block {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 12px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.founder-initial {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-blue); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1.3rem;
}
.vision-line {
  border-inline-start: 3px solid var(--amber); padding-inline-start: 16px; margin: 24px 0;
  font-style: italic; font-size: 1.05rem;
}

/* Workshops list */
.workshop-list { list-style: none; padding: 0; margin: 16px 0; }
.workshop-list li {
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem;
}
.coming-soon {
  margin-top: 20px; padding: 16px 20px; border-inline-start: 3px solid var(--amber);
  background: #fff;
}

/* Resources */
.resource-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
@media (min-width: 700px) {
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
}
.resource-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.resource-card img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.resource-card-body { padding: 18px; }
.resource-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.resource-card h3 a { color: var(--ink); text-decoration: none; }
.resource-card h3 a:hover { color: var(--brand-blue); }
.resource-card p { font-size: 0.92rem; color: #333; margin: 0; }
.resource-note { margin-top: 28px; font-size: 0.92rem; color: #555; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; font-size: 1.05rem;
}
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--brand-blue); }

/* Contact form */
.contact-form { max-width: 560px; margin-top: 16px; }
.contact-form p { margin: 0 0 16px 0; max-width: none; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--brand-blue); }
.contact-form button { border: none; cursor: pointer; font: inherit; }
.hidden-field { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.site-footer { background: var(--deep-navy); color: #fff; padding: 48px 0 28px 0; margin-top: 40px; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 500; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-note { font-size: 0.85rem; opacity: 0.7; }

/* Focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
