/* WabiTex Solutions website theme. Bootstrap 5.3 underneath; this file sets the brand look. */
:root {
  --wt-ink: #1c2733;
  --wt-navy: #1f3a5f;
  --wt-deep: #16202e;
  --wt-blue: #1e5eff;
  --wt-blue-dark: #0f3fb8;
  --wt-sky: #eaf1f8;
  --wt-surface: #f4f6f9;
  --wt-line: #dce3eb;
  --wt-muted: #6b7a8d;
  --wt-green: #2e7d5b;
  --wt-amber: #b88300;
  --wt-radius: 1rem;
  --wt-shadow: 0 10px 30px rgba(31, 58, 95, 0.10);
  --wt-shadow-sm: 0 2px 10px rgba(31, 58, 95, 0.08);
  --bs-body-color: var(--wt-ink);
  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bs-link-color: var(--wt-navy);
  --bs-link-hover-color: var(--wt-blue);
  --bs-primary: var(--wt-navy);
  --bs-primary-rgb: 31, 58, 95;
}
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: #fff; -webkit-font-smoothing: antialiased; }
body.lang-ar { --bs-body-font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif; }
h1, h2, h3, h4, .brand-name { color: var(--wt-deep); font-weight: 700; letter-spacing: -0.01em; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 { letter-spacing: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.15rem; color: #3d4d5c; }
p { line-height: 1.65; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn { text-decoration: none; }
.btn:hover { text-decoration: none; }
.skip-link { position: absolute; inset-inline-start: 0; top: -100px; background: var(--wt-navy); color: #fff; padding: .5rem 1rem; z-index: 2000; border-radius: 0 0 .5rem 0; }
.skip-link:focus { top: 0; }

/* Buttons */
.btn-primary { --bs-btn-bg: var(--wt-navy); --bs-btn-border-color: var(--wt-navy); --bs-btn-hover-bg: var(--wt-blue-dark); --bs-btn-hover-border-color: var(--wt-blue-dark); --bs-btn-active-bg: var(--wt-blue-dark); --bs-btn-active-border-color: var(--wt-blue-dark); --bs-btn-focus-shadow-rgb: 30, 94, 255; border-radius: .6rem; font-weight: 600; padding: .6rem 1.2rem; }
.btn-outline-primary { --bs-btn-color: var(--wt-navy); --bs-btn-border-color: #b9c6d6; --bs-btn-hover-bg: var(--wt-sky); --bs-btn-hover-color: var(--wt-navy); --bs-btn-hover-border-color: var(--wt-navy); --bs-btn-active-bg: var(--wt-sky); --bs-btn-active-color: var(--wt-navy); --bs-btn-active-border-color: var(--wt-navy); border-radius: .6rem; font-weight: 600; padding: .6rem 1.2rem; }
.btn-light { border-radius: .6rem; font-weight: 600; padding: .6rem 1.2rem; }
.btn-outline-light { border-radius: .6rem; font-weight: 600; padding: .6rem 1.2rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-cta { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--wt-line); box-shadow: 0 6px 20px rgba(22, 32, 46, .06); }
.site-header .navbar { padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--wt-deep); }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 10px; box-shadow: 0 2px 8px rgba(16, 32, 64, .25); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-sub { font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--wt-blue); margin-top: .22rem; }
.brand-light { color: #fff; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: #9fc2ff; }
.nav-links { gap: .15rem; }
.nav-links .nav-link { color: var(--wt-ink); font-weight: 600; padding: .5rem .85rem; border-radius: .6rem; }
.nav-links .nav-link:hover, .nav-links .nav-link:focus { background: var(--wt-surface); color: var(--wt-navy); }
.nav-links .nav-link.active { color: var(--wt-blue); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid var(--wt-line); border-radius: 999px; color: var(--wt-navy); font-weight: 600; font-size: .92rem; background: #fff; }
.lang-switch:hover { text-decoration: none; border-color: var(--wt-navy); background: var(--wt-sky); }
html[dir="ltr"] .lang-switch span { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }
html[dir="rtl"] .lang-switch span { font-family: "Inter", "Segoe UI", sans-serif; }
.nav-toggle { border: 1px solid var(--wt-line); background: #fff; border-radius: .6rem; width: 2.6rem; height: 2.6rem; font-size: 1.4rem; line-height: 1; color: var(--wt-navy); display: inline-flex; align-items: center; justify-content: center; }
.offcanvas-body .nav-links { flex-direction: column; }
@media (min-width: 992px) { .offcanvas-body .nav-links { flex-direction: row; } }
.offcanvas-lg .nav-links .nav-link { font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(3.5rem, 3rem + 2vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 2rem + 1.5vw, 4rem) 0; }
.section-alt { background: var(--wt-surface); }
.section-dark { background: linear-gradient(135deg, var(--wt-deep) 0%, #1b3357 60%, #1f4f8a 100%); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: #d5e0ee; }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--wt-muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wt-blue); margin-bottom: .75rem; }
body.lang-ar .eyebrow { letter-spacing: 0; font-size: .9rem; }
.section-dark .eyebrow { color: #9fc2ff; }
.card-wt { background: #fff; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); padding: 1.5rem; height: 100%; transition: transform .2s, box-shadow .2s; }
.card-wt:hover { transform: translateY(-3px); box-shadow: var(--wt-shadow); }
.card-wt h3 { font-size: 1.1rem; margin: .9rem 0 .4rem; }
.card-wt p { color: var(--wt-muted); margin: 0; font-size: .97rem; }
.icon-badge { width: 3rem; height: 3rem; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center; background: var(--wt-sky); color: var(--wt-navy); font-size: 1.35rem; }
.icon-badge.solid { background: var(--wt-navy); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--wt-line); font-weight: 600; font-size: .92rem; color: var(--wt-navy); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list li .bi { color: var(--wt-green); flex: none; margin-top: .2rem; }
.stat { background: #fff; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); padding: 1.2rem 1.4rem; }
.stat b { display: block; font-size: 2rem; color: var(--wt-navy); line-height: 1.1; }
.stat span { color: var(--wt-muted); font-size: .95rem; }
.figure-frame { border-radius: var(--wt-radius); overflow: hidden; box-shadow: var(--wt-shadow); background: #fff; border: 1px solid var(--wt-line); }
.figure-frame img { display: block; width: 100%; height: auto; }
.illustration { width: 100%; height: auto; }
.cta-band { background: linear-gradient(135deg, var(--wt-navy), var(--wt-blue-dark)); color: #fff; border-radius: 1.5rem; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e0ee; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps li::before { counter-increment: step; content: counter(step); flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wt-navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1.05rem; margin: .3rem 0 .25rem; }
.steps p { margin: 0; color: var(--wt-muted); }

/* Forms */
.form-label { font-weight: 600; color: var(--wt-ink); }
.form-control, .form-select { border-radius: .6rem; border-color: #cfd8e3; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--wt-blue); box-shadow: 0 0 0 .25rem rgba(30, 94, 255, .15); }
.form-text { color: var(--wt-muted); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Searchable select */
.ss { position: relative; }
.ss-control { display: flex; align-items: center; gap: .4rem; cursor: text; padding-inline-end: 2.2rem; min-height: calc(1.5em + 1.3rem + 2px); }
.ss-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; color: inherit; font: inherit; }
.ss-input-hidden { position: absolute; width: 1px; opacity: 0; pointer-events: none; }
.ss-caret { position: absolute; inset-inline-end: .85rem; top: 50%; transform: translateY(-50%); color: var(--wt-muted); font-size: .8rem; pointer-events: none; }
.ss-open .ss-control { border-color: var(--wt-blue); box-shadow: 0 0 0 .25rem rgba(30, 94, 255, .15); }
.ss-menu { position: absolute; top: calc(100% + .25rem); inset-inline: 0; z-index: 1060; list-style: none; margin: 0; padding: .3rem; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--wt-line); border-radius: .6rem; box-shadow: var(--wt-shadow); }
.ss-compact .ss-menu { min-width: 280px; inset-inline-end: auto; }
.ss-option { display: flex; flex-direction: column; padding: .45rem .65rem; border-radius: .45rem; cursor: pointer; }
.ss-option.active { background: var(--wt-surface); }
.ss-option.selected .ss-label { font-weight: 600; color: var(--wt-navy); }
.ss-sub { font-size: .8rem; color: var(--wt-muted); }
.ss-empty { padding: .6rem; color: var(--wt-muted); }
.phone { display: flex; gap: .5rem; }
.phone-code { flex: 0 0 8rem; min-width: 0; }
.phone-number { flex: 1; min-width: 0; }

/* Status pages */
.status-page { min-height: 55vh; display: flex; align-items: center; }
.status-page .eyebrow { font-size: 1rem; }

/* Footer */
.site-footer { background: var(--wt-deep); color: #c9d5e3; padding: 4rem 0 2rem; margin-top: 2rem; }
.site-footer a { color: #e3ebf5; }
.site-footer a:hover { color: #fff; }
.footer-statement { margin: 1.1rem 0 1.25rem; color: #aebccd; max-width: 26rem; }
.footer-heading { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fc2ff; margin-bottom: 1rem; }
body.lang-ar .footer-heading { letter-spacing: 0; font-size: .98rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .bi { color: #9fc2ff; flex: none; margin-top: .15rem; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; }
.social a { width: 2.4rem; height: 2.4rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 1.1rem; }
.social a:hover { background: var(--wt-blue); border-color: var(--wt-blue); text-decoration: none; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; font-size: .9rem; color: #8fa1b4; }
.site-footer .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .25); color: #e3ebf5; }
.site-footer .lang-switch:hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 575.98px) {
  .brand-text { display: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card-wt { transition: none; } }

/* Hero and page sections */
.hero { padding: clamp(2.5rem, 2rem + 2vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 4rem); background: radial-gradient(60rem 30rem at 85% -10%, #e4ecff 0%, rgba(228, 236, 255, 0) 60%), radial-gradient(40rem 25rem at -10% 110%, #e6f4ee 0%, rgba(230, 244, 238, 0) 60%); }
.hero-art { filter: drop-shadow(0 20px 40px rgba(31, 58, 95, .12)); }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.step-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--wt-radius); padding: 1.5rem; height: 100%; }
.step-card .step-num { display: inline-flex; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff; color: var(--wt-navy); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step-card h3 { color: #fff; font-size: 1.1rem; }
.step-card p { color: #c9d7e6; margin: 0; font-size: .97rem; }
.card-wt-sm { padding: 1.2rem; }
.card-wt-sm p { color: var(--wt-ink); }
.plan-card { position: relative; background: #fff; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); padding: 1.5rem; height: 100%; }
.plan-card p { color: var(--wt-muted); margin: .5rem 0 0; font-size: .97rem; }
.plan-card-highlight { border-color: var(--wt-navy); box-shadow: var(--wt-shadow); }
.plan-name { font-size: 1.25rem; font-weight: 700; color: var(--wt-deep); display: block; }
.plan-badge { position: absolute; top: -.75rem; inset-inline-start: 1.25rem; background: var(--wt-blue); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
body.lang-ar .plan-badge { letter-spacing: 0; font-size: .85rem; }
.faq { display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--wt-line); border-radius: .9rem; padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--wt-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--wt-blue); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1rem; color: #3d4d5c; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list li > div { display: flex; flex-direction: column; }
.contact-list b { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wt-muted); font-weight: 700; }
body.lang-ar .contact-list b { letter-spacing: 0; font-size: .9rem; }
.contact-list .icon-badge { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; flex: none; }
.btn-success { --bs-btn-bg: #25d366; --bs-btn-border-color: #25d366; --bs-btn-hover-bg: #1fb457; --bs-btn-hover-border-color: #1fb457; --bs-btn-active-bg: #1fb457; --bs-btn-active-border-color: #1fb457; border-radius: .6rem; font-weight: 600; padding: .6rem 1.2rem; }
.map-frame { border-radius: var(--wt-radius); overflow: hidden; border: 1px solid var(--wt-line); box-shadow: var(--wt-shadow-sm); aspect-ratio: 4 / 3; background: var(--wt-surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-card { background: #fff; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); padding: clamp(1.25rem, 1rem + 1vw, 2rem); box-shadow: var(--wt-shadow); }
.sent-panel { text-align: center; padding: 2rem 1rem; }
.sent-panel .icon-badge { width: 4rem; height: 4rem; font-size: 2rem; background: var(--wt-green); }
.btn.is-sending { opacity: .7; }
.ss-control.is-invalid { border-color: #dc3545; }

/* Careers */
.position-list { display: grid; gap: 1rem; }
.position-card { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); padding: 1.5rem; color: var(--wt-ink); transition: transform .2s, box-shadow .2s; }
.position-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--wt-shadow); color: var(--wt-ink); }
.position-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.position-card p { color: var(--wt-muted); margin: 0 0 .75rem; }
.position-main { flex: 1; min-width: 0; }
.position-side { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; color: var(--wt-muted); min-width: 12rem; }
.position-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--wt-navy); font-weight: 600; font-size: .95rem; }
.position-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.position-meta .bi { color: var(--wt-blue); }
.apply-card { position: sticky; top: 6rem; }
.breadcrumb { margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: var(--bs-breadcrumb-divider, "/"); }
@media (max-width: 767.98px) { .position-card { flex-direction: column; align-items: stretch; } .position-side { min-width: 0; } }

/* Legal */
.legal { max-width: 52rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .75rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-inline-start: 1.25rem; }
.legal-table { font-size: .95rem; }
.legal-table th { white-space: nowrap; }
.legal-contact { margin-top: 3rem; padding: 1.5rem; background: var(--wt-surface); border-radius: var(--wt-radius); }
.legal-contact h2 { margin-top: 0; font-size: 1.1rem; }
.legal-contact p { margin: 0; }
.phone-code .ss-value, .phone-code .ss-label { direction: ltr; unicode-bidi: isolate; }

/* Blur only on desktop: below lg the off-canvas menu lives inside the header, and a backdrop-filter would make the
   header its containing block (the hidden panel would widen the page and the open panel would be header-high). */
@media (min-width: 992px) { .site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); } }
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; } }
html, body { overflow-x: clip; }
