/* ── SHARED STYLES FOR ALL PAGES ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8CA7A;
  --gold-dark: #8B6914;
  --gold-faint: rgba(201,168,76,0.1);
  --emerald: #1B4D3E;
  --emerald-mid: #2D6A4F;
  --emerald-light: #52B788;
  --cream: #FAF6EE;
  --cream-dark: #F0E9D8;
  --ink: #1A1208;
  --ink-mid: #3D2E10;
  --ink-soft: #6B5B35;
  --white: #FFFFFF;
  --shadow: rgba(26,18,8,0.10);
  --shadow-deep: rgba(26,18,8,0.22);
  --nav-h: 68px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--emerald);
  border-bottom: 2px solid var(--gold);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-deep);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 17px; color: var(--white); flex-shrink: 0;
}
.nav-name { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--white); line-height: 1.2; }
.nav-name span { display: block; font-family: 'Noto Naskh Arabic', serif; font-size: 13px; color: var(--gold-light); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  padding: 7px 13px; border-radius: 7px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); background: rgba(201,168,76,0.13); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-pill {
  display: flex; border: 1px solid rgba(201,168,76,0.35); border-radius: 20px; overflow: hidden;
}
.lang-pill button {
  background: none; border: none; color: rgba(255,255,255,0.65);
  font-size: 12px; font-weight: 600; padding: 5px 11px; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.lang-pill button.active { background: var(--gold); color: var(--ink); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gold-light); margin: 5px 0; transition: 0.3s; }
.mobile-nav {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--emerald);
  border-top: 1px solid rgba(201,168,76,0.3);
  padding: 1rem 1.25rem; z-index: 999;
  flex-direction: column; gap: 3px;
  box-shadow: 0 6px 20px var(--shadow-deep);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 15px; padding: 11px 16px; border-radius: 8px; transition: all 0.2s;
}
.mobile-nav a:hover { background: rgba(201,168,76,0.12); color: var(--gold-light); }

/* ── PAGE HERO BANNER ── */
.page-hero {
  padding-top: var(--nav-h);
  background: linear-gradient(160deg, var(--emerald) 0%, #0D3327 100%);
  position: relative; overflow: hidden;
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 2.5rem 3.5rem;
  position: relative; z-index: 1;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9A84C' fill-opacity='0.06'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.page-crumb { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.page-crumb a { color: var(--gold-light); text-decoration: none; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white); font-weight: 700; line-height: 1.2;
  margin-bottom: 0.75rem;
}
.page-hero h1 span { color: var(--gold-light); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.65); max-width: 560px; }

/* ── SHARED SECTION ── */
.sec { max-width: 1200px; margin: 0 auto; padding: 4.5rem 2.5rem; }
.sec-sm { max-width: 1200px; margin: 0 auto; padding: 3rem 2.5rem; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.6rem;
}
.sec-tag::before, .sec-tag::after { content: ''; display: block; height: 1px; width: 20px; background: var(--gold-dark); }
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--emerald); margin-bottom: 0.85rem;
  font-weight: 700; line-height: 1.25;
}
.sec-title.light { color: var(--gold-light); }
.sec-desc { font-size: 1rem; color: var(--ink-soft); max-width: 540px; line-height: 1.78; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; cursor: pointer; transition: all 0.22s; text-decoration: none; border: none; font-weight: 600; border-radius: var(--radius-sm); font-size: 14px; }
.btn-gold { background: var(--gold); color: var(--ink); padding: 11px 24px; box-shadow: 0 3px 15px rgba(201,168,76,0.28); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 25px rgba(201,168,76,0.38); }
.btn-emerald { background: var(--emerald); color: var(--white); padding: 11px 24px; }
.btn-emerald:hover { background: var(--emerald-mid); transform: translateY(-2px); }
.btn-outline-gold { background: transparent; color: var(--gold-dark); padding: 10px 22px; border: 1.5px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold-faint); }
.btn-outline-white { background: transparent; color: var(--white); padding: 10px 22px; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.btn-sm { font-size: 12.5px; padding: 8px 16px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.card:hover { border-color: var(--gold); box-shadow: 0 10px 35px var(--shadow); transform: translateY(-3px); }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid rgba(201,168,76,0.2); margin: 0; }
.bg-emerald { background: var(--emerald); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 3.5rem 2.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--white); margin-bottom: 0.4rem; }
.footer-arabic { font-family: 'Noto Naskh Arabic', serif; font-size: 1rem; color: var(--gold-light); margin-bottom: 0.9rem; }
.footer-about { font-size: 13px; line-height: 1.72; margin-bottom: 1.1rem; }
.footer-col-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,0.52); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.4rem; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; flex-wrap: wrap; gap: 8px; }
.footer-arabic-quote { font-family: 'Noto Naskh Arabic', serif; font-size: 14px; color: var(--gold-light); }
.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; text-decoration: none; transition: all 0.2s;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}
.social-icon:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .sec { padding: 3rem 1.25rem; }
  .sec-sm { padding: 2rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  nav { padding: 0 1.25rem; }
  .page-hero-inner { padding: 3rem 1.25rem 2.5rem; }
}
