/* Ayman Hisham — digital card.
   Built to Kroobia Brand Guidelines v1.0 (September 2026).

   The rules this file obeys, written down so a later edit does not quietly
   break them:
   · palette and roles from §09–§10 — surfaces 60 / ink 30 / green 10
   · Montserrat for English (§12); Tajawal only where Arabic appears (§13)
   · the gradient appears ONCE, as display text on the charcoal block (§11) —
     never behind copy, on a button, on a card, or as a section ground
   · the logo greens are fills; they never become text on a light surface (§10)
   · radii 6 chips / 10 buttons / 16 cards / 24 panels, spacing on the
     4·8·12·16·24·32·48·64 scale (§16)
   · borders separate; shadows only for things that float (§16) */

:root {
  /* §09 — the palette, verbatim */
  --brand: #4f7f4d;
  --brand-hover: #2f5c33;
  --brand-active: #1f3f22;
  --logo-green: #6eb26c;
  --logo-lime: #bac35a;
  --wordmark: #404041;
  --ink: #26262a;
  --ink-muted: #5f6360;
  --charcoal: #2a2a2c;
  --brand-soft: #e9f0e6;
  --sunken: #f4f6f2;
  --white: #ffffff;

  --surface: var(--white);
  --page: var(--sunken);
  --line: #e3e7df;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* §16 */
  --r-button: 10px;
  --r-card: 16px;
  --r-panel: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  padding: 24px 16px 48px;
}

.card { max-width: 560px; margin: 0 auto; }

/* ---------- the charcoal block · §10, one per composition ---------- */

.head {
  padding: 32px 24px;
  border-radius: var(--r-panel);
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.head .lockup { display: block; width: 136px; height: auto; margin: 0 auto; }

.head .photo {
  display: block;
  width: 104px;
  height: 104px;
  margin: 24px auto 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .28);
}

h1 {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.role {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  /* §10 — accents on the charcoal block are lime */
  color: var(--logo-lime);
}

/* §11 — the one sanctioned gradient: display text on a charcoal ground.
   `color` stays lime underneath so the line survives an engine that drops
   background-clip rather than vanishing. */
.brandline {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--logo-lime);
  background: linear-gradient(90deg, var(--logo-lime) 0%, var(--logo-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}

.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { width: 16px; height: 16px; flex: none; }
.meta a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .28); }

/* ---------- sections ---------- */

section { margin-top: 32px; }

h2 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- the one primary action · §10 ---------- */

.book {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-button);
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
}

.book:hover { background: var(--brand-hover); }
.book:active { background: var(--brand-active); }

.book b { display: block; font-size: 16px; font-weight: 600; }
.book small { display: block; font-size: 13px; color: rgba(255, 255, 255, .82); }
.book > svg { flex: none; width: 24px; height: 24px; }
.book .go { margin-left: auto; width: 20px; height: 20px; flex: none; opacity: .8; }

/* ---------- cards · borders separate, no shadows ---------- */

.sites { display: grid; gap: 12px; }

.site {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.site:hover { border-color: var(--brand); }

.site .ic {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-button);
  background: var(--brand-soft);
  /* §10 — deep green is the text colour inside a green tint */
  color: var(--brand-hover);
}

.site .ic svg { width: 22px; height: 22px; }
.site b { display: block; font-size: 16px; font-weight: 600; }
.site small { display: block; font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.site .go { margin-left: auto; width: 20px; height: 20px; flex: none; color: var(--ink-muted); }

/* ---------- reach ---------- */

.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.reach a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.reach a:hover { border-color: var(--brand); }
.reach svg { width: 24px; height: 24px; color: var(--brand); }

.save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--brand);
  border-radius: var(--r-button);
  background: var(--surface);
  color: var(--brand-hover);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.save:hover { background: var(--brand-soft); }
.save svg { width: 20px; height: 20px; }

/* ---------- footer ---------- */

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

footer img { width: 92px; height: auto; }

@media (max-width: 380px) {
  .reach { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 24px; }
  .brandline { font-size: 20px; }
}
