/* ============================================================
   مستشفى القيمة الملكي · ورقة الأنماط المشتركة
   ============================================================ */

:root {
  --midnight: #0A1525;
  --midnight-2: #14223A;
  --ink: #1B2A42;
  --ink-soft: #3E4A5F;
  --dune: #E8DCC4;
  --alabaster: #F4EFE5;
  --bone: #F9F5EC;
  --paper: #FBF7EE;
  --gold: #B89456;
  --gold-deep: #8B6B2E;
  --gold-light: #D4B97D;
  --gold-pale: #E8D7A8;
  --emerald: #1A4D40;
  --burgundy: #5C2A2E;
  --line: rgba(11, 21, 37, 0.08);
  --line-warm: rgba(184, 148, 86, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; direction: rtl; }

body {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.9;
  font-weight: 400;
  font-size: 17px;
  direction: rtl;
  text-align: right;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='3' seed='3'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ============ NAVIGATION ============ */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(251, 247, 238, 0.78);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s;
  direction: rtl;
}

nav.site-nav.scrolled { padding: 1rem 3rem; background: rgba(251, 247, 238, 0.95); }
nav.site-nav.dark-nav { background: rgba(10, 21, 37, 0.85); border-bottom-color: rgba(212, 185, 125, 0.2); }
nav.site-nav.dark-nav.scrolled { background: rgba(10, 21, 37, 0.95); }

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-mark { height: 44px; width: auto; flex-shrink: 0; object-fit: contain; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  padding-right: 1rem;
  border-right: 1px solid var(--line-warm);
}

.logo-text .name {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
  font-size: 1.2rem;
  color: var(--midnight);
  font-weight: 700;
}

.dark-nav .logo-text .name { color: var(--bone); }
.dark-nav .logo-text { border-right-color: rgba(212, 185, 125, 0.3); }

.logo-text .sub {
  font-family: 'Amiri', serif;
  font-size: 0.85rem;
  color: var(--gold-deep);
  margin-top: 4px;
}

.dark-nav .logo-text .sub { color: var(--gold-light); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Amiri', serif;
  position: relative;
  transition: color 0.3s;
}

.dark-nav .nav-links a { color: var(--bone); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all 0.4s;
}

.nav-links a:hover { color: var(--gold-deep); }
.dark-nav .nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; right: 0; }
.nav-links a.active { color: var(--gold-deep); }
.dark-nav .nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after { width: 100%; right: 0; }

.nav-cta {
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.5s;
  font-family: 'Amiri', serif;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.dark-nav .nav-cta { color: var(--gold-light); border-color: var(--gold-light); }
.nav-cta:hover { background: var(--midnight); border-color: var(--midnight); color: var(--gold-light); }
.dark-nav .nav-cta:hover { background: var(--gold-light); color: var(--midnight); }

/* ============ SECTION HEADERS ============ */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.section-eyebrow {
  color: var(--gold-deep);
  font-size: 1rem;
  font-family: 'Amiri', serif;
  font-weight: 700;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--midnight);
  margin: 0 auto 2rem;
}

.section-title em { font-style: italic; color: var(--gold-deep); }

.section-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 2;
  font-weight: 400;
}

/* ============ BUTTONS ============ */
.btn {
  padding: 1rem 2.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.5s;
  font-family: 'Amiri', serif;
  font-weight: 700;
  border: none;
  background: none;
  text-decoration: none;
  display: inline-block;
}

.btn-gold {
  background: var(--gold);
  color: var(--midnight);
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(212, 185, 125, 0.4);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--midnight); color: var(--gold-light); border-color: var(--midnight); }

