/*
Theme Name: Agile Needs – Looka Restore Refined v1.2
Theme URI: https://agileneeds.com/
Author: Agile Needs
Description: Refined restore of the archived Looka website, with responsive typography, spacing and navigation polish.
Version: 1.5
Text Domain: agile-needs-looka
*/

/* WordPress admin-bar compatibility */
html { margin-top: 0 !important; }
@media screen and (min-width: 783px) { body.admin-bar { padding-top: 32px !important; } }
@media screen and (max-width: 782px) { body.admin-bar { padding-top: 46px !important; } }

/* ---------- Global visual cleanup ---------- */
:root {
  --agile-charcoal: #3d3d3d;
  --agile-gold: #b88935;
  --agile-text: #1d1d1d;
  --agile-muted: #5f6670;
  --agile-bg: #ffffff;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  background: var(--agile-bg);
}

body,
#dm,
#dm .dmInner,
#dm .dmBody,
#dm p,
#dm a,
#dm button,
#dm input,
#dm textarea {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
}

#dm h1,
#dm h2,
#dm h3,
#dm h4,
#dm h5,
#dm h6 {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  color: var(--agile-text);
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
#dm .p_hfcontainer .u_1465769121 {
  background: var(--agile-charcoal) !important;
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  padding: 14px 0 !important;
}

#dm .p_hfcontainer .u_1465769121 > .dmRespColsWrapper {
  width: min(1320px, calc(100% - 64px)) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

#dm .p_hfcontainer div.u_1966965396,
#dm .p_hfcontainer div.u_1966965396 a {
  height: auto !important;
}

#dm .p_hfcontainer div.u_1966965396 img,
#dm .p_hfcontainer div.u_1966965396 img[dm_changed] {
  height: 62px !important;
  width: auto !important;
  max-width: 210px !important;
  object-fit: contain !important;
}

#dm .p_hfcontainer nav.u_1630621681 {
  margin: 0 auto !important;
  padding: 0 18px !important;
}

#dm .p_hfcontainer nav.u_1630621681.main-navigation.unifiednav .unifiednav__container:not([data-depth]) > .unifiednav__item-wrap > .unifiednav__item {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: #fff !important;
  padding: 14px 18px !important;
}

#dm .p_hfcontainer nav.u_1630621681 .dmNavItemSelected .nav-item-text,
#dm .p_hfcontainer nav.u_1630621681 .unifiednav__item:hover .nav-item-text {
  color: #fff !important;
}

#dm .p_hfcontainer nav.u_1630621681 .dmNavItemSelected .nav-item-text {
  font-weight: 700 !important;
}

#dm .p_hfcontainer a.u_1263589608 {
  min-height: 50px !important;
  height: 50px !important;
  max-width: 180px !important;
  margin: 0 0 0 auto !important;
  border: 1px solid rgba(255,255,255,.75) !important;
  background: #fff !important;
  color: var(--agile-charcoal) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform .2s ease, background-color .2s ease, color .2s ease !important;
}

#dm .p_hfcontainer a.u_1263589608 .text {
  color: var(--agile-charcoal) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

#dm .p_hfcontainer a.u_1263589608:hover {
  transform: translateY(-1px);
  background: var(--agile-gold) !important;
  border-color: var(--agile-gold) !important;
}

#dm .p_hfcontainer a.u_1263589608:hover .text { color: #fff !important; }

/* ---------- Hero ---------- */
#dm .dmBody div.u_1415408454 {
  padding: 92px 40px 90px !important;
  background: #fff !important;
}

#dm .dmBody div.u_1722028889 {
  width: min(1080px, calc(100% - 40px)) !important;
  max-width: 1080px !important;
  margin: 0 auto 24px !important;
}

#dm .dmBody div.u_1722028889 h1,
#dm .dmBody div.u_1722028889 h1 strong {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(44px, 4.25vw, 68px) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  color: #111 !important;
  letter-spacing: -0.035em !important;
}

#dm .dmBody #1959760117 {
  width: min(980px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
}

