/* Aurelia 0.15.0 — global footer inspired by the approved reference.
   Structure: brand / about / services / contact + divider + back-to-top + legal row. */


/* Decorative transition above the global footer. The wave now lives in normal document
   flow, so it can never cover the final cards/links of the section above. */
.ad-footer-global-waves{
  position:relative;
  z-index:5;
  display:block;
  width:100%;
  height:84px;
  margin:0 0 -1px;
  /* The transparent area of the SVG must continue the page/last-section background,
     not introduce a separate cream strip. Pages can override the two variables below. */
  background-color:var(--ad-footer-transition-color,var(--ad-cream,#faf5ef));
  background-image:
    url('../images/footer-global-waves.svg'),
    var(--ad-footer-transition-image,none);
  background-position:center bottom,center;
  background-size:100% 100%,100% 100%;
  background-repeat:no-repeat,no-repeat;
  pointer-events:none;
}

/* About/Despre mine ends in the dusty-pink CTA. Continue that exact background
   underneath the wave spacer so there is no cream/white horizontal band. */
body.ad-about-v2-page,
body:has(.ad-about-widget-stable),
body:has(.ad-about-codecopy){
  --ad-footer-transition-color:#f1dfd9;
  --ad-footer-transition-image:linear-gradient(100deg,#e7cfca 0%,#f1dfd9 55%,#eedbd5 100%);
}


/* The Programs page ends in the same dusty-pink contact canvas. Keep that
   background beneath the wave transition so no cream band appears. */
body.ad-programs-page,
body:has(.ad-programs-widget-stable),
body:has(.ad-programs-page){
  --ad-footer-transition-color:#f1dfd9;
  --ad-footer-transition-image:linear-gradient(100deg,#e7cfca 0%,#f1dfd9 58%,#eedbd5 100%);
}

/* Curaj in Online ends in the dark editorial CTA image. Continue a matching
   plum-rose transition underneath the footer wave so there is no pale band
   between the final CTA and the global footer. */
body.ad-curaj-online-page,
body:has(.ad-curaj-online),
body:has(.ad-curaj-online-page){
  --ad-footer-transition-color:#8d5863;
  --ad-footer-transition-image:linear-gradient(118deg,#6f3948 0%,#8d5863 52%,#7a4450 100%);
}

body .ad-footer.ad-footer-global{
  --ad-footer-fg:#fffaf6;
  --ad-footer-muted:rgba(255,250,246,.76);
  --ad-footer-soft:rgba(255,250,246,.12);
  --ad-footer-line:rgba(255,250,246,.22);
  position:relative;
  z-index:5;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden;
  color:var(--ad-footer-fg)!important;
  background:
    radial-gradient(80% 150% at 8% 8%,rgba(255,255,255,.07),transparent 55%),
    radial-gradient(70% 120% at 94% 12%,rgba(255,255,255,.045),transparent 60%),
    linear-gradient(118deg,var(--ad-plum) 0%,#874a4c 54%,var(--ad-rose) 100%)!important;
}
body .ad-footer.ad-footer-global::before,
body .ad-footer.ad-footer-global::after{
  content:"";
  position:absolute;
  pointer-events:none;
  opacity:.12;
  background:url('../images/leaf-outline.svg') center/contain no-repeat;
  filter:brightness(4) saturate(0);
}
body .ad-footer.ad-footer-global::before{
  left:-75px;
  bottom:-92px;
  width:250px;
  height:300px;
  transform:rotate(-18deg);
}
body .ad-footer.ad-footer-global::after{
  right:-58px;
  top:-50px;
  width:220px;
  height:280px;
  transform:rotate(18deg) scaleX(-1);
}
body .ad-footer.ad-footer-global .ad-footer-waves{display:none!important}

.ad-footer-global a{color:inherit;text-decoration:none}
.ad-footer-global a:hover{color:#fff}
.ad-footer-global .ad-icon{display:block}

.ad-footer-global__inner{
  position:relative;
  z-index:2;
  width:min(86%,1280px)!important;
  padding:72px 0 30px;
}
.ad-footer-global__grid{
  display:grid;
  grid-template-columns:minmax(250px,1.25fr) minmax(150px,.68fr) minmax(190px,.9fr) minmax(245px,1.08fr);
  gap:clamp(34px,4vw,70px);
  align-items:start;
}
.ad-footer-global__column{min-width:0}
.ad-footer-global__brand-column{padding-right:10px}

.ad-footer-global__brand{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  max-width:250px;
  margin-bottom:23px;
}
.ad-footer-global__logo{
  display:block;
  width:auto;
  max-width:215px;
  max-height:72px;
  object-fit:contain;
  filter:brightness(0) invert(1);
  opacity:.96;
}
.ad-footer-global__brand-name{
  display:block;
  color:#fffaf6;
  font:600 clamp(29px,2.45vw,39px)/.95 var(--ad-font);
  letter-spacing:-.04em;
}
.ad-footer-global__brand-tag{
  display:block;
  margin-top:8px;
  color:rgba(255,250,246,.72);
  font:600 8px/1.35 var(--ad-ui);
  letter-spacing:.18em;
}
.ad-footer-global__intro{
  max-width:340px;
  margin:0 0 24px!important;
  color:var(--ad-footer-muted)!important;
  font:400 15px/1.68 var(--ad-font)!important;
}

.ad-footer-global__title,
.ad-footer-global .widget-title,
.ad-footer-global .wp-block-heading{
  margin:0 0 23px!important;
  color:#fffaf6!important;
  font:500 clamp(24px,1.7vw,29px)/1.1 var(--ad-font)!important;
  letter-spacing:-.015em!important;
}

.ad-footer-global__menu,
.ad-footer-global__legal-menu,
.ad-footer-global .widget_nav_menu ul,
.ad-footer-global .wp-block-navigation__container,
.ad-footer-global .wp-block-page-list{
  list-style:none;
  margin:0!important;
  padding:0!important;
}
.ad-footer-global__menu,
.ad-footer-global .widget_nav_menu ul,
.ad-footer-global .wp-block-page-list{
  display:grid;
  gap:13px;
}
.ad-footer-global__menu li,
.ad-footer-global .widget_nav_menu li,
.ad-footer-global .wp-block-page-list li{margin:0;padding:0}
.ad-footer-global__menu a,
.ad-footer-global .widget_nav_menu a,
.ad-footer-global .wp-block-page-list a{
  display:inline-block;
  color:var(--ad-footer-muted)!important;
  font:500 14px/1.35 var(--ad-ui)!important;
  transition:color .18s ease,transform .18s ease;
}
.ad-footer-global__menu a:hover,
.ad-footer-global .widget_nav_menu a:hover,
.ad-footer-global .wp-block-page-list a:hover{
  color:#fffaf6!important;
  transform:translateX(3px);
}

/* 0.89.13: social buttons stay directly below the short brand description. */
.ad-footer-global__socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:4px;
}
.ad-footer-global__socials .ad-social-link{
  --ad-social-accent:var(--ad-rose);
  position:relative;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid rgba(255,250,246,.30);
  border-radius:14px;
  color:#fffaf6!important;
  background:linear-gradient(145deg,rgba(255,250,246,.14),rgba(255,250,246,.055));
  box-shadow:0 8px 20px rgba(48,14,18,.12),inset 0 -2px 0 var(--ad-social-accent);
  backdrop-filter:blur(5px);
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.ad-footer-global__socials .ad-social-link--facebook{--ad-social-accent:var(--ad-rose)}
.ad-footer-global__socials .ad-social-link--instagram{--ad-social-accent:var(--ad-cream)}
.ad-footer-global__socials .ad-social-link--youtube{--ad-social-accent:var(--ad-rose)}
.ad-footer-global__socials .ad-social-link--tiktok{--ad-social-accent:var(--ad-sage)}
.ad-footer-global__socials .ad-social-link--spotify{--ad-social-accent:var(--ad-sage)}
.ad-footer-global__socials .ad-social-link--linkedin{--ad-social-accent:var(--ad-cream)}
.ad-footer-global__socials .ad-social-link:hover{
  color:var(--ad-plum)!important;
  background:linear-gradient(135deg,#fffaf6,#f2ddd6);
  border-color:var(--ad-social-accent);
  box-shadow:0 11px 26px rgba(48,14,18,.19),inset 0 -2px 0 var(--ad-social-accent);
  transform:translateY(-3px);
}
.ad-footer-global__socials .ad-social-link:focus-visible{outline:3px solid rgba(255,250,246,.38);outline-offset:3px}
.ad-footer-global__socials .ad-icon{width:19px;height:19px}

.ad-footer-global__contact-list{display:grid;gap:16px}
.ad-footer-global__contact-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:13px;
  align-items:center;
  min-width:0;
  color:var(--ad-footer-muted)!important;
  font:500 13px/1.45 var(--ad-ui)!important;
  overflow-wrap:anywhere;
}
.ad-footer-global__contact-item:hover{color:#fffaf6!important}
.ad-footer-global__contact-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid rgba(255,250,246,.26);
  border-radius:12px;
  color:#fffaf6;
  background:rgba(255,250,246,.06);
}
.ad-footer-global__contact-icon .ad-icon{width:20px;height:20px}

.ad-footer-global .ad-footer-widget{margin:0;color:var(--ad-footer-muted)}
.ad-footer-global .ad-footer-widget p,
.ad-footer-global .ad-footer-widget li{
  color:var(--ad-footer-muted)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.ad-footer-global .ad-footer-widget a{color:var(--ad-footer-muted)!important}
.ad-footer-global .ad-footer-widget a:hover{color:#fffaf6!important}
.ad-footer-global .ad-footer-widget img{max-width:100%;height:auto}

.ad-footer-global__divider{
  position:relative;
  display:grid;
  place-items:center;
  height:82px;
  margin-top:38px;
}
.ad-footer-global__divider>span{
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:var(--ad-footer-line);
}
.ad-footer-global__top{
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border:1px solid rgba(255,250,246,.38);
  border-radius:50%;
  color:var(--ad-plum)!important;
  background:var(--ad-cream);
  box-shadow:0 8px 24px rgba(60,24,28,.18);
  transition:transform .2s ease,background .2s ease;
}
.ad-footer-global__top:hover{
  color:var(--ad-plum)!important;
  background:#fffaf6;
  transform:translateY(-3px);
}
.ad-footer-global__top .ad-icon{width:28px;height:28px;stroke-width:2.2}

.ad-footer-global__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:6px 0 0;
}
.ad-footer-global__copyright{
  color:rgba(255,250,246,.84)!important;
  font:500 12px/1.4 var(--ad-ui)!important;
}
.ad-footer-global__legal{margin-left:auto}
.ad-footer-global__legal-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:9px 22px;
}
.ad-footer-global__legal-menu a{
  color:rgba(255,250,246,.62)!important;
  font:500 11px/1.4 var(--ad-ui)!important;
}
.ad-footer-global__legal-menu a:hover{color:#fffaf6!important;text-decoration:underline;text-underline-offset:4px}

/* WordPress block-widget normalization inside the footer pieces. */
.ad-footer-global .wp-block-group,
.ad-footer-global .wp-block-navigation,
.ad-footer-global .wp-block-social-links{margin:0}
.ad-footer-global .wp-block-social-links{gap:10px}
.ad-footer-global .wp-block-social-link{background:rgba(255,250,246,.08)!important;color:#fffaf6!important}
.ad-footer-global .wp-block-social-link:hover{background:#fffaf6!important;color:var(--ad-plum)!important}

@media (max-width:1050px){
  .ad-footer-global__inner{width:min(90%,980px)!important;padding-top:58px}
  .ad-footer-global__grid{grid-template-columns:1.15fr .85fr;gap:44px 62px}
  .ad-footer-global__brand-column{padding-right:0}
}


@media (max-width:700px){
  .ad-footer-global-waves{
    height:58px;
    margin:0 0 -1px;
    background-size:auto 100%;
  }
  body .ad-footer.ad-footer-global::before{left:-105px;bottom:-110px;width:220px;height:270px}
  body .ad-footer.ad-footer-global::after{right:-95px;top:-55px;width:190px;height:240px}
  .ad-footer-global__inner{width:calc(100% - 36px)!important;padding:46px 0 26px}
  .ad-footer-global__grid{grid-template-columns:1fr;gap:34px}
  .ad-footer-global__brand{margin-bottom:18px}
  .ad-footer-global__intro{max-width:100%;font-size:13px!important}
  .ad-footer-global__title,.ad-footer-global .widget-title,.ad-footer-global .wp-block-heading{margin-bottom:17px!important;font-size:26px!important}
  .ad-footer-global__menu,.ad-footer-global .widget_nav_menu ul,.ad-footer-global .wp-block-page-list{gap:10px}
  .ad-footer-global__menu a,.ad-footer-global .widget_nav_menu a,.ad-footer-global .wp-block-page-list a{font-size:13px!important}
  .ad-footer-global__contact-list{gap:13px}
  .ad-footer-global__divider{height:72px;margin-top:20px}
  .ad-footer-global__top{width:52px;height:52px;border-radius:50%}
  .ad-footer-global__bottom{align-items:flex-start;flex-direction:column;gap:14px;padding-top:0}
  .ad-footer-global__legal{margin-left:0}
  .ad-footer-global__legal-menu{justify-content:flex-start;gap:8px 16px}
  .ad-footer-global__copyright{font-size:11px!important}
}

@media (max-width:380px){
  .ad-footer-global__inner{width:calc(100% - 28px)!important}
  .ad-footer-global__socials .ad-social-link{width:40px;height:40px;border-radius:12px}
  .ad-footer-global__contact-item{grid-template-columns:38px minmax(0,1fr);gap:11px;font-size:12px!important}
  .ad-footer-global__contact-icon{width:36px;height:36px;border-radius:10px}
}

@media print{
  body .ad-footer.ad-footer-global{display:none!important}
}
