/* InnoBros – public site
   Brand colors taken from the logo:
   navy #001872 (letters) · circuit blue #C2DBF1 (the "B") · paper #F7F8FB (background) */
:root {
  --navy: #001872;
  --circuit: #c2dbf1;
  --paper: #f7f8fb;
  --trace: #3756c0;      /* lines on the B, used for links/focus */
  --ink: #1d2550;
  --muted: #4a5480;
  --line: #d9e2f0;
  --white: #ffffff;
  --wa: #1fa855;
  --f-display: "Quicksand", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --r-sm: 8px;
  --r-lg: 22px;
}
[dir="rtl"] {
  --f-display: "Baloo Bhaijaan 2", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { line-height: 1.85; }
img, svg { max-width: 100%; display: block; }
a { color: var(--trace); }
h1, h2, h3 { font-family: var(--f-display); color: var(--navy); margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--trace); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -60px; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font: 600 1rem/1 var(--f-body); padding: .95rem 1.5rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--trace); }
.btn-ghost { color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--circuit); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 251, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--trace); }
.nav .lang { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1.5px solid var(--navy); border-radius: 999px; }
.nav .lang:hover { background: var(--navy); color: #fff; }
.nav .lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.nav .lang[lang="en"] { font-family: "IBM Plex Sans", sans-serif; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Hero – the circuit "B" from the logo is the one memorable element */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center; }
.hero-copy h1 { max-width: 15ch; }
[dir="rtl"] .hero-copy h1 { max-width: 17ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { justify-self: center; width: min(100%, 380px); }
.circuit .b-shape { fill: var(--circuit); stroke: var(--navy); stroke-width: 3; }
.circuit .b-hole { fill: var(--paper); stroke: var(--navy); stroke-width: 3; }
.circuit .traces path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.6s cubic-bezier(.6, 0, .2, 1) forwards; }
.circuit .traces path:nth-child(3n) { animation-delay: .2s; }
.circuit .traces path:nth-child(3n+1) { animation-delay: .4s; }
.circuit .nodes circle { fill: var(--paper); stroke: var(--navy); stroke-width: 3; opacity: 0; animation: pop .3s ease-out 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* Section heads */
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: var(--circuit); }

/* Technology slider */
.tech { background: var(--navy); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.slider-viewport { overflow: hidden; border-radius: var(--r-lg); }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.65, 0, .25, 1); touch-action: pan-y; }
.slide { flex: 0 0 100%; display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: rgba(194, 219, 241, .08); border: 1px solid rgba(194, 219, 241, .25); border-radius: var(--r-lg); }
.slide-visual { aspect-ratio: 1; background: var(--circuit); border-radius: var(--r-lg); display: grid; place-items: center; color: var(--navy); overflow: hidden; }
.slide-visual img { width: 100%; height: 100%; object-fit: cover; }
.ic-xl { width: 46%; height: 46%; stroke-width: 1.2; }
.slide-body h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.slide-body p { color: #dbe7f6; font-size: 1.15rem; max-width: 46ch; }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
[dir="rtl"] .tags { justify-content: flex-end; }
.tags li { font-size: .88rem; padding: .35rem .8rem; border: 1px solid var(--circuit); color: var(--circuit); border-radius: 999px; }
.slider-controls { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.sl-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--circuit); background: transparent; color: var(--circuit); cursor: pointer; display: grid; place-items: center; }
.sl-btn:hover { background: var(--circuit); color: var(--navy); }
.sl-btn .ic { width: 22px; height: 22px; }
[data-prev] .ic { transform: scaleX(-1); }
[dir="rtl"] [data-prev] .ic { transform: none; }
[dir="rtl"] [data-next] .ic { transform: scaleX(-1); }
.dots { display: flex; gap: .4rem; flex-wrap: wrap; flex: 1; justify-content: center; }
.dot { border: 0; background: transparent; color: #aec4e6; font: 500 .92rem var(--f-body); padding: .5rem .85rem; border-radius: 999px; cursor: pointer; }
.dot:hover { color: #fff; }
.dot[aria-selected="true"] { background: var(--circuit); color: var(--navy); }
.sl-pause { background: none; border: 0; color: #aec4e6; font: 500 .88rem var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Services */
.services { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem 2rem; }
.svc { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.svc-ic { width: 52px; height: 52px; padding: 11px; background: var(--circuit); color: var(--navy); border-radius: 14px; margin-bottom: 1.1rem; }
.svc p { color: var(--muted); margin: 0; }

/* About */
.about { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--white); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: start; }
.prose { max-width: 60ch; color: var(--ink); }
.facts { margin: 0; display: grid; gap: 1.25rem; }
.facts div { display: flex; flex-direction: column-reverse; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 "Quicksand", sans-serif; color: var(--navy); text-align: start; }
[dir="rtl"] .facts dd { text-align: right; }
.facts dt { color: var(--muted); margin-top: .35rem; }

/* Contact */
.contact { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.1rem; max-width: 40ch; margin-bottom: 1.75rem; }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: .9rem; }
.contact-lines li { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.contact-lines .ic { color: var(--trace); }
.contact-lines a { color: var(--navy); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
[dir="rtl"] .contact-lines a[dir="ltr"] { unicode-bidi: isolate; }
.social { display: flex; align-items: center; gap: .6rem; }
.social span { color: var(--muted); margin-inline-end: .4rem; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--circuit); color: var(--navy); }
.social a:hover { background: var(--navy); color: #fff; }
.social .ic { width: 22px; height: 22px; }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 500; color: var(--navy); font-size: .95rem; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); width: 100%; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--trace); background: #fff; box-shadow: 0 0 0 3px rgba(55, 86, 192, .15); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.err { color: #b3261e; font-size: .88rem; min-height: 0; }
.hp { position: absolute; inset-inline-start: -9999px; }
.btn-send { width: 100%; justify-content: center; margin-top: .5rem; }
.form-status { margin-top: 1rem; }
.form-status .ok, .form-status .bad { padding: 1rem 1.1rem; border-radius: var(--r-sm); }
.form-status .ok { background: #e7f6ec; color: #135c2f; }
.form-status .bad { background: #fdecea; color: #8c1d18; }
.form-status .ok a { display: inline-flex; margin-top: .75rem; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6ee; padding: 2rem 0; font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row p { margin: 0; }

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 24, 114, .25); z-index: 60; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { background: #178a45; }

/* Responsive */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .lang { margin-top: 1rem; justify-content: center; border-bottom: 1.5px solid var(--navy); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { width: min(42%, 170px); order: -1; justify-self: start; }
  .slide { grid-template-columns: 1fr; }
  .slide-visual { aspect-ratio: 16 / 9; }
  .ic-xl { width: 30%; height: auto; aspect-ratio: 1; }
  .dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dot { width: 12px; height: 12px; padding: 0; background: rgba(194, 219, 241, .35); }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circuit .traces path { animation: none; stroke-dashoffset: 0; }
  .circuit .nodes circle { animation: none; opacity: 1; }
  .slider-track { transition: none; }
}
