/* 📱 Responsive styling for phone screens */
@media (min-width: 321px) and (max-width: 540px) {

  .footer {
    padding: 40px 8% 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr; /* Single column */
    gap: 35px; /* More breathing space */
    justify-items: center; /* Center all child blocks */
  }

  /* Logo block */
  .footer-logo img {
    max-width: 65px;
    margin: 0 auto 10px;
    display: block;
  }

  .footer-logo h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .footer-logo p {
    font-size: 0.9rem;
    margin: 0;
  }

  /* Social / company / help headings */
  .footer-links h4,
  .footer-company h4,
  .footer-help h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Social links & company links */
  .footer-links p,
  .footer-company ul li,
  .footer-help p {
    font-size: 0.9rem;
    margin: 6px 0;
    text-align: center;
  }

  .footer-company ul {
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }

  .footer-company ul li {
    margin: 6px 0;
  }

  .footer-company ul li a {
    display: inline-block;
    padding: 4px 0;
  }

  /* Newsletter layout */
  .newsletter {
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 12px;
  }

  .newsletter input {
    width: 100%;
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 10px;
    text-align: center;
  }

  .newsletter button {
    width: 100%;
    border-radius: 20px;
    padding: 12px;
  }

  /* Bottom bar */
  .footer-bottom {
    margin-top: 25px;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
  }

  .footer-bottom p {
    margin: 5px 0;
  }
}

/* 📱 Responsive styling for iPad or tablet screens */
@media (min-width: 550px) and (max-width: 1025px) {

  .footer {
    padding: 50px 8% 25px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 4 */
    gap: 40px 50px; /* row gap + column gap */
    justify-items: center; /* center each section */
    text-align: center; /* cleaner look on tablets */
  }

  /* Logo */
  .footer-logo img {
    max-width: 80px;
    margin: 0 auto 12px;
    display: block;
  }

  .footer-logo h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .footer-logo p {
    font-size: 1rem;
    margin: 0;
  }

  /* Headings */
  .footer-links h4,
  .footer-company h4,
  .footer-help h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }

  /* Text + links */
  .footer-links p,
  .footer-company ul li,
  .footer-help p {
    font-size: 0.95rem;
    margin: 6px 0;
  }

  .footer-company ul {
    padding: 0;
    margin: 0;
  }

  .footer-company ul li {
    margin: 8px 0;
  }

  .footer-company ul li a {
    display: inline-block;
    padding: 3px 0;
  }

  /* Newsletter */
  .newsletter {
    flex-direction: row; /* keep side by side on tablets */
    width: 100%;
    max-width: 400px;
    margin: 15px auto 0;
  }

  .newsletter input {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
  }

  .newsletter button {
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  /* Bottom bar */
  .footer-bottom {
    margin-top: 35px;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.6;
  }

  .footer-bottom p {
    margin: 6px 0;
  }
}
