/* =============================================================
   تبارك لنقل وتغليف الأثاث — Brand System v2
   Established Practical Trust — نظام مكونات مبني من الصفر
   (لا يعتمد على تصميم أو CSS أي علامة تجارية سابقة)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  --tbarak-charcoal:        #24282B;
  --tbarak-industrial-gray: #5B6065;
  --tbarak-gold:            #F2B705;
  --tbarak-cream:           #FBF7EC;
  --tbarak-brown:           #3B2F24;
  --tbarak-green:           #1D8B73;
  --tbarak-white:           #FFFFFF;
  --tbarak-border:          #E8E1D2;

  --tbarak-whatsapp:        #25D366;
  --tbarak-charcoal-soft:   rgba(36,40,43,0.06);
  --tbarak-gold-soft:       rgba(242,183,5,0.14);

  --tbarak-radius-sm:  8px;
  --tbarak-radius-md:  14px;
  --tbarak-radius-lg:  22px;

  --tbarak-header-h:        76px;
  --tbarak-header-h-mobile: 64px;
}

/* =============================================================
   1. Reset / Base Typography
   ============================================================= */
/* The base Understrap framework (theme-bootstrap4.css, loaded before this
   file) sets `body { overflow-x: hidden; }`. That single-axis overflow
   forces the other axis to compute as `auto` per spec, which turns body
   into its own "nearest scrolling ancestor" instead of the viewport —
   and silently breaks `position: sticky` for every sticky element on the
   page (that is exactly what was happening to .tbarak-header). Overriding
   back to `visible` here restores normal viewport scrolling/stickiness.
   If a genuine horizontal-overflow culprit ever turns up, fix that
   specific element instead of gating this at the root. */
body {
  overflow-x: visible !important;
  font-family: 'Cairo', Tajawal, Arial, sans-serif !important;
  color: var(--tbarak-charcoal) !important;
  background-color: var(--tbarak-white);
}

/* Defensive: long unbroken tokens (e.g. TBARAK_PHONE_PLACEHOLDER) must never
   force horizontal overflow before the real phone numbers are in place. */
.tbarak-btn, .tbarak-badge, .tbarak-chip, a {
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Cairo', Tajawal, Arial, sans-serif !important;
  font-weight: 800;
  color: var(--tbarak-charcoal);
}

p {
  font-family: 'Cairo', Tajawal, Arial, sans-serif !important;
  color: var(--tbarak-industrial-gray) !important;
  line-height: 1.85;
}

a { font-family: 'Cairo', Tajawal, Arial, sans-serif !important; }

::-webkit-scrollbar-thumb { background-color: var(--tbarak-gold) !important; }

/* =============================================================
   2. Layout Primitives
   ============================================================= */
.tbarak-section {
  padding: 56px 0;
}

.tbarak-section--cream  { background: var(--tbarak-cream); }
.tbarak-section--white  { background: var(--tbarak-white); }
.tbarak-section--charcoal {
  background: var(--tbarak-charcoal);
}
.tbarak-section--charcoal .tbarak-section-title h2,
.tbarak-section--charcoal .tbarak-section-title p { color: var(--tbarak-white) !important; }

.tbarak-section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.tbarak-section-title .tbarak-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tbarak-gold);
  background: var(--tbarak-charcoal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tbarak-section-title h2 {
  font-size: clamp(21px, 1.4vw + 16px, 26px);
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.tbarak-section-title h2::after {
  content: '';
  display: block;
  width: 54px;
  height: 4px;
  background: var(--tbarak-gold);
  border-radius: 4px;
  margin: 14px auto 0;
}

.tbarak-section-title p {
  font-size: 15px;
  color: var(--tbarak-industrial-gray) !important;
}

.tbarak-grid {
  display: grid;
  gap: 22px;
}

.tbarak-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tbarak-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tbarak-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tbarak-grid--6 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 991px) {
  .tbarak-grid--3, .tbarak-grid--4, .tbarak-grid--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tbarak-grid--2, .tbarak-grid--3, .tbarak-grid--4, .tbarak-grid--6 { grid-template-columns: 1fr; }
}

/* =============================================================
   3. Buttons
   ============================================================= */
.tbarak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--tbarak-radius-sm);
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
}

