/* Mobile Island Brand Footer */
:root {
  --pd-footer-bg: #111111;
  --pd-footer-bg-alt: #151515;
  --pd-footer-bottom-bg: #1c1c1c;
  --pd-footer-text: #ffffff;
  --pd-footer-muted: #d1d5db;
  --pd-footer-muted-2: #b5b5b5;
  --pd-footer-accent: #ffd400;
  --pd-footer-border: rgba(255, 212, 0, 0.25);
  --pd-footer-border-soft: rgba(255, 255, 255, 0.12);
}

#footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 26px 20px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--pd-footer-text);
  background: linear-gradient(180deg, var(--pd-footer-bg) 0%, var(--pd-footer-bg-alt) 100%);
  border-top: 1px solid var(--pd-footer-border);
  position: relative;
  z-index: 1000;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  width: 100%;
}

.footer-widget {
  max-width: 100%;
  z-index: 1;
  min-width: 0;
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand-logo img {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-brand-about {
  margin: 0 0 14px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--pd-footer-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.68;
}

.footer-widget h4 {
  color: var(--pd-footer-text);
  margin: 0 0 18px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: var(--pd-footer-accent);
}

.footer-widget p,
.footer-widget ul,
.footer-widget li {
  font-family: "Inter", Arial, sans-serif;
  color: var(--pd-footer-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

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

.footer-widget li {
  margin: 6px 0;
}

.footer-widget a {
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--pd-footer-muted);
  text-decoration: none;
  line-height: 1.55;
  margin: 5px 0;
  transition: color 0.25s ease;
}

.footer-widget a:hover {
  color: var(--pd-footer-accent);
}

.footer-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.footer-block-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  max-width: 100%;
}

.footer-block-content a:hover {
  color: var(--pd-footer-accent);
}

.footer-icon {
  width: 20px;
  height: auto;
  margin-right: 10px;
  filter: none;
}

.footer-locations .footer-block {
  align-items: center;
}

.footer-locations .footer-icon {
  margin-top: 0;
  align-self: center;
  display: block;
}

/* Location row is multi-line: keep icon at top/start */
#footer .footer-locations .footer-block:first-of-type {
  align-items: flex-start !important;
}

#footer .footer-locations .footer-block:first-of-type .footer-icon {
  align-self: flex-start !important;
  margin-top: 4px !important;
}

.footer-locations .footer-icon {
  /* Match the same accent color used in the section underline bar */
  filter: brightness(0) saturate(100%) invert(88%) sepia(77%) saturate(930%) hue-rotate(357deg) brightness(102%) contrast(104%);
}

.footer-block-caption {
  color: var(--pd-footer-muted);
  text-decoration: none;
}

/* Newsletter */
.contact-form {
  margin: 0;
}

.form-group {
  margin-bottom: 12px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
}

.form-control::placeholder {
  color: #666666;
}

.form-control:focus {
  outline: none;
  border-color: var(--pd-footer-accent);
  box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.22);
}

.news-submit {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  background-color: var(--pd-footer-accent);
  color: #111111;
  border: 1px solid var(--pd-footer-accent);
  padding: 10px 18px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.news-submit:hover {
  background-color: #111111;
  color: var(--pd-footer-accent);
  border-color: var(--pd-footer-accent);
}

.news-submit:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.news-submit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(17, 17, 17, 0.28);
  border-top-color: #111111;
  border-radius: 50%;
  display: none;
}

.news-submit.is-loading .news-submit-spinner {
  display: inline-block;
  animation: footerBtnSpin 0.8s linear infinite;
}

.news-submit.is-success {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.news-submit.is-success .news-submit-label::before {
  content: "\2713\00a0";
  font-weight: 700;
}

.news-submit.is-error {
  background-color: #111111;
  border-color: var(--pd-footer-accent);
  color: var(--pd-footer-accent);
}

.newsletter-feedback {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
  font-family: "Inter", Arial, sans-serif;
  color: var(--pd-footer-muted);
}

.newsletter-feedback.is-success {
  color: #86efac;
}

.newsletter-feedback.is-error {
  color: #fca5a5;
}

@keyframes footerBtnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Social */
.footer-social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 12px;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1c1c1c;
  border: 1px solid var(--pd-footer-border-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  transform: translateY(-1px);
  border-color: var(--pd-footer-accent);
  background-color: #232323;
}

.footer-social-icon img {
  width: 15px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
  transition: filter 0.25s ease;
}

.footer-social-icon:hover img {
  filter: brightness(0) saturate(100%) invert(88%) sepia(77%) saturate(930%) hue-rotate(357deg) brightness(102%) contrast(104%);
}

/* Footer bottom bar */
.footer-info {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 12px 20px;
  background-color: var(--pd-footer-bottom-bg);
  border-top: 1px solid var(--pd-footer-border-soft);
  position: relative;
  z-index: 10;
}

.footer-info-copy,
.footer-info p {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 500;
  color: var(--pd-footer-muted-2);
  margin: 0;
  font-size: 0.8125rem;
  white-space: nowrap;
  justify-self: start;
  text-align: left;
}

.footer-policy-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  row-gap: 4px;
  margin: 0;
  justify-self: center;
  grid-column: 2;
}

.footer-policy-links a {
  color: var(--pd-footer-muted-2);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-policy-links a:hover {
  color: var(--pd-yellow, #ffd400);
}

.footer-policy-sep {
  color: var(--pd-footer-muted-2);
  font-size: 0.75rem;
  opacity: 0.6;
}

.payment-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-self: end;
  grid-column: 3;
}

.payment-image img {
  height: auto;
  max-height: 24px;
  width: auto;
  max-width: 325px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.payment-image img:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 6px rgba(255, 212, 0, 0.35));
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-button:hover {
  background: #0056b3;
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  #footer {
    padding: 18px 12px;
  }

  .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand brand"
      "locations locations"
      "categories links"
      "newsletter newsletter";
    padding: 8px 0;
    row-gap: 20px;
    column-gap: 14px;
  }

  .footer-widget {
    max-width: 100%;
    min-width: 0;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-locations {
    grid-area: locations;
  }

  .footer-categories {
    grid-area: categories;
  }

  .footer-links {
    grid-area: links;
  }

  .footer-newsletter {
    grid-area: newsletter;
  }

  .footer-brand-logo img {
    width: 152px;
  }

  .contact-form,
  .form-group,
  .form-control,
  .news-submit {
    width: 100%;
  }

  .news-submit {
    text-align: center;
  }

  .form-control {
    border-radius: 8px;
  }

  .footer-social-icons {
    margin-top: 15px;
    flex-wrap: wrap;
  }

  .footer-widget h4 {
    margin: 4px 0 12px;
  }

  .footer-categories h4,
  .footer-links h4 {
    margin-top: 0;
  }

  .footer-categories ul,
  .footer-links ul {
    margin-top: 2px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 10px;
    padding: 12px 10px;
    text-align: center;
  }

  .footer-info-copy {
    white-space: normal;
    justify-self: center;
    text-align: center;
    grid-column: 1;
  }

  .footer-policy-links {
    flex-wrap: wrap;
    justify-self: center;
    grid-column: 1;
  }

  .payment-image {
    justify-self: center;
    grid-column: 1;
  }

  .payment-image img {
    max-height: 20px;
  }
}
