/* Khalid Al Taee Trading L.L.C — site styles */
:root {
  --bg: #f5f1e8;
  --surface: #fbf9f4;
  --surface-2: #efe9dc;
  --ink: #13202b;
  --muted: #5a6570;
  --line: #e1d9c7;
  --gold: #c68a06;
  --gold-ink: #8d6200;
  --cyan: #00b4f0;
  --band: #0f1b26;
  --band-ink: #ece6d9;
  --band-muted: #9aa6b0;
  --shadow: 0 1px 0 rgba(19, 32, 43, .04), 0 12px 32px -18px rgba(19, 32, 43, .25);
  --radius: 4px;
  --wrap: 1380px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d151c; --surface: #121c25; --surface-2: #17232d; --ink: #ebe5d8; --muted: #9ba6af;
    --line: #233140; --gold: #e2a62a; --gold-ink: #e8b142; --band: #081016; --shadow: 0 12px 32px -18px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d151c; --surface: #121c25; --surface-2: #17232d; --ink: #ebe5d8; --muted: #9ba6af;
  --line: #233140; --gold: #e2a62a; --gold-ink: #e8b142; --band: #081016; --shadow: 0 12px 32px -18px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* label above headings */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .8rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* ---------- top bar ---------- */
.topbar { background: var(--band); color: var(--band-muted); font-size: .875rem; }
.topbar .wrap { display: flex; gap: 28px; align-items: center; min-height: 40px; }
.topbar a { color: var(--band-ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.topbar a:hover { color: var(--gold); }
.topbar .addr { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.topbar svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
@media (max-width: 820px) { .topbar .addr { display: none; } }
@media (max-width: 760px) { .topbar { display: none; } }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  padding: 10px 12px; color: var(--ink); position: relative;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 960px) {
  .header .wrap { min-height: 66px; }
  .brand img { height: 38px; }
  .menu-btn { display: inline-grid; }
  .header .btn-wa { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
  .nav a::after { display: none; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header-actions { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  padding: 15px 22px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: #14100a; }
.btn-gold:hover { background: #d99a14; color: #14100a; }
.btn-line { border-color: currentColor; color: inherit; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #188547; color: #fff; }
.btn-sm { padding: 11px 16px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: #f3eee3; background: #0f1b26; overflow: hidden; }
.hero picture, .hero img.bg { position: absolute; inset: 0; }
.hero img.bg { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,18,26,.94) 0%, rgba(10,18,26,.82) 40%, rgba(10,18,26,.25) 78%),
              linear-gradient(0deg, rgba(10,18,26,.6), transparent 40%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.02; max-width: 17ch; margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 .nb { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; color: #d4cdbf; margin-bottom: 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(8,14,20,.55); backdrop-filter: blur(6px);
}
.hero-facts ul { list-style: none; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--wrap); }
.hero-facts li { padding: 20px 0; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; color: #bfb8aa; }
.hero-facts li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-facts strong { font: 600 1.25rem/1.2 var(--display); color: #f3eee3; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) {
  .hero-facts ul { grid-template-columns: 1fr; padding: 0 16px; }
  .hero-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-facts li { padding: 14px 0; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { position: relative; background: var(--band); color: #f3eee3; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,26,.9), rgba(10,18,26,.4)); }
.page-head .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 14px; }
.page-head p { color: #cfc8ba; font-size: 1.2rem; max-width: 56ch; margin: 0; }
.page-head .kicker { color: var(--gold); }
.crumbs { font-size: .85rem; color: #a8a192; margin-bottom: 20px; letter-spacing: .04em; }
.crumbs a { color: #d9d2c4; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--surface-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* services list */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
  padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); position: relative; transition: background .25s;
}
.service:hover { background: var(--bg); }
.service .num { position: absolute; top: 36px; right: 32px; font: 600 .95rem/1 var(--display); color: var(--gold-ink); letter-spacing: .1em; }
.service svg { display: block; width: 40px; height: 40px; color: var(--gold-ink); margin: 0 0 22px; stroke-width: 1.5; }
.service h3 { text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
.service p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service { padding: 28px 22px 32px; } .service .num { top: 28px; right: 22px; } }

/* split block: image + text */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.split > div { align-self: center; }
.split.flip > :first-child { order: 2; }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; height: 100%; min-height: 420px; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.split figure::after {
  content: ""; position: absolute; left: -14px; bottom: -14px; width: 42%; height: 42%;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); pointer-events: none;
}
.split.flip figure::after { left: auto; right: -14px; border-left: 0; border-right: 3px solid var(--gold); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split figure img { height: auto; min-height: 0; aspect-ratio: 4/3; }
  .split figure::after { left: -8px; bottom: -8px; }
  .split.flip figure::after { right: -8px; }
}
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 14px; height: 8px; margin-top: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* GCC country grid */
.gcc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.country { background: var(--surface); padding: 30px 28px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: start; }
.country .flag { grid-row: span 3; width: 56px; height: 56px; object-fit: contain; }
.country h3 { margin: 4px 0 0; font-size: 1.45rem; text-transform: uppercase; }
.country .meta { font-size: .9rem; color: var(--gold-ink); font-weight: 600; letter-spacing: .03em; }
.country p { margin: 6px 0 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .gcc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .gcc { grid-template-columns: 1fr; } .country { padding: 24px 20px; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: "0" counter(s); display: block; font: 700 2.4rem/1 var(--display); color: var(--gold); margin-bottom: 14px; }
.steps h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* photo strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.strip .wide { grid-column: 1 / -1; aspect-ratio: 12/5; object-position: center 40%; }
@media (max-width: 760px) {
  .strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .strip .wide { aspect-ratio: 16/9; }
  .strip img:nth-child(2) { grid-column: 1 / -1; aspect-ratio: 16/10; }
}

/* facts table */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .85rem/1.6 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.ar { font-family: "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", sans-serif; direction: rtl; unicode-bidi: isolate; }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values h3 { text-transform: uppercase; font-size: 1.35rem; display: flex; gap: 12px; align-items: baseline; }
.values h3 span { color: var(--gold); }
.values p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* CTA band */
.cta { background: var(--band); color: #f3eee3; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px;
  background: url("../assets/img/icon-512.png") center/contain no-repeat; opacity: .06;
}
.cta .wrap { position: relative; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: #bdb6a8; margin: 0; max-width: 52ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } .cta .actions { justify-content: flex-start; } }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.c-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 20px; align-items: start;
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
a.c-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--ink); }
.c-card .ic { grid-row: span 3; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--gold-ink); }
.c-card .ic svg { width: 24px; height: 24px; }
.c-card.wa .ic { background: #1f9d55; color: #fff; }
.c-card .label { font: 600 .8rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.c-card .value { font: 600 1.45rem/1.2 var(--display); letter-spacing: .02em; word-break: break-word; }
.c-card .note { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .c-card { padding: 22px; grid-template-columns: 48px 1fr; } .c-card .ic { width: 48px; height: 48px; } }
.map { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16/7; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .map { aspect-ratio: 4/3; } }

/* ---------- footer ---------- */
.footer { background: var(--band); color: var(--band-muted); font-size: .95rem; border-top: 3px solid var(--gold); }
.footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo-box { display: inline-block; margin-bottom: 18px; }
.footer .logo-box img { height: 50px; width: auto; }
.footer h4 { color: var(--band-ink); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--band-ink); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer .ar { text-align: left; color: #c9c2b4; font-size: .95rem; display: block; margin-bottom: 14px; }
.footer .contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.footer .contact svg { width: 17px; height: 17px; color: var(--gold); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: var(--band-ink); }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(10,18,26,.72), rgba(10,18,26,.88)); }
}
