/* =========================================
   Atheer Care — Global Styles
   Brand palette per Brand Manual Guidelines 2026
   ========================================= */

:root {
  /* === Brand colors (from brand book) === */
  --primary: #005991;          /* R0 G89 B145 — main brand blue */
  --primary-dark: #00416B;     /* darker variant for depth */
  --primary-deep: #003554;     /* deepest variant */
  --primary-mid: #0070B5;      /* gradient mid-stop */
  --primary-light: #3D8EC0;    /* lighter accent */
  --primary-soft: #D8E5EE;     /* very pale tint */

  --cream: #F5F0ED;            /* R245 G240 B237 — cream base */
  --cream-soft: #EFE7E1;       /* cream card tone */
  --cream-mid: #E5DBD2;        /* cream border */

  --mint: #3D8EC0;             /* R94 G191 B148 — secondary accent */
  --mint-light: #5EB0DC;       /* mint hover */
  --mint-dark: #1A77B0;        /* mint deep */

  --peach: #DEAB9C;            /* R222 G171 B156 — warm accent */
  --olive: #91946E;            /* R145 G148 B110 — earthy accent */
  --mauve: #75697D;            /* R117 G105 B125 — quiet accent */

  --white: #FFFFFF;
  --text-dark: #1A2230;
  --text-body: #3D4659;
  --text-muted: #6B7286;

  /* legacy alias so existing rules referencing --teal keep working */
  --teal: var(--mint);
  --teal-light: var(--mint-light);
  --bg-page: var(--cream);
  --bg-card-soft: var(--cream-soft);
  --bg-card-mid: var(--cream-mid);

  --gradient-deep: linear-gradient(135deg, #003554 0%, #005991 60%, #0070B5 100%);
  --gradient-mid:  linear-gradient(135deg, #005991 0%, #1A77B0 100%);
  --gradient-teal: linear-gradient(135deg, #3D8EC0 0%, #5EB0DC 100%);

  --shadow-sm: 0 2px 8px rgba(0, 89, 145, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 89, 145, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 89, 145, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.rtl {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  direction: rtl;
  text-align: right;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ============== HEADER / NAV ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 89, 145, 0.1);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 44px;
  max-width: 100%;
  flex-shrink: 0;
  display: block;
}

/* visually-hidden — preserves text for SEO/screen-readers when logo replaces it */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-text .en {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--primary);
}
.brand-text .ar {
  font-size: 14px;
  font-weight: 600;
  color: var(--mint-dark);
  font-family: 'Cairo', sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-dark);
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}
.nav-links a:hover { background: var(--cream-soft); color: var(--primary); }
.nav-links a.active { color: var(--primary); background: var(--cream-soft); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--primary); color: var(--white); }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--gradient-mid);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 89, 145, 0.3);
  white-space: nowrap;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 89, 145, 0.4);
}

.mobile-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
  background: var(--gradient-deep);
  color: var(--cream);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(61, 142, 192, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(61, 142, 192, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-logo {
  width: auto;
  height: 110px;
  max-width: 90%;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.35));
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--white);
}
.hero h1 .ar-block {
  display: block;
  font-family: 'Cairo', sans-serif;
  margin-bottom: 8px;
}
/* In English mode the wordmark logo already shows "Atheer care",
   so collapse the empty h1 (text remains in the DOM via .visually-hidden for SEO/a11y) */
.lang-en .hero h1 { margin: 0; line-height: 0; font-size: 0; }

.hero .tagline {
  font-size: clamp(17px, 2.2vw, 24px);
  color: var(--mint-light);
  margin-bottom: 8px;
  font-weight: 500;
}
.hero .tagline-ar {
  font-family: 'Cairo', sans-serif;
  opacity: 0.85;
  font-size: clamp(14px, 1.8vw, 18px);
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--mint-light); flex-shrink: 0; }

.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  min-height: 48px;
}
.btn-primary { background: var(--mint); color: var(--white); }
.btn-primary:hover { background: var(--mint-light); transform: translateY(-2px); color: var(--primary-dark); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ============== SECTIONS ============== */
section { padding: 96px 0; position: relative; }
section.alt { background: var(--white); }

.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.section-head .ar-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.2;
}
.section-head .en-title {
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--mint-dark);
  margin-bottom: 18px;
}
.section-head .lead {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--text-muted);
  line-height: 1.65;
}
.section-head .divider {
  display: inline-block;
  width: 60px; height: 3px;
  background: var(--mint);
  border-radius: 2px;
  margin-top: 14px;
}

