/* ── Fonts (Arabic) ─────────────────────────────────────────────────────── */
@font-face { font-family: Cairo; src: url("../fonts/cairo-400.6d2c2aeafe01.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cairo; src: url("../fonts/cairo-600.c8c17bed7198.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Cairo; src: url("../fonts/cairo-700.986eb5724dda.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Cairo; src: url("../fonts/cairo-800.3a29509ab3c6.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy: #072f4b;
  --navy-2: #0b3d61;
  --blue: #1584c4;
  --blue-dark: #0f6ea6;
  --sky: #e1f4ff;
  --pale: #eef7fc;
  --text: #0c3651;
  --body: #3d5667;
  --muted: #536b7b;
  --line: #d6e3eb;
  --max: 1180px;
  --radius: 12px;
  --shadow-sm: 0 2px 10px #07304b14;
  --shadow: 0 12px 32px #07304b1f;
  --font: Arial, Helvetica, sans-serif;
}
html[lang="ar"] { --font: Cairo, Tahoma, Arial, sans-serif; }

/* ── Base ───────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.55; }
html[lang="ar"] body { line-height: 1.75; }
/* Letter-spacing breaks the joining of Arabic letters. */
html[lang="ar"] * { letter-spacing: 0 !important; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.45; }
:focus-visible { outline: 3px solid #1584c499; outline-offset: 2px; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .dir-icon { transform: scaleX(-1); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.eyebrow { margin: 0 0 6px; color: var(--blue-dark); font-weight: 800; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.caption { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.caption.strong { color: var(--body); font-size: 14px; }
.note { color: var(--muted); font-size: 13px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.button.large { min-height: 54px; padding: 14px 30px; font-size: 16px; }
.button .icon { width: 18px; height: 18px; }
.button.primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px #072f4b2e; }
.button.primary:hover { background: var(--navy-2); }
.button.secondary { background: #ffffffe6; border-color: var(--navy); color: var(--navy); }
.button.secondary:hover { background: #fff; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 20; height: 74px; display: flex; align-items: center; background: #fff; box-shadow: 0 2px 10px #0018; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { display: block; width: auto; height: 52px; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.topbar nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.topbar nav .button { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--navy); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lang-switch:lang(ar) { font-family: Cairo, Tahoma, sans-serif; }
.lang-switch:hover { border-color: var(--blue); color: var(--blue); }
.lang-switch .icon { width: 16px; height: 16px; }
.menu { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; display: flex; align-items: center; padding: 56px 0 48px; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 59%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 55% 75% at 50% 50%, #ffffffd9 0, #ffffff99 60%, #ffffff33 100%), linear-gradient(90deg, #fff9 0, #fff5 43%, #fff0 70%); }
.hero-inner { max-width: 880px; }
.badge { display: inline-block; margin: 0 0 18px; padding: 7px 16px; border-radius: 999px; background: var(--sky); color: var(--blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.hero h1 { max-width: 34ch; margin: 0 auto 18px; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -1px; text-wrap: balance; }
.lead { max-width: 58ch; margin: 0 auto; color: #2d4d62; font-size: clamp(16px, 1.6vw, 18px); text-wrap: balance; }
/* Buttons row, then badges row — one grid with equal rows so all four are the same size. */
.hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); grid-auto-rows: 1fr; justify-content: center; gap: 16px; margin-top: 30px; }
.actions, .hero-credentials { display: contents; }
.hero-credentials { margin: 0; padding: 0; list-style: none; }
.actions .button, .hero-credentials li { min-height: 64px; border-radius: var(--radius); }
.actions .button { padding-inline: 18px; }
.hero-credentials li { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border: 1px solid #e3edf3; background: #fff; box-shadow: var(--shadow); text-align: start; }
.hero-credentials strong, .trust strong { display: block; font-size: 15px; }
.hero-credentials small, .trust small { display: block; color: var(--muted); font-size: 13px; }

.icon-badge { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue); }
.icon-badge .icon { width: 22px; height: 22px; }

/* ── Trust strip & software ─────────────────────────────────────────────── */
.trust { padding: 26px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding: 0; list-style: none; }
.trust-grid li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 16px; }
.trust-grid li + li { border-inline-start: 1px solid var(--line); }
.trust strong { font-size: 17px; }
.trust small { font-size: 14px; }

.software { padding: 22px 0; background: var(--pale); }
.software .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.software h2 { margin: 0; font-size: 17px; }
.software-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.software-list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); color: var(--navy); font-size: 16px; font-weight: 700; }
.software-list .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.4; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section.compact { padding: 60px 0; }
.pale { background: var(--pale); }
.dark { background: var(--navy); color: #fff; }
.section-title { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-title h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); }
.section-title h2::after { content: ""; display: block; width: 56px; height: 3px; margin: 12px auto 0; border-radius: 2px; background: var(--blue); }
.section-title p { margin: 0; color: var(--muted); font-size: 16px; }
.section-title.light p { color: #b9cfdd; }

/* ── Package finder ─────────────────────────────────────────────────────── */
.finder { padding: 64px 0; }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: center; gap: 56px; }
.finder .section-title { margin-bottom: 30px; }
.questions { display: grid; gap: 18px; }
.questions fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.questions legend { float: inline-start; display: flex; align-items: center; gap: 8px; width: 170px; padding: 11px 0 0; font-size: 14px; font-weight: 700; }
.questions .options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.step-no { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff24; font-size: 12px; font-weight: 800; }
.questions label { position: relative; }
.questions input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.questions label span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 8px; border: 1.5px solid #ffffff3d; border-radius: 8px; color: #cfe0eb; font-size: 13px; text-align: center; cursor: pointer; }
.opt-check { width: 0; opacity: 0; stroke-width: 3; }
.questions input:checked + span { border-color: #6fc0ee; background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 0 0 3px #1584c447; }
.questions input:checked + span .opt-check { width: 16px; opacity: 1; }
.questions input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.result { position: relative; padding: 28px; border-top: 5px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px #0000004d; color: var(--text); }
.result::before { content: ""; position: absolute; top: 50%; inset-inline-start: -11px; width: 22px; height: 22px; background: #fff; transform: translateY(-50%) rotate(45deg); }
.result h3 { margin: 2px 0 10px; font-size: 26px; }
.result-for { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--sky); color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.result-for span { color: var(--text); font-weight: 400; }
#result-reason { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.result ul { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; }
.result li { display: flex; align-items: flex-start; gap: 8px; }
.result li .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); stroke-width: 2.6; }
.result .button { width: 100%; }
.result .note { margin: 10px 0 0; font-size: 12px; text-align: center; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 0; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--line), var(--blue), var(--line)); }
.steps li { position: relative; padding: 36px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.steps .step-no { position: absolute; top: -16px; left: 50%; width: 32px; height: 32px; background: var(--navy); color: #fff; font-size: 14px; transform: translateX(-50%); }
.steps h3 { margin: 16px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--body); font-size: 15px; }

/* ── Packages table ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid #d5e2e9; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
th, td { padding: 16px 18px; border-bottom: 1px solid #dfe9ef; border-inline-end: 1px solid #e8eff4; text-align: center; vertical-align: middle; }
:is(th, td):last-child { border-inline-end: 0; }
thead th { padding-block: 18px; background: var(--navy); color: #fff; font-size: 15px; }
tbody th { background: #f3f9fd; color: var(--navy); font-weight: 700; text-align: start; }
tbody tr:nth-child(even) td { background: #f8fbfd; }
tfoot td { padding-block: 18px; border-bottom: 0; background: #fff; }
.table-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; white-space: nowrap; }
.table-cta:hover { background: var(--blue-dark); }

/* ── Cards (audit, services, why) ───────────────────────────────────────── */
.audit-grid, .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
:is(.audit-grid, .service-grid, .why-grid) article { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--radius); }
:is(.audit-grid, .service-grid, .why-grid) h3 { margin: 18px 0 8px; font-size: 18px; }
:is(.audit-grid, .service-grid, .why-grid) p { margin: 0; color: var(--body); font-size: 15px; }
.audit-grid article { border: 1px solid #d9e8f1; background: var(--pale); }
.audit-grid .icon-badge { background: #fff; }
.service-grid article { border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.why-grid article { background: #fff; color: var(--text); }
.section-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 30px; }
.section-cta .caption { margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; color: var(--blue-dark); font-weight: 700; }
.card-link .icon, .text-link .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-dark); font-weight: 700; }

.special { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 28px; margin-top: 20px; padding: 22px 26px; border: 1px solid #b6dbf0; border-radius: var(--radius); background: #e4f3fc; }
.special-head { display: flex; align-items: center; gap: 16px; }
.special-head .icon-badge { background: #fff; }
.special h3 { margin: 0 0 2px; font-size: 18px; }
.special-head p { margin: 0; color: var(--muted); font-size: 14px; }
.special-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.special-list li { padding: 5px 12px; border: 1px solid #c6e1f1; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; gap: 64px; }
.faq-intro { position: sticky; top: 100px; }
.faq-intro h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 38px); }
.faq-intro img { display: block; width: 100%; height: auto; margin-top: 26px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.faqs { display: grid; gap: 12px; }
.faqs details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faqs details[open] { border-color: #9fcdea; box-shadow: var(--shadow-sm); }
.faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; list-style: none; cursor: pointer; }
.faqs summary::-webkit-details-marker { display: none; }
.faq-toggle { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--blue); }
.faq-toggle .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.faqs details[open] .faq-toggle { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faqs details p { margin: 0; padding: 0 20px 18px; color: var(--body); }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 48px; }
.contact-info h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 36px); }
.contact-info > p { margin: 0; color: var(--body); }
.contact-info h3 { margin: 28px 0 6px; font-size: 17px; }
address { font-style: normal; }
.contact-info address p { margin: 0; color: var(--body); }
.map { aspect-ratio: 16 / 9; margin: 18px 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #dfeaf0; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 22px 0 14px; }
.contact-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.contact-btn:hover { border-color: var(--blue); }
.contact-btn > .icon { width: 22px; height: 22px; color: var(--blue); }
.contact-btn.whatsapp > .icon { color: #1fa855; }
.contact-btn small { display: block; color: var(--muted); font-size: 12px; }
.contact-btn strong { display: block; font-size: 15px; white-space: nowrap; }
.hours { display: flex; align-items: flex-start; gap: 10px; color: var(--body); font-size: 14px; }
.hours .icon { margin-top: 3px; color: var(--blue); }

.contact-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-form h2 { margin: 0 0 6px; font-size: 28px; }
.contact-form > p { margin: 0 0 6px; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.fields label { font-size: 13px; font-weight: 700; }
.fields .wide { grid-column: 1 / -1; }
.fields :is(input, select, textarea) { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #c9d8e2; border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-weight: 400; }
.fields :is(input, select, textarea):focus { border-color: var(--blue); outline: 3px solid #1584c440; outline-offset: 0; }
[dir="rtl"] .fields input[dir="ltr"] { text-align: right; }
.fields textarea { min-height: 120px; resize: vertical; }
.contact-form .button { width: 100%; margin-top: 20px; }
.contact-form .note { text-align: center; }
.contact-form .note a { color: var(--blue-dark); text-decoration: underline; }
.form-status { margin: 12px 0 0; font-weight: 700; }
.form-status.error { color: #a52d37; }
.form-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.form-contact[hidden] { display: none; }
.form-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-dark); font-weight: 700; }
.form-contact a:hover { border-color: var(--blue); }
.form-contact .icon { width: 18px; height: 18px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { padding-top: 56px; background: var(--navy); color: #d4e3ec; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 64px; }
.footer-logo { width: max-content; }
.footer-logo img { height: 64px; }
.footer-grid h2 { margin: 0 0 14px; color: #fff; font-size: 17px; }
.footer-grid nav a { display: block; width: max-content; margin: 8px 0; }
.footer-grid address p { margin: 0 0 12px; }
.footer-grid address a { display: flex; align-items: center; gap: 8px; width: max-content; margin: 8px 0; }
.footer-grid .icon { width: 17px; height: 17px; color: #7cc3ec; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 44px; padding: 22px 0; border-top: 1px solid #ffffff2b; font-size: 12px; }
.footer-bottom p { margin: 0; }

.not-found { padding: 110px 0; text-align: center; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: none; } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hero-bg { animation: hero-zoom 20s cubic-bezier(.2, .6, .2, 1) both; }

.topbar { transition: height .3s ease, box-shadow .3s ease; }
.topbar.scrolled { height: 64px; box-shadow: 0 6px 22px #072f4b26; }
.logo img { transition: height .3s ease; }
.topbar.scrolled .logo img { height: 44px; }

.topbar nav a:not(.button) { position: relative; }
.topbar nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
[dir="rtl"] .topbar nav a:not(.button)::after { transform-origin: right; }
.topbar nav a:not(.button):hover::after { transform: none; }

.button { position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease; }
.button.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, #ffffff38 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.button.primary:hover::after { transform: translateX(120%); }

.section-title h2::after { transition: transform .8s cubic-bezier(.2, .7, .2, 1) .25s; }
.motion .section-title:not(.seen) h2::after { transform: scaleX(0); }

:is(.steps li, .audit-grid article, .service-grid article, .why-grid article, .hero-credentials li, .software-list li, .special, .contact-btn, .table-cta) { transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease; }
.icon-badge { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
:is(.card-link, .text-link) .icon { transition: transform .2s ease; }
.questions label span { transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .15s ease; }
.opt-check { transition: width .2s ease, opacity .2s ease; }
.questions label:active span { transform: scale(.96); }
.faqs details { transition: border-color .2s ease, box-shadow .2s ease; }
.faq-toggle { transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.faqs summary { transition: color .2s ease; }
.faqs summary:hover { color: var(--blue-dark); }
.faqs details[open] p { animation: faq-in .35s ease both; }
tbody :is(td, th) { transition: background-color .2s ease; }

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #072f4b33; }
  :is(.steps li, .audit-grid article, .service-grid article, .why-grid article, .hero-credentials li):hover { transform: translateY(-6px); box-shadow: 0 16px 32px #072f4b26; }
  .why-grid article:hover { box-shadow: 0 16px 32px #0006; }
  :is(.software-list li, .contact-btn):hover { transform: translateY(-3px); }
  .special:hover { box-shadow: 0 10px 24px #1584c433; }
  :is(.steps li, .audit-grid article, .service-grid article, .why-grid article):hover .icon-badge { transform: scale(1.12) rotate(-8deg); }
  :is(.card-link, .text-link):hover .icon { transform: translateX(4px); }
  [dir="rtl"] :is(.card-link, .text-link):hover .dir-icon { transform: scaleX(-1) translateX(4px); }
  .questions label:hover span { border-color: #ffffff8c; color: #fff; }
  tbody tr:hover td { background: #e6f3fb; }
}

/* Scroll reveal: hiding is instant, only the reveal animates (see main.js). */
html .reveal { opacity: 0; transform: translateY(28px); transition: none; }
html .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .menu { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .nav-actions { gap: 10px; }
  .topbar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 18px; padding: 22px; background: #fff; box-shadow: 0 8px 15px #0013; }
  .topbar nav.open { display: flex; }
  .finder-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .questions legend { width: 150px; }
}

@media (max-width: 850px) {
  .section { padding: 60px 0; }
  .trust-grid, .steps, .audit-grid, .why-grid, .finder-grid, .faq-grid, .contact-grid, .special { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { gap: 14px; }
  .trust-grid li { justify-content: flex-start; padding: 0; }
  .trust-grid li + li { border: 0; }
  .steps { gap: 30px; }
  .steps::before { display: none; }
  .result::before { top: -11px; left: 50%; transform: translateX(-50%) rotate(45deg); }
  .faq-intro { position: static; }
  .faq-intro img { max-width: 420px; }
  .software .container { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .logo img, .topbar.scrolled .logo img { height: 40px; }
  .footer-logo img { height: 56px; }
  .lang-switch { padding: 7px 10px; }
  .hero { min-height: 0; padding: 44px 0 36px; }
  .hero-cta { grid-template-columns: 1fr; }
  .questions legend { float: none; width: auto; padding: 0 0 8px; }
  .questions .options { grid-template-columns: 1fr; }
  .result { padding: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  table { min-width: 760px; }
  .fields { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion: keep a gentle fade, drop all movement and zoom. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html .reveal { transform: none; }
  html .reveal.in { transition: opacity .8s ease !important; transition-delay: var(--d, 0s) !important; }
}
