/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    --footer-gutter: max(1rem, calc((100% - 1920px) / 2));
    background-color: var(--color-topbar-scrolled, #3a0968);
    color: rgba(255, 255, 255, 0.88);
    max-width: 1920px;
    margin-left: var(--footer-gutter);
    margin-right: var(--footer-gutter);
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-radius: 4rem;
    /* Squircle on the footer card (align with global * { corner-shape: squircle } in 01-global) */
    corner-shape: squircle;
    overflow: hidden;
    padding: 2rem 0 2rem;
}

@media (max-width: 768px) {
    .site-footer {
        border-radius: 2rem;
    }
}

/* Footer columns */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 0 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-logo img {
    width: auto;
    max-width: min(220px, 100%);
    height: auto;
    display: block;
    /* Monochrome on purple: WebP/PNG/SVG (not SVG-only) */
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-logo img {
        width: 85%;
        max-width: none;
    }
}

.footer-col__heading {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-nav-menu,
.footer-legal,
.footer-contact-details,
.footer-social-bubbles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social-bubbles {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* True circles, not squircles: beat global * */
.footer-social-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    corner-shape: round;
    background-color: var(--color-orange);
    text-decoration: none;
    line-height: 0;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
    background-image: none !important;
}

.footer-social-bubble:hover {
    opacity: 0.95;
    background-image: none !important;
}

.footer-social-bubble__icon {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    color: #fff;
    background-color: currentColor;
    -webkit-mask-image: var(--footer-social-ico);
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-image: var(--footer-social-ico);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

.footer-contact-details li {
    color: rgba(255, 255, 255, 0.85);
}

.footer-nav-menu a,
.footer-legal a,
.footer-contact-details a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-nav-menu a:hover,
.footer-legal a:hover,
.footer-contact-details a:hover {
    color: #fff;
}

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Credit link (e.g. Balian): on-bar colors + site smooth underline from style.css `a` (no longer stripped for .footer-bottom a) */
.footer-credit a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-credit a:hover {
    color: #fff;
}

/* Global 768px rule sets a:hover a:focus-visible background-size 0% — keep the bar for this text link */
@media (max-width: 768px) {
    .footer-credit a:hover,
    .footer-credit a:focus-visible {
        background-size: 100% 1px;
    }
}

/* ==========================================================================
   Post Cards (index loop)
   ========================================================================== */

.posts-loop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.post-card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-content-wrap {
    padding: 2rem;
}

.entry-title {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--color-purple);
}

.entry-title a:hover {
    color: var(--color-blue);
}

.entry-meta {
    color: var(--color-charcoal);
    margin-bottom: 1rem;
}

.entry-summary {
    color: var(--color-charcoal);
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--color-blue);
}

.read-more:hover {
    color: var(--color-blue-hover);
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   404 & No Results
   ========================================================================== */

.error-404,
.no-results {
    padding: 4rem 0;
    text-align: center;
}

.error-404 .page-title,
.no-results .page-title {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post-navigation,
.posts-navigation {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px;
    transition: opacity 150ms ease, transform 150ms ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary — orange fill */
.btn--primary {
    background: var(--color-orange);
    color: #fff;
    border-color: var(--color-orange);
}

.btn--primary:hover {
    opacity: 0.9;
    color: #fff;
}

/* Outline / secondary — transparent with orange border */
.btn--outline,
.btn--secondary {
    background: transparent;
    color: var(--color-orange);
    border-color: var(--color-orange);
}

.btn--outline:hover,
.btn--secondary:hover {
    opacity: 0.85;
    color: var(--color-orange);
}

/* Ghost — for use on dark/coloured backgrounds */
.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
    border-color: #fff;
    color: #fff;
    opacity: 0.85;
}

/* Size modifiers */
.btn--lg {
    padding: 1rem 2rem;
    font-size: var(--text-base);
    font-weight: 500;
    min-height: 56px;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-base-sm);
    min-height: 36px;
}