/* ============== CARDS ============== */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 30px 26px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}
.card:hover .icon-circle { background: var(--primary); color: var(--white); }
.card .icon-circle svg { width: 26px; height: 26px; }

.card .ar-h { font-family: 'Cairo', sans-serif; font-size: 19px; font-weight: 700; color: var(--primary); margin-bottom: 6px; line-height: 1.3; }
.card .en-h { font-size: 15px; font-weight: 600; color: var(--mint-dark); margin-bottom: 12px; }
.card .ar-p { font-family: 'Cairo', sans-serif; font-size: 14px; color: var(--text-body); line-height: 1.75; margin-bottom: 6px; }
.card .en-p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

/* Card variants */
.card.deep {
  background: var(--gradient-deep);
  color: var(--white);
}
.card.deep .ar-h { color: var(--white); }
.card.deep .en-h { color: var(--mint-light); }
.card.deep .ar-p, .card.deep .en-p { color: rgba(245, 240, 237, 0.88); }
.card.deep .icon-circle { background: rgba(255,255,255,0.15); color: var(--white); }
.card.deep:hover .icon-circle { background: var(--mint); }

.card.mid {
  background: var(--gradient-mid);
  color: var(--white);
}
.card.mid .ar-h { color: var(--white); }
.card.mid .en-h { color: var(--mint-light); }
.card.mid .ar-p, .card.mid .en-p { color: rgba(245, 240, 237, 0.9); }
.card.mid .icon-circle { background: rgba(255,255,255,0.18); color: var(--white); }

.card.teal {
  background: var(--gradient-teal);
  color: var(--white);
}
.card.teal .ar-h, .card.teal .en-h, .card.teal .ar-p, .card.teal .en-p { color: var(--white); }
.card.teal .en-h { color: var(--cream); }
.card.teal .icon-circle { background: rgba(255,255,255,0.2); color: var(--white); }

/* ============== STATS ============== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.stat-card:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.stat-card .icon-circle {
  margin: 0 auto 14px;
  background: var(--primary);
  color: var(--white);
}
.stat-card .ar-h, .stat-card .en-h { text-align: center; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--gradient-deep);
  color: rgba(245, 240, 237, 0.82);
  padding: 64px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { transition: var(--transition); display: inline-block; }
.footer-col a:hover { color: var(--mint-light); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand .brand-logo { width: auto; height: 50px; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand-text .en { color: white; font-size: 20px; font-weight: 800; }
.footer-brand-text .ar { color: var(--mint-light); font-family: 'Cairo', sans-serif; font-size: 14px; }

.footer-desc { font-size: 14px; line-height: 1.7; opacity: 0.85; max-width: 320px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  opacity: 0.78;
}
.footer-tag { font-style: italic; color: var(--mint-light); }

/* ============== LANGUAGE ============== */
.lang-en .ar-only { display: none !important; }
.lang-ar .en-only { display: none !important; }

body.rtl .nav-links { flex-direction: row-reverse; }
body.rtl .nav-actions { flex-direction: row-reverse; }
body.rtl .brand { flex-direction: row-reverse; }

/* fade-up animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============== PAGE BANNER ============== */
.page-banner {
  background: var(--gradient-deep);
  color: var(--cream);
  padding: 90px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(61, 142, 192, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(61, 142, 192, 0.22), transparent 50%);
}
.page-banner-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-banner .ar-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--white);
  line-height: 1.15;
}
.page-banner .en-title {
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--mint-light);
  font-weight: 600;
  margin-bottom: 14px;
}
.page-banner .lead {
  font-size: clamp(14px, 1.6vw, 16px);
  opacity: 0.9;
  line-height: 1.7;
}

.breadcrumbs {
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 20px;
}
.breadcrumbs a:hover { color: var(--mint-light); }
.breadcrumbs .sep { opacity: 0.5; }

