/* ============================================================
   مكتب المحامية نورة منيف المرشدي
   style.css — Main Stylesheet
   ============================================================ */

/* ── 1. Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ── 2. CSS Root Variables ── */
:root {
  /* Primary Colors */
  --teal-dark:    #0d2b30;
  --teal-mid:     #16414a;
  --teal-light:   #1e5562;
  --teal-soft:    #2a6676;

  /* Accent / Gold-Rose */
  --gold:         #b5836e;
  --gold-light:   #c9a08d;
  --gold-pale:    #e2c4b5;
  --beige:        #d4b5a5;
  --beige-light:  #edddd4;
  --beige-bg:     #f5ede8;

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f9f5f3;
  --grey-light:   #ede8e5;
  --grey-mid:     #b8aea9;
  --dark-text:    #1a2a2e;
  --body-text:    #2c3e40;

  /* Typography */
  --font-arabic:  'Cairo', 'Tajawal', sans-serif;
  --font-english: 'Poppins', 'Montserrat', sans-serif;

  /* Spacing */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    30px;
  --radius-xl:    50px;

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(13,43,48,.12);
  --shadow-md:    0 6px 30px rgba(13,43,48,.18);
  --shadow-lg:    0 12px 50px rgba(13,43,48,.25);

  /* Transitions */
  --transition:   all .3s ease;
}

/* ── 3. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-arabic);
  background: var(--off-white);
  color: var(--dark-text);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ── 4. Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; }
p  { font-size: clamp(.9rem, 1.5vw, 1.05rem); line-height: 1.9; }

.en { font-family: var(--font-english); direction: ltr; text-align: left; }
.ar { font-family: var(--font-arabic); direction: rtl; text-align: right; }

/* ── 5. Layout Utilities ── */
.container { width: 92%; max-width: 1180px; margin: 0 auto; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.text-center { text-align: center; }

/* ── 6. NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(13,43,48,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181,131,110,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-pale));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.nav-logo-text {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
}

.nav-logo-text span {
  display: block;
  font-size: .7rem;
  color: var(--gold-light);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--grey-light);
  font-size: .82rem;
  padding: 7px 13px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(181,131,110,.2);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── 7. PAGE HERO ── */
.page-hero {
  min-height: 100vh;
  background: var(--teal-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(181,131,110,.04) 60px,
      rgba(181,131,110,.04) 62px
    );
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: grayscale(1);
}

/* Corner decorations */
.corner-frame {
  position: absolute;
  width: 120px; height: 120px;
  pointer-events: none;
}
.corner-frame.tl { top: 40px; right: 40px; }
.corner-frame.br { bottom: 40px; left: 40px; }

.corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute;
  background: transparent;
}
.corner-frame.tl::before {
  top:0; right:0; width:100%; height:3px;
  background: linear-gradient(to left, var(--gold), transparent);
}
.corner-frame.tl::after {
  top:0; right:0; width:3px; height:100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.corner-frame.br::before {
  bottom:0; left:0; width:100%; height:3px;
  background: linear-gradient(to right, var(--gold), transparent);
}
.corner-frame.br::after {
  bottom:0; left:0; width:3px; height:100%;
  background: linear-gradient(to top, var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 60px;
}

.hero-label {
  display: inline-block;
  color: var(--gold-light);
  font-size: .9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-english);
  margin-bottom: 20px;
  border: 1px solid rgba(181,131,110,.4);
  padding: 6px 20px;
  border-radius: 20px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.hero-subtitle {
  color: var(--gold-light);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 30px;
}

.hero-divider {
  width: 120px; height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 24px auto;
}

.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

/* ── 8. SECTION TITLES ── */
.section-title {
  margin-bottom: 40px;
}

.section-title .tag-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--beige);
  color: var(--teal-dark);
  font-size: .95rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
  position: relative;
}

.section-title .tag-title::before {
  content: '';
  position: absolute;
  right: -1px; top: -1px; bottom: -1px; left: -1px;
  border: 2px solid var(--teal-dark);
  border-radius: 4px;
  opacity: .25;
}

.section-title h2 { color: var(--teal-dark); }
.section-title p { color: var(--body-text); max-width: 700px; }

