/* =========================================================
   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); }
/* changes below */
.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 / Nav -------------------- */
.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;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .nav__toggle.show-mobile {
        display: flex !important;
    }

}
/* -------------------- Footer -------------------- */
/* changes below */
.site-footer{
  background: rgb(1, 1, 155);;
  color: blue;
  position: relative;
  overflow:hidden;
}
.site-footer a:hover{ color: var(--baz-orange); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  text-align:center;
  font-size: 13.5px;
  color: #f3f5f9;
}
/* 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;
}