* /* ===== GLOBAL FIXED LAYOUT ===== */
html, body {
  margin: 0;
  padding: 0;
  background: #f2f2f2;
  overflow-x: auto;
}

.site-wrapper {
  width: 100%;
  max-width: 1440px;        /* 🔥 Responsive max-width */
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}


/* LANGUAGE CONTROL */
html[lang="en"] {
  direction: ltr;
}

html[lang="ar"] {
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}
/* ===============================
   TYPOGRAPHY – LANGUAGE AWARE
================================ */

/* Default (English) */
body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* Arabic override */
html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Arial, sans-serif;
  line-height: 1.9;
}

/* Arabic headings */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
  font-weight: 600;
  letter-spacing: 0;
}

/* ===============================
   LANGUAGE BUTTON
================================ */

.lang-btn {
  background: transparent;
  border: 1px solid #b07c3e;
  color: #b07c3e;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: #b07c3e;
  color: #fff;
}

/* Arabic look polish */
html[lang="ar"] .lang-btn {
  font-weight: 700;
}

/* TOP BAR */
.top-bar {
  background: #111;
  color: #fff;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* HEADER */
header,
.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  margin: 0;
  padding: 0;
}

.header-inner {
  max-width: 1300px;
  margin: auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
}

/* NAV */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-menu li a {
  font-weight: 600;
  font-size: 15px;
}

.menu-en,
.menu-ar {
  display: none;
}

html[lang="en"] .menu-en {
  display: flex;
}

html[lang="ar"] .menu-ar {
  display: flex;
}

