/* ------------------------------
   GLOBAL RESET & BASE
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fb;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ------------------------------
   HEADER & FOOTER
--------------------------------*/
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e5eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003366;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #003366;
}

.site-footer {
  background: #f8f9fb;
  color: #555;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid #e0e5eb;
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
}

/* ------------------------------
   HERO & SNAPSHOT
--------------------------------*/

/* FIXED: Scoped only to homepage */
.iq-homepage .iq-hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #003366 0%, #004d99 100%);
  color: white;
  margin-bottom: 40px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.iq-company-page .iq-hero {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #003366, #004d99);
  color: white;
  margin-bottom: 40px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.iq-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.iq-hero-tagline {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.95;
}

.iq-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  opacity: 0.95;
}

.iq-snapshot-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.iq-snapshot-item {
  background: rgba(255,255,255,0.15);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  color: white;
}

.iq-snapshot-item .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.iq-snapshot-item .value {
  font-size: 1.4rem;
  font-weight: 700;
}

/* ------------------------------
   STICKY NAV
--------------------------------*/
.iq-sticky-nav {
  position: sticky;
  top: 70px;
  z-index: 900;
  background: #ffffff;
  border-bottom: 1px solid #e0e5eb;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
}

.iq-sticky-nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ------------------------------
   SECTION WRAPPER
--------------------------------*/
.iq-section {
  margin-bottom: 40px;
}

/* ------------------------------
   CARD SYSTEM
--------------------------------*/
.iq-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: left;
}

.iq-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.iq-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.iq-card-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ------------------------------
   GRID SYSTEM
--------------------------------*/
.iq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-items: start;
  align-items: start;
}

.iq-grid > * {
  text-align: left;
}
/* ------------------------------
   META BLOCKS
--------------------------------*/
.iq-meta-block {
  display: flex;
  flex-direction: column;
}

.iq-meta-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.iq-meta-value {
  font-size: 1rem;
  color: #333;
  line-height: 1.45;
}

/* ------------------------------
   STATUS BADGES
--------------------------------*/
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.active {
  background: #d5f5e3;
  color: #1e8c4a;
}

.status-badge.dissolved {
  background: #e0e0e0;
  color: #555;
}

.status-badge.liquidation {
  background: #fdecea;
  color: #c0392b;
}

.status-badge.incorporated {
  background: #e8f4fd;
  color: #2980b9;
}

.status-badge.unknown {
  background: #f2f2f2;
  color: #777;
}

/* ------------------------------
   OFFICERS
--------------------------------*/
.iq-officer-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.iq-officer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.iq-officer-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.iq-officer-meta {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

.iq-officer-meta div {
  margin-bottom: 4px;
}

/* ------------------------------
   PSC
--------------------------------*/
.iq-psc-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.iq-psc-item:last-child {
  border-bottom: none;
}

.iq-psc-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.iq-psc-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 4px;
}

.iq-psc-date {
  font-size: 0.85rem;
  color: #777;
}

/* ------------------------------
   FINANCIALS
--------------------------------*/
.iq-summary {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.55;
}

.iq-grid .iq-card {
  padding: 18px;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.iq-meta-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.iq-meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

/* ------------------------------
   FILINGS
--------------------------------*/
.iq-filing-card {
  background: #fafafa;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.iq-filing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.iq-filing-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.iq-filing-meta {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

.iq-filing-meta div {
  margin-bottom: 4px;
}

/* ------------------------------
   CHARGES
--------------------------------*/
.iq-charge-card {
  background: #fafafa;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.iq-charge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.iq-charge-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.iq-charge-status {
  margin-bottom: 10px;
}

.iq-charge-meta {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
}

.iq-charge-meta div {
  margin-bottom: 4px;
}

/* ------------------------------
   TIMELINE
--------------------------------*/
.iq-timeline-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.iq-timeline-item:last-child {
  border-bottom: none;
}

.iq-timeline-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.iq-timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2980b9;
  min-width: 110px;
}

.iq-timeline-content {
  flex: 1;
}

.iq-timeline-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.45;
}

/* ------------------------------
   GAZETTE
--------------------------------*/
.iq-gazette-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.iq-gazette-item:last-child {
  border-bottom: none;
}

.iq-gazette-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2980b9;
  margin-bottom: 6px;
}

.iq-gazette-badge {
  margin-bottom: 8px;
}

.iq-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.iq-badge-red {
  background: #fdecea;
  color: #c0392b;
}

.iq-badge-green {
  background: #d5f5e3;
  color: #1e8c4a;
}

.iq-badge-blue {
  background: #e8f4fd;
  color: #2980b9;
}

.iq-badge-purple {
  background: #f3e8fd;
  color: #8e44ad;
}

.iq-badge-orange {
  background: #fff4e5;
  color: #d35400;
}

.iq-badge-grey {
  background: #f2f2f2;
  color: #777;
}

.iq-gazette-desc {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.45;
  margin-bottom: 8px;
}

.iq-doc-link {
  font-size: 0.9rem;
  color: #2980b9;
  text-decoration: none;
  font-weight: 600;
}

