/* ================================================================
   TRACK UNION — Inner Pages Creative Layer v1
   لمسات إبداعية موحّدة للصفحات الداخلية — كل الألوان من theme.css
   ================================================================ */

/* ── PAGE HERO — أعمق وأكثر فخامة ────────────────────────────── */
body .page-hero {
  min-height: clamp(300px, 38vh, 400px);
  align-items: flex-end;
}
body .page-hero::before {
  background:
    linear-gradient(200deg,
      color-mix(in srgb, var(--brand-darker) 55%, transparent) 0%,
      color-mix(in srgb, var(--brand-darker) 88%, transparent) 100%);
}
body .page-hero::after {
  background: linear-gradient(90deg, transparent, var(--soft), transparent);
  height: 3px;
}
body .page-hero h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
body .page-hero h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 56px;
  height: 4px;
  border-radius: 99px;
  background: var(--soft);
}
body .page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  padding: 0.35rem 1.1rem;
  width: fit-content;
}
body .breadcrumb-item.active { color: var(--soft); font-weight: 700; }

/* ── TICKER — شريط متحرك يتبع الثيم ──────────────────────────── */
body .ticker-wrap {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-darker)) !important;
  border-top: 1px solid color-mix(in srgb, var(--soft) 20%, transparent) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--soft) 20%, transparent) !important;
}
body .ticker-track span { color: var(--on-brand-soft) !important; }
body .ticker-track .sep { color: var(--soft) !important; }

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
/* البادج العائم: نص بيجي فوق التدرج الداكن */
body .float-badge { color: var(--soft) !important; }
body .rounded-media {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  transition: transform 0.5s var(--ease);
}
body .rounded-media:hover { transform: scale(1.015); }

/* ── SERVICES PAGE ───────────────────────────────────────────── */
body .wide-service {
  border-color: var(--line) !important;
  border-radius: var(--radius-md) !important;
}
body .wide-service:hover { box-shadow: var(--shadow-md) !important; }
body .wide-service:hover .svc-icon-ring i { color: var(--soft) !important; }

/* ── GALLERY PAGE ────────────────────────────────────────────── */
body .filter-btn.active,
body .filter-btn:hover { color: var(--soft) !important; }
body .filter-btn.active { box-shadow: var(--shadow-sm) !important; }
body .item-badge,
body .masonry-zoom-icon { color: var(--soft) !important; }
body .gallery-stat-num { color: var(--brand) !important; }

/* ── NEWS PAGE ───────────────────────────────────────────────── */
body .feat-badge { color: var(--soft) !important; }
body .news-tag { font-weight: 700; }
body .news-card,
body .news-card-featured {
  border-radius: var(--radius-md) !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease) !important;
}
body .news-card:hover,
body .news-card-featured:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md) !important;
}

/* ── CONTACT PAGE ────────────────────────────────────────────── */
body .contact-form input:focus,
body .contact-form textarea:focus,
body .contact-form select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px var(--brand-tint) !important;
  outline: none;
}
body .contact-info-card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
body .contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
body .map-section iframe {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  filter: grayscale(0.35);
  transition: filter 0.4s var(--ease);
}
body .map-section iframe:hover { filter: grayscale(0); }

/* ── لمسات عامة للصفحات الداخلية ─────────────────────────────── */
body .section-divider {
  background: linear-gradient(90deg, transparent, var(--brand), transparent) !important;
  height: 3px !important;
  border-radius: 99px;
  opacity: 0.55;
}
body .bg-soft .section-divider {
  background: linear-gradient(90deg, transparent, var(--soft), transparent) !important;
  opacity: 0.65;
}
/* بطاقات القيم في صفحة من نحن */
body .value-card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease) !important;
}
body .value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md) !important;
}
body .value-card i {
  background: var(--soft);
  color: var(--brand);
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ════════════════════════════════════════════════════════════════
   كلمة المدير العام v2 — بورتريه + كلمة بأسلوب editorial فاخر
   ════════════════════════════════════════════════════════════════ */
.gm-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 320px at 8% 12%, var(--brand-tint) 0%, transparent 70%),
    var(--paper);
}
.gm-ghost-quote {
  position: absolute;
  top: -70px;
  inset-inline-start: 1%;
  font-size: clamp(13rem, 28vw, 24rem);
  font-weight: 900;
  line-height: 1;
  color: var(--brand-tint);
  pointer-events: none;
  user-select: none;
}

