/* ===== Footer Mobile Responsive Fixes ===== */
.site-footer {
  overflow: hidden; /* prevent any overflow */
}
.contact-line {
  display: flex;
  align-items: flex-start;   /* keeps icon + first line aligned */
  gap: 0.6rem;
  margin: 0.4rem 0;
  line-height: 1.45;
}
.contact-icon {
  width: 0.9rem;             /* 14px – matches your previous w-3.5 */
  height: 0.9rem;
  flex-shrink: 0;             /* icon never shrinks */
  margin-top: 0.2em;         /* optical vertical alignment with text */
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 1rem;
}

/* ===== Newsletter Form (input + button same row) ===== */
.newsletter-form {
  display: flex;
  flex-wrap: nowrap;      /* keep input + button on one row always */
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}
.newsletter-form input[type="email"] {
  flex: 1 1 0%;           /* basis 0 so it actually shrinks to fit */
  min-width: 0;           /* critical – stops overflow */
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  color: #222;
}
.newsletter-form .btn {
  flex: 0 1 auto;          /* FIX: allow shrink instead of clipping */
  min-width: 0;            /* FIX: required for flex-shrink to actually work */
  white-space: nowrap;
  overflow: hidden;        /* FIX: clip cleanly if it still runs out of room */
  text-overflow: ellipsis; /* FIX: "Subscri…" instead of a hard cut */
  box-sizing: border-box;
  padding: 12px 20px;
}

/* Contact lines – wrap properly on mobile */
.site-footer .inline-flex {
  flex-wrap: wrap;
  word-break: break-word;
}

/* ===== Mobile Breakpoint ===== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem 1rem;
  }
  .footer-grid > div {
    text-align: left;
  }
  /* keep same row on mobile, just tighten sizing so it fits */
  .newsletter-form {
    flex-wrap: nowrap;
  }
  .newsletter-form input[type="email"] {
    padding: 10px 12px;
    font-size: 14px;
  }
  .newsletter-form .btn {
    padding: 10px 14px;
    font-size: 14px;
    max-width: 100%;      /* cap so it can't push the row past 100% */
  }
  .site-footer .inline-flex {
    display: flex;
    gap: 0.5rem;
  }
  /* hide the | separator on very small screens if needed */
  .site-footer span.opacity-50 {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    padding: 1.25rem 0.75rem;
  }
  /* on very small screens, shrink button text/padding further to avoid overflow */
  .newsletter-form input[type="email"] {
    padding: 10px 10px;
    font-size: 13px;
  }
  .newsletter-form .btn {
    padding: 10px 12px;
    font-size: 13px;
    max-width: 100%;        /* tighter cap for very small screens */
  }
}

/* extra breakpoint for smallest phones (iPhone SE, older Androids ~320–360px) */
@media (max-width: 360px) {
  .newsletter-form {
    gap: 0.35rem;
  }
  .newsletter-form input[type="email"] {
    padding: 8px 8px;
    font-size: 12px;
  }
  .newsletter-form .btn {
    padding: 8px 10px;
    font-size: 11px;
    max-width: 100%;
  }
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.whatsapp-float svg {
  flex-shrink: 0;
}
/* Mobile responsive for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 14px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  .whatsapp-float .whatsapp-text {
    display: none; /* icon only on mobile */
  }
}
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
    padding: 12px;
  }
}