/* Container */
.cgm-footer-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 80px;
  color: #fff;
  font-family: "Open Sans", sans-serif;
}

/* Wave */
.cgm-wave-top {
  position: absolute;
  top: -119px;
  left: 0;
  width: 100%;
  height: 120px;
  line-height: 0;
  overflow: hidden;
  z-index: 1;
}
.cgm-wave-top svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100%;
  transform: scaleY(1.02);
  transform-origin: bottom;
}
.cgm-wave-top path {
  fill: var(--bg);
}

/* Content */
.cgm-footer-content {
  background-color: var(--bg);
  padding: 20px 0 30px 0;
}

/* --- THE GRID --- */
.cgm-footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  max-width: 1900px;
  margin: 0 auto 50px auto;
  align-items: start;
  padding: 0 90px;
  box-sizing: border-box;
}

/* --- TEXT COLORS --- */
.cgm-bio,
.cgm-cta-desc,
.cgm-email,
.cgm-copyright,
.cgm-legal-links a {
  color: var(--body-color);
}

/* Columns */
.cgm-brand-col {
  text-align: left;
}
.cgm-cta-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.cgm-social-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* --- LOGO STYLING --- */
.cgm-logo {
  max-width: 180px;
  margin-bottom: 20px;
}
/* New Text Logo Style */
.cgm-logo-text {
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.cgm-bio {
  line-height: 1.6;
  max-width: 350px;
}
.cgm-cta-desc {
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  font-size: 1.1rem;
}

/* --- HEADINGS --- */
.cgm-col h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.cgm-cta-col h4 {
  color: var(--cta-h-color);
  font-size: 30px !important;
}
.cgm-social-col h4 {
  color: var(--connect-h-color);
}

/* Button */
.cgm-footer-btn {
  display: inline-block;
  background-color: var(--c-btn-bg);
  color: var(--c-btn-text);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.cgm-footer-btn:hover {
  transform: translateY(-3px);
  background-color: var(--c-btn-bg-hover);
  color: var(--c-btn-text-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Email */
.cgm-email {
  display: block;
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.cgm-email:hover {
  opacity: 1;
  text-decoration: underline;
  color: #6271a3;
}

/* --- ICONS (FontAwesome Update) --- */
.cgm-socials {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cgm-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--soc-bg);
  color: var(--soc-icon);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1.2rem;
}
.cgm-socials a:hover {
  background: var(--soc-bg-hover) !important;
  color: var(--soc-icon-hover) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- BOTTOM BAR (Copyright + Legal) --- */
.cgm-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.cgm-copyright {
  font-size: 0.9rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.cgm-legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cgm-legal-links a {
  font-size: 0.8rem;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.cgm-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Salient Fix */
.material .wpb_row {
  margin-bottom: 0px !important;
}

/* Mobile */
@media (max-width: 900px) {
  .cgm-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding: 0 20px;
  }
  .cgm-brand-col,
  .cgm-cta-col,
  .cgm-social-col {
    text-align: center;
    align-items: center;
  }
  .cgm-bio,
  .cgm-cta-desc {
    margin: 0 auto 20px auto;
  }
  .cgm-socials {
    justify-content: center;
  }
  .cgm-cta-col h4 {
    font-size: 1.8rem;
  }
}
