/* ══════════════════════════════════════════════════════════════
   FOOTER COMPONENT STYLES  —  matches index.html home footer
   ══════════════════════════════════════════════════════════════ */

:root {
  --ft-primary-2: #16a8ff;
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #020509 0%, #040a14 100%);
  border-top: 1px solid rgba(42, 125, 241, 0.1);
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 125, 241, 0.3), transparent);
}

/* ── Container — uses same clamp() as .topbar for pixel-perfect alignment ── */
.site-footer > .container,
.site-footer .ft-container {
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(70px, 8vw, 120px);
  padding-right: clamp(70px, 8vw, 120px);
  box-sizing: border-box;
}

/* ── Top row (logo | phone card | social) ────────────────────── */
.ft-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(113, 144, 186, 0.08);
}

.ft-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

.ft-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  max-width: 380px;
}

/* Phone card */
.ft-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(10, 22, 44, 0.6);
  border: 1px solid rgba(42, 125, 241, 0.12);
  border-radius: 14px;
  padding: 18px 24px;
  justify-self: center;
}

.ft-phone > i {
  font-size: 28px;
  color: var(--ft-primary-2);
}

.ft-phone-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ft-phone a {
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.ft-phone a:hover { color: var(--ft-primary-2); }

/* Social block */
.ft-social-block { justify-self: end; }

.ft-social-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 25, 50, 0.5);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  color: #fff;
  border-color: var(--ft-primary-2);
  background: rgba(42, 125, 241, 0.15);
  transform: translateY(-2px);
}

/* ── Link columns ─────────────────────────────────────────────── */
.ft-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 44px 0 48px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  color: #ffffff;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a::before {
  content: "›";
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-col a:hover            { color: var(--ft-primary-2); padding-left: 4px; }
.footer-col a:hover::before    { color: var(--ft-primary-2); }

/* ── Bottom bar ───────────────────────────────────────────────── */
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(113, 144, 186, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: #ffffff;
}

.footer-bottom a {
  color: rgba(176, 191, 214, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover { color: var(--ft-primary-2); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-footer > .container,
  .site-footer .ft-container {
    padding-left: 4%;
    padding-right: 4%;
  }

  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 32px 0;
  }

  .ft-social-block {
    grid-column: span 2;
    justify-self: center;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .site-footer > .container,
  .site-footer .ft-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .ft-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 28px 0 !important;
    text-align: center;
  }

  .ft-brand       { align-items: center; }
  .ft-brand p     { font-size: 13px !important; margin: 0 auto; }
  .footer-logo    { height: 60px !important; }

  .ft-phone {
    justify-content: center;
    width: 100%;
  }

  .ft-social-block { width: 100%; text-align: center; }
  .footer-social   { justify-content: center; }

  .ft-columns {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 28px 0 !important;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
  }

  .footer-col h4  { font-size: 13px !important; margin-bottom: 12px; }
  .footer-col a   { font-size: 12px !important; justify-content: center; }
  .footer-bottom p { font-size: 11px !important; }
}

@media (max-width: 480px) {
  .ft-columns {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .footer-logo    { height: 48px !important; }
  .footer-col h4  { font-size: 12px !important; }
  .footer-col a   { font-size: 11px !important; }
  .footer-bottom p { font-size: 10px !important; }
}
