/* =========================================================
   BAB AL ZAHRA (BAZ) — SHARED STYLESHEET
   Use this file across every page of the site.
   Page-specific rules should go in their own file
   (e.g. css/home.css) and be linked AFTER this one.
   ========================================================= */

/* -------------------- Design Tokens -------------------- */
:root{
  --baz-blue-dark:   #0a2a63;
  --baz-blue:        #0d3184;
  --baz-blue-light:  #eaf0fb;
  --baz-orange:      #f47b20;
  --baz-orange-dark: #e0650c;
  --baz-cream:       #f7f8fb;
  --baz-white:       #ffffff;
  --baz-text:        #253045;
  --baz-text-muted:  #66708a;
  --baz-line:        #e6e9f2;

  --font-display: 'Inter', 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(10,42,99,0.06);
  --shadow-md: 0 12px 32px rgba(10,42,99,0.12);
  --shadow-lg: 0 20px 50px rgba(10,42,99,0.18);

  --container-w: 1200px;
  --transition: all 0.25s ease;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font-body);
  color: var(--baz-text);
  background: var(--baz-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
h1,h2,h3,h4{
 
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2px;
}
:focus-visible{
  outline: 3px solid var(--baz-orange);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* -------------------- Layout helpers -------------------- */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 56px 0;
}

.section--cream {
    background: var(--baz-cream);
}

.section--navy {
    background: rgb(5, 5, 126);
    color: #fff;
}

.eyebrow {
    display: inline-block;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--baz-orange);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    text-transform: uppercase;
    color: var(--baz-blue-dark);
}

.section-sub {
    color: var(--baz-text-muted);
    max-width: 640px;
    margin-top: 14px;
    font-size: 16px;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn--primary {
    background: rgb(244, 121, 13);
    color: #fff;
    box-shadow: 0 10px 24px #4747e9;
}

.btn--primary:hover {
    background: var(--baz-orange-dark);
}

.btn--outline {
    background: blue;
    color: #fbfafa;
    border: 1.5px solid rgba(0, 0, 0, 0.55);
}

.btn--outline:hover {
    background: rgba(73, 108, 232, 0.987);
    border-color: #434343;
}

.btn--phone {
    background: blue;
    color: #fff;
    border-radius: 30px;
    padding: 8px 22px;
}

.btn--phone:hover {
    background: var(--baz-blue);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav__logo img {
    height: 44px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14.5px;
}

.nav__links a {
    position: relative;
    color: var(--baz-blue-dark);
    padding: 6px 2px;
    transition: var(--transition);
}

.nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2.5px;
    background: var(--baz-orange);
    transition: var(--transition);
}

.nav__links a:hover,
.nav__links a.is-active {
    color: var(--baz-orange);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
    width: 100%;
}

/* MOBILE NAV TOGGLE */

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 10001;
}

.nav__toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 10px;
    background: currentColor;
    transition:
        transform .25s ease,
        opacity .2s ease,
        width .25s ease;
}

@media (max-width: 768px) {

    .nav__toggle.show-mobile {
        display: flex !important;
    }

}
/* -------------------- Footer -------------------- */
/* changes below */
.site-footer.footer-p {
    /* LOGO SETTINGS */
    --logo-h: 52px;       /* logo height */
    --logo-gap: 16px;     /* space between logo and BAB AL ZAHRA */

    /* COLORS */
    --f-text: #d5ddf3;
    --f-line: rgba(255, 255, 255, 0.18);
    --f-accent: #8fd0ff;  /* HQ icons */

    background: rgb(2, 2, 147);
    width: 100%;
    padding: calc(var(--logo-h) + var(--logo-gap) + 36px) 0 0 !important;
    color: #fff;
    box-sizing: border-box;
}

.site-footer.footer-p *,
.site-footer.footer-p *::before,
.site-footer.footer-p *::after {
    box-sizing: border-box;
}

