/* =========================================================
   BAYNAN PARTNERS — Stylesheet
   Palette: Navy #0F2042 · Gold #D4A33A · Cream #F4F2EC
   ========================================================= */

:root {
  --navy: #0F2042;
  --navy-dark: #0A1730;
  --navy-soft: #1A2D55;
  --gold: #D4A33A;
  --gold-light: #E2B85A;
  --cream: #F4F2EC;
  --cream-dark: #E8E5DC;
  --white: #FFFFFF;
  --gray-900: #1F2937;
  --gray-700: #4B5563;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --shadow-soft: 0 10px 40px rgba(15, 32, 66, 0.08);
  --shadow-hover: 0 14px 50px rgba(15, 32, 66, 0.16);
  --transition: 0.25s ease;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* RTL adjustments */
html[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', 'Manrope', sans-serif;
}
html[dir="rtl"] .reverse-rtl { flex-direction: row-reverse; }

/* ----- Container ----- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(15, 32, 66, 0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: block; height: 52px; width: auto; }
@media (max-width: 720px) {
  .site-header .container { height: 68px; }
  .brand-logo { height: 40px; }
}
/* Legacy SVG mark + text styles — kept for backwards compatibility */
.brand-mark { width: 38px; height: 38px; }
.brand-text { font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -0.01em; line-height: 1.1; }
.brand-text small { display: block; font-weight: 500; font-size: 10px; color: var(--gray-500); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--gold); }

.lang-switch { display: inline-flex; background: var(--white); border: 1px solid var(--cream-dark); border-radius: 999px; padding: 4px; font-size: 12px; font-weight: 700; }
.lang-switch button { background: transparent; border: 0; cursor: pointer; padding: 6px 12px; border-radius: 999px; color: var(--gray-700); font-weight: 700; font-size: 12px; font-family: inherit; }
.lang-switch button.is-active { background: var(--navy); color: var(--white); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  cursor: pointer; border: 0; font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 163, 58, 0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }

/* ----- Hero ----- */
.hero {
  position: relative; background: var(--navy); color: var(--white);
  overflow: hidden; padding: 96px 0 120px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(212, 163, 58, 0.15), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(26, 45, 85, 0.6), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-block; color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding-left: 14px; border-left: 3px solid var(--gold); margin-bottom: 24px; }
html[dir="rtl"] .hero-eyebrow { padding-left: 0; padding-right: 14px; border-left: 0; border-right: 3px solid var(--gold); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; max-width: 920px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { margin-top: 24px; font-size: 18px; max-width: 660px; color: rgba(255,255,255,0.78); }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.hero-stats .stat { background: rgba(255,255,255,0.06); border-left: 3px solid var(--gold); padding: 22px 24px; border-radius: 4px 12px 12px 4px; }
html[dir="rtl"] .hero-stats .stat { border-left: 0; border-right: 3px solid var(--gold); border-radius: 12px 4px 4px 12px; }
.hero-stats .stat .num { font-size: 32px; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stats .stat .label { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.75); }

/* ----- Section base ----- */
section { padding: 96px 0; }
.section-eyebrow { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; max-width: 760px; }
.section-lead { margin-top: 18px; color: var(--gray-700); font-size: 17px; max-width: 720px; }

/* ----- Who we are ----- */
.who { background: var(--cream); }
.who-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.who-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/5; }
.who-image img { width: 100%; height: 100%; object-fit: cover; }
.who-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 32, 66, 0.35)); }
.who-image .badge { position: absolute; bottom: 24px; left: 24px; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; }

