/* ============================================
   Jawharah Construction - Custom Styles
   Primary: #05103e (Navy) | Accent: #edb524 (Gold)
   Font: Cairo (Arabic)
   ============================================ */

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

/* ─── Root Variables ─── */
:root {
  --jwh-primary: #05103e;
  --jwh-accent: #edb524;
  --jwh-accent-dark: #d4a11e;
  --jwh-accent-light: #f5cd5e;
  --jwh-dark: #0a0f2e;
  --jwh-light: #f8f9fc;
  --jwh-gray: #f0f2f8;
  --jwh-text: #333;
  --jwh-text-light: #666;
}

/* ─── Global Font Override ─── */
body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
td,
th,
label,
input,
textarea,
button,
select,
.nav,
.navbar,
.btn,
.title,
.sub-title,
.dz-title,
.dz-name,
.dz-position,
.icon-content,
.testimonial-text,
.testimonial-name,
.testimonial-position,
.footer-link,
.copyright-text,
.mail-text,
.breadcrumb,
.breadcrumb-item,
.modal-title,
.form-control,
.section-head,
.dz-separator,
.inner-content,
.silder-content,
article,
section {
  font-family: "Cairo", sans-serif !important;
}

/* ─── Color Overrides ─── */
.text-primary,
.btn-prev,
.btn-next,
.star-rating.text-primary li,
.follow-info .title.text-primary,
.testimonial-position.text-primary,
h4 .text-primary,
h2 .text-primary,
h1 .text-primary,
.section-head .title .text-primary,
.dz-position.text-primary,
.icon-cell.text-primary,
.year.text-primary,
.mail-text .text-primary,
.counter.text-primary {
  color: var(--jwh-accent) !important;
}

.bg-primary,
.btn-primary,
.dz-separator.style-2,
.progress-bar,
.icon-bx-wraper.style-1 .back,
.scroltop,
.icon-bx-wraper.style-2 .icon-bx,
.btn-icon.bg-primary,
.shadow-primary {
  background-color: var(--jwh-accent) !important;
}

.btn-primary {
  border-color: var(--jwh-accent) !important;
  color: var(--jwh-primary) !important;
  font-weight: 700 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--jwh-accent-dark) !important;
  border-color: var(--jwh-accent-dark) !important;
  color: var(--jwh-primary) !important;
}

.shadow-primary {
  box-shadow: 0 5px 15px rgba(237, 181, 36, 0.3) !important;
}

/* ─── Header/Nav Overrides ─── */
.site-header .main-bar {
  background-color: var(--jwh-primary) !important;
}

/* Logo size control + centering fix */
.logo-header img {
  max-height: 75px !important;
  width: auto !important;
}

.site-header.center .logo-header {
  position: absolute !important;
  left: 48% !important;
  transform: translateX(-50%) !important;
  z-index: 9;
}

@media only screen and (max-width: 991px) {
  .site-header.center .logo-header {
    position: static !important;
    left: auto !important;
    transform: none !important;
    float: right;
  }
}

/* Nav links vertical alignment fix */
.site-header .header-nav .nav {
  align-items: center;
}

.site-header.style-1 .header-nav .nav > li > a {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 40px 10px !important;
  line-height: 1;
}

.site-header.style-1 .header-nav .nav > li:hover > a,
.site-header.style-1 .header-nav .nav > li.active > a {
  color: var(--jwh-accent) !important;
}

.sticky-header.active .main-bar {
  background-color: var(--jwh-primary) !important;
}

.extra-nav .btn-primary {
  background-color: var(--jwh-accent) !important;
  border-color: var(--jwh-accent) !important;
}

/* Sidebar menu phone + hamburger styling */
.sidebar-menu .phone-no {
  color: var(--jwh-accent) !important;
  font-family: "Cairo", sans-serif !important;
  font-weight: 700;
  font-size: 15px;
}

.sidebar-menu .menu-btn span {
  background-color: #fff !important;
}

/* Contact Sidebar styling */
.contact-sidebar {
  background-color: var(--jwh-primary) !important;
}

.contact-sidebar .contact-box {
  background-color: var(--jwh-primary) !important;
}

.contact-sidebar .dz-title h4 {
  color: var(--jwh-accent) !important;
}

.contact-sidebar .icon-cell {
  color: var(--jwh-accent) !important;
}

.contact-sidebar .icon-content .tilte {
  color: #fff !important;
}

.contact-sidebar .icon-content p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.contact-sidebar .contact-text p {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Contact sidebar logo - smaller */
.logo-contact img {
  max-height: 60px !important;
  width: auto !important;
}

/* ─── Hero Slider - Taller ─── */
.silder-one,
.silder-one .swiper-slide,
.silder-one .silder-img {
  min-height: 100vh !important;
}

.silder-one .silder-img img {
  min-height: 100vh !important;
  object-fit: cover;
}

.silder-one .silder-content .inner-content .title {
  font-weight: 800;
  line-height: 1.4;
}

.silder-one .silder-content .inner-content .sub-title {
  color: var(--jwh-accent) !important;
  letter-spacing: 0;
  font-weight: 700;
}

/* ─── Section Titles ─── */
.section-head .title {
  font-weight: 800;
  letter-spacing: 0 !important;
}

/* ─── About Section ─── */
.year-exp {
  border-right: 4px solid var(--jwh-accent) !important;
  border-left: none !important;
}

/* ─── Values Section ─── */
.jwh-values-section {
  padding: 80px 0;
}

.jwh-value-card {
  background: #fff;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid #eee;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.jwh-value-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--jwh-accent);
  transition: height 0.4s ease;
}

.jwh-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(5, 16, 62, 0.12);
}

