/* ==========================================================================
   Barakat Holding Co. Ltd. — site styles
   Colours are taken from the logo: deep navy + gold.
   ========================================================================== */

:root {
  --navy-950: #081428;
  --navy-900: #0c1b38;
  --navy-800: #13284f;
  --navy-700: #1c3a6e;
  --blue-500: #2f5aa8;
  --gold-600: #b98a22;
  --gold-500: #c99a2e;
  --gold-300: #e6c46a;
  --gold-100: #f6ecd2;
  --ivory: #fbf8f1;
  --white: #ffffff;
  --ink: #18213a;
  --muted: #5b6478;
  --line: #e7e1d2;

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar-display: "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --font-ar-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 27, 56, .06), 0 2px 8px rgba(12, 27, 56, .05);
  --shadow-md: 0 10px 30px rgba(12, 27, 56, .10);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

html[lang="ar"] body { font-family: var(--font-ar-body); line-height: 1.85; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 .5em;
}
html[lang="ar"] :is(h1, h2, h3, h4) { font-family: var(--font-ar-display); font-weight: 600; line-height: 1.5; }

p { margin: 0 0 1em; }

/* ---------- Bilingual switching ----------
   Every piece of text exists twice: lang="en" and lang="ar".
   Only the one matching <html lang> is shown. */
html[lang="en"] [lang="ar"],
html[lang="ar"] [lang="en"] { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy-900); color: #dfe5f1; }
.section--navy :is(h2, h3) { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-300); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }
.section--navy .section-head p { color: #b8c3d9; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-300); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn svg { width: 18px; height: 18px; }

.icon-arrow { transition: transform .2s; }
html[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 21px; color: var(--navy-900); }
.brand-sub { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); margin-top: 3px; }
html[lang="ar"] .brand-name { font-family: var(--font-ar-display); font-weight: 700; font-size: 19px; }
html[lang="ar"] .brand-sub { letter-spacing: 0; font-size: 13px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--navy-700); background: var(--ivory); }
.main-nav a[aria-current="page"] { color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--navy-800);
  background: transparent; color: var(--navy-800); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-toggle:hover { background: var(--navy-800); color: var(--white); }
.lang-toggle[data-target="ar"] { font-family: var(--font-ar-body); }
.lang-toggle[data-target="en"] { font-family: var(--font-body); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy-900); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; inset-inline: 0; top: var(--header-h);
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .main-nav a { padding: 12px 10px; font-size: 16px; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold-500); background: var(--ivory); }
  html[dir="rtl"] .main-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--gold-500); }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 18px; }
  .brand img { width: 44px; height: 44px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dfe5f1;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(47, 90, 168, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-decor svg { position: absolute; width: 1100px; height: auto; inset-inline-end: -260px; top: -180px; opacity: .9; }
html[dir="rtl"] .hero-decor svg { transform: scaleX(-1); }

.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px;
  padding-block: clamp(72px, 10vw, 128px);
}
.hero h1 { color: var(--white); font-size: clamp(38px, 5.6vw, 64px); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: #c4cee2; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-seal { justify-self: center; position: relative; width: min(400px, 80vw); aspect-ratio: 1; }
.hero-seal::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgba(230, 196, 106, .35);
}
.hero-seal-disc {
  position: absolute; inset: 0; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; padding: 14%;
  box-shadow: 0 0 0 8px rgba(201, 154, 46, .25), 0 30px 80px rgba(0, 0, 0, .35);
}
.hero-seal-disc img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-seal { order: -1; width: min(240px, 60vw); }
  .hero .eyebrow::before { display: none; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #c4cee2;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  padding-block: clamp(64px, 8vw, 100px);
}
.page-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  inset-inline-end: -160px; top: -220px;
  border: 2px solid rgba(230, 196, 106, .25);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .02), 0 0 0 80px rgba(255, 255, 255, .02);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.page-hero p { max-width: 640px; font-size: 19px; margin: 0; }

/* ---------- Split (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 42px); }
.split p { color: var(--muted); font-size: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.emblem-panel {
  position: relative; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 56px); display: grid; place-items: center;
}
.emblem-panel img { width: min(340px, 100%); height: auto; }
.emblem-panel::before {
  content: ""; position: absolute; inset: 12px; border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid var(--gold-100); pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-600); margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--navy { background: var(--navy-800); color: var(--gold-300); }

/* Business area cards (home) */
.biz-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); text-decoration: none; color: #c9d2e5;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  padding: clamp(30px, 4vw, 44px); min-height: 340px;
  transition: transform .25s, box-shadow .25s;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(12, 27, 56, .25); }