#dm .dmBody #1959760117 p,
#dm .dmBody #1959760117 strong {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
  color: #333 !important;
}

/* Hero image section */
#dm .dmBody div.u_1110185042 {
  min-height: 520px !important;
  background-size: cover !important;
  background-position: center 50% !important;
}

#dm .dmBody div.u_1110185042 .bgGallerySlide {
  background-position: center 50% !important;
  background-size: cover !important;
}

#dm .dmBody div.u_1531190015 { height: 520px !important; }

/* ---------- Offerings ---------- */
#dm .dmBody div.u_1818528107 {
  padding: 92px 40px !important;
}

#dm .dmBody div.u_1672453745 h1,
#dm .dmBody div.u_1672453745 h1 span {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(34px, 3vw, 46px) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}

#dm .dmBody div.u_1773077451 {
  width: min(1180px, 100%) !important;
  margin: 46px auto 0 !important;
  padding: 0 !important;
}

#dm .dmBody div.u_1773077451 h4,
#dm .dmBody div.u_1773077451 h4 span {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #171717 !important;
}

#dm .dmBody div.u_1773077451 p,
#dm .dmBody div.u_1773077451 p span {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #4a4a4a !important;
}

/* Keep Looka's hidden font test block hidden */
#dm .dmBody div.u_1414763560 { display: none !important; }

/* ---------- Lower content / gallery ---------- */
#dm .dmBody div.u_1619189340 { padding-top: 80px !important; padding-bottom: 90px !important; }
#dm .dmBody div.u_1576361154 h1,
#dm .dmBody div.u_1576361154 h1 span {
  font-size: clamp(34px, 3vw, 48px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* ---------- Footer ---------- */
#dm .dmFooter { font-family: "Montserrat", "Segoe UI", Arial, sans-serif !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  #dm .p_hfcontainer .u_1465769121 > .dmRespColsWrapper {
    width: calc(100% - 36px) !important;
  }
  #dm .p_hfcontainer div.u_1966965396 img,
  #dm .p_hfcontainer div.u_1966965396 img[dm_changed] { height: 52px !important; }
  #dm .p_hfcontainer nav.u_1630621681.main-navigation.unifiednav .unifiednav__container:not([data-depth]) > .unifiednav__item-wrap > .unifiednav__item {
    padding: 12px 10px !important;
    font-size: 14px !important;
  }
  #dm .p_hfcontainer a.u_1263589608 { max-width: 150px !important; }
  #dm .dmBody div.u_1415408454 { padding: 72px 28px !important; }
  #dm .dmBody div.u_1110185042, #dm .dmBody div.u_1531190015 { min-height: 430px !important; height: 430px !important; }
  #dm .dmBody div.u_1818528107 { padding: 72px 28px !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  #dm .p_hfcontainer .u_1465769121 {
    min-height: auto !important;
    padding: 14px 0 !important;
  }
  #dm .p_hfcontainer .u_1465769121 > .dmRespColsWrapper {
    width: calc(100% - 28px) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  #dm .p_hfcontainer .u_1392608182,
  #dm .p_hfcontainer .u_1550057671,
  #dm .p_hfcontainer .u_1005306451 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  #dm .p_hfcontainer div.u_1966965396 img,
  #dm .p_hfcontainer div.u_1966965396 img[dm_changed] {
    height: 54px !important;
    max-width: 190px !important;
    margin: 0 auto !important;
  }
  #dm .p_hfcontainer nav.u_1630621681 {
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 !important;
  }
  #dm .p_hfcontainer nav.u_1630621681 .unifiednav__container {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2px 4px !important;
  }
  #dm .p_hfcontainer nav.u_1630621681.main-navigation.unifiednav .unifiednav__container:not([data-depth]) > .unifiednav__item-wrap > .unifiednav__item {
    font-size: 13px !important;
    padding: 9px 8px !important;
  }
  #dm .p_hfcontainer a.u_1263589608 {
    max-width: 170px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 4px auto 0 !important;
  }
  #dm .dmBody div.u_1415408454 {
    padding: 56px 18px !important;
  }
  #dm .dmBody div.u_1722028889 {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  #dm .dmBody div.u_1722028889 h1,
  #dm .dmBody div.u_1722028889 h1 strong {
    font-size: clamp(34px, 10vw, 46px) !important;
    line-height: 1.1 !important;
  }
  #dm .dmBody #1959760117 {
    width: 100% !important;
  }
  #dm .dmBody #1959760117 p,
  #dm .dmBody #1959760117 strong {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }
  #dm .dmBody div.u_1110185042,
  #dm .dmBody div.u_1531190015 {
    min-height: 300px !important;
    height: 300px !important;
  }
  #dm .dmBody div.u_1818528107 {
    padding: 58px 20px !important;
  }
  #dm .dmBody div.u_1773077451 {
    margin-top: 32px !important;
  }
  #dm .dmBody div.u_1773077451 .dmRespColsWrapper {
    display: block !important;
  }
  #dm .dmBody div.u_1773077451 .dmRespCol {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
  }
  #dm .dmBody div.u_1619189340 {
    padding-top: 56px !important;
    padding-bottom: 64px !important;
  }
}


