/* ============================================================
   Daar Digital Solutions SPC — daar.om
   Corporate website stylesheet
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --primary:        #1a365d;
  --primary-dark:   #0f2442;
  --primary-mid:    #234070;
  --accent:         #d69e2e;
  --accent-light:   #ecc94b;
  --white:          #ffffff;
  --bg-light:       #f7f9fc;
  --text:           #1a202c;
  --text-muted:     #4a5568;
  --text-subtle:    #718096;
  --border:         #e2e8f0;
  --border-light:   #edf2f7;

  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'IBM Plex Sans Arabic', 'Segoe UI', Arial, sans-serif;

  --max-w: 1080px;
  --radius: 8px;
  --radius-lg: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.ar {
  font-family: var(--font-ar);
  direction: rtl;
  unicode-bidi: embed;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 .ar {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--accent);
}

.section-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-en {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-ar {
  font-family: var(--font-ar);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  direction: rtl;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--accent-light); }

.nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--primary-dark) !important;
  background: var(--accent);
  padding: 7px 18px;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-light) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--primary);
  overflow: hidden;
  padding: 96px 0 80px;
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Accent glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214,158,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(214,158,46,0.12);
  border: 1px solid rgba(214,158,46,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-name {
  margin-bottom: 8px;
}

.hero-name-en {
  display: block;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-name-ar {
  display: block;
  font-family: var(--font-ar);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  direction: rtl;
  margin-top: 6px;
  line-height: 1.4;
}

.hero-tagline {
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
}

.hero-tagline-ar {
  font-family: var(--font-ar);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  direction: rtl;
  margin-top: 4px;
}

.hero-desc {
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  line-height: 1.65;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.hero-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.hero-contact-link:hover { color: var(--accent-light); }

.hero-contact-link svg {
  width: 15px;
  height: 15px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
  padding: 88px 0;
  background: var(--bg-light);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-text p:last-child { margin-bottom: 0; }

.about-meta {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.meta-title {
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}

.meta-row:last-child { border-bottom: none; }

.meta-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.meta-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.meta-value.ar {
  font-family: var(--font-ar);
  direction: rtl;
}

.badge-active {
  display: inline-block;
  background: #c6f6d5;
  color: #22543d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ---------- Services ---------- */
.services {
  padding: 88px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(26, 54, 93, 0.1);
  border-color: rgba(26, 54, 93, 0.2);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.service-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Footer / Contact ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-en {
  font-size: 18px;
  font-weight: 800;
}

.footer-brand .logo-ar {
  font-family: var(--font-ar);
  font-size: 14px;
  direction: rtl;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  display: block;
}

.footer-tagline {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  margin-top: 10px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-col address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.footer-contact-list li svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-contact-list a:hover { color: var(--accent-light); }

.footer-reg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
}

.reg-label {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  white-space: nowrap;
}

.reg-value {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  text-align: right;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom .ar {
  font-family: var(--font-ar);
  font-size: 11.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero { padding: 72px 0 64px; }

  .site-nav { gap: 20px; }
  .site-nav a { font-size: 13px; }
  .nav-cta { display: none; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .meta-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .meta-value { text-align: left; }
}

@media (max-width: 420px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-contacts { flex-direction: column; gap: 12px; }
}
