/* AIDEV-NOTE: v4 footer — black background, 6-column grid, accordion on mobile */

/* AIDEV-NOTE: ww2 footer padding is 64px (4rem) top AND bottom */
.v4-footer {
  background: #000;
  color: #d1d5db;
  padding: 0;
}

/* AIDEV-NOTE: ww2 uses py-16 (64px) and px-4/6/8 */
.v4-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}
@media (min-width: 640px) {
  .v4-footer-inner {
    padding: 4rem 1.5rem;
  }
}
@media (min-width: 1024px) {
  .v4-footer-inner {
    padding: 4rem 2rem;
  }
}

/* Desktop grid */
.v4-footer-grid {
  display: none;
}
@media (min-width: 1024px) {
  .v4-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 3rem;
  }
}

/* Brand column */
.v4-footer-brand img {
  height: 0.625rem;
  width: auto;
  filter: brightness(0) invert(1);
}
.v4-footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #9ca3af;
}

/* Social icons */
.v4-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.v4-footer-social a {
  color: #9ca3af;
  transition: color 0.2s ease;
}
.v4-footer-social a:hover {
  color: #fff;
}
.v4-footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Link columns */
/* AIDEV-NOTE: ww2 uses text-white font-semibold mb-4 — 1rem/16px, no uppercase */
.v4-footer-col h3,
.v4-footer-contact h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5rem;
  margin-bottom: 1rem;
}
.v4-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* AIDEV-NOTE: ww2 uses space-y-3 (margin-top on 2nd+ items, not margin-bottom) */
.v4-footer-col li + li {
  margin-top: 0.75rem;
}
/* AIDEV-NOTE: ww2 links are gray-300 (#d1d5db), not gray-400 */
.v4-footer-col a {
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.25rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.v4-footer-col a:hover {
  color: #fff;
}

/* AIDEV-NOTE: Contact section (desktop) — heading + pipe-separated row, matches ww2 */
.v4-footer-contact {
  display: none;
}
@media (min-width: 1024px) {
  .v4-footer-contact {
    display: block;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #1f2937;
    font-size: 0.875rem;
  }
}
.v4-footer-contact a {
  color: #9ca3af;
  line-height: 1.25rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.v4-footer-contact a:hover {
  color: #fff;
}

/* Mobile footer */
.v4-footer-mobile {
  display: block;
}
@media (min-width: 1024px) {
  .v4-footer-mobile {
    display: none;
  }
}
.v4-footer-mobile-brand {
  margin-bottom: 2rem;
}
.v4-footer-mobile-brand img {
  height: 0.625rem;
  width: auto;
  filter: brightness(0) invert(1);
}
.v4-footer-mobile-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #9ca3af;
}

/* Mobile accordion sections */
.v4-footer-accordion {
  border-bottom: 1px solid #1f2937;
}
.v4-footer-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.v4-footer-accordion-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  transition: transform 0.2s ease;
}
.v4-footer-accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.v4-footer-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.v4-footer-accordion-panel.open {
  max-height: 24rem;
}
.v4-footer-accordion-panel ul {
  list-style: none;
  padding: 0.5rem 0 1rem;
  margin: 0;
}
.v4-footer-accordion-panel li {
  margin-bottom: 0.5rem;
}
.v4-footer-accordion-panel a {
  font-size: 0.875rem;
  color: #d1d5db;
  text-decoration: none;
}
.v4-footer-accordion-panel a:hover {
  color: #fff;
}

/* Mobile contact */
.v4-footer-mobile-contact {
  padding: 1.5rem 0;
  border-top: 1px solid #1f2937;
  font-size: 0.875rem;
}
.v4-footer-mobile-contact a {
  color: #9ca3af;
  text-decoration: none;
}
.v4-footer-mobile-contact a:hover {
  color: #fff;
}
.v4-footer-mobile-contact p {
  margin-bottom: 0.5rem;
}

/* AIDEV-NOTE: Bottom bar — extra bottom padding for fixed action bar (ww2 uses pb-20) */
.v4-footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 1.5rem 0 5rem;
  margin-top: 2rem;
}
/* AIDEV-NOTE: ww2 bottom bar — 14px links (gray-400), copyright text gray-400 */
.v4-footer-bottom-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}
@media (min-width: 640px) {
  .v4-footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .v4-footer-bottom-inner {
    padding: 0 2rem;
  }
}
.v4-footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.v4-footer-bottom-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}
.v4-footer-bottom-links a:hover {
  color: #fff;
}