/* ----- Purpose / Why ----- */
.purpose { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
.purpose-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.purpose-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 36px; box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
html[dir="rtl"] .purpose-card { border-left: 0; border-right: 4px solid var(--gold); }
.purpose-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.purpose-card .arabic { font-family: 'Cairo', serif; font-size: 26px; color: var(--navy); font-weight: 700; }
.purpose-card .latin { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px; }
.purpose-card h3 { margin-top: 16px; font-size: 22px; color: var(--navy); font-weight: 700; }
.purpose-card p { margin-top: 10px; color: var(--gray-700); }

.mission-box { margin-top: 48px; background: var(--navy); color: var(--white); padding: 36px 40px; border-radius: var(--radius-md); border-left: 4px solid var(--gold); }
html[dir="rtl"] .mission-box { border-left: 0; border-right: 4px solid var(--gold); }
.mission-box .label { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.mission-box p { margin-top: 12px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.92); }

/* ----- Two Sides of the Bridge ----- */
.two-sides { background: var(--white); }
.two-sides-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.side-card {
  background: var(--cream); border-radius: var(--radius-md);
  padding: 40px 36px; box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.side-card .side-tag { display: inline-block; background: var(--navy); color: var(--white); padding: 6px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; align-self: flex-start; }
.side-card h3 { margin-top: 20px; font-size: 22px; color: var(--navy); font-weight: 700; line-height: 1.3; }
.side-card > p { margin-top: 14px; color: var(--gray-700); font-size: 15.5px; }
.side-card ul { margin-top: 20px; padding-left: 0; list-style: none; flex-grow: 1; }
.side-card ul li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--gray-700); font-size: 14.5px; }
.side-card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
html[dir="rtl"] .side-card ul li { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .side-card ul li::before { left: auto; right: 0; }
.side-card .side-link { margin-top: 24px; color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; align-self: flex-start; }
.side-card .side-link:hover { color: var(--gold); }

/* ----- Service grid 2-column variant ----- */
.service-grid--two { grid-template-columns: 1fr 1fr; }
.service-card .service-target { margin-top: 6px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.service-card .service-bullets { margin-top: 18px; padding-left: 0; list-style: none; }
.service-card .service-bullets li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--gray-700); font-size: 15px; line-height: 1.5; }
.service-card .service-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
html[dir="rtl"] .service-card .service-bullets li { padding-left: 0; padding-right: 22px; }
html[dir="rtl"] .service-card .service-bullets li::before { left: auto; right: 0; }
.service-card .service-bullets strong { color: var(--navy); }
.service-card .service-ref { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--cream-dark); color: var(--gray-500); font-size: 13px; }

/* ----- Services ----- */
.services { background: var(--cream); }
.service-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); padding: 36px 30px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card .num { font-size: 14px; font-weight: 800; color: var(--gold); letter-spacing: 0.1em; }
.service-card h3 { margin-top: 14px; font-size: 20px; color: var(--navy); font-weight: 700; line-height: 1.3; }
.service-card p { margin-top: 14px; color: var(--gray-700); flex-grow: 1; }
.service-card::before {
  content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px;
  background: var(--gold); transform: scaleX(0.3); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
html[dir="rtl"] .service-card::before { transform-origin: right; }

/* ----- Edge / How we differ ----- */
.edge { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.edge::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(212,163,58,0.12), transparent 50%);
}
.edge .container { position: relative; z-index: 2; }
.edge .section-title { color: var(--white); }
.edge .section-eyebrow { color: var(--gold); }
.edge-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edge-card { padding: 30px 4px; border-top: 1px solid rgba(255,255,255,0.18); }
.edge-card .big-num { font-size: 64px; font-weight: 800; color: var(--gold); line-height: 1; }
.edge-card h4 { margin-top: 18px; font-size: 22px; font-weight: 700; color: var(--white); }
.edge-card p { margin-top: 14px; color: rgba(255,255,255,0.75); }

.edge-footer { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); font-style: italic; font-size: 18px; color: rgba(255,255,255,0.85); text-align: center; }

/* ----- Clients ----- */
.clients { background: var(--cream); }
.client-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-soft); transition: transform var(--transition); }
.client-card:hover { transform: translateY(-4px); }
.client-name { font-size: 20px; font-weight: 800; color: var(--navy); }
.client-mission { margin-top: 8px; font-size: 13px; color: var(--gray-500); font-style: italic; }
.client-card hr { border: 0; height: 1px; background: var(--cream-dark); margin: 18px 0; }
.client-results-label { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; }
.client-results { margin-top: 10px; padding-left: 18px; }
html[dir="rtl"] .client-results { padding-left: 0; padding-right: 18px; }
.client-results li { font-size: 13px; color: var(--gray-700); margin-bottom: 8px; line-height: 1.5; }
.client-results li::marker { color: var(--gold); }

/* ----- Founder ----- */
.founder { background: var(--white); }
.founder-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.founder-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3/4; background: var(--cream); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.founder-info h3 { font-size: 28px; color: var(--navy); margin-top: 18px; }
.founder-info .title { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; }
.founder-info p.bio { margin-top: 20px; color: var(--gray-700); font-size: 16px; }
.founder-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.founder-tags .tag { background: var(--cream); color: var(--navy); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--cream-dark); }
.founder-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ----- CTA block ----- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white); text-align: center; padding: 96px 0;
  position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold); }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; max-width: 720px; margin: 0 auto; }
.cta p { margin-top: 16px; color: rgba(255,255,255,0.75); font-size: 18px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 36px; }

/* ----- Footer ----- */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-logo--footer { height: auto; width: 220px; max-width: 100%; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-col h5 { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,0.78); font-size: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .who-grid, .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .who-image, .founder-photo { max-width: 480px; margin: 0 auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .edge-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
  .two-sides-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 80px; }
  .nav { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .service-grid, .edge-grid, .client-grid, .two-sides-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ----- Utilities ----- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
[hidden] { display: none !important; }
