/*
 Theme Name:   Hello Elementor Child - OmariCommerce
 Template:     hello-elementor
 Version:      1.0.0
 Description:  Custom child theme for OmariCommerce
 Author:       OmariCommerce
*/

/* =============================================
   OMARICOMMERCE DESIGN SYSTEM
   ============================================= */

/* --- CSS VARIABLES --- */
:root {
  /* Brand Colors */
  --oc-primary: #DD6711;
  --oc-primary-light: #EB9232;
  --oc-primary-tint: #FFF5EB;
  --oc-dark: #2D2D2D;
  --oc-gray: #666666;
  --oc-light: #F5F5F5;
  --oc-white: #FFFFFF;
  --oc-gradient: linear-gradient(135deg, #EB9232 0%, #DD6711 100%);

  /* Typography */
  --oc-font: 'Nunito Sans', sans-serif;

  /* Layout */
  --oc-radius: 6px;
  --oc-section-pad: 80px;
  --oc-content-width: 1140px;
  --oc-gap: 24px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--oc-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--oc-dark);
  background-color: var(--oc-white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--oc-font);
  line-height: 1.2;
  margin-top: 0;
  color: var(--oc-dark);
}

h1 { font-size: 48px; font-weight: 800; }
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }
h4 { font-size: 20px; font-weight: 600; }

/* --- LINKS --- */
a {
  color: var(--oc-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--oc-primary-light);
}

/* --- IMAGES --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- BUTTONS --- */
.oc-btn-primary {
  display: inline-block;
  background-color: var(--oc-primary);
  color: var(--oc-white) !important;
  font-family: var(--oc-font);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--oc-radius);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.oc-btn-primary:hover {
  background: var(--oc-gradient);
  transform: translateY(-2px);
  color: var(--oc-white) !important;
}

