/* ============================================
   INSTITUTION ALBITA PRIVÉE 2 — PREMIUM THEME
   ============================================ */

:root{
  /* Palette inspirée du logo */
  --navy:        #0a1f5c;
  --royal:       #0033a0;
  --royal-2:     #1e4bc4;
  --gold:        #f4c430;
  --gold-2:      #ffd54a;
  --magenta:     #e6007e;
  --orange:      #ff6a00;
  --cream:       #faf7f0;
  --ivory:       #fffdf7;
  --sand:        #f5efe1;
  --ink:         #0c1326;
  --muted:       #5a6783;
  --line:        #e7e2d4;
  --white:       #ffffff;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 6px rgba(10,31,92,.06);
  --shadow:      0 10px 30px rgba(10,31,92,.10);
  --shadow-lg:   0 30px 60px rgba(10,31,92,.18);
  --max:         1240px;
  --ease:        cubic-bezier(.22,.8,.25,1);
  --font-sans:   'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ar:     'Noto Naskh Arabic', 'Amiri', serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-sans);
  color:var(--ink);
  background:var(--ivory);
  line-height:1.6;
  font-size:16px;
  overflow-x:hidden;
}
body.rtl{font-family:var(--font-ar), var(--font-sans); direction:rtl}
body.rtl .h2, body.rtl .hero-title, body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5{font-family:var(--font-ar)}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none;transition:color .2s var(--ease)}
button{font:inherit;cursor:pointer;border:0;background:transparent;color:inherit}
ul,ol{list-style:none}
.container{max-width:var(--max);margin:0 auto;padding:0 28px}
.ic{width:18px;height:18px;flex:0 0 auto}

/* ============ Typography ============ */
.h2{
  font-family:var(--font-serif);
  font-weight:700;
  font-size:clamp(1.9rem, 3.2vw, 2.9rem);
  line-height:1.15;
  letter-spacing:-.01em;
  color:var(--navy);
  margin-bottom:18px;
}
.h2.light{color:#fff}
.eyebrow{
  display:inline-block;
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--magenta);
  margin-bottom:14px;
  padding:6px 14px;
  border-radius:100px;
  background:rgba(230,0,126,.08);
}
.eyebrow.dark{color:var(--royal); background:rgba(0,51,160,.08)}
.eyebrow.light{color:var(--gold); background:rgba(244,196,48,.12)}
.text-gold{color:var(--gold); font-style:italic; font-family:var(--font-serif)}
.section-lead{color:var(--muted);font-size:1.08rem;max-width:640px}
.section-lead.light{color:rgba(255,255,255,.82)}
.section-head{max-width:780px;margin-bottom:56px}
.section-head.center{margin-inline:auto;text-align:center}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 24px;border-radius:100px;
  font-weight:600;font-size:.95rem;letter-spacing:.01em;
  transition:all .25s var(--ease);
  border:1.5px solid transparent;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--royal) 0%,var(--royal-2) 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(0,51,160,.28);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(0,51,160,.36)}
