#footer.footer-v2 {
  margin-top: 0;
  background: #1b1b1b;
  color: #fff;
  font-family: BrownStd, sans-serif;
}

.footer-v2 .inner {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 5rem);
  box-sizing: border-box;
}

.footer-v2 .footer-v2-legacy-hook {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  overflow: hidden !important;
}

.footer-v2 a {
  color: #d3d3d3;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.footer-v2 a:hover,
.footer-v2 a:focus-visible {
  color: #fff;
}

.footer-v2 a:focus-visible {
  outline: 2px solid #ed8b00;
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-v2 a.btn {
  color: #ffffff;
}

.footer-v2 a.btn .text {
  color: inherit;
}

.footer-v2 .socials a {
  color: #ffffff;
}

.footer-v2-main {
  padding: clamp(2.4rem, 4.3vw, 4.4rem) 0 clamp(1.9rem, 3.4vw, 3rem);
}

.footer-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(330px, 1.3fr);
  gap: clamp(1.5rem, 2.6vw, 3.2rem);
  align-items: start;
}

.footer-v2-col {
  min-width: 0;
}

.footer-v2-title {
  margin: 0 0 1rem;
  color: #ed8b00;
  font-size: clamp(1.05rem, 1.12vw, 1.28rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.footer-v2-title {
  overflow-wrap: break-word;
  word-break: normal;
}

.footer-v2-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-v2-links a {
  display: inline-block;
  padding: 0.15rem 0;
  color: #d4d4d4;
  font-size: 0.93rem;
  line-height: 1.35;
}

/* Eddyfi Product Lines: desktop accordions (nav column hidden below 1200px in this footer). */
.footer-v2-product-lines > li {
  margin: 0;
  padding: 0;
}

/* High-specificity resets: global bundles / CDN can style `button` after generic footer rules. */
#footer.footer-v2 .footer-v2-product-lines .footer-v2-accordion-trigger {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.15rem 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #d4d4d4 !important;
  font: inherit !important;
  font-size: 0.93rem !important;
  line-height: 1.35 !important;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.32rem;
  transition: color 160ms ease, opacity 160ms ease;
}

.footer-v2-accordion-label {
  flex: 0 1 auto;
  min-width: 0;
}

.footer-v2-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0.72;
  transition: transform 200ms ease-out, opacity 150ms ease-out;
}

.footer-v2-accordion-chevron svg {
  display: block;
}

.footer-v2-accordion-item.is-open .footer-v2-accordion-chevron {
  transform: rotate(180deg);
  opacity: 0.95;
}

#footer.footer-v2 .footer-v2-product-lines .footer-v2-accordion-trigger:hover,
#footer.footer-v2 .footer-v2-product-lines .footer-v2-accordion-trigger:focus-visible {
  color: #fff !important;
}

#footer.footer-v2 .footer-v2-accordion-item.is-open > .footer-v2-accordion-trigger {
  color: #ed8b00 !important;
}

#footer.footer-v2 .footer-v2-product-lines .footer-v2-accordion-trigger:focus-visible {
  outline: 2px solid #ed8b00;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Collapse with max-height (Safari-safe). `grid-template-rows: 0fr` is unreliable on some WebKit builds. */
.footer-v2-accordion-panel {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.28s ease-out, opacity 0.2s ease-out, visibility 0.2s linear;
}

.footer-v2-accordion-item.is-open .footer-v2-accordion-panel {
  max-height: 40rem;
  opacity: 1;
  overflow: visible;
  visibility: visible;
}

.footer-v2-accordion-panel-inner {
  min-height: 0;
}

.footer-v2-accordion-sub {
  list-style: none;
  margin: 0.35rem 0 0.15rem;
  padding: 0 0 0 0.65rem;
  display: grid;
  gap: 0.35rem;
}

.footer-v2-accordion-sub a {
  color: #d4d4d4;
}

.footer-v2-accordion-sub a:hover,
.footer-v2-accordion-sub a:focus-visible {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .footer-v2-accordion-panel {
    transition: none;
  }

  .footer-v2-accordion-chevron {
    transition: none;
  }

  .footer-v2-accordion-item:not(.is-open) .footer-v2-accordion-panel {
    max-height: 0;
  }
}

.footer-v2-col-cta {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.footer-v2-cta-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 1.95vw, 2.25rem);
  font-weight: 500;
  line-height: 1.14;
  width: 100%;
}

