/* =======================================================
   FOOTER SOBIE — đã vá lỗi chồng chéo
======================================================== */
.sobie-footer {
  font-family: 'Mulish', system-ui, sans-serif;
  background-color: #16283A;
  color: #fff;
  line-height: 1.6;
  padding: 40px 0 20px;
  position: relative;
}
/* ===== Brand V2.0 · Graphic Device: Sọc dù biển — combo PREMIUM =====
   Sọc DỌC xanh #0A7FD9 trên nền chrome bạc (#E8E8E8 -> #B8BCC2).
   Deck: "sọc dù luôn là sọc DỌC — không xoay chéo, không nằm ngang". */
.sobie-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background:
    repeating-linear-gradient(90deg, #0A7FD9 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #E8E8E8 0%, #B8BCC2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(22,40,58,.25);
}
@media (max-width: 768px) {
  .sobie-footer::before {
    height: 11px;
    background:
      repeating-linear-gradient(90deg, #0A7FD9 0 9px, transparent 9px 18px),
      linear-gradient(180deg, #E8E8E8 0%, #B8BCC2 100%);
  }
}
.sf-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.sobie-footer *,
.sobie-footer *::before,
.sobie-footer *::after { box-sizing: border-box; }

/* ---------- TOP: logo/socials trái — liên hệ phải ---------- */
.sf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}
.sf-top-left {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 550px;
}
.sf-logo { display: inline-block; }
.sf-logo img { max-width: 180px; height: auto; display: block; }
.sf-top-left h3 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}
.sf-top-left p {
  font-size: 14px;
  color: #D8F0FC;
  margin: 0 0 25px 0;
}
.sf-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #16283A;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}
.sf-btn:hover { background: #e5e5e5; transform: translateY(-2px); }
.sf-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.social-box {
  width: 44px; height: 44px;
  border: 1px solid #fff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.social-box:hover { background: #fff; color: #16283A; }

/* Cột phải: giữ nguyên bề ngang, không kéo giãn đè sang trái */
.sf-top-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.sf-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.sf-contact-item i {
  font-size: 30px;
  flex-shrink: 0;
  width: 34px;
  text-align: center;
}
.sf-contact-info p.lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #D8F0FC;
  margin: 0 0 2px 0;
}
.sf-contact-info p.val {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

.sf-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 24px 0;
}

/* ---------- MIDDLE: các cột menu ---------- */
.sf-middle {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: start;
}
.sf-col-address { grid-column: span 2; }
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  color: #fff;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.footer-list li { margin-bottom: 12px; }
.footer-list a {
  color: #D8F0FC;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-list a:hover { color: #D8F0FC; }
.sf-address p {
  font-size: 13px;
  color: #D8F0FC;
  margin: 0 0 15px 0;
  line-height: 1.6;
}
.sf-address span {
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
}

/* ---------- BOTTOM: copyright + badges ---------- */
.sf-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.sf-copy { flex: 0 0 auto; min-width: 0; }
.sf-copy p {
  font-size: 11px;
  color: #D8F0FC;
  margin: 0 0 5px 0;
  max-width: 800px;
}
.sf-copy p.c-bold {
  font-weight: 700;
  color: #D8F0FC;
}
.sf-badges {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.sf-badges img { height: 35px; object-fit: contain; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  left: 20px; bottom: 20px;
  width: 44px; height: 44px;
  background-color: #0A7FD9;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .sf-top { align-items: flex-start; }
  .sf-top-left { flex: 1 1 100%; max-width: none; }
  .sf-top-right { flex: 1 1 100%; }
  .sf-middle { grid-template-columns: repeat(2, 1fr); }
  .sf-col-address { grid-column: span 2; }
}
@media (max-width: 768px) {
  .sobie-footer { padding: 30px 0 20px; }
  .sf-top-left h3 { font-size: 22px; }
  .sf-contact-info p.val { font-size: 18px; }
  .sf-bottom { flex-direction: column; align-items: flex-start; }
  #back-to-top { bottom: 85px; }
}
@media (max-width: 480px) {
  .sf-middle { grid-template-columns: 1fr; }
  .sf-col-address { grid-column: span 1; }
}
/* === Bỏ khoảng trống dư cuối chân trang === */
.sobie-footer { padding-bottom: 24px !important; min-height: 0 !important; }
.sf-container { padding-bottom: 0 !important; }
.sf-bottom { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.sf-bottom > *:last-child,
.sf-copy > *:last-child { margin-bottom: 0 !important; }
.sf-badges:empty { display: none !important; }
@media (max-width: 767px){
  .sobie-footer .sf-top{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .sobie-footer .sf-top-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  .sobie-footer .sf-logo,
  .sobie-footer .sf-logo img{
    width: 110px;
    height: auto;
  }
  .sobie-footer .sf-socials{
    justify-content: center;
    width: auto;
    gap: 12px;
  }
  .sobie-footer .sf-top-right{
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    align-items: flex-start;
    gap: 18px;
  }
  .sobie-footer .sf-contact-item{
    width: 100%;
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════
   BỂ BƠI GÓP Ý v2 (sf-top, chính giữa logo và hotline)
   Concept: hồ bơi lap nhìn từ trên cao
   - Thành hồ ốp gạch (padding + repeating gradient)
   - Nước: gradient sâu dần + vignette + 2 lớp caustics,
     lay động bằng SVG feTurbulence + feDisplacementMap
   - Dây phao nổi ngang hồ, phao bơi vàng trôi, thang inox
════════════════════════════════════════════════════════════ */

/* Grid 3 cột để hồ nằm CHÍNH GIỮA footer, không lệch theo cụm 2 bên */
@media (min-width: 768px) {
  .sf-top {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 480px) 1fr;
    align-items: center;
  }
  .sf-top-left  { max-width: none; justify-self: start; }
  .sf-top-right { justify-self: end; }
  .sb-footpool  { justify-self: center; width: 100%; }
}

/* ── Thành hồ: gạch men ốp viền ── */
.sb-footpool {
  position: relative;
  display: block;
  padding: 7px;
  border-radius: 20px;
  background:
    repeating-linear-gradient(90deg, #F6F8FA 0px, #F6F8FA 16px, #DDE5EB 16px, #DDE5EB 18px),
    #F6F8FA;
  box-shadow:
    0 12px 30px -12px rgba(3, 30, 58, .6),
    inset 0 -2px 4px rgba(3, 30, 58, .18);
  text-decoration: none !important;
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sb-footpool:hover {
  transform: translateZ(0) scale(1.012);
  box-shadow:
    0 16px 38px -12px rgba(3, 30, 58, .7),
    inset 0 -2px 4px rgba(3, 30, 58, .18);
}

/* ── Lòng hồ ── */
.sb-footpool-basin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  border-radius: 13px;
  overflow: hidden;
  /* gờ nước chạm thành hồ */
  box-shadow: inset 0 3px 9px rgba(3, 30, 58, .45);
}

/* ── Nước: sâu dần về đáy + vignette 2 mép ── */
.sb-footpool-water {
  position: absolute;
  inset: -10px; /* tràn mép để displacement không hở viền */
  background:
    radial-gradient(130% 170% at 50% 38%, transparent 52%, rgba(3, 38, 72, .38) 100%),
    radial-gradient(circle at 22% 35%, rgba(255,255,255,.40) 0 5%, transparent 16%),
    radial-gradient(circle at 58% 78%, rgba(255,255,255,.28) 0 4%, transparent 14%),
    radial-gradient(circle at 84% 26%, rgba(255,255,255,.34) 0 4%, transparent 13%),
    radial-gradient(circle at 40% 12%, rgba(216,240,252,.45) 0 5%, transparent 15%),
    radial-gradient(circle at 10% 76%, rgba(255,255,255,.24) 0 5%, transparent 16%),
    linear-gradient(180deg, #62C4F6 0%, #1E93E2 55%, #0A7FD9 100%);
  background-size: 100% 100%, 240% 240%, 220% 220%, 250% 250%, 230% 230%, 260% 260%, 100% 100%;
  animation: sbPoolDrift 16s ease-in-out infinite alternate;
  filter: url(#sbPoolIdle);
  will-change: transform;
}
.sb-footpool:hover .sb-footpool-water {
  filter: url(#sbPoolActive) brightness(1.07);
  animation-duration: 7s;
}
@keyframes sbPoolDrift {
  0%   { background-position: 0 0, 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 0%, 0 0; }
  100% { background-position: 0 0, 100% 100%, 0% 100%, 100% 0%, 0% 0%, 50% 100%, 0 0; }
}

/* ── Lưới caustics: vòng sáng lăn tăn, blend screen ── */
.sb-footpool-caustic {
  position: absolute;
  inset: -10px;
  background:
    repeating-radial-gradient(circle at 32% 34%, rgba(255,255,255,.16) 0 2px, transparent 2px 26px),
    repeating-radial-gradient(circle at 72% 62%, rgba(255,255,255,.13) 0 2px, transparent 2px 22px);
  mix-blend-mode: screen;
  animation: sbCausticDrift 22s linear infinite alternate;
  filter: url(#sbPoolIdle);
  pointer-events: none;
}
.sb-footpool:hover .sb-footpool-caustic {
  filter: url(#sbPoolActive);
  animation-duration: 10s;
}
@keyframes sbCausticDrift {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 60% 40%, 40% 60%; }
}

/* ── Dây phao nổi ngang hồ (đốt phao xanh · trắng · vàng) ── */
.sb-footpool-lane {
  position: absolute;
  top: 15px; left: 6%; right: 6%;
  height: 7px;
  border-radius: 7px;
  background: repeating-linear-gradient(90deg,
    #0A7FD9 0px, #0A7FD9 11px,
    #FFFFFF 11px, #FFFFFF 22px,
    #FFF000 22px, #FFF000 33px,
    #FFFFFF 33px, #FFFFFF 44px);
  box-shadow: 0 2px 4px rgba(3, 38, 72, .35);
  filter: url(#sbPoolIdle);
  z-index: 2;
  opacity: .95;
}
.sb-footpool:hover .sb-footpool-lane { filter: url(#sbPoolActive); }

/* ── Chữ: giữ bình thường, không hiệu ứng nước, đồng bộ typography footer ── */
.sb-footpool-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 20px 16px;
  text-align: center;
}
.sb-footpool-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(3, 38, 70, .5); /* chỉ để chữ đọc rõ trên nền nước */
}
.sb-footpool-sub {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  transition: color .2s;
}
.sb-footpool:hover .sb-footpool-sub { color: #FFF000; }

/* ── Phao bơi vàng trôi góc phải ── */
.sb-footpool-ring {
  position: absolute;
  right: 9%;
  bottom: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  animation: sbRingBob 5.5s ease-in-out infinite;
  filter: drop-shadow(0 5px 6px rgba(3, 38, 72, .4));
  pointer-events: none;
}
.sb-footpool:hover .sb-footpool-ring { animation-duration: 2.6s; }
@keyframes sbRingBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-5px) rotate(7deg); }
}

/* ── Bảng độ sâu ốp trên thành hồ ── */
.sb-footpool-depth {
  position: absolute;
  top: 10px; left: 14px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #16283A;
  background: rgba(255, 255, 255, .88);
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(3, 38, 72, .3);
}

/* ── Thang inox vắt qua thành hồ ── */
.sb-footpool-ladder {
  position: absolute;
  right: 26px;
  top: 2px;
  z-index: 3;
  width: 19px;
  height: 38px;
  opacity: .95;
  filter: drop-shadow(0 2px 3px rgba(3, 38, 72, .45));
}

@media (max-width: 767px) {
  .sobie-footer .sb-footpool {
    width: 100%;
    max-width: none;
  }
  .sb-footpool-basin { min-height: 96px; }
  .sb-footpool-title { font-size: 18px; letter-spacing: 1.8px; }
  .sb-footpool-ring { width: 36px; height: 36px; right: 7%; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-footpool-water,
  .sb-footpool-caustic,
  .sb-footpool-lane,
  .sb-footpool-ring { animation: none !important; filter: none !important; }
  .sb-footpool, .sb-footpool:hover { transform: none; }
}