/* =========================================================
   CIR Company Profile Template v2.0
   Scope: single GeoDirectory company profile only
   Goal: maximum trust, clear evidence hierarchy, standard footer kept
   ========================================================= */

/* Hide duplicated default title above the dossier */
body.single-gd_place main > h1,
body.single-gd_place .wp-block-post-title,
body.single-gd_place h1.entry-title {
  display: none !important;
}

/* Header compatibility: keep site header visible and predictable */
body.single-gd_place .wp-site-blocks > header,
body.single-gd_place header.wp-block-template-part,
body.single-gd_place .site-header,
body.single-gd_place .navbar,
body.single-gd_place .bs-navbar {
  position: relative !important;
  z-index: 20 !important;
  background: #070A0F !important;
  background-image: none !important;
  color: #E5E7EB !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
}

body.single-gd_place .wp-site-blocks > header a,
body.single-gd_place header a,
body.single-gd_place .site-header a {
  color: #E5E7EB !important;
}

/* Page shell */
.cir-single-shell {
  position: relative;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.12), transparent 31%),
    radial-gradient(circle at 94% 8%, rgba(16, 185, 129, 0.10), transparent 28%),
    linear-gradient(180deg, #070A0F 0%, #0B111C 42%, #070A0F 100%);
  color: #E5E7EB;
  padding: 34px 18px 82px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cir-single-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.026) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.45;
  pointer-events: none;
}

.cir-profile {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}

.cir-profile a {
  color: #22D3EE;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cir-profile a:hover {
  color: #67E8F9;
}

/* Trust alert */
.cir-trust-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(7, 10, 15, 0.72);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.cir-trust-strip strong {
  color: #F9FAFB;
}

.cir-trust-strip span {
  color: #A7B0BE;
  font-size: 14px;
  line-height: 1.55;
}

.cir-trust-strip-code {
  color: #22D3EE;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hero */
.cir-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(7, 10, 15, 0.99) 72%),
    #0B111C;
  border-radius: 30px;
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42), 0 0 58px rgba(34, 211, 238, 0.08);
}

.cir-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.14), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.10), transparent 30%);
  pointer-events: none;
}

.cir-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 30px;
  align-items: start;
}

.cir-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #22D3EE;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cir-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22D3EE;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.cir-title {
  margin: 0 0 16px;
  color: #F9FAFB;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.cir-hero-text {
  max-width: 780px;
  color: #B6C0CE;
  font-size: 17px;
  line-height: 1.72;
}

.cir-hero-text strong {
  color: #F9FAFB;
}

.cir-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cir-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(229, 231, 235, 0.14);
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
  color: #E5E7EB;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}

.cir-badge-cyan {
  border-color: rgba(34, 211, 238, 0.38);
  color: #67E8F9;
}

.cir-badge-amber {
  border-color: rgba(245, 158, 11, 0.42);
  color: #FBBF24;
}

.cir-badge-green {
  border-color: rgba(16, 185, 129, 0.38);
  color: #34D399;
}

.cir-badge-red {
  border-color: rgba(248, 113, 113, 0.38);
  color: #FCA5A5;
}

.cir-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cir-button,
.cir-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.cir-button {
  background: #22D3EE;
  color: #051018 !important;
  border: 1px solid #22D3EE;
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.18);
}

.cir-button:hover {
  transform: translateY(-1px);
  background: #67E8F9;
  border-color: #67E8F9;
}

.cir-button-secondary {
  border: 1px solid rgba(229, 231, 235, 0.22);
  color: #E5E7EB !important;
  background: rgba(7, 10, 15, 0.26);
}

.cir-button-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.46);
}

/* Hero decision panel */
.cir-decision-panel {
  border: 1px solid rgba(229, 231, 235, 0.13);
  background: rgba(7, 10, 15, 0.62);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(12px);
}

.cir-panel-label {
  color: #7C8798;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cir-panel-title {
  margin: 0 0 14px;
  color: #F9FAFB;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 850;
}

.cir-decision-box {
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

.cir-decision-box strong {
  display: block;
  color: #FBBF24;
  font-size: 14px;
  margin-bottom: 6px;
}

.cir-decision-box span {
  display: block;
  color: #B6C0CE;
  font-size: 13px;
  line-height: 1.55;
}

.cir-signal-list {
  display: grid;
  gap: 10px;
}

.cir-signal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.08);
  padding-bottom: 10px;
}

.cir-signal:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cir-signal span:first-child {
  color: #7C8798;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cir-signal span:last-child {
  color: #F3F4F6;
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

/* Layout */
.cir-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 376px;
  gap: 22px;
  align-items: start;
}

.cir-main,
.cir-side {
  display: grid;
  gap: 22px;
}

