/* ===================================================================
   الرياضي الأول — Stylesheet
   Design tokens
=================================================================== */

:root {
  --navy: #0B2447;
  --navy-dark: #071a33;
  --navy-soft: #12305c;
  --red: #E63212;
  --red-dark: #c22a0f;
  --white: #ffffff;
  --bg: #F5F6F8;
  --bg-card: #ffffff;
  --grey: #667085;
  --grey-light: #98a2b3;
  --border: #e3e6ea;
  --shadow: 0 10px 30px rgba(11, 36, 71, 0.08);

  --font-head: "Cairo", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Cairo", sans-serif;

  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-dark);
  background: var(--bg);
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

p { margin: 0; color: var(--grey); }

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(230, 50, 18, 0.30);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ===================== Header / Nav ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  border-radius: 8px;
}

.main-nav a:hover { color: var(--red); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  right: 16px;
  left: 16px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .nav-cta .btn span.long { display: none; }
}

/* ===================== Hero ===================== */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy) 55%, var(--navy-dark) 100%);
  overflow: hidden;
  padding: 76px 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 55%, rgba(230,50,18,.16) 56%, rgba(230,50,18,.16) 62%, transparent 63%),
    linear-gradient(115deg, transparent 68%, rgba(255,255,255,.05) 69%, rgba(255,255,255,.05) 72%, transparent 73%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  color: #cfd9ea;
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-brandbar {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.hero-brandbar span {
  color: #9fb0cc;
  font-size: 14px;
}

.brand-chip {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: .5px;
}

.hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-art .shard {
  position: absolute;
  width: 340px;
  height: 340px;
  background: var(--red);
  clip-path: polygon(20% 0%, 100% 45%, 55% 100%, 0% 65%);
  opacity: .18;
  top: -30px;
  right: -30px;
}

.hero-art img {
  position: relative;
  max-width: 380px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-brandbar { justify-content: center; }
  .hero-art { margin-top: 20px; }
}

/* ===================== Sections generic ===================== */

.section { padding: 78px 0; }
.section-tight { padding: 50px 0; }
.section-navy { background: var(--navy); }
.section-white { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 0 46px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
  color: var(--red);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p { font-size: 16px; }

/* ===================== Category cards (home) ===================== */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,36,71,.16); }

.cat-media {
  height: 230px;
  background: #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cat-media img { max-height: 100%; object-fit: contain; }

.cat-body { padding: 22px 24px 26px; }
.cat-body h3 { font-size: 20px; margin-bottom: 8px; }
.cat-body p { font-size: 14.5px; margin-bottom: 16px; }

.cat-link {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
}
.cat-link .arrow { transition: transform .18s ease; }
.cat-card:hover .cat-link .arrow { transform: translateX(-4px); }
.cat-link:hover { color: var(--red); }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ===================== Brand strip ===================== */

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.brand-strip-card .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.brand-strip-card h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

.brand-strip-card p { font-size: 14.5px; }

@media (max-width: 900px) {
  .brand-strip { grid-template-columns: 1fr; }
}

/* ===================== Stats strip ===================== */

.stats-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  color: var(--white);
}

.stat-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
}

.stat-item span {
  color: #b9c6dc;
  font-size: 14px;
}

/* ===================== CTA banner ===================== */

.cta-banner {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 20px;
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h3 {
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cta-banner p { color: #ffe3db; font-size: 15px; }

.cta-banner .btn-outline { border-color: var(--white); }

/* ===================== Product grid ===================== */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.product-media {
  height: 220px;
  background: #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}
.product-media img { max-height: 100%; object-fit: contain; }

.product-brand-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--navy);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.product-body { padding: 18px 20px 22px; }

.product-body .cat-tag {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-head);
  display: block;
  margin-bottom: 6px;
}

.product-body h4 {
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ===================== About page ===================== */

.about-hero {
  background: var(--navy);
  padding: 60px 0;
}
.about-hero h1 { color: var(--white); font-size: clamp(28px,4vw,42px); }
.about-hero p { color: #cfd9ea; margin-top: 14px; max-width: 620px; font-size: 16px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.value-card .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14.5px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
}

/* ===================== Brands page ===================== */

.brand-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.brand-block:last-child { border-bottom: none; }
.brand-block:nth-child(even) { direction: ltr; }
.brand-block:nth-child(even) .brand-text { direction: rtl; }

.brand-logo-plate {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 44px 30px;
  text-align: center;
}
.brand-logo-plate h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 40px;
  letter-spacing: 1px;
}
.brand-logo-plate span {
  color: #9fb0cc;
  font-size: 13px;
  display: block;
  margin-top: 8px;
}

.brand-text h3 { font-size: 24px; margin-bottom: 14px; }
.brand-text p { margin-bottom: 12px; font-size: 15.5px; }
.brand-text ul { padding: 0; margin: 18px 0 0; list-style: none; }
.brand-text li {
  padding-right: 22px;
  position: relative;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--grey);
}
.brand-text li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 800px) {
  .brand-block, .brand-block:nth-child(even) { grid-template-columns: 1fr; direction: rtl; }
}

/* ===================== Contact page ===================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }

.info-item { display: flex; gap: 16px; align-items: flex-start; }

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(230,50,18,.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.info-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.info-item p, .info-item a { font-size: 14.5px; color: var(--grey); }
.info-item a:hover { color: var(--red); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--bg);
  color: var(--navy-dark);
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===================== Footer ===================== */

.site-footer {
  background: var(--navy-dark);
  color: #b9c6dc;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: #92a2c0; font-size: 14px; max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-size: 15.5px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #b9c6dc; font-size: 14.5px; }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: #7c8dab;
}

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 15px;
}
.social-row a:hover { background: var(--red); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ===================== whatsapp float ===================== */
.float-contact {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(11,36,71,.35);
  transition: transform .18s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.fb { background: #1877F2; }

/* ===================== Expandable explanation blocks ===================== */

.expand-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  text-align: right;
}
.expand-toggle:hover { border-color: var(--red); }

.expand-toggle .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform .2s ease;
}
.expand-toggle.is-open .plus { transform: rotate(45deg); }

.expand-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease, padding .28s ease;
  padding: 0 20px;
  color: var(--grey);
  font-size: 14.5px;
  border-radius: 0 0 12px 12px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.expand-body.open {
  max-height: 400px;
  padding: 16px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.expand-item { margin-bottom: 12px; }

/* ===================== Breadcrumb ===================== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-size: 14px;
  color: var(--grey);
}
.breadcrumb a { color: var(--navy); font-weight: 700; }
.breadcrumb a:hover { color: var(--red); }
