/**
* 2010-2026 SwissGeek | Web Developer Freelance
*
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https:// opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https:// devdocs.prestashop.com/ for more information.
*
* @Module		SGK Footer
* @Description	Footer columns (links, customer account, store details, text), newsletter with its subscribers, double opt-in, GDPR, campaigns, Brevo, Mailchimp and Infomaniak sync and statistics, social networks. Replaces the five native footer modules and takes over their content and subscribers.
* @Version		1.1.0
* @Copyright	SwissGeek | Web Developer Freelance <https://swissgeek.dev/>
* @support		Support Requests <https://admin.swissgeek.dev/forms/ticket?styled=1&with_logo=1>
* @Blog			Breaking News <https://news.swissgeek.dev/> <https://news.prestageek.ch/>
* @Addons		Developments <https://prestageek.ch/> <https://add.swissgeek.dev/>
*
* @license		http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*				Valid for 1 website (or project) for each purchase of license International Registered 
*				Trademark & Property of SwissGeek. More information on <https://swissgeek.dev/license/>
*/

/* SGK Footer — front office. Theme-agnostic: text colours are inherited from the footer of the
   theme (light or dark), the accent comes from the SwissGeek tokens (--sgk-*), then Bootstrap
   (--bs-*), then a fallback. */

.sgkf {
  --sgkf-accent: var(--sgk-red, var(--bs-primary, #d7141c));
  --sgkf-accent-ink: var(--sgk-red-ink, var(--sgkf-accent));
  --sgkf-radius: var(--sgk-radius-sm, 0.375rem);
  --sgkf-font: var(--sgk-font-display, inherit);
  --sgkf-line: rgba(127, 127, 127, 0.28);
  --sgkf-soft: rgba(127, 127, 127, 0.12);

  box-sizing: border-box;
}

.sgkf *,
.sgkf *::before,
.sgkf *::after {
  box-sizing: border-box;
}

.sgkf .sgkf-svg {
  display: block;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
}

.sgkf-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sgkf ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sgkf p {
  margin: 0;
}

.sgkf a {
  color: inherit;
  text-decoration: none;
}

.sgkf a:hover,
.sgkf a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Columns                                                             */
/* ------------------------------------------------------------------ */

.sgkf.sgkf-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem 2.5rem;
  width: 100%;
  padding-block: 0.5rem 1rem;
}

.sgkf-col__title {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem !important;
  font-family: var(--sgkf-font);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sgkf-col__title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  content: "";
  background: var(--sgkf-accent);
}

.sgkf-col__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: -0.5rem -0.5rem -0.5rem 0;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

.sgkf-col__toggle .sgkf-svg {
  transition: transform 0.18s ease;
}

.sgkf-col.is-open .sgkf-col__toggle .sgkf-svg {
  transform: rotate(180deg);
}

.sgkf-col__list li + li {
  margin-top: 0.55rem;
}

.sgkf-col__list a {
  font-size: 0.9375rem;
  opacity: 0.85;
}

.sgkf-col__list a:hover,
.sgkf-col__list a:focus-visible {
  opacity: 1;
}

.sgkf-col__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.85;
}

.sgkf-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sgkf-contact__row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sgkf-contact__row .sgkf-svg {
  margin-top: 0.15rem;
  color: var(--sgkf-accent);
}

.sgkf-contact__row a,
.sgkf-contact__row span {
  min-width: 0;
  overflow-wrap: anywhere;
  opacity: 0.85;
}

