/* ═══════════════════════════════════════
   re-furni — Shared Stylesheet
   ═══════════════════════════════════════ */

:root {
  --primary:    #C4862A;
  --primary-dk: #9A6318;
  --primary-lt: #F5E8D2;
  --teal:       #6B9E9F;
  --teal-lt:    #DFF0F0;
  --dark:       #2B1D0E;
  --mid:        #6B4E2A;
  --light-bg:   #FBF8F3;
  --card-bg:    #FFFFFF;
  --border:     #EDE6D8;
  --text:       #3A2710;
  --text-muted: #796150; /* a11y: darkened from #9A8070 (3.69:1) → 5.77:1 on #fff */
  --wa-green:   #25D366;          /* brand green — used for large/decorative fills + icons */
  --wa-green-aa:#198754;          /* a11y: AA-safe green for small white text (4.53:1) */
  --primary-text:#8A5512;         /* a11y: AA-safe gold for SMALL text only (6.2:1 on #fff, 5.1:1 on cream); brand fills keep --primary */
  --radius:     18px;
  --shadow:     0 4px 32px rgba(43,29,14,0.08);
  --shadow-lg:  0 12px 48px rgba(43,29,14,0.14);
}

* { box-sizing: border-box; }

/* ─── a11y: skip-to-content link (visible only on keyboard focus) ─── */
.skip-link {
  position: absolute;
  top: -200px;
  inset-inline-start: 16px;
  z-index: 100000;
  background: var(--dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 10px 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(43,29,14,0.35);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; outline: 3px solid var(--primary); outline-offset: 2px; }

/* ─── a11y: visible focus indicator for keyboard users everywhere ─── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
/* main landmark is programmatically focusable via skip link but shows no ring */
main:focus { outline: none; }

html { overflow-x: hidden; } /* stops horizontal scroll without breaking position:fixed */
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

/* ─── Topbar ─── */
.topbar {
  background: var(--dark);
  color: #e8d9c4;
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar a { color: var(--primary); text-decoration: none; }
.topbar i { margin-left: 5px; }

/* ─── Navbar ─── */
.navbar {
  background: rgba(251,248,243,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow .3s;
  /* anchor for the absolutely-positioned collapse panel on mobile */
  isolation: isolate;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(43,29,14,0.10); }
.navbar-brand img { height: 52px; }
.navbar-nav .nav-link {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all .2s;
  font-size: 0.95rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-lt);
}
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }
.dropdown-menu {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
}
.dropdown-item {
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text);
  transition: all .2s;
}
.dropdown-item:hover {
  background: var(--primary-lt);
  color: var(--primary);
}
.btn-whatsapp-nav {
  background: var(--wa-green-aa); /* a11y: AA-safe green (4.53:1) for small white label */
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-size: 0.88rem !important;
}
.btn-whatsapp-nav:hover {
  background: #157347 !important; /* darker still on hover */
  color: #fff !important;
}

/* ─── Hero Slider ─── */
.hero-slider {
  position: relative;
  /* JS writes --header-h on load/resize; fallback ≈ topbar 36px + navbar 72px */
  height: calc(100svh - var(--header-h, 108px));
  min-height: 520px;
  overflow: hidden;
  background: var(--dark);
}
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.hs-slide.active { opacity: 1; z-index: 2; }
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 6s ease;
}
.hs-slide.active .hs-bg { transform: scale(1); }
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
    rgba(15,8,2,0.88) 0%,
    rgba(15,8,2,0.62) 45%,
    rgba(15,8,2,0.18) 100%);
}
.hs-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}
.hs-content {
  max-width: 600px;
  padding: 0 0 80px;
}
.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,134,42,0.18);
  border: 1px solid rgba(196,134,42,0.55);
  color: #F5C97A;
  border-radius: 50px;
  padding: 6px 18px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease .15s, transform .6s ease .15s;
}
.hs-slide.active .hs-badge { opacity: 1; transform: translateX(0); }
.hs-content h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .65s ease .3s, transform .65s ease .3s;
}
.hs-slide.active .hs-content h1 { opacity: 1; transform: translateX(0); }
.hs-content h1 em { color: var(--primary); font-style: normal; }
.hs-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .65s ease .45s, transform .65s ease .45s;
}
.hs-slide.active .hs-sub { opacity: 1; transform: translateX(0); }
.hs-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .65s ease .58s, transform .65s ease .58s;
}
.hs-slide.active .hs-btns { opacity: 1; transform: translateX(0); }
.hs-outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.55);
  color: #fff;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: all .3s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hs-outline-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
