/* ==========================================================================
   CTA PRE-FOOTER & FOOTER (BEXLEY CLONE)
   Strictly adheres to Design System Tokens in tokens.css
   Container max-width: 1840px
   Theme: Midnight Navy Black (#0c0f17) & Surface (#101624) : Zero Green
   ========================================================================== */

/* --------------------------------------------------------------------------
   CTA Pre-Footer Section: "Build clarity. Unlock growth."
   -------------------------------------------------------------------------- */
.cta-prefooter-section {
  position: relative;
  width: 100%;
  background-color: var(--_colors---swatch--black, #0c0f17);
  padding: 40px 0 60px;
  box-sizing: border-box;
}

.consultation-section + .cta-prefooter-section {
  padding-top: 12px;
}

.cta-prefooter-container {
  width: 100%;
  max-width: var(--container-max, 1840px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

/* Card with subtle border and office background photo */
.cta-prefooter-card {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-card, 6px);
  border: 1px solid var(--border-divider, rgba(189, 196, 212, 0.15));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

/* Background image & deep navy overlay */
.cta-prefooter-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-prefooter-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.28;
  filter: contrast(1.1) grayscale(20%);
}

.cta-prefooter-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 15, 23, 0.95) 0%, rgba(16, 22, 36, 0.88) 50%, rgba(12, 15, 23, 0.7) 100%);
}

/* Content */
.cta-prefooter-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-prefooter-title {
  font-family: var(--_fonts---fonts--alt-heading, "ivypresto-headline", Georgia, serif);
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.cta-prefooter-desc {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(235, 236, 235, 0.85);
  margin: 0 0 16px 0;
  max-width: 640px;
}

/* Actions Row: Button + Social Proof Rating */
.cta-prefooter-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.cta-prefooter-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.cta-prefooter-stars-row,
.cta-stars-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  color: #ffffff;
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 14px;
  font-weight: 600;
}

.cta-prefooter-stars {
  color: #f59e0b; /* Golden stars */
  letter-spacing: 2px;
  font-size: 13px;
  display: inline-block;
  line-height: 1;
  white-space: nowrap !important;
}

.cta-stars-icons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
}

.star-icon {
  width: 14px !important;
  height: 14px !important;
  fill: #f59e0b !important;
  color: #f59e0b !important;
  display: inline-block !important;
}

.cta-prefooter-rating-label,
.cta-rating-note {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 13px;
  color: rgba(189, 196, 212, 0.7);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Main Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  width: 100%;
  background-color: var(--_colors---swatch--black, #0c0f17);
  color: #ffffff;
  padding: 60px 0 40px;
  box-sizing: border-box;
  border-top: 1px solid var(--border-divider, rgba(189, 196, 212, 0.12));
}

.footer-container {
  width: 100%;
  max-width: var(--container-max, 1840px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

/* 4-Column Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-divider, rgba(189, 196, 212, 0.12));
  box-sizing: border-box;
}

/* Col 1: Newsletter & Brief */
.footer-col-news {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 440px;
}

.footer-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-name {
  font-family: var(--_fonts---fonts--alt-heading, "ivypresto-headline", Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}

.footer-brand-sub {
  font-family: var(--_fonts---fonts--geist-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-gold, #d5a021);
}

.footer-news-tagline {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.footer-news-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 360px;
}

.footer-news-input {
  width: 100%;
  background: rgba(21, 29, 46, 0.6);
  border: 1px solid rgba(189, 196, 212, 0.2);
  border-radius: 4px;
  padding: 12px 48px 12px 16px;
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.25s ease;
}

.footer-news-input:focus {
  border-color: var(--color-brand-symbol, #bdc4d4);
}

.footer-news-input::placeholder {
  color: rgba(189, 196, 212, 0.4);
}

.footer-news-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 34px;
  background: var(--color-brand-navy, #212e4e);
  border: 1px solid rgba(189, 196, 212, 0.25);
  border-radius: 3px;
  color: var(--color-brand-symbol, #bdc4d4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.footer-news-btn:hover {
  background: var(--color-brand-symbol, #bdc4d4);
  color: var(--color-brand-navy, #212e4e);
}

.footer-news-disclaimer {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 13px;
  color: rgba(189, 196, 212, 0.5);
  margin: 0;
}

/* Nav Columns: Titles & Lists */
.footer-col-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col-title {
  font-family: var(--_fonts---fonts--geist-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-symbol, #bdc4d4);
  margin: 0;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 14px;
  color: rgba(235, 236, 235, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Bottom Bar: Copyright & Monogram */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 13px;
  color: rgba(189, 196, 212, 0.5);
  margin: 0;
}

.footer-brand-monogram {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(189, 196, 212, 0.7);
  font-family: var(--_fonts---fonts--geist-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-monogram-icon {
  width: 24px;
  height: 24px;
  color: var(--color-brand-symbol, #bdc4d4);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 767px) {
  .cta-prefooter-section {
    padding: 32px 0 36px;
  }
  .consultation-section + .cta-prefooter-section {
    padding-top: 8px;
  }
  .cta-prefooter-container,
  .footer-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cta-prefooter-card {
    padding: 40px 20px;
    min-height: 360px;
  }
  .cta-prefooter-title {
    font-size: clamp(26px, 6.8vw, 34px);
    line-height: 1.15;
  }
  .cta-prefooter-desc {
    font-size: 15px;
    line-height: 1.5;
  }
  .cta-prefooter-actions {
    flex-direction: column;
    gap: 16px;
  }
  .site-footer {
    padding-top: 56px;
    padding-bottom: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
