/* Shared header + footer for all public pages. Selectors are strict and use !important
   on box properties because pages carry legacy global `nav {}` / `footer {}` rules. */

.icw-top,
.icw-site-footer {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-align: left !important;
  box-sizing: border-box;
}

.icw-top *,
.icw-site-footer * {
  box-sizing: border-box;
  font-family: inherit !important;
}

/* Header */
.icw-top {
  position: relative !important;
  z-index: 50;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.icw-top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.icw-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a !important;
  text-decoration: none !important;
}

.icw-top-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.icw-top-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icw-top-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569 !important;
  text-decoration: none !important;
}

.icw-top-links a:hover {
  color: #0f766e !important;
}

.icw-top-links a.icw-top-cta {
  color: #fff !important;
  background: #0f766e;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
}

.icw-top-links a.icw-top-cta:hover {
  background: #115e59;
  color: #fff !important;
}

/* Footer */
.icw-site-footer {
  display: block !important;
  position: relative !important;
  z-index: 1;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 1.35rem 0 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #f0fdfa 100%) !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

.icw-site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.icw-site-footer-inner > p {
  margin: 0 !important;
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8 !important;
  line-height: 1.45;
}

.icw-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin: 0 !important;
}

.icw-site-footer-links a {
  margin: 0 !important;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.icw-site-footer-links a:hover {
  color: #0f766e !important;
}

.icw-site-footer-links a.is-quiet {
  font-weight: 500;
  color: #94a3b8 !important;
}

@media (max-width: 560px) {
  .icw-site-footer {
    padding-left: env(safe-area-inset-left) !important;
    padding-right: env(safe-area-inset-right) !important;
  }

  .icw-site-footer-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