.biz-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  inset-inline-end: -120px; bottom: -150px; border: 2px solid rgba(230, 196, 106, .3);
}
.biz-card > * { position: relative; z-index: 1; }
.biz-card--gold { background: linear-gradient(160deg, #d6aa45, var(--gold-600)); color: rgba(12, 27, 56, .85); }
.biz-card--gold::after { border-color: rgba(12, 27, 56, .18); }
.biz-card .icon-badge { background: rgba(255, 255, 255, .1); color: var(--gold-300); }
.biz-card--gold .icon-badge { background: rgba(12, 27, 56, .12); color: var(--navy-900); }
.biz-card h3 { color: var(--white); font-size: clamp(26px, 3vw, 32px); }
.biz-card--gold h3 { color: var(--navy-950); }
.biz-card p { font-size: 17px; margin-bottom: 24px; max-width: 440px; }
.biz-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-300); }
.biz-card--gold .more { color: var(--navy-950); }
.biz-card .more svg { width: 18px; height: 18px; }
.biz-card:hover .more .icon-arrow { transform: translateX(4px); }
html[dir="rtl"] .biz-card:hover .more .icon-arrow { transform: scaleX(-1) translateX(4px); }

/* Value list */
.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; }
.section--navy .value p { color: #b8c3d9; }
.section--navy .value .icon-badge { background: rgba(255, 255, 255, .07); color: var(--gold-300); }

/* Mission / vision */
.statement { border-top: 3px solid var(--gold-500); }
.statement p { font-size: 18px; color: var(--ink); }

/* Process steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; inset-inline-start: 0;
  font-family: var(--font-display); font-size: 40px; color: var(--gold-500); line-height: 1;
}
.step::after {
  content: ""; position: absolute; top: 20px; inset-inline-start: 72px; inset-inline-end: -12px;
  height: 1px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 980px) { .step::after { display: none; } }

/* Product cards */
.product { display: flex; gap: 18px; align-items: flex-start; }
.product .icon-badge { flex: none; margin: 0; }
.product h3 { font-size: 20px; margin-bottom: 6px; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--gold-600); margin-top: 3px; }
.section--navy .checklist li { color: #dfe5f1; }
.section--navy .checklist svg { color: var(--gold-300); }
.section--navy .checklist strong { color: var(--white); }

.seal-wrap { justify-self: center; }
.hero-seal--sm { width: min(300px, 70vw); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950));
  padding: clamp(36px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta::before {
  content: ""; position: absolute; inset-inline-end: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 154, 46, .35), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.cta p { color: #b8c3d9; margin: 0; font-size: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.card-title { font-size: 28px; margin-bottom: 24px; }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-badge { flex: none; margin: 0; width: 46px; height: 46px; }
.contact-item h3 { font-size: 17px; margin-bottom: 2px; font-family: var(--font-body); font-weight: 600; }
html[lang="ar"] .contact-item h3 { font-family: var(--font-ar-body); }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); text-decoration: none; }
.contact-item a:hover { color: var(--navy-700); }
.ltr { direction: ltr; unicode-bidi: isolate; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.field :is(input, select, textarea) {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid #d6d1c3; background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201, 154, 46, .18); }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9b4cb; padding-top: 72px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; text-decoration: none; }
.footer-brand .seal { width: 60px; height: 60px; border-radius: 50%; background: var(--white); padding: 6px; box-shadow: 0 0 0 3px rgba(201, 154, 46, .35); }
.footer-brand .seal img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand span { font-family: var(--font-display); font-size: 21px; color: var(--white); line-height: 1.2; }
html[lang="ar"] .footer-brand span { font-family: var(--font-ar-display); font-weight: 700; font-size: 18px; }
.footer-about p { max-width: 380px; }

.site-footer h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 16px; }
html[lang="ar"] .site-footer h4 { font-family: var(--font-ar-body); letter-spacing: 0; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold-300); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .biz-card { transition: none; }
}

/* Accessibility */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
