:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #c8862a;
  --accent-light: #e8a84a;
  --light: #f7f4ef;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #5f6368;
  --border: #e0d9ce;
  --section-alt: #f0ece4;
  --card-shadow: 0 4px 24px rgba(26,58,92,0.10);
  --card-hover-shadow: 0 12px 40px rgba(26,58,92,0.18);
  --nav-h: 88px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
body[dir="rtl"] { font-family: 'Cairo', sans-serif; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }
h1, h2, h3, .section-subtitle, #hero p { text-wrap: balance; }
/* Keep figures like 18+ / 6,000+ reading left-to-right in Arabic too */
.stat-item .num, .impact-card .ic-num, .about-badge .num { direction: ltr; unicode-bidi: isolate; }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3, body[dir="rtl"] h4 { font-family: 'Cairo', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 16px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 2000; transition: top .2s; }
.skip-link:focus { top: 12px; }
/* Visually hidden without any offset (a negative left offset makes RTL pages scroll sideways) */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(15,37,64,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,134,42,0.2);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; max-width: 1180px; margin: 0 auto; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-logo img { height: 66px; width: auto; border-radius: 8px; background: #fff; padding: 3px; transition: height .3s; }
#navbar.scrolled .nav-logo img { height: 54px; }
.nav-logo-text { color: white; }
.nav-logo-text strong { font-family: 'Playfair Display', serif; font-size: 1.45rem; display: block; line-height: 1.1; }
.nav-logo-text span { font-size: 0.72rem; letter-spacing: 2px; opacity: 0.75; text-transform: uppercase; }
body[dir="rtl"] .nav-logo-text span { letter-spacing: 0; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.5px; transition: color .2s; position: relative; padding-bottom: 3px; }
.nav-links a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:1px; background:var(--accent); transition:width .3s; }
body[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
.nav-links a:hover { color: var(--accent-light); }
.nav-links a:hover::after { width: 100%; }
.nav-btn { background: var(--accent); color: white !important; padding: 8px 20px !important; border-radius: 4px; transition: background .2s !important; }
.nav-btn:hover { background: var(--accent-light) !important; }
.nav-btn::after { display: none !important; }
.lang-switch { background: rgba(255,255,255,0.1); color: white; padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; transition: all .2s; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; gap: 6px; font-family: inherit; }
.lang-switch:hover { background: rgba(255,255,255,0.18); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: white; transition: all .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: var(--primary-dark); padding: 12px 24px 20px; gap: 4px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-menu a { color: rgba(255,255,255,0.85); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.95rem; }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #234f7a 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 100px;
}
#hero.has-image {
  background:
    linear-gradient(100deg, rgba(15,37,64,0.97) 0%, rgba(15,37,64,0.88) 45%, rgba(26,58,92,0.55) 100%),
    var(--hero-img) center / cover no-repeat;
}
body[dir="rtl"] #hero.has-image {
  background:
    linear-gradient(260deg, rgba(15,37,64,0.97) 0%, rgba(15,37,64,0.88) 45%, rgba(26,58,92,0.55) 100%),
    var(--hero-img) center / cover no-repeat;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; text-align: center; }
.hero-content .hero-stats, .hero-content .hero-btns { justify-content: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,134,42,0.15); border: 1px solid rgba(200,134,42,0.3); color: var(--accent-light); padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
body[dir="rtl"] .hero-eyebrow { letter-spacing: 0; }
#hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: white; line-height: 1.15; font-weight: 700; margin-bottom: 24px; }
body[dir="rtl"] #hero h1 { line-height: 1.4; }
#hero h1 em { color: var(--accent-light); font-style: normal; }
#hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.8; margin: 0 auto 36px; max-width: 640px; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.stat-item .num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--accent-light); line-height: 1; }
body[dir="rtl"] .stat-item .num { font-family: 'Cairo', sans-serif; }
.stat-item .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
body[dir="rtl"] .stat-item .lbl { letter-spacing: 0; font-size: 0.85rem; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: white; padding: 14px 32px; border-radius: 4px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; transition: all .25s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,134,42,0.35); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.45); color: white; padding: 14px 32px; border-radius: 4px; font-weight: 500; font-size: 0.9rem; transition: all .25s; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.45); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
.hero-scroll i { font-size: 1.2rem; }

