/**
 * FitnessGuru — redesigned footer (matches html/inner.html prototype)
 * Upload: bootstrap/front/css/footer.css
 */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@400;600;700&display=swap");

/**
 * Typography matches html/inner.html exactly:
 * - Oswald: headings (newsletter h2, widget h4)
 * - Open Sans: body, links, inputs, copyright
 */

/* Beat legacy style.css `footer { text-align: center }` */
footer.site-footer {
  text-align: left !important;
  margin: 3rem 0 0 !important;
  width: 100%;
  max-width: 100%;
}

.site-footer {
  --fg-red: #e31e24;
  --fg-red-dark: #c41a1f;
  --fg-black: #000000;
  --fg-charcoal: #111111;
  --fg-footer-x: 15px;
  --fg-link-icon: rgba(255, 255, 255, 0.38);
  --fg-font-display: "Oswald", "Arial Narrow", sans-serif;
  --fg-font-body: "Open Sans", Arial, sans-serif;

  background: var(--fg-charcoal);
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
  font-family: var(--fg-font-body) !important;
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer p,
.site-footer li,
.site-footer input,
.site-footer button,
.site-footer .footer-links a,
.site-footer .footer-copyright,
.site-footer .footer-bottom-links a {
  font-family: var(--fg-font-body) !important;
}

.site-footer h2,
.site-footer h4 {
  font-family: var(--fg-font-display) !important;
}

/* Kill Bootstrap blue links & random sizes inside footer */
.site-footer a,
.site-footer a:link,
.site-footer a:visited {
  text-decoration: none;
}

.site-footer .footer-cta-text h2 {
  border: none;
  background: none;
  box-shadow: none;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fg-red-dark), var(--fg-red) 40%, #ff6b6f 60%, var(--fg-red-dark));
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.12), transparent 70%);
  pointer-events: none;
}

