:root {
  --color-primary: #16324F;
  --color-primary-dark: #0B1C33;
  --color-on-primary: #FFFFFF;
  --color-secondary: #3D5A73;
  --color-accent: #E85D04;
  --color-accent-hover: #C2410C;
  --color-accent-soft: #FF6B1A;
  --color-steel: #8A97A6;
  --color-background: #F3F5F8;
  --color-surface: #FFFFFF;
  --color-foreground: #0E1726;
  --color-muted: #5B6B7C;
  --color-muted-bg: #E6EBF1;
  --color-border: #D0D7E0;
  --color-destructive: #DC2626;
  --color-ring: #E85D04;
  --color-whatsapp: #128C7E;
  --color-whatsapp-hover: #075E54;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-arabic: "Cairo", "Inter", system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 28px rgba(11, 28, 51, 0.08);
  --shadow-lg: 0 22px 50px rgba(11, 28, 51, 0.16);
  --header-h: 84px;
  --z-header: 100;
  --z-fab: 200;
  --z-popup: 210;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 220ms;
}

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

html {
  scroll-behavior: smooth;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 400;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--color-primary-dark);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: linear-gradient(180deg, #EEF2F6 0%, #E6EBF1 100%);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-lead {
  color: var(--color-muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.btn:focus-visible,
.lang-btn:focus-visible,
.menu-toggle:focus-visible,
.wa-fab:focus-visible,
.wa-close:focus-visible,
.to-top:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 48px;
  padding: 12px 22px;
}

.btn-accent {
  background: linear-gradient(180deg, #FF6B1A 0%, #E85D04 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 93, 4, 0.28);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  width: 100%;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: linear-gradient(180deg, #0B1C33 0%, #12263F 100%);
  border-bottom: 1px solid rgba(232, 93, 4, 0.35);
  transition: box-shadow var(--duration) var(--ease);
}

.header.is-scrolled {
  box-shadow: 0 10px 28px rgba(11, 28, 51, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.92;
}

.logo-img {
  height: 64px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: #D7DEE7;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(232, 93, 4, 0.18);
}

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

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  min-width: 40px;
  min-height: 36px;
  border-radius: 999px;
  color: #C5CDD6;
  font-weight: 700;
  font-size: 0.8rem;
}

.lang-btn.is-active {
  background: var(--color-accent);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  background:
    radial-gradient(circle at 82% 18%, rgba(232, 93, 4, 0.22) 0 140px, transparent 180px),
    linear-gradient(155deg, #071422 0%, #0B1C33 42%, #16324F 100%);
  color: #fff;
}

.hero h1,
.hero .hero-lead,
.hero .eyebrow {
  color: #fff;
}

.hero .eyebrow {
  color: #FFB26B;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.1) 0 8px, transparent 9px),
    radial-gradient(circle at 80% 30%, rgba(232, 93, 4, 0.28) 0 10px, transparent 11px),
    radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.06) 0 14px, transparent 15px),
    radial-gradient(circle at 30% 70%, rgba(138, 151, 166, 0.28) 0 6px, transparent 7px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -18px, 0); }
}

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

.hero-lead {
  font-size: 1.1rem;
  max-width: 54ch;
  color: #C9D4E0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-trust {
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-trust li {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-size: 1.5rem;
}

.hero-trust span {
  color: #A8B6C4;
  font-size: 0.9rem;
}

.hero-card {
  background: #fff;
  color: var(--color-foreground);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--color-accent);
}

.hero-card-logo {
  width: 148px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 10px rgba(11, 28, 51, 0.18));
}

.hero-card h2 {
  font-size: 1.4rem;
}

.hero-card-kicker {
  margin: 0 0 6px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-card-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--color-muted);
}

html[dir="rtl"] .hero-card-list {
  padding-left: 0;
  padding-right: 18px;
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--color-accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #E8EEF4;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.service-icon.accent {
  background: #FFE8D6;
  color: var(--color-accent);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 0;
}