/* Progress bar */
.hs-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}
.hs-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0;
}
/* Dots */
.hs-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.hs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}
.hs-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 4px;
}
/* Arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hs-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hs-prev { right: 20px; }
.hs-next { left: 20px; }
/* a11y (WCAG 2.2.2): explicit pause/play for >5s autoplay */
.hs-pause {
  position: absolute;
  bottom: 22px;
  left: 20px;
  z-index: 11;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hs-pause:hover { background: var(--primary); border-color: var(--primary); }
/* Stats bar (glassmorphism) */
.hs-stats-bar {
  position: absolute;
  bottom: 40px;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(15,8,2,0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px 0 0 16px;
  padding: 14px 24px;
}
.hs-stat {
  text-align: center;
  padding: 0 20px;
}
.hs-stat span {
  font-family: 'Cairo', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}
.hs-stat small {
  font-size: .72rem;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-top: 2px;
}
.hs-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* keep hero-badge for other pages that use it */
.hero-badge {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1.5px solid rgba(196,134,42,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #3D2810 100%);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(196,134,42,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-icon {
  width: 80px; height: 80px;
  background: rgba(196,134,42,0.2);
  border: 2px solid rgba(196,134,42,0.4);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  line-height: 1.8;
}
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ─── Buttons ─── */
.btn-primary-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(196,134,42,0.35);
  transition: all .3s;
}
.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(196,134,42,0.45);
  color: #fff;
}
.btn-wa-cta {
  background: linear-gradient(135deg, #25D366, #1da851);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
  transition: all .3s;
}
.btn-wa-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.4);
  color: #fff;
}
.btn-cta-white {
  background: #fff;
  color: var(--primary-text); /* a11y: AA-safe gold on white (6.2:1); was 3.09:1 */
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transition: all .3s;
}
.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.2);
  color: var(--primary-dk);
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-lt);
  border: 1.5px solid rgba(196,134,42,0.25);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
  transition: all .2s;
}
.contact-chip:hover { background: var(--primary); color: #fff; }

/* ─── Section commons ─── */
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.sec-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}
.sec-title span { color: var(--primary); }
.sec-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.7;
}
.sec-line {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 4px;
  margin: 14px 0;
}

/* ─── Services ─── */
.services { background: #fff; }
.svc-card {
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-lt), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  box-shadow: 0 6px 20px rgba(196,134,42,0.3);
}
.svc-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  position: relative;
}
.svc-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  position: relative;
}
.svc-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 14px;
  position: relative;
}

