/*
Theme Name: SIA Financial Technology
Theme URI: https://siafintech.com/
Author: nonfiction studios
Description: Custom theme for the siafintech.com
Version: 0.1.0
Text Domain: sia-fintech
*/

:root {
  --sia-bg: #eef2fb;
  --sia-text: #243047;
  --sia-muted: #647087;
  --sia-accent: #1996cf;
  --sia-accent-2: #2ed161;
  --sia-dark: #2e3440;
  --sia-border: #d7deea;
  --sia-surface: #ffffff;
  --sia-soft-blue: #dce6f8;
  --sia-orange: #f9aa4b;
}

/* Base document styles */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--sia-bg);
  color: var(--sia-text);
  line-height: 1.45;
}
a {
  color: var(--sia-accent);
}
.site-shell {
  max-width: 1780px;
  margin: 0 auto;
  padding: 22px 26px 56px;
}

/* Top-level page shell / brand area */
.sia-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 54px 18px;
  background: #edf1fd;
  margin-bottom: 18px;
  min-height: 168px;
}
.sia-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sia-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 14px);
  gap: 6px;
  width: fit-content;
}
.sia-logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4f5b6b;
}
.sia-logo-dot.is-accent {
  background: #2bc360;
}
.sia-brand-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sia-wealth-button,
.site-cta,
.marketplace-follow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border-radius: 16px;
  background: #1b9bd2;
  border: 4px solid #31cf60;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

/* Marketplace title bar */
.marketplace-shell__header {
  display: block;
  margin-bottom: 20px;
  background: #fff;
  border-left: 1px solid #eaedf4;
  border-right: 1px solid #eaedf4;
}
.marketplace-shell__title-wrap {
  padding-top: 4px;
}
.marketplace-shell__title {
  margin: 0;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #414141;
  text-transform: uppercase;
}
.marketplace-shell__title-rule {
  margin-top: 10px;
  height: 16px;
  background: #2c313d;
  position: relative;
}
.marketplace-shell__title-rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: 230px;
  width: 155px;
  height: 100%;
  border-top: 4px solid var(--sia-orange);
}

/* Product tiles row */
.product-marquee {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}
.product-tile {
  position: relative;
  min-height: 326px;
  padding: 14px;
  border-radius: 6px;
  background: #1398dc;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.product-tile__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.product-tile.is-featured {
  outline: 6px solid #06a44f;
  outline-offset: -6px;
}
.product-tile__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 127, 170, 0.25), rgba(0, 0, 0, 0.15)),
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.28),
      transparent 38%
    ),
    linear-gradient(140deg, #3d9cc3 0%, #54c4d4 38%, #1e5f7a 100%);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}
.product-tile__content {
  position: relative;
  z-index: 1;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}
.product-tile__content h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
}
.product-tile__content p {
  margin: 0;
  padding: 10px 12px;
  background: rgba(7, 121, 185, 0.72);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-tile__logo-text {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
}

/* Marketplace intro/CTA bar */
.marketplace-message-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #dfe5ef;
}
.marketplace-message-bar strong {
  display: block;
  font-size: 27px;
  margin-bottom: 6px;
}
.marketplace-message-bar p,
.site-note,
.site-footer {
  margin: 0;
  color: var(--sia-muted);
  font-size: 18px;
}
.site-cta--inline,
.marketplace-follow-cta {
  padding: 12px 20px;
  font-size: 16px;
  white-space: nowrap;
  border-width: 3px;
}
.marketplace-message-bar h1,
.marketplace-message-bar h2,
.marketplace-message-bar h3,
.marketplace-message-bar h4,
.marketplace-message-bar h5,
.marketplace-message-bar h6 {
  margin: 0 0 6px;
  font-size: 27px;
  color: var(--sia-text);
}
.marketplace-message-bar .wp-block-group,
.marketplace-message-bar .wp-block-group__inner-container,
.marketplace-message-bar .wp-block-buttons {
  margin: 0;
}
.marketplace-message-bar > .wp-block-group__inner-container,
.marketplace-message-bar > .wp-block-group > .wp-block-group__inner-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.marketplace-message-bar
  > .wp-block-group__inner-container
  > :first-child,
.marketplace-message-bar
  > .wp-block-group
  > .wp-block-group__inner-container
  > :first-child {
  flex: 1 1 auto;
}
.marketplace-message-bar
  > .wp-block-group__inner-container
  > :last-child,
.marketplace-message-bar
  > .wp-block-group
  > .wp-block-group__inner-container
  > :last-child {
  margin-left: auto;
}
.marketplace-message-bar .wp-block-buttons {
  display: flex;
  justify-content: flex-end;
}
.marketplace-message-bar .site-cta--inline.wp-block-button {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.marketplace-message-bar .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 16px;
  background: #1b9bd2;
  border: 3px solid #31cf60;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

/* Marketplace app shell and category tabs */
.marketplace-app {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.marketplace-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 12px solid #2c313d;
  background: #2c313d;
}
.marketplace-category-tab {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #2c313d;
  color: #fff;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.marketplace-category-tab.is-active,
.marketplace-category-tab:hover,
.marketplace-category-tab:focus {
  background: #f39e35;
  color: #fff;
}

/* Marketplace left rail and results layout */
.marketplace-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}
.marketplace-panel,
.marketplace-results,
.site-footer,
.disclaimer--sia {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #dfe5ef;
  border-radius: 0;
  padding: 0;
}
.marketplace-app__rail {
  overflow: hidden;
  background: #e9edf5;
}
.marketplace-group-section {
  margin: 0;
  border-bottom: 10px solid #edf1f7;
}
.marketplace-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  background: #84a8d6;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.marketplace-group-toggle__icon {
  font-size: 24px;
  line-height: 1;
}
.marketplace-group-section.is-expanded .marketplace-group-toggle__icon {
  content: '−';
}
.marketplace-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f3f5f9;
}
.marketplace-group-section.is-expanded .marketplace-group-toggle__icon {
  transform: rotate(45deg);
}
.marketplace-group-list li {
  padding: 0 10px 10px;
  margin-top: 10px;
}
.marketplace-group-link {
  width: 100%;
  display: block;
  padding: 12px 16px;
  border: 2px solid #e4e7ee;
  background: #fff;
  text-align: left;
  color: #4e5561;
  font-size: 18px;
  font-weight: 700;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
}
.marketplace-group-link.is-active,
.marketplace-group-link:hover,
.marketplace-group-link:focus {
  background: #f9aa4b;
  border-color: #ef9f3c;
  color: #2f3742;
}

