:root {
  --green: #07241E;
  --green2: #0d4b3b;
  --green3: #134f3f;
  --gold: #c99a2e;
  --gold2: #f0cf75;
  --cream: #fbf8ef;
  --white: #ffffff;
  --text: #16231f;
  --muted: #5d6965;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 70px rgba(6, 47, 37, 0.15);
}

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

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

body {
  font-family: Poppins, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

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

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

.header {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 0 16px;
  background: transparent;
}

.navbar {
  max-width: 1180px;
  margin: auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(240, 207, 117, 0.25);
  border-radius: 24px;
  background: rgba(6, 47, 37, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .22));
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a,
.nav-links button {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: .25s ease;
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgba(255, 255, 255, .11);
  color: var(--gold2);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #102b22 !important;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(201, 154, 46, .28);
}

.menu-btn {
  display: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  padding: 150px 6% 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 46px;
  align-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(240, 207, 117, .28), transparent 28%),
    radial-gradient(circle at 16% 74%, rgba(255, 255, 255, .08), transparent 28%),
    linear-gradient(135deg, #05261e 0%, var(--green2) 54%, #021b15 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pattern {
  position: absolute;
  inset: 0;
  opacity: .6;
  background-image: linear-gradient(30deg, rgba(255, 255, 255, .045) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, .045) 87.5%);
  background-size: 70px 70px;
  animation: move 22s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  bottom: -170px;
  background: rgba(240, 207, 117, .14);
  filter: blur(30px);
  border-radius: 50%;
}

@keyframes move {
  to {
    background-position: 140px 140px;
  }
}

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

.arabic {
  font-family: Amiri, serif;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--gold2);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -1.4px;
}

.subtitle {
  font-size: 18px;
  line-height: 1.85;
  color: #e9eee9;
  max-width: 740px;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: .28s ease;
  min-height: 50px;
}

.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #102b22;
  box-shadow: 0 14px 34px rgba(201, 154, 46, .28);
}

.secondary {
  border: 1px solid rgba(240, 207, 117, .75);
  color: var(--gold2);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .16);
}

.hero-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 34px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: float 4.6s ease-in-out infinite;
}

.hero-card img {
  max-width: 270px;
  width: 82%;
  margin: 0 auto 12px;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .28));
}

.hero-card h3 {
  font-size: 26px;
  color: var(--gold2);
  margin: 16px 0 10px;
}

.hero-card p {
  color: #edf3ef;
  line-height: 1.7;
}

@keyframes float {
  50% {
    transform: translateY(-14px);
  }
}

.section {
  padding: 96px 6%;
}

.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title p,
.label {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title h2,
.about-text h2,
.contact-box h2 {
  font-size: clamp(32px, 4vw, 46px);
  color: var(--green);
  margin-top: 8px;
  letter-spacing: -.7px;
}

.grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, .78);
  border-radius: 28px;
  padding: 30px;
  border: 1px solid rgba(201, 154, 46, .24);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: .32s ease;
}

.card:hover {
  transform: translateY(-9px);
  box-shadow: 0 28px 80px rgba(6, 47, 37, .17);
  border-color: rgba(201, 154, 46, .45);
}

.card span {
  font-size: 34px;
  color: rgba(201, 154, 46, .5);
  font-weight: 900;
}

.card h3 {
  font-size: 22px;
  color: var(--green);
  margin: 12px 0;
}

.card p {
  line-height: 1.8;
  color: var(--muted);
}