@media (max-width: 767.98px) {
  .sgkf.sgkf-cols.sgkf--collapse {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sgkf--collapse .sgkf-col {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--sgkf-line);
  }

  .sgkf--collapse .sgkf-col__title {
    padding-bottom: 0;
    margin-bottom: 0 !important;
  }

  .sgkf--collapse .sgkf-col__title::after {
    display: none;
  }

  .sgkf--collapse.is-ready .sgkf-col__toggle {
    display: inline-flex;
  }

  .sgkf--collapse .sgkf-col__body {
    padding-top: 0.9rem;
  }

  .sgkf--collapse .sgkf-col__body[hidden] {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Social networks                                                     */
/* ------------------------------------------------------------------ */

.sgkf-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sgkf-contact .sgkf-socials,
.sgkf-contactcard .sgkf-socials {
  margin-top: 0.5rem !important;
}

.sgkf-socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--sgkf-line);
  border-radius: 50%;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.sgkf-socials__link:hover,
.sgkf-socials__link:focus-visible {
  color: #fff;
  text-decoration: none;
  background: var(--sgkf-accent-ink);
  border-color: var(--sgkf-accent-ink);
}

.sgkf-socials__link .sgkf-svg--brand {
  width: 1.1rem;
  height: 1.1rem;
}

.sgkf.sgkf-socialband {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem;
}

/* ------------------------------------------------------------------ */
/* Newsletter                                                          */
/* ------------------------------------------------------------------ */

.sgkf.sgkf-newsletter {
  padding: 2.5rem 1rem;
}

.sgkf-newsletter__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem 2.5rem;
  align-items: start;
  width: 100%;
  max-width: var(--sgkf-container, 1296px);
  margin: 0 auto;
}

.sgkf-newsletter__eyebrow {
  margin-bottom: 0.5rem !important;
  font-family: var(--sgkf-font);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sgkf-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sgkf-newsletter__title {
  font-family: var(--sgkf-font);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
}

.sgkf-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.sgkf-newsletter__row {
  display: flex;
  gap: 0.5rem;
}

.sgkf .sgkf-newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3rem;
  padding: 0 1rem;
  margin: 0;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background: var(--sgkf-soft);
  border: 1px solid var(--sgkf-line);
  border-radius: var(--sgkf-radius);
  box-shadow: none;
}

.sgkf .sgkf-newsletter__input::placeholder {
  color: inherit;
  opacity: 0.65;
}

.sgkf .sgkf-newsletter__input:focus {
  border-color: var(--sgkf-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(215, 20, 28, 0.2);
}

.sgkf-newsletter__button,
.sgkf-message__button {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0 1.4rem;
  font-family: var(--sgkf-font);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--sgkf-accent-ink);
  border: 1px solid var(--sgkf-accent-ink);
  border-radius: var(--sgkf-radius);
  transition: filter 0.15s ease;
}

.sgkf-newsletter__button:hover,
.sgkf-newsletter__button:focus-visible,
.sgkf-message__button:hover {
  filter: brightness(0.92);
}

.sgkf-newsletter__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.sgkf-newsletter__button[disabled] {
  cursor: default;
  opacity: 0.7;
}

.sgkf-newsletter__msg {
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  border-left: 3px solid currentColor;
  border-radius: 0 var(--sgkf-radius) var(--sgkf-radius) 0;
}

.sgkf-newsletter__msg[hidden] {
  display: none;
}

.sgkf-newsletter__msg.is-ok {
  background: rgba(24, 130, 81, 0.16);
  border-left-color: var(--sgk-success, #188251);
}

.sgkf-newsletter__msg.is-error {
  background: rgba(215, 20, 28, 0.14);
  border-left-color: var(--sgkf-accent);
}

.sgkf-newsletter__legal,
.sgkf-newsletter__consent {
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0.8;
}

.sgkf-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .sgkf-newsletter__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479.98px) {
  .sgkf-newsletter__row {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------ */
/* Top bar, contact page, answer page                                  */
/* ------------------------------------------------------------------ */

.sgkf.sgkf-nav {
  display: inline-flex;
}

.sgkf-nav__link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8125rem;
}

.sgkf-nav__link .sgkf-svg {
  width: 1rem;
  height: 1rem;
}

.sgkf.sgkf-contactcard {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sgkf-contactcard__title {
  font-family: var(--sgkf-font);
  font-size: 1.125rem;
  font-weight: 700;
}

.sgkf.sgkf-message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--sgkf-accent);
  border-radius: var(--sgkf-radius);
  background: var(--sgkf-soft);
}

.sgkf.sgkf-message.is-ok {
  border-left-color: var(--sgk-success, #188251);
}

.sgkf-message__text {
  font-size: 1.0625rem;
}

.sgkf-message__back {
  font-weight: 600;
  text-decoration: underline !important;
}

@media (prefers-reduced-motion: reduce) {
  .sgkf * {
    transition: none !important;
  }
}
