/* ============================================
   SITEWIDE FOOTER CSS — SUE Behavioural Design
   Version: 1.0 (Mar 2026)

   Companion to sitewide-footer.js.
   Loaded by sitewide-footer.js.
   ============================================ */

footer {
    background: #ffffff;
    color: #2c2c2c;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-content {
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Top row: Address | Contact | Newsletter === */

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.footer-top-col {
    padding: 4rem 2.5rem 3rem 2.5rem;
    border-right: 1px solid rgba(0,0,0,0.1);
}
.footer-top-col:last-child {
    border-right: none;
    padding-left: 2.5rem;
    padding-right: 0;
}
.footer-top-col:first-child {
    padding-left: 0;
}

.footer-top-col h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text, #2c2c2c);
    margin-bottom: 1rem;
}

.footer-top-col address {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text, #2c2c2c);
    font-style: normal;
}

.footer-top-col a {
    color: var(--text, #2c2c2c);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
    transition: opacity 0.2s;
}
.footer-top-col a:hover { opacity: 0.75; }

/* Social icons */
.footer-social-icons {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-bottom: 0 !important;
}
.footer-social-icon:hover { opacity: 0.7; }

/* Newsletter column */
.footer-newsletter-intro {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #888);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-newsletter-tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text, #2c2c2c);
    margin-bottom: 1.5rem;
}

.footer-newsletter-tagline strong { font-weight: bold; }

.footer-newsletter-btn {
    display: inline-block;
    width: fit-content;
    background: var(--coral, #FF5A5F);
    color: var(--white, #fff) !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: var(--btn-radius, 6px);
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 0 !important;
}
.footer-newsletter-btn:hover {
    background: #e54e53;
    opacity: 1 !important;
}

/* === Bottom grid: 4 link columns === */

.footer-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.footer-col {
    padding-right: 2rem;
    border-right: 1px solid rgba(0,0,0,0.1);
}
.footer-col:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 2rem;
}
.footer-col:not(:first-child):not(:last-child) {
    padding-left: 2rem;
}

.footer-col h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted, #888);
    margin-bottom: 0.85rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--coral, #FF5A5F);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 0.7; }

/* === Copyright bar === */

.footer-bottom {
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted, #888);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted, #888);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text, #2c2c2c); }

/* === Responsive === */

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top-col:last-child { grid-column: 1 / -1; border-right: none; border-top: 1px solid rgba(0,0,0,0.1); }
    .footer-bottom-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-top-col { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 2rem 1.25rem; }
    .footer-top-col:first-child { padding-left: 1.25rem; }
    .footer-top-col:last-child { padding-left: 1.25rem; border-bottom: none; }
    .footer-bottom-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-col { padding-left: 0; padding-right: 0; border-right: none; border-bottom: none; }
    .footer-col:last-child { padding-left: 0; }
    .footer-col:not(:first-child):not(:last-child) { padding-left: 0; }
    .footer-col:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid rgba(0,0,0,0.1); }
}
