/* ==========================================================================
   Footer - Responsive Optimizations for Mobile & Tablet
   ========================================================================== */

/**
 * Orlando's Professional Footer Approach:
 * - Desktop: Side-by-side newsletter layout
 * - Tablet: Stack newsletter form below text, center everything
 * - Mobile: Full vertical stack, centered content
 */

/* Tablet: 1024px and below - Start stacking and centering */
@media (max-width: 1024px) {
  /* Force footer and container centering with CSS Grid */
  .footer {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
  }
  
  .footer .container {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    max-width: 650px !important;
    padding-left: var(--space-lg, 1.5rem) !important;
    padding-right: var(--space-lg, 1.5rem) !important;
    box-sizing: border-box !important;
  }
  
  .footer__content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    gap: var(--space-xl, 2.5rem) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .footer__section {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .footer__section--about {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .footer__section--about * {
    text-align: center !important;
  }
  
  .footer__logo {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: var(--space-md, 1rem) !important;
    max-width: 180px !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(0) !important;
  }
  
  .footer__tagline {
    width: 100% !important;
    max-width: 650px !important;
    text-align: center !important;
    line-height: 1.6 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: var(--space-sm, 0.75rem) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateX(0) !important;
  }
  
  .footer__address {
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  
  .footer__address-link {
    display: block !important;
    text-align: center !important;
  }
  
  .footer__address-link p {
    text-align: center !important;
    margin: 0 auto !important;
  }
  
  .footer__contact-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: var(--space-md, 1rem) !important;
  }
  
  .footer__contact-icons {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: var(--space-sm, 0.75rem) !important;
  }
  
  .footer__heading-small {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  .footer__social {
    justify-content: center !important;
    gap: var(--space-md, 1rem) !important;
  }
  
  .footer__social-link {
    font-size: 1.5rem !important;
  }
  
  .footer__contact {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-sm, 0.75rem) !important;
    align-items: center !important;
  }
  
  /* Newsletter section - better proportions for tablet */
  .footer__newsletter {
    margin-top: var(--space-xl, 2rem) !important;
    padding: var(--space-xl, 2rem) var(--space-lg, 1.5rem) !important;
  }
  
  .footer__newsletter-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--space-xl, 2rem) !important;
    text-align: center !important;
  }
  
  .footer__newsletter-text {
    width: 100% !important;
    max-width: 600px !important;
    text-align: center !important;
  }
  
  .footer__newsletter-title {
    margin-bottom: var(--space-sm, 0.75rem) !important;
    font-size: 2rem !important;
  }
  
  .footer__newsletter-description {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
  }
  
  /* STACK newsletter form vertically on tablet and below */
  .footer__newsletter-form {
    width: 100% !important;
    max-width: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-sm, 0.75rem) !important;
    align-items: stretch !important;
  }
  
  .footer__newsletter-input {
    width: 100% !important;
    min-width: 0 !important;
    padding: var(--space-sm, 0.75rem) var(--space-md, 1rem) !important;
  }
  
  .footer__newsletter-form .button {
    width: 100% !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: var(--space-sm, 0.75rem) var(--space-lg, 1.5rem) !important;
  }
  
  .footer__copyright {
    margin-top: var(--space-xl, 2rem) !important;
    text-align: center !important;
  }
}

/* Mobile: 768px and below - Full vertical stack */
@media (max-width: 768px) {
  .footer__content {
    gap: var(--space-xl, 2rem) !important;
    padding: var(--space-lg, 1.5rem) 0 !important;
  }
  
  .footer__section {
    padding: 0 var(--space-md, 1rem) !important;
  }
  
  /* Newsletter form - stack inputs vertically on mobile */
  .footer__newsletter-form {
    flex-direction: column !important;
    gap: var(--space-sm, 0.75rem) !important;
  }
  
  .footer__newsletter-input {
    width: 100% !important;
  }
  
  .footer__newsletter-form .button {
    width: 100% !important;
  }
  
  /* Ensure contact section doesn't overflow */
  .footer__contact {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-sm, 0.75rem) !important;
    align-items: center !important;
  }
  
  .footer__email {
    word-break: break-word !important;
  }
}

/* Extra small mobile: 480px and below */
@media (max-width: 480px) {
  .footer__content {
    gap: var(--space-lg, 1.5rem) !important;
  }
  
  .footer__newsletter-title {
    font-size: 1.5rem !important;
  }
  
  .footer__newsletter-description {
    font-size: 0.95rem !important;
  }
  
  .footer__tagline {
    font-size: 0.9rem !important;
  }
  
  /* Make sure icons don't overflow */
  .footer__contact-icons {
    gap: var(--space-xs, 0.5rem) !important;
  }
  
  .footer__contact-icon {
    font-size: 1rem !important;
  }
}