.tbarak-btn:hover { transform: translateY(-2px); }

.tbarak-btn--gold {
  background: var(--tbarak-gold);
  color: var(--tbarak-charcoal) !important;
}
.tbarak-btn--gold:hover {
  background: var(--tbarak-charcoal);
  color: var(--tbarak-white) !important;
}

.tbarak-btn--dark {
  background: var(--tbarak-charcoal);
  color: var(--tbarak-white) !important;
}
.tbarak-btn--dark:hover {
  background: var(--tbarak-gold);
  color: var(--tbarak-charcoal) !important;
}

.tbarak-btn--outline {
  background: transparent;
  border-color: var(--tbarak-charcoal);
  color: var(--tbarak-charcoal) !important;
}
.tbarak-btn--outline:hover {
  background: var(--tbarak-charcoal);
  color: var(--tbarak-white) !important;
}

.tbarak-btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--tbarak-white) !important;
}
.tbarak-btn--outline-light:hover {
  background: var(--tbarak-white);
  border-color: var(--tbarak-white);
  color: var(--tbarak-charcoal) !important;
}

.tbarak-btn--whatsapp {
  background: var(--tbarak-whatsapp);
  color: var(--tbarak-white) !important;
}
.tbarak-btn--whatsapp:hover {
  background: #1da851;
  color: var(--tbarak-white) !important;
}

.tbarak-btn--sm { padding: 9px 20px; font-size: 13px; }

.tbarak-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 576px) {
  .tbarak-btn-row { flex-direction: column; }
  .tbarak-btn-row .tbarak-btn { width: 100%; }
}

/* =============================================================
   4. Badges / Chips
   ============================================================= */
.tbarak-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tbarak-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tbarak-white);
  border: 1px solid var(--tbarak-border);
  color: var(--tbarak-charcoal);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
}
.tbarak-badge i { color: var(--tbarak-gold); font-size: 14px; }

.tbarak-badge--on-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  color: var(--tbarak-white);
}
.tbarak-badge--on-dark i { color: var(--tbarak-gold); }

.tbarak-chip {
  display: inline-block;
  background: var(--tbarak-white);
  border: 1px solid var(--tbarak-border);
  color: var(--tbarak-charcoal);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
@media (min-width: 992px) {
  .tbarak-chip:hover {
    background: var(--tbarak-gold);
    border-color: var(--tbarak-gold);
    color: var(--tbarak-charcoal);
  }
}

/* =============================================================
   5. Header — tbarak-header
   ============================================================= */
.tbarak-header {
  background: var(--tbarak-cream) !important;
  border-bottom: 1px solid var(--tbarak-border);
  box-shadow: 0 2px 18px rgba(36,40,43,0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.tbarak-header .tbarak-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--tbarak-header-h);
}

@media (max-width: 768px) {
  .tbarak-header .tbarak-header-inner { min-height: var(--tbarak-header-h-mobile); }
}

/* --- Wordmark (imgs/brand/primary-logo.png) --- */
.tbarak-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.tbarak-logo-img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .tbarak-logo-img { height: 38px; }
}

/* Footer sits on charcoal — the logo's own text is dark, so give it a
   light chip behind it rather than recolouring the source artwork. */
.tbarak-logo--footer {
  background: var(--tbarak-cream);
  border-radius: var(--tbarak-radius-sm);
  padding: 10px 16px;
  margin-bottom: 16px;
}
.tbarak-logo--footer .tbarak-logo-img { height: 40px; }

/* --- Nav --- */
.tbarak-header .navbar-collapse,
.tbarak-header .navbar-nav,
.tbarak-header .navbar-nav .nav-item,
.tbarak-header #navContent,
.tbarak-header .menu-main-menu-container {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.tbarak-header .navbar-nav .nav-link,
.tbarak-header .navbar-nav > li > a {
  background: transparent !important;
  color: var(--tbarak-charcoal) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  position: relative;
}

.tbarak-header .navbar-nav .nav-link:hover,
.tbarak-header .navbar-nav li.current-menu-item > .nav-link,
.tbarak-header .navbar-nav li.current_page_item > .nav-link {
  color: var(--tbarak-charcoal) !important;
}

.tbarak-header .navbar-nav li.current-menu-item > .nav-link::after,
.tbarak-header .navbar-nav li.current_page_item > .nav-link::after,
.tbarak-header .navbar-nav .nav-link:hover::after {
  content: '';
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--tbarak-gold);
  border-radius: 3px;
}

