/*
Theme Name:  Astra Child
Theme URI:   https://dpd.ma
Description: Child theme for Astra — DPD Trust
Author:      DPD Trust
Template:    astra
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: astra-child
*/

/* ================================
   DPD Smart Header
================================ */

nav.dpd-header,
.dpd-header{
  background:#0A2540;
  width:100%;
  position:sticky;
  top:0;
  z-index:9999;
  margin:0;
  padding:0;
  box-shadow:none !important;
  -webkit-box-shadow:none !important;
}

.dpd-header *,
.dpd-header *::before,
.dpd-header *::after{
  box-sizing:border-box;
}

.dpd-header-inner{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.dpd-logo{
  display:flex;
  align-items:center;
  text-decoration:none !important;
  flex:0 0 auto;
}

.dpd-logo-img,
nav.dpd-header a img{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  max-width:none !important;
  height:40px !important;
  width:auto !important;
}

/* Desktop nav */

.dpd-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  flex:1 1 auto;
}

.dpd-nav li,
.dpd-nav ul,
.dpd-submenu li,
.dpd-mobile-list,
.dpd-mobile-list li,
.dpd-mobile-submenu,
.dpd-mobile-submenu li{
  list-style:none !important;
  margin:0;
  padding:0;
}

.dpd-nav li::marker,
.dpd-submenu li::marker,
.dpd-mobile-list li::marker,
.dpd-mobile-submenu li::marker{
  display:none;
  content:"";
}

.dpd-menu-item,
.dpd-submenu-item{
  position:relative;
}

.dpd-menu-link{
  font-family:Space Grotesk,sans-serif;
  font-size:14px;
  font-weight:500;
  color:rgba(255,255,255,.75) !important;
  text-decoration:none !important;
  padding:8px 14px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  transition:.2s ease;
  white-space:nowrap;
}

.dpd-menu-link:hover{
  color:#fff !important;
  background:rgba(255,255,255,.08);
}

.dpd-menu-arrow{
  font-size:12px;
  line-height:1;
  opacity:.75;
}

/* Desktop submenu layer 1 */

.dpd-submenu{
  position:absolute;
  top:calc(100% + 12px);
  left:0;
  min-width:235px;
  list-style:none !important;
  margin:0 !important;
  padding:10px !important;
  border-radius:16px;
  background:#071B2F;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 22px 55px rgba(0,0,0,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.22s ease;
  z-index:10000;
}

.dpd-submenu::before{
  content:"";
  position:absolute;
  top:-12px;
  left:0;
  right:0;
  height:12px;
}

.dpd-menu-item:hover > .dpd-submenu,
.dpd-submenu-item:hover > .dpd-submenu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* Desktop submenu layer 2 / grandchild */

.dpd-submenu-nested{
  top:-10px;
  left:calc(100% + 10px);
  transform:translateX(8px);
}

.dpd-submenu-nested::before{
  top:0;
  left:-10px;
  right:auto;
  width:10px;
  height:100%;
}

.dpd-submenu-item:hover > .dpd-submenu-nested{
  opacity:1;
  visibility:visible;
  transform:translateX(0);
}

.dpd-submenu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  font-weight:500;
  color:rgba(255,255,255,.78) !important;
  text-decoration:none !important;
  padding:11px 12px;
  border-radius:10px;
  transition:.2s ease;
  white-space:nowrap;
}

.dpd-submenu a:hover{
  color:#fff !important;
  background:rgba(21,198,226,.12);
}

/* Header actions */

.dpd-header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}

/* WPML desktop language */

.dpd-lang-switcher{
  position:relative;
  flex:0 0 auto;
}

.dpd-lang-current{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.88);
  display:flex;
  align-items:center;
  gap:8px;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  font-weight:700;
  padding:9px 10px;
  border-radius:10px;
  cursor:pointer;
  transition:.2s ease;
}

.dpd-lang-current:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.dpd-lang-current i{
  color:#fff;
  font-size:15px;
}

.dpd-lang-chevron{
  font-size:10px !important;
  opacity:.7;
}

