.footer-wrapper {
  width: 100%;
  background-color: #1c1c1c;
}

.footer-container {
  background-color: #1c1c1c;
}

/* ------ Layout ------ */
.srem-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr; /* subscribe | links */
  gap: 32px;
  background-color: #1c1c1c;
  color: #fff;
  padding: 40px 24px;
  max-width: var(--site-max-width, 1200px);
  margin: 0 auto;
}

/* Subsection widths on desktop */
.footer-subscribe { max-width: 420px; }

/* Links area as a grid of 3 columns on desktop */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 24px 40px;
  width: 100%;
}

/* ------ Typography ------ */
.srem-footer h2,
.srem-footer h3 {
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--background-color, #fefefe) !important;
}

.srem-footer p {
  margin: 0 0 15px;
  font-size: 14px;
  color: var(--background-color, #fefefe) !important;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 16px 24px 0;
  color: var(--background-color, #fefefe);
  text-align: center;
}

.footer-brand h3 {
  margin: 0;
  color: var(--background-color, #fefefe);
  font-size: clamp(24px, 6vw, 50px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.1;
  word-break: break-word;
}

/* ------ Forms & Links ------ */
form { display: grid; gap: 12px; }

.email-input {
  background-color: #333;
  color: var(--background-color, #fefefe) !important;
  padding: 12px 14px;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.email-input:focus { border-color: #777; }

.sign-up-btn {
  background: transparent;
  color: #fff;
  padding: 12px 14px;
  border: 1px solid #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sign-up-btn:hover,
.sign-up-btn:focus {
  background-color: #fff;
  color: #000;
}

.privacy-text { font-size: 12px; opacity: 0.9; }

.footer-sitemap,
.footer-follow { display: flex; flex-direction: column; }

.footer-wrapper a {
  color: var(--background-color, #fefefe) !important;
  text-decoration: none;
}

.footer-wrapper a:hover,
.footer-wrapper a:focus { text-decoration: underline; }

ul { list-style: none; padding: 0; margin: 0; }

ul li { margin: 8px 0; line-height: 1; }

/* ------ Bottom bar ------ */
.clemo-footer-bottom {
  border-top: 1px solid #4c7a77;
  padding: 20px 24px;
  max-width: var(--site-max-width, 1200px);
  margin: 0 auto;
  color: #aacac6;
}

.copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.design, .rights {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------ Responsive ------ */
@media (max-width: 1024px) {
  .srem-footer {
    grid-template-columns: 1fr; /* stack subscribe + links */
    gap: 28px;
    padding: 32px 20px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on tablets */
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .srem-footer {
    padding: 24px 16px;
    gap: 24px;
  }

  .footer-links {
    grid-template-columns: 1fr; /* 1 column on phones */
    gap: 16px;
  }

  .email-input,
  .sign-up-btn { width: 100%; }

  .copy {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
