/* ==========================================================================
   BEMAXX FOOTER CSS (components/fotter.css)
   Official Palette:
     - Primary Blue: #0088E0
     - Dark Blue (Footer): #005A9E
     - Accent Red: #E4002B
     - Gradient: #0088E0 -> #005A9E
   ========================================================================== */

:root {
  --bx-footer-blue-start: #0088E0;
  --bx-footer-blue-end: #005A9E;
  --bx-footer-dark-strip: #003866;
  --bx-accent-red: #E4002B;
  --bx-accent-red-hover: #c80026;
  --bx-white: #ffffff;
  --bx-white-dim: rgba(255, 255, 255, 0.92);
  --bx-font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bx-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.bx-footer {
  position: relative;
  width: 100%;
  font-family: var(--bx-font-body);
  color: var(--bx-white);
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Blue Gradient & Silk Wave Background (#0088E0 -> #005A9E) --- */
.bx-footer-main {
  position: relative;
  background: linear-gradient(135deg, #0088E0 0%, #005A9E 100%);
  padding: 55px 0 35px 0;
}

.bx-footer-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bx-footer-waves svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bx-footer-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* --- Top 4 Columns with Divider Borders --- */
.bx-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.15fr 1.35fr;
  gap: 0;
  margin-bottom: 45px;
}

.bx-col {
  padding: 0 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.bx-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.bx-col.bx-col-brand {
  padding-left: 0;
}

.bx-col.bx-col-contact {
  padding-right: 0;
}

/* Red Accent Underline (#E4002B) */
.bx-red-divider {
  width: 32px;
  height: 3px;
  background-color: var(--bx-accent-red);
  border-radius: 2px;
  margin: 14px 0 16px 0;
}

/* Column 1: Brand Logo & Desc */
.bx-f-logo-wrap {
  display: flex;
  flex-direction: column;
}

.bx-footer-brand-link {
  display: inline-block;
  text-decoration: none;
}

.bx-footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 50, 120, 0.15);
  display: inline-block;
}

/* Paragraph: Poppins, 15px, line-height 26px */
.bx-f-desc {
  font-family: var(--bx-font-body);
  font-size: 15px;
  line-height: 26px;
  font-weight: 400;
  color: var(--bx-white-dim);
  margin: 0 0 20px 0;
}

.bx-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bx-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.bx-social-icon:hover {
  background: #ffffff;
  color: var(--bx-footer-blue-end);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Column 2 & 3: Headings: Poppins / Roboto, 20px */
.bx-col-heading {
  font-family: var(--bx-font-body);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Lists: Poppins, 15px, line-height 26px */
.bx-col-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bx-col-nav li a {
  font-family: var(--bx-font-body);
  color: var(--bx-white-dim);
  text-decoration: none;
  font-size: 15px;
  line-height: 26px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.bx-col-nav li a .bx-chevron {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bx-col-nav li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.bx-col-nav li a:hover .bx-chevron {
  color: var(--bx-accent-red);
}

/* Column 4: Contact Details */
.bx-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bx-contact-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bx-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2499ea 0%, #005A9E 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  margin-top: 2px;
}

.bx-contact-info {
  display: flex;
  flex-direction: column;
}

.bx-contact-type {
  font-family: var(--bx-font-body);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.bx-contact-link {
  font-family: var(--bx-font-body);
  color: var(--bx-white-dim);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 22px;
  transition: color 0.2s ease;
}

.bx-contact-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.bx-contact-address {
  font-family: var(--bx-font-body);
  font-size: 14.5px;
  line-height: 22px;
  color: var(--bx-white-dim);
}

/* --- Bottom Work Together Floating CTA Bar --- */
.bx-cta-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 50, 120, 0.18);
  margin-top: 15px;
}

.bx-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bx-handshake-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088E0 0%, #005A9E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.bx-cta-headings {
  display: flex;
  flex-direction: column;
}

.bx-cta-tag {
  font-family: var(--bx-font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bx-accent-red);
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.bx-cta-main-title {
  font-family: var(--bx-font-heading);
  font-size: 21px;
  line-height: 28px;
  font-weight: 700;
  color: #0b1e36;
  margin: 0;
}

.bx-serif-highlight {
  color: #0088E0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

.bx-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bx-accent-red);
  color: #ffffff !important;
  font-family: var(--bx-font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(228, 0, 43, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.bx-cta-btn:hover {
  background-color: var(--bx-accent-red-hover);
  box-shadow: 0 6px 20px rgba(228, 0, 43, 0.48);
  transform: translateY(-2px);
}

/* --- Bottom Copyright Strip --- */
.bx-copyright-strip {
  background-color: #003866;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bx-copyright-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.bx-copy-text a {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bx-copy-text a:hover {
  color: #60C5FF;
  border-bottom-color: #60C5FF;
}

.bx-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bx-legal-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bx-legal-links a:hover {
  color: #ffffff;
}

.bx-pipe {
  color: rgba(255, 255, 255, 0.35);
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1060px) {
  .bx-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 0;
  }
  .bx-col:nth-child(2) {
    border-right: none;
  }
  .bx-col.bx-col-contact {
    border-right: none;
  }
  .bx-cta-card {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 20px;
  }
  .bx-cta-left {
    flex-direction: column;
  }
}

@media screen and (max-width: 680px) {
  .bx-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bx-col {
    padding: 0 !important;
    border-right: none !important;
  }
  .bx-copyright-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================================================
   SMOOTH SCROLL & FLOATING BACK TO TOP BUTTON
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

[id], section[id] {
  scroll-margin-top: 95px;
}

.bx-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088E0 0%, #005A9E 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 90, 158, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.bx-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bx-back-to-top:hover {
  background: linear-gradient(135deg, #E4002B 0%, #c80026 100%);
  box-shadow: 0 10px 28px rgba(228, 0, 43, 0.4);
  transform: translateY(-4px);
}

.bx-back-to-top:active {
  transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
  .bx-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
