/* ========== FOOTER (KMS-style — copied from kms/styles.css:1539-1758) ========== */
/* footer.css — footer grid, columns, social icons, bottom row, uniform typography, line-spacing alignment. */

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 24px 0 0;
}

.footer-grid {
    display: grid;
    /* Two equal halves now: KONTAKT super-col (brand body + contact body
       sub-cols) on the left, ODKAZY super-col (links1 + links2 sub-cols)
       on the right. Each super-col centers its single heading over its 2
       sub-columns. Vertical separator falls at the midpoint via
       .footer-super-links border-left. */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 40px;
    row-gap: 12px;
    padding: 0 32px 4px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-super-col {
    display: grid;
    grid-template-rows: auto 1fr;
    row-gap: 16px;
}
.footer-super-body {
    display: grid;
    /* Brand body wider (1.6fr) so the merged single-paragraph brand text
       wraps to ~3 lines instead of ~5. Contact body keeps 1fr — its
       address lines are short and don't need the extra width. */
    grid-template-columns: 1.6fr 1fr;
    column-gap: 32px;
    align-items: start;
}

/* Headings: KONTAKT + ODKAZY share one rule, centered above their respective
   2-column body. */
.footer-col-head {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-col-head h4 { margin: 0; text-align: center; }
.footer-col-body { display: block; }

/* Contact-body text stays left-aligned (address lines read naturally on the
   left). Brand body is also left for visual balance with the contact column. */
.footer-contact-body,
.footer-contact-body address,
.footer-contact-body address p,
.footer-contact-body .footer-small,
.footer-contact-body p,
.footer-contact-body a,
.footer-contact-body span {
    text-align: left;
}
.footer-brand-body { text-align: left; }

/* Vertical separator dividing left/right halves: lives on the ODKAZY
   super-col's left edge. */
.footer-super-links {
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 40px;
}

/* Odkazy: single centered heading over a 2-column links grid. */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
}
.footer-links-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 0 0 24px;
        column-gap: 0;
        row-gap: 28px;
    }
    .footer-super-body { grid-template-columns: 1fr; row-gap: 28px; }
    .footer-col-head { min-height: 0; justify-content: flex-start; }
    .footer-col-head h4 { text-align: left; }
    .footer-super-links { border-left: 0; padding-left: 0; }
}
@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
}

.footer-org {
    font-family: var(--font-sans);
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
    /* Lives below the Odkazy links grid now (was below the brand body
       in the Kontakt half). Margin-top gives it breathing room from
       the link list above it. */
    margin-top: 12px;
}

a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
a.social-icon:hover { color: #fff; }
a.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-col h4,
.footer-col-head h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col address {
    font-style: normal;
}

.footer-col p,
.footer-contact-body p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-col a,
.footer .footer-contact-body a,
.footer .footer-links-grid a,
.footer .footer-links-bottom a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    text-decoration: none;
}
.footer-col a:hover,
.footer .footer-contact-body a:hover { color: var(--accent-light); }

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

.footer-col ul li,
.footer-links-grid ul li {
    margin-bottom: 8px;
}

.footer-col ul li a,
.footer-links-grid ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.footer-col ul li a:hover,
.footer-links-grid ul li a:hover { color: var(--accent-light); }

.footer-small {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-links-bottom {
    display: flex;
    gap: 24px;
}

.footer-links-bottom a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-links-bottom a:hover { color: rgba(255,255,255,0.8); }

/* Edit-mode contrast fix: footer is dark navy with white-ish text. When admin
   clicks an editable field the in-place editor gives it a white background,
   which made the white text invisible. Force readable colors during edit. */
.footer [data-content-key]:focus,
.footer [contenteditable="true"]:focus,
.footer [data-content-key].editing,
.footer [contenteditable="true"].editing,
.footer [data-content-key]:focus *,
.footer [contenteditable="true"]:focus * {
    color: #1a2238 !important;
    background: #fff !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #1a2238 !important;
}
.footer [data-content-key]:focus a,
.footer [contenteditable="true"]:focus a {
    color: #0d1f33 !important;
    text-decoration: underline !important;
}