.tbarak-nav-cta {
  margin-inline-start: 12px;
}

/* --- Mobile toggle — hamburger with a gold "packing-tape" middle stripe,
   morphs into an X on open. Bootstrap's collapse plugin toggles
   aria-expanded on this button natively, so no extra JS is needed to
   drive the open/close animation. --- */
.tbarak-header .navbar-toggler {
  position: relative;
  width: 42px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tbarak-charcoal) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  background: var(--tbarak-cream);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
@media (max-width: 991px) {
  .tbarak-header .navbar-toggler {
    display: flex;
  }
}
.tbarak-header .navbar-toggler:hover {
  background: var(--tbarak-gold-soft);
  border-color: var(--tbarak-gold);
}
.tbarak-header .navbar-toggler:active { transform: scale(0.93); }
.tbarak-header .navbar-toggler:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tbarak-gold-soft);
}
.tbarak-header .navbar-toggler:focus { outline: none; }

.tbarak-header .navbar-toggler .navbar-toggler-icon {
  background-image: none !important;
  position: relative;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--tbarak-gold);
  display: block;
  transition: background-color 0.25s ease;
}
.tbarak-header .navbar-toggler .navbar-toggler-icon::before,
.tbarak-header .navbar-toggler .navbar-toggler-icon::after {
  content: '';
  position: absolute;
  right: 0;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--tbarak-charcoal);
  transition: top 0.3s ease, transform 0.3s ease;
}
.tbarak-header .navbar-toggler .navbar-toggler-icon::before { top: -7px; }
.tbarak-header .navbar-toggler .navbar-toggler-icon::after  { top: 7px; }

/* Open state (aria-expanded="true") — bars morph into an X, gold stripe
   tucks away. NOTE: only background-color is touched here (not opacity or
   transform) — ::before/::after are this element's own pseudo-elements,
   so opacity/transform on the parent would visually drag the X lines
   down with it too. */
.tbarak-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}
.tbarak-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.tbarak-header .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .tbarak-header .navbar-toggler,
  .tbarak-header .navbar-toggler-icon,
  .tbarak-header .navbar-toggler-icon::before,
  .tbarak-header .navbar-toggler-icon::after {
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .tbarak-header .navbar-collapse {
    background: var(--tbarak-white);
    border: 1px solid var(--tbarak-border);
    border-radius: var(--tbarak-radius-md);
    padding: 10px 18px;
    margin-top: 12px;
    box-shadow: 0 8px 24px rgba(36,40,43,0.10);
  }
  .tbarak-nav-cta { margin: 12px 0 6px; display: block; }
  .tbarak-nav-cta .tbarak-btn { width: 100%; }
}

/* Top contact strip (above main nav bar)
   — collapses smoothly on scroll (see js/tbarak-motion.js, which toggles
   body.tbarak-scrolled) so it never eats space once the user is reading
   the page; .tbarak-header below stays sticky/visible on its own. */