/* ---------- v1.5: keep four-image gallery; remove testimonials only ---------- */
#1347949790,
#1028223380 {
  display: none !important;
}

/* Footer contact block: keep long Riyadh address readable */
#1436495539 p {
  line-height: 1.8 !important;
  overflow-wrap: anywhere;
}


/* Agile Needs v1.7 - Selected Projects */
.agile-projects {
  background:#f7f7f7;
  padding:88px 24px 96px;
  color:#2b3e50;
}
.agile-projects__inner {
  max-width:1180px;
  margin:0 auto;
}
.agile-projects__eyebrow {
  font-family:Arial, sans-serif;
  font-size:12px;
  letter-spacing:.18em;
  font-weight:700;
  color:#9b7429;
  margin-bottom:12px;
}
.agile-projects h2 {
  margin:0 0 38px;
  font-size:46px;
  line-height:1.12;
  font-weight:600;
  color:#1f2933;
}
.agile-projects__categories {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.agile-project-category {
  position:relative;
  padding:28px 30px 26px;
  background:#fff;
  border:1px solid #e5e5e5;
  box-sizing:border-box;
}
.agile-project-category:before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:#b48a37;
}
.agile-project-category--wide {
  grid-column:1 / -1;
}
.agile-project-category h3 {
  margin:0 0 16px;
  font-size:20px;
  line-height:1.3;
  font-weight:700;
  color:#1f2933;
}
.agile-project-category ul {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:26px;
  row-gap:10px;
}
.agile-project-category li {
  position:relative;
  padding-left:16px;
  font:400 15px/1.55 Arial, sans-serif;
  color:#55606b;
}
.agile-project-category li:before {
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#b48a37;
}
.agile-projects__note {
  position:relative;
  margin:34px 0 0;
  padding:26px 34px 26px 58px;
  background:#2f2f2f;
  border-left:4px solid #b48a37;
}
.agile-projects__note-mark {
  position:absolute;
  left:24px;
  top:15px;
  font:700 38px/1 Georgia,serif;
  color:#b48a37;
}
.agile-projects__note p {
  margin:0;
  font:400 16px/1.75 Arial,sans-serif;
  color:#fff;
}
@media (max-width:900px){
  .agile-projects{padding:64px 20px 72px;}
  .agile-projects h2{font-size:38px;margin-bottom:30px;}
  .agile-projects__categories{grid-template-columns:1fr;}
  .agile-project-category--wide{grid-column:auto;}
}
@media (max-width:560px){
  .agile-projects{padding:52px 18px 60px;}
  .agile-projects h2{font-size:34px;}
  .agile-project-category{padding:24px 22px 22px;}
  .agile-project-category ul{grid-template-columns:1fr;}
  .agile-projects__note{padding:24px 22px 24px 46px;}
  .agile-projects__note p{font-size:14px;}
  .agile-projects__note-mark{left:18px;}
}

