/* ============================================================
   Phase 76 — Proper customer footer + Back Office login + PWA install
   Shared by all root customer pages via includes/customer-footer.php
   Brand: deep teal surface, terracotta accent, amber highlights
   Colors use !important so late-loading global rules can't dim them.
   ============================================================ */

.sk-footer{
  margin-top:48px;
  background:linear-gradient(180deg,#12333a 0%,#0d272d 100%) !important;
  color:#eaf6f5 !important;
  border-top:3px solid #a83e22;
  position:relative;
  z-index:5;
}
.sk-footer *,
.sk-footer *::before,
.sk-footer *::after{box-sizing:border-box;}
.sk-footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:34px clamp(16px,3vw,28px) 20px;
}

/* ---- Column grid ---- */
.sk-footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.25fr;
  gap:26px;
  align-items:start;
}
.sk-footer-col h4{
  font-size:13px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#f7c95b !important;
  margin:0 0 12px;
  font-weight:700;
}
.sk-footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.sk-footer-col a{
  color:#dff0ef !important;
  text-decoration:none;
  font-size:14.5px;
  line-height:1.4;
  transition:color .18s ease,transform .18s ease;
}
.sk-footer-col a:hover,
.sk-footer-col a:focus{color:#ffffff !important;transform:translateX(2px);}

/* ---- Brand column ---- */
.sk-footer-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  margin-bottom:12px;
}
.sk-footer-logo img{
  width:42px;height:42px;
  border-radius:12px;
  background:#ffffff;
  padding:3px;
  object-fit:contain;
  display:block;
}
.sk-footer-logo span{
  font-size:20px;
  font-weight:800;
  color:#ffffff !important;
  letter-spacing:.02em;
}
.sk-footer-tag{
  color:#c4dddc !important;
  font-size:13.8px;
  line-height:1.6;
  margin:0 0 14px;
  max-width:36ch;
}
.sk-footer-social{margin-top:2px;}
.sk-footer .sk-social-name{color:#dff0ef !important;}
.sk-footer .sk-social-icons a{color:#dff0ef !important;}

/* ---- Follow-us social band (full width, under the columns) ---- */
.sk-footer-social-band{
  max-width:1200px;
  margin:18px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.12);
}
.sk-footer-follow{
  text-align:center;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#f7c95b !important;
  margin:0 0 12px;
  font-weight:700;
}
/* Landscape (horizontal) row, centered, wraps neatly on narrower widths.
   More specific than the generic .sk-social-icons nowrap/scroll rule. */
.sk-footer-social-band .sk-social-icons{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px 14px;
  margin:0;
  padding:0;
  overflow:visible;
}
.sk-footer-social-band .sk-social-icons a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 13px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#dff0ef !important;
  font-size:13px;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.sk-footer-social-band .sk-social-icons a:hover,
.sk-footer-social-band .sk-social-icons a:focus{
  background:rgba(247,201,91,.14);
  border-color:#f7c95b;
  color:#ffffff !important;
}
.sk-footer-social-band .sk-social-icon{font-size:16px;line-height:1;}
.sk-footer-social-band .sk-social-name{color:inherit !important;}
.sk-footer-social-band .sk-social-icons a.sk-social-empty:hover,
.sk-footer-social-band .sk-social-icons a.sk-social-empty:focus{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.16);
  color:#dff0ef !important;
}
@media(min-width:901px){
  .sk-footer-social-band .sk-social-icons{gap:12px 18px;}
  .sk-footer-social-band .sk-social-icons a{font-size:13.5px;padding:7px 15px;}
}