.tbarak-topbar {
  background: var(--tbarak-charcoal);
  padding: 6px 0;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
}
body.tbarak-scrolled .tbarak-topbar {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.tbarak-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  max-width: 100%;
  line-height: 1.3;
}
.tbarak-topbar a {
  color: var(--tbarak-white) !important;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tbarak-topbar a i { color: var(--tbarak-gold); }
.tbarak-topbar a.tbarak-topbar-whatsapp i { color: var(--tbarak-whatsapp); }

/* Narrow screens: drop the least-essential item (repeated elsewhere as a
   hero badge) so the strip stays to a single short line instead of
   wrapping/stacking and eating vertical space above the fold. */
@media (max-width: 576px) {
  .tbarak-topbar { padding: 5px 0; }
  .tbarak-topbar-inner { font-size: 11px; gap: 12px; }
  .tbarak-topbar-extra { display: none; }
}

/* =============================================================
   6. Hero — tbarak-hero
   ============================================================= */
.tbarak-hero {
  position: relative;
  overflow: hidden;
  background: var(--tbarak-cream);
  padding: 56px 0 64px;
}

.tbarak-hero-block {
  position: absolute;
  pointer-events: none;
}
.tbarak-hero-block--charcoal {
  width: 46%;
  height: 130%;
  background: var(--tbarak-charcoal);
  top: -10%;
  left: -14%;
  transform: skewX(-8deg);
}
.tbarak-hero-block--gold {
  width: 120px;
  height: 120px;
  background: var(--tbarak-gold);
  bottom: -40px;
  right: 6%;
  border-radius: var(--tbarak-radius-lg);
  transform: rotate(12deg);
}
.tbarak-hero-block--gold-sm {
  width: 46px;
  height: 46px;
  background: var(--tbarak-gold);
  top: 18%;
  right: 22%;
  border-radius: 10px;
  transform: rotate(-10deg);
  opacity: 0.9;
}

.tbarak-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 991px) {
  .tbarak-hero-grid { grid-template-columns: 1fr; }

  /* The charcoal/gold shapes are sized relative to the two-column desktop
     layout (46% width, 130% height). Once the grid stacks to one column
     they bleed across the stacked text — .tbarak-hero h1 uses the same
     charcoal color, so text can land on top of the shape and disappear.
     Decorative only (aria-hidden, pointer-events:none), so just hide them. */
  .tbarak-hero-block {
    display: none;
  }
}

.tbarak-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tbarak-charcoal);
  color: var(--tbarak-gold);
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.tbarak-hero h1 {
  font-size: clamp(26px, 3.4vw + 16px, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--tbarak-charcoal);
}

.tbarak-hero-sub {
  font-size: clamp(14.5px, 0.6vw + 13px, 17px);
  line-height: 1.9;
  color: var(--tbarak-industrial-gray) !important;
  max-width: 560px;
  margin-bottom: 28px;
}

.tbarak-hero .tbarak-btn-row { margin-bottom: 26px; }

/* =============================================================
   6b. Hero Media — Video/Poster card (tbarak-hero-media)
   -------------------------------------------------------------
   ⚠️ ضع الملفات الحقيقية هنا لاحقًا (نفس الأسماء بالضبط):
     - Poster:  imgs/tbarak/hero-poster.webp
     - Video:   videos/tbarak-hero.webm  و  videos/tbarak-hero.mp4
   الفيديو معطّل افتراضيًا (preload="none", بدون src) ويشتغل بجافاسكريبت
   (js/tbarak-media.js) فقط لو: الملف موجود فعلاً + المستخدم مش طالب
   تقليل الحركة (prefers-reduced-motion) + مش على وضع توفير بيانات
   (Save-Data) + الشاشة مش صغيرة جدًا. غير كده الـ poster بيفضل ظاهر
   وكل حاجة شغالة زي ما هي.
   ============================================================= */
.tbarak-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tbarak-hero-media { position: relative; }

.tbarak-hero-media-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(36,40,43,0.72);
  color: var(--tbarak-white);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  max-width: calc(100% - 28px);
}
.tbarak-hero-media-badge i { color: var(--tbarak-gold); flex-shrink: 0; }

.tbarak-hero-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--tbarak-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tbarak-border);
  box-shadow: 0 20px 50px rgba(36,40,43,0.14);
  background: var(--tbarak-charcoal);
}

.tbarak-hero-poster,
.tbarak-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tbarak-hero-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tbarak-hero-media.is-playing .tbarak-hero-video { opacity: 1; }
.tbarak-hero-media.is-playing .tbarak-hero-poster { opacity: 0; transition: opacity 0.6s ease 0.1s; }

.tbarak-hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,40,43,0) 55%, rgba(36,40,43,0.45) 100%);
  pointer-events: none;
}

.tbarak-hero-media-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tbarak-white);
  border: 1px solid var(--tbarak-border);
  border-radius: var(--tbarak-radius-md);
  padding: 14px 18px;
}
.tbarak-hero-media-cta p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tbarak-charcoal) !important;
}

