/* ─────────────────────────────────────────────────────────
   Cittopia · Unified footer styling
   Editorial-grade footer with newsletter signup
   ───────────────────────────────────────────────────────── */

.cittopia-footer {
    background: linear-gradient(180deg, #1b3a2f 0%, #122922 100%);
    color: #cad7d2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
    padding: 4rem 1.5rem 2rem;
    margin-top: 3rem;
    border-top: 4px solid #2ca58d;
}

/* Top section: brand + newsletter */
.cf-top {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(202, 215, 210, 0.15);
}
@media (max-width: 720px) {
    .cf-top { grid-template-columns: 1fr; gap: 2rem; }
}

.cf-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.cf-logo-link {
    display: inline-block;
    margin-bottom: 0.5rem;
}
.cf-logo-link img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.cf-tagline {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    color: #ffc222;
    margin: 0;
}
.cf-copyright {
    font-size: 0.8rem;
    color: #8aa39b;
    margin: 0.85rem 0 0;
}

/* Newsletter */
.cf-newsletter {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    position: relative;
}
.cf-news-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}
.cf-news-sub {
    font-size: 0.88rem;
    color: #a5b8b0;
    margin: 0 0 1.25rem;
}
.cf-news-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    position: relative;
}
.cf-news-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #1b3a2f;
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.15s;
}
.cf-news-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 194, 34, 0.3);
}
.cf-news-input::placeholder {
    color: #94a0aa;
}
.cf-news-btn {
    background: #ffc222;
    color: #1b3a2f;
    border: 0;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
}
.cf-news-btn:hover {
    background: #ffd459;
    transform: translateY(-1px);
}
.cf-news-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.cf-news-status {
    font-size: 0.85rem;
    margin: 0.6rem 0 0;
    font-weight: 600;
}

/* Middle section: columns */
.cf-cols {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}
@media (max-width: 880px) {
    .cf-cols { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}
@media (max-width: 480px) {
    .cf-cols { grid-template-columns: 1fr; }
}
.cf-col-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffc222;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
}
.cf-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.cf-col-list li { line-height: 1; }
.cf-link {
    color: #cad7d2;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s;
    line-height: 1.4;
}
.cf-link:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #2ca58d;
    text-underline-offset: 4px;
}

/* Bottom section: social + legal + attribution */
.cf-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(202, 215, 210, 0.15);
}
.cf-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cf-social-row {
    display: flex;
    gap: 0.5rem;
}
.cf-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cad7d2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    text-decoration: none;
}
.cf-social:hover {
    background: #2ca58d;
    border-color: #2ca58d;
    color: #fff;
    transform: translateY(-2px);
}
.cf-social svg {
    width: 16px;
    height: 16px;
}

.cf-legal {
    font-size: 0.82rem;
    color: #8aa39b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.cf-legal-link, .cf-contact-link {
    color: #cad7d2;
    text-decoration: none;
    transition: color 0.15s;
}
.cf-legal-link:hover, .cf-contact-link:hover {
    color: #ffc222;
}
.cf-sep {
    color: #4d6d61;
    margin: 0 0.2rem;
}

.cf-attribution {
    font-size: 0.78rem;
    color: #8aa39b;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 920px;
}

.cf-contact {
    font-size: 0.85rem;
    color: #a5b8b0;
}
.cf-contact strong {
    color: #ffc222;
    font-weight: 700;
    margin-right: 0.25rem;
}

/* Hide ALL legacy footers when unified footer is present */
body:has([data-cittopia-footer]) > footer:not(.cittopia-footer),
body:has(.cittopia-footer) > footer:not(.cittopia-footer),
body:has(.cittopia-footer) .about-footer,
body:has(.cittopia-footer) .legal-footer,
body:has(.cittopia-footer) .docs-footer,
body:has(.cittopia-footer) .ins-footer {
    display: none !important;
}