/* Light section title */
.section-title.light .tag-title { background: rgba(181,131,110,.25); color: var(--gold-pale); }
.section-title.light h2 { color: var(--white); }
.section-title.light p { color: rgba(255,255,255,.75); }

/* ── 9. CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(181,131,110,.15);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.card-dark {
  background: rgba(255,255,255,.07);
  border-color: rgba(181,131,110,.2);
  color: var(--white);
}

.card-dark:hover {
  background: rgba(255,255,255,.11);
  border-color: var(--gold);
}

/* ── 10. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-arabic);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-pale));
  color: var(--teal-dark);
  box-shadow: 0 4px 20px rgba(181,131,110,.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181,131,110,.5);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold-light);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--teal-dark);
}

/* ── 11. SERVICE BADGE ── */
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--beige-light);
  border: 1px solid var(--beige);
  color: var(--teal-dark);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.service-badge .check-icon {
  width: 28px; height: 28px;
  background: var(--beige);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  color: var(--teal-dark);
  flex-shrink: 0;
}

/* ── 12. LIST ITEMS ── */
.list-arrow li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .95rem;
  line-height: 1.8;
}

.list-arrow li::before {
  content: '«';
  color: var(--gold);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.list-arrow.en-list li { flex-direction: row-reverse; direction: ltr; }
.list-arrow.en-list li::before { content: '»'; }

/* ── 13. BILINGUAL SECTION ── */
.bilingual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.bilingual-ar {
  background: var(--off-white);
  padding: 50px 45px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 1px solid var(--grey-light);
  border-left: none;
}

.bilingual-en {
  background: var(--white);
  padding: 50px 45px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border: 1px solid var(--grey-light);
  direction: ltr;
  text-align: left;
}

/* ── 14. DARK SECTION ── */
.section-dark {
  background: var(--teal-dark);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 60px,
    rgba(181,131,110,.03) 60px, rgba(181,131,110,.03) 62px
  );
}

.section-dark .container { position: relative; z-index: 1; }

/* ── 15. QURAN BANNER ── */
.quran-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.quran-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(181,131,110,.12), transparent 60%);
}

.quran-text {
  font-family: var(--font-arabic);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--white);
  text-align: center;
  line-height: 2.2;
  max-width: 900px;
  margin: 0 auto 20px;
  font-weight: 500;
}

.quran-source {
  text-align: center;
  color: var(--gold-light);
  font-size: .95rem;
}

/* ── 16. HONOR PAGE ── */
.honor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}

.honor-card {
  text-align: center;
  position: relative;
}

.honor-photo-frame {
  width: 260px; height: 260px;
  margin: 0 auto 24px;
  position: relative;
}

.honor-photo-frame::before {
  content: '';
  position: absolute;
  top: -8px; right: -8px; bottom: -8px; left: -8px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
}

.honor-photo-frame::after {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 40px; height: 40px;
  border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
}

.honor-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: grayscale(.3);
}

.honor-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-light));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: rgba(14, 10, 8, 0.5);
}

