/* =====================================
   الخطوط
===================================== */

@font-face {
  font-family: "Thmanyah";
  src: url("./assets/fonts/thmanyah-sans.woff2") format("woff2");
  font-display: swap;
}

/* =====================================
   المتغيرات والألوان
===================================== */

:root {
  --burgundy: #620116;
  --burgundy-soft: #8c3447;

  --cream: #FDF9F0;
  --paper: #FFFCF6;

  --green: #344F39;

  --ink: #29201e;
  --muted: #766b65;

  --border: rgba(98, 1, 22, .16);

  --heading-font: "Thmanyah", "Cairo", sans-serif;
  --body-font: "Cairo", sans-serif;

  --transition: .3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background: var(--cream);
  color: var(--ink);

  font-family: var(--body-font);
  line-height: 1.8;

  overflow-x: hidden;

  transition: background .3s, color .3s;
}

[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  line-height: 1.35;
}

/* =====================================
   التخطيط العام
===================================== */

.section-container {
  width: min(100% - 64px, 1160px);
  margin-inline: auto;
}

.content-section {
  padding-block: 100px;
}

/* =====================================
   الشريط العلوي
===================================== */

.announcement-bar {
  min-height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 8px 15px;

  background: var(--burgundy);
  color: white;

  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.announcement-bar span {
  opacity: .8;
}

/* =====================================
   شريط التنقل
===================================== */

.site-header {
  position: relative;
  z-index: 100;

  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  width: min(100% - 64px, 1160px);
  min-height: 86px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

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

.brand-logo {
  width: 65px;
  height: 60px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--heading-font);
  font-size: 21px;
  font-weight: 700;

  color: var(--burgundy);
  line-height: 1.4;
}

.brand-name small {
  display: block;
  font-family: var(--body-font);

  font-size: 11px;
  font-weight: 600;
}

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

.main-nav a {
  font-size: 12px;
  font-weight: 700;

  transition: color var(--transition);
}

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

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

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  background: transparent;
  border: 1px solid var(--border);

  color: var(--burgundy);

  font-size: 21px;

  transition: var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--burgundy);
  color: white;
}

.menu-toggle {
  display: none;
}

/* =====================================
   الواجهة الرئيسية
===================================== */

.hero {
  min-height: 650px;

  display: grid;
  grid-template-columns: 1.1fr .9fr;

  align-items: center;
  gap: 75px;

  padding-block: 80px 90px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--burgundy);
  font-size: 12px;
  font-weight: 700;

  margin-bottom: 22px;
}

.eyebrow-line {
  width: 34px;
  height: 2px;
  background: var(--burgundy);
}

