/* ============================================================
   Core Group — Shared Styles
   beirutcore.com
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--black);
  background: var(--bone);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--slate);
  height: 64px;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-text {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
}
.header-center { display: flex; align-items: center; gap: 0; }
.nav-link {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--gold);
}
.nav-link + .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(212, 197, 176, 0.2);
}
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--stone); }
.lang-toggle .active-lang { color: var(--white); }
.lang-toggle .ar-text { font-size: 13px; }
.header-sep { width: 1px; height: 20px; background: rgba(212,197,176,0.2); }
.briefing-btn {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.briefing-btn:hover { background: var(--gold); color: var(--white); }

/* ── Mobile Menu ──────────────────────────────────────────── */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--slate);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay .nav-link { font-size: 22px; padding: 12px 0; height: auto; }
.mobile-overlay .nav-link + .nav-link::before { display: none; }
.mobile-overlay .nav-link.active::after {
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ── Common Sections ──────────────────────────────────────── */
.section { padding: 80px 5%; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-dark { background: var(--slate); color: var(--white); }
.section-parchment { background: var(--parchment); }
.section-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: 36px;
  color: var(--black);
  text-align: center;
  margin-bottom: 12px;
}
.section-dark .section-heading { color: var(--white); }
.sub-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  color: var(--black);
  margin-bottom: 12px;
}
.gold-divider { width: 60px; height: 2px; background: var(--gold); margin: 0 auto 40px; }
.gold-divider-left { width: 60px; height: 2px; background: var(--gold); margin: 0 0 32px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  display: inline-block;
}
.btn-outline { border: 1.5px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--slate); }
.btn-gold { background: var(--gold); color: var(--white); border: 1.5px solid var(--gold); }
.btn-gold:hover { background: var(--olive); border-color: var(--olive); }

/* ── Page Header / Breadcrumb ─────────────────────────────── */
.page-header { padding: 48px 5% 0; }
.page-header-inner { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--stone); margin-bottom: 24px; }
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--black); }
.page-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}
.page-title-divider { width: 60px; height: 2px; background: var(--gold); margin-bottom: 32px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--slate); border-top: 2px solid var(--gold); }
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 5% 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-col-heading {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-top: 0;
}
.footer-identity .footer-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer-identity .footer-logo-row img { height: 32px; width: auto; display: block; }
.footer-identity .footer-logo-text {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-identity .footer-descriptor {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1;
}
.footer-identity .footer-address { font-size: 12px; color: var(--stone); line-height: 1.7; }
.footer-main > div:not(.footer-identity) { padding-top: 6px; }
.footer-link {
  display: block;
  font-size: 14px;
  color: var(--stone);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }
.social-row { display: flex; gap: 16px; margin-bottom: 16px; }
.social-icon { width: 20px; height: 20px; color: var(--stone); transition: color 0.2s; }
.social-icon:hover { color: var(--white); }
.footer-contact-text { font-size: 13px; color: var(--stone); line-height: 1.8; }
.footer-contact-text a { color: var(--stone); text-decoration: none; }
.footer-contact-text a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 5%;
  margin-top: 40px;
  border-top: 1px solid rgba(212,197,176,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 11px; color: var(--stone); }

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Key Statement Highlight ──────────────────────────────── */
.key-statement {
  font-family: var(--display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 0;
}
.section-dark .key-statement { color: var(--stone); }

/* ── Sub-section Label ────────────────────────────────────── */
.sub-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-dark .sub-label { color: var(--stone); }

/* ── Enhanced Card Hover ──────────────────────────────────── */
.card, .audience-card, .engagement-card, .leader-card, .product-card {
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover, .audience-card:hover, .engagement-card:hover, .leader-card:hover, .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ── Responsive: Shared ───────────────────────────────────── */
@media (max-width: 768px) {
  .header-center { display: none; }
  .header-right .header-sep { display: none; }
  .header-right > .briefing-btn { display: none; }
  .header-right { gap: 8px; }
  .mobile-overlay .briefing-btn { display: inline-flex; }
  .section { padding: 56px 5%; }
  .section-heading { font-size: 28px; }
  .page-title { font-size: 32px; }

  /* Hamburger on mobile — left in LTR, right in RTL */
  .header-inner { position: relative; }
  .hamburger {
    display: block;
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
  .header-left { margin-left: 36px; }

  /* RTL: hamburger to right side */
  [dir="rtl"] .header-inner { direction: rtl; }
  [dir="rtl"] .hamburger {
    left: auto;
    right: 5%;
  }
  [dir="rtl"] .header-left { margin-left: 0; margin-right: 36px; }

  /* Footer: 2-column — Row 1: Identity + Explore, Row 2: Information + Connect */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    padding-left: 6%;
    padding-right: 6%;
  }
  .footer-identity { grid-column: 1; grid-row: 1; }
  .footer-main > div:nth-child(2) { grid-column: 2; grid-row: 1; } /* Explore */
  .footer-main > div:nth-child(3) { grid-column: 1; grid-row: 2; } /* Information */
  .footer-main > div:nth-child(4) { grid-column: 2; grid-row: 2; } /* Connect */
}
@media (max-width: 480px) {
  .footer-main { gap: 28px 32px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
}
