/*
 * OneSuite Footer
 * Port of onesuite.io's Footer.astro / FooterColumn.astro / FooterCommunity.astro
 * (Tailwind) to plain CSS. Scoped under .osh-footer so Kadence's global link,
 * list and address styles can't leak in. Uses --osh-font from the header CSS.
 */

.osh-footer {
  --osh-f-bg: #0e111a;
  --osh-f-text: #acb2c7;
  --osh-f-muted: #8a91a7;
  --osh-f-link: #ffffff;

  display: block;
  width: 100%;
  margin: 0;
  background: var(--osh-f-bg);
  color: var(--osh-f-text);
  font-family: var(--osh-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 15px;
  line-height: 22px;
  text-align: start;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Reset (scoped) ---------- */

.osh-footer *,
.osh-footer *::before,
.osh-footer *::after { box-sizing: border-box; }

.osh-footer ul,
.osh-footer li { margin: 0; padding: 0; list-style: none; }

.osh-footer ul::before,
.osh-footer li::before,
.osh-footer li::marker { content: none; }

.osh-footer p,
.osh-footer address { margin: 0; }

.osh-footer address { font-style: normal; }

.osh-footer img {
  display: block;
  max-width: none;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.osh-footer a {
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  background-image: none;
}

.osh-footer a:hover,
.osh-footer a:focus,
.osh-footer a:active { text-decoration: none; box-shadow: none; }

.osh-footer svg { display: block; flex-shrink: 0; }

.osh-footer a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */

/* Same width and gutters as onesuite.io's Container. */
.osh-footer .osh-f-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 48px 16px 24px;
}

@media (min-width: 768px) {
  .osh-footer .osh-f-inner { padding: 64px 32px 32px; }
}

@media (min-width: 1024px) {
  .osh-footer .osh-f-inner { padding-inline: 40px; }
}

@media (min-width: 1080px) {
  .osh-footer .osh-f-inner { padding-inline: 80px; }
}

.osh-footer .osh-f-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 1024px) {
  .osh-footer .osh-f-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
  }
  .osh-footer .osh-f-brand { grid-column: span 4 / span 4; }
  .osh-footer .osh-f-cols { grid-column: span 8 / span 8; }
}

/* ---------- Brand column ---------- */

.osh-footer .osh-f-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
}

.osh-footer .osh-f-logo { display: block; width: 148px; }
.osh-footer .osh-f-logo img { width: 100%; height: auto; }

/* body-large-medium */
.osh-footer .osh-f-text,
.osh-footer .osh-f-link {
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.03px;
}

.osh-footer .osh-f-tagline2 { margin-top: -12px; }

.osh-footer .osh-f-phone {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.osh-footer .osh-f-phone:hover { color: #ffffff; }

.osh-footer .osh-f-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.osh-footer .osh-f-ph,
.osh-footer .osh-f-gdpr { display: block; width: fit-content; }

.osh-footer .osh-f-ph img,
.osh-footer .osh-f-gdpr img {
  width: auto;
  height: 44px;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.osh-footer .osh-f-ph:hover img { transform: scale(1.05); }
.osh-footer .osh-f-gdpr:hover img { transform: scale(1.1); }

/* Community + Ask AI */
.osh-footer .osh-f-community {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.osh-footer .osh-f-join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
}

.osh-footer .osh-f-ask {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.osh-footer .osh-f-label {
  color: var(--osh-f-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.osh-footer .osh-f-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.osh-footer .osh-f-ask .osh-f-icons { margin-inline-start: -8px; }

/* Round icon buttons (community, Ask AI, social) */
.osh-footer .osh-f-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.osh-footer .osh-f-icon:hover { background: rgba(255, 255, 255, 0.1); }
.osh-footer .osh-f-icon img { width: 20px; height: 20px; }

.osh-footer .osh-f-icon--sm { width: 36px; height: 36px; }
.osh-footer .osh-f-icon--sm img { transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms; }
.osh-footer .osh-f-icon--sm:hover img { transform: scale(1.1); }
.osh-footer .osh-f-icon--facebook.osh-f-icon--sm img { opacity: 0.8; }
.osh-footer .osh-f-icon--facebook.osh-f-icon--sm:hover img { opacity: 1; }

.osh-footer .osh-f-icon--ai img { width: 24px; height: 24px; }

/* ---------- Link columns ---------- */

.osh-footer .osh-f-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
}

@media (min-width: 480px) {
  .osh-footer .osh-f-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* h6-medium */
.osh-footer .osh-f-col-title {
  display: block;
  margin-bottom: 15px;
  color: var(--osh-f-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.2px;
}

/* Each row is 24px tall (the site's 16px / 1.5 body line), 12px apart. */
.osh-footer .osh-f-col li { font-size: 16px; line-height: 24px; }
.osh-footer .osh-f-col li + li { margin-top: 12px; }

.osh-footer .osh-f-link {
  color: var(--osh-f-link);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.osh-footer .osh-f-link:hover,
.osh-footer a.osh-f-col-title:hover { color: var(--osh-f-text); }

/* ---------- Bottom bar ---------- */

.osh-footer .osh-f-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .osh-footer .osh-f-bottom { margin-top: 56px; }
}

@media (min-width: 1024px) {
  .osh-footer .osh-f-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.osh-footer .osh-f-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: -10px;
}

.osh-footer .osh-f-meta {
  display: flex;
  flex-direction: column;
  column-gap: 24px;
  row-gap: 12px;
}

@media (min-width: 768px) {
  .osh-footer .osh-f-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .osh-footer .osh-f-meta { justify-content: flex-end; }
}

.osh-footer .osh-f-legal {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 8px;
}

@media (min-width: 1024px) {
  .osh-footer .osh-f-legal { column-gap: 20px; }
}

/* caption-regular */
.osh-footer .osh-f-small {
  color: var(--osh-f-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.osh-footer a.osh-f-small:hover { color: #ffffff; }

/* ---------- Smaller screens (onesuite.io's type steps) ---------- */

@media (max-width: 767px) {
  .osh-footer .osh-f-text,
  .osh-footer .osh-f-link { font-size: 14px; line-height: 20px; }

  .osh-footer .osh-f-col-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.03px;
  }
}

@media (max-width: 640px) {
  .osh-footer .osh-f-text,
  .osh-footer .osh-f-link { font-size: 13px; line-height: 20px; }

  .osh-footer .osh-f-col-title { font-size: 15px; }
}