.jwh-value-card:hover::before {
  height: 6px;
}

.jwh-value-icon {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jwh-primary), #0d1f5c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--jwh-accent);
  transition: all 0.4s ease;
}

.jwh-value-card:hover .jwh-value-icon {
  background: var(--jwh-accent);
  color: var(--jwh-primary);
  transform: scale(1.1);
}

.jwh-value-card h5 {
  color: var(--jwh-primary);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 18px;
}

.jwh-value-card p {
  color: var(--jwh-text-light);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* ─── Vision & Mission ─── */
.jwh-vm-card {
  background: var(--jwh-primary);
  color: #fff;
  border-radius: 16px;
  padding: 45px 35px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 280px;
}

.jwh-vm-card::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: rgba(237, 181, 36, 0.1);
  border-radius: 50%;
}

.jwh-vm-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(237, 181, 36, 0.08);
  border-radius: 50%;
}

.jwh-vm-card .jwh-vm-icon {
  font-size: 40px;
  color: var(--jwh-accent);
  margin-bottom: 20px;
}

.jwh-vm-card h4 {
  color: var(--jwh-accent);
  font-weight: 700;
  margin-bottom: 15px;
}

.jwh-vm-card p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  font-size: 15px;
}

/* ─── Vision 2030 Section ─── */
.jwh-vision2030 {
  background: linear-gradient(135deg, var(--jwh-primary) 0%, #0d1f5c 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.jwh-vision2030::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/background/pattern1.png") repeat;
  opacity: 0.05;
}

.jwh-vision2030 .section-head .title {
  color: #fff;
}

.jwh-vision2030-intro {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 2;
  max-width: 800px;
  margin: 0 auto 50px;
}

.jwh-pillar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  border: 1px solid rgba(237, 181, 36, 0.15);
  transition: all 0.4s ease;
  margin-bottom: 30px;
  backdrop-filter: blur(5px);
}

.jwh-pillar:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--jwh-accent);
  transform: translateY(-5px);
}

.jwh-pillar-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--jwh-accent);
  color: var(--jwh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 900;
}

.jwh-pillar h5 {
  color: var(--jwh-accent);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 17px;
}

.jwh-pillar p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

/* ─── Why Jawharah Section ─── */
.jwh-why-section {
  padding: 80px 0;
}

.jwh-why-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.jwh-why-card:hover {
  box-shadow: 0 10px 30px rgba(5, 16, 62, 0.1);
  transform: translateY(-3px);
}