@media (max-width: 991px) {
  .tbarak-hero-media-frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 576px) {
  .tbarak-hero-media-frame { aspect-ratio: 4 / 3; }
  .tbarak-hero-media-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* =============================================================
   7. Trust Strip — tbarak-trust-strip
   ============================================================= */
.tbarak-trust-strip {
  background: var(--tbarak-charcoal);
  padding: 26px 0;
}

.tbarak-trust-strip .tbarak-grid { gap: 16px; }

.tbarak-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
}

.tbarak-trust-item i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(242,183,5,0.14);
  color: var(--tbarak-gold);
  font-size: 20px;
}

.tbarak-trust-item span {
  color: var(--tbarak-white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

/* =============================================================
   8. Cards (generic) — used for reasons / services / problems
   ============================================================= */
.tbarak-card {
  background: var(--tbarak-white);
  border: 1px solid var(--tbarak-border);
  border-radius: var(--tbarak-radius-md);
  padding: 28px 24px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tbarak-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(36,40,43,0.10);
  border-color: var(--tbarak-gold);
}

.tbarak-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tbarak-charcoal);
  color: var(--tbarak-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.tbarak-card h3, .tbarak-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.tbarak-card p {
  font-size: 14.5px;
  margin: 0;
}

.tbarak-card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--tbarak-charcoal) !important;
  font-weight: 800;
  font-size: 13.5px;
  border-bottom: 2px solid var(--tbarak-gold);
  padding-bottom: 2px;
  text-decoration: none !important;
}

/* Service cards — tbarak-service-card (extends .tbarak-card) */
.tbarak-service-card { position: relative; }
.tbarak-service-card .tbarak-card-icon { background: var(--tbarak-gold); color: var(--tbarak-charcoal); }

/* Reason cards ("لماذا تبارك") — numbered variant */
.tbarak-reason-card { text-align: right; }
.tbarak-reason-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--tbarak-charcoal-soft);
  color: var(--tbarak-charcoal);
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 12px;
}

/* Problem cards (area pages) */
.tbarak-problem-card .tbarak-card-icon { background: var(--tbarak-border); color: var(--tbarak-charcoal); }

/* =============================================================
   9. Process — tbarak-process
   ============================================================= */
.tbarak-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: tbarak-step;
}

@media (max-width: 767px) {
  .tbarak-process { grid-template-columns: 1fr; }
}

.tbarak-process-step {
  position: relative;
  background: var(--tbarak-white);
  border: 1px solid var(--tbarak-border);
  border-inline-start: 5px solid var(--tbarak-gold);
  border-radius: var(--tbarak-radius-md);
  padding: 22px 20px;
}

.tbarak-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--tbarak-charcoal);
  color: var(--tbarak-gold);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 12px;
}

.tbarak-process-step h4,
.tbarak-process-step h5 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tbarak-process-step p { font-size: 13.5px; margin: 0; }

/* =============================================================
   10. Crane Callout — "متى تحتاج ونش؟"
   ============================================================= */
.tbarak-crane-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--tbarak-white);
  border: 1px dashed var(--tbarak-industrial-gray);
  border-radius: var(--tbarak-radius-md);
  padding: 26px 28px;
  max-width: 900px;
  margin: 0 auto;
}

.tbarak-crane-callout-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 380px;
}

.tbarak-crane-callout-text i {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tbarak-gold-soft);
  color: var(--tbarak-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.tbarak-crane-callout-text p {
  margin: 0;
  font-size: 15px;
  color: var(--tbarak-charcoal) !important;
  font-weight: 600;
}

/* =============================================================
   11. Areas
   ============================================================= */
.tbarak-areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

/* =============================================================
   12. FAQ — tbarak-faq (native <details>/<summary>)
   ============================================================= */
.tbarak-faq {
  max-width: 820px;
  margin: 0 auto;
}

.tbarak-faq-item {
  background: var(--tbarak-white);
  border: 1px solid var(--tbarak-border);
  border-radius: var(--tbarak-radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.tbarak-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--tbarak-charcoal);
}
.tbarak-faq-item summary::-webkit-details-marker { display: none; }

.tbarak-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tbarak-gold-soft);
  color: var(--tbarak-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.2s;
}
.tbarak-faq-item[open] summary::after { transform: rotate(45deg); }

.tbarak-faq-item p {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
}

/* =============================================================
   13. Final CTA — tbarak-final-cta / tbarak-cta-banner
   ============================================================= */
