/*
 * Footer PATAGANG CSS — Story 2.3 CSS & Customização Pingback Newsletter
 * Author: @dev (Dex)
 * Date: 2026-04-05
 * Purpose: Estilos isolados para footer personalizado PATAGANG
 *
 * Sections:
 *  1. Footer Container & Background
 *  2. Logo Row & Responsive Sizing
 *  3. Grid Layout (4-col desktop, 2-col tablet, 1-col mobile)
 *  4. Column Base Styles
 *  5. Section Titles & Links
 *  6. Social Icons & Interactions
 *  7. Payment & Shipping Logos
 *  8. Google Safe Seal (certificações)
 *  8b. Konfidency selo da loja (Segurança)
 *  9. Pingback Widget Customization (CSS Variables)
 * 10. Copyright & Footer Bottom
 * 11. Responsive Breakpoints (Media Queries)
 *
 * Color Palette (from legacy):
 *  - Background Gradient: #E2E2E2 → #ECECEC → #F5F5F5 → #FFFFFF
 *  - Text: #000000 (pure black)
 *  - Links: #000000
 *  - Hover: opacity 0.7
 *  - Borders: rgba(0,0,0,0.1)
 *
 * Typography:
 *  - Font Family: Familjen Grotesk, sans-serif
 *  - Body Size: 12px (links), 10px (copyright)
 *  - Title Size: 16px (uppercase)
 *  - Weight: 400 (regular), 500 (titles)
 */

/* ============================================================
   1. Footer Container & Background
   ============================================================ */

.footer {
  background: linear-gradient(180deg,
    #E2E2E2 0%,      /* Dark gray (same as global bg) */
    #ECECEC 20%,     /* Smooth transition */
    #F5F5F5 50%,     /* Light off-white */
    #FFFFFF 100%     /* Pure white at bottom */
  );
  color: #000000;
  font-family: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 80px 20px 40px;  /* Mobile padding */
  margin-top: 60px;         /* Space before footer */
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   2. Logo Row & Responsive Sizing
   ============================================================ */

.footer__logo-row {
  text-align: center;
  margin-bottom: 40px;
}

.footer__logo-wrapper {
  display: inline-block;
  width: 100%;
}

.footer__logo-img {
  width: 100%;
  max-width: 600px;    /* Mobile: max width 600px */
  height: auto;
  display: inline-block;
}

/* ============================================================
   3. Grid Layout (4-col desktop, 2-col tablet, 1-col mobile)
   ============================================================ */

.footer__content-row {
  display: grid;
  grid-template-columns: 1fr;  /* Mobile: 1 column (full width) */
  gap: 40px;                    /* Spacing between columns */
  margin-bottom: 40px;
  align-items: start;
}

/* Tablet breakpoint: 2 columns */
@media (min-width: 768px) {
  .footer__content-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* Tablet: 2 columns */
    gap: 35px;
  }
}

/* Desktop breakpoint: 4 columns */
@media (min-width: 1024px) {
  .footer__content-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));  /* Desktop: 4 columns */
    gap: clamp(28px, 2.4vw, 44px);
    padding: 0 40px;  /* Wider padding on desktop */
  }

  .footer__logo-img {
    max-width: 1200px;  /* Desktop: logo can be wider */
  }

  .footer__bottom-content {
    padding: 0 40px;
  }
}

/* ============================================================
   4. Column Base Styles
   ============================================================ */

.footer__col {
  padding: 0;
  margin: 0;
}

.footer__col--newsletter {
  /* Newsletter column (no extra styling needed) */
}

.footer__col--marca {
  /* Brand links column */
}

.footer__col--suporte {
  /* Support links column */
}

.footer__col--redes-sociais {
  /* Social links column */
}

.footer__col--pagamentos {
  /* Payment logos column */
}

/* Subsection for organizing multiple sections in one column */
.footer__subsection {
  margin-bottom: 30px;
}

.footer__subsection:last-child {
  margin-bottom: 0;
}

/* ============================================================
   5. Section Titles & Links
   ============================================================ */

.footer__title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
}

/* List styles */
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 8px;
}

.footer__list li:last-child {
  margin-bottom: 0;
}

.footer__list a {
  color: #000000;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.footer__list a:hover {
  opacity: 0.7;
}

.footer__list a:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
}

/* ============================================================
   6. Social Icons & Interactions
   ============================================================ */

.footer__social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
  color: #000000;
  text-decoration: none;
}

.footer__social-icons a:hover {
  opacity: 0.7;
}

.footer__social-icons svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ============================================================
   7. Payment & Shipping Logos
   ============================================================ */

