/* FGC Meet — Farouk Group identity-aligned landing
   Palette derived from faroukgroup.com/ar:
   coral #fd9b5f, accent #ff3656, cream #fdf1ef, navy #1e3a8a, ink #111
*/

:root {
  --fg-coral: #fd9b5f;
  --fg-coral-soft: #f7ad6b;
  --fg-rose: #ff3656;
  --fg-cream: #fdf1ef;
  --fg-cream-2: #f8ebe6;
  --fg-navy: #1e3a8a;
  --fg-ink: #111111;
  --fg-muted: #5c5c5c;
  --fg-line: rgba(17, 17, 17, 0.1);
  --fg-white: #ffffff;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--fg-ink);
  background: var(--fg-white);
  font-family: var(--font-ar);
}

html[dir="ltr"] body { font-family: var(--font-en); }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3.5vw, 40px) clamp(20px, 5vw, 72px) 28px;
  gap: clamp(28px, 5vh, 56px);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: clamp(88px, 12vw, 132px);
  width: auto;
  max-width: min(280px, 62vw);
  object-fit: contain;
  display: block;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.lang-sep {
  opacity: 0.45;
  user-select: none;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  margin: 0;
  color: var(--fg-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-btn.is-active {
  color: var(--fg-navy);
  border-bottom-color: var(--fg-coral);
}

.lang-btn:hover { color: var(--fg-ink); }
.lang-btn:focus-visible {
  outline: 2px solid var(--fg-coral);
  outline-offset: 4px;
  border-radius: 2px;
}

.hero {
  width: min(720px, 100%);
  margin: 0 auto;
  align-self: center;
  text-align: center;
  padding: clamp(12px, 2vh, 28px) 0;
}

.kicker {
  margin: 0 0 18px;
  color: var(--fg-navy);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fg-ink);
}

.subtitle {
  margin: 16px 0 0;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  color: var(--fg-navy);
}

.desc {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.8;
  color: var(--fg-muted);
  font-weight: 500;
}

.parent {
  margin: 28px 0 0;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(253, 155, 95, 0.14);
  color: #9a4a1f;
  font-size: 0.88rem;
  font-weight: 700;
}

.error-panel {
  width: min(720px, 100%);
  margin: -12px auto 0;
  background: #fff5f5;
  border: 1px solid rgba(255, 54, 86, 0.25);
  color: #9b1c1c;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: start;
}
.error-panel[hidden] { display: none !important; }
.error-panel h2 { margin: 0 0 8px; font-size: 1rem; }
.error-panel p { margin: 4px 0; font-size: 0.9rem; }

.footer {
  border-top: 1px solid var(--fg-line);
  padding-top: 22px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-product {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg-ink);
}

.footer-sub {
  margin: 6px 0 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.desktop-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--fg-navy);
  font-weight: 700;
  text-decoration: none;
}
.desktop-link:hover { color: var(--fg-rose); text-decoration: underline; }
.desktop-link:focus-visible { outline: 2px solid var(--fg-coral); outline-offset: 3px; }

.footer-corp {
  text-align: end;
  max-width: 28rem;
}

html[dir="rtl"] .footer-corp { text-align: start; }
html[dir="ltr"] .footer-corp { text-align: right; }

.footer-company {
  color: var(--fg-navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
}
.footer-company:hover { color: var(--fg-rose); text-decoration: underline; }
.footer-company:focus-visible {
  outline: 2px solid var(--fg-coral);
  outline-offset: 3px;
}

.footer-values,
.footer-msg,
.copyright {
  margin: 8px 0 0;
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-msg { font-weight: 600; color: #7a4a32; }
.copyright { margin-top: 18px; font-size: 0.84rem; }

@media (max-width: 768px) {
  .shell { gap: 36px; padding-bottom: 22px; }
  .footer-inner { flex-direction: column; }
  .footer-corp,
  html[dir="ltr"] .footer-corp,
  html[dir="rtl"] .footer-corp { text-align: start; }
}

@media (max-width: 480px) {
  .logo { height: 76px; max-width: 58vw; }
  .lang { font-size: 0.86rem; gap: 8px; }
  .product { letter-spacing: -0.02em; }
}