.about {
  padding: 96px 6%;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: center;
  background: linear-gradient(135deg, #fff, #fbf8ef);
}

.about-img {
  text-align: center;
}

.about-img img {
  max-width: 360px;
  width: 88%;
  margin: auto;
  filter: drop-shadow(0 26px 45px rgba(6, 47, 37, .2));
}

.about-text {
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(201, 154, 46, .22);
  border-radius: 30px;
  padding: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.about-text p {
  line-height: 1.9;
  color: var(--muted);
  margin: 15px 0;
}

.dark {
  background: linear-gradient(135deg, var(--green), #021b15);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(240, 207, 117, .18), transparent 30%);
}

.dark>* {
  position: relative;
  z-index: 1;
}

.dark .section-title h2 {
  color: #fff;
}

.features {
  max-width: 1050px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.features div {
  padding: 23px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(240, 207, 117, .28);
  text-align: center;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.contact {
  padding: 96px 6%;
  background: radial-gradient(circle at center, rgba(201, 154, 46, .18), transparent 45%), var(--cream);
}

.contact-box {
  max-width: 860px;
  margin: auto;
  background: rgba(255, 255, 255, .72);
  border-radius: 34px;
  padding: 56px;
  text-align: center;
  border: 1px solid rgba(201, 154, 46, .34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.contact-box p {
  line-height: 1.8;
  color: var(--muted);
}

.contact-box .secondary {
  color: var(--green);
  border-color: rgba(6, 47, 37, .5);
}

.footer {
  position: relative;
  background: linear-gradient(135deg, #061f1a, #0b3b31);
  color: #fff;
  padding: 72px 7% 22px;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, .18), transparent 35%);
  pointer-events: none;
}

.footer-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 35px;
  z-index: 1;
}

.footer-col h3,
.footer-col h4 {
  color: #d4af37;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}

.footer-col p {
  color: #d8e5e1;
  line-height: 1.8;
  font-size: 14px;
}

.footer-col a {
  display: block;
  color: #d8e5e1;
  margin-bottom: 10px;
  transition: .25s;
}

.footer-col a:hover {
  color: #d4af37;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 175, 55, .5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 18px;
  transition: .25s ease;
}

.social-icons a:hover {
  background: #d4af37;
  color: #06251f;
  transform: translateY(-6px);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, .25);
  margin-top: 45px;
  padding-top: 20px;
  text-align: center;
  color: #d8e5e1;
  font-size: 14px;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: all .8s ease;
}

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

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

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    background: rgba(6, 47, 37, .94);
    display: none;
    flex-direction: column;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(240, 207, 117, .25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    text-align: center;
  }

  .hero,
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-actions,
  .contact-actions {
    justify-content: center;
  }

  .grid,
  .features {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header {
    top: 8px;
    padding: 0 10px;
  }

  .navbar {
    border-radius: 18px;
  }

  .brand span {
    font-size: 14px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding: 125px 5% 72px;
  }

  .hero-card,
  .about-text,
  .contact-box {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-col a:hover {
    transform: none;
  }
}
/* Join form modal + matched logo refinements */
button {
  font-family: inherit;
}

.nav-links .nav-cta,
.join-trigger {
  border: 0;
  cursor: pointer;
}

.brand img,
.footer-brand img {
  background: radial-gradient(circle at center, rgba(7, 36, 30, .96), rgba(7, 36, 30, .62));
  border: 1px solid rgba(212, 175, 55, .32);
  border-radius: 50%;
  padding: 4px;
}

.hero-card img,
.about-img img {
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .35));
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 18, 14, .68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-overlay.show {
  display: flex;
}

.join-modal {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(240, 207, 117, .18), transparent 38%),
    linear-gradient(135deg, rgba(7, 36, 30, .96), rgba(11, 59, 49, .94));
  border: 1px solid rgba(240, 207, 117, .34);
  border-radius: 30px;
  padding: 34px;
  color: #fff;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .38);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(240, 207, 117, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  color: var(--gold2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.join-modal h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 10px;
}

.modal-note {
  color: #d8e5e1;
  line-height: 1.7;
  margin-bottom: 24px;
}

.join-form label {
  display: grid;
  gap: 8px;
  color: #f7f4e8;
  font-weight: 700;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  border: 1px solid rgba(240, 207, 117, .28);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  outline: none;
  font-family: inherit;
}

.join-form select {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--gold2) 50%) calc(100% - 22px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(240, 207, 117, .18), rgba(255, 255, 255, .08));
  color: #fff;
  cursor: pointer;
}

.join-form select option {
  background: #07241E;
  color: #f7f4e8;
}

.join-form select option:checked,
.join-form select option:hover {
  background: #0b3b31;
  color: var(--gold2);
}

.join-form input::placeholder,
.join-form textarea::placeholder {
  color: rgba(255, 255, 255, .58);
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  border-color: var(--gold2);
  box-shadow: 0 0 0 4px rgba(240, 207, 117, .13);
}

.form-submit {
  width: 100%;
  margin-top: 18px;
  gap: 10px;
  border: 0;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .join-modal {
    padding: 28px 18px;
    border-radius: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
