/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER LAYOUT — SettlementRadar
   Task #1366886: v3.2 ALL-WHITE footer — #FFFFFF background, dark text, emerald accents
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Main Footer Container ─────────────────────────────────────────────────── */
.sr-ramsey-footer {
  background: #FFFFFF;
  color: #1F2A37;
  padding: 80px 0 0;
  border-top: 1px solid #E5E7EB;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-ft-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ── Brand Row ─────────────────────────────────────────────────────────────── */
.sr-ft-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.sr-ft-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sr-ft-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0A0A0A;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  transition: opacity 0.2s ease;
}

.sr-ft-brand-name:hover {
  opacity: 0.85;
}

.sr-ft-social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sr-ft-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* ── About Brand ───────────────────────────────────────────────────────────── */
.sr-ft-about-brand {
  font-size: 0.92rem;
  color: #1F2A37;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #E5E7EB;
}

.sr-ft-about-brand a {
  color: #00B37D;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-ft-about-brand a:hover {
  color: #34D399;
}

/* ── Email Capture ─────────────────────────────────────────────────────────── */
.sr-ft-email-capture {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 48px;
  box-shadow: none;
}

.sr-ft-email-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.sr-ft-email-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.sr-ft-email-sub {
  font-size: 0.85rem;
  color: #1F2A37;
  margin: 0 0 20px;
}

.sr-ft-email-copy {
  margin-bottom: 0;
}

.sr-ft-email-form {
  margin: 0;
}

.sr-ft-email-row {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.sr-ft-email-input {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  background: #FFFFFF;
  color: #0A0A0A;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sr-ft-email-input::placeholder {
  color: #9CA3AF;
}

.sr-ft-email-input:focus {
  border-color: #00B37D;
  box-shadow: 0 0 0 3px rgba(0, 179, 125, 0.2);
}

.sr-ft-email-btn {
  height: 52px;
  padding: 0 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #00B37D;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sr-ft-email-btn:hover {
  background: #059669;
  box-shadow: 0 2px 8px rgba(0, 179, 125, 0.3);
}

.sr-ft-email-btn:active {
  background: #047857;
  transform: translateY(1px);
}

.sr-ft-email-msg {
  font-size: 0.85rem;
  margin: 10px 0 0;
  min-height: 1.2em;
}

/* ── Trust Badges ──────────────────────────────────────────────────────────── */
.sr-ft-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  padding: 24px 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #E5E7EB;
}

.sr-ft-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1F2A37;
  white-space: nowrap;
}

.sr-ft-trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #00B37D;
}

/* ── Link Columns ──────────────────────────────────────────────────────────── */
.sr-ft-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid #E5E7EB;
}

.sr-ft-col {
  min-width: 0;
}

.sr-ft-col-details {
  /* Reset details/summary styling */
}

.sr-ft-col-details > summary {
  list-style: none;
}

.sr-ft-col-details > summary::-webkit-details-marker {
  display: none;
}

.sr-ft-col-details > summary::marker {
  display: none;
  content: '';
}

.sr-ft-col-header {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0A0A0A;
  margin-bottom: 16px;
  cursor: default;
  display: block;
  padding: 0;
  user-select: none;
}

.sr-ft-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-ft-col-links a {
  font-size: 0.88rem;
  color: #1F2A37;
  text-decoration: none;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.sr-ft-col-links a:hover {
  color: #00B37D;
}

.sr-ft-col-links a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── SEO Links ─────────────────────────────────────────────────────────────── */
.sr-ft-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  padding: 24px 0;
  margin: 0;
  font-size: 0.82rem;
}

.sr-ft-seo-links-label {
  font-weight: 600;
  color: #0A0A0A;
}

.sr-ft-seo-links a {
  color: #1F2A37;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sr-ft-seo-links a:hover {
  color: #00B37D;
  text-decoration: underline;
}

/* ── Trust Strip ───────────────────────────────────────────────────────────── */
.sr-ft-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  padding: 20px 0;
  margin-top: 8px;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.sr-ft-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1F2A37;
  white-space: nowrap;
}

.sr-ft-trust-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Bottom Section ────────────────────────────────────────────────────────── */
.sr-ft-bottom-section {
  padding: 28px 0 32px;
}

