/* ── Ramz landing site — shared AR/EN stylesheet ──────────────────────────
   Brand: Denim #0F72CD → Fruit Salad #59AB56 (signature gradient).
   Direction-aware via logical properties; gradient flips under [dir="rtl"]. */

/* Fonts — unicode-range keeps downloads to the ranges each page uses. */
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url("../fonts/tajawal-500-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-display: swap; src: url("../fonts/tajawal-800-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url("../fonts/tajawal-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --denim: #0f72cd;
  --green: #59ab56;
  --grad: linear-gradient(100deg, var(--denim) 10%, var(--green) 90%);
  --ink: #10202f;
  --muted: #51606e;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --line: #e3ebf2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 32, 47, 0.08);
  /* Brand chevron pattern, redrawn as a tileable SVG (white strokes). */
  --chevrons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='44' viewBox='0 0 72 44'%3E%3Cpath d='M-6 32 12 14l18 18 18-18 18 18 12-12' fill='none' stroke='%23ffffff' stroke-width='7' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
[dir="rtl"] { --grad: linear-gradient(260deg, var(--denim) 10%, var(--green) 90%); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[lang="ar"] body, html[lang="ar"] { font-family: "Tajawal", "Poppins", system-ui, -apple-system, sans-serif; }
html[lang="en"] { font-family: "Poppins", "Tajawal", system-ui, -apple-system, sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 34px; width: auto; }
html[lang="ar"] .brand img { height: 46px; }
.main-nav { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 500; color: var(--muted); font-size: 15.5px; }
.main-nav a:hover { color: var(--denim); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-weight: 700; font-size: 14px; color: var(--denim);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.lang-switch:hover { border-color: var(--denim); background: var(--bg-soft); }
html[lang="ar"] .lang-switch { font-family: "Poppins", sans-serif; }
html[lang="en"] .lang-switch { font-family: "Tajawal", sans-serif; }

.btn {
  display: inline-block; border-radius: 999px; padding: 11px 26px; white-space: nowrap;
  font-weight: 700; font-size: 15.5px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(15, 114, 205, 0.28); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 114, 205, 0.36); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-light { background: #fff; color: var(--denim); box-shadow: 0 8px 22px rgba(9, 40, 70, 0.25); }
.btn-light:hover { transform: translateY(-2px); }

/* ── Hero ── */
.hero { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--chevrons); background-size: 72px 44px;
  opacity: 0.07; pointer-events: none;
}
.hero .container { position: relative; padding-block: 108px 120px; max-width: 880px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.hero p.lead {
  margin-top: 22px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 400;
  color: rgba(255, 255, 255, 0.92); max-width: 640px; margin-inline: auto;
}
.hero .cta-row { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .tagline {
  display: inline-block; margin-bottom: 20px; padding: 7px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em;
}

/* ── Sections ── */
section { padding-block: 88px; }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.3; }
.section-head p { margin-top: 12px; color: var(--muted); }
.kicker {
  display: inline-block; font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--denim); text-transform: uppercase; margin-bottom: 10px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Services ── */
#services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(15, 114, 205, 0.1), rgba(89, 171, 86, 0.12));
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--denim); }
.card:nth-child(even) .icon svg { stroke: var(--green); }
.card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.75; }

/* ── Clients ── */
.clients-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 20px;
}
.client {
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); width: 190px; min-height: 110px; padding: 20px;
  filter: grayscale(1); opacity: 0.72; transition: filter 0.2s ease, opacity 0.2s ease;
}
.client:hover { filter: none; opacity: 1; }
.client img { max-height: 62px; max-width: 140px; width: auto; object-fit: contain; }
.client .badge-text { text-align: center; font-weight: 700; color: #6b4f3a; line-height: 1.35; }
.client .badge-text small { display: block; font-weight: 500; font-size: 12px; color: #9b8570; letter-spacing: 0.04em; }
.clients-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ── Why band ── */
.why-band { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.why-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--chevrons); background-size: 72px 44px; opacity: 0.06;
}
.why-band .container { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.why-item h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.why-item p { color: rgba(255, 255, 255, 0.9); font-size: 15.5px; }
.why-item .num {
  font-weight: 800; font-size: 15px; opacity: 0.75; display: block; margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

/* ── Contact ── */
#contact .panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px;
  padding: 64px 32px; text-align: center;
}
#contact h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
#contact p { color: var(--muted); margin-top: 12px; max-width: 520px; margin-inline: auto; }
#contact .btn { margin-top: 30px; }
#contact .email-plain { display: block; margin-top: 18px; color: var(--muted); font-size: 15px; direction: ltr; }

/* ── Footer ── */
.site-footer { background: #0c1a27; color: rgba(255, 255, 255, 0.75); padding-block: 56px 40px; }
.site-footer .top {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 24px;
}
.site-footer img { height: 30px; width: auto; }
html[lang="ar"] .site-footer img { height: 44px; }
.site-footer nav { display: flex; gap: 22px; font-size: 14.5px; flex-wrap: wrap; }
.site-footer nav a:hover { color: #fff; }
.site-footer .legal {
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6); margin-bottom: 18px;
}
.site-footer .legal bdi { white-space: nowrap; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-band .container { grid-template-columns: 1fr; gap: 26px; }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero .container { padding-block: 76px 88px; }
  .site-header .container { height: 64px; gap: 14px; }
  .brand img { height: 28px; }
  html[lang="ar"] .brand img { height: 38px; }
  .btn { padding: 10px 20px; font-size: 14.5px; }
  .client { width: 46%; min-height: 96px; }
}
