/* =====================================================================
   footer.css — FACEtoFACE® ΚΔΒΜ
   Κοινό footer για ΟΛΕΣ τις σελίδες του www.f2f.gr
   Φορτώνεται από το /external/footer.html (server-side include).

   ΑΥΤΟΝΟΜΟ ΑΡΧΕΙΟ: δεν εξαρτάται από το seminar.css ούτε από
   το bootstrap. Ορίζει μόνο του ό,τι χρειάζεται.
   ===================================================================== */

.site-footer {
    /* τοπικά variables — δουλεύουν και σε σελίδες χωρίς seminar.css */
    --f2f-pink: #e03784;
    --f2f-pink-text: #b01e5d;

    background-color: #f5f5f5;                     /* whitesmoke */
    background-image: repeating-linear-gradient(
        135deg,
        rgba(0,0,0,0.03) 0 1px,
        transparent 1px 10px
    );
    color: #2a2a2a;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    font-size: 0.88rem;
    line-height: 1.6;
    border-top: 1px solid #e5e5e5;
    /* Το footer είναι εκτός οθόνης — ο browser το ζωγραφίζει μόνο όταν πλησιάσει.
       Το 1400px είναι η εκτίμηση ύψους ΜΟΝΟ για το πρώτο paint· μετά ο browser
       θυμάται το πραγματικό ύψος (λέξη-κλειδί auto), οπότε η μπάρα κύλισης
       δεν «πηδάει». */
    content-visibility: auto;
    contain-intrinsic-size: auto 1400px;
}

/* Το .container υπάρχει στο bootstrap· για σελίδες ΧΩΡΙΣ bootstrap
   δίνουμε ισοδύναμο πλάτος μόνο μέσα στο footer. */
.site-footer > .container {
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.site-footer * { box-sizing: border-box; }

/* ---------- Intro ---------- */
.site-footer-intro { text-align: center; margin-bottom: 2rem; padding: 0 1rem; }
.site-footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
}
.site-footer-sub { color: #666; margin: 0; font-size: 0.9rem; }
.site-footer sup.brand-r { font-size: 0.55em; top: -0.6em; position: relative; }

/* ---------- Πλέγμα κατηγοριών ---------- */
.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}
.site-footer-col h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.site-footer-col h3 i { font-size: 0.9rem; color: var(--f2f-pink); }
.site-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer-col li {
    margin: 0;
    padding: 0.2rem 0;
    line-height: 1.4;
}
.site-footer-col a {
    color: #444;
    text-decoration: none;
    font-size: 0.82rem;
    display: block;
    padding: 0.15rem 0 0.15rem 0.3rem;
    transition: color 0.15s, padding-left 0.15s;
    border-left: 2px solid transparent;
}
.site-footer-col a:hover,
.site-footer-col a:focus-visible {
    color: var(--f2f-pink-text);
    border-left-color: var(--f2f-pink);
    padding-left: 0.5rem;
    outline: none;
    text-decoration: none;
}
/* το <button> που τυλίγει το περιεχόμενο του h3 (a11y disclosure) */
.site-footer-col-toggle {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: inline;
}

/* ---------- AUTHORIZED TRAINING & CERTIFICATION CENTERS ---------- */
.site-footer-atc {
    margin-top: 2rem;
    padding: 1.75rem 1rem;
    background: #1a1a1a;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}
.site-footer-atc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}
.site-footer-atc-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
}
.site-footer-atc-sub strong { color: #fff; }
/* Στατικό κεντραρισμένο grid λογοτύπων — χωρίς animation. */
.site-footer-atc-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.75rem 2.25rem;
    width: 100%;
    padding: 0 0.5rem;
}
.site-footer-atc-grid img {
    max-width: 110px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-footer-atc-grid img:hover {
    opacity: 1;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .site-footer-atc { padding: 1.25rem 0.5rem; }
    .site-footer-atc-title { font-size: 1rem; }
    .site-footer-atc-sub { font-size: 0.85rem; }
    .site-footer-atc-grid { gap: 1.25rem 1.5rem; }
    .site-footer-atc-grid img { max-width: 90px; max-height: 40px; }
}

/* ---------- Κάτω ζώνη ---------- */
.site-footer-bottom {
    margin-top: 2.5rem;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.8;
}
.site-footer-bottom strong { color: #222; }
.site-footer-bottom a { color: #444; text-decoration: none; }
.site-footer-bottom a:hover,
.site-footer-bottom a:focus-visible { color: var(--f2f-pink-text); text-decoration: underline; }
.site-footer-legal { color: #666; font-size: 0.78rem; }
.site-footer-centers { margin: 0.5rem 0; color: #555; }
.site-footer-centers i { color: var(--f2f-pink); margin-right: 0.3rem; }
.site-footer-copy { color: #888; font-size: 0.75rem; margin-top: 0.5rem; }
.site-footer-version {
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.75rem;
}
.site-footer-version strong { color: #555; font-weight: 700; }

/* ---------- Mobile: accordion ανά κατηγορία ---------- */
@media (max-width: 767.98px) {
    .site-footer { padding: 2rem 0 1rem; }
    .site-footer-grid { grid-template-columns: 1fr; gap: 0; }
    .site-footer-col { border-bottom: 1px solid rgba(0,0,0,0.08); }
    .site-footer-col:last-child { border-bottom: 0; }
    .site-footer-col h3 {
        font-size: 0.82rem;
        margin: 0;
        padding: 0.9rem 0.3rem;
        cursor: pointer;
        user-select: none;
        border-bottom: 0;
        justify-content: space-between;
    }
    .site-footer-col h3::after {
        content: "\f078";                       /* chevron-down */
        font-family: "Font Awesome 5 Pro","Font Awesome 6 Free","Font Awesome 5 Free";
        font-weight: 900;
        color: var(--f2f-pink);
        font-size: 0.72rem;
        margin-left: auto;
        transition: transform 0.25s ease;
    }
    .site-footer-col.is-open h3::after { transform: rotate(180deg); }
    .site-footer-col ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .site-footer-col.is-open ul {
        max-height: 600px;
        padding: 0 0.3rem 0.6rem;
    }
    .site-footer-col a { font-size: 0.82rem; padding: 0.3rem 0 0.3rem 0.3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ---------- Εκτύπωση ---------- */
@media print {
    .site-footer {
        background: #fff !important;
        color: #333 !important;
        border-top: 2px solid #333;
        content-visibility: visible;
    }
    .site-footer a { color: #333 !important; }
    .site-footer-atc { background: #fff !important; color: #000 !important; }
    .site-footer-atc-title,
    .site-footer-atc-sub { color: #000 !important; }
    .site-footer-atc-grid img { filter: none !important; }
}