.tbarak-cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--tbarak-charcoal);
  padding: 64px 24px;
  text-align: center;
  border-radius: var(--tbarak-radius-lg);
}

.tbarak-cta-banner::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--tbarak-gold);
  opacity: 0.12;
  border-radius: 50%;
  filter: blur(50px);
  top: -80px;
  left: -60px;
}

.tbarak-cta-banner h2 {
  position: relative;
  z-index: 1;
  color: var(--tbarak-white) !important;
  font-size: clamp(22px, 1.6vw + 16px, 28px);
  margin-bottom: 14px;
}

.tbarak-cta-banner p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.82) !important;
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15.5px;
}

.tbarak-cta-banner .tbarak-btn-row {
  position: relative;
  z-index: 1;
  justify-content: center;
}

/* =============================================================
   14. Page Hero (inner pages: about / services / locations / contact / quote / service pages)
   ============================================================= */
.tbarak-page-hero {
  position: relative;
  overflow: hidden;
  background: var(--tbarak-charcoal);
  padding: 56px 24px 60px;
  text-align: center;
}

.tbarak-page-hero::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: var(--tbarak-gold);
  opacity: 0.10;
  border-radius: 50%;
  filter: blur(50px);
  top: -60px;
  right: -40px;
}

.tbarak-page-hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242,183,5,0.16);
  color: var(--tbarak-gold);
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.tbarak-page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--tbarak-white) !important;
  font-size: clamp(24px, 2.2vw + 16px, 34px);
  margin-bottom: 12px;
}

.tbarak-page-hero p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.85) !important;
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: 15.5px;
}

.tbarak-page-hero .tbarak-badges,
.tbarak-page-hero .tbarak-btn-row {
  position: relative;
  z-index: 1;
  justify-content: center;
}

/* =============================================================
   15. Pricing box (quote / area pages)
   ============================================================= */
.tbarak-pricing-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--tbarak-white);
  border: 1px solid var(--tbarak-border);
  border-radius: var(--tbarak-radius-lg);
  padding: 30px 28px;
}

.tbarak-pricing-box ul { list-style: none; margin: 0; padding: 0; }

.tbarak-pricing-box li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--tbarak-charcoal);
  font-size: 14.5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tbarak-border);
}
.tbarak-pricing-box li:last-child { border-bottom: none; }

.tbarak-pricing-box li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--tbarak-green);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   16. Footer — tbarak-footer
   ============================================================= */
.tbarak-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 320px at 12% -10%, rgba(242,183,5,0.10), transparent 60%),
    var(--tbarak-charcoal);
  padding-top: 86px;
}
/* Thin gold seam — a deliberate premium "close" to the page content
   above, echoing the accent line used on .tbarak-hero-block--gold. */
.tbarak-footer::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tbarak-gold), transparent);
  z-index: 2;
}

/* Photo mode — a real brand photo (see footer.php's inline
   background-image) sits behind a charcoal/gold overlay so every column's
   text keeps full contrast, same decorative-background pattern as
   .tbarak-cta-banner--photo (§13). background-attachment:fixed gives it a
   subtle parallax "reveal" as the page scrolls into the footer — the one
   piece of motion here that isn't gated behind [data-tbarak-animate],
   since it's a passive scroll effect rather than a triggered animation. */
.tbarak-footer--photo {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.tbarak-footer--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% -10%, rgba(242,183,5,0.16), transparent 60%),
    linear-gradient(180deg, rgba(36,40,43,0.90) 0%, rgba(36,40,43,0.94) 55%, rgba(36,40,43,0.97) 100%);
  z-index: 0;
}
.tbarak-footer > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  /* iOS Safari renders fixed backgrounds poorly (and repaints on every
     scroll frame on many Android devices) — drop to a normal scrolling
     background below tablet width. */
  .tbarak-footer--photo { background-attachment: scroll; }
}

.tbarak-footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px 36px;
}