.btn-ghost{color:#fff;border-color:rgba(255,255,255,.45);backdrop-filter:blur(6px)}
.btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
.btn-outline{border-color:var(--navy);color:var(--navy);background:#fff}
.btn-outline:hover{background:var(--navy);color:#fff}
.btn-outline-light{border-color:rgba(255,255,255,.4);color:#fff}
.btn-outline-light:hover{background:#fff;color:var(--navy)}
.btn-whatsapp{
  background:#25d366;color:#fff;
  box-shadow:0 10px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:hover{transform:translateY(-2px);background:#1ebe58}
.btn-parent{padding:10px 18px;font-size:.88rem}
.link-arrow{color:var(--royal);font-weight:600;display:inline-flex;gap:6px;align-items:center;margin-top:10px}
.link-arrow:hover{color:var(--magenta);gap:10px}

/* ============ Top bar ============ */
.topbar{
  background:var(--navy);color:#fff;font-size:.82rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;min-height:40px;gap:20px;flex-wrap:wrap}
.topbar-left{display:flex;gap:24px;flex-wrap:wrap;align-items:center;color:rgba(255,255,255,.85)}
.topbar-item{display:inline-flex;gap:8px;align-items:center}
.topbar-item .ic{width:14px;height:14px;color:var(--gold)}
.lang-switcher{display:flex;gap:2px;background:rgba(255,255,255,.08);border-radius:100px;padding:3px}
.lang-btn{
  padding:8px 14px;border-radius:100px;color:rgba(255,255,255,.82);
  font-size:.90rem;font-weight:800;letter-spacing:.06em;min-width:44px;
  transition:all .2s var(--ease);
}
.lang-btn:hover{color:#fff}
.lang-btn.active{background:var(--gold);color:var(--navy)}

/* Header language switcher (bigger + visible) */
.header .lang-switcher{
  background:rgba(10,31,92,.08);
  border:1px solid rgba(0,51,160,.14);
  padding:6px;
  gap:6px;
}
.header .lang-btn{
  color:rgba(12,19,38,.78);
  font-weight:900;
}
.header .lang-btn:hover{color:var(--royal)}
.header .lang-btn.active{
  background:linear-gradient(135deg,var(--royal) 0%,var(--royal-2) 100%);
  color:#fff;
  box-shadow:0 10px 24px rgba(0,51,160,.24);
}

/* ============ Header ============ */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,253,247,.94);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid rgba(0,51,160,.06);
  transition:box-shadow .3s var(--ease);
}
.header.scrolled{box-shadow:var(--shadow-sm)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:84px}
.brand{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.brand-logo{width:52px;height:52px;border-radius:50%;object-fit:cover;box-shadow:0 4px 14px rgba(0,51,160,.14)}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-name{font-family:var(--font-serif);font-weight:700;font-size:1.28rem;color:var(--navy)}
.brand-sub{font-size:.80rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:600}
.nav{display:flex;gap:28px;flex:1;justify-content:center}
.nav a{
  font-size:.92rem;font-weight:500;color:var(--ink);
  position:relative;padding:8px 2px;
}
.nav a::after{
  content:"";position:absolute;left:50%;bottom:0;width:0;height:2px;
  background:linear-gradient(90deg,var(--royal),var(--magenta));
  transition:all .3s var(--ease);transform:translateX(-50%);
}
.nav a:hover{color:var(--royal)}
.nav a:hover::after, .nav a.active::after{width:22px}
.header-cta{display:flex;align-items:center;gap:12px}
.burger{display:none;flex-direction:column;gap:5px;padding:10px}
.burger span{width:26px;height:2px;background:var(--navy);border-radius:2px;transition:all .25s var(--ease)}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ============ Hero ============ */
.hero{
  position:relative;min-height:92vh;display:flex;align-items:center;
  color:#fff;overflow:hidden;isolation:isolate;
}
.hero-media{position:absolute;inset:0;z-index:-1}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center;animation:slowzoom 20s ease-in-out infinite alternate}
.hero-overlay{
  position:absolute;inset:0;
  background:
    radial-gradient(900px 560px at 8% 32%, rgba(0,51,160,.38), transparent 62%),
    linear-gradient(180deg, rgba(10,31,92,.10) 0%, rgba(10,31,92,.45) 45%, rgba(10,31,92,.78) 100%);
}
@keyframes slowzoom{from{transform:scale(1.05)}to{transform:scale(1.15)}}
.hero-content{padding:120px 28px 170px;max-width:1100px;position:relative;z-index:1}
.hero-content .eyebrow{background:rgba(244,196,48,.18);color:var(--gold)}
.hero-title{
  font-family:var(--font-serif);font-weight:700;
  font-size:clamp(2.4rem, 5.6vw, 4.8rem);
  line-height:1.06;letter-spacing:-.02em;
  margin:18px 0 26px;
}
.hero-title span{display:block}
.hero-sub{font-size:1.12rem;max-width:640px;color:rgba(255,255,255,.88);margin-bottom:36px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:60px}
.hero-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
  padding-top:28px;border-top:1px solid rgba(255,255,255,.15);max-width:820px;
}
.hero-stats div{display:flex;flex-direction:column;gap:4px}
.hero-stats strong{
  font-family:var(--font-serif);font-size:clamp(1.6rem,2.6vw,2.2rem);
  font-weight:700;color:var(--gold);
}
.hero-stats span{font-size:.82rem;color:rgba(255,255,255,.75);letter-spacing:.02em}
.scroll-ind{
  position:absolute;bottom:28px;left:50%;transform:translateX(-50%);
  width:22px;height:36px;border:1.5px solid rgba(255,255,255,.5);border-radius:100px;
  display:flex;justify-content:center;padding-top:6px;z-index:2;
}
.scroll-ind span{width:3px;height:7px;border-radius:2px;background:#fff;animation:sd 1.6s infinite}
@keyframes sd{0%{transform:translateY(0);opacity:1}80%{transform:translateY(10px);opacity:0}100%{opacity:0}}

/* ============ Hero Scene (cinematic overlay) ============ */
.hero-scene{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}

/* Sun rays */
.hero-scene .sunrays{
  position:absolute;top:-220px;right:-180px;width:640px;height:640px;
  mix-blend-mode:screen;opacity:.7;filter:blur(.5px);
  animation:rayspin 60s linear infinite;
}
.hero-scene .sunrays .rays{transform-origin:400px 400px;animation:raysoft 8s ease-in-out infinite alternate}
@keyframes rayspin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes raysoft{from{opacity:.35}to{opacity:.75}}

/* Lens flare */
.hero-scene .flare{
  position:absolute;top:8%;right:12%;width:360px;height:360px;
  background:radial-gradient(circle, rgba(255,240,190,.55) 0%, rgba(255,210,120,.18) 30%, transparent 65%);
  filter:blur(8px);mix-blend-mode:screen;animation:flarepulse 5s ease-in-out infinite alternate;
}
@keyframes flarepulse{from{opacity:.6;transform:scale(.96)}to{opacity:1;transform:scale(1.06)}}

/* Gold particles */
.hero-scene .particles{position:absolute;inset:0}
.hero-scene .particles span{
  position:absolute;bottom:-20px;width:6px;height:6px;border-radius:50%;
  background:radial-gradient(circle, #FFE9A8 0%, #F4C430 60%, transparent 100%);
  box-shadow:0 0 8px rgba(255,213,80,.8);
  animation:floatup linear infinite;
  opacity:.8;
}
.hero-scene .particles span:nth-child(1){left:8%;animation-duration:11s;animation-delay:0s;transform:scale(.9)}
.hero-scene .particles span:nth-child(2){left:14%;animation-duration:14s;animation-delay:2s;transform:scale(.6)}
.hero-scene .particles span:nth-child(3){left:22%;animation-duration:10s;animation-delay:4s;transform:scale(1.1)}
.hero-scene .particles span:nth-child(4){left:30%;animation-duration:13s;animation-delay:1s;transform:scale(.7)}
.hero-scene .particles span:nth-child(5){left:38%;animation-duration:16s;animation-delay:3s;transform:scale(1)}
.hero-scene .particles span:nth-child(6){left:46%;animation-duration:12s;animation-delay:5s;transform:scale(.8)}
.hero-scene .particles span:nth-child(7){left:54%;animation-duration:15s;animation-delay:0s;transform:scale(1.2)}
.hero-scene .particles span:nth-child(8){left:62%;animation-duration:11s;animation-delay:2.5s;transform:scale(.6)}
.hero-scene .particles span:nth-child(9){left:70%;animation-duration:14s;animation-delay:4.5s;transform:scale(1)}
.hero-scene .particles span:nth-child(10){left:78%;animation-duration:13s;animation-delay:1.5s;transform:scale(.9)}
.hero-scene .particles span:nth-child(11){left:86%;animation-duration:12s;animation-delay:3.5s;transform:scale(.7)}
.hero-scene .particles span:nth-child(12){left:92%;animation-duration:15s;animation-delay:0s;transform:scale(1.1)}
.hero-scene .particles span:nth-child(13){left:18%;animation-duration:17s;animation-delay:6s;transform:scale(.5)}
.hero-scene .particles span:nth-child(14){left:50%;animation-duration:18s;animation-delay:7s;transform:scale(1.3)}
.hero-scene .particles span:nth-child(15){left:74%;animation-duration:16s;animation-delay:8s;transform:scale(.75)}
@keyframes floatup{
  0%{transform:translateY(0) translateX(0);opacity:0}
  10%{opacity:1}
  90%{opacity:.9}
  100%{transform:translateY(-110vh) translateX(40px);opacity:0}
}

/* Road layer — bus + children */
.hero-scene .road-layer{
  position:absolute;left:0;right:0;bottom:0;height:140px;
}

.hero-scene .kid{
  position:absolute;bottom:0;width:64px;height:112px;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,.28));
  animation:kidwalk 2.4s ease-in-out infinite;
}
.hero-scene .kid svg{width:100%;height:100%;display:block}
.hero-scene .kid-1{left:18%;animation-delay:0s}
.hero-scene .kid-2{left:26%;width:58px;height:102px;animation-delay:.4s}
.hero-scene .kid-3{left:32%;width:62px;height:108px;animation-delay:.8s}
@keyframes kidwalk{
  0%,100%{transform:translateY(0) rotate(-1deg)}
  50%{transform:translateY(-6px) rotate(1deg)}
}

.hero-scene .bus{
  position:absolute;bottom:6px;left:0;width:260px;height:114px;
  filter:drop-shadow(0 14px 14px rgba(0,0,0,.35));
  animation:busdrive 22s cubic-bezier(.4,.1,.5,1) infinite;
}
.hero-scene .bus svg{width:100%;height:100%;display:block;animation:busbounce .6s ease-in-out infinite}
@keyframes busdrive{
  0%{left:-30%;opacity:0}
  8%{opacity:1}
  55%{left:62%;opacity:1}
  70%{left:108%;opacity:0}
  100%{left:108%;opacity:0}
}
@keyframes busbounce{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-1.5px)}
}

/* RTL: flip bus & kids direction */
body.rtl .hero-scene .bus{animation-name:busdrive-rtl}
@keyframes busdrive-rtl{
  0%{left:100%;opacity:0;transform:scaleX(-1)}
  8%{opacity:1}
  55%{left:10%;opacity:1;transform:scaleX(-1)}
  70%{left:-30%;opacity:0;transform:scaleX(-1)}
  100%{left:-30%;opacity:0;transform:scaleX(-1)}
}
body.rtl .hero-scene .kid{transform-origin:center}
body.rtl .hero-scene .kid svg{transform:scaleX(-1)}
body.rtl .hero-scene .kid-1{left:auto;right:18%}
body.rtl .hero-scene .kid-2{left:auto;right:26%}
body.rtl .hero-scene .kid-3{left:auto;right:32%}
body.rtl .hero-scene .sunrays{right:auto;left:-180px}
body.rtl .hero-scene .flare{right:auto;left:12%}

/* Responsive scene */
@media (max-width: 900px){
  .hero-scene .bus{width:190px;height:84px}
  .hero-scene .kid{width:48px;height:86px}
  .hero-scene .kid-2{width:44px;height:78px}
  .hero-scene .kid-3{width:46px;height:82px}
  .hero-scene .sunrays{width:420px;height:420px;top:-140px;right:-120px}
  .hero-scene .flare{width:220px;height:220px}
}
@media (max-width: 640px){
  .hero-scene .road-layer{bottom:2%;height:100px}
  .hero-scene .bus{width:150px;height:66px}
  .hero-scene .kid{width:36px;height:64px}
  .hero-scene .kid-1{left:10%}
  .hero-scene .kid-2{left:18%;width:32px;height:58px}
  .hero-scene .kid-3{left:26%;width:34px;height:60px}
  .hero-scene .particles span{width:4px;height:4px}
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .hero-scene .sunrays, .hero-scene .sunrays .rays,
  .hero-scene .flare, .hero-scene .particles span,
  .hero-scene .kid, .hero-scene .bus, .hero-scene .bus svg{
    animation:none !important;
  }
  .hero-scene .bus{left:35%}
}

/* ============ Sections ============ */
.section{padding:90px 0;position:relative}
.section-dark{background:linear-gradient(180deg,var(--navy) 0%,#0a1946 100%);color:#fff}
.section-navy{background:radial-gradient(1000px 500px at 80% 10%, rgba(244,196,48,.12), transparent 60%),linear-gradient(180deg,var(--navy) 0%,#071537 100%);color:#fff}
.section-cream{background:var(--cream)}

/* ============ About ============ */
.about-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:80px;align-items:center}
.about-text p{color:var(--muted);margin-bottom:16px;font-size:1.03rem}
.about-features{margin-top:26px;display:grid;gap:12px}
.about-features li{display:flex;gap:12px;align-items:flex-start;color:var(--ink);font-weight:500}
.about-features .ic{width:22px;height:22px;padding:4px;background:rgba(0,51,160,.1);color:var(--royal);border-radius:50%}
.about-visual{position:relative;aspect-ratio:1/1.05}
.about-visual img{position:absolute;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);object-fit:cover}
.about-visual .v1{width:78%;height:78%;top:0;left:0}
.about-visual .v2{width:58%;height:52%;bottom:0;right:0;border:6px solid var(--ivory)}
.badge-years{
  position:absolute;left:65%;top:58%;transform:translate(-50%,-50%);
  background:var(--gold);color:var(--navy);
  border-radius:50%;width:138px;height:138px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;
  box-shadow:0 18px 40px rgba(244,196,48,.5);
  padding:14px;
}
.badge-years .big{font-family:var(--font-serif);font-size:2.2rem;font-weight:800;line-height:1}
.badge-years .small{font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;margin-top:4px}

/* ============ Cycles ============ */
.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}
.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.cards-4 .card-cycle img{height:220px}
.cards-4 .card-cycle .card-body{padding:24px 22px 28px}
.cards-4 .card-cycle h3{font-size:1.4rem}
.card-cycle{
  background:#fff;border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow);transition:all .4s var(--ease);
  color:var(--ink);
}
.card-cycle:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg)}
.card-cycle img{
  width:100%;
  height:280px;
  object-fit:contain;
  background:linear-gradient(180deg, rgba(10,31,92,.06), rgba(244,196,48,.06));
  transition:transform .6s var(--ease);
}
.card-cycle:hover img{transform:scale(1.06)}
.card-cycle .card-body{padding:32px 32px 36px}
.card-cycle .tag{
  display:inline-block;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;
  font-weight:700;color:var(--magenta);background:rgba(230,0,126,.08);
  padding:5px 12px;border-radius:100px;margin-bottom:12px;
}
.card-cycle h3{font-family:var(--font-serif);font-size:1.72rem;font-weight:700;color:var(--navy);margin-bottom:12px}
.card-cycle p{color:var(--muted);font-size:.96rem}
.card-cycle.featured{border:2px solid var(--gold);position:relative}
.card-cycle.featured::before{
  content:"★";position:absolute;top:16px;right:16px;z-index:2;
  background:var(--gold);color:var(--navy);width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-weight:700;
  box-shadow:0 6px 16px rgba(244,196,48,.5);
}

/* ============ Pillars ============ */
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.pillar{
  padding:36px 30px;border-radius:var(--radius-lg);
  background:#fff;border:1px solid var(--line);
  transition:all .3s var(--ease);position:relative;overflow:hidden;
}
.pillar::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(135deg,var(--royal),var(--magenta));
  opacity:0;transition:opacity .35s var(--ease);z-index:0;
}
.pillar>*{position:relative;z-index:1}
.pillar:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:transparent}
.pillar:hover::before{opacity:1}
.pillar:hover h4, .pillar:hover p{color:#fff}
.pillar:hover .pillar-ic{background:rgba(255,255,255,.18);color:#fff}
.pillar-ic{
  width:58px;height:58px;border-radius:16px;
  background:linear-gradient(135deg,rgba(0,51,160,.1),rgba(230,0,126,.1));
  color:var(--royal);display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;transition:all .3s var(--ease);
}
.pillar-ic svg{width:30px;height:30px}
.pillar h4{font-family:var(--font-serif);font-size:1.28rem;font-weight:700;color:var(--navy);margin-bottom:10px;transition:color .3s var(--ease)}
.pillar p{color:var(--muted);font-size:.94rem;transition:color .3s var(--ease)}

/* ============ Gallery ============ */
.gallery{
  display:grid;gap:14px;
  grid-template-columns:repeat(6,1fr);grid-template-rows:220px 220px;
}
.gallery .g{position:relative;overflow:hidden;border-radius:var(--radius-lg);box-shadow:var(--shadow);cursor:zoom-in}
.gallery .g img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:linear-gradient(180deg, rgba(10,31,92,.06), rgba(244,196,48,.06));
  transition:transform .6s var(--ease)
}
.gallery .g:hover img{transform:scale(1.08)}
.gallery .g figcaption{
  position:absolute;left:16px;bottom:16px;
  background:rgba(10,31,92,.88);color:#fff;
  font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;font-weight:600;
  padding:7px 14px;border-radius:100px;backdrop-filter:blur(8px);
}
.g1{grid-column:span 3;grid-row:span 2}
.g2{grid-column:span 3}
.g3{grid-column:span 2}
.g4{grid-column:span 2}
.g5{grid-column:span 2}

/* ============ Trips (sorties) ============ */
.trip-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}
.trip-grid .tg{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.trip-grid .tg img{
  width:100%;
  height:320px;
  object-fit:contain;
  background:linear-gradient(180deg, rgba(10,31,92,.06), rgba(244,196,48,.06));
}
.trip-grid .tg figcaption{
  position:absolute;
  left:16px;
  bottom:16px;
  background:rgba(10,31,92,.88);
  color:#fff;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:600;
  padding:7px 14px;
  border-radius:100px;
  backdrop-filter:blur(8px);
}

/* ============ Parallax / Life section ============ */
.parallax-section{
  background-size:cover;background-position:center;background-attachment:fixed;
  color:#fff;padding:110px 0;position:relative;
}
.parallax-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,31,92,.85),rgba(10,31,92,.75))}
.parallax-content{position:relative;text-align:center;max-width:820px;margin:0 auto}
.parallax-content .section-lead{margin:0 auto 40px}
.life-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:50px}
.life-stats div{display:flex;flex-direction:column;gap:4px;padding:24px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-lg);backdrop-filter:blur(6px)}
.life-stats strong{font-family:var(--font-serif);font-size:2.4rem;color:var(--gold);font-weight:700}
.life-stats span{color:rgba(255,255,255,.8);font-size:.88rem;letter-spacing:.04em}

