/* =========================================================
   AMORA Footer Brand – polish hover + spacing + responsive
   (override: place at END of file)
   ========================================================= */

:root{
  --amora-gold:#F1BF50;
  --amora-brown:#3C1F1A;
  --amora-cream:#F6F0E8;
  --amora-ease:cubic-bezier(.2,.8,.2,1);
  --amora-dur:260ms;
}

/* Center tuyệt đối */
.amora-footer-brand,
.amora-footer-brand__inner{
  text-align: center !important;
}

/* Logo nhỏ lại xíu + cân trên dark */
.amora-footer-brand__logo img{
  width: clamp(160px, 18vw, 230px) !important;
  max-width: 100%;
  height: auto;
  margin: 0 auto 4px;
  display: block;
}

/* Social: giãn ra + to hơn */
.amora-footer-brand__social{
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 18px !important;
  margin-top: 18px !important;
}

/* Nút social: to hơn, nhìn “premium” */
.amora-social{
  width: 62px !important;
  height: 62px !important;
  border-radius: 18px !important;

  display: grid;
  place-items: center;

  /* trên nền nâu: dùng trắng */
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;

  box-shadow: 0 14px 34px rgba(0,0,0,.18) !important;

  transform: translateY(0) scale(1);
  transition:
    transform var(--amora-dur) var(--amora-ease),
    background var(--amora-dur) var(--amora-ease),
    border-color var(--amora-dur) var(--amora-ease),
    box-shadow var(--amora-dur) var(--amora-ease),
    filter var(--amora-dur) var(--amora-ease);
}

.amora-social svg{
  width: 26px !important;
  height: 26px !important;
  display: block;
}

/* Hover: PHẢI THẤY RÕ */
@media (hover:hover){
  .amora-social:hover{
    transform: translateY(-3px) scale(1.03);
    background: rgba(241,191,80,.14) !important;
    border-color: rgba(241,191,80,.65) !important;
    box-shadow:
      0 18px 40px rgba(0,0,0,.22),
      0 0 0 3px rgba(241,191,80,.18);
  }

  .amora-social:hover svg{
    filter: drop-shadow(0 0 10px rgba(241,191,80,.25));
  }
}

.amora-social:focus-visible{
  outline: none;
  border-color: rgba(241,191,80,.85) !important;
  box-shadow:
    0 0 0 3px rgba(241,191,80,.25),
    0 18px 40px rgba(0,0,0,.22);
}

/* ===== "LÊN TRÊN CÙNG" ===== */
.amora-footer-brand__totop{
  position: relative;
  display: inline-block;
  margin: 18px auto 0 !important;
  padding: 10px 6px !important;

  background: transparent;
  border: 0;
  cursor: pointer;

  color: rgba(255,255,255,.92) !important; /* trắng trên nền nâu */
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* underline animate (desktop only) */
.amora-footer-brand__totop::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,.55);
  transform: translateX(-50%);
  transition: width var(--amora-dur) var(--amora-ease),
              background var(--amora-dur) var(--amora-ease);
}

@media (hover:hover){
  .amora-footer-brand__totop:hover{
    color: #fff !important;
  }
  .amora-footer-brand__totop:hover::after{
    width: 140px;
    background: rgba(241,191,80,.70);
  }
}

/* Line dưới giống mẫu (nhẹ) */
.amora-footer-brand__line{
  width: 140px !important;
  height: 2px !important;
  margin: 8px auto 0 !important;
  background: rgba(255,255,255,.28) !important;
}

/* ===== Responsive ===== */
@media (max-width: 640px){
  /* logo nhỏ hơn chút */
  .amora-footer-brand__logo img{
    width: 175px !important;
  }

  /* social vẫn đẹp nhưng không quá to */
  .amora-footer-brand__social{
    gap: 14px !important;
    margin-top: 14px !important;
  }

  .amora-social{
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
  }

  .amora-social svg{
    width: 24px !important;
    height: 24px !important;
  }

  /* mobile: bỏ underline hover (đúng yêu cầu) */
  .amora-footer-brand__totop::after{
    display:none;
  }

  .amora-footer-brand__line{
    width: 110px !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .amora-social,
  .amora-footer-brand__totop::after{
    transition: none !important;
  }
}