/* ===== GRID: Brand | Quick Links | Services | HQ | Newsletter ===== */

.site-footer.footer-p .footer-p__grid {
    display: grid !important;
    grid-template-columns: 1.2fr 0.75fr 2.3fr 1.5fr 1.2fr;
    gap: 32px;
    align-items: start !important;

    width: 100%;
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 25px 40px !important;
}

.site-footer.footer-p .footer-p__grid > * {
    align-self: start !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== HEADINGS (same style in every column) ===== */

.site-footer.footer-p .footer-column > h4,
.site-footer.footer-p .footer-p__brand > strong {
    display: block;
    margin: 0 0 18px !important;
    padding: 0 !important;

    font-family: inherit;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

/* ===== BRAND COLUMN ===== */

.site-footer.footer-p .footer-p__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ===== LOGO (link + image) =====
   Sits in the footer's top space, takes no room in the column,
   so all headings stay on the same line. */

.site-footer.footer-p .footer-p__brand > a.footer-p__logo {
    position: absolute !important;
    left: 0 !important;
    top: calc(-1 * (var(--logo-h) + var(--logo-gap))) !important;

    display: block !important;
    width: auto !important;
    height: var(--logo-h) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    text-decoration: none;
}

.site-footer.footer-p .footer-p__brand > a.footer-p__logo img {
    display: block !important;
    width: auto !important;
    height: var(--logo-h) !important;
    max-width: none !important;
    max-height: var(--logo-h) !important;
    margin: 0 !important;

     background-color:#ffffff;
    border-radius: 10px;
    object-fit:contain;
    object-position: bottom center;
    transition: opacity 0.2s ease;
}

.site-footer.footer-p .footer-p__brand > a.footer-p__logo:hover img {
    opacity: 0.85;
}

.site-footer.footer-p .footer-p__brand > .brand-subtitle {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--f-text);
}

.site-footer.footer-p .footer-p__brand > p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--f-text);
}

/* Social icons */
.site-footer.footer-p .footer-p__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.site-footer.footer-p .footer-p__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.2s ease;
}

.site-footer.footer-p .footer-p__social a:hover {
    background: #f28c38;
}

.site-footer.footer-p .footer-p__social svg {
    width: 18px;
    height: 18px;
}

/* ===== LISTS (Quick Links + Services) ===== */

.site-footer.footer-p .footer-column ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.site-footer.footer-p .footer-column ul li {
    margin: 0 0 8px;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

.site-footer.footer-p .footer-column ul li a {
    color: var(--f-text) !important;
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.6;
    text-transform: none !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer.footer-p .footer-column ul li a:hover {
    color: #fff !important;
}

/* ===== SERVICES: columns with dividers ===== */

.site-footer.footer-p .footer-services {
    --services-gap: 40px;   /* space on EACH side of the divider line */
}

/* Works with 2 or 3 service columns: they share the width equally */
.site-footer.footer-p .footer-services .services-list {
    display: grid !important;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer.footer-p .footer-services .service-column {
    min-width: 0;
    margin: 0;
    padding: 0 var(--services-gap);
    border: 0;
}

.site-footer.footer-p .footer-services .service-column:first-child {
    padding-left: 0;
}

.site-footer.footer-p .footer-services .service-column:last-child {
    padding-right: 0;
}

.site-footer.footer-p .footer-services .service-column + .service-column {
    border-left: 1px solid var(--f-line);
}

/* ===== DUBAI HEADQUARTERS ===== */

.site-footer.footer-p .footer-hq__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--f-text);
}

.site-footer.footer-p .footer-hq__list svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--f-accent);
}

.site-footer.footer-p .footer-hq__list span,
.site-footer.footer-p .footer-hq__list a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer.footer-p .footer-hq__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 11px 16px;

     background: #25D366;
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-footer.footer-p .footer-hq__btn:hover {
    background:#25d365e2;
}

