/* =====================================================================
   SITE FOOTER — the schools, the logo and menu, the copyright
   =====================================================================
   Once measured off the live site (Astra's footer builder), box for box,
   and since made small, twice (the owner's word, 2026-11-16: "The
   footer is still too big", then "literally massive, especially on
   mobile. We have to reduce the scale by at least 50% down"): on a
   computer 735px tall, then 433, now about 210; on the owner's phone
   (411px) 1,597px, then 670, now about 330. Every word in it is
   centred.

   THE SCHOOLS AND THE ENROLMENT LINE: on a computer and a tablet the
   schools' names take two thirds of the width and the enrolment line
   the last third; on a phone (699px and below) one over the other. The
   titles in Playfair Display, 20px (16px on a phone), over 14px words
   (13px on a phone).

   THE LOGO AND ITS PARTNER'S, FACEBOOK AND INSTAGRAM, side by side in
   the middle where they fit, the networks under the logos where they do
   not (a phone). The school's logo is 200px wide (the live 285; 170 on
   a phone); beside it, past a hairline, Αριστεύειν's wordmark, the
   school's partner (the owner's word, 2026-11-17). Facebook and
   Instagram (the same day: "Sarsonis also has an Instagram page", then
   "Instagram as well as Facebook should have their actual colour and
   name of platform to their right"), each its mark in its own colours
   and its name. The menu that stood between them went the same day
   ("Remove from the footer the web pages links").

   THE COPYRIGHT sits under the rest with no line over it: a 3px navy
   line, the live site's (301px thick there), stood there until
   2026-11-17 (the owner's word: "the foot blue line has to disappear so
   that it becomes more minimalistic design"). */

/* over the content's layer, so a still page backdrop (the contact page's schools, Sections-Styling.css SCENES) never
   veils it (the owner, 2026-11-17: "What the hell is going on with the footer at the επικοινωνία section") */
.sr-footer { position: relative; z-index: 1; background-color: var(--sr-footer-bg); }

/* ---- The schools and the enrolment line --------------------------- */
.sr-footer__above { padding: 18px 20px 12px; }
.sr-footer__above-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);  /* their shares, never their longest line's width */
    column-gap: 48px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-wrap: anywhere;
}
.sr-footer__column { display: flex; justify-content: center; align-items: flex-start; }
.sr-footer__area { display: block; width: 100%; font-size: 0.875rem; }
.sr-footer__widget { margin: 0; }
.sr-footer__title { margin-bottom: 2px; font-size: 1.25rem; line-height: 1.3; color: var(--sr-heading); }
/* names and the enrolment line are centred, never justified: justified,
   the spaces inside a name would part */
.sr-footer__text { line-height: 1.75; text-align: center; text-wrap: balance; }  /* lines of a like length: no name left alone on the last */
.sr-footer__text p { margin-bottom: 0; }
.sr-footer__pair { white-space: nowrap; }  /* "Τηλ. : +30 …" and "e-mail : …" each whole; a line may end at the dot */
.sr-footer__dot { margin: 0 0.15em; }

@media (max-width: 699px) {
    .sr-footer__above-inner { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
}
@media (max-width: 544px) {
    .sr-footer__above { padding: 14px 16px 10px; }
    .sr-footer__area { font-size: 0.8125rem; }
    .sr-footer__title { font-size: 1rem; }
}

/* THE SCHOOLS (the owner's word, 2026-11-16: "Make some schools inline
   as well as if pressed to directly sent each user to the Επικοινωνία
   section at the corresponding school they chose"): their names run on
   as words do, a dot after each but the last (generated, so a screen
   reader reads the list's items alone), a name never split over two
   lines; each leads to its section on the contact page (in the theme's
   blue when pointed at), where its address, telephone and map are. */
.sr-footer__schools { margin: 0; padding: 0; list-style: none; }
.sr-footer__school { display: inline; white-space: nowrap; }
.sr-footer__school:not(:last-child)::after { content: " \00B7"; content: " \00B7" / ""; }
.sr-footer__school-place { color: var(--sr-text); }
a.sr-footer__school-place:hover, a.sr-footer__school-place:focus { color: var(--sr-accent-dark); }

/* ---- The logos, Facebook and Instagram --------------------------- */
.sr-footer__primary { padding: 10px 40px 8px; }
.sr-footer__primary-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 56px;
    row-gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.sr-footer__cell { text-align: center; }
.sr-footer__cell--logo { display: flex; justify-content: center; align-items: center; }
.sr-footer__logo { width: 200px; }  /* 41px tall */
/* the partner's wordmark, past a hairline: 37px tall (104px wide) beside the logo's 41 */
.sr-footer__partner { display: flex; flex-shrink: 0; align-items: center; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--sr-border); }
.sr-footer__partner-mark { display: block; width: auto; max-width: none; height: 37px; border-radius: 3px; }
.sr-footer__partner:hover .sr-footer__partner-mark, .sr-footer__partner:focus .sr-footer__partner-mark { opacity: 0.85; }
/* each network's mark in its own colours (Facebook's blue; Instagram's
   gradient, painted in its <svg>), its name to its right in the same
   colour, underlined when pointed at */
