/* logix.hanixgroup.com — HANIX identity (navy / gold / burgundy), formal B2B tone.
   Uses logical properties (inline-start/end) so one stylesheet serves RTL and LTR. */

@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/assets/fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex-arabic-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/assets/fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #0b1b3a;
  --primary-2: #1b2f5c;
  --accent: #9f1239;
  --accent-hover: #881337;
  --gold: #b08d2e;
  --gold-text: #7a5f0c;
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f4ecdc;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #e5e1da;
  --success: #15803d;
  --success-soft: #dcfce7;
  --error: #b91c1c;
  --error-soft: #fee2e2;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 4px 16px rgb(15 23 42 / 5%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.35; color: var(--primary); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.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; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--surface); padding: .5rem 1rem; border-radius: 6px; }
.skip:focus { top: .75rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold), var(--accent)); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--primary); }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.15rem; letter-spacing: .02em; }
.brand-text small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.nav { display: none; gap: .25rem; }
.nav-link { padding: .5rem .8rem; border-radius: 6px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.nav-link:hover { background: rgb(11 27 58 / 6%); color: var(--primary); }
.nav-link[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang { font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--primary); padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 6px; }
.lang:hover { border-color: var(--primary); }
.menu-btn { inline-size: 44px; block-size: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--primary); position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); padding-block: .75rem 1rem; }
.mobile-nav .wrap { display: flex; flex-direction: column; gap: .25rem; }
.mobile-link { padding: .7rem .5rem; text-decoration: none; color: var(--text); font-weight: 600; border-radius: 6px; }
.mobile-link[aria-current="page"] { color: var(--accent); }
.btn.hide-sm { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
  .btn.hide-sm { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.25rem; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 38px; padding: .4rem .9rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .75rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: .5rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline-light { border-color: rgb(255 255 255 / 70%); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgb(255 255 255 / 12%); }
.btn[disabled] { opacity: .65; cursor: progress; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }

/* ---------- hero & page heads ---------- */
.hero {
  color: #fff;
  background:
    linear-gradient(100deg, rgb(11 27 58 / 96%) 0%, rgb(11 27 58 / 88%) 45%, rgb(11 27 58 / 55%) 100%),
    url("/assets/img/hero-port.webp") center / cover no-repeat;
  padding-block: clamp(4rem, 10vw, 7.5rem);
}
[dir="rtl"] .hero {
  background:
    linear-gradient(260deg, rgb(11 27 58 / 96%) 0%, rgb(11 27 58 / 88%) 45%, rgb(11 27 58 / 55%) 100%),
    url("/assets/img/hero-port.webp") center / cover no-repeat;
}
.hero-inner { max-width: 760px; margin-inline-start: max(1rem, (100% - 1160px) / 2); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.hero .lead { color: rgb(255 255 255 / 86%); font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .75rem; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold); vertical-align: middle; margin-inline-end: .5rem; }
.eyebrow-light { color: #e7cf86; }
.page-head { background: var(--primary); color: #fff; padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 820px; }
.page-head .lead { color: rgb(255 255 255 / 82%); max-width: 720px; margin: 0; font-size: 1.08rem; }
.page-head .eyebrow { color: #e7cf86; }
.page-head-photo {
  background: linear-gradient(rgb(11 27 58 / 90%), rgb(11 27 58 / 90%)), url("/assets/img/hero-packing.webp") center / cover no-repeat;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--surface-alt); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.5rem; }
.section-title-sm { font-size: 1.2rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.lead-dark { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); margin-bottom: .75rem; }
.card-title { font-size: 1.15rem; }
.group-card { border-top: 3px solid var(--gold); }
.num { display: block; font-weight: 700; color: var(--gold-text); font-size: .9rem; margin-bottom: .5rem; }
.mini-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); padding-top: .75rem; }
.mini-list li { font-size: .92rem; padding-block: .2rem; color: var(--text); }
.mini-list li::before { content: "•"; color: var(--accent); margin-inline-end: .5rem; }
.more { margin: 1.75rem 0 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .85rem 1rem; font-weight: 600; display: flex; align-items: center; gap: .75rem; }
.check-list li::before { content: "✓"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(159 18 57 / 10%); color: var(--accent); font-size: .85rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 1rem; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.steps strong { color: var(--primary); }
.steps span { color: var(--muted); }
.steps-compact li { grid-template-columns: 32px 1fr; }
.steps-compact li::before { width: 32px; height: 32px; font-size: .9rem; grid-row: auto; }
.steps-compact span { color: var(--text); padding-top: .2rem; }
.feature { padding-inline-start: 1rem; border-inline-start: 3px solid var(--gold); }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; }
.note { margin-top: 2rem; padding: .9rem 1.1rem; border-radius: 8px; background: rgb(11 27 58 / 5%); border-inline-start: 3px solid var(--primary); color: var(--muted); font-size: .92rem; }
.service-group { margin-bottom: 3rem; scroll-margin-top: 90px; }
.service-group-head { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.service-group-head h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.service-group-head p { color: var(--muted); margin: 0; }
.service-card { border-top: 3px solid var(--primary); }
.prose { color: var(--text); font-size: 1.04rem; }
.prose-h { font-size: 1.15rem; margin-top: 1.75rem; }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.value-list li { display: flex; flex-direction: column; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.value-list strong { color: var(--primary); }
.value-list span { color: var(--muted); }
.cta-band { background: var(--primary); color: #fff; padding-block: 3rem; border-top: 3px solid var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: .25rem; }
.cta-band p { color: rgb(255 255 255 / 80%); margin: 0; }
.contact-card-accent { border-top: 3px solid var(--accent); }
.sep { border: 0; border-top: 1px solid var(--border); margin-block: 2.5rem; }

/* ---------- form ---------- */
.consult-grid { display: grid; gap: 2rem; }
@media (min-width: 980px) { .consult-grid { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.form-card { padding: clamp(1.25rem, 3vw, 2rem); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .3rem; color: var(--primary); }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #cbc3b6; border-radius: 8px; padding: .65rem .8rem; min-height: 46px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .88rem; color: var(--muted); margin: 1.25rem 0 1rem; }
.form-status:empty { display: none; }
.form-status { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 8px; font-weight: 600; }
.form-status.ok { background: var(--success-soft); color: var(--success); }
.form-status.err { background: var(--error-soft); color: var(--error); }
.consult-aside .note { margin-top: 1.5rem; }
.aside-mail { margin-top: 1.5rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--primary); color: rgb(255 255 255 / 82%); padding-top: 3.25rem; margin-top: auto; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }
.brand-light, .brand-light .brand-text small { color: #fff; }
.brand-light img { background: #fff; }
.footer-tagline { margin-top: 1rem; max-width: 380px; font-size: .95rem; }
.footer-small { font-size: .85rem; color: rgb(255 255 255 / 65%); }
.footer-title { font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-title::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin-top: .4rem; }
.footer-title-sm { margin-top: 1.5rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .93rem; }
.footer-list a { text-decoration: none; color: rgb(255 255 255 / 82%); }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-block; padding: .3rem .8rem; border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px; font-size: .85rem; text-decoration: none; }
.social a:hover { background: rgb(255 255 255 / 10%); }
.social-dark a { color: var(--primary); border-color: var(--border); background: var(--surface); }
.social-dark a:hover { border-color: var(--primary); background: var(--surface); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 15%); padding-block: 1.25rem 1.75rem; font-size: .82rem; color: rgb(255 255 255 / 60%); }
.footer-bottom p { margin: .25rem 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .cta-band { display: none; } }
