/* ============================================================
   WESO.systems — Footer (compact v3)
   Layout: [engineer + description | social icons]
           [company + banking details strip]
           [copyright]
   ============================================================ */
:root {
    --ftr-panel: #1a232c;
    --ftr-line: rgba(255, 255, 255, 0.1);
    --ftr-muted: #9aa6b1;
    --ftr-dim: #6f7b87;
    --ftr-text: #e7eaee;
    --ftr-amber: #c98c3a;
}

.footer {
    background: var(--ftr-panel);
    color: var(--ftr-text);
    margin-top: 40px;
    padding: 28px 24px 0;
    font-family: 'Inter', sans-serif;
}

.footer-top,
.footer-details,
.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
}

/* ---------- Top: engineer + description (left), social icons (right) ---------- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ftr-line);
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.footer-engineer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.engineer-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ftr-amber);
    flex: 0 0 auto;
}

.engineer-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.engineer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
}

.engineer-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.engineer-title {
    font-size: 12px;
    color: var(--ftr-muted);
}

.engineer-quote {
    margin: 0;
    font-size: 13px;
    font-style: italic;
    color: var(--ftr-muted);
}

.footer-description {
    /* full margin reset: the global `p` rule in index.php has margin-left/right:auto
       and max-width:780px, which centered this text and pushed it away from the edge */
    margin: 0;
    max-width: 600px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ftr-muted);
}

.footer-social {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #c5ccd3;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link:hover {
    background: var(--ftr-amber);
    color: #fff;
}

/* ---------- Details strip: company + banking, one line each ---------- */
.footer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ftr-line);
}

.footer-details-row {
    display: flex;
    align-items: baseline;
    gap: 6px 20px;
}

.footer-details-row h3 {
    flex: 0 0 140px;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.footer-details-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    min-width: 0;
}

.footer-info-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ftr-text);
}

.footer-info-item > span:last-child,
.footer-info-item > div,
.footer-info-item > a {
    white-space: nowrap;
}

.footer-info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ftr-dim);
    white-space: nowrap;
}

.footer-info-item a {
    color: var(--ftr-text);
    text-decoration: none;
}

.footer-info-item a:hover {
    color: var(--ftr-amber);
}

.phone-toggle {
    cursor: pointer;
    color: var(--ftr-amber);
}

.phone-number.hidden {
    display: none;
}

.phone-number {
    color: var(--ftr-text);
    text-decoration: none;
}

/* ---------- Copyright ---------- */
.footer-bottom {
    padding: 12px 0;
    text-align: center;
}

.footer-copyright {
    font-size: 12px;
    color: var(--ftr-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .footer-details-row {
        flex-direction: column;
        gap: 6px;
    }
    .footer-details-row h3 {
        flex: none;
    }
}

@media (max-width: 560px) {
    .footer {
        padding: 24px 16px 0;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-details-items {
        flex-direction: column;
    }
    .footer-bottom {
        text-align: left;
    }
}