.site-footer .footer-cta {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem var(--fg-footer-x);
  box-sizing: border-box;
  background: linear-gradient(135deg, #1a1a1a 0%, var(--fg-black) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}

.site-footer .footer-cta-text {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 580px;
}

.site-footer .footer-cta-text h2 {
  margin: 0 0 0.35rem;
  font-family: var(--fg-font-display) !important;
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff !important;
  line-height: 1.25;
}

/* Newsletter tagline — px only (Bootstrap html=10px makes rem tiny) */
footer.site-footer .footer-cta .footer-cta-text > p,
.site-footer .footer-cta-text > p.footer-cta-lead,
.site-footer .footer-cta-text p {
  margin: 0 !important;
  font-family: var(--fg-font-body) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.65) !important;
  max-width: 100% !important;
}

.site-footer .footer-subscribe {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  flex: 0 1 auto;
  min-width: min(100%, 300px);
  max-width: 500px;
  margin: 0;
}

.site-footer .footer-subscribe input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0 !important;
  padding: 11px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 14px !important;
  line-height: 1.4 !important;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.site-footer .footer-subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.site-footer .footer-subscribe input:focus {
  outline: none;
  border-color: var(--fg-red);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer .footer-subscribe button {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 18px !important;
  min-height: 44px;
  height: auto;
  background: linear-gradient(135deg, #ef2d34, var(--fg-red)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2 !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(227, 30, 36, 0.35);
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.site-footer .footer-subscribe button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(227, 30, 36, 0.45);
}

.site-footer .footer-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem var(--fg-footer-x) 2rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(200px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.site-footer .footer-brand-block {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.site-footer .footer-brand-block .footer-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  margin-bottom: 1rem;
  filter: brightness(1.05);
}

/* About text — DB may send <p>, <h3>, etc.; force one size */
.site-footer .footer-about-text,
.site-footer .footer-about-text p,
.site-footer .footer-about-text h1,
.site-footer .footer-about-text h2,
.site-footer .footer-about-text h3,
.site-footer .footer-about-text h4,
.site-footer .footer-about-text h5,
.site-footer .footer-about-text span,
.site-footer .footer-about-text div,
.site-footer .footer-about-text li {
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  font-family: var(--fg-font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-align: left !important;
  text-transform: none !important;
  border: none !important;
  background: none !important;
}

.site-footer .footer-about-text {
  display: block;
  max-width: 360px;
  margin-bottom: 1.25rem !important;
}

.site-footer .footer-about-text a {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
  text-decoration: underline !important;
}

.site-footer .footer-about-text a:hover {
  color: #fff !important;
}

.site-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.site-footer .footer-social a i {
  font-family: FontAwesome !important;
  font-size: 1rem;
  font-weight: normal;
}

.site-footer .footer-social a:hover {
  background: var(--fg-red);
  border-color: var(--fg-red);
  transform: translateY(-3px);
  color: #fff;
}

/* Brand + 3 widgets = 4 cols; same 15px left margin as newsletter */
.site-footer .footer-widgets {
  display: contents;
}

.site-footer .footer-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  transition: border-color 0.25s, background 0.25s;
}

.site-footer .footer-widget:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(227, 30, 36, 0.25);
}

/* Articles, Quick links, Explore — widget titles (h4) */
.site-footer .footer-widget h4,
.site-footer .footer-widgets h4 {
  margin: 0 0 0.85rem !important;
  font-family: var(--fg-font-display) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  line-height: 1.3 !important;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.site-footer .footer-widget h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--fg-red);
  flex-shrink: 0;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.45rem;
}

.site-footer .footer-links li:last-child {
  margin-bottom: 0;
}

.site-footer .footer-widget,
.site-footer .footer-widget ul,
.site-footer .footer-widget li {
  font-size: 16px !important;
}

.site-footer .footer-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 16px !important;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  transition: color 0.2s, gap 0.2s;
  text-transform: none !important;
  font-weight: 400 !important;
}

/* Link icon — light by default, red on hover */
.site-footer .footer-links a::before {
  content: "›";
  color: var(--fg-link-icon) !important;
  font-weight: 700;
  font-size: 14px !important;
  flex-shrink: 0;
  opacity: 1 !important;
  transform: none !important;
  transition: color 0.2s;
}

.site-footer .footer-links a:hover {
  color: #fff !important;
  gap: 0.5rem;
}

.site-footer .footer-links a:hover::before {
  color: var(--fg-red) !important;
}

/* Articles — icon + "Title - Category" (icon never wraps alone) */
.site-footer .footer-links a.footer-article-link {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1.55 !important;
}

.site-footer .footer-links a.footer-article-link::before {
  margin-top: 0.15em;
  line-height: 1.2;
}

.site-footer .footer-article-text {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(255, 255, 255, 0.65);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.site-footer .footer-links a.footer-article-link:hover .footer-article-text {
  color: #fff;
}

.site-footer .footer-article-sep {
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 400 !important;
}

.site-footer .footer-article-cat {
  font-size: 12px !important;
  color: var(--fg-red) !important;
  font-weight: 600 !important;
  text-transform: capitalize;
  line-height: 1.4 !important;
  white-space: nowrap;
}

.site-footer .footer-links a.footer-article-link:hover .footer-article-cat {
  color: #ff8589 !important;
}

.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: 100%;
  padding: 1.1rem var(--fg-footer-x);
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Copyright — DB HTML often has inline <a> tags (blue/large) */
.site-footer .footer-copyright,
.site-footer .footer-copyright p,
.site-footer .footer-copyright span,
.site-footer .footer-copyright a {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--fg-font-body) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  text-align: left !important;
  text-transform: none !important;
  text-decoration: none !important;
  display: inline;
}

.site-footer .footer-copyright {
  display: block;
}

.site-footer .footer-copyright a:hover {
  color: var(--fg-red) !important;
}

.site-footer .footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-footer .footer-bottom-links a {
  font-size: 13px !important;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
  transition: color 0.2s;
}

.site-footer .footer-bottom-links a:hover {
  color: var(--fg-red) !important;
}

.site-footer .footer-bottom-links a.create-profile {
  font-size: 13px !important;
  color: #fff !important;
  font-weight: 600 !important;
}

@media (max-width: 900px) {
  .site-footer .footer-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer .footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 700px) {
  .site-footer .footer-widgets {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-cta-text {
    max-width: 100%;
  }

  .site-footer .footer-subscribe {
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
  }

  .site-footer .footer-subscribe input {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 140px;
  }

  .site-footer .footer-subscribe button {
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
  }
}