/* ─── About section ─── */
.about { background: var(--light-bg); }
.about-img-wrap {
  position: relative;
  border-radius: 24px;
}
.about-bg-card {
  background: linear-gradient(135deg, #F3EBD8, #EDE0C4);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.about-logo { width: 200px; filter: drop-shadow(0 8px 32px rgba(196,134,42,0.2)); }
.about-badge {
  position: absolute;
  bottom: -16px;
  left: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  border-radius: 16px;
  padding: 14px 22px;
  font-family: 'Cairo', sans-serif;
  box-shadow: 0 8px 24px rgba(196,134,42,0.35);
}
.about-badge .big { font-size: 1.5rem; font-weight: 900; }
.about-badge .sm  { font-size: 0.75rem; opacity: .85; }
.checkmark-list { list-style: none; padding: 0; margin: 0; }
.checkmark-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text);
}
.checkmark-list li .ico {
  width: 24px; height: 24px;
  background: var(--primary-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Stats ─── */
.stats {
  background: linear-gradient(135deg, var(--dark) 0%, #3D2810 100%);
  color: #fff;
}
.stat-item { text-align: center; padding: 20px; }
.stat-num {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  display: block;
}

/* ─── How it works ─── */
.how-works { background: #fff; }
.step-card { text-align: center; padding: 32px 20px; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-lt);
  border: 2.5px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ─── Blog ─── */
.blog { background: var(--light-bg); }
.blog-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  height: 100%;
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-img {
  height: 190px;
  background: linear-gradient(135deg, #F3EBD8, #E8D5B3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 22px; }
.blog-cat {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary-text); /* a11y: AA-safe gold on cream (5.1:1); was 2.56:1 */
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-body h6 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.blog-body p { font-size: 0.83rem; color: var(--text-muted); margin: 0; }
.read-more {
  color: var(--primary-text); /* a11y: AA-safe gold link on white (6.2:1); was 3.09:1 */
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
}
.read-more:hover { color: var(--primary-dk); }

/* ─── Article (blog post) ─── */
.article-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 14px;
  padding-right: 16px;
  border-right: 4px solid var(--primary);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mid);
  margin: 28px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul {
  padding-right: 20px;
  margin-bottom: 18px;
}
.article-body ul li { margin-bottom: 8px; }
.article-body ol {
  padding-right: 24px;
  margin-bottom: 18px;
}
.article-body ol li { margin-bottom: 10px; }
.article-body strong { color: var(--dark); }
/* Constrain in-body (TinyMCE) images: WP content embeds 1200px imgs that
   otherwise overflow / dominate the column, badly on mobile. */
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: var(--radius);
}
.article-body figure { max-width: 100%; margin: 18px 0; }
.article-body iframe,
.article-body video { max-width: 100%; }
.article-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-lt);
}
.related-post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color .2s;
}
.related-post:last-child { border-bottom: none; }
.related-post:hover { color: var(--primary); }
.related-post .rp-icon {
  width: 44px; height: 44px;
  background: var(--primary-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.related-post .rp-text {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
}
.cta-banner p { opacity: .85; font-size: 1rem; }

/* ─── Contact page ─── */
.contact-info-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  height: 100%;
}
.contact-info-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(196,134,42,0.3);
}
.contact-info-card h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-info-card a, .contact-info-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  margin: 0;
}
.contact-info-card a:hover { color: var(--primary); }
.contact-form-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--light-bg);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,134,42,0.1);
  background: #fff;
  color: var(--text);
  outline: none;
}
.form-label {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
/* a11y: per-field validation messages (announced via role="alert") */
.field-error {
  display: none;
  color: #b42318; /* 6.0:1 on white */
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 600;
}
.field-error:not(:empty) { display: block; }
.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: #d92d20;
}
.form-control[aria-invalid="true"]:focus,
.form-select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(217,45,32,0.15);
}

/* ─── Service page details ─── */
.feature-box {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: all .3s;
}
.feature-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.feature-box .f-icon {
  width: 52px; height: 52px;
  background: var(--primary-lt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.feature-box h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.feature-box p { font-size: 0.86rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.item-chip {
  background: var(--primary-lt);
  border: 1.5px solid rgba(196,134,42,0.25);
  border-radius: 50px;
  padding: 8px 16px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-text); /* a11y: AA-safe gold on cream (5.1:1); was 2.55:1 */
  text-align: center;
}

/* ─── Footer ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-logo { height: 70px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 16px; }
.footer-desc { font-size: 0.88rem; line-height: 1.8; max-width: 280px; }
footer h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  font-size: 1rem;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 10px; }
footer ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
footer ul li a:hover { color: var(--primary); }
footer ul li a i { font-size: 0.75rem; color: var(--primary); }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.soc-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: all .2s;
  font-size: 0.9rem;
}
.soc-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding: 18px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55); /* a11y: bumped from .4 (3.72:1) → 5.8:1 on dark footer */
}
.footer-bottom a { color: var(--primary); text-decoration: none; }

/* ─── Floating Buttons ─── */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  text-decoration: none;
}
.wa-float .wa-btn {
  width: 58px; height: 58px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all .3s;
}
.wa-float:hover .wa-btn {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
}
.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(37,211,102,0.4);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.phone-float {
  position: fixed;
  bottom: 100px;
  left: 28px;
  z-index: 9999;
  text-decoration: none;
}
.phone-float .ph-btn {
  width: 50px; height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(196,134,42,0.4);
  transition: all .3s;
}
.phone-float:hover .ph-btn { transform: scale(1.1); }

/* ─── Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ─── Service card with image ─── */
.svc-card.has-img { padding: 0; text-align: right; }
.svc-card.has-img::before { display: none; }
.svc-thumb {
  height: 175px;
  background: linear-gradient(135deg, #F3EBD8, #EDE0C4) center/cover no-repeat;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  /* overflow: hidden; */
}
.svc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.svc-card.has-img:hover .svc-thumb img { transform: scale(1.06); }
.svc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(43,29,14,.5) 0%, transparent 65%);
}
.svc-card.has-img .svc-icon {
  position: absolute;
  bottom: -22px;
  right: 18px;
  z-index: 2;
  margin-bottom: 0;
}
.svc-body { padding: 38px 22px 24px; }
.svc-card.has-img h5 { position: static; }
.svc-card.has-img p  { position: static; }
.svc-card.has-img .svc-arrow { position: static; }