/* ============ Testimonials ============ */
.testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:40px}
.testimonials blockquote{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:32px;box-shadow:var(--shadow-sm);position:relative;
}
.testimonials blockquote::before{
  content:"“";position:absolute;top:-6px;left:20px;
  font-family:var(--font-serif);font-size:5rem;color:var(--gold);font-weight:700;line-height:1;
}
.testimonials p{color:var(--ink);font-size:1.02rem;line-height:1.7;margin-top:18px;margin-bottom:22px}
.testimonials footer{display:flex;flex-direction:column;padding-top:16px;border-top:1px solid var(--line)}
.testimonials strong{color:var(--navy);font-size:.98rem}
.testimonials span{color:var(--muted);font-size:.82rem}

/* ============ Admissions ============ */
.admissions-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:start}
.steps{display:flex;flex-direction:column;gap:20px;margin:30px 0}
.steps li{display:flex;gap:20px;align-items:flex-start}
.steps span{
  flex:0 0 48px;width:48px;height:48px;border-radius:50%;
  background:var(--gold);color:var(--navy);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-serif);font-weight:700;font-size:1.3rem;
  box-shadow:0 8px 20px rgba(244,196,48,.35);
}
.steps h4{font-family:var(--font-serif);color:#fff;font-size:1.15rem;margin-bottom:4px}
.steps p{color:rgba(255,255,255,.78);font-size:.94rem}
.admissions-card{
  background:rgba(255,255,255,.06);backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-lg);
  padding:36px;position:relative;
}
.admissions-card h3{font-family:var(--font-serif);color:var(--gold);font-size:1.4rem;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.15)}
.admissions-card ul{display:flex;flex-direction:column;gap:10px}
.admissions-card li{color:rgba(255,255,255,.9);padding-left:22px;position:relative;font-size:.96rem}
.admissions-card li::before{content:"";position:absolute;left:0;top:10px;width:8px;height:8px;border-radius:50%;background:var(--magenta)}
.admissions-note{margin-top:22px;padding:14px 16px;background:rgba(244,196,48,.14);border-left:3px solid var(--gold);border-radius:8px;font-size:.88rem;color:rgba(255,255,255,.9)}