@media (max-width: 991px) {
  .tbarak-footer-top { grid-template-columns: 1fr 1fr; gap: 34px 28px; }
}
@media (max-width: 576px) {
  .tbarak-footer-top { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .tbarak-footer-brand { display: flex; flex-direction: column; align-items: center; }
}

.tbarak-footer p {
  color: rgba(251,247,236,0.80) !important;
  font-size: 14px;
  line-height: 1.9;
}

.tbarak-footer-col h4 {
  position: relative;
  color: var(--tbarak-gold);
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.tbarak-footer-col h4::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: rgba(251,247,236,0.35);
}
@media (max-width: 576px) {
  .tbarak-footer-col h4::after { inset-inline-start: 50%; transform: translateX(-50%); }
}

.tbarak-footer-col ul { list-style: none; margin: 0; padding: 0; }
.tbarak-footer-col li { margin-bottom: 11px; }
.tbarak-footer-col a {
  color: rgba(251,247,236,0.85) !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: color 0.2s ease, padding-inline-start 0.2s ease;
}
.tbarak-footer-col a:hover {
  color: var(--tbarak-gold) !important;
  padding-inline-start: 6px;
}

.tbarak-footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}
@media (max-width: 576px) { .tbarak-footer-trust { justify-content: center; } }
/* Scoped to the footer so the shared .tbarak-badge--on-dark used on
   service-page heroes keeps its own look — footer badges lean gold-glass
   to match the accent used on the footer heading underlines/icons. */
.tbarak-footer-trust .tbarak-badge {
  font-size: 12.5px;
  padding: 7px 13px;
  background: rgba(242,183,5,0.10);
  border-color: rgba(242,183,5,0.35);
  color: rgba(251,247,236,0.92);
}
.tbarak-footer-trust .tbarak-badge i { color: var(--tbarak-gold); }

.tbarak-footer-contact p { margin-bottom: 16px; }
.tbarak-footer-contact .tbarak-btn-row { gap: 12px; }
.tbarak-footer-contact .tbarak-btn { box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
@media (max-width: 576px) { .tbarak-footer-contact .tbarak-btn-row { align-items: center; } }

.tbarak-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 576px) { .tbarak-footer-social { justify-content: center; } }
.tbarak-footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(242,183,5,0.08);
  border: 1px solid rgba(242,183,5,0.25);
  color: rgba(251,247,236,0.92) !important;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tbarak-footer-social a:hover {
  background: var(--tbarak-gold);
  border-color: var(--tbarak-gold);
  color: var(--tbarak-charcoal) !important;
  transform: translateY(-3px);
}

.tbarak-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  color: rgba(251,247,236,0.62);
  font-size: 13px;
  border-top: 1px solid rgba(242,183,5,0.14);
  margin-top: 4px;
}
.tbarak-footer-bottom strong { color: var(--tbarak-gold); }

@media (max-width: 576px) {
  .tbarak-footer-bottom { flex-direction: column-reverse; text-align: center; }
}

.tbarak-footer-totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(242,183,5,0.25);
  color: rgba(251,247,236,0.92) !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tbarak-footer-totop:hover {
  background: var(--tbarak-gold);
  border-color: var(--tbarak-gold);
  color: var(--tbarak-charcoal) !important;
  transform: translateY(-3px);
}

.tbarak-footer a:focus-visible {
  outline: 2px solid var(--tbarak-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Floating contact buttons */
.tbarak-footer-contact-btns {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tbarak-footer-contact-btns a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--tbarak-white);
  box-shadow: 0 8px 24px rgba(36,40,43,0.25);
  text-decoration: none !important;
  transition: transform 0.2s;
}
.tbarak-footer-contact-btns a:hover { transform: translateY(-3px) scale(1.06); }
.tbarak-footer-contact-btns .tbarak-fab-whatsapp { color: var(--tbarak-whatsapp) !important; }
.tbarak-footer-contact-btns .tbarak-fab-phone { color: var(--tbarak-charcoal) !important; }

@media (max-width: 768px) {
  .tbarak-footer-contact-btns { bottom: 16px; left: 16px; gap: 10px; }
  .tbarak-footer-contact-btns a { width: 48px; height: 48px; font-size: 19px; }
}

/* =============================================================
   17. Area Content Helpers
   (used by content pasted into the_content() on area pages —
   see area-content-samples/. Reuses .tbarak-page-hero for the hero.)
   ============================================================= */
.tbarak-area-section {
  padding: 60px 24px;
  background: var(--tbarak-white);
  text-align: right;
  direction: rtl;
}
.tbarak-area-section--soft { background: var(--tbarak-cream); }

.tbarak-area-title {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  margin: 0 auto 14px;
}
.tbarak-area-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 34px;
  font-size: 15px;
  color: var(--tbarak-industrial-gray) !important;
}