/* ── SECTION COMMONS ── */
section { padding: 96px 0; }
.section-alt { background: var(--section-alt); }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
body[dir="rtl"] .section-label { letter-spacing: 0; font-size: 0.9rem; }
.section-label::before { content:''; width:24px; height:2px; background:var(--accent); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--primary); line-height: 1.25; margin-bottom: 16px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; max-width: 600px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── CARD ROWS: fixed columns per screen size; an incomplete last row is centred ── */
.impact-grid, .projects-grid, .team-grid, .news-grid, .testimonials-grid { --gap: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.impact-grid > *, .projects-grid > *, .team-grid > *, .news-grid > *, .testimonials-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.impact-grid { --gap: 32px; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.about-text { align-self: center; }
.about-img-wrap { position: relative; min-height: 420px; }
/* The photo fills the full height of the text column so no empty space is left beside it */
.about-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; box-shadow: var(--card-shadow); display: block; object-fit: cover; }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--accent); color: white; padding: 20px 24px; border-radius: 8px; text-align: center; box-shadow: 0 8px 24px rgba(200,134,42,0.3); }
body[dir="rtl"] .about-badge { right: auto; left: -20px; }
.about-badge .num { font-family: 'Playfair Display',serif; font-size: 2.2rem; font-weight: 700; display: block; line-height: 1; }
body[dir="rtl"] .about-badge .num { font-family: 'Cairo',sans-serif; }
.about-badge .txt { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.9; margin-top: 4px; display: block; }
.about-text p { color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.value-chip { display: flex; align-items: center; gap: 8px; background: var(--light); border: 1px solid var(--border); padding: 10px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; color: var(--primary); }
.value-chip i { color: var(--accent); font-size: 0.85rem; }
#about-vm:empty { display: none; }
#about-vm { margin-top: 72px; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm-card { background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 32px; position: relative; overflow: hidden; }
.vm-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.vm-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.1rem; }
.vm-card h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 10px; }
.vm-card p { color: var(--text-light); line-height: 1.8; }
.ceo-quote { margin: 40px auto 0; max-width: 860px; text-align: center; padding: 8px 24px; }
.ceo-quote blockquote { font-family: 'Playfair Display', serif; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--primary); line-height: 1.6; font-style: italic; position: relative; }
body[dir="rtl"] .ceo-quote blockquote { font-family: 'Cairo', sans-serif; font-style: normal; font-weight: 600; }
.ceo-quote blockquote::before { content: '\201C'; display: block; font-size: 4rem; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.ceo-quote figcaption { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.ceo-quote figcaption strong { color: var(--primary); }
.ceo-quote figcaption span { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ── IMPACT NUMBERS ── */
#impact { background: var(--primary); color: white; padding: 72px 0; }
.impact-grid { --cols: 5; --gap: 32px; }
.impact-card { text-align: center; }
.impact-card .ic-num { font-family: 'Playfair Display',serif; font-size: 3rem; font-weight: 700; color: var(--accent-light); line-height: 1; }
body[dir="rtl"] .impact-card .ic-num { font-family: 'Cairo',sans-serif; }
.impact-card .ic-label { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: 8px; line-height: 1.5; }

/* ── PILLARS ── */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 36px 28px; transition: all .3s; position: relative; overflow: hidden; }
.pillar-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background:var(--accent); opacity:0; transition:opacity .3s; }
body[dir="rtl"] .pillar-card::before { left: auto; right: 0; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); border-color: var(--accent); }
.pillar-card:hover::before { opacity: 1; }
.pillar-icon { width: 56px; height: 56px; background: var(--light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); font-size: 1.4rem; }
.pillar-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 12px; }
.pillar-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* ── PROJECTS ── */
.projects-grid { --cols: 3; }
.project-card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.project-thumb { height: 210px; background: var(--section-alt); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb-placeholder { position: relative; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2d5f8a 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px 20px 20px; text-align: center; overflow: hidden; }
.project-thumb-placeholder::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.project-thumb-placeholder i { position: relative; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(232,168,74,0.15); border: 1px solid rgba(232,168,74,0.35); color: var(--accent-light); font-size: 1.4rem; }
.project-thumb-placeholder span { position: relative; color: #fff; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; line-height: 1.3; }
body[dir="rtl"] .project-thumb-placeholder span { font-family: 'Cairo', sans-serif; }
.news-thumb .project-thumb-placeholder { padding-top: 20px; }
.news-thumb .project-thumb-placeholder span { font-size: 1.05rem; letter-spacing: 1px; }
.project-tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
body[dir="rtl"] .project-tag { left: auto; right: 12px; letter-spacing: 0; }
.project-body { padding: 24px; }
.project-partner { font-size: 0.78rem; color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.project-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.project-body p { color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.gallery-item { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--section-alt); font: inherit; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(15,37,64,0.85)); color: #fff; font-size: 0.82rem; text-align: start; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(8,20,36,0.94); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.9rem; padding: 0 20px; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── TEAM ── */
.team-grid { --cols: 4; }
.team-card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); text-align: center; transition: all .3s; display: flex; flex-direction: column; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
/* Same portrait frame for every photo, whatever its original size */
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--section-alt); }
.team-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; transition: transform .4s; }
.team-info { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; }
.team-photo-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--border); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-info { padding: 18px 14px 20px; }
.team-info h3 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
body[dir="rtl"] .team-info h3 { font-family: 'Cairo', sans-serif; }
.team-info span { font-size: 0.8rem; color: var(--accent); font-weight: 500; }

