/* ============================================
   LOOP Marketing Agency: Design System
   ============================================ */

/* Zain: primary Arabic face (single light weight; Arabic glyphs only).
   Latin letters, digits and symbols fall through to Cairo below. */
@font-face {
  font-family: 'Zain';
  src: url('../assets/fonts/zain-arabic-300.woff2') format('woff2');
  font-weight: 300 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF;
}

/* Arabic subset (all weights) */
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-arabic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-arabic-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-arabic-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-arabic-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-arabic-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-arabic-900-normal.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  src: url('../assets/fonts/cairo-latin-900-normal.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* Color tokens */
  --black:        #0a0a0a;
  --black-soft:   #141013;
  --black-card:   #1b1517;
  --red:          #e8283f;
  --red-bright:   #ff3b52;
  --red-deep:     #6e0f1f;
  --off-white:    #f3efe9;
  --grey:         #948e8c;
  --grey-line:    #2a2224;

  /* Type */
  --font: 'Cairo', sans-serif;               /* body, nav, buttons, labels */
  --font-display: 'Zain', 'Cairo', sans-serif; /* Zain's swash tails read well only at headline size */

  /* Layout */
  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Zain ships one weight and is already heavy; don't let the browser fake-bold it */
  font-synthesis-weight: none;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[dir="rtl"] { direction: rtl; }
body[dir="ltr"] { direction: ltr; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Headline type scale ============ */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; }
p  { color: var(--grey); margin: 0; }
p.lead { color: var(--off-white); font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: var(--off-white);
  box-shadow: 0 8px 30px -8px rgba(232,40,63,.55);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(232,40,63,.7); }
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-ghost {
  border-color: var(--grey-line);
  color: var(--off-white);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--red-bright); background: rgba(232,40,63,.08); }

/* ============ Nav ============ */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-block: 22px;
  transition: padding .3s var(--ease), background .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.scrolled {
  padding-block: 12px;
  background: rgba(10,9,9,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .96rem; font-weight: 600; color: var(--off-white); position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content:''; position:absolute; inset-inline-start:0; bottom:0; height:2px; width:0;
  background: var(--red-bright); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red-bright); }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--grey-line); border-radius: 999px; padding: 5px;
}
.lang-toggle button {
  border: none; background: transparent; color: var(--grey);
  font-family: var(--font); font-weight: 700; font-size: .82rem;
  padding: 6px 14px; border-radius: 999px; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang-toggle button.is-active { background: var(--red); color: var(--off-white); }

.nav-toggle { display: none; }

.nav-toggle .bar { width: 18px; height: 2px; background: var(--off-white); position: relative; }
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ''; position: absolute; inset-inline-start: 0; width: 18px; height: 2px; background: var(--off-white);
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after { top: 6px; }

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: fixed; inset-inline: 16px; top: 78px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(18,14,15,.98); border: 1px solid var(--grey-line);
    border-radius: var(--radius); padding: 10px;
    backdrop-filter: blur(16px);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 10px; border-bottom: 1px solid var(--grey-line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-toggle {
    display: inline-flex; align-items:center; justify-content:center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--grey-line); background: transparent; color: var(--off-white);
  }
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--grey-line);
  padding-block: 56px 30px;
  margin-top: 120px;
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; }
.footer-col h3 { font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--grey); font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: var(--red-bright); }
.footer-bottom {
  border-top: 1px solid var(--grey-line);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: var(--grey);
}

/* ============ Utility sections ============ */
section { position: relative; }
.eyebrow-free {} /* marker: intentionally no eyebrow labels used site-wide */

.section-pad { padding-block: clamp(70px, 10vw, 130px); }
.section-pad + .section-pad { padding-top: clamp(20px, 4vw, 50px); }

/* Language visibility - the active language's [data-i18n] blocks show */
[data-i18n] { display: none !important; }
html[lang="ar"] [data-i18n="ar"] { display: revert !important; }
html[lang="en"] [data-i18n="en"] { display: revert !important; }