.oc-btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--oc-primary) !important;
  font-family: var(--oc-font);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 30px;
  border: 2px solid var(--oc-primary);
  border-radius: var(--oc-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.oc-btn-ghost:hover {
  background-color: var(--oc-primary);
  color: var(--oc-white) !important;
  transform: translateY(-2px);
}

.oc-btn-white {
  display: inline-block;
  background-color: var(--oc-white);
  color: var(--oc-primary) !important;
  font-family: var(--oc-font);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--oc-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.oc-btn-white:hover {
  background-color: var(--oc-primary-tint);
  transform: translateY(-2px);
}

/* --- SECTION UTILITIES --- */
.oc-section {
  padding: var(--oc-section-pad) 0;
}

.oc-section--tint {
  background-color: var(--oc-primary-tint);
}

.oc-section--light {
  background-color: var(--oc-light);
}

.oc-section--gradient {
  background: var(--oc-gradient);
}

.oc-section--gradient h2,
.oc-section--gradient h3,
.oc-section--gradient p,
.oc-section--gradient li {
  color: var(--oc-white);
}

.oc-section--dark {
  background-color: var(--oc-dark);
}

.oc-section--dark h2,
.oc-section--dark h3,
.oc-section--dark h4,
.oc-section--dark p,
.oc-section--dark li,
.oc-section--dark a {
  color: var(--oc-white);
}

/* --- OVERLINE (small label above headings) --- */
.oc-overline {
  font-family: var(--oc-font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--oc-primary);
  margin-bottom: 8px;
  display: block;
}

/* --- CONTAINER --- */
.oc-container {
  max-width: var(--oc-content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- CARDS --- */
.oc-card {
  background: var(--oc-white);
  border-radius: var(--oc-radius);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* --- ICON BOX (for services grid) --- */
.oc-icon-box {
  text-align: center;
  padding: 32px 24px;
}

.oc-icon-box i,
.oc-icon-box svg {
  font-size: 48px;
  color: var(--oc-primary);
  margin-bottom: 16px;
}

.oc-icon-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.oc-icon-box p,
.oc-icon-box ul {
  font-size: 15px;
  color: var(--oc-gray);
}

.oc-icon-box ul {
  list-style: none;
  padding: 0;
}

.oc-icon-box ul li {
  padding: 4px 0;
}

/* --- PARTNER LOGOS --- */
.oc-partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
  max-height: 60px;
  width: auto;
}

.oc-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- QUOTE BLOCK --- */
.oc-quote {
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: var(--oc-dark);
  border-left: 4px solid var(--oc-primary);
  padding-left: 24px;
  margin: 32px 0;
  max-width: 800px;
}

.oc-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  color: var(--oc-primary);
}

/* --- SERVICE ANCHOR NAV --- */
.oc-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  background: var(--oc-white);
  z-index: 100;
}

.oc-anchor-nav a {
  padding: 10px 20px;
  border: 1px solid var(--oc-primary);
  border-radius: var(--oc-radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--oc-primary);
  transition: all 0.3s ease;
}

.oc-anchor-nav a:hover,
.oc-anchor-nav a.active {
  background-color: var(--oc-primary);
  color: var(--oc-white);
}

/* --- VALUE LIST (About page) --- */
.oc-values-list {
  list-style: none;
  padding: 0;
  counter-reset: values;
}

.oc-values-list li {
  counter-increment: values;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 18px;
}

.oc-values-list li::before {
  content: counter(values) ".";
  font-weight: 800;
  color: var(--oc-primary);
  margin-right: 12px;
  font-size: 20px;
}

.oc-values-list li strong {
  color: var(--oc-dark);
}

/* --- PARTNER CARD (Partners page) --- */
.oc-partner-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
}

.oc-partner-card:last-child {
  border-bottom: none;
}

.oc-partner-card__logo {
  flex-shrink: 0;
  width: 160px;
}

.oc-partner-card__logo img {
  max-width: 100%;
  height: auto;
}

.oc-partner-card__content h3 {
  margin-bottom: 4px;
}

.oc-partner-card__content .oc-partner-category {
  font-size: 14px;
  font-weight: 600;
  color: var(--oc-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

/* --- CASE STUDY BOX --- */
.oc-case-study {
  background-color: var(--oc-primary-tint);
  border-left: 4px solid var(--oc-primary);
  border-radius: 0 var(--oc-radius) var(--oc-radius) 0;
  padding: 24px 32px;
  margin: 24px 0;
}

.oc-case-study h4 {
  color: var(--oc-primary);
  margin-bottom: 12px;
}

.oc-case-study p {
  font-size: 15px;
  color: var(--oc-gray);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --oc-section-pad: 48px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }

  .oc-btn-primary,
  .oc-btn-ghost,
  .oc-btn-white {
    display: block;
    width: 100%;
    padding: 16px 24px;
  }

  .oc-partner-card {
    flex-direction: column;
    gap: 16px;
  }

  .oc-partner-card__logo {
    width: 120px;
  }

  .oc-anchor-nav {
    position: relative;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .oc-anchor-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .oc-section {
    padding: 36px 0;
  }

  .oc-card {
    padding: 24px 20px;
  }

  .oc-quote {
    font-size: 17px;
    padding-left: 16px;
  }
}
/* Arabic typography */
html[lang="ar"],
html[dir="rtl"] {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0; /* Arabic should not use letter spacing */
  word-spacing: 0;
}

/* Arabic headings */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .oc-hero-title,
html[lang="ar"] .oc-services-main-title,
html[lang="ar"] .oc-project-title,
html[lang="ar"] .oc-why-main-title,
html[lang="ar"] .oc-abt-hero2-title,
html[lang="ar"] .oc-ct-hero-title,
html[lang="ar"] .oc-svc-hero-title {
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 800;
  line-height: 1.25;
}

/* Arabic body text improvements */
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] .oc-hero-subtitle,
html[lang="ar"] .oc-svc-detail-desc,
html[lang="ar"] .oc-about-desc,
html[lang="ar"] .oc-project-desc {
  line-height: 1.9;
  font-weight: 500;
}

/* Avoid italic styling on Arabic highlights (optional but recommended) */
html[lang="ar"] em,
html[lang="ar"] .oc-hero-title-highlight {
  font-style: normal;
}

/* Optional: make Arabic numbers align nicely */
html[lang="ar"] {
  font-variant-numeric: proportional-nums;
}
/* ===========================
   Arabic typography OVERRIDES
   (force replace Inter/Playfair inside section <style> blocks)
   =========================== */

html[lang="ar"],
html[dir="rtl"] {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
}

/* Force Arabic body font everywhere in custom sections */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] .oc-hero-wrapper,
html[lang="ar"] .oc-services-wrapper,
html[lang="ar"] .oc-about-wrapper,
html[lang="ar"] .oc-project-wrapper,
html[lang="ar"] .oc-why-wrapper,
html[lang="ar"] .oc-svc-hero-wrapper,
html[lang="ar"] .oc-svc-detail,
html[lang="ar"] .oc-pt-hero,
html[lang="ar"] .oc-pt-showcase,
html[lang="ar"] .oc-abt-hero2,
html[lang="ar"] .oc-abt-story,
html[lang="ar"] .oc-abt-nordine,
html[lang="ar"] .oc-abt-network,
html[lang="ar"] .oc-ct-hero,
html[lang="ar"] .oc-ct-main,
html[lang="ar"] .oc-footer-wrapper {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Headings: use a strong Arabic headline font */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .oc-hero-title,
html[lang="ar"] .oc-services-main-title,
html[lang="ar"] .oc-about-title,
html[lang="ar"] .oc-project-section-title,
html[lang="ar"] .oc-project-title,
html[lang="ar"] .oc-why-main-title,
html[lang="ar"] .oc-svc-hero-title,
html[lang="ar"] .oc-svc-detail-title,
html[lang="ar"] .oc-abt-hero2-title,
html[lang="ar"] .oc-abt-story-title,
html[lang="ar"] .oc-abt-values-title,
html[lang="ar"] .oc-abt-network-title,
html[lang="ar"] .oc-ct-hero-title,
html[lang="ar"] .oc-ct-form-title {
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

/* Arabic paragraph readability */
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] .oc-hero-subtitle,
html[lang="ar"] .oc-services-subtitle,
html[lang="ar"] .oc-about-desc,
html[lang="ar"] .oc-project-desc,
html[lang="ar"] .oc-why-benefit-desc,
html[lang="ar"] .oc-svc-detail-desc,
html[lang="ar"] .oc-ct-form-subtitle {
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  font-weight: 500 !important;
  line-height: 1.9 !important;
}

/* Arabic: disable italics used for Latin emphasis */
html[lang="ar"] em,
html[lang="ar"] .oc-hero-title-highlight,
html[lang="ar"] .oc-services-main-title em,
html[lang="ar"] .oc-about-title em,
html[lang="ar"] .oc-project-section-title em,
html[lang="ar"] .oc-project-title em,
html[lang="ar"] .oc-why-main-title em,
html[lang="ar"] .oc-svc-hero-title em,
html[lang="ar"] .oc-svc-detail-title em,
html[lang="ar"] .oc-abt-hero2-title em {
  font-style: normal !important;
}

/* Optional: nicer Arabic numerals rendering */
html[lang="ar"] {
  font-variant-numeric: proportional-nums;
}

