/* ---- Trust Guide (above footer, as a block) ---- */
.why-trust-guide {
  background: var(--header-bg);
  color: var(--text-main);
  margin: 2.2em auto 0 auto;
  padding: 1.08em 1.35em;
  border-radius: 12px;
  font-size: 1.09em;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  max-width: 720px;
}
.why-trust-guide h3 {
  color: var(--accent);
  font-size: 1.17em;
  margin-bottom: 0.18em;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.why-trust-guide p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.53;
}

/* ---- Footer Navigation ---- */
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6em;
  padding: 0.6em 0;
  margin-bottom: -2em;
  background: transparent;
  text-align: center;
  text-decoration: none;
}
.footer-nav a {
  font-size: 1.1em;
  padding: 0.3em 0.8em;
  color: var(--text-main);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s, border-color 0.17s;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--accent);
  color: var(--bg-page);
  border-color: var(--accent-light, rgba(255,255,255,0.4));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  justify-items: center;    /* center each grid cell’s contents */
}

.footer-grid .footer-section:nth-child(3) {
  grid-column: 1 / -1;      /* make the 3rd section span both columns */
}

.footer-section {
  text-align: center;       /* center text inside each section */
  margin: 0 auto;           /* center the section itself if it has a max-width */
}


/* ---- Solid Footer Block ---- */
.site-footer {
  max-width: 960px;     /* or 80%, or whatever width you prefer */
  margin: 0 auto;       /* centers it horizontally */
  position: relative;
  padding: 1.5em 1em;
  background: var(--bg-panel);
  color: var(--text-main);
  box-shadow: 0 -2px 14px rgba(0,0,0,0.08);
  text-align: center;   /* if you also want the text centered */
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
}

.footer-about {
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--text-main); /* or a custom color like #555 */
  margin-top: 0.5em;
  max-width: 700px;
}

/* ---- Footer Bottom Bar & Copyright ---- */
.footer-bottom,
.site-footer > div:last-child {
  font-size: 1em;
  color: var(--text-main);
  border-top: 1px solid var(--accent-light, rgba(0,0,0,0.1));
  padding-top: 1em;
  text-align: center;
  margin-top: 0.8em;
}
@media (max-width: 600px) {
  .why-trust-guide {
    padding: 0.7em 0.5em;
    font-size: 1em;
    border-radius: 7px;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1em;
    text-align: center;
  }

  .footer-section {
    text-align: center;
    margin: 0 auto;
    font-size: 1em;
  }

  .footer-section h4 {
    display: inline;
    font-weight: 700;
    margin-right: 0.4em;
  }

  .footer-nav {
    display: inline;
    padding: 0;
    margin: 0;
    gap: 0.2em;
  }

  .footer-nav a {
    display: inline;
    font-size: 1em;
    padding: 0 0.4em;
    margin: 0;
  }

  .site-footer {
    padding: 1em 0.5em;
  }

  .footer-bottom,
  .site-footer > div:last-child {
    padding-top: 0.8em;
    font-size: 0.8em;
  }
}