.dpd-lang-dropdown{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  min-width:220px;
  margin:0 !important;
  padding:10px !important;
  list-style:none !important;
  border-radius:16px;
  background:#071B2F;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 22px 55px rgba(0,0,0,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.22s ease;
  z-index:10000;
}

.dpd-lang-dropdown::before{
  content:"";
  position:absolute;
  top:-12px;
  left:0;
  right:0;
  height:12px;
}

.dpd-lang-switcher:hover .dpd-lang-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.dpd-lang-dropdown li{
  margin:0;
  padding:0;
  list-style:none !important;
}

.dpd-lang-option{
  display:block;
  padding:11px 12px;
  border-radius:10px;
  text-decoration:none !important;
  color:rgba(255,255,255,.78) !important;
  font-size:14px;
  font-weight:500;
  transition:.2s;
}

.dpd-lang-option:hover,
.dpd-lang-option.is-active{
  color:#fff !important;
  background:rgba(21,198,226,.12);
}

/* Login */

.dpd-login-link{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none !important;
  color:rgba(255,255,255,.86) !important;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  font-weight:700;
  padding:9px 12px;
  border-radius:10px;
  transition:.25s ease;
  white-space:nowrap;
}

.dpd-login-link i{
  color:#15C6E2;
  font-size:13px;
  transition:.25s ease;
}

.dpd-login-link:hover{
  background:rgba(255,255,255,.08);
  color:#fff !important;
}

.dpd-login-link:hover i{
  color:#fff;
}

/* Join CTA */