/* ─── Gallery ─── */
.gallery-section { background: #fff; }
.gal-filter-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.gal-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 50px;
  padding: 9px 26px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s;
  color: var(--mid);
}
.gal-btn.active, .gal-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .3s;
  aspect-ratio: 4 / 3;
}
.gallery-item.hidden { display: none; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(43,29,14,.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.gallery-item:hover .gal-overlay { opacity: 1; }
.gal-overlay span {
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: .85rem;
  font-weight: 700;
}

/* ─── YouTube section ─── */
.yt-section { background: var(--light-bg); }
.yt-card {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: #000;
  position: relative;
  cursor: pointer;
  transition: transform .3s;
}
.yt-card:hover { transform: translateY(-4px); }
.yt-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: opacity .3s;
}
.yt-card:hover .yt-thumb { opacity: .85; }
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.yt-play-btn {
  width: 70px; height: 70px;
  background: #FF0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(255,0,0,0.5);
  transition: transform .25s;
}
.yt-card:hover .yt-play-btn { transform: scale(1.14); }
.yt-play-btn i { color: #fff; font-size: 1.5rem; margin-right: -4px; }
.yt-wrap {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
}
.yt-wrap:hover { box-shadow: var(--shadow-lg); }
.yt-info {
  padding: 18px 20px 16px;
  background: var(--card-bg);
}
.yt-channel {
  font-size: .76rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.yt-channel i { color: #FF0000; }
.yt-title {
  font-family: 'Cairo', sans-serif;
  font-size: .93rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.5;
}
.yt-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.yt-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.yt-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FF0000;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s;
  font-size: .92rem;
}
.yt-channel-btn:hover { background: #cc0000; color: #fff; transform: translateY(-2px); }

/* ─── Responsive ─── */

/* Tablet / mobile (< 992px) */
@media (max-width: 991.98px) {
  /* Topbar: shrink, keep single row */
  .topbar           { font-size: 0.75rem; padding: 5px 0; }
  .topbar a         { font-size: 0.75rem; }

  /* Navbar */
  .navbar           { padding: 6px 0; }
  .navbar-brand img { height: 44px; }

  /* ── Collapse panel floats ABOVE the page (no layout shift) ── */
  .navbar-collapse {
    position:      absolute;
    top:           100%;
    left:          0;
    right:         0;
    z-index:       1050;
    background:    var(--card-bg);
    border-radius: 0 0 18px 18px;
    padding:       4px 8px 14px;
    box-shadow:    0 16px 40px rgba(43,29,14,0.18);
    border:        1.5px solid var(--border);
    border-top:    none;
    max-height:    80svh;
    overflow-y:    auto;
    /* Bootstrap controls display:none/block; keep our styles on top */
  }

  .navbar-nav .nav-link {
    padding:       9px 10px !important;
    border-radius: 10px !important;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active { background: var(--primary-lt); }

  /* Dropdown inside mobile collapse stays static (flows inline) */
  .navbar-collapse .dropdown-menu {
    position:      static !important;
    box-shadow:    none !important;
    border:        none !important;
    background:    var(--light-bg) !important;
    border-radius: 10px !important;
    min-width:     0 !important;
    width:         100% !important;
    margin:        2px 0 6px !important;
    padding:       4px 6px !important;
  }

  .btn-whatsapp-nav {
    display:         flex !important;
    width:           100% !important;
    justify-content: center !important;
    margin:          8px 0 0 !important;
  }

  /* Slider mobile */
  .hs-stats-bar { display: none; }
  .hs-arrow     { display: none; }
  .hs-overlay {
    background: linear-gradient(to top,
      rgba(10,5,1,0.95) 0%,
      rgba(10,5,1,0.65) 45%,
      rgba(10,5,1,0.18) 100%);
  }
  .hs-inner   { align-items: flex-end; padding-bottom: 4px; }
  .hs-dots    { bottom: 14px; }
  .hs-content { padding: 0 0 68px; max-width: 100%; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small screens (< 768px) */
@media (max-width: 767.98px) {
  .section            { padding: 56px 0; }
  .section-sm         { padding: 40px 0; }
  .cta-banner         { padding: 36px 20px; }
  .contact-form-card  { padding: 24px; }
  .page-hero          { padding: 50px 0 44px; }

  /* Hero height set by JS (--header-h). Fallback ≈ topbar 32px + navbar 58px */
  .hero-slider   { height: calc(100svh - var(--header-h, 90px)); min-height: 540px; }
  .hs-content h1 { font-size: clamp(1.45rem, 5.5vw, 2rem); margin-bottom: 8px; }
  .hs-badge      { font-size: .76rem; padding: 5px 13px; margin-bottom: 12px; }
  .hs-sub        { font-size: .86rem; margin-bottom: 16px; line-height: 1.65; }
  .hs-btns       { flex-direction: column; align-items: flex-start; gap: 9px; }
  .hs-btns .btn-wa-cta,
  .hs-btns .hs-outline-btn { font-size: .83rem; padding: 11px 20px; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* XS phones */
@media (max-width: 420px) {
  .topbar-location { display: none; }
  .hs-btns .btn-wa-cta,
  .hs-btns .hs-outline-btn { width: 100%; justify-content: center; }
}

/* ─── Contact form AJAX status (Laravel integration) ─── */
.contact-status {
  margin-top: 14px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1em;
}
.contact-status.success { color: #1da851; }
.contact-status.error   { color: #c0392b; }

/* Blog category filter chips: active/clickable state (Laravel blog index) */
.item-chip.is-active,
a.item-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
a.item-chip { text-decoration: none; transition: all .2s; }

/* ═══════════════════════════════════════
   Share bar — social sharing (components/share-buttons)
   RTL · GadReda pill vocabulary · WhatsApp-first for KSA
   ═══════════════════════════════════════ */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--light-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.share-bar__label {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.share-bar__label i { color: var(--primary); }
.share-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* Pill button: icon + label, matches site's 50px-radius CTA family */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--mid);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.share-btn i { font-size: 1rem; }
.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}
.share-btn:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}

/* Brand-coloured hovers */
.share-btn--wa:hover   { background: var(--wa-green); border-color: var(--wa-green); box-shadow: 0 6px 18px rgba(37,211,102,0.35); }
.share-btn--fb:hover   { background: #1877F2; border-color: #1877F2; box-shadow: 0 6px 18px rgba(24,119,242,0.3); }
.share-btn--x:hover    { background: #000; border-color: #000; box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.share-btn--tg:hover   { background: #229ED9; border-color: #229ED9; box-shadow: 0 6px 18px rgba(34,158,217,0.3); }
.share-btn--copy:hover,
.share-btn--native:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 6px 18px rgba(196,134,42,0.3); }

/* WhatsApp leads: pre-filled brand-green so KSA users spot it first */
.share-btn--wa {
  background: var(--wa-green);
  border-color: var(--wa-green);
  color: #fff;
}
.share-btn--wa:hover { box-shadow: 0 8px 22px rgba(37,211,102,0.4); }

/* Copy confirmation state */
.share-btn--copy.is-copied {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Inside a narrow sidebar card: stack label above, let buttons go circular */
.sidebar-card .share-bar {
  margin-top: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  gap: 12px;
}
.sidebar-card .share-bar__label { display: none; }
.sidebar-card .share-btn__text { display: none; }
.sidebar-card .share-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.sidebar-card .share-btn i { font-size: 1.05rem; }

/* Responsive: tighten on small screens */
@media (max-width: 575.98px) {
  .share-bar { padding: 16px; gap: 10px; }
  .share-btn { padding: 8px 13px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .share-btn { transition: background .2s, color .2s, border-color .2s; }
  .share-btn:hover { transform: none; }

  /* a11y (WCAG 2.3.3): neutralize non-essential motion.
     Critically, .fade-up starts at opacity:0 + JS adds .visible — so we must
     FORCE content visible here, otherwise reduced-motion users see blank space. */
  .fade-up,
  .fade-up.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hs-content h2,
  .hs-slide.active .hs-content h2 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* slider auto-advance is disabled in JS under reduced-motion; freeze the
     progress bar + slide cross-fades and any decorative pulse/bounce. */
  .hs-progress-bar { transition: none !important; }
  .hs-slide { transition: none !important; }
  .wa-pulse { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Share bar — compact icon-only variant for narrow sidebars (service-detail) */
.share-bar__buttons{flex-wrap:wrap;}
.share-bar--compact .share-bar__buttons{gap:8px;justify-content:flex-start;}
.share-bar--compact .share-btn{width:42px;height:42px;border-radius:50%;padding:0;justify-content:center;}
.share-bar--compact .share-btn__text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
