/* ================================================================
   Biopixel — application stylesheet
   Loads AFTER all vendor CSS so these rules win on specificity ties.
   ================================================================ */

/* --- Design tokens ------------------------------------------------
   Single source of truth for the whole visual system.
   Migrating to Tailwind later? Paste these into tailwind.config.js.
   Migrating to Blade + CMS later? Inject the values from PHP.
   ---------------------------------------------------------------- */
:root{
  /* Brand */
  --color-brand:            var(--color-brand);
  --color-brand-strong:     #1a24a8;
  --color-ink:              var(--color-ink);    /* primary text on light */
  --color-body:             var(--color-body);    /* secondary text on light */
  --color-muted:            #6b7280;

  /* Surface */
  --color-bg:               #ffffff;
  --color-bg-alt:           var(--color-bg-alt);    /* section band */
  --color-bg-input:         #f7f8fc;
  --color-border:           #e8eaf3;
  --color-border-strong:    #e1e3ef;

  /* Feedback */
  --color-error-bg:         #fdecec;
  --color-error-text:       #8b1e1e;

  /* Overlays */
  --color-overlay:          rgba(3,22,59,.55);

  /* Typography */
  --font-en:                'Poppins','Segoe UI','Helvetica Neue',Arial,sans-serif;
  --font-ar:                'Cairo','Segoe UI','Tahoma',Arial,sans-serif;

  /* Radius scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  /* Shadow scale */
  --shadow-sm:  0 4px 16px rgba(14,22,129,.05);
  --shadow-md:  0 6px 20px rgba(14,22,129,.06);
  --shadow-lg:  0 12px 32px rgba(14,22,129,.12);
  --shadow-xl:  0 24px 60px rgba(3,22,59,.35);

  /* Motion */
  --motion-fast:     .2s ease;
  --motion-default:  .3s ease;
  --motion-slow:     .4s ease-in-out;

  /* Layout */
  --scroll-offset:   96px;   /* room for sticky header when anchor-jumping */
}

/* --- Dark mode via OS preference (opt-in per element via tokens) --
   No JS needed. Users on macOS/Windows/iOS/Android with dark preference
   get dark automatically. Tokens flip; brand blue stays. */
@media (prefers-color-scheme: dark){
  :root{
    --color-bg:            #0a0f24;
    --color-bg-alt:        #12183a;
    --color-bg-input:      #1a2148;
    --color-ink:           #f2f4ff;
    --color-body:          #c3c9e6;
    --color-muted:         #7a83a8;
    --color-border:        #22295a;
    --color-border-strong: #2b3376;
    --color-brand:         #2a7c7b;   /* lift brand a bit for contrast on dark */
    --color-brand-strong:  #7fb3b2;
  }
}
/* Explicit override: `<html data-theme="light|dark">` wins over OS.
   Light theme re-declares the same defaults so it overrides a preferring-dark OS. */
html[data-theme="light"]{
  color-scheme: light;
  --color-bg:            #ffffff;
  --color-bg-alt:        #EFF0F7;
  --color-bg-input:      #f7f8fc;
  --color-ink:           #7fb3b2;
  --color-body:          #4a5473;
  --color-muted:         #6b7280;
  --color-border:        #e8eaf3;
  --color-border-strong: #e1e3ef;
  --color-brand:         #2a7c7b;
  --color-brand-strong:  #1a24a8;
}
html[data-theme="dark"]{
  color-scheme: dark;
  --color-bg:            #0a0f24;
  --color-bg-alt:        #12183a;
  --color-bg-input:      #1a2148;
  --color-ink:           #f2f4ff;
  --color-body:          #c3c9e6;
  --color-muted:         #7a83a8;
  --color-border:        #22295a;
  --color-border-strong: #2b3376;
  --color-brand:         #4d58ef;
  --color-brand-strong:  #6a75ff;
}

/* --- Web fonts ---------------------------------------------------- */
/* Both Poppins (EN) and Cairo (AR) load from Google Fonts via <link> in <head>.
   Cairo is SIL OFL — free for commercial use. No local files required. */

/* Global font stacks — Poppins in English, Cairo in Arabic */
body,
body.font-f-3,
.font-f-1,.font-f-2,.font-f-3,.font-f-4,.font-f-5,.font-f-6,.font-f-7,.font-f-8{
  font-family:var(--font-en) !important
}
html[dir="rtl"] body,
html[dir="rtl"] body.font-f-3,
html[dir="rtl"] .font-f-1,html[dir="rtl"] .font-f-2,html[dir="rtl"] .font-f-3,html[dir="rtl"] .font-f-4,
html[dir="rtl"] .font-f-5,html[dir="rtl"] .font-f-6,html[dir="rtl"] .font-f-7,html[dir="rtl"] .font-f-8,
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] h4,html[dir="rtl"] h5,html[dir="rtl"] h6,
html[dir="rtl"] p,html[dir="rtl"] a,html[dir="rtl"] button,html[dir="rtl"] input,html[dir="rtl"] textarea,html[dir="rtl"] li{
  font-family:var(--font-ar) !important
}