.dpd-header-cta{
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  font-weight:600;
  color:#0A2540 !important;
  background:linear-gradient(135deg,#22D3EE,#22C55E);
  padding:10px 20px;
  border-radius:8px;
  text-decoration:none !important;
  white-space:nowrap;
  visibility:hidden;
  transition:.2s ease;
}

.dpd-header-cta:hover{
  opacity:.9;
  color:#0A2540 !important;
}

/* Hamburger */

.dpd-hamburger{
  display:none;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:8px;
  color:#fff;
}

/* Mobile menu */

.dpd-mobile-menu{
  display:none;
  background:#0A2540;
  border-top:1px solid rgba(255,255,255,.08);
  padding:8px 24px 22px;
}

.dpd-mobile-menu.dpd-open{
  display:block;
}

.dpd-mobile-list{
  display:flex;
  flex-direction:column;
  gap:0;
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

.dpd-mobile-link{
  font-family:Inter,Arial,sans-serif;
  font-size:15px;
  font-weight:500;
  color:rgba(255,255,255,.88) !important;
  text-decoration:none !important;
  padding:13px 2px;
  border-radius:8px;
  display:block;
  transition:.2s ease;
}

.dpd-mobile-link:hover{
  color:#fff !important;
}

.dpd-mobile-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:48px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.dpd-mobile-row .dpd-mobile-link{
  flex:1;
  padding:13px 2px;
}

.dpd-mobile-sub-toggle{
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.78);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border-radius:8px;
  padding:0;
}

.dpd-mobile-sub-toggle i{
  font-size:13px;
  transition:.25s ease;
}

.has-mobile-submenu.dpd-mobile-sub-open > .dpd-mobile-row .dpd-mobile-sub-toggle i{
  transform:rotate(180deg);
  color:#15C6E2;
}

.dpd-mobile-submenu{
  display:none;
  list-style:none !important;
  margin:0 !important;
  padding:4px 0 7px 14px !important;
  border-left:1px solid rgba(21,198,226,.28);
}

.has-mobile-submenu.dpd-mobile-sub-open > .dpd-mobile-submenu{
  display:block;
}

.dpd-mobile-submenu .dpd-mobile-link,
.dpd-mobile-submenu a{
  display:block;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  font-weight:500;
  color:rgba(255,255,255,.68) !important;
  text-decoration:none !important;
  padding:8px 12px;
  border-radius:8px;
}

.dpd-mobile-level-2{
  margin-left:12px !important;
  padding-left:12px !important;
  border-left-color:rgba(254,211,3,.34);
}

.dpd-mobile-level-2 .dpd-mobile-link,
.dpd-mobile-level-2 a{
  font-size:13px;
  color:rgba(255,255,255,.58) !important;
}

.dpd-mobile-submenu a:hover,
.dpd-mobile-submenu .dpd-mobile-link:hover{
  color:#fff !important;
  background:rgba(21,198,226,.10);
}

/* Mobile language */

.dpd-mobile-lang-block{
  margin-top:10px !important;
  padding-top:12px !important;
  border-top:1px solid rgba(255,255,255,.08);
}

.dpd-mobile-lang-toggle{
  width:100%;
  border:0;
  background:transparent;
  padding:12px 2px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:rgba(255,255,255,.86);
  font-family:Inter,Arial,sans-serif;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  border-radius:8px;
}

.dpd-mobile-lang-toggle span{
  display:flex;
  align-items:center;
  gap:10px;
}

.dpd-mobile-lang-toggle i{
  color:#15C6E2;
}

.dpd-mobile-lang-arrow{
  font-size:12px;
  transition:.25s ease;
}

.dpd-mobile-lang-open .dpd-mobile-lang-arrow{
  transform:rotate(180deg);
}

.dpd-mobile-lang-list{
  display:none;
  list-style:none !important;
  margin:0 !important;
  padding:4px 0 8px 20px !important;
  gap:2px;
}

.dpd-mobile-lang-open .dpd-mobile-lang-list{
  display:grid;
}

.dpd-mobile-lang-list li{
  list-style:none !important;
}

.dpd-mobile-lang-link{
  display:block;
  color:rgba(255,255,255,.64) !important;
  text-decoration:none !important;
  font-family:Inter,Arial,sans-serif;
  font-size:14px;
  font-weight:600;
  padding:7px 10px;
  border-radius:8px;
}

.dpd-mobile-lang-link:hover,
.dpd-mobile-lang-link.is-active{
  color:#fff !important;
  background:rgba(21,198,226,.10);
}

/* Mobile login + CTA */

.dpd-mobile-login-wrap{
  margin-top:8px !important;
}

.dpd-mobile-login{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:Inter,Arial,sans-serif;
  font-size:15px;
  font-weight:700;
  color:#fff !important;
  text-decoration:none !important;
  padding:12px 20px;
  border-radius:8px;
  background:rgba(255,255,255,.08);
}

.dpd-mobile-login i{
  color:#15C6E2;
}

.dpd-mobile-cta-wrap{
  margin-top:12px !important;
}

.dpd-mobile-cta{
  font-family:Inter,Arial,sans-serif;
  font-size:15px;
  font-weight:600;
  color:#0A2540 !important;
  background:linear-gradient(135deg,#22D3EE,#22C55E);
  padding:12px 20px;
  border-radius:8px;
  text-decoration:none !important;
  display:block;
  text-align:center;
  visibility:hidden;
}

/* Responsive */

@media(max-width:1024px){
  .dpd-header-inner{
    gap:16px;
  }

  .dpd-menu-link{
    padding:8px 10px;
    font-size:13px;
  }

  .dpd-header-cta{
    padding:10px 16px;
  }
}

@media(max-width:768px){
  .dpd-header-inner{
    padding:0 18px;
  }

  .dpd-nav{
    display:none !important;
  }

  .dpd-lang-switcher,
  .dpd-login-link,
  .dpd-header-cta{
    display:none !important;
  }

  .dpd-hamburger{
    display:block !important;
  }
}

/* ================================
   DPD Smart Footer - Clean Final
================================ */

.dpd-footer{
  background:#030914;
  color:#fff;
  padding:76px 18px 28px;
  overflow:hidden;
}

.dpd-footer *,
.dpd-footer *::before,
.dpd-footer *::after{
  box-sizing:border-box;
}

.dpd-footer-wrap{
  max-width:1440px;
  margin:0 auto;
}

.dpd-footer-grid{
  display:grid;
  grid-template-columns:420px minmax(0,1fr);
  gap:90px;
  align-items:start;
}

.dpd-footer-brand{
  max-width:420px;
}

.fa-solid, .fas, .fa-regular, .far, .fa-brands, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
  font-weight: 900 !important; /* Required for Solid icons */
}
.dpd-footer-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none !important;
  margin-bottom:24px;
}