/* ── NEWS ── */
.news-grid { --cols: 3; }
.news-card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.news-card:hover { box-shadow: var(--card-hover-shadow); transform: translateY(-3px); }
.news-thumb { height: 190px; background: var(--section-alt); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a3a5c 0%, #2d5f8a 100%); display: flex; align-items: center; justify-content: center; }
.news-thumb-placeholder i { font-size: 2.5rem; color: rgba(255,255,255,0.2); }
.news-body { padding: 22px; }
.news-date { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.news-body h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.news-body p { color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

/* ── PARTNERS ── */
.partners-text { max-width: 760px; margin: 0 auto 48px; text-align: center; color: var(--text-light); line-height: 1.9; }
.partners-text:empty { display: none; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.partner-chip { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 14px 26px; font-weight: 600; font-size: 0.9rem; color: var(--primary); transition: all .25s; display: flex; align-items: center; justify-content: center; min-height: 56px; }
.partner-chip.has-logo { padding: 10px 18px; min-width: 140px; height: 76px; }
.partner-chip.has-logo img { max-height: 54px; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: all .25s; }
.partner-chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--card-shadow); }
.partner-chip:hover img { filter: none; opacity: 1; }

/* ── TESTIMONIALS ── */
.testimonials-grid { --cols: 3; }
.testimonial-card { background: white; border-radius: 10px; padding: 58px 32px 30px; border: 1px solid var(--border); position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-card::before { content:'\201C'; font-family: 'Playfair Display',serif; font-size: 4.2rem; color: var(--accent); opacity: 0.35; position: absolute; top: 10px; left: 26px; line-height: 1; }
body[dir="rtl"] .testimonial-card::before { left: auto; right: 26px; content: '\201D'; }
.testimonial-card blockquote { color: var(--text-light); font-size: 0.92rem; line-height: 1.8; font-style: italic; margin-bottom: 20px; position: relative; z-index: 1; }
body[dir="rtl"] .testimonial-card blockquote { font-style: normal; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.author-role { font-size: 0.78rem; color: var(--text-light); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.contact-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent-light); font-size: 1rem; flex-shrink: 0; }
.contact-detail h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
body[dir="rtl"] .contact-detail h3 { letter-spacing: 0; font-family: 'Cairo', sans-serif; }
.contact-detail p { color: var(--primary); font-weight: 500; line-height: 1.6; }
.contact-detail a:hover { color: var(--accent); }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.85rem; color: var(--accent); }
.contact-form { background: var(--light); border-radius: 10px; padding: 36px; }
.contact-form h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group label .req { color: #c0392b; margin-inline-start: 2px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 0.9rem; color: var(--text); background: white; transition: border-color .2s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 14px 32px; border-radius: 6px; font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all .25s; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-submit:hover { background: var(--accent); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 6px; font-size: 0.9rem; font-weight: 500; }
.form-status.ok { background: #e6f4ea; color: #1e7e34; }
.form-status.err { background: #fdecea; color: #b71c1c; }

/* ── WHATSAPP ── */
.whatsapp-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 900; transition: transform .2s; }
body[dir="rtl"] .whatsapp-float { right: auto; left: 22px; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ── FOOTER ── */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.72); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 84px; width: auto; border-radius: 8px; margin-bottom: 18px; background: #fff; padding: 4px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; max-width: 300px; }
.footer-col h3 { color: white; font-family: 'DM Sans',sans-serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
body[dir="rtl"] .footer-col h3 { font-family: 'Cairo',sans-serif; letter-spacing: 0; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: all .2s; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: white; }
.dev-credit { font-size: 0.78rem; color: rgba(255,255,255,0.5); padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.dev-credit a { color: var(--accent-light); }
.dev-credit a:hover { text-decoration: underline; }

/* ── 404 ── */
.notfound { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 24px; }
.notfound img { height: 96px; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.notfound h1 { font-size: 4rem; color: var(--accent-light); }
.notfound p { margin: 8px 0 28px; opacity: .8; line-height: 1.8; }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.82rem; }
  .projects-grid, .news-grid, .testimonials-grid { --cols: 2; }
  .impact-grid { --cols: 3; }
  .team-grid { --gap: 18px; }
}
@media (max-width: 960px) {
  :root { --nav-h: 76px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo img, #navbar.scrolled .nav-logo img { height: 56px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { min-height: 0; }
  .about-img-wrap img { position: static; height: auto; aspect-ratio: 16 / 10; }
  .about-badge { bottom: 12px; right: 12px; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-auto-rows: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .nav-inner { padding: 8px 16px; }
  .nav-logo-text strong { font-size: 1.2rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .stat-item .num { font-size: 2rem; }
  .pillars-grid, .vm-grid { grid-template-columns: 1fr; }
  .projects-grid, .news-grid, .testimonials-grid { --cols: 1; }
  .team-grid { --cols: 2; --gap: 14px; }
  .impact-grid { --cols: 2; --gap: 16px; row-gap: 28px; }
  .impact-card .ic-num { font-size: 2.3rem; }
  .team-info { padding: 12px 8px 14px; }
  .team-info h3 { font-size: .92rem; }
  .team-info span { font-size: .74rem; }
  .pillar-card { padding: 28px 22px; }
  .testimonial-card { padding: 26px 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { gap: 10px; }
  .value-chip { padding: 10px; font-size: .8rem; }
  .contact-form { padding: 24px; }
  body[dir="rtl"] .about-badge { left: 12px; }
  .lightbox { padding: 60px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-caption { bottom: 74px; }
}

/* ── ANIMATIONS ── */
/* Only elements below the fold get .pending (added by main.js), so nothing visible ever flashes */
.fade-in { transition: opacity .6s ease, transform .6s ease; }
.fade-in.pending { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, .fade-in.pending { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}