.jwh-why-num {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: var(--jwh-primary);
  color: var(--jwh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.jwh-why-card h5 {
  color: var(--jwh-primary);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 16px;
}

.jwh-why-card p {
  color: var(--jwh-text-light);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* ─── Strategic Goals ─── */
.jwh-goals-section {
  background: var(--jwh-gray);
  padding: 80px 0;
}

.jwh-goal-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  border-right: 4px solid var(--jwh-accent);
  transition: all 0.3s ease;
}

.jwh-goal-item:hover {
  box-shadow: 0 8px 25px rgba(5, 16, 62, 0.08);
}

.jwh-goal-num {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: var(--jwh-accent);
  color: var(--jwh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.jwh-goal-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--jwh-text);
  font-weight: 500;
}

/* ─── Future Vision CTA ─── */
.jwh-future-cta {
  background: linear-gradient(135deg, var(--jwh-primary), #0d1f5c);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.jwh-future-cta h2 {
  color: var(--jwh-accent);
  font-weight: 800;
  margin-bottom: 25px;
}

.jwh-future-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 2;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* ─── Management Word Section ─── */
.jwh-management-section {
  background: var(--jwh-gray);
  padding: 80px 0;
  position: relative;
}

.jwh-management-quote {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 40px rgba(5, 16, 62, 0.06);
  border-top: 4px solid var(--jwh-accent);
}

.jwh-management-quote::before {
  content: "\201C";
  font-size: 120px;
  color: var(--jwh-accent);
  opacity: 0.15;
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: Georgia, serif !important;
  line-height: 1;
}

.jwh-management-quote p {
  font-size: 15px;
  line-height: 2;
  color: var(--jwh-text);
}

/* ─── Footer Overrides ─── */
.site-footer {
  background-color: var(--jwh-primary) !important;
}

.footer-bottom {
  background-color: var(--jwh-dark) !important;
  border-top: 1px solid rgba(237, 181, 36, 0.15);
}

.footer-top .text {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .social-list li a {
  border-color: rgba(237, 181, 36, 0.3) !important;
  color: var(--jwh-accent) !important;
}

.site-footer .social-list li a:hover {
  background-color: var(--jwh-accent) !important;
  color: var(--jwh-primary) !important;
}

/* ─── Banner/Inner Pages ─── */
.dz-bnr-inr.style-1 {
  background-color: var(--jwh-primary) !important;
}

.dz-bnr-inr .dz-bnr-inr-entry h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.breadcrumb-item a {
  color: var(--jwh-accent) !important;
}

/* ─── Services Page Cards ─── */
.jwh-service-detail-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.jwh-service-detail-card:hover {
  box-shadow: 0 15px 40px rgba(5, 16, 62, 0.1);
}

.jwh-service-detail-card h5 {
  color: var(--jwh-primary);
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--jwh-accent);
}

.jwh-service-detail-card p {
  color: var(--jwh-text-light);
  line-height: 1.9;
}

/* ─── Contact Page ─── */
.jwh-contact-info-card {
  background: var(--jwh-primary);
  border-radius: 16px;
  padding: 40px 30px;
  color: #fff;
}

.jwh-contact-info-card h4 {
  color: var(--jwh-accent);
  margin-bottom: 30px;
}

.jwh-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.jwh-contact-item i {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(237, 181, 36, 0.15);
  color: var(--jwh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  min-width: 45px;
}

.jwh-contact-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

/* ─── Loading Animation ─── */
#loading-area {
  background: var(--jwh-primary) !important;
}

.loader {
  color: var(--jwh-accent) !important;
}

/* ─── Scroll to Top ─── */
.scroltop {
  background-color: var(--jwh-accent) !important;
  color: var(--jwh-primary) !important;
}

/* ─── Sub Menu ─── */
.header-nav .nav > li .sub-menu {
  background: var(--jwh-primary) !important;
  border-top: 3px solid var(--jwh-accent) !important;
}

.header-nav .nav > li .sub-menu li a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.header-nav .nav > li .sub-menu li a:hover {
  color: var(--jwh-accent) !important;
}

/* ─── Counter/Stats ─── */
.jwh-stats-section {
  background: var(--jwh-primary);
  padding: 60px 0;
}

.jwh-stat-item {
  text-align: center;
  padding: 20px;
}

.jwh-stat-item h2 {
  color: var(--jwh-accent);
  font-weight: 800;
  font-size: 42px;
  margin-bottom: 8px;
}

.jwh-stat-item h6 {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .header-nav .nav > li > a {
    color: #fff !important;
    border-bottom-color: rgba(237, 181, 36, 0.15) !important;
  }

  .jwh-vm-card {
    min-height: auto;
  }

  .site-header .header-nav {
    background-color: var(--jwh-primary) !important;
  }
}

@media (max-width: 767px) {
  .jwh-value-card {
    margin-bottom: 20px;
  }

  .jwh-why-card {
    flex-direction: column;
    text-align: center;
  }

  .jwh-why-num {
    margin: 0 auto;
  }

  .jwh-management-quote {
    padding: 25px;
  }
}

/* ─── Skin Override (overwrite skin-1 primary) ─── */
.skin .text-primary {
  color: var(--jwh-accent) !important;
}
@media screen and (max-width: 687px) {
  .logo-header img {
    max-height: 55px !important;
  }
  .logo-header a {
    display: table-cell;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px;
    height: unset;
  }
   .navicon {
    background-color: transparent;  
    box-shadow: none ;
  }
  .site-header.style-1 .header-nav .nav > li > a{
    padding: 20px 5px !important;
  }
}

body{
  overflow-x: hidden;
}

/* ─── Global Pagination Fixes for RTL ─── */
[dir="rtl"] .btn-prev {
    padding-right: 45px !important;
    padding-left: 0 !important;
}

[dir="rtl"] .btn-prev i {
    transform: none !important;
    right: 0 !important;
    left: auto !important;
}

[dir="rtl"] .btn-prev:hover i {
    right: -10px !important;
    left: auto !important;
}

[dir="rtl"] .btn-next {
    padding-left: 45px !important;
    padding-right: 0 !important;
}

[dir="rtl"] .btn-next i {
    transform: none !important;
    left: 0 !important;
    right: auto !important;
}

[dir="rtl"] .btn-next:hover i {
    left: -10px !important;
    right: auto !important;
}

/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.float-whatsapp:hover {
    background-color: #20b858;
    color: #FFF;
    transform: scale(1.1);
}

/* ─── Fix Mobile Navigation Menu Horizontal Overflow ─── */
@media only screen and (max-width: 991px) {
    #navbarNavDropdown {
        overflow-x: hidden !important;
    }
}

/* ─── Fix Missing Icon Fonts Caused by Global Cairo Override ─── */
.fab { font-family: "Font Awesome 5 Brands" !important; }
.fas, .fa { font-family: "Font Awesome 5 Free" !important; font-weight: 900 !important; }
.far { font-family: "Font Awesome 5 Free" !important; font-weight: 400 !important; }
.las, .la { font-family: "Line Awesome Free" !important; font-weight: 900 !important; }