.tbarak-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 991px) { .tbarak-area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .tbarak-area-grid { grid-template-columns: 1fr; } }

/* =============================================================
   18. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .tbarak-btn, .tbarak-card, .tbarak-chip, .tbarak-footer-social a, .tbarak-footer-contact-btns a, .tbarak-footer-totop {
    transition: none !important;
  }
  .tbarak-btn:hover, .tbarak-card:hover, .tbarak-footer-contact-btns a:hover, .tbarak-footer-totop:hover {
    transform: none !important;
  }
}

/* =============================================================
   19. Content Images — card media / wide banners
   (imgs/tbarak/*.webp — كل الصور بأبعاد ثابتة aspect-ratio + object-fit
   لمنع أي Layout Shift، والـ img لها width/height في الـ HTML نفسه)
   ============================================================= */
.tbarak-card-media {
  position: relative;
  width: calc(100% + 48px);
  margin: -28px -24px 18px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--tbarak-radius-md) var(--tbarak-radius-md) 0 0;
}
.tbarak-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tbarak-card:hover .tbarak-card-media img { transform: scale(1.04); }
.tbarak-card-media img { transition: transform 0.4s ease; }

.tbarak-media-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--tbarak-radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.tbarak-media-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tbarak-media-banner--wide { aspect-ratio: 32 / 9; }

@media (max-width: 576px) {
  .tbarak-media-banner { aspect-ratio: 4 / 3; }
  .tbarak-media-banner--wide { aspect-ratio: 16 / 10; }
}

/* Final CTA with a background photo (decorative only — not content-bearing,
   so a CSS background-image here is the right call rather than an <img>). */
.tbarak-cta-banner--photo {
  background-size: cover;
  background-position: center;
}
.tbarak-cta-banner--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(36,40,43,0.72);
  z-index: 0;
}
.tbarak-cta-banner--photo h2,
.tbarak-cta-banner--photo p,
.tbarak-cta-banner--photo .tbarak-btn-row {
  z-index: 1;
}

/* =============================================================
   20. Motion System — [data-tbarak-animate] (see js/tbarak-motion.js)
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Powers .tbarak-footer-totop (href="#page") — a plain anchor jump,
     no JS needed. */
  html {
    scroll-behavior: smooth;
  }

  [data-tbarak-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--tbarak-delay, 0) * 1ms);
  }
  [data-tbarak-animate].is-visible {
    opacity: 1;
    transform: none;
  }

  @keyframes tbarak-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
  .tbarak-hero-media-badge {
    animation: tbarak-float 4.5s ease-in-out infinite;
  }
}

/* Hover motion only where a real pointer/mouse exists — avoids sticky
   :hover states on touch devices. */
@media (hover: hover) and (pointer: fine) {
  .tbarak-chip:hover {
    background: var(--tbarak-gold);
    border-color: var(--tbarak-gold);
    color: var(--tbarak-charcoal);
  }
}

/* =============================================================
   21. Floating contact buttons — avoid covering CTA rows
   (js/tbarak-motion.js adds .is-near-cta via IntersectionObserver
   when a .tbarak-cta-banner scrolls into view)
   ============================================================= */
.tbarak-footer-contact-btns {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tbarak-footer-contact-btns.is-near-cta {
  opacity: 0.001;
  pointer-events: none;
  transform: translateY(12px);
}

/* =============================================================
   22. Mobile spacing polish
   ============================================================= */
@media (max-width: 576px) {
  .tbarak-section { padding: 40px 0; }
  .tbarak-hero { padding: 40px 0 48px; }
  .tbarak-page-hero { padding: 44px 20px 48px; }
  .tbarak-cta-banner { padding: 44px 20px; }
  .tbarak-section-title { margin-bottom: 28px; }
  .tbarak-trust-item span { font-size: 13px; }
  .tbarak-footer { padding-top: 66px; }
}
