/*
Theme Name: Mostafa Gad Brand Theme
Theme URI: https://mostafagad.net
Author: Mostafa Gad
Author URI: https://mostafagad.net
Description: Premium bilingual executive WordPress theme for Mostafa Gad | The Idea Chain. Built for advisory, AI automation, training, research, insights, publications, and media presence.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mostafa-gad-brand-theme
Tags: custom-logo, one-column, featured-images, translation-ready, blog, portfolio, rtl-language-support
*/

:root {
  --navy: #0B1324;
  --navy-2: #07101F;
  --blue: #1E40AF;
  --gold: #C9A227;
  --white: #F8FAFC;
  --text: #1F2937;
  --gray: #E5E7EB;
  --muted: #64748B;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(11, 19, 36, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(11,19,36,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(248,250,252,.08);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-title {
  display: grid;
  gap: 0;
  line-height: 1.1;
}
.brand-title strong {
  font-size: 18px;
  letter-spacing: .01em;
}
.brand-title span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}
.brand-title small {
  color: rgba(248,250,252,.64);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 21px;
  color: rgba(248,250,252,.86);
  font-size: 14px;
  font-weight: 800;
}
.menu a:hover { color: var(--gold); }

.lang {
  display: flex;
  border: 1px solid rgba(201,162,39,.48);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  color: white;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.lang button.active {
  background: var(--gold);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
  box-shadow: 0 14px 30px rgba(201,162,39,.18);
}
.btn.secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.25);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 18%, rgba(30,64,175,.48), transparent 28%),
    radial-gradient(circle at 20% 85%, rgba(201,162,39,.12), transparent 26%),
    linear-gradient(135deg, #07101f, var(--navy) 62%, #05152d);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(201,162,39,.08) 1px, transparent 1px),
    linear-gradient(25deg, rgba(30,64,175,.14) 1px, transparent 1px);
  background-size: 120px 120px, 170px 170px;
  opacity: .7;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  align-items: center;
  padding: 98px 0 88px;
}
.eyebrow {
  display: block;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 16px;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 5.6vw, 76px); letter-spacing: -.055em; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.035em; }
h3 { font-size: 24px; }
.gold { color: var(--gold); }
.hero p {
  max-width: 740px;
  color: rgba(248,250,252,.80);
  font-size: 18px;
}
.subline {
  font-size: 24px !important;
  color: rgba(248,250,252,.92) !important;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-photo {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,.42);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.05);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.hero-photo:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.section { padding: 90px 0; }
.dark { background: var(--navy); color: white; }
.section-title {
  max-width: 840px;
  margin-bottom: 36px;
}
.section-title p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}
.dark .section-title p { color: rgba(248,250,252,.68); }

.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: center;
}
.panel {
  background: white;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.panel img {
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.highlight {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(30,64,175,.06);
  border: 1px solid rgba(30,64,175,.13);
  font-weight: 900;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: white;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 14px 40px rgba(11,19,36,.07);
}
.dark .card {
  background: rgba(248,250,252,.045);
  border-color: rgba(248,250,252,.12);
}
.card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.dark .card ul { color: rgba(248,250,252,.68); }
.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(201,162,39,.13);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 28px;
  margin-bottom: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(248,250,252,.05);
  border: 1px solid rgba(248,250,252,.12);
}
.step strong {
  display: block;
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 8px;
}

.work { overflow: hidden; padding: 0; }
.thumb {
  height: 178px;
  background:
    radial-gradient(circle at 70% 35%, rgba(201,162,39,.32), transparent 22%),
    linear-gradient(135deg, var(--navy), var(--blue));
}
.work div:last-child { padding: 24px; }
.badge {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric {
  text-align: center;
  background: white;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 28px;
}
.metric strong {
  display: block;
  font-size: 42px;
  color: var(--blue);
}

.form { display: grid; gap: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--gray);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}
textarea { min-height: 145px; }

.footer {
  background: #070d19;
  color: white;
  padding: 54px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.footer a {
  display: block;
  color: rgba(248,250,252,.76);
  margin: 8px 0;
}
.footer a:hover { color: var(--gold); }

.lang-ar {
  display: none;
  direction: rtl;
  font-family: "Alexandria", "Tahoma", Arial, sans-serif;
}
body.show-ar { direction: rtl; }
body.show-ar .lang-en { display: none; }
body.show-ar .lang-ar { display: block; }
body.show-ar .card ul { padding-left: 0; padding-right: 20px; }
body.show-ar .hero-grid,
body.show-ar .about-grid,
body.show-ar .contact-grid { direction: rtl; }

@media (max-width: 960px) {
  .menu { display: none; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid3, .steps, .metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .brand img { width: 46px; height: 46px; }
  .brand-title small { display: none; }
}
