/* الصفحة الرئيسية — مدارس فرست للغات */
@font-face { font-family: 'Cairo'; src: url('../fonts/Cairo-Regular.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #1e3a6c; --navy-d: #142a52; --navy-dd: #0d1d3b; --navy-50: #eef2f9;
  --gold: #d4a64a; --gold-l: #f6e7a6; --gold-d: #7a4a16;
  --gold-g: linear-gradient(135deg, #f6d77a 0%, #d4a64a 50%, #9a6420 100%);
  --gold-line: linear-gradient(90deg, #f7ebb5, #fbdc7f 22%, #d9a94a 55%, #7a4a16 82%, #b98a3e);
  --ink: #1c2434; --muted: #667089; --line: #e3e7ef;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Cairo', Tahoma, sans-serif; color: var(--ink); line-height: 1.85; background: #fff; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 92%); margin-inline: auto; }
.gold-line { height: 4px; background: var(--gold-line); }

/* شريط علوي */
.topbar { background: var(--navy-dd); color: #c8d2e6; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 10px; }
.tb-info { display: flex; gap: 22px; flex-wrap: wrap; }
.tb-info a:hover { color: var(--gold-l); }
.tb-social { display: flex; gap: 8px; }
.tb-social a { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.tb-social a:hover { background: var(--gold); }
.tb-social svg { width: 15px; height: 15px; fill: #fff; }

/* الهيدر */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(20,42,82,.08); border-bottom: 3px solid transparent; border-image: var(--gold-line) 1; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 60px; }
.brand b { display: block; color: var(--navy); font-size: 1.15rem; line-height: 1.3; }
.brand small { display: block; color: var(--gold-d); font-size: .78rem; letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 13px; border-radius: 9px; font-weight: 700; font-size: .93rem; color: var(--navy); transition: .2s; }
.nav a:hover { background: var(--navy-50); }
.nav .nav-cta { background: var(--navy); color: #fff; margin-inline-start: 6px; box-shadow: 0 6px 16px rgba(30,58,108,.25); }
.nav .nav-cta:hover { background: var(--navy-d); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--navy); cursor: pointer; }

/* أزرار */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 12px; font-weight: 800; font-family: inherit; font-size: 1rem; transition: .25s; border: 0; cursor: pointer; }
.btn-gold { background: var(--gold-g); color: var(--navy-dd); box-shadow: 0 8px 22px rgba(212,166,74,.4); }
.btn-gold:hover { transform: translateY(-3px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(30,58,108,.3); }
.btn-navy:hover { background: var(--navy-d); transform: translateY(-3px); }
.btn-line { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* الهيرو */
.hero { position: relative; overflow: hidden; color: #fff; padding: 70px 0 90px;
  background: radial-gradient(circle at 80% 10%, rgba(212,166,74,.22), transparent 40%), linear-gradient(135deg, var(--navy) 0%, var(--navy-dd) 100%); }
.hero-pattern { position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(45deg, #fff 1px, transparent 1px), linear-gradient(-45deg, #fff 1px, transparent 1px); background-size: 34px 34px; }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: #fff; clip-path: ellipse(70% 100% at 50% 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: rgba(212,166,74,.16); color: var(--gold-l); border: 1px solid rgba(212,166,74,.4); padding: 4px 16px; border-radius: 30px; font-size: .85rem; font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.35; font-weight: 800; }
.hero h1 span { display: block; background: var(--gold-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slogan { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: var(--gold-l); font-size: 1.35rem; margin: 6px 0 14px; direction: ltr; text-align: right; }
.lead { color: #cfd8ea; font-size: 1.08rem; max-width: 560px; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-call { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 8px 20px 8px 8px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(212,166,74,.45); }
.hero-call i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-g); display: grid; place-items: center; font-size: 1.2rem; }
.hero-call small { display: block; color: #c8d2e6; font-size: .8rem; line-height: 1.3; }
.hero-call b { display: block; font-size: 1.5rem; letter-spacing: 1.5px; color: var(--gold-l); line-height: 1.3; }

.hero-arches { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 16px; min-height: 440px; }
.arch { width: 31%; max-width: 175px; border-radius: 120px 120px 22px 22px; overflow: hidden; border: 4px solid #fff; outline: 3px solid var(--gold); outline-offset: 5px; box-shadow: 0 24px 50px rgba(0,0,0,.4); background: #fff; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.a1 { height: 330px; animation: float 7s ease-in-out infinite; }
.arch.a2 { height: 400px; margin-bottom: 30px; animation: float 7s ease-in-out infinite .8s; }
.arch.a3 { height: 330px; animation: float 7s ease-in-out infinite 1.6s; }
.hero-logo { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 92px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); z-index: 2; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* أرقام */
.stats { margin-top: -40px; position: relative; z-index: 3; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(20,42,82,.14); overflow: hidden; border-bottom: 4px solid var(--gold); }
.stat { text-align: center; padding: 22px 10px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border: 0; }
.stat b { display: block; font-size: 1.9rem; color: var(--navy); font-weight: 800; line-height: 1.2; }
.stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* أقسام عامة */
.sec { padding: 80px 0; }
.sec-soft { background: #f5f7fb; }
.sec-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dd) 100%); color: #fff; }
.head { text-align: center; margin-bottom: 44px; }
.kicker { display: inline-block; color: var(--gold-d); font-weight: 800; font-size: .9rem; letter-spacing: .5px; margin-bottom: 4px; }
.head h2, .about h2, .careers h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); font-weight: 800; line-height: 1.45; }
.head.light h2 { color: #fff; }
.head.light .kicker { color: var(--gold-l); }
.bar { width: 90px; height: 4px; background: var(--gold-line); border-radius: 4px; margin: 12px auto 0; }
h2 em { font-style: normal; color: var(--gold-d); }

/* عن */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: 22px; box-shadow: 0 24px 50px rgba(20,42,82,.18); width: 100%; }
.about-img::before { content: ''; position: absolute; inset: -14px 14px 14px -14px; border: 3px solid var(--gold); border-radius: 22px; z-index: -1; }
.about p { color: var(--muted); font-size: 1.04rem; margin-top: 12px; }
.about blockquote { margin-top: 18px; padding: 14px 18px; border-left: 4px solid var(--gold); background: var(--navy-50); border-radius: 10px; color: var(--navy); font-family: Georgia, serif; font-style: italic; text-align: left; }

/* القيم */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.val { background: #fff; border-radius: 18px; padding: 30px 24px; box-shadow: 0 10px 30px rgba(20,42,82,.07); border: 1px solid var(--line); transition: .3s; position: relative; overflow: hidden; }
.val::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 4px; background: var(--gold-line); transform: scaleX(0); transition: .35s; }
.val:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,42,82,.14); }
.val:hover::after { transform: scaleX(1); }
.val i { font-style: normal; font-size: 1.8rem; width: 62px; height: 62px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; margin-bottom: 14px; border: 2px solid var(--gold); }
.val h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 6px; }
.val p { color: var(--muted); font-size: .95rem; }

/* الأقسام الدراسية */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prog { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 14px 40px rgba(20,42,82,.1); border: 1px solid var(--line); }
.prog-top { background: var(--navy); color: #fff; padding: 26px 28px; position: relative; }
.prog.gold .prog-top { background: var(--gold-g); color: var(--navy-dd); }
.prog-top span { font-family: Georgia, serif; font-style: italic; opacity: .8; }
.prog-top h3 { font-size: 1.6rem; }
.prog p { padding: 22px 28px 28px; color: var(--muted); font-size: 1.02rem; }
.admit { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 30px; border-radius: 20px; background: var(--navy-50); border: 1.5px dashed var(--gold); }
.admit h3 { color: var(--navy); }
.admit p { color: var(--muted); }

/* المعرض */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center; gap: 34px; }
.gallery figure { position: relative; border-radius: 140px 140px 20px 20px; overflow: hidden; height: 460px; border: 4px solid rgba(255,255,255,.9); outline: 2px solid var(--gold); outline-offset: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(13,29,59,.92)); font-weight: 700; text-align: center; }
.more { text-align: center; margin-top: 30px; }
.more a { color: var(--gold-l); font-weight: 700; border-bottom: 1px dashed var(--gold); }

/* الوظائف */
.careers { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #fffaf0 0%, #fff 60%); border: 1px solid #f0e2bf; border-radius: 26px; padding: 44px; box-shadow: 0 20px 50px rgba(20,42,82,.08); position: relative; overflow: hidden; }
.careers::before { content: '💼'; position: absolute; left: 30px; bottom: -20px; font-size: 9rem; opacity: .05; }
.careers p { color: var(--muted); margin: 12px 0 22px; font-size: 1.04rem; }
.careers-list { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(20,42,82,.08); border: 1px solid var(--line); }
.careers-list h4 { color: var(--navy); margin-bottom: 10px; }
.job { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: .2s; border-bottom: 1px solid var(--line); }
.job:hover { background: var(--navy-50); }
.job i { font-style: normal; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 11px; background: var(--navy-50); display: grid; place-items: center; }
.job span { flex: 1; }
.job b { display: block; color: var(--navy); }
.job small { color: var(--muted); font-size: .82rem; }
.job em { font-style: normal; font-weight: 800; color: var(--gold-d); font-size: .88rem; }
.all-jobs { display: block; text-align: center; margin-top: 12px; font-weight: 800; color: var(--navy); }
.no-jobs { text-align: center; padding: 20px; }
.no-jobs i { font-style: normal; font-size: 3rem; display: block; }
.no-jobs b { color: var(--navy); font-size: 1.2rem; display: block; }
.no-jobs p { color: var(--muted); margin: 6px 0 16px; }

/* تواصل */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; }
.cards { display: grid; gap: 12px; }
.ccard { display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: 0 8px 24px rgba(20,42,82,.06); border: 1px solid var(--line); transition: .2s; }
a.ccard:hover { border-color: var(--gold); transform: translateX(-4px); }
.ccard i { font-style: normal; font-size: 1.4rem; width: 50px; height: 50px; min-width: 50px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; }
.ccard small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.ccard b { display: block; color: var(--navy); font-size: 1.05rem; }
.map { border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(20,42,82,.12); border: 4px solid #fff; min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* الفوتر */
.footer { background: var(--navy-dd); color: #b9c4dc; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { height: 74px; }
.foot-brand b { display: block; color: #fff; font-size: 1.15rem; }
.foot-brand span { font-size: .85rem; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--gold-l); }
.copy { text-align: center; padding: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.copy a { color: var(--gold-l); }

.float-cta { position: fixed; bottom: 22px; left: 22px; z-index: 90; background: var(--gold-g); color: var(--navy-dd); font-weight: 800; padding: 12px 22px; border-radius: 40px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: .2s; }
.float-cta:hover { transform: translateY(-3px); }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* متجاوب */
@media (max-width: 1050px) {
  .nav a { padding: 8px 8px; font-size: .88rem; }
}
@media (max-width: 960px) {
  .hero-grid, .about, .careers, .contact { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .slogan { text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-arches { min-height: 360px; }
  .arch.a1, .arch.a3 { height: 260px; } .arch.a2 { height: 320px; }
  .values { grid-template-columns: 1fr 1fr; }
  .careers { padding: 28px; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; right: 0; left: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.12); display: none; }
  .nav.open { display: flex; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  .topbar .tb-addr { display: none; }
  .brand img { height: 48px; }
  .brand b { font-size: 1rem; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border: 0; }
  .stat b { font-size: 1.5rem; }
  .values, .programs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: minmax(0, 250px); }
  .gallery figure { height: 440px; }
  .arch { border-width: 3px; outline-offset: 3px; }
  .arch.a1, .arch.a3 { height: 200px; } .arch.a2 { height: 250px; margin-bottom: 20px; }
  .hero-arches { min-height: 290px; gap: 10px; }
  .hero-logo { width: 70px; }
  .sec { padding: 60px 0; }
  .float-cta { left: 12px; bottom: 12px; padding: 10px 16px; font-size: .9rem; }
}