.dpd-footer-logo img{
  height:62px;
  width:auto;
  display:block;
}

.dpd-footer-brand p{
  max-width:380px;
  color:rgba(255,255,255,.82);
  font-family:"Space Grotesk",sans-serif;
  font-size:16px;
  font-weight:400;
  line-height:1.75;
  margin:0 0 28px;
}

.dpd-footer-socials{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:38px;
}

.dpd-footer-socials a{
  width:40px;
  height:40px;
  border-radius:50%;
  color:#fff !important;
  background:rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  transition:.25s ease;
}

.dpd-footer-socials a:hover{
  background:#15C6E2;
  color:#071B2F !important;
  transform:translateY(-3px);
}

.dpd-footer-subscribe h4{
  color:#fff;
  font-family:"Space Grotesk",sans-serif;
  font-size:22px;
  font-weight:500;
  letter-spacing:-.02em;
  line-height:1.25;
  margin:0 0 18px;
}

.dpd-mailpoet-placeholder{
  width:100%;
  max-width:360px;
  display:flex;
  align-items:center;
  background:#fff;
  border-radius:14px;
  padding:5px;
  border:2px solid rgba(255,255,255,.18);
  overflow:hidden;
}

.dpd-mailpoet-placeholder input{
  flex:1 1 auto;
  min-width:0;
  border:0 !important;
  outline:none !important;
  background:transparent !important;
  padding:14px 16px !important;
  color:#071B2F !important;
  font-family:"Space Grotesk",sans-serif;
  font-size:15px;
  font-weight:400;
}

.dpd-mailpoet-placeholder button{
  flex:0 0 auto;
  border:0;
  background:#071B2F;
  color:#fff;
  padding:14px 18px;
  border-radius:10px;
  font-family:"Space Grotesk",sans-serif;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:.25s ease;
  white-space:nowrap;
}

.dpd-mailpoet-placeholder button:hover{
  background:#15C6E2;
  color:#071B2F;
}

.dpd-footer-subscribe small{
  display:block;
  margin-top:12px;
  max-width:360px;
  color:rgba(255,255,255,.50);
  font-family:"Space Grotesk",sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1.6;
}

/* Menu grid */
.dpd-footer-menus{
  display:grid;
  grid-template-columns:repeat(4,minmax(165px,1fr));
  column-gap:35px;
  row-gap:42px;
  align-items:start;
}

.dpd-footer-col{
  padding:10px 0;
}

.dpd-footer-toggle{
  width:100%;
  border:0;
  background:transparent;
  color:#fff;
  padding:0;
  margin:0 0 26px;
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  gap:8px;
  text-align:left;
  cursor:default;
  white-space:normal;
  font-family:"Space Grotesk",sans-serif;
  font-size:18px;
  font-weight:500;
  letter-spacing:-.02em;
  line-height:1.22;
  text-transform:none;
}

.dpd-footer-toggle i{
  display:none;
}

.dpd-footer-col ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:grid;
  gap:14px;
}

.dpd-footer-col li{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

.dpd-footer-col li::marker{
  display:none;
  content:"";
}

.dpd-footer-col a,
.dpd-footer-empty{
  color:rgba(255,255,255,.58) !important;
  text-decoration:none !important;
  font-family:"Space Grotesk",sans-serif;
  font-size:15px;
  font-weight:400;
  line-height:1.55;
  transition:.2s ease;
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}

.dpd-footer-col a:hover{
  color:#15C6E2 !important;
}

/* Bottom */
.dpd-footer-bottom{
margin-top:40px;
padding-top:28px;
border-top:1px solid rgba(255,255,255,.10);

display:grid;
grid-template-columns:1fr auto 1fr;
align-items:center;
gap:20px;
}

.dpd-footer-bottom:before{
content:"";
}

.dpd-footer-bottom p{
margin:0;
justify-self:center;
text-align:center;

color:rgba(255,255,255,.62);
font-family:"Space Grotesk",sans-serif;
font-size:14px;
font-weight:400;
}

.dpd-footer-lang-switcher{
justify-self:end;
position:relative;
}

/* Footer language */
.dpd-footer-lang-switcher{
  position:relative;
}


.dpd-footer-lang-current{
  border:0;
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.86);
  display:flex;
  align-items:center;
  gap:8px;
  font-family:"Space Grotesk",sans-serif;
  font-size:14px;
  font-weight:400;
  padding:9px 12px;
  border-radius:10px;
  cursor:pointer;
}

