/* ==========================================================================
   Footer Component — footer.css
   BEM naming: .scc-footer, .scc-footer__[element], .scc-footer--[modifier]
   ========================================================================== */

/* ---------- Base Footer ---------- */
.scc-footer {
  background: var(--scc-primary);
  padding-top: 0;
  padding-bottom: 2rem;
  color: white;
  position: relative;
  border-top: 8px solid var(--scc-accent);
  margin-top: 5rem;
}

/* ---------- Newsletter Section ---------- */
.scc-footer__newsletter {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  top: -3rem;
}

@media (min-width: 992px) {
  .scc-footer__newsletter {
    padding: 0 2rem;
  }
}

.scc-footer__newsletter-card {
  background: white;
  color: var(--scc-primary);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--scc-border);
}

@media (min-width: 768px) {
  .scc-footer__newsletter-card {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .scc-footer__newsletter-card {
    padding: 3rem;
  }
}

.scc-footer__newsletter-content {
  max-width: 36rem;
}

.scc-footer__newsletter-title {
  font-size: var(--scc-text-2xl);
  font-weight: var(--scc-weight-bold);
  margin-bottom: 0.5rem;
}

.scc-footer__newsletter-text {
  color: rgba(74, 74, 74, 0.8);
}

.scc-footer__newsletter-form {
  width: 100%;
  flex-grow: 1;
  max-width: 28rem;
  display: flex;
}

@media (min-width: 768px) {
  .scc-footer__newsletter-form {
    width: auto;
  }
}

.scc-footer__newsletter-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem 0 0 0.375rem;
  border: 1px solid var(--scc-border);
  background: rgba(244, 246, 248, 0.3);
}

.scc-footer__newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--scc-secondary);
}

.scc-footer__newsletter-submit {
  background: var(--scc-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-weight: var(--scc-weight-medium);
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  border: none;
  cursor: pointer;
}

.scc-footer__newsletter-submit:hover {
  background: rgba(162, 92, 47, 0.9);
}

.scc-footer__newsletter-submit-icon {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
}

/* ---------- Main Footer Content ---------- */
.scc-footer__main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

@media (min-width: 992px) {
  .scc-footer__main {
    padding: 1rem 2rem 4rem;
  }
}

.scc-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .scc-footer__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }
}

/* ---------- Brand Column ---------- */
.scc-footer__brand {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .scc-footer__brand {
    grid-column: span 4;
  }
}

.scc-footer__logo-wrapper {
  margin-left: -1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .scc-footer__logo-wrapper {
    margin-left: -1.5rem;
  }
}

.scc-footer__logo {
  height: 3rem;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
  object-position: left;
}

.scc-footer__desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 24rem;
  line-height: var(--scc-leading-relaxed);
  text-align: left;
}

.scc-footer__social {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.scc-footer__social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
  color: white;
  text-decoration: none;
}

.scc-footer__social-icon:hover {
  background: var(--scc-secondary);
  color: var(--scc-primary);
}

.scc-footer__social-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.scc-footer__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: auto;
}

.scc-footer__cert-badge {
  object-fit: contain;
}

.scc-footer__cert-badge--aeris {
  height: 2rem;
  width: 6rem;
}

.scc-footer__cert-badge--bbb {
  height: 3rem;
  width: 4rem;
}

.scc-footer__cert-badge--coop {
  height: 2rem;
  width: 5rem;
}

/* ---------- Links Column ---------- */
.scc-footer__links-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 992px) {
  .scc-footer__links-col {
    grid-column: span 8;
  }
}

/* ---------- Nav Grid ---------- */
.scc-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .scc-footer__nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.scc-footer__nav-heading {
  font-family: var(--scc-font-mono);
  font-size: var(--scc-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .scc-footer__nav-heading {
    font-size: var(--scc-text-base);
  }
}

.scc-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* wp_nav_menu() renders <a> without the BEM class — the second selector
   covers items output by the menu walker so admins don't have to add the
   CSS class per item in WP Admin. */
.scc-footer__nav-link,
.scc-footer__nav-list a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.scc-footer__nav-link:hover,
.scc-footer__nav-list a:hover {
  color: white;
}

/* ---------- Disclaimer ---------- */
.scc-footer__disclaimer-desktop {
  display: none;
}

@media (min-width: 992px) {
  .scc-footer__disclaimer-desktop {
    display: flex;
    margin-top: auto;
  }
}

.scc-footer__disclaimer-text {
  font-size: var(--scc-text-sm);
  line-height: var(--scc-leading-relaxed);
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--scc-weight-medium);
  letter-spacing: 0.025em;
}

/* ---------- Bottom Bar ---------- */
.scc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

.scc-footer__bottom-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 992px) {
  .scc-footer__bottom-container {
    padding: 0 2rem;
  }
}

.scc-footer__legal-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .scc-footer__legal-flex {
    flex-direction: row;
    align-items: center;
  }
}

.scc-footer__copyright {
  font-family: var(--scc-font-mono);
  font-size: var(--scc-text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.scc-footer__legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: var(--scc-text-sm);
}

.scc-footer__legal-link {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
  text-decoration: none;
}

.scc-footer__legal-link:hover {
  color: white;
}

.scc-footer__disclaimer-mobile {
  display: block;
  font-size: var(--scc-text-sm);
  line-height: var(--scc-leading-relaxed);
  color: white;
  max-width: 56rem;
  font-weight: var(--scc-weight-medium);
  letter-spacing: 0.025em;
}

@media (min-width: 992px) {
  .scc-footer__disclaimer-mobile {
    display: none;
  }
}