.site-footer.footer-p .footer-hq__btn svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

/* ===== NEWSLETTER ===== */

.site-footer.footer-p .footer-newsletter p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--f-text);
}

.site-footer.footer-p .footer-p__newsletter {
    display: flex;
    position: relative;
    width: 100%;
    margin: 0;
}

.site-footer.footer-p .footer-p__newsletter input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 52px 0 12px;

    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-size: 13px;
}

.site-footer.footer-p .footer-p__newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer.footer-p .footer-p__newsletter button {
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 0 5px 5px 0;
    background: #f28c38;
    color: #fff;
    cursor: pointer;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== COPYRIGHT ===== */

.site-footer.footer-p .footer-bottom {
    width: calc(100% - 50px);
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: var(--f-text);
    font-size: 13px;
}

/* ===== LAPTOP / TABLET: 2 columns, services full width ===== */

@media (max-width: 1200px) {
    .site-footer.footer-p .footer-p__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .site-footer.footer-p .footer-services {
        grid-column: 1 / -1;
    }

    .site-footer.footer-p .footer-column > h4,
    .site-footer.footer-p .footer-p__brand > strong {
        font-size: 17px;
    }
}

/* ===== MOBILE: 1 column ===== */

@media (max-width: 700px) {
    .site-footer.footer-p .footer-p__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 35px !important;
    }

    .site-footer.footer-p .footer-services .services-list {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .site-footer.footer-p .footer-services .service-column,
    .site-footer.footer-p .footer-services .service-column:first-child,
    .site-footer.footer-p .footer-services .service-column:last-child {
        padding: 0;
    }

    .site-footer.footer-p .footer-services .service-column + .service-column {
        border-left: 0;
    }

    .site-footer.footer-p .footer-bottom {
        width: calc(100% - 40px);
    }
}

/* cgt changes */


/* ===== SERVICES GRID ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  align-items: stretch;
  box-sizing: border-box;
}

/* ===== SERVICE COLUMN ===== */
.service-column {
  min-width: 0;
  padding: 8px 28px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.service-column:first-child {
  padding-left: 0;
}

.service-column:last-child {
  padding-right: 0;
  border-right: none;
}

/* ===== COLUMN HEADING ===== */
.service-column h4 {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* ===== SERVICE LINKS ===== */
.service-column ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-column li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.service-column a {
  display: inline-block;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
  text-transform: lowercase;
  overflow-wrap: anywhere;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.service-column a:hover {
  color: #ffb36b;
  padding-left: 4px;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .service-column {
    padding: 8px 22px;
  }

  .service-column:first-child {
    padding-left: 0;
  }

  .service-column:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  .service-column:last-child {
    grid-column: 1 / -1;
    padding-left: 0;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 28px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .services-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 26px;
  }

  .service-column,
  .service-column:first-child,
  .service-column:nth-child(2),
  .service-column:last-child {
    grid-column: auto;
    padding: 0 0 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-top: none;
  }

  .service-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .service-column h4 {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .service-column ul {
    gap: 12px;
  }

  .service-column a {
    font-size: 14px;
  }
}


/* -------------------- Utility -------------------- */
.text-orange{ color: var(--baz-orange); }
.mt-8{ margin-top:8px; }
.mt-16{ margin-top:16px; }
.mt-24{ margin-top:24px; }
.mt-32{ margin-top:32px; }
.hide-mobile{ display:initial; }
.show-mobile{ display:none; }

/* -------------------- Responsive: Nav -------------------- */
@media (max-width: 992px){
  .nav__links{
    position: fixed;
    top: 74px; left:0; right:0;
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    gap: 0;
    max-height: 0;
    overflow:hidden;
    box-shadow: var(--shadow-md);
    transition: max-height 0.35s ease;
  }
  .nav__links.is-open{ max-height: 480px; }
  .nav__links a{
    width:100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--baz-line);
  }
  .nav__links a::after{ display:none; }
 
  .nav .btn--phone{ display:none; }
  .hide-mobile{ display:none; }
  .show-mobile{ display:initial; }
}

@media (max-width: 600px){
  .section{ padding: 56px 0; }
  .container{ padding: 0 18px; }
}
/* =========================================
   SERVICES MEGA MENU
========================================= */

.nav__mega-wrap {
    position: relative;
}

/* SERVICE BUTTON ONLY */
.nav__mega-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--baz-blue-dark);
    font: inherit;
    cursor: pointer;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0;
    margin: 0;
}

.nav__chevron {
    transition: transform .25s ease;
}

.nav__mega-wrap.is-open .nav__chevron {
    transform: rotate(180deg);
}


/* =========================================
   DESKTOP MEGA MENU
========================================= */

.services-mega-menu {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    transform: translateX(-50%) translateY(10px);

    width: min(920px, calc(100vw - 40px));

    background: rgba(255, 255, 255, .98);

    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(15, 23, 42, .16),
        0 8px 25px rgba(15, 23, 42, .06);

    padding: 26px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    z-index: 9999;
}


/* =========================================
   ARROW
========================================= */

.services-mega-menu::before {
    content: "";

    position: absolute;

    top: -7px;
    left: 50%;

    width: 14px;
    height: 14px;

    background: #fff;

    transform: translateX(-50%) rotate(45deg);

    border-left: 1px solid rgba(15, 23, 42, .08);
    border-top: 1px solid rgba(15, 23, 42, .08);
}


/* =========================================
   OPEN ONLY WHEN SERVICE IS HOVERED
========================================= */

.nav__mega-trigger:hover+.services-mega-menu,
.nav__mega-trigger:focus-visible+.services-mega-menu,
.nav__mega-wrap.is-open .services-mega-menu {

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}
/* =========================================
   HEADER
========================================= */

.mega-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.mega-eyebrow {
    display: inline-block;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;

    color: #a67c52;

    margin-bottom: 7px;
}

.mega-header h3 {
    margin: 0 0 7px;

    font-size: 21px;
    line-height: 1.2;

    color: #111827;
}

.mega-header p {
    margin: 0;

    max-width: 500px;

    font-size: 12px;
    line-height: 1.6;

    color: #64748b;
}

.mega-view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px !important;
    border-radius: 10px;
    background: #111827 !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.mega-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
}


/* =========================================
   DIVIDER
========================================= */

.mega-divider {
    height: 1px;
    background: #edf0f3;
    margin: 22px 0;
}


/* =========================================
   GRID
========================================= */

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mega-column {
    min-width: 0;
}

.mega-column + .mega-column {
    border-left: 1px solid #edf0f3;
    padding-left: 24px;
}


/* =========================================
   COLUMN TITLE
========================================= */

.mega-column-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: #111827;

    font-size: 12px;
    font-weight: 800;
}