.dpd-footer-lang-dropdown{
  position:absolute;
  right:0;
  bottom:calc(100% + 12px);
  min-width:200px;
  margin:0 !important;
  padding:10px !important;
  list-style:none !important;
  border-radius:16px;
  background:#071B2F;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 22px 55px rgba(0,0,0,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.22s ease;
  z-index:10000;
}

.dpd-footer-lang-open .dpd-footer-lang-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.dpd-footer-lang-dropdown li{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}

.dpd-footer-lang-option{
  display:block;
  padding:11px 12px;
  border-radius:10px;
  color:rgba(255,255,255,.78) !important;
  text-decoration:none !important;
  font-family:"Space Grotesk",sans-serif;
  font-size:14px;
  font-weight:400;
}

.dpd-footer-lang-option:hover,
.dpd-footer-lang-option.is-active{
  color:#fff !important;
  background:rgba(21,198,226,.12);
}

/* Tablet */
@media(max-width:1024px){
  .dpd-footer-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  .dpd-footer-brand{
    max-width:620px;
  }

  .dpd-footer-brand p,
  .dpd-mailpoet-placeholder,
  .dpd-footer-subscribe small{
    max-width:520px;
  }

  .dpd-footer-menus{
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:46px;
    row-gap:40px;
  }
}

/* Mobile */
@media(max-width:767px){
  .dpd-footer{
    padding:58px 18px 24px;
  }

  .dpd-footer-grid{
    grid-template-columns:1fr;
    gap:0;
  }

  .dpd-footer-brand{
    max-width:100%;
    padding-bottom:32px;
  }

  .dpd-footer-logo img{
    height:54px;
  }

  .dpd-footer-brand p{
    max-width:100%;
    font-size:15px;
  }

  .dpd-footer-socials{
    gap:12px;
  }

  .dpd-footer-socials a{
    width:38px;
    height:38px;
  }

  .dpd-mailpoet-placeholder{
    max-width:100%;
    width:100%;
  }

  .dpd-footer-menus{
    grid-template-columns:1fr;
    gap:0;
  }

  .dpd-footer-col{
    border-top:1px solid rgba(255,255,255,.10);
  }

  .dpd-footer-toggle{
    cursor:pointer;
    padding:20px 0;
    margin:0;
    font-size:18px;
    justify-content:space-between;
    align-items:center;
  }

  .dpd-footer-toggle i{
    display:block;
    font-size:13px;
    transition:.25s ease;
  }

  .dpd-footer-col ul{
    display:none;
    padding:0 0 18px !important;
    gap:11px;
  }

  .dpd-footer-col.dpd-footer-open ul{
    display:grid;
  }

  .dpd-footer-col.dpd-footer-open .dpd-footer-toggle i{
    transform:rotate(180deg);
    color:#15C6E2;
  }

.dpd-footer-bottom{
margin-top:32px;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
gap:16px;
text-align:center;
}

.dpd-footer-bottom:before{
display:none;
}

.dpd-footer-lang-switcher{
justify-self:center;
}
  .dpd-footer-lang-dropdown{
    right:50%;
    transform:translate(50%,8px);
  }

  .dpd-footer-lang-open .dpd-footer-lang-dropdown{
    transform:translate(50%,0);
  }
}

/* Very small mobile subscribe fix */
@media(max-width:480px){
  .dpd-mailpoet-placeholder{
    flex-direction:column;
    background:transparent;
    border:0;
    padding:0;
    gap:10px;
  }

  .dpd-mailpoet-placeholder input{
    width:100% !important;
    background:#fff !important;
    border-radius:12px;
  }

  .dpd-mailpoet-placeholder button{
    width:100%;
    border-radius:12px;
  }
}