/* ============ PAGE BANNER (inner pages) ============ */
.page-banner {
  padding: 11rem 3rem 5rem;
  background: linear-gradient(225deg, #0A1525 0%, #14223A 70%, #1B2A42 100%);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(212, 185, 125, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(26, 77, 64, 0.12) 0%, transparent 50%);
}

.page-banner-mashrabiya {
  position: absolute;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23D4B97D' stroke-width='0.4'><circle cx='100' cy='100' r='90'/><circle cx='100' cy='100' r='75'/><circle cx='100' cy='100' r='60'/><polygon points='100,10 145,55 190,100 145,145 100,190 55,145 10,100 55,55'/><polygon points='100,25 130,55 175,100 130,145 100,175 70,145 25,100 70,55'/><line x1='10' y1='100' x2='190' y2='100'/><line x1='100' y1='10' x2='100' y2='190'/><line x1='37' y1='37' x2='163' y2='163'/><line x1='163' y1='37' x2='37' y2='163'/></g></svg>");
  background-size: 280px;
  animation: nav-rotate 240s linear infinite;
}

@keyframes nav-rotate {
  from { transform: translateY(-50%) rotate(0); }
  to { transform: translateY(-50%) rotate(-360deg); }
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: rgba(212, 185, 125, 0.7);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-family: 'Amiri', serif;
}

.breadcrumb a {
  color: rgba(212, 185, 125, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .separator { opacity: 0.4; }
.breadcrumb .current { color: var(--gold-light); }

.page-title {
  font-family: 'Amiri', 'Noto Naskh Arabic', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.page-title em { font-style: italic; color: var(--gold-light); }

.page-subtitle {
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.page-intro {
  font-size: 1.15rem;
  color: rgba(249, 245, 236, 0.78);
  max-width: 720px;
  line-height: 2;
}

/* ============ FOOTER ============ */
footer {
  background: var(--midnight-2);
  color: var(--bone);
  padding: 5rem 3rem 2.5rem;
  direction: rtl;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(212, 185, 125, 0.2);
}

.footer-col h6 {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 1.3rem;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: rgba(249, 245, 236, 0.6);
  line-height: 1.9;
}

.footer-col li a {
  color: rgba(249, 245, 236, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col li a:hover { color: var(--gold-light); }

.footer-tagline {
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-top: 1.5rem;
  line-height: 1.85;
  max-width: 380px;
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(249, 245, 236, 0.45);
  font-family: 'Amiri', serif;
}

/* ============ FADE-IN ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-1 { opacity: 0; animation: fadeUp 1.2s 0.2s forwards; }
.fade-2 { opacity: 0; animation: fadeUp 1.2s 0.4s forwards; }
.fade-3 { opacity: 0; animation: fadeUp 1.2s 0.6s forwards; }
.fade-4 { opacity: 0; animation: fadeUp 1.2s 0.8s forwards; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  nav.site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-banner { padding: 8rem 1.5rem 4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem 2.5rem; }
  footer { padding: 4rem 0 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; padding: 2rem 1.5rem 0; text-align: center; }
}


/* ============ PHOTO PLACEHOLDER SYSTEM ============ */
.photo-placeholder {
  position: relative;
  background: linear-gradient(135deg, #14223A 0%, #1B2A42 50%, #14223A 100%);
  overflow: hidden;
  border: 1px solid rgba(212, 185, 125, 0.2);
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(212, 185, 125, 0.04) 22px, rgba(212, 185, 125, 0.04) 44px),
    radial-gradient(ellipse at 30% 30%, rgba(212, 185, 125, 0.08), transparent 60%);
}
.photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(212, 185, 125, 0.15);
  pointer-events: none;
}
.photo-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  z-index: 2;
}
.photo-placeholder-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.photo-placeholder-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--gold-light); stroke-width: 1;
}
.photo-placeholder-label {
  font-family: 'Amiri', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.photo-placeholder-brief {
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(249, 245, 236, 0.7);
  max-width: 380px;
  line-height: 1.6;
}
.photo-placeholder-spec {
  font-family: 'Amiri', serif;
  font-size: 0.78rem;
  color: rgba(212, 185, 125, 0.45);
  margin-top: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Portrait variant — square aspect with rounded styling */
.portrait-placeholder {
  aspect-ratio: 3 / 4;
  border-radius: 2px;
}
.portrait-placeholder .photo-placeholder-brief { font-size: 0.95rem; }

/* Full-width hero photo */
.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
}
.hero-photo-placeholder::before {
  opacity: 0.7;
}

/* Inline placeholder for inside cards */
.card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.5rem;
}

/* Square / portrait card photo */
.card-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.5rem;
}