/* ---- Contact column ---- */
.sk-footer-contact li{
  display:flex;
  gap:8px;
  align-items:flex-start;
  color:#dff0ef !important;
  font-size:14px;
  line-height:1.5;
}
.sk-footer-contact li span{flex:0 0 auto;}
.sk-footer-contact li a{color:#dff0ef !important;}
.sk-footer-contact li a:hover{color:#ffffff !important;}

/* ---- Bottom bar ---- */
.sk-footer-bottom{
  margin-top:26px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.14);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  font-size:13px;
  color:#c4dddc !important;
}
.sk-footer-bottom > span{color:#c4dddc !important;}
.sk-footer-bottom-links{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.sk-footer-bottom-links a{
  color:#dff0ef !important;
  text-decoration:none;
  font-size:13px;
  transition:color .18s ease;
}
.sk-footer-bottom-links a:hover{color:#ffffff !important;}

/* ---- Back Office login (admin & employee) — deliberately small & dim ---- */
.sk-backoffice{
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:transparent;
  border:1px solid rgba(255,255,255,.10);
  color:#9db8b6 !important;
  padding:3px 9px;
  border-radius:999px;
  font-weight:600;
  font-size:11px !important;
  opacity:.55;
  transition:background .18s ease,border-color .18s ease,transform .18s ease,color .18s ease,opacity .18s ease;
}
.sk-backoffice:hover,
.sk-backoffice:focus{
  opacity:1;
  color:#f7c95b !important;
  background:rgba(247,201,91,.14);
  border-color:rgba(247,201,91,.5);
}

/* ---- Install App (PWA) button ---- */
.sk-install-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#1f8a8f;
  border:1px solid #2aa7ad;
  color:#ffffff !important;
  padding:7px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  font-family:inherit;
  transition:background .18s ease,transform .18s ease;
}
.sk-install-btn:hover{background:#2aa7ad;transform:translateY(-1px);}

/* ---- Install instructions modal ---- */
.sk-install-modal{
  position:fixed;
  inset:0;
  background:rgba(8,20,24,.62);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}
.sk-install-modal[hidden]{display:none;}
.sk-install-dialog{
  background:#ffffff;
  color:#1f2937;
  max-width:430px;
  width:100%;
  border-radius:18px;
  padding:24px 22px 20px;
  position:relative;
  box-shadow:0 24px 60px rgba(0,0,0,.4);
}
.sk-install-dialog h3{margin:0 0 10px;font-size:18px;color:#0d272d;}
.sk-install-dialog p,
.sk-install-dialog li{font-size:14.5px;line-height:1.65;color:#334155;}
.sk-install-dialog ul{margin:8px 0 0;padding-left:20px;}
.sk-install-close{
  position:absolute;top:8px;right:12px;
  background:none;border:0;font-size:26px;line-height:1;
  cursor:pointer;color:#7a8a8a;
}
.sk-install-close:hover{color:#0d272d;}
.sk-install-note{font-size:12.5px;color:#64748b;margin-top:12px;}
.sk-ios-share{font-weight:700;color:#0d272d;}

/* ---- Responsive ---- */
@media(max-width:900px){
  .sk-footer-grid{grid-template-columns:1fr 1fr;gap:22px;}
  .sk-footer-brand{grid-column:1 / -1;}
  .sk-footer-inner{padding-bottom:78px;}
  /* Smaller footer type on all mobile devices (phones & tablets) */
  .sk-footer-col h4{font-size:12px;margin-bottom:9px;}
  .sk-footer-col a{font-size:13px;}
  .sk-footer-tag{font-size:12.5px;}
  .sk-footer-logo span{font-size:18px;}
  .sk-footer-logo img{width:38px;height:38px;}
  .sk-footer-contact li{font-size:12.5px;}
  .sk-footer-bottom{font-size:12px;}
  .sk-footer-bottom-links a{font-size:12px;}
  .sk-backoffice{font-size:10px !important;padding:3px 8px;}
  .sk-install-btn{font-size:12px;padding:6px 12px;}
}
@media(max-width:640px){
  .sk-footer{margin-top:30px;}
  .sk-footer-inner{padding:20px 16px 74px;}
  .sk-footer-grid{grid-template-columns:1fr 1fr;gap:16px 18px;}
  .sk-footer-brand{grid-column:1 / -1;}
  .sk-footer-col h4{margin-bottom:7px;}
  .sk-footer-col ul{gap:6px;}
  .sk-footer-col a{font-size:12.5px;}
  .sk-footer-bottom{flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;}
  .sk-footer-bottom-links{gap:12px;justify-content:center;}
  .sk-footer-tag{max-width:none;}
  .sk-footer-logo span{font-size:18px;}
}

@media(prefers-reduced-motion:reduce){
  .sk-footer-col a,.sk-backoffice,.sk-install-btn{transition:none;}
  .sk-footer-col a:hover,.sk-backoffice:hover,.sk-install-btn:hover{transform:none;}
}

@media print{
  .sk-footer,.mobile-bottom,.sk-install-modal{display:none !important;}
}
