/*========== Tokens ============*/
/* Deep Petrol & Teal Palette */
:root {
  --color-text-main: #0B2530;
  --color-primary: #136F63;
  --color-accent: #22AAA1;
  --color-highlight: #4ECCA3;
  --color-bg-light: #E8F6F5;
}

/* Semantic tokens mapped to the palette */
:root {
  --blue: var(--color-primary);
  --blue-dark: #0E564D;
  --blue-rgb: 19,111,99;
  --on-primary: #FFFFFF;
  --gold: var(--color-accent);
  --gold-light: var(--color-highlight);
  --text: var(--color-text-main);
  --heading: var(--color-text-main);
  --bg: var(--color-bg-light);
  --surface: #FFFFFF;
  --muted: #3F5F66;
  --border: #CFE6E3;
  --section-dark: var(--color-text-main);
  --radius: 14px;
  --shadow: 0 2px 16px rgba(19,111,99,.10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: var(--color-highlight);
    --blue-dark: #3DB892;
    --blue-rgb: 78,204,163;
    --on-primary: var(--color-text-main);
    --gold: var(--color-highlight);
    --text: #C5E3E0;
    --heading: var(--color-bg-light);
    --bg: #071A22;
    --surface: #0F2E3A;
    --muted: #8DB3B0;
    --border: #1E4652;
    --section-dark: #0B2530;
    --shadow: 0 2px 16px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: var(--color-highlight);
  --blue-dark: #3DB892;
  --blue-rgb: 78,204,163;
  --on-primary: var(--color-text-main);
  --gold: var(--color-highlight);
  --text: #C5E3E0;
  --heading: var(--color-bg-light);
  --bg: #071A22;
  --surface: #0F2E3A;
  --muted: #8DB3B0;
  --border: #1E4652;
  --section-dark: #0B2530;
  --shadow: 0 2px 16px rgba(0,0,0,.35);
  color-scheme: dark;
}

/*========== Base ============*/
:root[lang="ar"] [lang="en"],
:root[lang="en"] [lang="ar"] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/*========== Header ============*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-block-end: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.brand-logo { border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 16px;
}

.nav a {
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s, background .15s;
}

.nav a:hover { color: var(--blue); background: rgba(var(--blue-rgb),.06); }

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.icon-btn:hover { border-color: var(--blue); background: rgba(var(--blue-rgb),.06); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  background: var(--blue);
  color: var(--on-primary);
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--blue-dark); }
.btn-primary.lg { height: 48px; padding: 0 28px; font-size: 16px; }
.btn-primary[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 2px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/*========== Hero ============*/
.hero {
  padding-block: clamp(64px, 10vw, 120px);
  background: linear-gradient(135deg, var(--surface) 60%, rgba(var(--blue-rgb),.04) 100%);
  border-block-end: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  background: rgba(var(--blue-rgb),.1);
  color: var(--blue);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.hero-text h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.2;
  color: var(--heading);
}

.hero-text h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}

.hero-sub {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card.secondary { opacity: .85; }

.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: #22c55e; }
.dot.gold { background: var(--gold); }

.card-amount {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
}

.card-bar {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.card-bar .fill { display: block; height: 100%; background: var(--blue); border-radius: 100px; }
.card-bar .fill.gold { background: var(--gold); }

/*========== About ============*/
.about {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--surface);
  border-block-end: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  background: rgba(var(--blue-rgb),.08);
  color: var(--blue);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.about-text h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--heading);
  line-height: 1.3;
}

.about-text p {
  margin: 0 0 24px;
  color: var(--muted);
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li { font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stat {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-inline-start: 4px solid var(--blue);
  background: var(--bg);
}

.stat-num {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--blue);
}

.stat-label { font-size: 14px; color: var(--muted); }

/*========== Products ============*/
.products {
  padding-block: clamp(64px, 8vw, 96px);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 38px);
  color: var(--heading);
  line-height: 1.3;
}

.section-head.light h2 { color: #fff; }
.section-head.light .section-label { background: rgba(255,255,255,.15); color: #fff; }

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.product-icon { font-size: 32px; margin-bottom: 16px; }

.product-card h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 17px;
}

.product-card p { margin: 0; color: var(--muted); font-size: 14px; }

/*========== Features ============*/
.features-section {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--surface);
  border-block: 1px solid var(--border);
}

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

.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon { font-size: 28px; margin-bottom: 14px; }

.feature h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 16px;
}

.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/*========== Why ============*/
.why {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--section-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 0;
}

.why-item {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.why-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}

.why-item h3 { margin: 0 0 10px; color: #fff; font-size: 16px; }
.why-item p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }

/*========== Testimonials ============*/
.testimonials-section {
  padding-block: clamp(64px, 8vw, 96px);
}

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

.testimonial-card {
  margin: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-block-start: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card footer strong { color: var(--heading); font-size: 15px; }
.testimonial-card footer span { color: var(--muted); font-size: 13px; }

/*========== Footer ============*/
.site-footer {
  background: var(--surface);
  border-block-start: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}

.social a:hover {
  color: var(--on-primary);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 { margin: 0 0 8px; color: var(--heading); font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--blue); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact h4 { margin: 0 0 8px; color: var(--heading); font-size: 15px; }
.footer-contact a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-contact a:hover { color: var(--blue); }

.ltr { direction: ltr; display: inline-block; }

.footer-bottom {
  border-block-start: 1px solid var(--border);
  padding-block: 20px;
}

.footer-bottom p { margin: 0; color: var(--muted); font-size: 13px; }

/*========== Responsive ============*/
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 400px) { .brand-name { display: none; } }

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .products-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
