/* FlowSoft website. Brand tokens from the FlowSoft design system; light and dark themes. */
:root {
  --surface: #f7f7f5; --raised: #ffffff; --line: #e3e3df; --ink: #1c1d1f; --muted: #5f6368;
  --flow: #0f6e6e; --soft: #e3f1f0; --deep: #0b3d3d; --module: #4fbdb5; --on-flow: #ffffff;
  --amber: #9a5b00; --good: #1f7a3f; --hero-muted: #cfe6e3;
  --radius: 10px; --radius-sm: 6px; --wrap: 1160px;
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #141516; --raised: #1c1e20; --line: #2e3134; --ink: #e8e8e6; --muted: #a0a4a8;
    --flow: #4fbdb5; --soft: #1d4441; --on-flow: #0b3d3d; --amber: #e0a64a; --good: #5cc488;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #141516; --raised: #1c1e20; --line: #2e3134; --ink: #e8e8e6; --muted: #a0a4a8;
  --flow: #4fbdb5; --soft: #1d4441; --on-flow: #0b3d3d; --amber: #e0a64a; --good: #5cc488;
  color-scheme: dark;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--flow); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--module); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--flow); color: var(--on-flow); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; position: relative; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; display: block; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; } :root[data-theme="dark"] .logo-dark { display: block !important; }