/* Models table, detail region, and degraded-state messaging */
.marketplace-results {
  padding: 18px 18px 22px;
  background: rgba(232, 237, 245, 0.74);
  min-width: 0;
}
.marketplace-results__intro,
.marketplace-detail-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.marketplace-results__intro h3,
.marketplace-detail-panel h4 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1;
}
.js-sia-marketplace-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #d63638;
  color: #8a2424;
  background: #fff5f5;
  font-size: 16px;
}

.marketplace-models-table-wrap,
.marketplace-data-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe5ef;
}
.marketplace-models-table,
.marketplace-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.marketplace-models-table th,
.marketplace-models-table td,
.marketplace-data-table th,
.marketplace-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e6ee;
  text-align: left;
  font-size: 14px;
}
.marketplace-models-table th,
.marketplace-data-table th {
  background: #343a44;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.marketplace-models-table tbody tr {
  background: #fff;
  cursor: pointer;
}
.marketplace-models-table tbody tr:nth-child(odd) {
  background: #fafbfd;
}
.marketplace-models-table tbody tr.is-selected {
  background: #fff1da;
}
.marketplace-subscribe-pill {
  display: inline-block;
  padding: 4px 10px;
  background: #f9aa4b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}

.marketplace-detail-panel {
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dfe5ef;
  min-width: 0;
}
.marketplace-description-card {
  padding: 16px;
  border-left: 5px solid #4d9de0;
  background: #fff;
  margin-bottom: 18px;
  max-width: 100%;
  overflow-wrap: break-word;
}
.marketplace-placeholder {
  padding: 16px;
  border: 1px dashed #cdd5e2;
  background: #f8fbff;
  color: var(--sia-muted);
  font-size: 16px;
}

/* Contact modal used by marketplace CTAs */
.marketplace-modal[hidden] {
  display: none;
}
.has-marketplace-modal-open {
  overflow: hidden;
}
.marketplace-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.marketplace-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 29, 43, 0.55);
}
.marketplace-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1380px, 96vw);
  min-height: 760px;
  background: #fff;
  border: 8px solid #0cab47;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  padding: 26px 34px 40px;
  overflow: hidden;
}
.marketplace-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 38px;
  color: #5d6a7b;
  cursor: pointer;
}
.marketplace-modal__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
}
.marketplace-modal__brand {
  font-size: 40px;
  font-weight: 700;
  color: #2b6fae;
  letter-spacing: 0.02em;
}
.marketplace-modal__contact-link,
.marketplace-modal__primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 12px;
  background: #1b9bd2;
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}
.marketplace-modal__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 80px;
  color: #47709b;
  font-size: 24px;
}
.marketplace-modal__facts strong {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
  color: #6581a1;
  margin-bottom: 6px;
}
.marketplace-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
}
.marketplace-modal__title {
  margin: 0 0 18px;
  font-size: 74px;
  line-height: 1.06;
  color: #116aa8;
  letter-spacing: -0.03em;
}
.marketplace-modal__copy {
  max-width: 980px;
  margin: 0 0 16px;
  font-size: 28px;
  color: #5c6c82;
}
.marketplace-modal__subcopy {
  max-width: 980px;
  margin: 0 0 36px;
  font-size: 22px;
  color: #7a8798;
}

/* Footer/disclaimer treatment */
.disclaimer--sia {
  margin-top: 18px;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.45;
  background: #fff;
  border-left: 8px solid var(--sia-orange);
}
.site-footer {
  padding: 18px 20px;
  text-align: center;
  font-size: 15px;
  background: transparent;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
  .product-marquee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .marketplace-shell__title {
    font-size: 48px;
  }
  .marketplace-modal__title {
    font-size: 54px;
  }
  .marketplace-modal__facts {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
}
@media (max-width: 900px) {
  .site-shell {
    padding: 12px 12px 40px;
  }
  .sia-header,
  .marketplace-message-bar,
  .marketplace-results__intro,
  .marketplace-detail-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .marketplace-shell__header {
    grid-template-columns: 1fr;
  }
  .product-marquee {
    grid-template-columns: 1fr;
  }
  .marketplace-modal__dialog {
    min-height: auto;
    padding: 24px 18px 28px;
  }
  .marketplace-modal__topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .marketplace-modal__title {
    font-size: 38px;
  }
  .marketplace-modal__copy {
    font-size: 20px;
  }
  .marketplace-modal__subcopy {
    font-size: 18px;
  }
}