.mega-title-icon {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: linear-gradient(
        135deg,
        rgba(166, 124, 82, .14),
        rgba(166, 124, 82, .05)
    );

    color: #a67c52;
}

.mega-title-icon svg {
    width: 17px;
    height: 17px;
}


/* =========================================
   SERVICE ITEM
========================================= */

.mega-item {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 9px 8px;
    margin: 2px -8px;

    border-radius: 11px;

    color: #111827;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}

.mega-item:hover {
    background: #f8f8f7;
    transform: translateX(3px);
}

.service-icon {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f6f7f8;
    color: #64748b;

    transition: all .2s ease;
}

.service-icon svg {
    width: 18px;
    height: 18px;
}

.mega-item:hover .service-icon {
    background: #111827;
    color: #fff;
}

.mega-item strong {
    display: block;

    font-size: 11px;
    line-height: 1.3;

    font-weight: 700;
}

.mega-item small {
    display: block;

    margin-top: 2px;

    font-size: 9px;
    line-height: 1.3;

    color: #94a3b8;
}


/* =========================================
   FEATURE BOX
========================================= */

.mega-feature {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 10px;
    padding: 12px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8f5f1,
            #fff
        );

    border: 1px solid #eee8e0;
}

.mega-feature-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #111827;
    color: #fff;
}

