/* ==========================================================================
   Fight-In-Spirit — style.css
   ========================================================================== */

:root{
  --black: #0a0a0a;
  --black-soft: #121212;
  --red: #e1121b;
  --red-dark: #b90d15;
  --white: #f7f7f7;
  --grey: #b7b7b7;
  --grey-dark: #6f6f6f;
  --border: rgba(255,255,255,0.12);
  --radius: 22px;
  --container: 1180px;
  --display: 'Anton', 'Barlow Semi Condensed', sans-serif;
  --body: 'Barlow Semi Condensed', 'Helvetica Neue', Arial, sans-serif;
  --arabic: 'Cairo', 'Barlow Semi Condensed', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
p{ margin: 0 0 1.1em; color: var(--grey); }
p:last-child{ margin-bottom: 0; }
strong{ color: var(--white); }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Top bar ---------- */
.topbar{
  background: var(--red);
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 28px;
}
.topbar-sep{ opacity: 0.6; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}
.brand-logo{ height: 30px; width: auto; }
.main-nav{
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav a{
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.main-nav a:hover{ opacity: 1; color: var(--red); }
.nav-cta{
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 999px;
  opacity: 1 !important;
}
.nav-cta:hover{ background: var(--red-dark); }

.header-actions{
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch{
  display: flex;
  gap: 6px;
}
.lang-btn{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--grey);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover{ border-color: var(--red); color: var(--white); }
.lang-btn.active{
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Buttons & pills ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); }
.btn-ghost{ border-color: var(--white); color: var(--white); }
.btn-ghost:hover{ border-color: var(--red); color: var(--red); }

.pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pill-year{ background: var(--red); color: var(--white); }
.pill-outline{
  border: 2px solid var(--red);
  color: var(--white);
  font-style: italic;
  transition: background 0.2s ease;
}
a.pill-outline:hover{ background: rgba(225,18,27,0.15); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 18px;
}
.eyebrow-light{ color: var(--white); }
.eyebrow-num{
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--display);
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(225,18,27,0.28), transparent 55%),
    var(--black);
  overflow: hidden;
}
.hero::after{
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 4px;
  background: var(--red);
}
.hero-inner{ display: flex; flex-direction: column; align-items: center; }
.hero-title{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin: 26px 0 22px;
  letter-spacing: 0.01em;
}
.hero-title .dash{ color: var(--red); }
.hero-tagline{ margin-bottom: 26px; }
.hero-sub{
  max-width: 620px;
  font-size: 19px;
  color: var(--grey);
  margin: 0 0 38px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Sections ---------- */
.section{ padding: 96px 0; }
.section-alt{ background: var(--black-soft); }
.section-dark{ background: var(--black-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-red{
  background: linear-gradient(135deg, var(--red-dark), var(--red));
}
.section-red .eyebrow-num{ background: var(--black); }
.section-red .section-lead, .section-red p{ color: rgba(255,255,255,0.88); }

.section-head{ max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow{ justify-content: center; }
.section-title{
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--white);
}
.section-lead{ font-size: 18px; }

/* two-column split */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-text .section-title{ text-align: start; }
.split-text .eyebrow{ margin-bottom: 20px; }
.media-card{
  border-radius: var(--radius);
  border: 3px solid var(--red);
  width: 100%;
  object-fit: cover;
}
.media-tall{ aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Values ---------- */
.values-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.values-grid li{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.values-grid li:hover{ border-color: var(--red); transform: translateY(-3px); }

/* ---------- Team ---------- */
.team-cards{ display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.team-card{
  border: 2px solid var(--red);
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team-name{ font-weight: 800; font-style: italic; }
.team-role{ color: var(--grey); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Timeline ---------- */
.timeline{
  max-width: 760px;
  margin: 0 auto;
  border-left: 2px solid var(--red);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.timeline-item{ position: relative; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.timeline-item::before{
  content: "";
  position: absolute;
  left: -43.5px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--black-soft);
}
.timeline-year{
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: 6px 18px;
  flex-shrink: 0;
}
.timeline-text{ color: var(--white); font-size: 16px; }

/* ---------- Check list ---------- */
.check-list{ display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.check-list li{
  position: relative;
  padding-left: 36px;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
}
.check-list li::before{
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

/* ---------- Stats ---------- */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card{
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.stat-number{
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--white);
}
.stat-label{ font-size: 14.5px; font-style: italic; font-weight: 600; color: rgba(255,255,255,0.92); }

/* ---------- Objectives ---------- */
.objectives-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.objective-card{
  background: linear-gradient(160deg, var(--red-dark), var(--red));
  border-radius: var(--radius);
  padding: 30px 26px;
}
.objective-num{
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}
.objective-card p{ color: rgba(255,255,255,0.92); font-weight: 500; }
.objective-sub{ color: rgba(255,255,255,0.72) !important; font-size: 14.5px; font-style: italic; }

/* ---------- Contact ---------- */
.contact-label{
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--white) !important;
  margin-top: 28px !important;
}
.contact-list{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-logo{ height: 22px; margin-bottom: 6px; opacity: 0.85; }
.footer-inner p{ margin: 0; font-size: 14px; color: var(--grey-dark); }
.footer-site{ text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}
.back-to-top.visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover{ background: var(--red-dark); }

/* ---------- Reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
  .split-media{ order: -1; }
  .values-grid{ grid-template-columns: repeat(2, 1fr); }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .objectives-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 20px;
    display: none;
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ padding: 12px 0; width: 100%; }
  .nav-cta{ margin-top: 10px; text-align: center; }
  .nav-toggle{ display: flex; }
  .section{ padding: 70px 0; }
  .hero{ padding: 90px 0 70px; }
}

@media (max-width: 520px){
  .values-grid{ grid-template-columns: 1fr 1fr; }
  .hero-actions{ flex-direction: column; width: 100%; }
  .hero-actions .btn{ width: 100%; }
}

/* ==========================================================================
   RTL / Arabic support
   ========================================================================== */
[dir="rtl"] body{
  font-family: var(--arabic);
}
[dir="rtl"] .section-title,
[dir="rtl"] .contact-label{
  font-family: var(--arabic);
  font-weight: 800;
}

/* Arabic script has no italics / doesn't benefit from letter-spacing tracking */
[dir="rtl"] .pill-outline,
[dir="rtl"] .check-list li,
[dir="rtl"] .values-grid li,
[dir="rtl"] .team-name,
[dir="rtl"] .stat-label,
[dir="rtl"] .objective-sub,
[dir="rtl"] .eyebrow,
[dir="rtl"] .btn,
[dir="rtl"] .pill,
[dir="rtl"] .main-nav a,
[dir="rtl"] .footer-site{
  font-style: normal;
  letter-spacing: normal;
}

[dir="rtl"] .timeline{
  border-left: none;
  border-right: 2px solid var(--red);
  padding-left: 0;
  padding-right: 36px;
}
[dir="rtl"] .timeline-item::before{
  left: auto;
  right: -43.5px;
}
[dir="rtl"] .check-list li{
  padding-left: 0;
  padding-right: 36px;
}
[dir="rtl"] .check-list li::before{
  left: auto;
  right: 0;
}
[dir="rtl"] .back-to-top{
  right: auto;
  left: 22px;
}

@media (max-width: 900px){
  [dir="rtl"] .timeline{ padding-right: 36px; }
}