.sr-ft-bottom-bar {
  text-align: center;
}

.sr-ft-copy {
  font-size: 0.82rem;
  color: #1F2A37;
  margin: 0 0 6px;
}

.sr-ft-copy a {
  color: #1F2A37;
  text-decoration: none;
}

.sr-ft-copy a:hover {
  color: #00B37D;
  text-decoration: underline;
}

.sr-ft-address {
  font-size: 0.78rem;
  color: #1F2A37;
  margin: 0 0 12px;
}

.sr-ft-terms-links {
  font-size: 0.78rem;
  color: #1F2A37;
  margin: 0;
}

.sr-ft-terms-links a {
  color: #1F2A37;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sr-ft-terms-links a:hover {
  color: #00B37D;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (max-width: 768px)
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sr-ramsey-footer {
    padding: 48px 0 0;
  }

  .sr-ft-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sr-ft-social-links {
    justify-content: flex-start;
  }

  .sr-ft-about-brand {
    font-size: 0.88rem;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .sr-ft-email-capture {
    padding: 24px 16px;
    margin-bottom: 36px;
    border-radius: 12px;
  }

  .sr-ft-email-row {
    flex-direction: column;
  }

  .sr-ft-email-input,
  .sr-ft-email-btn {
    width: 100%;
  }

  .sr-ft-trust-badges {
    gap: 10px 16px;
    padding: 20px 0 32px;
    margin-bottom: 32px;
  }

  .sr-ft-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 36px;
  }

  /* Mobile: columns use collapsible details */
  .sr-ft-col-details > summary {
    cursor: pointer;
    position: relative;
    padding-right: 24px;
  }

  .sr-ft-col-details > summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #9CA3AF;
    transition: transform 0.2s ease;
  }

  .sr-ft-col-details[open] > summary::after {
    content: '\2212';
  }

  .sr-ft-col-details:not([open]) .sr-ft-col-links {
    display: none;
  }

  .sr-ft-trust-strip {
    gap: 6px 14px;
    padding: 16px 0;
  }

  .sr-ft-trust-item {
    font-size: 0.72rem;
  }

  .sr-ft-bottom-section {
    padding: 20px 0 24px;
  }
}

/* ── Extra-small mobile (375px) ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sr-ft-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sr-ft-col {
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
  }

  .sr-ft-col:last-child {
    border-bottom: none;
  }

  .sr-ft-col-header {
    margin-bottom: 0;
  }

  .sr-ft-col-details[open] .sr-ft-col-header {
    margin-bottom: 12px;
  }

  .sr-ft-col-links {
    gap: 8px;
    padding-left: 0;
  }

  .sr-ft-col-links a {
    padding: 4px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .sr-ft-email-headline {
    font-size: 1.1rem;
  }

  .sr-ft-seo-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ── Desktop: keep details columns always open ─────────────────────────────── */
@media (min-width: 769px) {
  .sr-ft-col-details {
    /* Override native <details> hiding behavior on desktop */
  }
  .sr-ft-col-details > .sr-ft-col-links {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }
  .sr-ft-col-header {
    cursor: default;
    pointer-events: none;
  }
}

/* ── Desktop columns at wide screens ───────────────────────────────────────── */
@media (min-width: 1024px) {
  .sr-ft-columns {
    grid-template-columns: repeat(7, 1fr);
    gap: 40px 24px;
  }
}

/* ── Share strip styles ──────────────────────────────────────────────────── */
.share-strip-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.share-strip-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F3F4F6;
  color: #1F2A37;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.share-strip-footer a:hover {
  background: #00B37D;
  color: #fff;
}

.share-strip-footer a svg {
  width: 18px;
  height: 18px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MODAL OVERLAYS — hidden by default, shown on .open/.visible
   Bug #1367905: modal-overlays.min.css was lost; these rules prevent
   overlays from rendering in-page as raw HTML.
   ══════════════════════════════════════════════════════════════════════════════ */

/* Hide all modal/overlay elements by default */
.rir-overlay,
#rirOverlay,
.sas-overlay,
#sasOverlay,
#exitIntentOverlay,
#srFmsExitBackdrop,
#quizCtaOverlay {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Show when explicitly opened */
.rir-overlay.open,
.sas-overlay.open,
#exitIntentOverlay.visible,
#exitIntentOverlay.open,
#srFmsExitBackdrop.open,
#quizCtaOverlay.open {
  display: flex !important;
}