/* ============ Contact ============ */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start}
.contact-items{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:30px}
.ci{display:flex;gap:14px;align-items:flex-start}
.ci-ic{flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,rgba(0,51,160,.1),rgba(230,0,126,.1));display:flex;align-items:center;justify-content:center;color:var(--royal)}
.ci-ic svg{width:20px;height:20px}
.ci h5{font-size:.82rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:4px;font-weight:700}
.ci p{color:var(--ink);font-size:.95rem;line-height:1.55}
.ci a:hover{color:var(--royal)}
.socials{display:flex;gap:12px;margin-top:30px}
.socials a{
  width:44px;height:44px;border-radius:50%;background:var(--navy);color:#fff;
  display:flex;align-items:center;justify-content:center;transition:all .25s var(--ease);
}
.socials a:hover{background:var(--magenta);transform:translateY(-3px)}
.socials svg{width:18px;height:18px}
.map-wrap{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-lg);height:100%;min-height:480px;border:1px solid var(--line)}
.map-wrap iframe{width:100%;height:100%;border:0;min-height:480px}

/* ============ Footer ============ */
.footer{background:linear-gradient(180deg,var(--navy) 0%,#050e2c 100%);color:#fff;padding:70px 0 26px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:50px;padding-bottom:50px;border-bottom:1px solid rgba(255,255,255,.1)}
.footer-brand{margin-bottom:18px}
.footer-brand .brand-name, .footer-brand .brand-sub{color:#fff}
.footer-about{color:rgba(255,255,255,.68);font-size:.94rem;max-width:320px}
.footer h6{font-size:.82rem;text-transform:uppercase;letter-spacing:.14em;color:var(--gold);margin-bottom:18px;font-weight:700}
.footer ul{display:flex;flex-direction:column;gap:10px}
.footer ul a, .footer ul li{color:rgba(255,255,255,.72);font-size:.94rem}
.footer ul a:hover{color:var(--gold)}
.footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:24px;font-size:.82rem;color:rgba(255,255,255,.5)}
.footer-credit{font-style:italic}

/* ============ Modal ============ */
.modal{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(10,31,92,.72);backdrop-filter:blur(10px);animation:fadeIn .25s ease}
.modal-dialog{
  position:relative;background:#fff;border-radius:var(--radius-lg);
  max-width:520px;width:100%;padding:44px 38px;box-shadow:var(--shadow-lg);
  animation:popIn .35s var(--ease);text-align:center;
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:scale(.94) translateY(10px)}to{opacity:1;transform:none}}
.modal-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;font-size:1.6rem;color:var(--muted)}
.modal-close:hover{background:var(--sand);color:var(--navy)}
.modal-logo{width:72px;height:72px;border-radius:50%;margin:0 auto 14px;box-shadow:var(--shadow)}
.modal-dialog h3{font-family:var(--font-serif);color:var(--navy);font-size:1.8rem;margin-bottom:8px}
.modal-dialog p{color:var(--muted);margin-bottom:26px}
.modal-actions{display:flex;flex-direction:column;gap:12px}
.modal-actions .btn{width:100%;justify-content:center;padding:14px}
.modal-note{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted);font-style:italic}