.hero h1 {
  font-size: clamp(45px, 5.2vw, 80px);
  font-weight: 700;

  letter-spacing: -1.5px;
  line-height: 1.35;

  margin-bottom: 25px;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 span {
  color: var(--burgundy);
}

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

.hero-description {
  max-width: 480px;

  color: var(--muted);

  font-size: 15px;
  line-height: 2.2;

  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  padding: 13px 23px;

  font-size: 13px;
  font-weight: 700;

  transition: var(--transition);
}

.button-primary {
  background: var(--burgundy);
  color: white;
}

.button-primary:hover {
  background: var(--green);
  transform: translateY(-3px);
}

.button-secondary {
  border: 1px solid var(--border);
}

.button-secondary:hover {
  border-color: var(--burgundy);
  transform: translateY(-3px);
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 38px;

  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.caption-symbol {
  color: var(--burgundy);
  font-size: 24px;
}

/* =====================================
   اللوحة البصرية
===================================== */

.hero-art {
  aspect-ratio: 4 / 5;

  background: var(--burgundy);
  color: white;

  padding: 18px;

  position: relative;

  box-shadow: 20px 20px 0 rgba(98, 1, 22, .07);

  overflow: hidden;
}

.hero-art::before {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;

  left: -210px;
  top: 20%;

  pointer-events: none;
}

.art-border {
  position: relative;

  height: 100%;

  border: 1px solid rgba(255,255,255,.4);

  padding: 22px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.art-top,
.art-bottom {
  display: flex;
  justify-content: space-between;

  gap: 10px;

  font-size: 11px;
  font-weight: 700;
}

.art-center {
  text-align: center;
}

.art-star {
  display: block;

  font-size: 90px;
  line-height: 1;

  margin-bottom: 25px;

  color: #e8c5cb;
}

.art-words span {
  display: block;

  font-family: var(--heading-font);
  font-size: clamp(35px, 4vw, 58px);

  font-weight: 700;
  line-height: 1.65;
}

/* =====================================
   شريط القيم
===================================== */

.values-strip {
  background: var(--green);
  color: white;

  overflow: hidden;
}

.values-strip-inner {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-around;

  gap: 25px;

  max-width: 1160px;
  margin: auto;

  padding: 15px 25px;

  font-family: var(--heading-font);
  font-size: 17px;
}

.values-strip-inner span:nth-child(odd) {
  color: #c9d9c9;
  font-size: 22px;
}

/* =====================================
   عناوين الأقسام
===================================== */

.section-heading {
  display: flex;
  align-items: flex-start;

  gap: 35px;

  margin-bottom: 40px;
}

.section-index {
  flex-shrink: 0;

  padding-top: 5px;

  font-size: 12px;
  font-weight: 700;

  color: var(--burgundy);

  border-top: 2px solid var(--burgundy);
}

.section-kicker {
  display: block;

  color: var(--burgundy);

  font-size: 12px;
  font-weight: 700;

  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.45;
}

/* =====================================
   المجتمع
===================================== */

.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 35px;
}

.community-card {
  background: var(--burgundy);
  color: white;

  padding: 30px;

  min-height: 425px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;
  overflow: hidden;
}

.community-card::after {
  content: "✳";

  position: absolute;

  left: -20px;
  top: 35px;

  font-size: 220px;
  line-height: 1;

  color: rgba(255,255,255,.055);

  pointer-events: none;
}

.community-card-header,
.community-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  font-size: 11px;
  font-weight: 700;
}

.community-card-header span:last-child {
  font-size: 32px;
}

.community-card-content {
  position: relative;
  z-index: 1;
}

.community-card h3 {
  font-size: 55px;
  line-height: 1.25;

  margin-bottom: 20px;
}

.community-card p {
  font-size: 13px;
  line-height: 2.1;

  max-width: 370px;

  margin-bottom: 23px;
}

.community-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 55px;

  padding: 12px 18px;

  background: white;
  color: var(--burgundy);

  font-size: 13px;
  font-weight: 800;

  transition: var(--transition);
}

.community-button:hover {
  background: var(--cream);
  transform: translateY(-3px);
}

.community-info {
  padding: 25px 0;
}

.community-info-label {
  color: var(--burgundy);

  font-size: 12px;
  font-weight: 700;
}

.community-info h3 {
  font-size: 30px;
  margin: 12px 0;
}

.community-info > p {
  color: var(--muted);
  font-size: 13px;

  margin-bottom: 24px;
}

.social-links {
  border-top: 1px solid var(--border);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 17px;

  padding: 17px 8px;

  border-bottom: 1px solid var(--border);

  transition: var(--transition);
}

.social-link:hover {
  padding-inline: 17px;
  background: rgba(98,1,22,.04);
}

.social-icon {
  width: 43px;
  height: 43px;

  display: grid;
  place-items: center;

  background: rgba(98,1,22,.07);
  color: var(--burgundy);

  font-size: 23px;
  font-weight: 700;
}

.social-name {
  flex: 1;

  font-size: 15px;
  font-weight: 700;
}

.social-arrow {
  color: var(--burgundy);

  font-size: 21px;
}

/* =====================================
   عن النادي
===================================== */

.about-section {
  background: var(--paper);

  padding-block: 105px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 80px;
}

.about-decoration {
  display: block;

  color: var(--burgundy);
  font-size: 45px;

  margin-bottom: 12px;
}

.about-intro h3 {
  font-size: 30px;
  margin-bottom: 15px;
}

.about-intro p {
  color: var(--muted);
  font-size: 14px;

  line-height: 2.2;
  margin-bottom: 15px;
}

.about-affiliation {
  margin-top: 20px;
  padding-top: 15px;

  border-top: 1px solid var(--border);

  font-size: 12px;
  color: var(--muted);
}

.about-values {
  border-top: 1px solid var(--border);
}