.footer__payments-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 0;
  padding: 0;
}

.footer__payments-logos img {
  max-height: 32px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.footer__payments-logos a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback for logo containers without direct img access */
.footer-payments .logos img {
  filter: grayscale(100%);
  opacity: 0.85;
  max-height: 32px;
  width: auto;
}

.footer-payments .logos a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   8b. Konfidency — grupo Segurança (acima do copyright; alinhado ao miolo 1400px)
   ============================================================ */

.footer__bottom-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  /* Horizontal: alinhado ao .footer__content-row (padding extra só tablet/desktop) */
  padding: 0;
}

.footer__seguranca-konfidency {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__seguranca-konfidency .footer__title {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 14px;
}

.footer__seguranca-konfidency .konfidency-store-review {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 70px;
  transform: scale(0.62);
  transform-origin: center top;
}

.footer__seguranca-konfidency .konfidency-store-review > * {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .footer__seguranca-konfidency .konfidency-store-review {
    transform: scale(0.56);
    min-height: 62px;
  }
}

.footer__copyright-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.footer__powered-by-section {
  margin-top: 20px;
  text-align: center;
}

.footer__bottom-content .footer__claim-info {
  text-align: center;
  width: 100%;
}

/* ============================================================
   8. Google Safe Seal (certificações / selos admin)
   ============================================================ */

.footer__secondary {
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  text-align: center;
}

.footer__col--security {
  /* Security seals column */
}

.footer__security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.custom-seal-img {
  max-height: 48px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.custom-seal-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================================
   9. Pingback Widget Customization (CSS Variables)
   ============================================================ */

.footer-pingback-form,
footer-pingback-form,
pb-embeddable-form {
  font-family: 'Familjen Grotesk', sans-serif !important;

  /* CSS custom properties (for Pingback widget styling) */
  --pb-primary-color: #000000;
  --pb-background-color: transparent;
  --pb-text-color: #000000;
  --pb-border-color: #000000;
  --pb-border-radius: 4px;
  --pb-font-family: 'Familjen Grotesk', sans-serif;
}

/* Target Pingback form inputs */
.footer-pingback-form input,
footer-pingback-form input,
pb-embeddable-form input {
  font-size: 12px !important;
  background: transparent !important;
  border: 1px solid #000000 !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-family: 'Familjen Grotesk', sans-serif !important;
  color: #000000 !important;
}

.footer-pingback-form input::placeholder,
footer-pingback-form input::placeholder,
pb-embeddable-form input::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* Target Pingback form submit button */
.footer-pingback-form button,
footer-pingback-form button,
pb-embeddable-form button {
  background: #000000 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  padding: 10px 20px !important;
  border: 1px solid #000000 !important;
  cursor: pointer !important;
  font-family: 'Familjen Grotesk', sans-serif !important;
  transition: opacity 0.2s ease !important;
}

.footer-pingback-form button:hover,
footer-pingback-form button:hover,
pb-embeddable-form button:hover {
  opacity: 0.85 !important;
}

/* ============================================================
   10. Copyright & Footer Bottom
   ============================================================ */

.footer__bottom {
  padding-top: 20px;
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer__copyright {
  font-size: 10px;
  font-weight: 400;
  color: #000000;
  opacity: 0.6;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* ============================================================
   11. Responsive Breakpoints (Media Queries)
   ============================================================ */

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .footer {
    padding: 60px 20px 30px;
  }

  .footer__content-row {
    gap: 30px;
  }

  .footer__logo-img {
    max-width: 400px;
  }

  .footer__title {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .footer__list a {
    font-size: 11px;
  }

  .footer__copyright {
    font-size: 9px;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer {
    padding: 70px 30px 35px;
  }

  .footer__content-row {
    gap: 35px;
    padding: 0 15px;
  }

  .footer__bottom-content {
    padding: 0 15px;
  }

  .footer__logo-img {
    max-width: 800px;
  }

  .footer__title {
    font-size: 15px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .footer {
    padding: 80px 40px 50px;
  }

  .footer__content-row {
    gap: clamp(28px, 2.4vw, 44px);
  }

  .footer__logo-img {
    max-width: 1200px;
  }

  .footer__title {
    font-size: 16px;
  }

  .footer__list a {
    font-size: 12px;
  }
}

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  .footer {
    padding: 100px 60px 60px;
  }

  .footer__container {
    max-width: 1400px;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
  .footer {
    padding: 0;
    background: none;
  }

  .footer__logo-img {
    max-width: 300px;
  }

  .footer__list a {
    color: #000000;
    text-decoration: underline;
  }
}
