/*
 * MRM Website — Footer Component
 * Phase 9 / Step 9.12 — Footer Implementation
 * Blueprint: Brand / Navigation / Services / Contact / Social / Legal / Copyright
 */

.mrm-footer{
  position:relative;
  direction:rtl;
  color:#f4f2ea;
  background:
    radial-gradient(circle at 82% 18%,rgba(231,181,63,.08),transparent 22%),
    linear-gradient(180deg,#0e1219 0%,#0b0e14 100%);
  border-top:1px solid rgba(255,255,255,.10);
  overflow:hidden;
}

.mrm-footer-shell{
  position:relative;
  width:100%;
  margin:0 auto;
}

.mrm-footer-shell::before{
  content:"";
  position:absolute;
  top:0;
  right:-150px;
  width:360px;
  height:420px;
  opacity:.7;
  pointer-events:none;
  background:repeating-radial-gradient(ellipse at 100% 45%,transparent 0 17px,rgba(231,181,63,.20) 18px 19px,transparent 20px 31px);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 42%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#000 42%,#000 100%);
}

.mrm-footer-main{
  position:relative;
  z-index:1;
  padding:64px 38px 52px;
}

.mrm-footer-grid{
  display:grid;
  grid-template-columns:1.7fr 1fr 1fr 1fr;
  gap:0;
  direction:rtl;
}

.mrm-footer-brand,
.mrm-footer-column{
  min-width:0;
  padding:0 30px;
}

.mrm-footer-brand{
  padding-right:8px;
  padding-left:42px;
}

.mrm-footer-column + .mrm-footer-column,
.mrm-footer-contact{
  border-right:1px solid rgba(255,255,255,.09);
}

.mrm-footer-brand__visual{
  position:relative;
  min-height:88px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  text-decoration:none;
}

.mrm-footer-logo-image{
  width:178px;
  height:72px;
  display:block;
  object-fit:contain;
  object-position:right top;
  mix-blend-mode:screen;
}

.mrm-footer-brand__wave{
  position:absolute;
  top:-22px;
  right:-65px;
  width:270px;
  height:260px;
  border-radius:50%;
  opacity:.34;
  background:repeating-radial-gradient(ellipse at 100% 50%,transparent 0 13px,rgba(231,181,63,.20) 14px 15px,transparent 16px 25px);
  pointer-events:none;
}

.mrm-footer-brand__content{
  position:relative;
  z-index:1;
  text-align:right;
}

.mrm-footer-brand__content h2{
  margin:0 0 8px;
  color:#f7f4ec;
  font-size:28px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.035em;
}

.mrm-footer-brand__role{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  color:#e7b53f;
  font-size:13px;
  font-weight:800;
}

.mrm-footer-brand__role span{
  width:22px;
  height:1px;
  background:#e7b53f;
}

.mrm-footer-brand__description{
  max-width:520px;
  margin:26px 0 0;
  color:#aeb3bd;
  font-size:12px;
  line-height:2.15;
}

.mrm-footer-brand__cta{
  margin-top:25px;
  min-height:50px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  color:#e7b53f;
  border:1px solid #e7b53f;
  border-radius:9px;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  transition:transform .22s ease,background .22s ease,color .22s ease,box-shadow .22s ease;
}

.mrm-footer-brand__cta:hover{
  color:#11151c;
  background:#e7b53f;
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(231,181,63,.18);
}

.mrm-footer-social{
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  direction:ltr;
}

.mrm-footer-social a{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#e7b53f;
  border:1px solid rgba(231,181,63,.28);
  border-radius:50%;
  background:rgba(255,255,255,.015);
  text-decoration:none;
  transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease;
}

.mrm-footer-social a:hover{
  color:#11151c;
  background:#e7b53f;
  border-color:#e7b53f;
  transform:translateY(-3px);
}

.mrm-footer-social svg{
  width:19px;
  height:19px;
  fill:currentColor;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.mrm-footer-column{
  text-align:right;
}

.mrm-footer-column h3{
  margin:7px 0 13px;
  color:#f5f2ea;
  font-size:17px;
  font-weight:850;
}

.mrm-footer-column__line{
  display:block;
  width:42px;
  height:2px;
  margin-bottom:23px;
  background:#e7b53f;
}

.mrm-footer-column ul,
.mrm-footer-column .mrm-footer-nav{
  margin:0;
  padding:0;
  list-style:none;
}

.mrm-footer-column li + li{
  margin-top:15px;
}

.mrm-footer-column li a{
  position:relative;
  display:block;
  padding-right:25px;
  color:#d5d7d8;
  text-align:right;
  text-decoration:none;
  font-size:12px;
  line-height:1.6;
  transition:color .2s ease,transform .2s ease;
}

.mrm-footer-column li a span{
  position:absolute;
  top:50%;
  right:0;
  width:17px;
  height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#e7b53f;
  font-size:19px;
  line-height:1;
  transform:translateY(-50%) rotate(180deg);
}

.mrm-footer-column li a:hover{
  color:#e7b53f;
  transform:translateX(-3px);
}

.mrm-footer-contact__items{
  display:flex;
  flex-direction:column;
}

.mrm-footer-contact__item{
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px 0;
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.mrm-footer-contact__item:last-child{
  border-bottom:0;
}

.mrm-footer-contact__icon{
  width:45px;
  height:45px;
  flex:0 0 45px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#e7b53f;
  border:1px solid rgba(231,181,63,.35);
  border-radius:50%;
  background:rgba(255,255,255,.015);
  font-size:18px;
}

.mrm-footer-contact__item strong,
.mrm-footer-contact__item small{
  display:block;
}

.mrm-footer-contact__item strong{
  margin-bottom:4px;
  color:#f1eee6;
  font-size:12px;
}

.mrm-footer-contact__item small{
  color:#aeb3bd;
  font-size:11px;
  line-height:1.7;
}

.mrm-footer-contact__item--cta:hover strong,
.mrm-footer-contact__item--cta:hover small{
  color:#e7b53f;
}

.mrm-footer-bottom{
  position:relative;
  z-index:1;
  min-height:76px;
  padding:0 38px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:20px;
  border-top:1px solid rgba(255,255,255,.10);
}

.mrm-footer-bottom__copyright{
  color:#8f96a1;
  font-size:11px;
  text-align:center;
  grid-column:2;
}

.mrm-footer-legal{
  grid-column:3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:13px;
  color:#888f99;
  font-size:11px;
}

.mrm-footer-legal a{
  color:inherit;
  text-decoration:none;
  transition:color .2s ease;
}

.mrm-footer-legal a:hover{
  color:#e7b53f;
}

.mrm-scroll-up-section{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:9999;
}

.mrm-scroll-up{
  position:relative;
  width:42px;
  height:42px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#e7b53f;
  background:#0b0e14;
  border:1px solid rgba(231,181,63,.85);
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 0 20px rgba(231,181,63,.20);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .25s ease,visibility .25s ease,transform .25s ease,background .25s ease,color .25s ease;
}


.mrm-scroll-up.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.mrm-scroll-up:hover{
  color:#11151c;
  background:#e7b53f;
  transform:translateY(0) scale(1.04);
}

.mrm-scroll-up svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media(max-width:1050px){
  .mrm-footer-grid{
    grid-template-columns:1.5fr repeat(3,1fr);
  }

  .mrm-footer-brand{
    padding-left:28px;
  }

  .mrm-footer-column{
    padding:0 20px;
  }
}

@media(max-width:900px){
  .mrm-footer-main{
    padding:48px 24px 42px;
  }

  .mrm-footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    row-gap:42px;
  }

  .mrm-footer-brand{
    grid-column:1 / -1;
    padding:0 0 36px;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  .mrm-footer-column + .mrm-footer-column,
  .mrm-footer-contact{
    border-right:0;
  }
}

@media(max-width:600px){
  .mrm-footer-container{
    padding-left:10px;
    padding-right:10px;
  }

  .mrm-footer-main{
    padding:40px 17px 34px;
  }

  .mrm-footer-grid{
    grid-template-columns:1fr;
    row-gap:34px;
  }

  .mrm-footer-brand{
    text-align:center;
  }

  .mrm-footer-brand__visual{
    justify-content:center;
  }

  .mrm-footer-logo-image{
    width:150px;
  }

  .mrm-footer-brand__content{
    text-align:center;
  }

  .mrm-footer-brand__role{
    justify-content:center;
  }

  .mrm-footer-brand__description{
    margin-left:auto;
    margin-right:auto;
    font-size:11px;
  }

  .mrm-footer-brand__cta{
    width:100%;
  }

  .mrm-footer-social{
    justify-content:center;
  }

  .mrm-footer-column{
    padding:0;
    text-align:center;
  }

  .mrm-footer-column__line{
    margin-left:auto;
    margin-right:auto;
  }

  .mrm-footer-column li a{
    width:max-content;
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
    text-align:right;
  }

  .mrm-footer-contact__item{
    justify-content:center;
  }

  .mrm-footer-bottom{
    min-height:150px;
    padding:22px 17px 28px;
    grid-template-columns:1fr;
    gap:15px;
    text-align:center;
  }

  .mrm-footer-bottom__copyright,
  .mrm-footer-legal{
    justify-content:center;
    text-align:center;
    grid-column:1;
  }

  .mrm-scroll-up-section{
    right:16px;
    bottom:16px;
  }


  .mrm-footer-bottom__copyright{ order:2; }
  .mrm-footer-legal{ order:3; flex-wrap:wrap; }
}

/* ------------------------------------------------------------------
 * HTML Source-of-Truth Footer parity layer
 * Preserves the approved static HTML footer structure in WordPress.
 * ------------------------------------------------------------------ */
.mrm-footer-grid{
  grid-template-columns:1.55fr repeat(4,minmax(0,1fr));
}

.mrm-footer-brand{
  padding-right:8px;
  padding-left:34px;
}

.mrm-footer-column + .mrm-footer-column,
.mrm-footer-contact{
  border-right:1px solid rgba(255,255,255,.09);
}

.mrm-footer-column li a span{
  right:0;
  left:auto;
}

.mrm-footer-column li a{
  padding-right:25px;
  padding-left:0;
}

.mrm-footer-secondary{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.15fr .9fr 1.35fr;
  gap:0;
  padding:28px 38px;
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.mrm-footer-secondary > section{
  min-width:0;
  padding:0 28px;
}

.mrm-footer-secondary > section + section{
  border-right:1px solid rgba(255,255,255,.09);
}

.mrm-footer-secondary__tech p{
  margin:0 0 15px;
  color:#8f96a1;
  font-size:11px;
  line-height:1.8;
}

.mrm-footer-tech-list{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.mrm-footer-tech-list span{
  min-height:30px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#aeb3bd;
  border:1px solid rgba(255,255,255,.10);
  border-radius:7px;
  background:rgba(255,255,255,.02);
  font-size:10px;
  direction:ltr;
}

.mrm-footer-secondary__social h3,
.mrm-footer-secondary__newsletter h3{
  margin:0 0 13px;
  color:#f5f2ea;
  font-size:14px;
  font-weight:850;
}

.mrm-footer-secondary__newsletter p{
  margin:0 0 14px;
  color:#8f96a1;
  font-size:11px;
  line-height:1.8;
}

.mrm-footer-secondary .mrm-footer-social{
  margin-top:0;
  justify-content:flex-start;
}

.mrm-footer-newsletter-form{
  display:flex;
  align-items:stretch;
  gap:8px;
}

.mrm-footer-newsletter-form input{
  min-width:0;
  flex:1;
  height:42px;
  padding:0 13px;
  color:#f4f2ea;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  outline:0;
  font:inherit;
  font-size:11px;
}

.mrm-footer-newsletter-form input::placeholder{
  color:#737b87;
}

.mrm-footer-newsletter-form input:focus{
  border-color:rgba(231,181,63,.65);
  box-shadow:0 0 0 3px rgba(231,181,63,.08);
}

.mrm-footer-newsletter-form button{
  min-width:92px;
  height:42px;
  padding:0 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#11151c;
  background:#e7b53f;
  border:1px solid #e7b53f;
  border-radius:8px;
  font:inherit;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}

.mrm-footer-newsletter-form button:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(231,181,63,.18);
  background:#f0c85c;
}

@media(max-width:1100px){
  .mrm-footer-grid{
    grid-template-columns:1.45fr repeat(4,minmax(0,1fr));
  }

  .mrm-footer-brand,
  .mrm-footer-column{
    padding-right:18px;
    padding-left:18px;
  }

  .mrm-footer-secondary{
    padding-left:24px;
    padding-right:24px;
  }

  .mrm-footer-secondary > section{
    padding-right:18px;
    padding-left:18px;
  }
}

@media(max-width:900px){
  .mrm-footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    row-gap:38px;
  }

  .mrm-footer-brand{
    grid-column:1 / -1;
    padding:0 0 34px;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  .mrm-footer-column + .mrm-footer-column,
  .mrm-footer-contact{
    border-right:0;
  }

  .mrm-footer-secondary{
    grid-template-columns:1fr 1fr;
    row-gap:28px;
  }

  .mrm-footer-secondary__newsletter{
    grid-column:1 / -1;
    padding-top:28px;
    border-top:1px solid rgba(255,255,255,.09);
  }

  .mrm-footer-secondary > section + section{
    border-right:1px solid rgba(255,255,255,.09);
  }

  .mrm-footer-secondary__newsletter{
    border-right:0 !important;
  }
}

@media(max-width:600px){
  .mrm-footer-grid{
    grid-template-columns:1fr;
  }

  .mrm-footer-brand{
    padding-bottom:30px;
  }

  .mrm-footer-secondary{
    grid-template-columns:1fr;
    padding:24px 17px;
  }

  .mrm-footer-secondary > section,
  .mrm-footer-secondary > section + section{
    padding:0 0 24px;
    border-right:0;
  }

  .mrm-footer-secondary > section + section{
    padding-top:24px;
    border-top:1px solid rgba(255,255,255,.09);
  }

  .mrm-footer-secondary__newsletter{
    grid-column:auto;
    padding-bottom:0 !important;
  }

  .mrm-footer-secondary__tech,
  .mrm-footer-secondary__social,
  .mrm-footer-secondary__newsletter{
    text-align:center;
  }

  .mrm-footer-tech-list,
  .mrm-footer-secondary .mrm-footer-social{
    justify-content:center;
  }

  .mrm-footer-newsletter-form{
    flex-direction:column;
  }

  .mrm-footer-newsletter-form button{
    width:100%;
  }
}
