/* ============================================
   الإخوة المتحدون - United Brothers
   Professional Design System 2026
   ============================================ */

:root {
  --navy: #0e1b2c;
  --navy-2: #16273d;
  --navy-3: #21364e;
  --navy-4: #2a425c;
  --gold: #c8a02e;
  --gold-light: #d8b44a;
  --gold-dark: #a8841f;
  --paper: #f7f5f0;
  --paper-2: #f0ede6;
  --white: #ffffff;
  --ink: #182536;
  --muted: #596575;
  --muted-2: #7a8796;
  --line: rgba(14, 27, 44, 0.12);
  --line-strong: rgba(14, 27, 44, 0.2);
  --shadow-sm: 0 2px 8px rgba(14, 27, 44, 0.06);
  --shadow: 0 8px 30px rgba(14, 27, 44, 0.1);
  --shadow-lg: 0 20px 50px rgba(14, 27, 44, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.72, 0.25, 1);
  --font: "Segoe UI", "Tahoma", "Arial", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

/* ========== Typography ========== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--navy); }
.gold-text { color: var(--gold); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 15px rgba(200, 160, 46, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 160, 46, 0.4);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--line-strong);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(200, 160, 46, 0.06);
}

.btn-ghost {
  color: var(--muted);
}
.btn-ghost:hover { color: var(--gold); }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 27, 44, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s var(--ease);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(200, 160, 46, 0.1);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.head-call {
  display: none;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: 0.3s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: 0.3s;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
}
.menu-panel.open { display: flex; }
.menu-panel a {
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 500;
}
.menu-panel a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 50%, #1a3048 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200,160,46,0.12), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,160,46,0.15);
  border: 1px solid rgba(200,160,46,0.3);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ========== Sections ========== */
.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1rem;
}

.title-rule {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ========== Client Access Card (Key Feature) ========== */
.client-access {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.client-access::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(200,160,46,0.15), transparent 70%);
  pointer-events: none;
}

.client-access-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.client-access h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.client-access > p,
.client-access-inner > p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.access-form {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.form-group {
  display: grid;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.form-group input {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.25s var(--ease);
  direction: ltr;
  text-align: left;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(200,160,46,0.2);
}

.access-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
}

.access-features {
  display: grid;
  gap: 0.85rem;
}

.access-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.access-feature svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

/* ========== Project Cards ========== */
.project-grid {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(200,160,46,0.3);
}

.project-card-visual {
  height: 160px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  position: relative;
  display: grid;
  place-items: center;
}

.project-card-visual .icon {
  font-size: 2.5rem;
  opacity: 0.3;
}

.project-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(200,160,46,0.9);
  color: var(--navy);
}

.project-card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.meta-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--muted);
}

/* ========== Social Links Hub ========== */
.links-page {
  min-height: 100vh;
  background: linear-gradient(165deg, var(--navy) 0%, #122033 40%, var(--navy-2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 4rem;
}

.links-card {
  width: min(100%, 420px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem 1.75rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.links-avatar {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(200,160,46,0.35);
}

.links-card h1 {
  text-align: center;
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.links-card .subtitle {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s var(--ease);
  color: var(--white);
}

.link-item:hover {
  background: rgba(200,160,46,0.15);
  border-color: rgba(200,160,46,0.4);
  transform: translateY(-2px);
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}

.link-item.gold .link-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}

.link-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.link-text span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1px;
}

.links-footer {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ========== Project Progress Page ========== */
.project-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 2.5rem 0 3rem;
}

.project-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s;
}
.back-link:hover { color: var(--gold); }

.project-code-badge {
  background: rgba(200,160,46,0.15);
  border: 1px solid rgba(200,160,46,0.35);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.project-title-row h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.35rem;
}

.project-title-row .meta {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.progress-ring-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-ring {
  width: 72px;
  height: 72px;
  position: relative;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 6;
}

.progress-ring .bg { stroke: rgba(255,255,255,0.12); }
.progress-ring .fill {
  stroke: var(--gold);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease);
}

.progress-ring .percent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-light);
}

/* Timeline */
.timeline-section {
  padding: 3rem 0 4rem;
}

.timeline {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.timeline-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.timeline-item:hover {
  box-shadow: var(--shadow);
}

.timeline-item.latest {
  border-color: rgba(200,160,46,0.4);
  box-shadow: 0 0 0 3px rgba(200,160,46,0.1);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.timeline-date {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.timeline-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
}

.timeline-body {
  padding: 1.35rem;
}

.timeline-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}

.timeline-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}

.timeline-photos .photo {
  aspect-ratio: 1;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.25);
  font-size: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s;
}

.timeline-photos .photo:hover {
  transform: scale(1.03);
}

/* Sidebar cards on project page */
.project-layout {
  display: grid;
  gap: 2rem;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
}

.info-row span:first-child { color: var(--muted); }
.info-row span:last-child { font-weight: 600; color: var(--navy); }

/* ========== Footer ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.footer-brand small {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }

.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1rem;
}

/* ========== Mobile Bar ========== */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(14,27,44,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 90;
}

.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.quick-call {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}

.quick-wa {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ========== Responsive ========== */
@media (min-width: 700px) {
  .client-access-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-layout {
    grid-template-columns: 1fr 300px;
  }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .head-call { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: start;
  }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeUp 0.7s var(--ease) both;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