.mega-feature-icon svg {
    width: 15px;
    height: 15px;
}

.mega-feature strong {
    display: block;

    font-size: 10px;
    color: #111827;
}

.mega-feature small {
    display: block;

    margin-top: 2px;

    font-size: 8px;
    color: #64748b;
}

.mega-feature > a {
    margin-left: auto;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;
    color: #111827;

    text-decoration: none;

    font-size: 14px;

    transition: all .2s ease;
}

.mega-feature > a:hover {
    background: #111827;
    color: #fff;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .nav__mega-wrap {
        width: 100%;
    }

    .nav__mega-trigger {
        width: 100%;

        justify-content: space-between;

        padding: 13px 0;
    }

    .services-mega-menu {
        position: static;

        width: 100%;

        transform: none !important;

        padding: 0;

        background: transparent;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        display: none;
    }

    .nav__mega-wrap.is-open .services-mega-menu {
        display: block;
    }

    .services-mega-menu::before {
        display: none;
    }

    .mega-header {
        display: block;

        padding: 14px 0 5px;
    }

    .mega-header h3 {
        font-size: 17px;
    }

    .mega-header p {
        font-size: 11px;
    }

    .mega-view-all {
        margin-top: 12px;
    }

    .mega-divider {
        margin: 15px 0;
    }

    .mega-grid {
        display: block;
    }

    .mega-column {
        padding: 0 !important;
        border: 0 !important;

        margin-bottom: 18px;
    }

    .mega-column-title {
        font-size: 11px;
        margin-bottom: 7px;
    }

    .mega-item {
        padding: 8px 5px;
        margin: 1px 0;
    }

    .service-icon {
        width: 32px;
        height: 32px;
    }

    .mega-item strong {
        font-size: 10px;
    }

    .mega-item small {
        font-size: 8px;
    }

    .mega-feature {
        margin-top: 8px;
    }
}
/* =========================================
   SERVICES MEGA MENU - FULL SCREEN
========================================= */

.nav__mega-wrap {
    position: static;
}

/* Invisible hover bridge */
.nav__mega-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
}

.services-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    max-width: none;

    transform: translateY(10px);

    background: rgba(255, 255, 255, 0.98);

    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.12);

    padding: 38px 5%;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;

    z-index: 9999;
}


/* Remove old arrow */
.services-mega-menu::before {
    display: none;
}


/* OPEN ON HOVER */
.nav__mega-wrap:hover .services-mega-menu,
.nav__mega-wrap.is-open .services-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* =========================================
   FULL WIDTH CONTENT
========================================= */

.services-mega-menu .mega-header,
.services-mega-menu .mega-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.services-mega-menu .mega-divider {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
#contactFormMessage {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

#contactFormMessage.contact-success {
    display: block;
    background: #eaf8ef;
    color: #18753c;
    border: 1px solid #b9e5c8;
}

#contactFormMessage.contact-error {
    display: block;
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #f1b5b5;
}

#contactSubmitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}



/* =========================================================
    New changes on 18/nov/2026
   BAB AL ZAHRA — SERVICES MEGA MENU FINAL FIX
   Fix: Dropdown opens ONLY when hovering Services.
   Preserves the existing full-width premium dropdown design.
========================================================= */

/* Header stacking */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
}

/* Main navigation becomes the dropdown positioning reference */
.nav {
    position: relative;
    z-index: 1000;
}

/* Services wrapper */
.nav__mega-wrap {
    position: static !important;
    width: auto;
}

/* REMOVE the invisible full-width hover area */
.nav__mega-wrap::after {
    content: none !important;
    display: none !important;
}

