/* footer section: owned by Task 5, wave divider, final CTA and footer bar. */

/* Paper-to-navy wave divider */
.footer-waves {
  background-color: var(--paper);
  line-height: 0;
}

.footer-waves-svg {
  display: block;
  width: 100%;
  height: 160px;
}

.footer-wave-1 {
  fill: var(--wave-1);
}

.footer-wave-3 {
  fill: var(--wave-3);
}

.footer-wave-4 {
  fill: var(--wave-4);
}

/* Navy footer: everything is white, links included, on hover too */
.footer {
  background-color: var(--navy);
  color: var(--white);
}

.footer a,
.footer a:hover {
  color: var(--white);
}

.footer .btn--primary,
.footer .btn--primary:hover,
.footer .btn--secondary,
.footer .btn--secondary:hover {
  color: var(--ink);
}

.footer-inner {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

/* Final CTA */
.footer-cta {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.footer-lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--pale-2);
}

.footer-chat {
  margin-top: 8px;
}

.footer-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.footer-icon-accent {
  stroke: var(--sunflower-light);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 17px;
  font-weight: 600;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  text-underline-offset: 3px;
}

.footer-or {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 4px;
}

.footer-or-line {
  flex: 1;
  border-top: 1.5px dashed color-mix(in srgb, var(--white) 40%, transparent);
}

.footer-or-label {
  color: var(--pale);
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-note {
  margin: 0;
  font-size: 15px;
  color: var(--pale);
}

.footer-serving {
  margin-top: 12px;
  color: var(--pale);
}

/* Footer bar */
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 28px;
  border-top: 1.5px dashed color-mix(in srgb, var(--white) 30%, transparent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo {
  width: 58px;
  height: auto;
  overflow: visible;
}

.footer-wordmark {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.footer-wordmark-accent {
  color: var(--sunflower-light);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav-link {
  font-size: 15px;
}

.footer-copyright {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--pale);
}
