/**
 * CHEVRON FOOTER - Portable CSS
 * Requires: chevron-variables.css
 */

.chevron-footer {
  --footer-max: min(1240px, 100%);
  --footer-pad-x: clamp(var(--space-3), 5vw, var(--space-10));
  
  background: var(--chevron-dark-blue);
  padding: var(--space-4) var(--footer-pad-x) 0;
  color: var(--chevron-white);
}

/* ────────────────────────────────────────
   FOOTER MAIN SECTION
   ──────────────────────────────────────── */
.footer-main {
  width: var(--footer-max);
  margin-inline-start: 0;
  display: grid;
  grid-template-columns: minmax(165px, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-hallmark {
  display: block;
  width: auto;
  max-width: 165px;
  height: auto;
}

.footer-product-name {
  margin: 0;
  font: var(--mat-sys-label-large);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--chevron-light-teal);
}

.footer-description {
  margin: 0;
  font: var(--mat-sys-body-small);
  color: rgba(255, 255, 255, 0.68);
  max-width: 38ch;
  line-height: 1.7;
}

/* ────────────────────────────────────────
   NAVIGATION COLUMNS
   ──────────────────────────────────────── */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.footer-col-heading {
  margin: 0;
  font: var(--mat-sys-label-large);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--chevron-light-teal);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-link {
  text-decoration: none;
  font: var(--mat-sys-body-small);
  color: rgba(255, 255, 255, 0.68);
  position: relative;
  padding-bottom: 1px;
  transition: color 180ms ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--chevron-light-teal);
  transition: width 220ms ease;
}

.footer-link:hover {
  color: var(--chevron-white);
}

.footer-link:hover::after {
  width: 100%;
}

/* ────────────────────────────────────────
   FOOTER BOTTOM SECTION
   ──────────────────────────────────────── */
.footer-bottom {
  width: var(--footer-max);
  margin-inline-start: 0;
  padding: var(--space-2) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
}

.footer-bottom-logo {
  height: 1.6rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.footer-copyright {
  margin: 0;
  font: var(--mat-sys-label-small);
  color: rgba(255, 255, 255, 0.48);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-legal-link {
  text-decoration: none;
  font: var(--mat-sys-label-small);
  color: rgba(255, 255, 255, 0.48);
  transition: color 180ms ease;
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────── */
@media (width <= 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  
  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (width <= 760px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* ────────────────────────────────────────
   DARK THEME SUPPORT (Material Design Aligned)
   ──────────────────────────────────────── */
.dark-theme .chevron-footer {
  background: #1e1e1e;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dark-theme .footer-copyright,
.dark-theme .footer-link,
.dark-theme .footer-legal-link {
  color: rgba(255, 255, 255, 0.7);
}

.dark-theme .footer-link:hover {
  color: rgba(255, 255, 255, 0.87);
}

.dark-theme .footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.9);
}