.footer-v2-cta-subtitle {
  margin: 0.45rem 0 1.4rem;
  color: #fff;
  font-size: clamp(1.25rem, 1.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  width: 100%;
}

.footer-v2-btn-ctn {
  margin: 0 0 1.55rem;
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.footer-v2-btn-ctn .btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.85rem 1.6rem;
}

.footer-v2-btn-ctn .btn .text {
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 400;
}

.footer-v2-btn-secondary {
  background-color: #b7b3ad;
  border-color: #ffffff;
}

.footer-v2-social-title {
  margin: 0 0 0.6rem;
  color: #8f8f8f;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-v2 .socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.footer-v2-social {
  width: 100%;
  margin-top: 0.1rem;
}

.footer-v2-social .socials {
  justify-content: center;
}

.footer-v2 .socials li {
  margin: 0;
  padding: 0;
}

.footer-v2 .socials a {
  width: auto;
  height: auto;
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  border: 0;
  padding: 0.15rem 0.1rem;
}

.footer-v2 .socials a:hover,
.footer-v2 .socials a:focus-visible {
  color: #ed8b00;
}

.footer-v2 .socials a:focus-visible {
  outline: 2px solid #ed8b00;
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-v2-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #161616;
  padding: 1.2rem 0;
}

.footer-v2-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: nowrap;
}

/* Bottom-bar logo. Element is now an anchor pointing to the homepage,
   so we explicitly reset the footer's link tone and underline so the
   image is the only visible content. Subtle opacity hover matches the
   header v2 logo behavior. */
.footer-v2-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  margin-left: 0;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  line-height: 0;
  opacity: 1;
  transition: opacity 200ms ease-out;
}

.footer-v2-brand:hover,
.footer-v2-brand:focus-visible {
  opacity: 0.85;
  color: inherit;
}

.footer-v2-brand img {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-v2-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.footer-v2-copyright {
  color: #c9c9c9;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}

.footer-v2-legal-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem 0.95rem;
  justify-content: flex-end;
  position: relative;
  padding-left: 0.95rem;
  color: #6f6f6f;
}

.footer-v2-legal-links::before {
  content: "|";
  position: absolute;
  left: -0.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6f6f6f;
  font-size: 0.86rem;
  line-height: 1;
  pointer-events: none;
}

.footer-v2-legal-links a {
  color: #c9c9c9;
  font-size: 0.86rem;
  line-height: 1.45;
  position: relative;
  white-space: nowrap;
}

.footer-v2-legal-links a + a::before {
  content: "|";
  position: absolute;
  left: -0.62rem;
  top: 0;
  color: #6f6f6f;
  font-size: 0.86rem;
  line-height: 1.45;
  pointer-events: none;
}

@media (max-width: 1599px) {
  .footer-v2-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(310px, 1.25fr);
    gap: 1.85rem;
  }
}

@media (max-width: 1399px) {
  .footer-v2-meta {
    gap: 0.35rem 0.7rem;
  }

  .footer-v2-legal-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 1199px) {
  .footer-v2 .inner {
    padding-left: clamp(1.1rem, 5vw, 1.6rem);
    padding-right: clamp(1.1rem, 5vw, 1.6rem);
  }

  .footer-v2-main {
    padding: clamp(2rem, 5vw, 2.6rem) 0 clamp(1.6rem, 4vw, 2rem);
  }

  .footer-v2-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }

  .footer-v2-grid > .footer-v2-col:not(.footer-v2-col-cta) {
    display: none;
  }

  .footer-v2-col-cta {
    border: 0;
    padding: 0;
    align-items: stretch;
  }

  .footer-v2-cta-title {
    font-size: clamp(1.85rem, 7.2vw, 2.7rem);
    max-width: none;
    width: 100%;
    line-height: 1.12;
  }

  .footer-v2-cta-subtitle {
    font-size: clamp(1.3rem, 4.8vw, 1.8rem);
    max-width: none;
    margin-bottom: 1.3rem;
  }

  .footer-v2-btn-ctn {
    width: 100%;
    max-width: none;
    margin: 0 0 1.35rem;
    gap: 0.95rem;
  }

  .footer-v2-btn-ctn .btn {
    min-height: 56px;
  }

  .footer-v2-btn-ctn .btn .text {
    font-size: 1.18rem;
  }

  .footer-v2-social {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.4rem 0 0.2rem;
  }

  .footer-v2-social .socials {
    width: 100%;
    justify-content: center;
    gap: 1.85rem;
  }

  .footer-v2 .socials a {
    font-size: 1.4rem;
    padding: 0.3rem 0.2rem;
  }

  .footer-v2-bottom {
    padding: 1.35rem 0 1.5rem;
  }

  .footer-v2-bottom-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .footer-v2-brand {
    display: none;
  }

  .footer-v2-meta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .footer-v2-copyright {
    text-align: center;
    white-space: normal;
    width: 100%;
  }

  .footer-v2-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
  }

  .footer-v2-legal-links a {
    white-space: nowrap;
  }

  .footer-v2-legal-links {
    padding-left: 0;
  }
  .footer-v2-legal-links::before {
    content: none;
  }
}

@media (max-width: 720px) {
  .footer-v2-main {
    padding: 2.2rem 0 1.6rem;
  }

  .footer-v2-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-v2-btn-ctn {
    max-width: none;
  }

  .footer-v2-links a {
    font-size: 0.98rem;
    line-height: 1.45;
    padding: 0.2rem 0;
  }

  .footer-v2-bottom-inner {
    align-items: center;
  }

  .footer-v2-meta {
    width: 100%;
    max-width: none;
  }
}