/* ============== PORTFOLIO ============== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  padding: 26px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card .tag-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.project-card .icon-pill {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.project-card .title { font-weight: 700; font-size: 18px; margin-bottom: 4px; line-height: 1.3; }
.project-card .title-ar { font-family: 'Cairo', sans-serif; font-size: 21px; font-weight: 700; line-height: 1.3; }
.project-card .scope {
  background: rgba(255,255,255,0.14);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.project-card .scope .ar { font-family: 'Cairo', sans-serif; font-weight: 600; margin-bottom: 2px; }
.project-card .scope .en { font-size: 13px; opacity: 0.88; }
.project-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  opacity: 0.88;
}

/* ============== CONTACT ============== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
}
.info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
body.rtl .info-card:hover { transform: translateX(-6px); }
.info-card .icon-circle { flex-shrink: 0; margin: 0; background: var(--primary); color: white; }
.info-card .ar-h { font-family: 'Cairo', sans-serif; font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 2px; }
.info-card .en-h { font-size: 14px; color: var(--mint-dark); margin-bottom: 10px; }
.info-card p { font-size: 15px; color: var(--text-body); line-height: 1.7; word-break: break-word; }
.info-card a { color: var(--primary); }
.info-card a:hover { color: var(--mint-dark); }

.contact-form {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.contact-form h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
}

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-mid);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  min-height: 48px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 89, 145, 0.1);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--gradient-mid);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  min-height: 52px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 89, 145, 0.4); }

.form-success {
  display: none;
  padding: 18px;
  background: #E6F0F7;
  color: #00416B;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 16px;
  border: 1px solid #BDD9EA;
}
.form-success.show { display: block; }

/* ============== COMPLIANCE STRIP ============== */
.compliance-strip {
  background: var(--gradient-mid);
  color: var(--white);
  padding: 26px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}
.compliance-strip .ar { font-family: 'Cairo', sans-serif; margin-bottom: 6px; line-height: 1.6; }
.compliance-strip .en { line-height: 1.6; }

/* ============== TABS ============== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 12px 20px;
  background: var(--white);
  border: 1.5px solid var(--cream-mid);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============== CTA STRIP ============== */
.cta-strip {
  background: var(--gradient-deep);
  color: var(--white);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(61, 142, 192, 0.15), transparent 50%);
}
.cta-strip-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-strip .ar-h {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}
.cta-strip .en-h {
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--mint-light);
  margin-bottom: 8px;
}
.cta-strip p {
  font-size: clamp(14px, 1.7vw, 16px);
  opacity: 0.92;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ============== IPC COMMITMENT GRID ============== */
.ipc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ipc-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
}
.ipc-grid svg { flex-shrink: 0; }
.ipc-grid span { font-size: 14px; font-weight: 600; }

/* ============== LOGO COLOR ON DARK ============== */
.site-footer .brand-logo,
.cta-strip .brand-logo {
  /* placeholder if needed */
}

/* ============== RESPONSIVE — BREAKPOINTS ============== */

/* Large desktop (>= 1240px) — defaults above */

/* Desktop (980 - 1239px) */
@media (max-width: 1239px) {
  .container { padding: 0 28px; }
  .footer-grid { gap: 32px; }
}

/* Tablet (720 - 979px) */
@media (max-width: 979px) {
  section { padding: 80px 0; }
  .grid-3, .grid-4, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 80vh; }
  .hero-logo { height: 95px; }
  .stat-row { gap: 16px; }
  .section-head { margin-bottom: 48px; }
  .cta-strip { padding: 50px 32px; }
  /* span-2 cards keep span 2 on tablet (since grid is now 2-col, it = full width) */
  [style*="grid-column: span 2"] { grid-column: 1 / -1 !important; }
}

