.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 40px;
  background: #460d0d;
  width: 100%;
  color: #ffffff;
  font-family: PPNeueMontreal-Regular, sans-serif;
}

.footer-container {
  max-width: 1392px;
  width: 100%;
  margin: 0 auto;
}

/* Top section with logo and social icons */
.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 72px;
  margin-bottom: 40px;
}

.footer-logo-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-weight: 600;
  font-size: 48px;
  line-height: 150%;
  color: #ffffff;
}

.footer-divider {
  width: 1px;
  height: 72px;
  background: #ffffff;
  opacity: 0.1;
}

.footer-social {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px;
  width: 48px;
  height: 48px;
  background: #581111;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #6d1515;
}

/* Dividers */
.footer-divider-full {
  width: 100%;
  height: 1px;
  background: #ffffff;
  opacity: 0.1;
  margin: 40px 0;
}

/* Main footer content */
.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-column h3 {
  font-weight: 700;
  font-size: 32px;
  line-height: 150%;
  color: #ffffff;
  margin: 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav a {
  font-weight: 600;
  font-size: 28px;
  line-height: 150%;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.8;
}

/* Newsletter section */
.newsletter {
  max-width: 512px;
}

.newsletter h3 {
  font-weight: 700;
  font-size: 40px;
  line-height: 120%;
  color: #ffffff;
  margin: 0;
}

.newsletter p {
  font-weight: 400;
  font-size: 20px;
  line-height: 150%;
  color: #ffffff;
  margin: 0;
}

.newsletter-form {
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px 4px 4px 16px;
  gap: 12px;
  width: 100%;
  height: 56px;
  background: #ffffff;
  border-radius: 100px;
}

.input-group input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-family: PPNeueMontreal-Regular, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #581111;
  background: transparent;
}

.input-group input::placeholder {
  color: #581111;
  opacity: 0.4;
}

.input-group button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px;
  width: 48px;
  height: 48px;
  background: #ad2324;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.input-group button:hover {
  background: #c42728;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.footer-links a {
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* Copyright */
.footer-copyright {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-copyright p {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #ffffff;
  margin: 0;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .site-footer {
    padding: 30px;
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .footer-column {
    width: calc(50% - 20px);
  }

  .newsletter {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 20px;
  }

  .footer-top {
    flex-direction: column;
    height: auto;
    gap: 20px;
    align-items: flex-start;
  }

  .scroll-to-top {
    margin-left: auto;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
  }

  .footer-nav a {
    font-size: 22px;
  }

  .newsletter h3 {
    font-size: 32px;
  }

  .newsletter p {
    font-size: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    font-size: 36px;
  }

  .footer-logo-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .footer-divider {
    display: none;
  }

  .footer-social {
    gap: 16px;
  }

  .footer-column h3 {
    font-size: 28px;
  }

  .footer-nav a {
    font-size: 18px;
  }

  .newsletter h3 {
    font-size: 28px;
  }

  .newsletter p {
    font-size: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links a {
    font-size: 16px;
  }
}

/* Newsletter form states */
.form-message {
  display: none;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

.form-message.success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Loading spinner */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Disabled button state */
.newsletter-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-submit:disabled:hover {
  background: #ad2324;
}