/* ============ Floating WhatsApp ============ */
.fab-wa{
  position:fixed;bottom:22px;right:22px;z-index:60;
  width:58px;height:58px;border-radius:50%;background:#25d366;color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 30px rgba(37,211,102,.48);
  transition:all .25s var(--ease);
}
.fab-wa:hover{transform:scale(1.1)}
.fab-wa::before{
  content:"";position:absolute;inset:-4px;border-radius:50%;
  background:#25d366;opacity:.4;z-index:-1;animation:pulse 2s infinite;
}
@keyframes pulse{0%{transform:scale(1);opacity:.5}100%{transform:scale(1.6);opacity:0}}
.fab-wa svg{width:28px;height:28px}
body.rtl .fab-wa{right:auto;left:22px}

/* ============ Call banner ============ */
.call-banner{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  z-index:65;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--royal) 0%,var(--royal-2) 100%);
  color:#fff;
  box-shadow:0 16px 40px rgba(0,51,160,.32);
  border:1px solid rgba(255,255,255,.18);
  max-width:calc(100% - 28px);
}
.cb-ic{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.14);
  flex:0 0 auto;
}
.cb-ic svg{width:22px;height:22px}
.cb-text{display:flex;flex-direction:column;line-height:1.05}
.cb-text strong{font-size:.95rem;letter-spacing:.02em}
.cb-num{
  font-family:var(--font-sans);
  font-weight:900;
  letter-spacing:.10em;
  font-variant-numeric:tabular-nums;
  opacity:.95;
}