.about-value {
  display: flex;
  align-items: flex-start;

  gap: 25px;

  padding: 20px 0;

  border-bottom: 1px solid var(--border);
}

.value-number {
  color: var(--burgundy);

  font-family: var(--heading-font);
  font-size: 32px;
  line-height: 1;
}

.about-value h3 {
  font-size: 25px;
  margin-bottom: 7px;
}

.about-value p {
  font-size: 13px;
  color: var(--muted);
}

.about-details {
  margin-top: 55px;

  border-top: 1px solid var(--border);
}

.about-details details {
  border-bottom: 1px solid var(--border);
}

.about-details summary {
  list-style: none;
  cursor: pointer;

  padding: 22px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 17px;
  font-weight: 700;
}

.about-details summary::-webkit-details-marker {
  display: none;
}

.about-details summary::after {
  content: "+";

  font-size: 25px;
  font-weight: 400;

  color: var(--burgundy);
}

.about-details details[open] summary::after {
  content: "−";
}

.details-content {
  padding: 0 12px 25px;

  color: var(--muted);
  font-size: 14px;
  line-height: 2.2;
}

.details-content ul {
  padding-right: 22px;
}

/* =====================================
   آراء المشاركين
===================================== */

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 28px;
  align-items: stretch;
}

.review-card {
  min-height: 370px;

  background: var(--paper);

  border: 1px solid var(--border);

  padding: 36px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-symbol {
  display: block;

  font-family: Georgia, serif;

  font-size: 95px;
  line-height: .7;

  color: var(--burgundy);

  margin-bottom: 35px;
}

#reviewText {
  font-size: 17px;
  font-weight: 600;
  line-height: 2.2;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 25px;
}

.review-author-symbol {
  color: var(--burgundy);
  font-size: 26px;
}

.review-author h3 {
  font-size: 15px;
}

.review-author p {
  font-size: 12px;
  color: var(--muted);
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 15px;

  margin-top: 25px;
}

.review-controls > button {
  width: 38px;
  height: 38px;

  background: transparent;
  border: 1px solid var(--border);

  color: var(--burgundy);
  font-size: 19px;
}

.review-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.review-dot {
  width: 8px;
  height: 8px;

  border: 0;
  border-radius: 20px;

  background: #c9b5b9;
}

.review-dot.active {
  width: 24px;
  background: var(--burgundy);
}

.feedback-card {
  background: var(--green);
  color: white;

  padding: 38px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feedback-kicker {
  font-size: 12px;
  font-weight: 700;

  opacity: .8;

  margin-bottom: 15px;
}

.feedback-card h3 {
  font-size: 34px;
  margin-bottom: 20px;
}

.feedback-card p {
  font-size: 13px;
  line-height: 2.2;

  margin-bottom: 25px;
}

.feedback-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding: 13px 20px;

  background: var(--cream);
  color: var(--green);

  font-size: 13px;
  font-weight: 800;

  transition: var(--transition);
}

.feedback-link:hover {
  transform: translateY(-3px);
}

.feedback-card small {
  margin-top: 15px;
  font-size: 11px;
  opacity: .8;
}

/* =====================================
   مشاركة الموقع
===================================== */

