/* ============================================================
   AFSS — Footer & Final CTA
   Source: components/Footer.tsx + components/home/FinalCTA.tsx
   ============================================================ */

#afss-footer {
  width: 100%;
  background: #ffffff;
  color: #0b1d36;
  position: relative;
}

/* DARK NAVY SECTION (Final CTA + Giant Wordmark) */
.footer-dark-band {
  width: 100%;
  background: #0b1d36;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dark-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 35%, transparent 80%);
}

.footer-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .footer-cta-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

.footer-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-cta-dot {
  width: 8px;
  height: 8px;
  background: #b0141f;
  flex-shrink: 0;
}

.footer-cta-eyebrow-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7aa6e6;
}

.footer-cta-heading {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.footer-cta-heading .text-gradient-sorted,
.footer-giant-wordmark .text-gradient-sorted {
  background: linear-gradient(90deg, #ffffff 0%, #b0141f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.footer-cta-desc {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.footer-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.footer-btn-white {
  background: #ffffff;
  color: #0b1d36;
  border: 1px solid #ffffff;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
  min-height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-decoration: none;
}

.footer-btn-white:hover {
  background: #f1f5f9;
  color: #0b1d36;
  transform: translateY(-1px);
}

.footer-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  white-space: nowrap;
}

.footer-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.footer-btn-outline-faint {
  border-color: rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
}

.footer-btn-outline-faint:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* GIANT WORDMARK */
.footer-wordmark-wrapper {
  margin-top: 4.5rem;
  padding-top: 2rem;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer-giant-wordmark {
  margin: 0;
  font-size: clamp(2.25rem, 8.5vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
}

/* WHITE FOOTER SECTION */
.footer-white-section {
  width: 100%;
  background: #ffffff;
  color: #0b1d36;
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1fr);
    gap: 4.5rem;
  }
}

.footer-brand-col {
  max-width: 28rem;
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
}

.footer-brand-text {
  margin: 1.25rem 0 0 0;
  color: #3a4a63;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-brand-btns {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .footer-brand-btns {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-btn-quote-dark {
  background: #0b1d36;
  color: #ffffff;
  border: 1px solid #0b1d36;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-btn-quote-dark:hover {
  background: #1c4d9c;
  border-color: #1c4d9c;
  color: #ffffff;
}

.footer-btn-phone-light {
  background: #ffffff;
  color: #0b1d36;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-btn-phone-light:hover {
  border-color: #0b1d36;
  color: #0b1d36;
}

.footer-contact-address {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 29, 54, 0.1);
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-contact-link {
  color: #0b1d36;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: #1c4d9c;
}

.footer-service-area {
  margin: 0;
  color: #3a4a63;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
  }
}

.footer-nav-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1d36;
  margin: 0 0 1.25rem 0;
  line-height: 1;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-links-list a {
  color: #3a4a63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #1c4d9c;
}

.footer-resources-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 500px) {
  .footer-resources-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-resources-grid a {
  color: #3a4a63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-resources-grid a:hover {
  color: #1c4d9c;
}

.footer-official-box {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 29, 54, 0.08);
}

.footer-official-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1d36;
  margin: 0 0 0.85rem 0;
}

.footer-official-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.footer-official-list a {
  color: #3a4a63;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-official-list a:hover {
  color: #1c4d9c;
}

/* COPYRIGHT BAR */
.footer-bottom-bar {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 29, 54, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #5b6a82;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom-bar p {
  margin: 0;
}

@media (max-width: 640px) {
  .footer-cta-heading {
    font-size: clamp(1.85rem, 6.2vw, 2.75rem) !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .footer-cta-actions {
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-btn-white,
  .footer-btn-outline,
  .footer-btn-outline-faint {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-all !important;
    padding: 0.8rem 1rem !important;
    font-size: 0.78rem !important;
    min-height: 3rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}
