/*
 * Cobb REALTORS® — Footer Styles
 * Enqueue via functions.php:
 *   wp_enqueue_style( 'cobb-footer', get_template_directory_uri() . '/cobb-footer.css' );
 *
 * Also enqueue Phosphor Icons in functions.php:
 *   wp_enqueue_style( 'phosphor-icons', 'https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css' );
 *
 * And Montserrat from Google Fonts:
 *   wp_enqueue_style( 'montserrat', 'https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap' );
 */

/* ── Brand tokens ── */
:root {
  --cobb-blue:    #00BAFF;
  --realtor-blue: #006BB7;
  --cobalt:       #004282;
  --midnight:     #0E2036;
  --midnight-900: #081424;
  --font-sans:    'Montserrat', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset (scoped to footer) ── */
#cobb-footer *, #cobb-footer *::before, #cobb-footer *::after {
  box-sizing: border-box;
}

/* ── Footer shell ── */
#cobb-footer {
  background: var(--midnight);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
}

#cobb-footer a {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
}

#cobb-footer a:hover {
  color: #00BAFF !important;
}

/* ── Top accent stripe ── */
.cobb-footer__stripe {
  height: 4px;
  background: var(--cobb-blue);
  width: 100%;
}

/* ── Shield watermark ── */
.cobb-footer__watermark {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 440px;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

/* ── Main body ── */
.cobb-footer__body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 48px;
}

/* ── Top row: logo + CTAs ── */
.cobb-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ── Logo ── */
.cobb-footer__logo {
  height: 64px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

/* ── Tagline text ── */
.cobb-footer__tagline-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 360px;
  font-weight: 400;
  margin: 0;
}

/* ── Social ── */
.cobb-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
  list-style: none;
  padding: 0;
}

.cobb-footer__social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7) !important;
  font-size: 16px;
  transition: all 180ms ease;
}

.cobb-footer__social-btn:hover {
  border-color: #00BAFF !important;
  color: #00BAFF !important;
  background: rgba(0,186,255,0.08);
}

/* ── Quick CTAs ── */
.cobb-footer__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.cobb-footer__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  padding: 18px 24px;
  transition: background 180ms ease;
  color: white;
}

.cobb-footer__cta--portal {
  background: rgba(0,186,255,0.07);
  border: 1px solid rgba(0,186,255,0.18);
}
.cobb-footer__cta--portal:hover {
  background: rgba(0,186,255,0.14);
  color: white !important;
}

.cobb-footer__cta--join {
  background: rgba(0,107,183,0.15);
  border: 1px solid rgba(0,107,183,0.3);
}
.cobb-footer__cta--join:hover {
  background: rgba(0,107,183,0.25);
  color: white !important;
}

.cobb-footer__cta--edu {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
.cobb-footer__cta--edu:hover {
  background: rgba(255,255,255,0.08);
  color: white !important;
}

.cobb-footer__cta-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.cobb-footer__cta-icon--blue  { color: var(--cobb-blue); }
.cobb-footer__cta-icon--rblu  { color: var(--realtor-blue); }
.cobb-footer__cta-icon--muted { color: rgba(255,255,255,0.5); }

.cobb-footer__cta-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.cobb-footer__cta-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.cobb-footer__cta-arrow {
  margin-left: auto;
  color: rgba(255,255,255,0.3);
  font-size: 16px;
}

/* ── Contact row ── */
.cobb-footer__contact {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cobb-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.875rem;
}

.cobb-footer__contact-item:hover {
  color: rgba(255,255,255,0.9) !important;
}

.cobb-footer__contact-icon {
  color: var(--cobb-blue);
  font-size: 16px;
}

.cobb-footer__affiliates {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cobb-footer__affiliate-link {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  opacity: 0.35;
  transition: opacity 180ms;
}
.cobb-footer__affiliate-link:hover {
  opacity: 0.6;
  color: white !important;
}

/* ── Bottom bar ── */
.cobb-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cobb-footer__copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  margin: 0;
}

.cobb-footer__legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cobb-footer__legal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5) !important;
}
.cobb-footer__legal a:hover {
  color: #00BAFF !important;
}

/* ── Foundation tagline band ── */
.cobb-footer__foundation {
  background: var(--midnight-900);
  border-top: 1px solid rgba(0,186,255,0.15);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cobb-footer__foundation-icon {
  height: 28px;
  opacity: 0.4;
  filter: brightness(0) invert(1);
}

.cobb-footer__foundation-text {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.cobb-footer__foundation-accent {
  color: var(--cobb-blue);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cobb-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .cobb-footer__contact { gap: 20px; }
  .cobb-footer__affiliates { display: none; }
}

@media (max-width: 600px) {
  .cobb-footer__body { padding: 40px 24px 32px; }
  .cobb-footer__top { gap: 28px; margin-bottom: 36px; padding-bottom: 32px; }
  .cobb-footer__contact { flex-direction: column; gap: 14px; align-items: flex-start; }
  .cobb-footer__bottom { flex-direction: column; align-items: flex-start; }
  .cobb-footer__legal { gap: 16px; }
  .cobb-footer__foundation { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
}