.sr-footer__cell--social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 28px; row-gap: 6px; }
.sr-footer__social { display: inline-flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 0.9375rem; line-height: 1; white-space: nowrap; }
.sr-footer__social .sr-icon { display: block; flex-shrink: 0; width: 28px; height: 28px; }
.sr-footer__social--facebook { color: var(--sr-facebook); }
.sr-footer__social--instagram { color: var(--sr-instagram); }
.sr-footer__social:hover .sr-footer__social-label, .sr-footer__social:focus .sr-footer__social-label { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 921px) {
    .sr-footer__primary { padding: 10px 20px 8px; }
    .sr-footer__primary-inner { column-gap: 40px; }
}
/* on a phone the logos over the two networks */
@media (max-width: 544px) {
    .sr-footer__logo { width: 170px; max-width: none; }  /* 35px tall */
    .sr-footer__partner { margin-left: 10px; padding-left: 10px; }
    .sr-footer__partner-mark { height: 28px; }  /* 79px wide */
    .sr-footer__primary-inner { row-gap: 8px; }
    .sr-footer__social { font-size: 0.875rem; gap: 7px; }
    .sr-footer__social .sr-icon { width: 24px; height: 24px; }
}
@media (max-width: 380px) {
    .sr-footer__logo { width: 150px; }
    .sr-footer__partner { margin-left: 8px; padding-left: 8px; }
    .sr-footer__partner-mark { height: 26px; }  /* 73px wide */
}

/* ---- The copyright ------------------------------------------------ */
.sr-footer__below { padding: 6px 20px 11px; }
.sr-footer__below-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
/* a line of small print, centred as a name is: justified over a phone's
   two or three lines it would open holes round its | and : */
.sr-footer__copyright { font-size: 0.8125rem; line-height: 1.6; text-align: center; color: var(--sr-text); }
.sr-footer__copyright p { margin-bottom: 0; text-wrap: balance; }
/* The developer's name, a link to his site (the owner's word,
   2026-11-16), drawn as the Facebook link's word is: blue, dark when
   pointed at. Never split over two lines. */
.sr-footer__developer { white-space: nowrap; color: var(--sr-accent-dark); }
.sr-footer__developer:hover, .sr-footer__developer:focus { color: var(--sr-heading); }

@media (max-width: 544px) {
    .sr-footer__below { padding: 8px 16px 10px; }
    .sr-footer__copyright { font-size: 0.75rem; line-height: 1.55; }
}

/* ---- THE CALL BUTTON (PageFrame-Service.php, sr_call) --------------
   On a phone (767px and below), once the script runs: a blue button at
   the foot of the screen on the right, "Κλήση" beside the telephone
   mark, over the page. It opens a sheet that rises from the foot of the
   screen over the dimmed page: its title and cross, then the schools two
   to a row, each its name over its number on a pale tile, a tap dialling
   it, and the enrolment line across both, in the theme's blue. At the
   copyright line, the page's last, the button steps aside, so it never
   covers it (`is-tucked`, Site-Script.js). */
.sr-call { display: none; }
@media (max-width: 767px) {
    .sr-js .sr-call { display: block; }
}
.sr-call__button {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px 0 16px;
    border: 0;
    border-radius: 24px;
    background-color: var(--sr-accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    color: var(--sr-white);
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.sr-call__button .sr-icon { display: block; width: 17px; height: 17px; fill: currentColor; }
.sr-call__button:focus-visible { outline: 2px solid var(--sr-heading); outline-offset: 3px; }
.sr-call.is-tucked .sr-call__button { opacity: 0; transform: translateY(24px); pointer-events: none; }
.sr-call__overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background-color: var(--sr-overlay);
    visibility: hidden;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.25s ease-in, visibility 0s linear 0.25s;
}
.sr-call__panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    max-height: 88vh;
    overflow: hidden auto;
    padding: 6px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px 18px 0 0;
    background-color: var(--sr-white);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.25s ease-in, visibility 0s linear 0.25s;
}
.sr-call.is-open .sr-call__overlay { visibility: visible; opacity: 1; transition: opacity 0.25s ease-out; }
.sr-call.is-open .sr-call__panel { visibility: visible; transform: translateY(0); transition: transform 0.25s ease-out; }
.sr-call__head { position: relative; display: flex; justify-content: center; align-items: center; min-height: 48px; }
.sr-call__title { margin: 0; font-size: 1.125rem; line-height: 1.3; text-align: center; color: var(--sr-heading); }
.sr-call__close {
    position: absolute;
    top: 50%;
    right: -8px;
    display: flex;
    padding: 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--sr-drawer-text);
    cursor: pointer;
    transform: translateY(-50%);
}
.sr-call__close .sr-icon { display: block; width: 17px; height: 17px; }
.sr-call__close:focus-visible { outline: thin dotted; }
.sr-call__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.sr-call__school--enrol { grid-column: 1 / -1; }
.sr-call__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 64px;
    padding: 10px 8px;
    border-radius: 12px;
    background-color: var(--sr-footer-bg);
    text-align: center;
    color: var(--sr-heading);
}
.sr-call__item:hover, .sr-call__item:focus-visible { background-color: var(--sr-menubar); color: var(--sr-heading); }
.sr-call__name { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
.sr-call__note { font-weight: 400; }
.sr-call__number { font-size: 0.875rem; line-height: 1.3; white-space: nowrap; color: var(--sr-accent); }
.sr-call__school--enrol .sr-call__item, .sr-call__school--enrol .sr-call__item:hover { background-color: var(--sr-accent); color: var(--sr-white); }
.sr-call__school--enrol .sr-call__number { color: var(--sr-white); }
@media (prefers-reduced-motion: reduce) {
    .sr-call__button, .sr-call__overlay, .sr-call__panel { transition: none; }
}
@media print {
    .sr-call { display: none !important; }
}

/* Author: Nikolaos S. Kaounas */