/* HERO */
.hero {
  height: 320px;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
              url("assets/images/hero-placeholder.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero h1 {
  font-size: 42px;
}

/* CONTENT */
.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

h2 {
  margin-bottom: 15px;
}

/* FORM */
input, button {
  padding: 12px;
  width: 100%;
  margin-top: 10px;
}

button {
  background: #c49a4a;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #1f1f1f;
  color: #cfcfcf;
  padding: 80px 0 30px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  max-width: 80px;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.footer-col h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.footer-line {
  display: inline-block;
  color: #f2b233;
  margin-bottom: 20px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-links a {
  color: #cfcfcf;
  text-decoration: none;
}

.footer-links a:hover {
  color: #f2b233;
}

.footer-contact span {
  margin-right: 8px;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* BACK TO TOP */
.back-to-top {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  background: #c68c3a;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
}


/* HEADER */
.header-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}
.center-logo{text-align:center}
.center-logo img{height:45px}

/* HERO */
.hero-home{
  height:80vh;
  background:url("../images/hero.jpg") center/cover no-repeat;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}
.hero-content{
  position:relative;
  color:#fff;
  text-align:center;
}
.hero-content h1{font-size:42px}

/* ABOUT CARD */
.about-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
}
.about-card img{
  width:100%;
  border-radius:6px;
}

/* CTA STRIP */
.cta-strip{
  background:#b07c3e;
  color:#fff;
  padding:25px 0;
}
.cta-flex{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* SERVICES */
.services-home{padding-top:40px}
.service-card img{
  width:100%;
  height:180px;
  object-fit:cover;
}


/* SERVICES PAGE */
.services-page{
  padding-top:60px;
}
.services-grid-page{
  margin-top:40px;
}
.services-grid-page .service-card{
  text-align:left;
}
.services-grid-page h3{
  margin:15px 0 8px;
}

/* ABOUT PAGE */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
.about-image img{
  width:100%;
  border-radius:6px;
}

.mission-vision{
  background:#f5f6f7;
}
.mv-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}
.mv-card{
  background:#fff;
  padding:30px;
  border-left:4px solid #b07c3e;
}

.why-us{
  padding-top:60px;
}


/* PAGE HERO - FIXED CONSISTENT BANNER */
.page-hero,
.page-header {
  height: 45vh;
  min-height: 350px;
  background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url("https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1600")
    center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.page-hero .hero-content,
.page-header .hero-content {
  position: relative;
  z-index: 5;
  color: #fff;
  text-align: center;
}

.page-header .container {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-hero h1,
.page-header h1 {
  font-size: 42px;
  margin: 0 0 15px 0;
  color: #fff;
  font-weight: 600;
}

.page-hero p,
.page-header p {
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
  color: #fff;
}

/* CONTACT FORM SECTION */
.contact-form-section {
  padding: 60px 0;
  background: #fff;
}

.contact-form-section .container {
  margin: 0 auto;
}

.contact-form-section form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-section label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form-section input,
.contact-form-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
}

.contact-form-section textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-section button {
  margin-top: 20px;
  background: #b07c3e;
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  width: auto;
}

.contact-form-section button:hover {
  background: #966935;
}

#form-result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

#form-result.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-result.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* CONTACT DETAILS */
.contact-details {
  padding: 60px 0;
  background: #f5f6f7;
}

.contact-details .container {
  margin: 0 auto;
}

.contact-details h2 {
  margin-bottom: 25px;
}

.contact-details p {
  margin-bottom: 12px;
  font-size: 16px;
}

/* MAP SECTION */
.map-section {
  padding: 60px 0;
  background: #fff;
}

.map-section .container {
  margin: 0 auto;
}

.map-section h2 {
  margin-bottom: 25px;
  text-align: center;
}

/* HEADER GRID */
.header-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
}

/* TOP BAR */
.top-bar{
  background:#222;
  color:#fff;
  font-size:13px;
}

.cta-strip{
  background:#b07c3e;
  color:#fff;
  padding:25px 0;
}

/* VERIFICATION PAGE */
.verification-section{
  padding:80px 0;
}

.verify-box{
  max-width:500px;
  margin:auto;
  background:#fff;
  padding:40px;
  border:1px solid #eee;
  text-align:center;
}

.verify-box h2{
  margin-bottom:20px;
}

.verify-box input{
  width:100%;
  padding:14px;
  margin-bottom:20px;
  border:1px solid #ccc;
}

.verify-result{
  margin-top:20px;
  font-weight:600;
  display:none;
}

.verify-result.success{
  color:green;
}

.verify-result.error{
  color:red;
}

/* BLOG PAGE */
.blog-section{
  padding:80px 0;
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.blog-card{
  background:#fff;
  border:1px solid #eee;
  overflow:hidden;
  transition:.3s;
}

.blog-card:hover{
  transform:translateY(-6px);
}

.blog-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.blog-content{
  padding:25px;
}

.blog-content h3{
  margin-bottom:10px;
}

.blog-link{
  color:#b07c3e;
  font-weight:600;
  text-decoration:none;
}

/* BLOG POST PAGE */
.blog-post-img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  margin-bottom:30px;
}

.blog-post-content p{
  margin-bottom:15px;
  line-height:1.7;
}

/* ===============================
   TOP BAR
================================ */
.top-bar {
  background: #e5e5e5;
  color: #333;
  font-size: 13px;
  padding: 0;
  margin: 0;
}

.top-bar-flex,
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 8px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.top-bar .top-left,
.top-bar .top-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ================= HEADER (DESKTOP FINAL) ================= */

.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo img {
  height: 70px;
}

/* NAV */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list li a:hover {
  color: #b07c3e;
}

/* HAMBURGER (hidden on desktop) */
.hamburger {
  font-size: 22px;
  cursor: pointer;
  display: none;
}

/* CONTACT BUTTON */
.contact-btn {
  background: #b07c3e;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 500;
}

/* ================= MOBILE ================= */
/* ===============================
   MOBILE NAV FIX (FINAL)
================================ */
@media (max-width: 992px) {

  .nav-left,
  .nav-right {
    display: none;
    width: 100%;
  }

  .nav-left.open,
  .nav-right.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
  }

  .nav-list {
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }
}


/* ===============================
   SERVICES HOVER DROPDOWN (FINAL FIX)
================================ */

/* ensure li is positioning parent */
.nav-list li.dropdown {
  position: relative;
}

/* dropdown hidden */
.nav-list .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 99999;
}

