/**
 * Footer Styles for Human-Factor-child Theme
 * Companion stylesheet for footer.php
 *
 * All selectors use hf- prefix to avoid conflicts with Total Theme parent.
 * Color tokens reference the design system custom properties.
 *
 * @package Human-Factor-child
 */

/* ═══════════════════════════════════════════
   HIDE OLD TOTAL THEME FOOTER BOTTOM
   ═══════════════════════════════════════════ */

#footer-bottom {
  display: none !important;
}

/* ═══════════════════════════════════════════
   CUSTOM FOOTER BASE
   ═══════════════════════════════════════════ */

.hf-custom-footer {
  background: var(--brand-blue-dark, #0f2844);
  color: var(--text-light, #c8d6e5);
  font-family: var(--font-body, 'Source Sans 3', system-ui, sans-serif);
}

/* ── CTA Banner ── */
.hf-footer-cta-banner {
  background: linear-gradient(135deg, var(--sub-purple, #2c0f6d) 0%, var(--brand-blue-dark, #0f2844) 60%, var(--brand-blue, #1a3a5c) 100%);
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
  padding: 48px 24px;
}

.hf-footer-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hf-cta-book {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hf-cta-book-cover-link {
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}

.hf-cta-book-cover {
  width: 120px;
  height: 180px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: block;
  object-fit: cover;
}

.hf-cta-book-text h3 {
  font-family: var(--font-heading, 'Source Serif 4', Georgia, serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin-bottom: 8px;
  line-height: 1.3;
}

.hf-cta-book-text p {
  font-size: 15px;
  color: var(--text-light, #c8d6e5);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hf-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-body, 'Source Sans 3', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

.hf-cta-btn:hover {
  transform: translateY(-1px);
}

.hf-cta-btn-orange {
  background: var(--brand-orange, #e8732a);
  color: var(--text-white, #ffffff);
}

.hf-cta-btn-orange:hover {
  background: var(--brand-orange-hover, #d4621f);
  color: var(--text-white, #ffffff);
}

/* ── Newsletter Section ── */
.hf-cta-newsletter {
  padding-left: 48px;
  border-left: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
}

.hf-cta-newsletter h3 {
  font-family: var(--font-heading, 'Source Serif 4', Georgia, serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin-bottom: 8px;
}

.hf-cta-newsletter p {
  font-size: 15px;
  color: var(--text-light, #c8d6e5);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── HubSpot Form Overrides ── */
.hf-hubspot-form-wrap .hs-form {
  display: flex;
  gap: 8px;
}

.hf-hubspot-form-wrap .hs-form fieldset {
  flex: 1;
  max-width: none !important;
}

.hf-hubspot-form-wrap .hs-form .hs-input {
  width: 100% !important;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text-white, #ffffff);
  font-family: var(--font-body, 'Source Sans 3', system-ui, sans-serif);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.hf-hubspot-form-wrap .hs-form .hs-input::placeholder {
  color: var(--text-muted, #8a9bb5);
}

.hf-hubspot-form-wrap .hs-form .hs-input:focus {
  border-color: var(--sub-cyan, #3bf3fd);
}

.hf-hubspot-form-wrap .hs-form .hs-submit {
  flex-shrink: 0;
}

.hf-hubspot-form-wrap .hs-form .hs-button {
  padding: 12px 24px;
  background: var(--brand-orange, #e8732a);
  color: var(--text-white, #ffffff);
  border: none;
  border-radius: 6px;
  font-family: var(--font-body, 'Source Sans 3', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.hf-hubspot-form-wrap .hs-form .hs-button:hover {
  background: var(--brand-orange-hover, #d4621f);
}

.hf-hubspot-form-wrap .hs-form .hs-error-msgs {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
}

.hf-hubspot-form-wrap .hs-form .submitted-message {
  color: var(--sub-cyan, #3bf3fd);
  font-size: 15px;
}

/* Reset HubSpot default styles that conflict */
.hf-hubspot-form-wrap .hs-form label {
  display: none;
}

.hf-hubspot-form-wrap .hs-form .hs-form-field {
  margin-bottom: 0;
}

.hf-hubspot-form-wrap .hs-form .legal-consent-container {
  color: var(--text-muted, #8a9bb5);
  font-size: 12px;
  margin-top: 8px;
}

.hf-hubspot-form-wrap .hs-form .legal-consent-container a {
  color: var(--sub-cyan, #3bf3fd);
}

/* ═══════════════════════════════════════════
   MAIN FOOTER GRID
   ═══════════════════════════════════════════ */

.hf-footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.hf-footer-brand p {
  font-size: 14px;
  color: var(--text-muted, #8a9bb5);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}

.hf-footer-brand-name {
  font-family: var(--font-heading, 'Source Serif 4', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin-bottom: 12px;
}

.hf-footer-brand-name span {
  color: var(--brand-orange, #e8732a);
}

.hf-footer-address {
  font-size: 13px;
  color: var(--text-muted, #8a9bb5);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Social Icons ── */
.hf-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hf-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-light, #c8d6e5);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hf-footer-social a:hover {
  background: var(--brand-orange, #e8732a);
  color: var(--text-white, #ffffff);
}

.hf-footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Navigation Columns ── */
.hf-footer-col h4 {
  font-family: var(--font-body, 'Source Sans 3', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white, #ffffff);
  margin-bottom: 16px;
}

.hf-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-footer-col li {
  margin-bottom: 10px;
}

.hf-footer-col a {
  color: var(--text-muted, #8a9bb5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  line-height: 1.4;
  display: inline-block;
}

.hf-footer-col a:hover {
  color: var(--text-white, #ffffff);
}

/* ═══════════════════════════════════════════
   BOTTOM BAR
   ═══════════════════════════════════════════ */

.hf-footer-bottom-bar {
  border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
  padding: 20px 24px;
}

.hf-footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hf-footer-copyright {
  font-size: 13px;
  color: var(--text-muted, #8a9bb5);
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .hf-footer-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hf-cta-newsletter {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    padding-top: 36px;
  }
  .hf-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .hf-hubspot-form-wrap .hs-form {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hf-cta-book {
    flex-direction: column;
    text-align: center;
  }
  .hf-footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hf-footer-bottom-inner {
    text-align: center;
  }
}