/* --- Base surface ------------------------------------------------ */
/* Body picks up the token so dark mode fills the viewport, not just cards. */
html,body{ /*background:var(--color-bg);*/ color:var(--color-body); }

/* --- Accessibility utilities ------------------------------------- */
/* Skip-link: parked off-screen with transform (survives scroll + RTL).
   Becomes visible only on keyboard focus. */
.skip-link{
  position:fixed;top:0;inset-inline-start:0;
  background:var(--color-brand);color:#fff;
  padding:10px 16px;z-index:10000;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
  text-decoration:none;font-weight:600;
  transform:translateY(-110%);
  transition:transform var(--motion-fast)
}
.skip-link:focus,.skip-link:focus-visible{ transform:translateY(0); outline:2px solid #fff; outline-offset:-4px }

/* --- Mobile sidebar "Get Started" CTA --------------------------
   Template rule for a.mobile-menu-button.hash-nav lives inside
   @media (max-width:769px) — margins fail there because <a> defaults
   to inline. Force block display + apply brand look at every size. */
.mobile-nav a.mobile-menu-button.hash-nav{
  display:block;                       /* margins on inline <a> are ignored — fix */
  color:#fff !important;
  background:var(--color-brand);
  border:1px solid var(--color-brand);
  padding:14px 20px;
  margin-top:20px;
  margin-bottom:20px;
  border-radius:var(--radius-md);
  text-align:center;
  text-decoration:none;
  font-weight:600;
  transition:background var(--motion-fast)
}
.mobile-nav a.mobile-menu-button.hash-nav:hover,
.mobile-nav a.mobile-menu-button.hash-nav:focus-visible{
  background:var(--color-brand-strong);
  color:#fff !important
}

/* --- WCAG 2.5.5 tap targets — mobile header controls need >= 44x44 --- */
.mobile-nav-icon{
  min-width:44px;min-height:44px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer
}
.mobile-header [data-lang-toggle]{
  min-height:44px;min-width:44px;
  padding:10px 14px;
  display:inline-flex;align-items:center;justify-content:center
}

/* --- Hero H1 responsive size — scales from 28px (small phones) to 44px (large screens) --- */
.main-hero h1{ font-size:clamp(28px, 5vw, 44px) !important; line-height:1.15 }

/* --- Consent banner --------------------------------------------- */
.consent-banner{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:9998;
  background:var(--color-ink);color:#000;border-radius:12px;
  box-shadow:0 12px 40px rgba(3,22,59,.35);padding:18px 22px;
  max-width:920px;margin:0 auto
}
.consent-banner[hidden]{display:none}
.consent-banner-inner{
  display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between
}
.consent-banner-text{margin:0;font-size:14px;line-height:1.55;flex:1 1 260px;text-align:start}
.consent-banner-actions{display:flex;gap:8px;flex-shrink:0}
.consent-btn{
  padding:9px 18px;border-radius:8px;font-weight:600;font-size:14px;
  border:1px solid transparent;cursor:pointer
}
.consent-btn-primary{background:var(--color-brand);color:#fff}
.consent-btn-primary:hover{background:#1a24a8}
.consent-btn-secondary{background:var(--bs-gray-dark);color:#fff;border-color:rgba(255,255,255,.4)}
.consent-btn-secondary:hover{border-color:#fff}
.consent-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:520px){
  .consent-banner-actions{width:100%}
  .consent-btn{flex:1}
}

/* --- Language toggle --------------------------------------------- */
[data-lang-toggle]{cursor:pointer;font-weight:600;background:none;border:none;padding:0;font:inherit;color:inherit;display:inline-flex;align-items:center;gap:6px}
[data-lang-toggle] img.flag{width:20px;height:14px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08);display:inline-block;vertical-align:middle}
[data-lang-toggle]:focus-visible{outline:2px solid var(--color-brand);outline-offset:2px}

/* Button label wrapper — override theme's absolute-positioned decorative span.
   Matches the label whether it carries the original data-i18n hook OR is simply
   the first span (Laravel server-rendered markup uses __() and has no data-i18n).
   The empty trailing span stays absolute so the hover-circle effect is preserved. */
.btn_theme span[data-i18n],.btn_theme2 span[data-i18n],.btn_theme3 span[data-i18n],
.btn_theme_active span[data-i18n],.btn_theme_active2 span[data-i18n],.btn_theme_active3 span[data-i18n],
.learn-more1 span[data-i18n],
.btn_theme>span:first-child,.btn_theme2>span:first-child,.btn_theme3>span:first-child,
.learn-more1>span:first-child{
  position:static!important;width:auto!important;height:auto!important;
  background:transparent!important;border-radius:0!important;display:inline!important;
  transform:none!important;z-index:auto!important
}

/* --- Typography niceties ----------------------------------------- */
html[dir="rtl"] body{line-height:1.9}
p{text-align:justify;text-justify:inter-word;-moz-text-align-last:auto;text-align-last:auto}
.text-center p,.text-center *,.testimonial-stars ~ *{text-align:center}
html[dir="rtl"] .text-center p,html[dir="rtl"] .text-center *{text-align:center}

/* --- RTL support ------------------------------------------------- */
html[dir="rtl"]{text-align:right}
html[dir="rtl"] .text-right,html[dir="rtl"] .text-end{text-align:left!important}
html[dir="rtl"] .text-start{text-align:right!important}
html[dir="rtl"] .text-center{text-align:center!important}
html[dir="rtl"] .fa-arrow-right{display:inline-block;transform:scaleX(-1)}
html[dir="rtl"] .main-menu-ex ul,html[dir="rtl"] .footer-menu ul,html[dir="rtl"] .Conditions,html[dir="rtl"] .social ul{padding-right:0}

/* --- Anchor scroll — leave room for sticky header ---------------- */
html{scroll-padding-top:var(--scroll-offset);scroll-behavior:smooth}

/* --- Reduced motion — respect OS accessibility preference ------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important
  }
}

/* --- H2 section titles keep the h1 visual weight (SEO: single H1 on page) --- */
.hadding1 h2{font-size:44px;font-weight:700;line-height:1.15;color:var(--bs-black)}
.hadding1 h2.font-w{color:#fff}
@media (max-width:767px){ .hadding1 h2{font-size:32px} }

/* --- Vision / Mission / Values section --------------------------- */
.vmv1{background:var(--color-bg-alt)}
.vmv-card{
  /*background:var(--color-bg);*/ border-radius:var(--radius-lg);padding:36px 32px;height:100%;
  box-shadow:0 6px 24px rgba(14,22,129,.06);border-top:4px solid var(--color-brand)
}
.vmv-card h2{color:var(--color-brand);font-size:28px;margin:0}
.vmv-card p{color:var(--bs-gray-900);margin:0}
.vmv-value{
  background:var(--bs-white);border-radius:var(--radius-md);padding:24px 24px;margin-bottom:20px;
  border-left:3px solid var(--color-brand);box-shadow:var(--shadow-sm)
}
.vmv-value h4{color:var(--color-brand);font-size:18px;margin:0}
.vmv-value p{color:var(--bs-gray-900);margin:0;font-size:15px}
html[dir="rtl"] .vmv-value{border-left:none;border-right:3px solid var(--color-brand)}

/* --- Contact modal ----------------------------------------------- */
.contact-modal{
  position:fixed;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;padding:20px
}
.contact-modal[hidden]{display:none}
.contact-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(3,22,59,.55);backdrop-filter:blur(2px)
}
.contact-modal-panel{
  position:relative;background:var(--color-bg);border-radius:var(--radius-xl);
  max-width:520px;width:100%;padding:36px 34px;
  box-shadow:var(--shadow-xl);max-height:90vh;overflow-y:auto
}
.contact-modal-close{
  position:absolute;top:12px;right:14px;background:none;border:none;
  font-size:28px;line-height:1;color:var(--color-body);cursor:pointer;padding:4px 10px
}
.contact-modal-close:focus-visible{outline:2px solid var(--color-brand);outline-offset:2px}
html[dir="rtl"] .contact-modal-close{right:auto;left:14px}
.contact-modal-panel h3{color:var(--color-brand);font-size:26px;margin:0 0 8px}
.contact-modal-sub{color:var(--color-body);margin:0 0 20px;font-size:15px}
.contact-modal-form{display:flex;flex-direction:column;gap:12px}
.contact-modal-form input,
.contact-modal-form textarea{
  width:100%;padding:12px 14px;border:1px solid #e1e3ef;border-radius:8px;
  font-family:inherit;font-size:15px;background:#f7f8fc;color:var(--color-ink)
}
.contact-modal-form input:focus,
.contact-modal-form textarea:focus{outline:none;border-color:var(--color-brand);background:#fff}
.contact-modal-form textarea{resize:vertical;min-height:96px}
.contact-modal-form button[type="submit"]{margin-top:6px;align-self:flex-start}
.contact-modal-thanks{margin-top:16px;color:var(--color-brand);font-weight:600}
.contact-modal-error{
  margin:0;padding:10px 12px;border-radius:8px;
  background:#fdecec;color:#8b1e1e;font-size:14px;font-weight:500
}
body.modal-open{overflow:hidden}
/* Visually hidden but screen-reader-accessible (WCAG-approved pattern) */
.visually-hidden{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
}

/* --- Footer contact column --------------------------------------- */
.footer-contact-list{list-style:none;padding:0;margin:0}
.footer-contact-list li{
  display:flex;align-items:flex-start;gap:12px;margin-bottom:14px;color:inherit
}
.footer-contact-list li i{
  color:var(--color-brand);font-size:16px;margin-top:4px;flex-shrink:0;width:18px
}
.footer-contact-list li a,
.footer-contact-list li span{color:#c5c5c5;text-decoration:none}
.footer-contact-list li a:hover{color:var(--color-brand)}

/* --- Business Sectors -------------------------------------------- */
.sectors1{background:#fff}
.sector-card{
  background:var(--bs-white);/*border:1px solid var(--color-border);*/border-radius:var(--radius-xl);
  padding:36px 28px;height:100%;
      box-shadow: 0 6px 24px rgba(14, 22, 129, .06);
  transition:all var(--motion-default);position:relative;overflow:hidden
}
.sector-card:hover{
  border-color:var(--color-brand);box-shadow:0 12px 32px #bfd8d7;
  transform:translateY(-4px)
}
.sector-num{
  font-size:44px;font-weight:800;color:var(--color-brand);opacity:.15;
  line-height:1;margin-bottom:14px
}
.sector-card h3{color:var(--color-brand);font-size:20px;margin:0 0 12px;line-height:1.35}
.sector-card p{color:var(--bs-gray-900);margin:0;font-size:14.5px;line-height:1.75}

/* --- Strategic Pillars ------------------------------------------- */
.pillars1{background:var(--color-bg-alt)}
.pillars1 .row > [class^="col-"]{margin-bottom:24px}
.pillar-card{
  background:var(--bs-white);border-radius:var(--radius-lg);padding:28px 26px;height:100%;
  border-left: 3px solid var(--color-brand);
  display:flex;gap:18px;align-items:flex-start;
      box-shadow: 0 6px 24px rgba(14, 22, 129, .06);
  transition:transform var(--motion-default),box-shadow var(--motion-default)

}
.pillar-card:hover{
  transform:translateY(-3px);box-shadow:0 14px 30px #bfd8d7
}
.pillar-num{
  background:var(--color-brand);color:#fff;min-width:52px;height:52px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:18px;flex-shrink:0
}
.pillar-body h4{color:var(--color-brand);font-size:17px;margin:0 0 8px;line-height:1.35}
.pillar-body p{color:var(--bs-gray-900);margin:0;font-size:14.5px;line-height:1.7}

/* --- FAQ --------------------------------------------------------- */
.faq1{background:#fff}
.faq-item{
  background:var(--bs-white);border:1px solid var(--color-border);border-radius:var(--radius-md);
  padding:2px 22px;margin-bottom:14px;transition:box-shadow var(--motion-fast),border-color var(--motion-fast)
}
.faq-item[open]{box-shadow:0 6px 20px rgba(14,22,129,.07);border-color:var(--color-brand)}
.faq-item summary{
  list-style:none;cursor:pointer;padding:18px 0;
  font-weight:600;color:var(--bs-gray-900);font-size:16.5px;line-height:1.5;
  display:flex;justify-content:space-between;align-items:center;gap:12px
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"+";font-weight:400;font-size:22px;color:var(--color-brand);line-height:1;
  transition:transform .25s ease;flex-shrink:0
}
.faq-item[open] summary::after{content:"−"}
.faq-item p{
  margin:0;padding:0 0 18px;color:var(--bs-gray-700);font-size:14.5px;line-height:1.75
}
html[dir="rtl"] .faq-item summary{flex-direction:row-reverse}

/* --- Legal pages (privacy.html, terms.html) --------------------- */
.legal-page{padding:80px 0;color:var(--color-ink)}
.legal-page h1{font-size:40px;font-weight:700;margin:0 0 8px;color:#03163B}
.legal-page h2{font-size:22px;font-weight:600;margin:36px 0 12px;color:var(--color-brand)}
.legal-page p{margin:0 0 14px;line-height:1.75;color:#03163B}
.legal-page ul{margin:0 0 14px;padding-left:22px;;color:#03163B}
.legal-page ul li{margin-bottom:8px;line-height:1.7 }
.legal-page a{color:var(--color-brand);text-decoration:underline}
.legal-page .legal-meta{color:#6b7280;font-size:14px;margin-bottom:24px}
.legal-page .legal-back{margin-bottom:8px}
.legal-page code{background:#eff0f7;padding:2px 6px;border-radius:4px;font-size:.9em}