/* ── البورتريه ── */
.gm-portrait {
  position: relative;
  height: 100%;
  min-height: 420px;
  padding: 14px 14px 0 0;
}
/* إطار بيجي مُزاح خلف الصورة */
.gm-frame {
  position: absolute;
  inset: 0 0 14px 14px;
  background: var(--soft);
  border: 1.5px dashed var(--soft-deep);
  border-radius: var(--radius-lg);
  transform: rotate(-1.6deg);
}
.gm-photo {
  position: relative;
  z-index: 2;
  margin: 0;
  height: calc(100% - 14px);
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-darker) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: stretch;
}
.gm-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Placeholder حتى تركيب الصورة */
.gm-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(6rem, 12vw, 9rem);
  color: color-mix(in srgb, var(--soft) 30%, transparent);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* شريط الاسم الزجاجي أسفل الصورة */
.gm-photo figcaption {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--soft) 30%, transparent);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  text-align: center;
}
.gm-photo figcaption strong {
  display: block;
  color: var(--soft);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.5;
}
.gm-photo figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--on-brand-soft);
  font-size: 0.8rem;
  font-weight: 700;
}
/* ميدالية الاقتباس على حافة البورتريه */
.gm-medal {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  z-index: 4;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md), 0 0 0 5px var(--paper);
}

/* ── الكلمة ── */
.gm-word {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 0.6rem;
}
.gm-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin: 0.9rem 0 1.1rem;
}
/*.gm-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
} */
/* اقتباس مميز بخلفية ماركر بيجية */
.gm-pull {
  display: inline-block;
  width: fit-content;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  color: var(--brand);
  background: linear-gradient(180deg, transparent 52%, var(--soft) 52%, var(--soft) 92%, transparent 92%);
  padding-inline: 0.4rem;
  margin-bottom: 1.1rem;
}
.gm-text { color: var(--text-soft); line-height: 2.05; margin-bottom: 0.9rem; }

/* التوقيع + الختم */
.gm-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--line);
}
.gm-sign { display: flex; flex-direction: column; align-items: flex-start; }
.gm-signature {
  font-family: 'Aref Ruqaa', 'Cairo', serif;
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  color: var(--brand);
  line-height: 1.3;
  transform: rotate(-3deg);
  display: inline-block;
}
.gm-sign-line {
  width: 160px;
  height: 2px;
  margin: 0.3rem 0 0.45rem;
  background: linear-gradient(90deg, var(--brand), transparent);
  border-radius: 99px;
}
.gm-sign-role { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }

.gm-stamp {
  width: 112px;
  height: 112px;
  color: var(--brand);
  opacity: 0.75;
  transform: rotate(-10deg);
  flex: 0 0 auto;
}
.gm-stamp svg { width: 100%; height: 100%; animation: tuSpin 50s linear infinite; }

@media (max-width: 991px) {
  .gm-portrait { min-height: 0; max-width: 420px; margin-inline: auto; }
  .gm-photo { min-height: 0; aspect-ratio: 4 / 4.6; height: auto; }
  .gm-word { text-align: center; align-items: center; }
  .gm-word .section-kicker { margin-inline: auto; }
  .gm-pull { margin-inline: auto; }
  .gm-foot { justify-content: center; }
  .gm-sign { align-items: center; }
  .gm-sign-line { background: linear-gradient(90deg, transparent, var(--brand), transparent); }
}
