/* ==========================================================================
   Site footer — Figma node 78:2166, 1920 × 646
   .site-footer__main     brand (left) | vertical divider | link columns (right)
   .site-footer__brand    white logo, tagline, social links
   .footer-nav            one column: heading + links (or contact items)
   .site-footer__bottom   legal links (dot separated) + copyright
   Note: the Figma frame is stored upside-down; positions here are the
   rendered ones.
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--color-footer-bg);
}

/* Large faint ellipse (Figma "Ellipse 2", 7% white).
   Centre at (centre + 586.5px, 704.4px); the rotation is negative because the
   Figma frame is flipped. Fitted against the Figma render: the edge matches
   to within 1px (x=1360 at the top of the footer, x=696 at 632px). */
.site-footer::before {
  position: absolute;
  top: -364.8px;
  left: calc(50% - 112.45px);
  width: 1397.902px;
  height: 2138.434px;
  background: url("../../assets/images/footer-ellipse.svg") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
  transform: rotate(-125.79deg);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

/* ---- Main area ------------------------------------------------------------ */
/* Grid: brand | divider track | columns. The divider sits in the middle of
   its own track, so it can never run into the logo as the screen narrows. */
.site-footer__main {
  display: grid;
  grid-template-columns: 374px minmax(96px, 1fr) auto;
  align-items: start;
  padding-top: 104px;
  padding-bottom: 80px;
}

.site-footer__brand {
  grid-column: 1;
  grid-row: 1;
}

/* Vertical divider (Figma: between brand and columns, 341px tall) */
.site-footer__main::before {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 1px;
  height: 341px;
  margin-top: 10px;
  background: var(--color-footer-line);
  content: "";
}

/* White logo: mark + two wordmark lines (positions from Figma) */
.footer-logo {
  position: relative;
  display: block;
  width: 325px;
  height: 76px;
}

.footer-logo__img {
  width: 100%;
  height: 100%;
}

.site-footer__tagline {
  margin-top: 48px;
  color: var(--color-footer-text);
  font-size: 20px;
  letter-spacing: var(--letter-spacing-tight);
  line-height: 28px;
}

.site-footer__social {
  margin-top: 65px;
}

.site-footer__social-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.01em;
  line-height: var(--line-height-body);
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.footer-social a {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  place-items: center;
  transition: background var(--transition-fast);
}

.footer-social a:hover {
  background: rgb(255 255 255 / 28%);
}

/* ---- Link columns --------------------------------------------------------- */
.site-footer__nav {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  gap: 55px;
  margin-top: 43px; /* Figma: columns start 43px below the logo top */
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-nav--narrow {
  width: 150px;
}

.footer-nav--wide {
  min-width: 200px;
}

.footer-nav--actions {
  width: 142px;
}

.footer-nav__title {
  color: var(--color-footer-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  line-height: 24px;
}

.footer-nav__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav__links a {
  color: var(--color-footer-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-light);
  line-height: 24px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-nav__links a:hover {
  color: var(--white);
}

/* Contact list */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-style: normal;
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-base);
  line-height: 24px;
}

.footer-contact__item img {
  width: 35px;
  height: 35px;
  flex: none;
  /* The exported SVGs come from Figma's flipped frame; this restores the
     orientation shown in the design (pin points down, envelope horizontal). */
  transform: scaleY(-1) rotate(90deg);
}

.footer-contact__item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact__hours {
  display: block;
  color: var(--color-footer-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 18px;
}

.footer-contact__address {
  max-width: 174px;
}

/* ---- Bottom bar ----------------------------------------------------------- */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 42px 51px;
  border-top: 1px solid var(--color-footer-line);
  color: var(--color-footer-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.01em;
  line-height: normal;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-legal li {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Dot separator */
.footer-legal li + li::before {
  width: 3.76px;
  height: 3.76px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.footer-legal a:hover {
  color: var(--white);
}

/* ---- Laptop: brand on top, columns below ----------------------------------
   From 1680px down the side-by-side layout leaves too little room for the
   divider, so the brand moves above the columns. */
@media (max-width: 1680px) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-top: 80px;
    padding-bottom: 64px;
  }

  .site-footer__brand {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 374px) auto;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
  }

  .site-footer__tagline,
  .site-footer__social {
    margin-top: 0;
  }

  .site-footer__nav {
    width: 100%;
    justify-content: space-between;
    margin-top: 0;
    padding-top: 56px;
    border-top: 1px solid var(--color-footer-line);
  }

  .site-footer__main::before {
    display: none;
  }

  .site-footer__brand,
  .site-footer__nav {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---- Tablet: 2 × 2 columns ------------------------------------------------ */
@media (max-width: 1100px) {
  .site-footer__brand {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .footer-nav--narrow,
  .footer-nav--actions {
    width: auto;
  }
}

/* ---- Phone ---------------------------------------------------------------- */
@media (max-width: 700px) {
  .site-footer__main {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .footer-logo {
    width: 261px;
    height: 61px;
    transform-origin: left top;
  }


  .site-footer__tagline {
    font-size: 18px;
    line-height: 26px;
  }

  .site-footer__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 40px;
  }

  .footer-nav--wide {
    min-width: 0;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 28px 36px;
  }

  /* The Greek labels are longer: one per line, no dot separators */
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-legal li + li::before {
    display: none;
  }
}

/* ==========================================================================
   Funding bar — white strip under the footer with the funding / partner
   logos (Figma node 67:704). Ελλάδα 2.0 is intentionally left out.
   ========================================================================== */
.funding-bar {
  position: relative;
  z-index: 2; /* covers the footer ellipse */
  background: var(--white);
}

.funding-bar__list {
  display: flex;
  min-height: 110px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 50px;
  padding-block: 30px;
}

.funding-bar__list img {
  width: auto;
  height: 50px;
}

.funding-bar__list .funding-bar__eplo {
  height: 40px;
}

/* Ministry logo (emblem above two text lines): taller so the text stays legible */
.funding-bar__list .funding-bar__gov {
  height: 64px;
}

@media (max-width: 700px) {
  .funding-bar__list {
    gap: 20px 32px;
    padding-block: 24px;
  }

  .funding-bar__list img {
    height: 40px;
  }

  .funding-bar__list .funding-bar__eplo {
    height: 32px;
  }

  .funding-bar__list .funding-bar__gov {
    height: 52px;
  }
}