.stats div {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
}

.stats dt {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stats dd {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.about-panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--color-muted-bg);
}

html[dir="rtl"] .check-list li {
  padding: 10px 28px 10px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: inset 0 0 0 3px #FFE8D6;
}

html[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}

.invoice-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.invoice {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.invoice-logo {
  width: 168px;
  height: auto;
  margin-bottom: 10px;
}

.invoice-head,
.invoice-parties {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.invoice-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 6px;
}

.invoice-head p,
.invoice-parties p {
  margin: 0 0 4px;
  color: var(--color-muted);
}

.invoice-label {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: 0.08em;
}

.invoice-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent) !important;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.invoice-table th,
.invoice-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-muted-bg);
}

html[dir="rtl"] .invoice-table th,
html[dir="rtl"] .invoice-table td {
  text-align: right;
}

.invoice-table th {
  background: #0B1C33;
  color: #fff;
  font-size: 0.85rem;
}

.invoice-table td:nth-child(2),
.invoice-table td:nth-child(3),
.invoice-table td:nth-child(4),
.invoice-table th:nth-child(2),
.invoice-table th:nth-child(3),
.invoice-table th:nth-child(4) {
  text-align: right;
  white-space: nowrap;
}

.invoice-totals {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.invoice-totals dl {
  width: min(320px, 100%);
  margin: 0;
}

.invoice-totals div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.invoice-totals .total {
  border-top: 2px solid var(--color-accent);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.invoice-foot {
  margin-top: 28px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

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

.review-card {
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.review-card p {
  margin: 12px 0 16px;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars span {
  width: 14px;
  height: 14px;
  background: #EA580C;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info a:hover {
  color: var(--color-accent);
}

.contact-info span:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  font-weight: 700;
}

.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-error {
  margin: 0;
  color: var(--color-destructive);
  font-size: 0.85rem;
}

.form-status {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #DCFCE7;
  color: #166534;
  font-weight: 600;
}

.footer {
  background: linear-gradient(180deg, #0B1C33 0%, #071422 100%);
  color: #A8B6C4;
  padding: 40px 0;
  border-top: 3px solid var(--color-accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-logo {
  width: 120px;
  height: auto;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
  z-index: var(--z-fab);
  display: grid;
  place-items: center;
}

html[dir="rtl"] .to-top {
  right: auto;
  left: 24px;
}

.wa-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-popup);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

html[dir="rtl"] .wa-wrap {
  right: auto;
  left: 20px;
  align-items: flex-start;
}

.wa-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.35);
}

.wa-fab::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.wa-popup {
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.wa-popup-head {
  background: #0B1C33;
  color: #fff;
  padding: 14px 14px 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--color-accent);
}

.wa-logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.wa-name {
  margin: 0;
  font-weight: 700;
}

.wa-status {
  margin: 0;
  font-size: 0.8rem;
  color: #BBF7D0;
}

.wa-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}

.wa-body {
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #ECE5DD;
}

.wa-bubble {
  margin: 0;
  background: #fff;
  padding: 12px;
  border-radius: 4px 12px 12px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

html[dir="rtl"] .wa-bubble {
  border-radius: 12px 4px 12px 12px;
}

.wa-body textarea {
  border: 0;
  border-radius: 10px;
  padding: 10px;
  resize: none;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid .service-card:nth-child(5),
  .cards-grid .service-card:nth-child(6) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #12263F;
    flex-direction: column;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(232, 93, 4, 0.35);
    display: none;
  }

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

  .logo-img {
    height: 52px;
  }

  .hero,
  .section {
    padding: 56px 0;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-grid,
  .reviews-grid,
  .stats,
  .invoice-head,
  .invoice-parties {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-inner,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .header,
  .hero,
  .section:not(#factuur),
  .invoice-toolbar,
  .footer,
  .to-top,
  .wa-wrap,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  #factuur,
  .invoice {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .section {
    padding: 0;
  }
}