/* Mobile (max-width 719px) */
@media (max-width: 719px) {
  .container { padding: 0 18px; }
  section { padding: 56px 0; }

  /* Header / nav */
  .nav-wrap { height: 64px; gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 12px;
    box-shadow: var(--shadow-md);
    gap: 2px;
    border-top: 1px solid var(--cream-mid);
  }
  .nav-links.show { display: flex; }
  .nav-links a { width: 100%; padding: 14px 18px; }
  .mobile-toggle { display: inline-flex; }
  .nav-actions .btn-cta { display: none; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-text .en { font-size: 16px; }
  .brand-text .ar { font-size: 13px; }
  .lang-toggle { padding: 8px 12px; font-size: 12px; }

  /* Grids -> 1 column */
  .grid-2, .grid-3, .grid-4, .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .stat-row { grid-template-columns: 1fr; }
  .ipc-grid { grid-template-columns: 1fr; }
  [style*="grid-column: span 2"] { grid-column: 1 / -1 !important; }

  /* Hero */
  .hero { min-height: auto; padding: 56px 18px; }
  .hero-logo { height: 78px; margin-bottom: 22px; }
  .brand-logo { height: 36px; }
  .footer-brand .brand-logo { height: 44px; }
  .hero-eyebrow { font-size: 12px; padding: 5px 14px; margin-bottom: 18px; }
  .hero-badges { gap: 8px; margin-bottom: 32px; }
  .hero-badge { padding: 8px 14px; font-size: 12px; }
  .hero-cta-row { flex-direction: column; width: 100%; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; }

  /* Page banner */
  .page-banner { padding: 60px 18px 50px; }

  /* Cards */
  .card { padding: 26px 22px; }

  /* CTA strip */
  .cta-strip { padding: 40px 24px; border-radius: var(--radius-md); margin: 24px 0; }

  /* Tabs */
  .tabs { gap: 8px; margin-bottom: 28px; }
  .tab-btn { padding: 10px 16px; font-size: 13px; }

  /* Contact */
  .info-card { padding: 20px; gap: 14px; }
  .info-card:hover { transform: none; }
  .info-card .icon-circle { width: 44px; height: 44px; }
  .contact-form { padding: 24px; }

  /* Compliance */
  .compliance-strip { padding: 22px 22px; font-size: 15px; }

  /* Footer */
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom > span { width: 100%; }
}

/* Small mobile (max-width 479px) */
@media (max-width: 479px) {
  .container { padding: 0 14px; }
  section { padding: 48px 0; }
  .nav-wrap { height: 60px; }
  .brand-text .en { font-size: 15px; }
  .brand-text .ar { font-size: 12px; }
  .brand-logo { height: 32px; }
  .footer-brand .brand-logo { height: 40px; }

  .hero { padding: 48px 14px; }
  .hero-logo { height: 64px; margin-bottom: 18px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
  .hero .tagline { font-size: 15px; }
  .hero .tagline-ar { font-size: 13px; margin-bottom: 26px; }
  .hero-badges { gap: 6px; margin-bottom: 26px; }
  .hero-badge { padding: 7px 12px; font-size: 11px; }

  .page-banner { padding: 50px 14px 44px; }
  .page-banner .ar-title { font-size: 26px; }
  .page-banner .en-title { font-size: 17px; }

  .section-head { margin-bottom: 32px; }
  .section-head .ar-title { font-size: 22px; }
  .section-head .en-title { font-size: 16px; }

  .card { padding: 22px 18px; }
  .card .icon-circle { width: 48px; height: 48px; margin-bottom: 16px; }
  .card .icon-circle svg { width: 22px; height: 22px; }
  .card .ar-h { font-size: 17px; }
  .card .en-h { font-size: 14px; }

  .cta-strip { padding: 36px 20px; }
  .cta-strip .ar-h { font-size: 22px; }
  .cta-strip .en-h { font-size: 15px; }

  .compliance-strip { padding: 20px 18px; font-size: 14px; }

  .contact-form { padding: 22px 18px; }
  .contact-form h3 { font-size: 20px; }

  .info-card { padding: 18px; gap: 12px; }
  .info-card .ar-h { font-size: 16px; }
  .info-card p { font-size: 14px; }

  .project-card { padding: 22px 18px; }
  .project-card .title { font-size: 16px; }
  .project-card .title-ar { font-size: 19px; }
  .project-card .scope { padding: 12px 14px; }

  .footer-brand-text .en { font-size: 18px; }
  .footer-bottom { font-size: 12px; }
  .footer-tag { font-size: 12px; }

  .tab-btn { padding: 9px 14px; font-size: 12px; }
  .tab-btn svg { width: 14px; height: 14px; }
}

/* Extra small (< 360px) */
@media (max-width: 359px) {
  .hero h1 { font-size: 28px; }
  .hero-logo { height: 56px; }
  .brand-logo { height: 28px; }
  .brand-text .en { font-size: 14px; }
  .lang-toggle .lang-label { display: none; }
  .lang-toggle { padding: 8px; }
}

/* Landscape phones — reduce hero height */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 48px 24px; }
  .hero-logo { height: 56px; margin-bottom: 14px; }
  .hero h1 { font-size: 28px; }
}

