﻿/* ==========================================================================
   ODEN-STEEL COMPONENT / SITE FOOTER
   --------------------------------------------------------------------------
   Premium editorial close — darker than contact, restrained gold rule.
   ========================================================================== */

.site-footer {
  position: relative;
  overflow: clip;

  background: #090909;
  color: rgba(247, 244, 236, 0.72);

  border-top: 1px solid
    color-mix(in srgb, var(--color-gold, #d6a300) 26%, transparent);
}

.site-footer__inner {
  width: min(100%, 1400px);
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px);
  padding-inline: max(20px, env(safe-area-inset-left, 0px))
    max(20px, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding-inline: clamp(24px, 4vw, 64px);
  }
}

/* --------------------------------------------------------------------------
   Main grid
   -------------------------------------------------------------------------- */

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 56px);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.site-footer__logo-link {
  display: inline-block;
  align-self: center;
  line-height: 0;
  text-decoration: none;
  pointer-events: auto;
}

@media (min-width: 769px) {
  .site-footer__logo-link {
    align-self: flex-start;
  }
}

.site-footer__logo-link:hover,
.site-footer__logo-link:focus-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.site-footer__logo {
  display: block;
  width: 135px; /* mobil: ~10% kisebb a korábbi 150px-hez képest */
  height: auto;
}

@media (min-width: 769px) {
  .site-footer__logo {
    width: 176px;
  }
}

.site-footer__tagline {
  margin: 22px 0 0;
  max-width: 22ch;

  color: rgba(247, 244, 236, 0.58);

  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Headings + lists
   -------------------------------------------------------------------------- */

.site-footer__heading {
  margin: 0 0 18px;

  color: rgba(247, 244, 236, 0.92);

  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: 0;
}

.site-footer__list a {
  display: inline-block;
  padding: 0.2em 0;

  color: rgba(247, 244, 236, 0.68);

  font-size: clamp(15px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.8;
  text-decoration: none;

  transition: color 180ms ease;
}

.site-footer__list a:hover {
  color: var(--color-gold, #d6a300);
}

.site-footer__list a:focus-visible {
  outline: var(--focus-outline-width, 2px) solid var(--color-gold, #d6a300);
  outline-offset: var(--focus-outline-offset, 3px);
}

/* --------------------------------------------------------------------------
   Social — reuses .mobile-nav__facebook from header.css (no duplicate icon)
   -------------------------------------------------------------------------- */

.site-footer__social {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__social {
    justify-content: center;
    margin-top: 22px;
  }
}

.site-footer .mobile-nav__facebook {
  width: 68px;
  height: 68px;
}

.site-footer .mobile-nav__facebook-icon {
  width: 36px;
  height: 36px;
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;

  margin-top: clamp(48px, 7vw, 72px);
  padding-top: clamp(24px, 3vw, 32px);

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.site-footer__copyright {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;

  color: rgba(247, 244, 236, 0.42);

  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .site-footer__copyright {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 0.4em;
  }
}

.site-footer__credit {
  margin: 0;

  color: rgba(247, 244, 236, 0.42);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.site-footer__credit-name {
  color: var(--color-gold, #d6a300);
  font-weight: 500;
  transition:
    opacity 180ms ease,
    color 180ms ease;
}

.site-footer__credit:hover .site-footer__credit-name,
.site-footer__credit:focus-within .site-footer__credit-name {
  opacity: 0.88;
  color: color-mix(in srgb, var(--color-gold, #d6a300) 82%, white);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  max-width: min(100%, 720px);
}

.site-footer__legal a,
.site-footer__legal-link {
  color: rgba(247, 244, 236, 0.48);

  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;

  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;

  transition: color 180ms ease;
}

.site-footer__legal a:hover,
.site-footer__legal-link:hover {
  color: var(--color-gold, #d6a300);
}

.site-footer__legal a:focus-visible,
.site-footer__legal-link:focus-visible {
  outline: var(--focus-outline-width, 2px) solid var(--color-gold, #d6a300);
  outline-offset: var(--focus-outline-offset, 3px);
}

.site-footer__legal-sep {
  color: rgba(247, 244, 236, 0.28);
  font-size: 12px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Mobile (≤768) — középre zárt brand/kapcsolat, csökkentett logo
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .site-footer__inner {
    padding-bottom: 24px;
  }

  .site-footer__brand,
  .site-footer__nav {
    align-items: center;
    text-align: center;
  }

  .site-footer__tagline {
    margin-inline: auto;
    text-align: center;
  }

  .site-footer__list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__bottom {
    align-items: center;
    gap: 32px;
    width: 100%;
  }

  .site-footer__meta {
    align-items: center;
    text-align: center;
  }

  .site-footer__copyright,
  .site-footer__credit {
    align-items: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Narrow mobile — 2×2 legal grid, touch targets, divider
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .site-footer__legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    align-items: stretch;
    column-gap: 14px;
    row-gap: 10px;
    width: 100%;
    max-width: 100%;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
  }

  .site-footer__legal-sep {
    display: none;
  }

  .site-footer__legal a,
  .site-footer__legal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 8px;

    font-size: 13.5px;
    line-height: 1.6;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

html:not(.no-js) .site-footer [data-footer-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .site-footer [data-footer-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
