/* KMM Website — Style System v2 */
/* Navy #1A2E52 · Orange #E85D04 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cairo:wght@300;400;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:     #1A2E52;
  --navy-d:   #0D1E3A;
  --navy-l:   #243B6E;
  --orange:   #E85D04;
  --orange-d: #C44D00;
  --white:    #FFFFFF;
  --gray:     #EFF3FA;
  --mist:     #EFF3FA;
  --border:   #E2E8F0;
  --steel:    #8A9BB4;
  --dark:     #111827;
  --muted:    #6B7280;
  --shadow:   0 2px 12px rgba(13,30,58,0.07);
  --shadow-lg:0 12px 48px rgba(13,30,58,0.14);
  --radius:   4px;
  --radius-lg:10px;
  --font:     'Inter', -apple-system, sans-serif;
  --font-ar:  'Cairo', sans-serif;
}

html { scroll-behavior: smooth; }
[lang="ar"] { --font: var(--font-ar); }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.15s;
}
body.lang-switching { opacity: 0.5; }

/* ── LANGUAGE SYSTEM ── */
.lang-ar { display: none; }
[lang="ar"] .lang-ar { display: inline; }
[lang="ar"] .lang-en { display: none; }
.lang-ar-block { display: none; }
[lang="ar"] .lang-ar-block { display: block; }
[lang="ar"] .lang-en-block { display: none; }
.lang-ar-flex { display: none; }
[lang="ar"] .lang-ar-flex { display: flex; }
[lang="ar"] .lang-en-flex { display: none; }

/* ── ANIMATIONS ── */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
[data-animate="fade"] { transform: none; }
[data-animate].in { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* ── LAYOUT ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-primary  { background: var(--orange); color: white; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.btn-outline-white:hover { background: white; color: var(--navy); border-color: white; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.navbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nb-logo {
  font-size: 21px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 3px;
}
.nb-sep { color: rgba(255,255,255,0.15); font-size: 13px; }
.nb-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  letter-spacing: 0.2px;
}
.navbar-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  margin: 0 auto;
}
.navbar-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.15s;
}
.navbar-links a:hover,
.navbar-links a.active { color: white; }
.nav-cta {
  background: var(--orange) !important;
  color: white !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-d) !important; color: white !important; }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  font-family: var(--font);
  line-height: 1;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

/* ── SECTION SYSTEM ── */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.section-title .accent { color: var(--orange); }
.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-top: 12px;
}
[lang="ar"] .section-title { letter-spacing: 0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 148px 0 84px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(232,93,4,0.05);
  pointer-events: none;
}
.page-hero .section-tag { color: var(--orange); }
.page-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.page-hero h1 .accent { color: var(--orange); }
.page-hero .ph-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  line-height: 1.7;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-d);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 3px;
  margin-bottom: 10px;
  display: block;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 230px;
  margin-top: 6px;
}
.footer-col h5 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--orange); }
.fci {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  align-items: baseline;
}
.fci-label {
  color: var(--orange);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 52px;
  flex-shrink: 0;
}
.fci-val { color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ── WHATSAPP FAB ── */
.wa-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  background: #25D366;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.32);
  z-index: 99;
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 22px; height: 22px; fill: white; }
[lang="ar"] .wa-fab { right: auto; left: 28px; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--orange-d); }

/* ── FACILITY TYPES ── */
.sites-section {
  background: var(--navy-d);
  padding-top: 100px;
  padding-bottom: 0;
}
.sites-section .container { padding-bottom: 52px; }
.sites-header { margin-bottom: 52px; }
.sites-header .section-tag { color: var(--orange); }
.sites-header .section-title { color: white; }

/* Alternating image rows */
.sites-rows { border-top: 1px solid rgba(255,255,255,0.06); }
.facility-row {
  display: grid;
  height: 260px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.facility-row.img-left  { grid-template-columns: 60% 40%; }
.facility-row.img-right { grid-template-columns: 40% 60%; }

.fr-img {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.fr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.facility-row:hover .fr-img img { transform: scale(1.04); }
.fr-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(13,30,58,0.35));
  pointer-events: none;
}
.facility-row.img-right .fr-img-overlay {
  background: linear-gradient(to left, transparent 60%, rgba(13,30,58,0.35));
}

.fr-text {
  padding: 32px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
}
.facility-row.img-left  .fr-text { border-left:  3px solid var(--orange); }
.facility-row.img-right .fr-text { border-right: 3px solid var(--orange); }

.fr-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.fr-title-en {
  font-size: 22px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 4px;
}
.fr-title-ar {
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  direction: rtl;
  text-align: right;
  margin-bottom: 14px;
}
.fr-rule {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 12px;
}
.fr-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}
[lang="ar"] .fr-desc   { display: none; }
.fr-desc-ar {
  font-family: var(--font-ar);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  display: none;
}
[lang="ar"] .fr-desc-ar { display: block; }

/* ── VISION 2030 BAND ── */
.v2030-band {
  background: #F2FAF5;
  border-top: 2px solid #006C35;
  border-bottom: 1px solid rgba(0,108,53,0.12);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.v2030-band::before {
  content: '';
  position: absolute;
  right: -40px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(0,108,53,0.03);
  pointer-events: none;
}
.v2030-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}
.v2030-logo {
  height: 48px;
  width: auto;
  mix-blend-mode: multiply;
  flex-shrink: 0;
  opacity: 0.9;
}
.v2030-emblem {
  height: 52px;
  width: auto;
  mix-blend-mode: multiply;
  opacity: 0.18;
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
}
.v2030-sep {
  width: 1px;
  height: 44px;
  background: rgba(0,108,53,0.2);
  flex-shrink: 0;
}
.v2030-text {
  flex: 1;
}
.v2030-text .v2030-en {
  font-size: 13px;
  color: #1B4D2E;
  line-height: 1.65;
  max-width: 680px;
}
.v2030-text .v2030-ar {
  font-family: var(--font-ar);
  font-size: 13px;
  color: #1B4D2E;
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  margin-top: 3px;
  display: none;
}
[lang="ar"] .v2030-text .v2030-en { display: none; }
[lang="ar"] .v2030-text .v2030-ar { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facility-row.img-left,
  .facility-row.img-right { grid-template-columns: 1fr; height: auto; }
  .facility-row.img-right { direction: ltr; }
  .fr-img { height: 220px; order: -1; }
  .facility-row.img-left  .fr-text { border-left: none;  border-top: 3px solid var(--orange); }
  .facility-row.img-right .fr-text { border-right: none; border-top: 3px solid var(--orange); }
  .v2030-inner { flex-wrap: wrap; gap: 20px; }
  .v2030-emblem { display: none; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 34px; }
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fr-img { height: 180px; }
  .fr-text { padding: 24px 28px; }
  .fr-title-en { font-size: 18px; }
}
