/* Footer — matches Innovate Electronics reference layout */

.site-footer,
footer.site-footer {
  --footer-bg: #555555;
  --footer-top-bg: #4a4a4a;
  --footer-text: #f0f0f0;
  --footer-muted: #e0e0e0;
  --footer-heading: #ffffff;
  --footer-accent-red: #e32626;
  --footer-accent-red-hover: #c62828;
  --footer-brand-accent: #e32626;
  --footer-icon-phone: #e32626;
  --footer-icon-email: #e32626;
  --footer-divider: rgba(255, 255, 255, 0.22);
  --subscribe-blue: #e32626;
  --subscribe-blue-hover: #c62828;

  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: none;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Top bar: INNOVATE IN INDIA */
.footer-top {
  background: var(--footer-top-bg);
  border-bottom: 1px solid var(--footer-divider);
  padding: 14px 5%;
}

.footer-top h3 {
  margin: 0;
  color: var(--footer-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Five-column main area (brand + existing four columns) */
.footer-content {
  width: min(96%, 1400px);
  margin: 0 auto;
  padding: 36px 0 40px;
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  align-items: start;
}

/* Left brand column — colour accents from reference (red / white / muted gray) */
.footer-brand {
  --brand-accent-red: #e32626;
  --brand-accent-red-hover: #c62828;
  --brand-text: #ffffff;
  --brand-muted: #b3b3b3;
  max-width: 280px;
}

.footer-brand .footer-logo {
  width: 57px;
  height: 57px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
}

.footer-brand h3 {
  margin: 0 0 12px;
  color: var(--brand-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.footer-brand > p {
  margin: 0 0 22px;
  color: var(--brand-muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.footer-brand .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-brand .footer-socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-accent-red);
  color: var(--brand-accent-red);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-brand .footer-socials a:hover {
  background: var(--brand-accent-red);
  border-color: var(--brand-accent-red);
  color: var(--brand-text);
}

.footer-brand .footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-office h4,
.footer-links h4,
.footer-newsletter h4 {
  margin: 0 0 14px;
  padding: 0;
  color: var(--footer-accent-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-office h4::after,
.footer-links h4::after,
.footer-newsletter h4::after {
  display: none;
}

/* Office columns */
.footer-office .office-brand {
  margin: 0 0 10px;
  color: var(--footer-accent-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-office .office-address {
  margin: 0 0 12px;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

.footer-office .office-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--footer-accent-red);
  font-size: 13px;
  line-height: 1.45;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-office .footer-icon-phone {
  color: var(--footer-accent-red);
}

.footer-office .footer-icon-email {
  color: var(--footer-accent-red);
}

/* Quick links */
.footer-links .quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links .quick-links li {
  margin: 0 0 8px;
}

.footer-links .quick-links a {
  color: var(--footer-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links .quick-links a:hover {
  color: var(--footer-accent-red);
}

/* Newsletter */
.footer-newsletter .newsletter-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  border-radius: 4px;
  overflow: hidden;
}

.footer-newsletter .newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #ffffff;
  color: #333333;
  font-size: 13px;
  outline: none;
}

.footer-newsletter .newsletter-form input[type="email"]::placeholder {
  color: #888888;
}

.footer-newsletter .newsletter-form button[type="submit"] {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 0 4px 4px 0;
  background: var(--footer-accent-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.footer-newsletter .newsletter-form button[type="submit"]:hover {
  background: var(--footer-accent-red-hover);
}

.footer-newsletter .newsletter-note {
  margin: 0;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.5;
}

.custom-alert {
  display: none;
  max-width: 100%;
  padding: 10px 12px;
  margin-top: 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  text-align: left;
}

.custom-alert.success {
  background-color: #2e7d32;
}

.custom-alert.error {
  background-color: #c62828;
}

@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .footer-brand {
    max-width: none;
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    padding: 12px 4%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    padding: 28px 4% 32px;
    gap: 28px;
  }
}

/* Port 5000 — same reference design (screenshot) */
.port-5000 .site-footer,
.port-5000 footer.site-footer {
  --footer-bg: #555555;
  --footer-top-bg: #4a4a4a;
  --footer-text: #f0f0f0;
  --footer-muted: #e0e0e0;
  --footer-heading: #ffffff;
  --footer-accent-red: #e32626;
  --footer-accent-red-hover: #c62828;
  --footer-brand-accent: #e32626;
  --footer-icon-phone: #e32626;
  --footer-icon-email: #e32626;
  --footer-divider: rgba(255, 255, 255, 0.22);
  --subscribe-blue: #e32626;
  --subscribe-blue-hover: #c62828;
}
