/* =========================================================
   SPOTLESS WINDOW & EXTERIOR — SHARED FOOTER
   Final clean version
========================================================= */

/* =========================================================
   FOOTER SETTINGS — DESKTOP
========================================================= */
.footer-wrapper {
  --footer-bg: #0b0b0b;
  --footer-title-color: #ffffff;
  --footer-text-color: #9b9b9b;
  --footer-muted-color: #8c8c8c;
  --footer-divider-color: rgba(255, 255, 255, 0.08);
  --footer-accent-color: var(--theme-color, #ae2349);

  --footer-font-heading: "Outfit", sans-serif;
  --footer-font-body: "Inter", sans-serif;
  --footer-font-logo: "Inter", sans-serif;

  --footer-title-size: 24px;
  --footer-tagline-size: 16px;
  --footer-body-size: 17px;
  --footer-contact-size: 18px;
  --footer-copyright-size: 16px;
  --footer-legal-size: 16px;

  --footer-main-padding-top: 18px;
  --footer-main-padding-bottom: 14px;
  --footer-bottom-padding-y: 12px;
  --footer-column-gap: 32px;
  --footer-social-gap: 10px;

  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--footer-bg);
  color: var(--footer-text-color);
  font-family: var(--footer-font-body);
}

.footer-wrapper,
.footer-wrapper * {
  box-sizing: border-box;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */
.footer-main-row,
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--footer-column-gap);
}

.footer-main-row {
  padding: var(--footer-main-padding-top) 0
    var(--footer-main-padding-bottom);
}

.footer-bottom-row {
  padding: var(--footer-bottom-padding-y) 0;
}

.footer-brand {
  flex: 1 1 56%;
  min-width: 0;
}

.footer-contact {
  flex: 0 1 42%;
  min-width: 0;
  text-align: right;
}

/* =========================================================
   BRAND TEXT
========================================================= */
.footer-title {
  margin: 0 0 6px;
  color: var(--footer-title-color);
  font-family: var(--footer-font-logo);
  font-size: var(--footer-title-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.footer-tagline {
  margin: 0 0 8px;
  color: var(--footer-accent-color);
  font-size: var(--footer-tagline-size);
  font-weight: 600;
  line-height: 1.45;
}

.footer-description {
  max-width: 500px;
  margin: 0;
  color: var(--footer-text-color);
  font-size: var(--footer-body-size);
  line-height: 1.55;
}

/* =========================================================
   CONTACT INFORMATION
========================================================= */
.footer-contact-item {
  margin: 0 0 7px;
  line-height: 1.45;
}

.footer-contact-link {
  color: var(--footer-title-color);
  font-size: var(--footer-contact-size);
  line-height: 1.45;
  text-decoration: none;
}

.footer-phone {
  font-weight: 600;
}

.footer-email {
  font-weight: 500;
}

.footer-location {
  margin: 0 0 10px;
  color: var(--footer-text-color);
  font-size: var(--footer-contact-size);
  line-height: 1.45;
}

/* =========================================================
   SOCIAL ICONS
========================================================= */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--footer-social-gap);
}

.footer-social a {
  margin: 0;
}

/* =========================================================
   DIVIDER
========================================================= */
.footer-divider {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--footer-divider-color);
  opacity: 1;
}

/* =========================================================
   COPYRIGHT AND LEGAL LINKS
========================================================= */
.footer-copyright {
  flex: 1 1 50%;
  min-width: 0;
}

.footer-copyright p {
  margin: 0;
  color: var(--footer-muted-color);
  font-size: var(--footer-copyright-size);
  line-height: 1.5;
}

.copyright-line-one,
.copyright-line-two {
  display: inline;
}

.copyright-line-two::before {
  content: " ";
}

.footer-legal-links {
  flex: 1 1 50%;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: right;
  white-space: nowrap;
}

.footer-legal-links a,
.footer-legal-links span {
  color: var(--footer-muted-color);
  font-size: var(--footer-legal-size);
  line-height: 1.5;
  text-decoration: none;
}

.footer-legal-links span {
  padding: 0 8px;
}

/* =========================================================
   HOVER AND KEYBOARD FOCUS
========================================================= */
.footer-contact-link:hover,
.footer-contact-link:focus,
.footer-legal-links a:hover,
.footer-legal-links a:focus {
  color: var(--footer-accent-color);
}

/* =========================================================
   TABLET LAYOUT — 991PX AND BELOW
   Layout changes only. Desktop font sizes remain unchanged.
========================================================= */
@media (max-width: 991px) {
  .footer-wrapper .container {
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .footer-main-row,
  .footer-bottom-row {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    text-align: center;
  }

  .footer-main-row {
    padding: 24px 0 20px;
  }

  .footer-brand,
  .footer-contact,
  .footer-copyright,
  .footer-legal-links {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: center;
  }

  .footer-title {
    max-width: 100%;
    margin-bottom: 14px;
    white-space: normal;
    text-align: center;
  }

  .footer-tagline,
  .footer-description {
    display: none;
  }

  .footer-contact-item {
    margin-bottom: 7px;
  }

  .footer-location {
    margin-bottom: 0;
  }

  .footer-social {
    justify-content: center;
    margin-top: 14px;
  }

  .footer-bottom-row {
    gap: 5px;
    padding: 14px 0 14px;
  }

  .footer-copyright p {
    width: 100%;
    text-align: center;
  }

  .copyright-line-one,
  .copyright-line-two {
    display: block;
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .copyright-line-two {
    margin-top: 2px;
  }

  .copyright-line-two::before {
    content: none;
  }

  .footer-legal-links {
    position: relative;
    top: -3px;
    white-space: normal;
  }

  .footer-legal-links a,
  .footer-legal-links span {
    display: inline;
  }

  .scroll-top {
    display: none !important;
  }
}

/* =========================================================
   MOBILE FOOTER — 575PX AND BELOW
   Change only the font-size values below.
========================================================= */
@media (max-width: 575px) {
  .footer-wrapper .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  /* Company name */
  .footer-wrapper .footer-title {
    margin-bottom: 14px;
    font-family: var(--footer-font-logo) !important;
    font-size: 24px !important;
    line-height: 1.2;
    letter-spacing: -0.25px;
  }

  /* Phone and email */
  .footer-wrapper .footer-contact-link {
    font-size: 18px !important;
  }

  /* Address */
  .footer-wrapper .footer-location {
    font-size: 16px !important;
  }

  /* Copyright */
  .footer-wrapper .footer-copyright p {
    font-size: 15px !important;
  }

  /* Privacy Policy, Terms and Cookie Policy */
  .footer-wrapper .footer-legal-links a,
  .footer-wrapper .footer-legal-links span {
    font-size: 14px !important;
  }

  .footer-main-row {
    padding: 22px 0 18px;
  }

  .footer-contact-item {
    margin-bottom: 6px;
  }

  .footer-social {
    gap: 12px;
    margin-top: 12px;
  }

  .footer-bottom-row {
    gap: 4px;
    padding: 12px 0 12px;
  }

  .footer-legal-links {
    top: -4px;
  }

  .footer-legal-links span {
    padding: 0 5px;
  }
}

/* =========================================================
   VERY NARROW MOBILE — 390PX AND BELOW
   Spacing only; font sizes remain the same.
========================================================= */
@media (max-width: 390px) {
  .footer-wrapper .container {
    padding-right: 10px;
    padding-left: 10px;
  }

  .footer-legal-links {
    top: -4px;
  }

  .footer-legal-links span {
    padding: 0 4px;
  }
}