/* business.mkw.group — Training & Business Services hub
 * Theme: warm ivory + deep amber + charcoal — knowledge & enterprise.
 * Visually distinct from estates.mkw.group (parchment+terracotta) by
 * (1) ivory base, (2) amber accent system, (3) geometric sun-burst hero. */

:root {
  --bg-cream:    #FAF7F2;
  --bg-card:     #FFFFFF;
  --ink:         #1F2937;
  --ink-soft:    #4B5563;
  --line:        rgba(31, 41, 55, 0.10);
  --amber:       #B45309;
  --amber-soft:  #FCD34D;
  --amber-bg:    #FEF3C7;
  --charcoal:    #111827;
  --terracotta:  #B45309;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-cream); color: var(--ink); font-family: 'Cairo', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body[lang="en"] { font-family: 'Inter', sans-serif; }
a { color: inherit; text-decoration: none; }

.section-title {
  font-family: 'Playfair Display', 'Amiri', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}
body[lang="ar"] .section-title { font-family: 'Amiri', 'Playfair Display', Georgia, serif; }

.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  border-bottom: 2px solid var(--amber-soft);
  padding-bottom: 0.2rem;
  margin-bottom: 1rem;
}

.lang-toggle-floating {
  position: fixed; inset-inline-end: 1rem; top: 1rem; z-index: 50;
  font-size: 0.78rem; font-weight: 700;
  background: var(--charcoal); color: #FEF3C7;
  border: none; border-radius: 9999px;
  padding: 8px 18px; cursor: pointer;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ── HERO — sunburst rays + warm wash ── */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(252, 211, 77, 0.45), transparent 65%),
    linear-gradient(180deg, #FFFBEB 0%, var(--bg-cream) 60%);
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(from 90deg at 50% 100%,
      rgba(180, 83, 9, 0.06) 0deg 6deg,
      transparent 6deg 18deg);
  opacity: 0.55;
  pointer-events: none;
}
.hero-content { position: relative; max-width: 56rem; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 1rem;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.22);
  border-radius: 9999px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  margin-bottom: 1.75rem;
}
.hero-badge::before {
  content: '✦';
  font-size: 0.85rem;
  color: var(--amber);
  text-shadow: 0 0 8px rgba(252, 211, 77, 0.6);
}
.hero-badge-link { text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.hero-badge-link:hover { background: rgba(180, 83, 9, 0.14); border-color: rgba(180, 83, 9, 0.4); }
.hero-badge-link img { height: 1.9rem; width: auto; }
.hero-title {
  font-family: 'Amiri', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 700; line-height: 1.25;
  color: var(--charcoal);
  max-width: 44rem;
  margin: 0 auto 1.25rem;
}
body[lang="en"] .hero-title { font-family: 'Playfair Display', Georgia, serif; }
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.hero-ctas { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.95rem;
  background: var(--amber); color: #FFFBEB;
  padding: 0.9rem 1.75rem; border-radius: 9999px;
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(180, 83, 9, 0.3); }

/* ── STATS ── */
.stats { padding: 0 1.5rem; margin-top: -2.5rem; position: relative; z-index: 5; }
.stats-card {
  max-width: 60rem; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(31, 41, 55, 0.18);
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat { text-align: center; padding: 0 0.5rem; }
.stat-value {
  font-family: 'Playfair Display', 'Amiri', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--amber);
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.25rem;
}
@media (max-width: 600px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* ── INTRO ── */
.intro { max-width: 50rem; margin: clamp(4rem, 8vw, 6rem) auto; padding: 0 1.5rem; text-align: center; }
.intro-body {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.95;
  max-width: 42rem;
  margin: 1.25rem auto 0;
}

/* ── BRANDS ── */
.brands { padding: clamp(4rem, 8vw, 6rem) 1.5rem; max-width: 78rem; margin: 0 auto; }
.brands-header { text-align: center; margin-bottom: 2.5rem; }
.brands-subtitle { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.6rem; }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; }

.brand-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.22s, box-shadow 0.22s;
  overflow: hidden;
}
.brand-card::before {
  content: '';
  position: absolute; top: 0; inset-inline-start: 0;
  width: 5px; height: 100%;
  background: var(--accent, var(--amber));
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(31, 41, 55, 0.25); }
.brand-head { display: flex; gap: 1.1rem; align-items: center; }
.brand-logo {
  width: 4.5rem; height: 4.5rem;
  border-radius: 0.85rem;
  background: var(--amber-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.brand-letter {
  font-family: 'Amiri', 'Playfair Display', Georgia, serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--accent, var(--amber));
}
.brand-meta { flex: 1; min-width: 0; }
.brand-name {
  font-family: 'Amiri', 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); margin: 0; line-height: 1.15;
  padding-inline-start: 0.75rem;
}
body[lang="en"] .brand-name { font-family: 'Playfair Display', Georgia, serif; }
.brand-name-en {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline;
  margin-inline-start: 0.4rem;
  vertical-align: middle;
}
body[lang="en"] .brand-name-en { display: none; }
.brand-role {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent, var(--amber));
  background: rgba(180, 83, 9, 0.08);
  padding: 0.3rem 0.75rem; border-radius: 9999px;
  margin-top: 0.5rem;
}
.brand-since { font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.4rem; letter-spacing: 0.04em; }
.brand-desc { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.75; }
.brand-services { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; font-size: 0.88rem; }
.brand-services-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin-bottom: 0.45rem;
}
.brand-services li { position: relative; padding-inline-start: 1.2rem; color: var(--ink); }
.brand-services li::before {
  content: ''; position: absolute;
  inset-inline-start: 0; top: 0.6rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--amber));
}
.brand-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.88rem;
  color: var(--accent, var(--amber));
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--accent, var(--amber));
  border-radius: 9999px;
  align-self: flex-start;
  transition: background 0.18s, color 0.18s;
}
.brand-cta:hover { background: var(--accent, var(--amber)); color: #FFFBEB; }

/* ── PER-BRAND ACTIONS ── */
.brand-actions {
  display: flex; flex-direction: column;
  align-items: stretch; gap: 0.6rem;
  margin-top: 0.4rem;
  width: fit-content; max-width: 100%;
}
.brand-actions .brand-contact-row { display: flex; flex-wrap: nowrap; gap: 0.5rem; }
.brand-actions .brand-cta { margin-top: 0; text-align: center; justify-content: center; }
.brand-contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent, var(--amber)) 30%, transparent);
  color: var(--accent, var(--amber));
  background: color-mix(in srgb, var(--accent, var(--amber)) 8%, transparent);
  transition: background 0.18s, transform 0.18s;
}
.brand-contact-icon:hover {
  background: color-mix(in srgb, var(--accent, var(--amber)) 18%, transparent);
  transform: translateY(-1px);
}

