:root {
  --bg-canvas: #faf8f5;
  --bg-surface: #ffffff;
  --bg-soft: #f1ede6;
  --bg-dark: #232528;
  --bg-dark-card: #2e3136;

  --accent-emerald: #4b9b3a;
  --accent-bronze: #8b3a1e;
  --accent-gold: #c89b3c;
  --accent-lime: #74c95e;

  --text-ink: #232528;
  --text-muted: #5c6066;
  --text-light: #f6f4ef;
  --border-hairline: #e7e2da;

  --font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(35, 37, 40, 0.06);
  --shadow-float: 0 20px 48px rgba(35, 37, 40, 0.14);
  --container-max: 1360px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-ink);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin-top: 0;
  color: var(--text-ink);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 22px;
}

/* Floating Pill Header (Inspired by NextWave / FIELDLINE / NEXAHOME) */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 16px;
  margin-top: 14px;
}

.header-pill {
  max-width: var(--container-max);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.brand-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.brand-text span {
  display: block;
  font-size: 0.74rem;
  color: var(--accent-bronze);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--bg-canvas);
  border-radius: var(--radius-pill);
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-ink);
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  background: var(--bg-dark);
  color: var(--bg-surface);
}

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

.menu-toggle {
  display: none;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

/* Pill Buttons with Circular Arrow Badge */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--bg-surface);
}

.btn-bronze {
  background: var(--accent-bronze);
  color: var(--bg-surface);
}

.btn-lime {
  background: var(--accent-lime);
  color: var(--bg-dark);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-hairline);
  color: var(--text-ink);
}

.btn-circle-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--accent-bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}

.btn-circle-icon svg,
.photo-arrow svg {
  width: 15px;
  height: 15px;
  display: block;
}

.btn:hover .btn-circle-icon {
  transform: translate(-2px, -2px);
}

.btn-glass .btn-circle-icon {
  background: var(--bg-dark);
  color: var(--bg-surface);
}

/* Editorial Asymmetric Hero (Inspired by FIELDLINE / NextWave / MR L PRODUCTION) */
.hero-wrap {
  padding: 26px 0 42px;
}

.hero-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-bronze);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-title .accent-word {
  color: var(--accent-bronze);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fdf3ef;
  color: var(--accent-bronze);
  border: 1px solid #f2dcd3;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
}

.hero-visual img.hero-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero-float-top {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  max-width: 230px;
}

.hero-float-top strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--bg-dark);
}

.hero-float-top span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-float-stats {
  position: absolute;
  bottom: 18px;
  right: 18px;
  left: 18px;
  background: rgba(35, 37, 40, 0.86);
  backdrop-filter: blur(14px);
  color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--accent-lime);
}

.stat-item span {
  font-size: 0.82rem;
  color: #dce5df;
}

/* Section Headers */
.section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-bronze);
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Filter Pills (NextWave Style) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--bg-dark);
  color: var(--bg-surface);
  border-color: var(--bg-dark);
}

/* Photo Bento Cards (NextWave / Lensora / FIELDLINE) */
.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.bento-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.split-sidebar-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.photo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-bronze);
}

.photo-card-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 175px;
  margin-bottom: 14px;
}

.photo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-card:hover .photo-card-media img {
  transform: scale(1.05);
}

.photo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.photo-arrow {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.photo-card:hover .photo-arrow {
  background: var(--accent-bronze);
  color: var(--bg-surface);
  transform: translate(-2px, -2px);
}

.photo-card-body {
  padding: 4px 8px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photo-card-body h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.photo-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.card-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

/* Dark Process Band (Inspired by Cargo Panda & MORPH AI) */
.dark-band {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  margin: 24px 0;
}

.dark-band h2 {
  color: var(--bg-surface);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.process-step {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-lime);
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 14px;
}

.process-step h3 {
  color: var(--bg-surface);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.process-step p {
  color: #c7d4cd;
  font-size: 0.9rem;
  margin: 0;
}

/* Diplomatic & Flyer Feature Split */
.feature-split {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: grid;
  gap: 10px;
}

.feature-checklist li {
  background: var(--bg-canvas);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--accent-bronze);
  font-weight: 600;
}

/* Testimonials & Instructors (ARIZ / FIELDLINE) */
.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.quote-card.featured {
  background: var(--bg-dark);
  color: var(--bg-surface);
}

.quote-card.featured p {
  color: #e4ede8;
}

/* Interactive Panels & Inner Page Visual Hero */
.inner-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
  margin: 22px 0 32px;
  box-shadow: var(--shadow-soft);
}

.inner-hero img.inner-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 37, 40, 0.2) 0%, rgba(35, 37, 40, 0.88) 100%);
}

.inner-hero-content {
  position: relative;
  z-index: 2;
  padding: 34px;
  color: var(--bg-surface);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.inner-hero-content h1 {
  color: var(--bg-surface);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  margin-bottom: 8px;
}

.inner-hero-content p {
  color: #dce7e1;
  margin: 0;
  max-width: 62ch;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d5cec0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-canvas);
}

.form-control:focus {
  outline: none;
  border-color: var(--bg-dark);
  background: var(--bg-surface);
}

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-bar .form-control {
  flex: 1 1 260px;
}

.result-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
}

.result-box.success {
  background: #e9f5ef;
  border-color: #95cbb3;
}

.result-box.error {
  background: #fdf0ed;
  border-color: #e6b3a8;
  color: #7d2316;
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.cert-table th, .cert-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-hairline);
  text-align: right;
  font-size: 0.92rem;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal.open {
  display: flex;
}

.video-modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 780px;
  width: 100%;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent-bronze);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #dce5df;
  padding: 56px 0 26px;
  margin-top: 48px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

.site-footer h3, .site-footer h4 {
  color: var(--accent-lime);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-lime);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9eb2a7;
}

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  z-index: 90;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.07);
  background: #1ebe5b;
}

/* Responsive */
@media (max-width: 1060px) {
  .bento-grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-frame, .feature-split, .footer-grid, .split-sidebar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .site-header { top: 8px; padding: 0 10px; margin-top: 8px; }
  .header-pill { padding: 8px 12px; gap: 8px; }
  .brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
  .brand-text strong { font-size: 0.9rem; white-space: nowrap; }
  .brand-text span { display: none; }
  .menu-toggle { display: inline-flex; padding: 7px 14px; font-size: 0.85rem; flex-shrink: 0; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 10px;
    left: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-float);
  }
  .main-nav.open { display: block; }
  .nav-menu { flex-direction: column; align-items: stretch; background: transparent; }
  .header-actions { display: none; }
  .bento-grid-4, .bento-grid-3, .bento-grid-2, .process-grid, .form-grid, .split-sidebar-grid { grid-template-columns: 1fr; }
  .hero-float-stats { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 72px; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 14px; left: 14px; }
}
