/* ---------- Design Tokens ---------- */
:root {
  --navy:        #0c2740;
  --navy-deep:   #08182a;
  --gold:        #c8a04c;
  --gold-soft:   #e0c989;
  --cream:       #f7f3ec;
  --paper:       #fbfaf6;
  --ink:         #1c2433;
  --muted:       #6b7280;
  --line:        #e6e2d8;
  --shadow-sm:   0 4px 14px rgba(12, 39, 64, 0.08);
  --shadow-md:   0 14px 40px rgba(12, 39, 64, 0.12);
  --radius:      14px;
  --max:         1200px;
  --display:     'Cormorant Garamond', 'Times New Roman', serif;
  --body:        'Outfit', system-ui, sans-serif;
}

/* Use Cairo for Arabic */
html[dir="rtl"] {
  --body: 'Cairo', 'Outfit', system-ui, sans-serif;
  --display: 'Cairo', 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--navy); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all .3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--body);
  font-size: 14px;
  text-transform: uppercase;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #d8d2c2;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a { color: #d8d2c2; transition: color .2s; }
.topbar a:hover { color: var(--gold-soft); }

/* Use logical properties so LTR + RTL both work */
.topbar-left span { margin-inline-end: 18px; }
.topbar-left i { color: var(--gold); margin-inline-end: 6px; }
.topbar-right a { margin-inline-start: 18px; }

/* ---------- Header / Nav ---------- */
header.main-nav {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.logo-text h2 {
  font-size: 16px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
}
.logo-text span {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
nav ul li a {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color .25s;
  display: block;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s;
}
nav ul li a:hover { color: var(--navy); }
nav ul li a:hover::after { width: 60%; }

.login-btn {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  margin-inline-start: 10px;
  font-size: 13px;
  transition: all .25s;
}
.login-btn:hover { background: var(--gold); }
.login-btn::after { display: none !important; }

.lang-switch {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}
.lang-switch:hover { background: var(--gold-soft) !important; }

.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  background:
    linear-gradient(rgba(8, 24, 42, 0.6), rgba(8, 24, 42, 0.7)),
    url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1920&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 160, 76, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200, 160, 76, 0.1), transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1.2s ease;
}
.hero-eyebrow {
  color: var(--gold-soft);
  letter-spacing: 6px;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 22px;
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero p {
  font-size: 17px;
  margin-bottom: 32px;
  opacity: 0.92;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section base ---------- */
section.block { padding: 90px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .eyebrow {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.section-title h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 14px;
}
.section-title h2 em { color: var(--gold); font-style: italic; }
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
}

/* ---------- Welcome ---------- */
.welcome { background: var(--paper); text-align: center; }
.welcome p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Priorities ---------- */
.priorities { background: linear-gradient(135deg, var(--cream) 0%, var(--paper) 100%); }
.priority-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.priority-card {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  border-top: 3px solid transparent;
}
.priority-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold);
}
.priority-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.priority-card h3 {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  font-family: var(--body);
  font-weight: 600;
}

/* ---------- Vision / Mission cards ---------- */
.vision { background: #fff; }
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.vision-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease;
}
.vision-card:hover { transform: translateY(-6px); }
.vision-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.vision-card:nth-child(1) .vision-img {
  background-image: url('https://images.unsplash.com/photo-1497486751825-1233686d5d80?auto=format&fit=crop&w=800&q=80');
}
.vision-card:nth-child(2) .vision-img {
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=800&q=80');
}
.vision-card:nth-child(3) .vision-img {
  background-image: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=800&q=80');
}
.vision-body { padding: 28px 26px; }
.vision-body h4 {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  font-family: var(--body);
  font-weight: 600;
  margin-bottom: 8px;
}
.vision-body h3 { font-size: 26px; margin-bottom: 14px; }
.vision-body p { color: var(--muted); font-size: 15px; }

/* ---------- Discover (Gallery) ---------- */
.discover { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.discover .section-title h2 { color: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.gallery-grid > div {
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-grid > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity .3s;
}
.gallery-grid > div:hover::after { opacity: 1; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-grid > div:hover img { transform: scale(1.08); }
.gallery-grid > div:nth-child(1) { grid-row: span 2; height: 498px; }

/* ---------- Accreditations ---------- */
.accreditations { background: var(--paper); }
.accred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}
.accred-card {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: all .3s;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.2;
}
.accred-card:hover {
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { font-size: 32px; margin-bottom: 14px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.contact-list { display: grid; gap: 18px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--paper);
  border-radius: 10px;
  border-inline-start: 3px solid var(--gold);
}
.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: var(--body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-item p {
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}

.contact-form {
  background: var(--paper);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 15px;
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 160, 76, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #b8b3a5;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-grid h4 {
  color: var(--gold);
  font-family: var(--body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.footer-grid p { font-size: 14px; line-height: 1.8; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a { transition: color .2s; }
.footer-grid ul li a:hover { color: var(--gold-soft); }
.footer-grid ul li i {
  color: var(--gold);
  margin-inline-end: 8px;
  width: 16px;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
}
.footer-bottom span { color: var(--gold); }

/* ---------- Floating call button ---------- */
.call-now {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 60px;
  height: 60px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 160, 76, 0.5); }
  50% { box-shadow: 0 0 0 16px rgba(200, 160, 76, 0); }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  nav ul li a { padding: 10px 8px; font-size: 12px; }
  .logo-text h2 { font-size: 14px; }
}

@media (max-width: 1024px) {
  .priority-grid { grid-template-columns: repeat(3, 1fr); }
  .accred-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid > div:nth-child(1) { grid-row: auto; height: 240px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  nav ul { display: none; }
  .menu-toggle { display: block; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  nav ul.open li { width: 100%; }
  nav ul.open li a { padding: 12px 16px; }
}

@media (max-width: 768px) {
  .vision-grid { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: repeat(2, 1fr); }
  .accred-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  section.block { padding: 60px 0; }
  .topbar-left, .topbar-right { display: none; }
}