/* Ensure content isn't hidden behind call banner */
body{padding-bottom:86px}

/* When mobile drawer open, hide call banner */
body.nav-open .call-banner{
  opacity:0;
  transform:translateX(-50%) translateY(12px);
  pointer-events:none;
}

@media (min-width: 900px){
  /* Desktop: keep it smaller */
  .call-banner{bottom:22px;padding:12px 18px}
}
@media (max-width: 640px){
  .call-banner{bottom:14px}
  .cb-ic{width:40px;height:40px}
  .cb-text strong{font-size:.92rem}
}

/* ============ RTL Adjustments ============ */
body.rtl .hero-title, body.rtl .h2{letter-spacing:0}
body.rtl .eyebrow{letter-spacing:.1em}
body.rtl .link-arrow::after{content:" ←"}
body.rtl .nav a::after{left:50%}
body.rtl .steps span, body.rtl .admissions-card li::before{margin-left:0;margin-right:0}
body.rtl .admissions-card li{padding-left:0;padding-right:22px}
body.rtl .admissions-card li::before{left:auto;right:0}
body.rtl .testimonials blockquote::before{left:auto;right:20px}
body.rtl .hero-title .text-gold, body.rtl .text-gold{font-style:normal}

/* ============ Responsive ============ */
@media (max-width: 1024px){
  /* Mobile drawer nav (no layout shift) */
  .nav{
    display:flex;
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:auto;
    width:min(82vw, 360px);
    background:#fff;
    flex-direction:column;
    padding:92px 18px 18px;
    gap:4px;
    box-shadow:var(--shadow-lg);
    transform:translateX(-105%);
    transition:transform .28s var(--ease);
    z-index:120;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  body.rtl .nav{
    left:auto;
    right:0;
    transform:translateX(105%);
  }
  .nav.open{transform:translateX(0)}
  .nav a{padding:14px 12px;border-radius:10px}
  .nav a:hover{background:var(--sand)}

  /* Backdrop */
  body.nav-open{overflow:hidden}
  body.nav-open::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(10,31,92,.55);
    backdrop-filter:blur(6px);
    z-index:110;
  }

  .burger{display:flex}
  .btn-parent{display:none}
  .about-grid,.admissions-grid,.contact-grid{grid-template-columns:1fr;gap:50px}
  .about-visual{max-width:520px;margin:0 auto;aspect-ratio:1/1}
  .cards-3,.cards-4,.pillars,.testimonials{grid-template-columns:repeat(2,1fr)}
  .cards-4 .card-cycle img{height:220px}
  .gallery{grid-template-columns:repeat(4,1fr);grid-template-rows:180px 180px 180px}
  .g1{grid-column:span 2;grid-row:span 2}
  .g2,.g3,.g4,.g5{grid-column:span 2;grid-row:span 1}
  .contact-items{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  /* Mobile: use fixed header (no scroll-jank) */
  .header{position:fixed;left:0;right:0;top:0}
  body{padding-top:70px}

  .section{padding:70px 0}
  .container{padding:0 20px}
  .topbar-left{font-size:.72rem;gap:14px}
  /* Mobile header: fixed height, no wrapping, premium layout */
  .header-inner{
    min-height:70px;
    height:70px;
    display:grid;
    grid-template-columns:48px 1fr auto;
    align-items:center;
    gap:10px;
  }
  body.rtl .header-inner{
    grid-template-columns:auto 1fr 48px;
  }
  .burger{
    display:flex;
    justify-self:start;
  }
  body.rtl .burger{justify-self:end}
  .brand{
    justify-self:center;
    min-width:0;
  }
  .brand-logo{width:44px;height:44px}
  .brand-name{font-size:1.10rem}
  .brand-sub{display:none}
  .brand-name{white-space:nowrap}
  .header-cta{
    justify-self:end;
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
  }
  body.rtl .header-cta{justify-self:start}
  .header .lang-switcher{padding:5px;gap:5px;flex-wrap:nowrap}
  .header .lang-btn{padding:7px 12px;font-size:.86rem;min-width:42px}
  /* Keep header stable when scrolled */
  .header.scrolled .header-inner{height:70px}
  .hero{min-height:78vh}
  /* Mobile: show more of the entrance (less cropping) */
  .hero-media img{object-position:50% 18%;animation:none;transform:none}
  .hero-content{padding:95px 20px 110px}
  .hero-stats{grid-template-columns:repeat(2,1fr);gap:24px 16px}
  .cards-3,.cards-4,.pillars,.testimonials,.life-stats{grid-template-columns:1fr}
  .card-cycle img{height:240px}
  .card-cycle .card-body{padding:28px 26px 32px}
  .card-cycle h3{font-size:1.55rem}
  .gallery{grid-template-columns:1fr;grid-template-rows:auto}
  .g1,.g2,.g3,.g4,.g5{grid-column:1;grid-row:auto;height:240px}
  .trip-grid{grid-template-columns:1fr}
  .trip-grid .tg img{height:260px}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .parallax-section{background-attachment:scroll}
  .modal-dialog{padding:30px 22px}
}