/* ── NESTED CHILD BRANDS ── */
.brand-child {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--amber)) 6%, #ffffff);
  border-inline-start: 3px solid var(--accent, var(--amber));
}
.brand-child-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.55rem; }
.brand-child-logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.brand-child-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-child-logo .brand-letter { font-size: 1.3rem; color: var(--accent, var(--amber)); }
.brand-child-name { margin: 0; font-size: 1rem; font-weight: 700; }
.brand-child-role { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.1rem; }
.brand-child-desc { font-size: 0.82rem; line-height: 1.6; margin: 0.4rem 0 0.6rem; color: var(--ink); }
.brand-child-cta {
  display: inline-flex; font-size: 0.78rem; font-weight: 700;
  color: var(--accent, var(--amber));
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── CHAIN — dark band with charcoal background, amber highlights ── */
.chain {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: #FAF7F2;
  padding: clamp(5rem, 10vw, 7rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.chain::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(252, 211, 77, 0.14), transparent 60%);
}
.chain-inner { position: relative; max-width: 56rem; margin: 0 auto; }
.chain .kicker { color: var(--amber-soft); border-bottom-color: var(--amber-soft); }
.chain .section-title { color: #FFFBEB; }
.chain-body {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.95;
  color: rgba(250, 247, 242, 0.85);
  max-width: 36rem;
  margin: 1.5rem auto 0;
  text-align: start;
}
.chain-body strong { color: var(--amber-soft); font-weight: 700; }
.chain-body .chain-lead { margin: 0 0 0.85rem; text-align: center; color: rgba(250, 247, 242, 0.95); }
.chain-body .chain-list { list-style: none; padding: 0; margin: 0 auto 1.1rem; display: grid; gap: 0.55rem; }
.chain-body .chain-list li { position: relative; padding-inline-start: 1.4rem; }
.chain-body .chain-list li::before {
  content: '✦'; position: absolute;
  inset-inline-start: 0; top: 0.05em;
  color: var(--amber-soft); font-size: 0.85em;
}
.chain-body .chain-outro { margin: 0; text-align: center; font-style: italic; color: rgba(250, 247, 242, 0.78); }

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal);
  color: rgba(250, 247, 242, 0.65);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.endorsement {
  display: inline-flex; flex-direction: row; align-items: center; gap: 0.7rem;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(250, 247, 242, 0.12);
  border-radius: 0.85rem;
  background: rgba(250, 247, 242, 0.03);
  transition: background 0.2s;
  margin-bottom: 1.5rem;
}
.endorsement:hover { background: rgba(250, 247, 242, 0.06); }
.endorsement-line { font-size: 0.85rem; color: rgba(250, 247, 242, 0.78); }
.endorsement.endorsement-inline img { height: 2.4rem; filter: brightness(1.05); }
.footer-copy { font-size: 0.72rem; color: rgba(250, 247, 242, 0.4); margin-top: 1rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* responsive */
@media (max-width: 480px) {
  .lang-toggle-floating { padding: 6px 14px; font-size: 12px; }
  .brand-card { padding: 1.5rem 1.25rem; }
  .brand-logo { width: 3.8rem; height: 3.8rem; }
  .brand-name { font-size: 1.3rem; }
}