.menu { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; list-style: none; padding: 0; margin-block: 0; }
.menu a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a:hover { background: var(--soft); }
.menu a[aria-current="page"] { color: var(--flow); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none !important; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex !important; }
  .tools { margin-inline-start: auto; }
  .menu { display: none; position: absolute; inset-inline: -16px; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--raised); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 8px; font-size: 16px; }
}
@media (max-width: 560px) { .tools .cta-top { display: none; } .brand img { height: 30px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--flow); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--flow); color: var(--on-flow); }
.btn-ghost { background: transparent; color: var(--flow); }
.btn-light { background: #ffffff; color: #0b3d3d; border-color: #ffffff; }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.55); }
.btn-wa { background: #1f7a3f; border-color: #1f7a3f; color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: 64px; }
.section.alt { background: var(--raised); border-block: 1px solid var(--line); }
@media (max-width: 720px) { .section { padding-block: 44px; } }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--flow); margin: 0 0 8px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.4; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 64ch; margin: 0 0 24px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.head { max-width: 760px; margin-bottom: 32px; }

/* Hero */
.hero, .page-hero { position: relative; overflow: hidden; background: #0b3d3d; color: #fff; }
.hero { padding-block: 88px 96px; }
.page-hero { padding-block: 56px 60px; }
.hero h1 { color: #fff; max-width: 16ch; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 44px); max-width: 24ch; }
.hero .lead, .page-hero .lead { color: var(--hero-muted); max-width: 56ch; }
.page-hero .lead { margin-bottom: 0; }
.hero .eyebrow, .page-hero .eyebrow { color: #4fbdb5; }
.hero-pattern { position: absolute; inset-inline-end: -40px; bottom: -60px; width: min(620px, 70vw); pointer-events: none; }
.page-hero .hero-pattern { width: min(420px, 55vw); bottom: -90px; opacity: .8; }
html[dir="rtl"] .hero-pattern { transform: scaleX(-1); }
@media (max-width: 900px) { .hero-pattern { opacity: .28; width: 70vw; } .page-hero .hero-pattern { opacity: .22; } }
.hero .wrap, .page-hero .wrap { position: relative; }
.hero .promise { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: #e3f1f0; font-size: 15px; }
.hero .promise li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #4fbdb5; margin-inline-end: 8px; vertical-align: middle; }

/* Grids and cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .card { background: var(--surface); }
.card.dark, .section.alt .card.dark { background: #0b3d3d; border-color: #0b3d3d; color: #fff; }
.card.dark h3, .card.dark h2 { color: #fff; }
.card.dark p, .card.dark li { color: #cfe6e3; }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-bottom: 0; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); color: var(--flow); }
.card.dark .ico { background: rgba(255,255,255,.12); color: #4fbdb5; }
.ico svg { width: 24px; height: 24px; }
.stat { font-size: 30px; font-weight: 700; color: var(--flow); line-height: 1.15; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--flow); }
.card.dark .tag { background: #4fbdb5; color: #0b3d3d; }
ul.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
ul.ticks li { position: relative; padding-inline-start: 24px; margin-bottom: 8px; }
ul.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--flow); }
.card.dark ul.ticks li::before { background: #4fbdb5; }
.price { font-size: 15px; font-weight: 700; color: var(--flow); margin-top: 16px; }
.card.dark .price { color: #4fbdb5; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section.alt .steps li { background: var(--surface); }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #0b3d3d; color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #0b3d3d; color: #fff; font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.hl { background: var(--soft); font-weight: 600; }

/* Projects */
.project { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
@media (min-width: 860px) { .project { grid-template-columns: 280px minmax(0, 1fr); } }
.profile dl { margin: 12px 0 0; display: grid; gap: 10px; }
.profile dt { font-size: 13px; color: #b9d9d6; }
.profile dd { margin: 0; font-weight: 600; color: #fff; }
.targets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 16px; }
.targets div { background: var(--soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.targets b { display: block; font-size: 22px; color: var(--flow); }
.targets span { font-size: 13px; }

/* FAQ */
.faq details { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 10px; }
.section.alt .faq details { background: var(--surface); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--flow); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: #0b3d3d; color: #fff; border-radius: 14px; padding: clamp(28px, 5vw, 48px); display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cfe6e3; margin: 0; }
.cta-band.plain { background: var(--raised); color: var(--ink); border: 1px solid var(--line); }
.cta-band.plain h2 { color: var(--ink); }
.cta-band.plain p { color: var(--muted); }

/* Forms */
form.fs-form { display: grid; gap: 16px; position: relative; }
.fields { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
label.f { display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 4px; row-gap: 6px; font-size: 14px; font-weight: 600; }
label.f > input, label.f > select, label.f > textarea { flex: 1 0 100%; min-width: 0; }
label.f .req { color: var(--amber); }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; }
.card .f input, .card .f select, .card .f textarea { background: var(--surface); }
.f textarea { min-height: 120px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; min-width: 0; }
legend { font-weight: 700; padding-inline: 6px; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.checks input { width: 18px; height: 18px; accent-color: var(--flow); }
.form-status { font-size: 15px; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--good); } .form-status.err { color: var(--amber); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Contact tiles */
.contact-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.contact-tiles a { display: flex; gap: 14px; align-items: center; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none; }
.contact-tiles a:hover { border-color: var(--flow); }
.contact-tiles small { display: block; color: var(--muted); font-size: 13px; }
.contact-tiles a > span:last-child, .contact-tiles a > div:last-child { min-width: 0; }
.contact-tiles b, .contact-tiles strong { overflow-wrap: anywhere; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Notice */
.notice { background: var(--soft); border-radius: var(--radius); padding: 14px 18px; font-size: 15px; }
.dl { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--raised); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
html[lang="ar"] .site-footer h4 { letter-spacing: 0; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--flow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.slogan { font-weight: 700; color: var(--flow); }

/* WhatsApp float and assistant */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #1f7a3f; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float svg { width: 28px; height: 28px; }
.bot-btn { position: fixed; inset-inline-end: 18px; bottom: 86px; z-index: 45; height: 48px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--flow); color: var(--on-flow); font: inherit; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; }
.bot-btn svg { width: 20px; height: 20px; }
.bot { position: fixed; inset-inline-end: 18px; bottom: 146px; z-index: 46; width: min(380px, calc(100vw - 36px)); height: min(540px, calc(100vh - 170px)); background: var(--raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.22); display: none; flex-direction: column; overflow: hidden; }
.bot.open { display: flex; }
.bot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #0b3d3d; color: #fff; }
.bot-head b { font-size: 15px; }
.bot-head small { display: block; color: #b9d9d6; font-size: 12px; }
.bot-head button { background: transparent; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.bot-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.msg.bot-m { background: var(--soft); color: var(--ink); align-self: flex-start; }
.msg.me { background: var(--flow); color: var(--on-flow); align-self: flex-end; }
.msg a { color: inherit; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chips button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.bot-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.bot-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.bot-form button { font: inherit; font-weight: 600; padding: 0 14px; border-radius: var(--radius-sm); border: 0; background: var(--flow); color: var(--on-flow); cursor: pointer; }
.bot-note { font-size: 11px; color: var(--muted); padding: 0 14px 8px; }
@media print { .site-header, .wa-float, .bot-btn, .bot, .site-footer { display: none !important; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