.cir-card {
  border: 1px solid rgba(229, 231, 235, 0.12);
  background: rgba(15, 23, 42, 0.94);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.cir-card-soft {
  background: rgba(15, 23, 42, 0.68);
}

.cir-card h2 {
  margin: 0 0 16px;
  color: #F9FAFB;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.cir-card h3 {
  margin: 0 0 10px;
  color: #F9FAFB;
  font-size: 16px;
}

.cir-card p {
  color: #A7B0BE;
  line-height: 1.68;
  margin: 0 0 12px;
}

.cir-card p:last-child {
  margin-bottom: 0;
}

.cir-section-intro {
  max-width: 760px;
  color: #A7B0BE;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Data blocks */
.cir-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cir-meta-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cir-meta-list {
  display: grid;
  gap: 12px;
}

.cir-meta-item {
  border: 1px solid rgba(229, 231, 235, 0.09);
  background: rgba(7, 10, 15, 0.34);
  border-radius: 17px;
  padding: 15px;
}

.cir-meta-item-strong {
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.055);
}

.cir-side .cir-meta-item {
  border-left: 2px solid rgba(34, 211, 238, 0.24);
}

.cir-meta-label {
  display: block;
  color: #7C8798;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.cir-meta-value {
  color: #E5E7EB;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

/* Trust matrix */
.cir-trust-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cir-trust-cell {
  border: 1px solid rgba(229, 231, 235, 0.10);
  background: rgba(7, 10, 15, 0.30);
  border-radius: 18px;
  padding: 16px;
}

.cir-trust-cell-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  margin-bottom: 12px;
}

.cir-trust-cell strong {
  display: block;
  color: #F9FAFB;
  font-size: 15px;
  margin-bottom: 8px;
}

.cir-trust-cell span {
  display: block;
  color: #9CA3AF;
  font-size: 13px;
  line-height: 1.55;
}

/* Step timeline */
.cir-timeline {
  display: grid;
  gap: 12px;
}

.cir-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cir-step-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #67E8F9;
  font-weight: 850;
}

.cir-step-body {
  border: 1px solid rgba(229, 231, 235, 0.09);
  background: rgba(7, 10, 15, 0.28);
  border-radius: 18px;
  padding: 15px;
}

.cir-step-body strong {
  display: block;
  color: #F9FAFB;
  margin-bottom: 6px;
}

.cir-step-body span {
  display: block;
  color: #A7B0BE;
  font-size: 14px;
  line-height: 1.6;
}

/* Special cards */
.cir-verdict {
  border-color: rgba(245, 158, 11, 0.30);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(15, 23, 42, 0.96) 48%),
    #111827;
}

.cir-evidence {
  border-color: rgba(16, 185, 129, 0.26);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.96) 46%),
    #111827;
}

.cir-ai {
  border-color: rgba(34, 211, 238, 0.26);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.085), rgba(15, 23, 42, 0.96) 46%),
    #111827;
}

.cir-cta {
  position: sticky;
  top: 18px;
  border-color: rgba(34, 211, 238, 0.34);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.98) 48%),
    #111827;
}

.cir-warning {
  border-color: rgba(248, 113, 113, 0.25);
  background:
    linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(15, 23, 42, 0.96) 46%),
    #111827;
}

.cir-note {
  color: #7C8798;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 14px;
}

/* Reviews */
.cir-review-panel {
  display: grid;
  gap: 12px;
  border: 1px dashed rgba(229, 231, 235, 0.20);
  border-radius: 20px;
  padding: 18px;
  background: rgba(7, 10, 15, 0.28);
}

.cir-review-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FAQ */
.cir-faq {
  display: grid;
  gap: 12px;
}

.cir-faq-item {
  border: 1px solid rgba(229, 231, 235, 0.10);
  border-radius: 17px;
  padding: 16px;
  background: rgba(7, 10, 15, 0.26);
}

/* Footer must remain controlled by the theme */
body.single-gd_place footer,
body.single-gd_place .site-footer,
body.single-gd_place footer.wp-block-template-part,
body.single-gd_place .wp-block-template-part:has(footer) {
  display: block;
  visibility: visible;
}

/* Hide default GeoDirectory/comment review form if it appears below dossier */
body.single-gd_place #comments,
body.single-gd_place .comments-area,
body.single-gd_place #respond,
body.single-gd_place .comment-respond,
body.single-gd_place #commentform,
body.single-gd_place .geodir-comments-area,
body.single-gd_place .geodir-review-form,
body.single-gd_place .geodir-review-form-wrap,
body.single-gd_place .gd-rating-wrap,
body.single-gd_place .gd-review-form,
body.single-gd_place .gd-comments-area {
  display: none !important;
}

/* Mobile */
@media (max-width: 1080px) {
  .cir-hero-inner,
  .cir-layout {
    grid-template-columns: 1fr;
  }

  .cir-cta {
    position: static;
  }

  .cir-trust-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .cir-trust-strip {
    grid-template-columns: 1fr;
  }

  .cir-meta-grid,
  .cir-meta-grid-2,
  .cir-trust-matrix {
    grid-template-columns: 1fr;
  }

  .cir-hero {
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .cir-single-shell {
    padding: 22px 12px 56px;
  }

  .cir-hero,
  .cir-card {
    border-radius: 20px;
    padding: 20px;
  }

  .cir-title {
    font-size: 34px;
  }

  .cir-button,
  .cir-button-secondary {
    width: 100%;
    }
}

/* TEMP FIX: force CIR footer visible on company profile */
body.single-gd_place .cir-site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    width: 100% !important;
    min-height: 300px !important;
    background: #070A0F !important;
    color: #E5E7EB !important;
    padding: 64px 24px 32px !important;
    border-top: 1px solid rgba(34, 211, 238, 0.28) !important;
    clear: both !important;
}

body.single-gd_place .cir-site-footer * {
    display: revert;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit;
}

body.single-gd_place .cir-site-footer a {
    color: #22D3EE !important;
}

body.single-gd_place .cir-footer-inner {
    max-width: 1240px !important;
    margin: 0 auto !important;
}

body.single-gd_place .cir-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 24px !important;
}