.share-section {
  padding-block: 35px 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

.share-section h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.share-section p {
  color: var(--muted);
  font-size: 13px;
}

.share-actions {
  display: flex;
  gap: 10px;
}

.share-actions button {
  padding: 12px 18px;

  border: 1px solid var(--border);

  background: transparent;
  color: var(--burgundy);

  font-size: 12px;
  font-weight: 700;

  transition: var(--transition);
}

.share-actions button:hover {
  background: var(--burgundy);
  color: white;
}

/* =====================================
   التذييل
===================================== */

.site-footer {
  background: var(--burgundy);
  color: white;

  padding: 35px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

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

.footer-brand img {
  width: 70px;
  height: 70px;

  object-fit: contain;

  background: var(--cream);
  padding: 5px;
}

.footer-brand h2 {
  font-size: 21px;
}

.footer-brand p {
  font-size: 12px;
  opacity: .8;
}

.footer-end {
  text-align: left;
}

.footer-end a {
  font-size: 12px;
  font-weight: 700;
}

.footer-end p {
  font-size: 11px;
  opacity: .7;

  margin-top: 13px;
}

/* =====================================
   الإشعارات
===================================== */

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;

  transform: translate(-50%, 25px);

  background: var(--green);
  color: white;

  padding: 12px 22px;

  font-size: 13px;

  opacity: 0;
  visibility: hidden;

  transition: var(--transition);

  z-index: 100;
}

.toast.show {
  opacity: 1;
  visibility: visible;

  transform: translate(-50%, 0);
}

/* =====================================
   الحركات
===================================== */

.reveal {
  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   الوضع الليلي
===================================== */

body.dark {
  --cream: #1b1115;
  --paper: #291b20;

  --ink: #fff6f2;
  --muted: #c7b6b9;

  --border: rgba(255,255,255,.13);
}

body.dark .brand-name,
body.dark .hero-eyebrow,
body.dark .hero h1 span,
body.dark .section-index,
body.dark .section-kicker,
body.dark .community-info-label,
body.dark .social-arrow,
body.dark .social-icon,
body.dark .value-number,
body.dark .quote-symbol,
body.dark .review-author-symbol {
  color: #e4aeba;
}

body.dark .hero h1 em {
  color: #a8c5aa;
}

body.dark .theme-toggle,
body.dark .menu-toggle {
  color: #e4aeba;
}

body.dark .hero-art,
body.dark .community-card,
body.dark .site-footer {
  background: #620116;
}

body.dark .button-primary {
  background: #823047;
}

body.dark .social-icon {
  background: rgba(255,255,255,.06);
}

body.dark .share-actions button {
  color: #e4aeba;
}

body.dark .share-actions button:hover {
  color: white;
}

body.dark .feedback-link,
body.dark .community-button {
  background: #fffaf2;
}

/* =====================================
   الأجهزة اللوحية
===================================== */

@media (max-width: 950px) {

  .main-nav {
    gap: 18px;
  }

  .hero {
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(40px, 5vw, 62px);
  }

  .about-layout {
    gap: 40px;
  }

}

/* =====================================
   الهواتف
===================================== */

@media (max-width: 700px) {

  .section-container,
  .nav-container {
    width: calc(100% - 36px);
  }

  .content-section {
    padding-block: 70px;
  }

  .announcement-bar {
    font-size: 9px;
    gap: 7px;
  }

  .announcement-bar span:first-child,
  .announcement-bar span:last-child {
    display: none;
  }

  .nav-container {
    min-height: 75px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 18px;
  }

  .menu-toggle {
    display: grid;
  }

  .main-nav {
    display: none;

    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    background: var(--cream);

    padding: 20px;

    border-bottom: 1px solid var(--border);

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    box-shadow: 0 15px 30px rgba(0,0,0,.07);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    grid-template-columns: 1fr;

    min-height: auto;
    gap: 45px;

    padding-block: 65px;
  }

  .hero h1 {
    font-size: clamp(42px, 10vw, 60px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-art {
    max-width: 440px;
    width: 100%;

    margin-inline: auto;

    aspect-ratio: 4 / 4.5;
  }

  .art-words span {
    font-size: 44px;
  }

  .values-strip-inner {
    gap: 12px;
    flex-wrap: wrap;

    font-size: 13px;
    padding: 15px 12px;
  }

  .values-strip-inner span:nth-child(odd) {
    font-size: 16px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .community-layout,
  .about-layout,
  .reviews-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .community-card {
    min-height: 390px;
  }

  .about-section {
    padding-block: 75px;
  }

  .about-details {
    margin-top: 35px;
  }

  .review-card {
    min-height: 280px;
  }

  .share-section {
    flex-direction: column;
    align-items: stretch;

    padding-block: 25px 65px;
  }

  .share-actions {
    flex-wrap: wrap;
  }

  .share-actions button {
    flex: 1;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-end {
    text-align: center;
  }

}

@media (max-width: 380px) {

  .announcement-separator {
    display: none;
  }

  .hero h1 {
    font-size: 39px;
  }

  .art-words span {
    font-size: 37px;
  }

  .community-card,
  .feedback-card,
  .review-card {
    padding: 25px;
  }

  .community-card h3 {
    font-size: 46px;
  }

}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}