/* Modal card base styling */
.rir-modal,
.sas-modal,
#exitIntentModal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: srModalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes srModalSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Modal close button */
.rir-close,
.sas-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s;
}

.rir-close:hover,
.sas-close:hover {
  background: #F3F4F6;
}

/* Modal typography */
.rir-title,
.sas-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 0.5rem;
  text-align: center;
}

.rir-subtitle,
.sas-subtitle {
  font-size: 0.88rem;
  color: #6B7280;
  margin: 0 0 1.25rem;
  text-align: center;
  line-height: 1.5;
}

/* Modal form fields */
.rir-label,
.sas-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151;
  margin-bottom: 6px;
}

.rir-url {
  font-size: 0.82rem;
  color: #6B7280;
  background: #F9FAFB;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  word-break: break-all;
}

.rir-textarea,
.rir-email-input,
.sas-field {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  background: #fff;
  color: #0A0A0A;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.rir-textarea:focus,
.rir-email-input:focus,
.sas-field:focus {
  border-color: #00B37D;
  box-shadow: 0 0 0 3px rgba(0, 179, 125, 0.15);
}

.rir-textarea {
  resize: vertical;
  min-height: 90px;
}

.sas-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #9CA3AF;
}

/* Modal submit buttons */
.rir-submit,
.sas-submit {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #00B37D;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.rir-submit:hover,
.sas-submit:hover {
  background: #059669;
  box-shadow: 0 2px 8px rgba(0, 179, 125, 0.3);
}

/* Modal success state */
.rir-success,
.sas-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.rir-success-icon,
.sas-success-icon {
  margin-bottom: 0.75rem;
}

.rir-success-msg,
.sas-success-msg {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0 0 0.35rem;
}

.rir-success-sub,
.sas-success-sub {
  font-size: 0.88rem;
  color: #6B7280;
  margin: 0;
}

.sas-error {
  font-size: 0.82rem;
  color: #DC2626;
  text-align: center;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* ── Exit Intent Modal ────────────────────────────────────────────────────── */
#exitIntentModal {
  max-width: 420px;
}

#exitIntentClose {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
}

#exitIntentClose:hover {
  background: #F3F4F6;
}

.ei-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #00B37D;
  background: rgba(0, 179, 125, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.ei-badge-dot {
  width: 6px;
  height: 6px;
  background: #00B37D;
  border-radius: 50%;
  animation: eiDotPulse 1.5s ease-in-out infinite;
}

@keyframes eiDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ei-headline {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ei-sub {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.ei-form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.ei-email-input {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  background: #fff;
  color: #0A0A0A;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.ei-email-input:focus {
  border-color: #00B37D;
  box-shadow: 0 0 0 3px rgba(0, 179, 125, 0.15);
}

.ei-submit-btn {
  height: 48px;
  padding: 0 20px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #00B37D;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.ei-submit-btn:hover {
  background: #059669;
}

.ei-disclaimer {
  font-size: 0.72rem;
  color: #9CA3AF;
  margin: 0;
  text-align: center;
}

.ei-msg {
  font-size: 0.85rem;
  text-align: center;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

/* ── Lead Magnet Sticky Bar ───────────────────────────────────────────────── */
#lm-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #FFFBEB;
  border-top: 1px solid #FDE68A;
  padding: 10px clamp(1rem, 3vw, 2rem);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  display: none;
}

#lm-sticky-bar.visible {
  display: block;
}

.lm-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lm-bar-text {
  font-size: 0.85rem;
  color: #92400E;
  font-weight: 500;
}

.lm-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: #00B37D;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.lm-bar-btn:hover {
  background: #059669;
}

.lm-bar-close {
  background: none;
  border: none;
  color: #92400E;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
  opacity: 0.6;
}

.lm-bar-close:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  #lm-sticky-bar {
    padding: 8px 12px;
  }
  .lm-bar-inner {
    gap: 8px;
  }
  .lm-bar-text {
    font-size: 0.78rem;
    text-align: center;
    width: 100%;
  }
}
