/* Base */
:root {
  --bg: #0b0b0b;
  --surface: #121212;
  --text: #f7f7f7;
  --muted: #b8b8b8;
  --accent: #ffd000; /* Yellow */
  --accent-700: #e0b800;
  --card: #161616;
  --border: #262626;
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --text: #141414;
  --muted: #5a5a5a;
  --accent: #ffd000;
  --accent-700: #e0b800;
  --card: #ffffff;
  --border: #e9e9e9;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text strong { display: block; font-weight: 800; letter-spacing: 0.2px; }
.brand-text .en { display: block; font-size: 12px; color: var(--muted); }

.header-actions { display: flex; gap: 10px; align-items: center; }
.btn { cursor: pointer; border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-weight: 700; transition: .2s ease; }
.btn.primary { background: var(--accent); color: #141414; }
.btn.primary:hover { background: var(--accent-700); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 8px 10px; font-size: 13px; }

/* Hero Slider */
.hero-slider { border-bottom: 1px solid var(--border); }
.slider-viewport { position: relative; overflow: hidden; height: min(56vh, 560px); background: var(--surface); }
.slides { display: flex; width: 100%; height: 100%; transform: translateX(0); transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.slide { min-width: 100%; height: 100%; position: relative; isolation: isolate; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--surface); display: block; }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.15), rgba(0,0,0,.05)); z-index: 1; }
.slide.no-overlay::after { display: none; }
/* company hero */
.company-hero { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; z-index: 2; color: var(--text); }
.company-logo { width: clamp(72px, 12vw, 120px); height: clamp(72px, 12vw, 120px); margin-bottom: 16px; object-fit: contain; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.company-name-ar { margin: 0 0 8px; font-size: clamp(22px, 4.5vw, 42px); font-weight: 800; letter-spacing: .2px; }
.company-name-en { font-size: clamp(12px, 2.4vw, 18px); color: var(--muted); font-weight: 700; }
/* slider arrows */
.hero-slider .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 70%, transparent); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: .2s ease; }
.hero-slider .nav:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent); }
.hero-slider .nav.prev { inset-inline-start: 12px; }
.hero-slider .nav.next { inset-inline-end: 12px; }
.hero-slider .nav:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
@media (max-width: 520px) {
  .hero-slider .nav { width: 36px; height: 36px; }
}

/* Services */
.services { padding: 48px 0; }
.services h2 { margin: 0 0 18px; font-size: 28px; }
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card { grid-column: span 12; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.card h3 { margin: 2px 0; font-size: 18px; }

@media (min-width: 560px) {
  .card { grid-column: span 6; }
}
@media (min-width: 920px) {
  .card { grid-column: span 4; }
}

/* Contact */
.contact { padding: 36px 0 56px; border-top: 1px solid var(--border); }
.contact h2 { margin: 0 0 16px; }
.contact-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.contact-item { grid-column: span 12; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: inherit; text-decoration: none; transition: .2s ease; }
.contact-item:hover { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent); }
.contact-item small { color: var(--muted); }
.contact-item.whatsapp { --brand: #25D366; }
.contact-item.phone { --brand: #ffd000; }
.contact-item.telegram { --brand: #2AABEE; }
.contact-item.map { --brand: #34A853; }
.contact-item::before { content: ""; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--brand); margin-inline-start: 6px; }

@media (min-width: 700px) {
  .contact-item { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .contact-item { grid-column: span 3; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 16px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); font-size: 14px; }

/* Utilities */
.en { direction: ltr; font-weight: 600; }