/* Services trigger */
.nav__mega-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 6px 2px;
    margin: 0;

    border: none;
    background: transparent;

    color: var(--baz-blue-dark);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;

    cursor: pointer;
    white-space: nowrap;
}

/* Services hover color */
.nav__mega-trigger:hover,
.nav__mega-wrap.is-open .nav__mega-trigger {
    color: var(--baz-orange);
}

/* Chevron */
.nav__chevron {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}

.nav__mega-wrap.is-open .nav__chevron {
    transform: rotate(180deg);
}

/* =========================================================
   DESKTOP FULL-WIDTH DROPDOWN
========================================================= */

.services-mega-menu {
    position: absolute;

    top: 100%;
    left: 50%;

    width: 100vw;
    max-width: none;

    padding: 38px 5%;

    background: rgba(255, 255, 255, .99);

    border: 0;
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-radius: 0;

    box-shadow: 0 25px 60px rgba(15, 23, 42, .12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(10px);

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;

    z-index: 9998;
}

/* Remove old dropdown arrow */
.services-mega-menu::before {
    display: none !important;
    content: none !important;
}

/* =========================================================
   OPEN DROPDOWN ONLY FROM SERVICES WRAPPER
========================================================= */

/* Mouse hover over Services or its dropdown */
.nav__mega-wrap:hover .services-mega-menu,

/* Keyboard navigation */
.nav__mega-wrap:focus-within .services-mega-menu,

/* Click toggle */
.nav__mega-wrap.is-open .services-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}

/* Keep dropdown content centered */
.services-mega-menu .mega-header,
.services-mega-menu .mega-grid,
.services-mega-menu .mega-divider {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   DESKTOP GRID
========================================================= */

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.mega-column {
    min-width: 0;
}

.mega-column + .mega-column {
    border-left: 1px solid #edf0f3;
    padding-left: 24px;
}

/* =========================================================
   TABLET AND MOBILE NAVIGATION
========================================================= */

@media (max-width: 992px) {

    .nav {
        position: relative;
    }

    .nav__mega-wrap {
        position: relative !important;
        width: 100%;
    }

    .nav__mega-trigger {
        display: flex;
        width: 100%;
        justify-content: space-between;

        padding: 16px 24px;

        text-align: left;
    }

    /* No hover-based opening on mobile */
    .nav__mega-wrap:hover .services-mega-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .services-mega-menu {
        position: static;

        width: 100%;
        max-width: 100%;

        padding: 0 24px 15px;

        background: #f8fafc;

        border: none;
        border-radius: 0;
        box-shadow: none;

        transform: none !important;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        display: none;

        transition: none;
    }

    /* Open only after tapping Services */
    .nav__mega-wrap.is-open .services-mega-menu {
        display: block;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .services-mega-menu::before {
        display: none !important;
    }

    .mega-header {
        display: block;
        padding: 15px 0;
    }

    .mega-header h3 {
        font-size: 17px;
    }

    .mega-header p {
        font-size: 12px;
    }

    .mega-view-all {
        margin-top: 12px;
    }

    .mega-divider {
        margin: 15px 0;
    }

    .mega-grid {
        display: block;
    }

    .mega-column {
        padding: 0 !important;
        border: none !important;
        margin-bottom: 20px;
    }

    .mega-column-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .mega-item {
        padding: 9px 5px;
        margin: 1px 0;
    }

    .mega-item strong {
        font-size: 11px;
    }

    .mega-item small {
        font-size: 9px;
    }

    .mega-feature {
        margin-top: 10px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .services-mega-menu {
        padding: 0 18px 15px;
    }

    .mega-header h3 {
        font-size: 16px;
    }

    .mega-column {
        margin-bottom: 16px;
    }

    .mega-item {
        gap: 9px;
    }

    .service-icon {
        width: 32px;
        height: 32px;
    }
}