.honor-title-ar {
  font-family: var(--font-arabic);
  font-size: .9rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.honor-name {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color:  var(--teal-dark);
  font-weight: 800;
  margin-bottom: 10px;
}

.honor-kept {
  font-size: .9rem;
  color:rgba(14, 10, 8, 0.5);
  font-weight: 600;
}

/* ── 17. VALUES GRID ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(181,131,110,.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition);
}

.value-card:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.value-card h4 {
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}

.value-card h4::before {
  content: '«';
  font-size: 1.2rem;
  color: var(--gold);
}

.value-card p { color: rgba(255,255,255,.75); font-size: .9rem; }

/* ── 18. VISION IMAGE BLOCK ── */
.vision-image-wrap {
  position: relative;
  display: inline-block;
}

.vision-image-wrap img,
.vision-image-placeholder {
  width: 320px;
  height: 420px;
  object-fit: cover;
  border-radius: 120px 120px 120px 120px / 60px 60px 120px 120px;
}

.vision-image-placeholder {
  background: linear-gradient(160deg, var(--teal-mid), var(--teal-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  color: rgba(181,131,110,.4);
  border-radius: 120px 120px 60px 60px;
}

.vision-image-wrap::before {
  content: '';
  position: absolute;
  bottom: -16px; left: -16px;
  width: 60px; height: 60px;
  background: var(--gold);
  border-radius: 50% 0 50% 50%;
  opacity: .8;
}

.vision-image-wrap::after {
  content: '';
  position: absolute;
  top: -10px; right: -10px;
  width: 100%; height: 100%;
  border: 2px solid rgba(181,131,110,.3);
  border-radius: 120px 120px 60px 60px;
}

/* ── 19. FOOTER ── */
.site-footer {
  background: #0a2228;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(181,131,110,.2);
}

.site-footer p {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  font-family: var(--font-arabic);
}

/* ── 20. CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 46px; height: 46px;
  background: rgba(181,131,110,.15);
  border: 1px solid rgba(181,131,110,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--gold-light);
}

.contact-item-text h4 { color: var(--gold-light); font-size: .85rem; margin-bottom: 4px; }
.contact-item-text p,
.contact-item-text a { color: rgba(255,255,255,.85); font-size: .95rem; direction: ltr; text-align: left; }

.social-links { display: flex; gap: 14px; margin-top: 8px; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  background: rgba(181,131,110,.1);
  border: 1px solid rgba(181,131,110,.25);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: .85rem;
  transition: var(--transition);
}
.social-link:hover { background: rgba(181,131,110,.25); color: var(--gold-pale); }

/* ── 21. PAGE-SPECIFIC: inner hero ── */
.inner-hero {
  min-height: 320px;
  padding: 160px 0 60px;
  background: var(--teal-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.inner-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 60px,
    rgba(181,131,110,.04) 60px, rgba(181,131,110,.04) 62px
  );
}

.inner-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.3); }

.inner-hero h1 { color: var(--white); }
.inner-hero p { color: rgba(255,255,255,.7); max-width: 600px; margin-top: 12px; }

/* ── 22. SERVICES PAGE ── */
.services-intro {
  background: var(--teal-dark);
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}

.services-intro-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
}

.services-cover-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* ── 23. DOCUMENTATION CARDS ── */
.doc-card {
  background: var(--off-white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--gold);
  background: var(--beige-bg);
  transform: translateX(-4px);
}

.doc-card-icon {
  width: 48px; height: 48px;
  background: var(--beige-light);
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--teal-dark);
}

.doc-card-text h4 { color: var(--teal-dark); margin-bottom: 6px; font-size: 1rem; }
.doc-card-text p { color: var(--body-text); font-size: .88rem; }

/* ── 24. NAV MOBILE OPEN ── */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: var(--teal-dark);
  padding: 20px;
  gap: 8px;
  border-bottom: 1px solid rgba(181,131,110,.2);
}

/* ── 25. BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 30px; left: 30px;
  width: 46px; height: 46px;
  background: var(--gold);
  color: var(--teal-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { transform: translateY(-3px); }

/* ── 26. NAV LINKS GRID (home page) ── */
.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.home-nav-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(181,131,110,.2);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  color: var(--white);
}

.home-nav-card:hover {
  background: rgba(181,131,110,.15);
  border-color: var(--gold);
  transform: translateY(-5px);
}

.home-nav-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.home-nav-card h4 { font-size: .95rem; color: var(--gold-light); margin-bottom: 4px; }
.home-nav-card p { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ── 27. DARK BEIGE SECTION ── */
.section-beige {
  background: var(--beige-bg);
}

/* ── 28. PAGE NUMBER BADGE ── */
.page-num {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid rgba(181,131,110,.3);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 4px;
  font-family: var(--font-english);
  font-size: .8rem;
  margin-bottom: 30px;
}

/* ── 29. BILINGUAL NARROW ── */
.bilingual-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.col-ar { direction: rtl; text-align: right; }
.col-en { direction: ltr; text-align: left; font-family: var(--font-english); }

/* ── 30. Big quote marks ── */
.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: .3;
  font-family: Georgia, serif;
  display: block;
}
