/* =========================================
   FOOTER CSS
   Purpose:
   - What this system does
   - Primary usage
   - Important behavior notes
========================================= */


/* =========================
   BASE FOOTER SYSTEM
========================= */

.footer {
  background: var(--footer-bg-100);   /* charcoal */
  color: var(--color-bg);          /* off-white text */
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-5);
}

.site-footer {
  background: var(--footer-bg-100);   /* charcoal */
  color: var(--footer-text);          /* off-white text */
  overflow-x: hidden;
}

/* =========================
   GLOBAL CONTAINER
========================= */
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-contact-grid {
  display: grid;
  align-items: center;  
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: var(--space-4);

  align-items: start;
}

@media (max-width: 768px) {
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA ROW LAYOUT
   - Uses flex to align text + button side-by-side
   - Equal width columns
*/

.footer-cta {
  padding: 40px 0 20px 0;
}

.footer-btn {
  display: inline-block;
  padding: 14px 22px;
  background: var(--link-button); /* was #c9a77c */
  color: var(--text-inverse);   /* was white */
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 12px; /* adds breathing room */
}
.footer-btn:hover {
  transform: translateY(-2px);
  background: var(--link-hover-color); /* added */
}
.footer-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;   /* ✅ center horizontally */
  gap: 10px;
  text-align: center;    /* ensures text aligns too */
}

/* =========================
   MAIN GRID (3 COLUMN CONVERSION LAYOUT)
========================= */
/* switches to stacked layout on mobile */
/* FOOTER COLUMN GRID */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col {
  min-width: 0;
}

/* TRUST COLUMN */
.footer-trust {
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 20px;
}

/* both top row footter sections in the same row */
.footer-cta-inner {
  padding: 0 20px;
  /*flex-direction: column;*/      /* stack instead of side-by-side */
  align-items: center;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .footer-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


.footer-cta-text,
.footer-cta-action {
  flex: 1;             /* prevents stretching weirdly */
}

/* =========================
   LINKS
========================= */
.footer-col a {
  display: block;
  margin: 6px 0;
  color: var(--footer-text);  /* was #ddd */
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text-inverse);    /* was #fff */
}

/* =========================
   CONTACT STRIP - a mobile-specific override for the contact strip
========================= */
.footer-contact-strip {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  font-size: 14px;
  color: var(--footer-muted);    /* was #bbb */
}

/* CONTACT STRIP */
.footer-contact-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* FOOTER LAYOUT ONLY */
.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {

  .footer-trust {
    border-right: none;
    padding-right: 0;
  }

  .footer-contact-flex,
  .footer-cta-inner {
  flex-direction: column;
  text-align: center;
}
}



/* Mobile */
@media (max-width: 768px) {

    .footer-contact-flex {
        align-items: center;
        gap: 8px;   /* controls vertical spacing */
    }

}

/* =========================
   LEGAL
========================= */
.footer-bottom {
  text-align: center;
  padding: 15px 0 20px;
  font-size: 13px;
  color: var(--muted);   /* was #999 */
}



/* =========================
   Desktop → 4 columns
Medium/small screens → 2 columns max
Extra-small phones → optionally 1 column
========================= */

/* Tablets and phones */
@media (max-width: 768px) {

    .site-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Tablets + phones */
@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
/* Very small phones */
@media (max-width: 480px) {

    .site-footer-grid {
        grid-template-columns: 1fr;
    }

}


  /* =========================
     FOOTER
  ========================= */

  .footer-trust {
    border-right: none;
    padding-right: 0;
  }

  .footer-contact-flex,
  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }


/* =====================================================
   MOBILE
   768px and below
===================================================== */

@media (max-width: 768px) {

  /* =========================
     FOOTER GRIDS
  ========================= */

  .site-footer-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* =========================
     FOOTER CONTACT
  ========================= */

  .footer-contact-flex {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  



/* =====================================================
   EXTRA SMALL PHONES
   480px and below
===================================================== */

@media (max-width: 480px) {

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

}



