/* ========================================================================
   BRUTALIST FOOTER v2 - full rebuild, matching the header/hero's design
   language and dark palette instead of the old two-tone cream/dark
   split. Uses clamp() for fluid type/spacing and CSS Grid with
   auto-fit/minmax() for the link columns, so layout reflows naturally
   at any width rather than needing manually-maintained breakpoints.
   ======================================================================== */

.xbrutal-footer {
    font-family: 'Courier New', Courier, monospace;
    background: #DCE3DC;
    color: #fff;
    border-top: 3px solid #8E90FA;
}

.xbrutal-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.xbrutal-footer-body {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.xbrutal-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
    gap: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 820px) {
    .xbrutal-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Brand */
.xbrutal-footer-logo {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color:#16B528;
}

.xbrutal-footer-tagline {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    font-weight: bold;
    color: #000;
    max-width: 340px;
    margin-bottom: 1.75rem;
}

.xbrutal-footer-follow {
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 0.9rem;
    color: #16B528;
}

.xbrutal-footer-social-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.xbrutal-footer-social {
    box-sizing: border-box;
    background: #181818;
    color: #fff;
    border: 3px solid #333;
    width: clamp(38px, 8vw, 48px);
    height: clamp(38px, 8vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.12s ease;
    flex-shrink: 0;
}

.xbrutal-footer-social:hover {
    background: #40D04E;
    border-color: #000;
    color: #111;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

/* Links */
.xbrutal-footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-content: start;
}

.xbrutal-footer-col h4 {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #16B528;
}

.xbrutal-footer-col a {
    display: block;
    color: #000;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.1s ease, padding-left 0.1s ease;
}

.xbrutal-footer-col a:hover {
    color: #00A878;
    padding-left: 6px;
}

/* Date stamp */
.xbrutal-footer-datestamp {
    grid-column: 1 / -1;
    justify-self: start;
    box-sizing: border-box;
    max-width: 100%;
    transform: rotate(-4deg);
    background: #111;
    color: #FFD600;
    border: 4px solid #fff;
    padding: 0.5rem 0.8rem;
    font-weight: 900;
    font-size: clamp(0.55rem, 1.3vw, 0.65rem);
    line-height: 1.2;
    text-align: center;
    box-shadow: 5px 5px 0 #000;
    text-transform: uppercase;
    margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

/* Newsletter */
.xbrutal-footer-newsletter {
    grid-column: 1 / -1;
    background:#7AF5AF;
    border: 5px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 168, 120, 0.35);
    padding: clamp(1.5rem, 4vw, 2.2rem);
    margin-top: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    flex-wrap: wrap;
}

.xbrutal-footer-news-left {
    flex: 1;
    min-width: 240px;
}

.xbrutal-footer-news-stamp {
    display: inline-block;
    transform: rotate(-3deg);
    background: #FFD600;
    color: #000;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    padding: 0.5rem 0.9rem;
    font-weight: 900;
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0.9rem;
}

.xbrutal-footer-news-left h3 {
    font-size: clamp(1.25rem, 3.2vw, 1.65rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #000;
}

.xbrutal-footer-news-left p {
    color: #000;
    font-weight: bold;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.xbrutal-footer-news-msg {
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    font-weight: 900;
    margin-top: 0.6rem;
}

.xbrutal-footer-news-msg-ok {
    color: #00A878;
}

.xbrutal-footer-news-msg-err {
    color: #FFD600;
}

.xbrutal-footer-news-form {
    display: flex;
    flex: 1.2;
    min-width: 260px;
    max-width: 480px;
    position: relative;
}

@media (max-width: 620px) {
    .xbrutal-footer-news-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
}

.xbrutal-footer-news-input {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    width: 100%;
    background: #fff;
    border: 4px solid #000;
    border-right: none;
    padding: clamp(0.85rem, 2vw, 1.05rem) clamp(0.9rem, 2vw, 1.2rem);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: #111;
    outline: none;
    margin-bottom: 5px;
    border-radius: 5px;
}

.xbrutal-footer-news-input::placeholder {
    color: #777;
    font-weight: 700;
}

@media (max-width: 620px) {
    .xbrutal-footer-news-input {
        border-right: 4px solid #000;
        
    }
}

.xbrutal-footer-news-submit {
    box-sizing: border-box;
    background: #40D04E;
    color: #fff;
    border: 4px solid #000;
    padding: clamp(0.85rem, 2vw, 1.05rem) clamp(0.9rem, 2vw, 1.2rem);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.12s ease;
    border-radius: 5px;
}

.xbrutal-footer-news-submit:hover {
    background: #FFD600;
    
    box-shadow: 2px 2px 0 #000;
    border-top: 4px solid #7878FF;
}

@media (max-width: 620px) {
    .xbrutal-footer-news-submit {
        width: 100%;
    }
}

/* Bottom bar */
.xbrutal-footer-bottom {
    background: #000;
    color: #fff;
    padding: clamp(1rem, 2.5vw, 1.4rem) 0;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    letter-spacing: 0.5px;
}

.xbrutal-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.xbrutal-footer-slash {
    color: #fff;
    font-weight: bold;
}