.iq-doc-link:hover {
  text-decoration: underline;
}
/* ------------------------------
   COLLAPSIBLE LIST
--------------------------------*/
.iq-collapsible {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.iq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iq-expand-btn {
  background: #f5f7fa;
  border: 1px solid #dcdfe3;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease;
  align-self: flex-start;
}

.iq-expand-btn:hover {
  background: #eef1f5;
  border-color: #c5c9ce;
  transform: translateY(-2px);
}

.iq-list li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.iq-list li.collapsing {
  opacity: 0;
  transform: translateY(-5px);
}

.iq-overdue {
  color: #c0392b;
  font-weight: 700;
  margin-left: 6px;
}

.iq-risk-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.iq-risk-low {
  background: #e8f5e9;
  color: #1e8c4a;
}

.iq-risk-medium {
  background: #fff4e5;
  color: #d35400;
}

.iq-risk-high {
  background: #fdecea;
  color: #c0392b;
}

.iq-health-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Strong */
.iq-health-strong {
  background: #d5f5e3;
  color: #1e8c4a;
}

/* Stable */
.iq-health-stable {
  background: #e8f4fd;
  color: #2980b9;
}

/* Weak */
.iq-health-weak {
  background: #fff4e5;
  color: #d35400;
}

/* High Risk */
.iq-health-highrisk {
  background: #fdecea;
  color: #c0392b;
}

.iq-trend-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Growing */
.iq-trend-up {
  background: #d5f5e3;
  color: #1e8c4a;
}

/* Shrinking */
.iq-trend-down {
  background: #fdecea;
  color: #c0392b;
}

/* Stable */
.iq-trend-stable {
  background: #e8f4fd;
  color: #2980b9;
}

/* Graph card */
.iq-graph-card {
  padding: 18px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.iq-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #d0d7e0;
  border-radius: 8px;
  background: white;
  transition: all 0.15s ease;
  box-shadow: none;
}

.iq-search-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
}

.iq-search-shell {
  gap: 16px;
}

.iq-autocomplete {
  top: calc(100% + 0.35rem);
}

.iq-about-page .iq-hero,
.iq-pricing-page .iq-hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #003366 0%, #004d99 100%);
  color: white;
  margin-bottom: 40px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
/* ------------------------------
   PRICING PAGE
--------------------------------*/

.iq-pricing-page .iq-hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #003366 0%, #004d99 100%);
  color: white;
  margin-bottom: 40px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Centered container */
.iq-pricing-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Centered 3-column grid */
.iq-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

/* Pricing card base */
.iq-pricing-card {
  padding: 2.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e0e5eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle hover lift */
.iq-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* Featured (Pro) plan */
.iq-pricing-featured {
  border: 2px solid #2563eb;
  box-shadow: 0 6px 20px rgba(37,99,235,0.18);
}

/* "Most Popular" ribbon */
.iq-popular-ribbon {
  position: absolute;
  top: -12px;
  right: 16px;
  background: #2563eb;
  color: white;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Titles */
.iq-plan-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #222;
}

.iq-plan-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Price */
.iq-plan-price {
  margin: 1.5rem 0;
}

.iq-price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
}

.iq-price-period {
  font-size: 1rem;
  color: #6b7280;
  margin-left: 4px;
}

/* Feature list */
.iq-feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
}

.iq-feature-list li {
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 0.95rem;
}

/* Buttons (upgraded) */
.iq-btn {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 1.5rem;
}

/* Primary */
.iq-btn-primary {
  background: #003366;
  color: #fff;
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.iq-btn-primary:hover {
  background: #004d99;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.18);
}

/* Outline */
.iq-btn-outline {
  background: transparent;
  border: 2px solid #003366;
  color: #003366;
}

.iq-btn-outline:hover {
  background: rgba(0,51,102,0.06);
  border-color: #004d99;
  color: #004d99;
  transform: translateY(-2px);
}
/* ------------------------------
   ABOUT PAGE — OPEN LAYOUT
--------------------------------*/

.iq-about-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.iq-about-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
}

.iq-about-text {
  font-size: 1rem;
  color: #444;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.iq-divider {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-bottom: 1px solid #e0e5eb;
}

/* Values (open layout) */
.iq-values-open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 1.5rem;
}

.iq-values-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}
/* ------------------------------
   SEARCH RESULTS LINK FIX
--------------------------------*/

.iq-search-result a {
  color: #003366;          /* corporate deep blue */
  font-weight: 600;        /* strong, readable */
  text-decoration: none;   /* remove default underline */
}

.iq-search-result a:hover {
  color: #004d99;          /* subtle hover shift */
  text-decoration: underline;
}

.iq-search-result a:visited {
  color: #003366;          /* prevent ugly purple visited links */
}
.iq-search a {
  color: #003366;
  font-weight: 600;
  text-decoration: none;
}

.iq-search a:hover {
  color: #004d99;
  text-decoration: underline;
}

.iq-search a:visited {
  color: #003366;
}
/* Make search result cards look like premium links */
.iq-search-card {
  color: #003366;            /* corporate deep blue */
  text-decoration: none;     /* remove underline */
}

.iq-search-card:hover {
  color: #004d99;            /* subtle hover shift */
  text-decoration: none;
}

.iq-search-card:visited {
  color: #003366;            /* override purple visited colour */
}
.iq-search-name {
  color: #003366;
  font-weight: 600;
}

.iq-search-card:hover .iq-search-name {
  color: #004d99;
}

