/* =========================================
   PUBLIC SITE FOOTER
   ========================================= */
.jc-footer {
    --jc-bg: #0f172a;
    --jc-bg-soft: #1e293b;
    --jc-text: #94a3b8;
    --jc-heading: #f8fafc;
    --jc-accent: #667eea;
    --jc-border: rgba(148, 163, 184, 0.16);
    background: var(--jc-bg);
    color: var(--jc-text);
    margin-top: 60px;
    position: relative;
    font-size: 15px;
    display: flow-root; /* keeps the CTA's negative margin from collapsing through the footer */
}

/* CTA band — overlaps the top edge of the footer */
.jc-footer-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 38px 44px;
    margin-top: -75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.35);
}
.jc-footer-cta h3 { color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.jc-footer-cta p { color: rgba(255, 255, 255, 0.85); margin: 0; font-size: 16px; }
.jc-footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.jc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, color .2s; border: 2px solid transparent; }
.jc-btn:hover { transform: translateY(-2px); text-decoration: none; }
.jc-btn-light { background: #fff; color: #4c51bf; }
.jc-btn-light:hover { color: #4c51bf; background: #f1f5f9; }
.jc-btn-outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.jc-btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Main grid */
.jc-footer-main {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 48px 40px;
    padding: 64px 0 48px;
}
.jc-footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 6px 12px; }
.jc-footer-logo img { height: 56px; width: auto; display: block; } /* logo.png has an opaque white background, so it sits on a white chip */
.jc-footer-about { margin: 18px 0 22px; line-height: 1.7; max-width: 340px; }
.jc-footer-contact { list-style: none; margin: 0 0 22px; padding: 0; }
.jc-footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.jc-footer-contact i { color: var(--jc-accent); width: 16px; text-align: center; }
.jc-footer-contact a { color: var(--jc-text); text-decoration: none; }
.jc-footer-contact a:hover { color: #fff; }

.jc-footer-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.jc-footer-social a {
    width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--jc-bg-soft); color: var(--jc-text); text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.jc-footer-social a:hover { background: var(--jc-accent); color: #fff; transform: translateY(-2px); }

.jc-footer-col h4 { color: var(--jc-heading); font-size: 16px; font-weight: 700; margin: 0 0 20px; letter-spacing: .02em; }
.jc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.jc-footer-col li { margin-bottom: 12px; }
.jc-footer-col a { color: var(--jc-text); text-decoration: none; transition: color .2s, padding-left .2s; }
.jc-footer-col a:hover { color: #fff; padding-left: 4px; }

.jc-footer-ndpr { display: block; height: 56px; width: auto; margin-top: 18px; }

/* Bottom bar */
.jc-footer-bottom {
    border-top: 1px solid var(--jc-border);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    flex-wrap: wrap;
    font-size: 14px;
}
.jc-footer-legal { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.jc-footer-legal a,
.jc-footer-legal button { color: var(--jc-text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; transition: color .2s; }
.jc-footer-legal a:hover,
.jc-footer-legal button:hover { color: #fff; }

@media (max-width: 991px) {
    .jc-footer-main { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
    .jc-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .jc-footer { margin-top: 90px; }
    .jc-footer-cta { padding: 28px 24px; margin-top: -60px; }
    .jc-footer-cta h3 { font-size: 22px; }
    .jc-footer-main { grid-template-columns: 1fr 1fr; padding: 48px 0 32px; }
    .jc-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Newsletter signup box — sits directly above the footer CTA (same look as the original blog-page box) */
.subscribe-box { --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --dark-color: #333; background: var(--primary-gradient); padding: 50px 30px; border-radius: 15px; margin-top: 60px; color: white; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.subscribe-box h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 800; color: #ffffff !important; }
.subscribe-box p { font-size: 1rem; margin-bottom: 25px; color: #ffffff !important; }
.subscribe-form { display: flex; max-width: 700px; margin: 0 auto; gap: 10px; justify-content: center; align-items: stretch; }
.subscribe-form input[type="email"], .subscribe-form select { padding: 15px 20px; border-radius: 8px; border: none; font-size: 1rem; outline: none; }
.subscribe-form input[type="email"] { flex: 2; min-width: 200px; }
.subscribe-form select { flex: 1; min-width: 150px; background: white; color: var(--dark-color); cursor: pointer; }
.subscribe-form button { padding: 15px 30px; background: var(--dark-color); color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.subscribe-form button:hover { background: white; color: var(--dark-color); }
.subscribe-form button:disabled { opacity: 0.7; cursor: not-allowed; }
@media (max-width: 768px) {
    .subscribe-form { flex-direction: column; }
    .subscribe-form button { width: 100%; }
}
