/*
 * Styles for every page of the website (and the sign-in page), after Arc CMS's own.
 * Home page only styles are in assets/home.css.
 */

/* The heart in the footer */
.heart-icon {
  color: #ff3b30;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Footer signup */
.footer-signup {
  max-width: 520px;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-signup-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-signup-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  color: #1d1d1f;
}

.footer-signup-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 1px solid #48484a;
  border-radius: 10px;
  background: #2c2c2e;
  color: #f5f5f7;
  font-size: 0.95rem;
}

.footer-signup-form input[type="email"]::placeholder {
  color: #98989d;
}

.footer-signup-form button {
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: #06c;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.footer-signup-form button:hover {
  background: #0077ed;
}

/* Arc CMS puts its terms line above the button; on this one-row form it goes below,
   on a row of its own. The code step and the success panel take the whole width. */
.footer-signup-form > :not(input):not(button):not(label) {
  flex-basis: 100%;
  order: 3;
  margin: 0.25rem 0 0;
  color: #98989d;
  font-size: 0.8rem;
}

/* Header: the "Have Us Build It" button, beside the menu button on a phone */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  background: #06c;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover,
.nav-cta:focus {
  background: #0077ed;
  color: #fff;
}

@media (min-width: 992px) {
  .nav-actions {
    margin-left: 0.5rem;
  }
}

@media (max-width: 380px) {
  .nav-cta {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Footer links: even spacing instead of inline margins */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-signup-form input:focus-visible,
.footer-signup-form button:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .heart-icon {
    animation: none;
  }
}