/* show on hover */
.nav-list li.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* keep hover active */
.nav-list li.dropdown:hover > a {
  color: #b08d57;
}

/* dropdown items */
.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: #000;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #b08d57;
}


/* dropdown extras */
.dropdown-title {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #777;
  cursor: default;
}

.dropdown-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 8px 0;
}

/* ===============================
   STICKY HEADER (NO JUMP)
================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;
}

/* ===============================
   FIX ANCHOR SCROLL OFFSET
================================ */

.service-card {
  scroll-margin-top: 140px; /* height of header */
}
/* ===============================
   FIX HEADER - ALREADY DEFINED ABOVE
================================ */

/* ===============================
   HERO SLIDER
================================ */

.hero-home {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 48px;
  letter-spacing: 2px;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}


/* ===============================
   FINAL RTL HEADER FIX (100%)
================================ */

html[lang="ar"] .header-grid,
html[lang="ar"] .header-inner {
  display: flex;
  flex-direction: row;
}

/* RIGHT side menu in Arabic */
html[lang="ar"] .nav-left {
  order: 3;              /* move to right */
  justify-content: flex-end;
}

/* LOGO stays center */
html[lang="ar"] .logo {
  order: 2;
  margin: 0 auto;
}

/* LEFT side menu in Arabic */
html[lang="ar"] .nav-right {
  order: 1;              /* move to left */
  justify-content: flex-start;
}

/* Fix list direction */
html[lang="ar"] .nav-list {
  flex-direction: row;
}

/* Fix spacing */
html[lang="ar"] .nav-list li {
  margin: 0 0 0 25px;
}

html[lang="ar"] .nav-list li:first-child {
  margin-left: 0;
}

/* ===============================
   SERVICES ACCORDION
================================ */
.service-accordion {
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.service-accordion:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-header img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-header h3 {
  padding: 15px;
  text-align: center;
  font-size: 18px;
}

/* hidden content */
.service-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.service-body p {
  margin: 0;
  padding-bottom: 20px;
}

/* open */
.service-accordion.active .service-body {
  max-height: 200px;
  padding-top: 10px;
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 40px;
  gap: 20px;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 20px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 50px; /* Adjust size as needed */
}

@media (max-width: 992px) {
  .header-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-left,
  .nav-right {
    flex-basis: 100%;
    justify-content: center;
    margin: 10px 0;
  }

  .logo {
    order: -1;
    margin-bottom: 10px;
  }
}


/* Responsive top-bar */
.top-bar {
  background: #222;
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap; /* allow wrapping on small devices */
  gap: 10px;
}

.top-bar-flex span,
.top-bar-flex select {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
}

/* Responsive header */
.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 20px;
  gap: 20px;
  flex-wrap: wrap; /* allow wrapping on smaller screens */
}

/* Logo */
.logo {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

/* Navigation menus */
.nav-left,
.nav-right {
  display: flex;
  gap: 15px;
  flex: 1 1 100%;
  justify-content: center;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  cursor: pointer;
  margin-left: 10px;
}

/* Hamburger lines */
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #000;
  border-radius: 2px;
}

/* Show hamburger on narrow screens */
@media (max-width: 768px) {
  .top-bar-flex {
    flex-direction: column;
  }

  .top-bar-flex span,
  .top-bar-flex select {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .header-grid {
    justify-content: center;
  }

  .nav-left,
  .nav-right {
    display: none; /* hide nav menus by default on mobile */
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-left.open,
  .nav-right.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* Hide nav menus on small screens */
@media (max-width: 992px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Show nav menus when toggled open */
.nav-left.open,
.nav-right.open {
  display: flex;
  position: absolute;
  top: 90px; /* Just below header */
  background: #fff;
  width: 100%;
  justify-content: center;
  flex-direction: column;
}

/* Regular desktop nav */
.nav-left,
.nav-right {
  display: flex;
}