/* =========================================================
   POLISH & ANIMATION LAYER
   Micro-interactions, choreography, brand texture
   ========================================================= */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--primary) 0%, var(--mint) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  will-change: transform;
}
body.rtl .scroll-progress { transform-origin: right center; }

/* ---------- Page fade-in on load ---------- */
body { animation: page-fade-in 0.5s ease both; }
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Hero entrance choreography ---------- */
.hero-eyebrow,
.hero .hero-logo,
.hero h1,
.hero .tagline,
.hero .tagline-ar,
.hero-badges,
.hero-cta-row {
  opacity: 0;
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-eyebrow      { animation-delay: 0.10s; }
.hero .hero-logo   { animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both,
                                floaty 4s ease-in-out 1.6s infinite; }
.hero h1           { animation-delay: 0.35s; }
.hero .tagline     { animation-delay: 0.45s; }
.hero .tagline-ar  { animation-delay: 0.55s; }
.hero-badges       { animation-delay: 0.70s; }
.hero-cta-row      { animation-delay: 0.85s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Page banner entrance ---------- */
.page-banner .breadcrumbs,
.page-banner .ar-title,
.page-banner .en-title,
.page-banner .lead {
  opacity: 0;
  animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-banner .breadcrumbs { animation-delay: 0.05s; }
.page-banner .ar-title    { animation-delay: 0.18s; }
.page-banner .en-title    { animation-delay: 0.30s; }
.page-banner .lead        { animation-delay: 0.42s; }

/* ---------- Stagger reveal for grid children ---------- */
.grid.reveal,
.portfolio-grid.reveal,
.stat-row.reveal {
  opacity: 1 !important;
  transform: none !important;
}
.grid.reveal > *,
.portfolio-grid.reveal > *,
.stat-row.reveal > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.grid.reveal.in-view > *,
.portfolio-grid.reveal.in-view > *,
.stat-row.reveal.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.grid.reveal.in-view > *:nth-child(1),
.portfolio-grid.reveal.in-view > *:nth-child(1),
.stat-row.reveal.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.grid.reveal.in-view > *:nth-child(2),
.portfolio-grid.reveal.in-view > *:nth-child(2),
.stat-row.reveal.in-view > *:nth-child(2) { transition-delay: 0.13s; }
.grid.reveal.in-view > *:nth-child(3),
.portfolio-grid.reveal.in-view > *:nth-child(3),
.stat-row.reveal.in-view > *:nth-child(3) { transition-delay: 0.21s; }
.grid.reveal.in-view > *:nth-child(4),
.portfolio-grid.reveal.in-view > *:nth-child(4) { transition-delay: 0.29s; }
.grid.reveal.in-view > *:nth-child(5),
.portfolio-grid.reveal.in-view > *:nth-child(5) { transition-delay: 0.37s; }
.grid.reveal.in-view > *:nth-child(6),
.portfolio-grid.reveal.in-view > *:nth-child(6) { transition-delay: 0.45s; }
.grid.reveal.in-view > *:nth-child(7) { transition-delay: 0.53s; }
.grid.reveal.in-view > *:nth-child(8) { transition-delay: 0.61s; }
.grid.reveal.in-view > *:nth-child(9) { transition-delay: 0.69s; }

/* ---------- Refined card hover ---------- */
.card {
  position: relative;
  will-change: transform;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-light) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card:hover::after { transform: scaleX(1); }
body.rtl .card::after { transform-origin: right center; }

.card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 24px 56px rgba(0, 89, 145, 0.18),
    0 6px 14px rgba(0, 89, 145, 0.08);
}
.card .icon-circle {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease, color 0.3s ease;
}
.card:hover .icon-circle {
  transform: rotate(-8deg) scale(1.08);
}

/* Project cards (.card.deep / .mid / .teal) get a soft glow on hover */
.card.deep:hover, .card.mid:hover, .card.teal:hover {
  box-shadow:
    0 24px 60px rgba(0, 89, 145, 0.32),
    0 6px 14px rgba(0, 89, 145, 0.18);
}

/* ---------- Stat cards refinement ---------- */
.stat-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.stat-card:hover .icon-circle { transform: scale(1.12); }

/* ---------- Nav link underline (center-out) ---------- */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%; bottom: 4px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after { left: 14px; right: 14px; }

/* ---------- Brand logo hover scale ---------- */
.brand { transition: opacity 0.25s ease; }
.brand:hover { opacity: 0.85; }
.brand-logo { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.brand:hover .brand-logo { transform: scale(1.05); }

/* ---------- Button micro-interactions ---------- */
.btn-primary, .btn-ghost, .btn-cta, .form-submit, .tab-btn, .lang-toggle {
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn-primary:active, .btn-ghost:active, .btn-cta:active, .form-submit:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}
.btn-primary {
  box-shadow: 0 4px 16px rgba(61, 142, 192, 0.32);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(61, 142, 192, 0.5);
}

/* Ripple-ish shine on hover */
.btn-primary::before, .btn-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}
.btn-primary:hover::before, .btn-cta:hover::before { left: 100%; }

/* ---------- Tab button refinement ---------- */
.tab-btn { transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.tab-btn:hover { transform: translateY(-2px); }
.tab-btn.active { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 89, 145, 0.25); }

/* ---------- Tab panel smoother transition ---------- */
.tab-panel.active {
  animation: tab-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile menu slide animation ---------- */
@media (max-width: 719px) {
  .nav-links {
    display: flex !important;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links.show li {
    animation: rise-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .nav-links.show li:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.show li:nth-child(2) { animation-delay: 0.10s; }
  .nav-links.show li:nth-child(3) { animation-delay: 0.15s; }
  .nav-links.show li:nth-child(4) { animation-delay: 0.20s; }
}

/* ---------- Form input focus enhancement ---------- */
.form-row label {
  transition: color 0.3s ease;
}
.form-row:focus-within label { color: var(--primary); }
.form-row input,
.form-row select,
.form-row textarea {
  transition: border-color 0.3s ease, background 0.3s ease,
              box-shadow 0.3s ease, transform 0.2s ease;
}
.form-row:focus-within input,
.form-row:focus-within select,
.form-row:focus-within textarea {
  transform: translateY(-1px);
}

/* ---------- Info card hover (contact) ---------- */
.info-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.info-card .icon-circle { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.info-card:hover .icon-circle { transform: scale(1.1) rotate(-4deg); }

/* ---------- Brand chevron texture (from brand book) ---------- */
.hero::after,
.page-banner::after,
.cta-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='%23F5F0ED' opacity='0.07'%3E%3Crect x='6' y='14' width='28' height='8' rx='2.5' transform='rotate(-30 20 18)'/%3E%3Crect x='22' y='34' width='8' height='8' rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 70px 70px;
  pointer-events: none;
  z-index: 0;
}
.hero-inner,
.page-banner-inner,
.cta-strip-inner { position: relative; z-index: 2; }

/* ---------- Section heading divider shine ---------- */
.section-head .divider {
  position: relative;
  overflow: hidden;
}
.section-head .divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: translateX(-100%);
  animation: divider-shine 3.5s ease-in-out 1s infinite;
}
@keyframes divider-shine {
  0%      { transform: translateX(-100%); }
  60%, 100% { transform: translateX(200%); }
}

/* ---------- Hero badge gentle pulse on hover ---------- */
.hero-badge { transition: transform 0.3s ease, background 0.3s ease; }
.hero-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,0.18); }

/* ---------- Back-to-top floating button ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 89, 145, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease;
  z-index: 99;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--mint);
  transform: translateY(-4px) scale(1);
}
body.rtl .back-to-top { right: auto; left: 28px; }

@media (max-width: 479px) {
  .back-to-top { width: 42px; height: 42px; bottom: 20px; right: 20px; }
  body.rtl .back-to-top { right: auto; left: 20px; }
}

/* ---------- Smooth scroll padding for sticky header ---------- */
html { scroll-padding-top: 90px; }

/* =========================================================
   Reduced motion — cancel all motion for users who prefer it
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-logo { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .grid.reveal > *,
  .portfolio-grid.reveal > *,
  .stat-row.reveal > *,
  .hero-eyebrow, .hero .hero-logo, .hero h1,
  .hero .tagline, .hero .tagline-ar,
  .hero-badges, .hero-cta-row,
  .page-banner .breadcrumbs, .page-banner .ar-title,
  .page-banner .en-title, .page-banner .lead {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress { display: none; }
}
