/* ==========================================================================
   CompanyRegister – home page (loaded only by site/index, after theme.css)
   ========================================================================== */

/* ---------- Hero ---------- */

.cr-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--cr-navy-900);
    color: #fff;
    min-height: clamp(560px, 74vh, 740px);
    display: flex;
    align-items: center;
}

.cr-hero-visual,
.cr-hero-visual picture,
.cr-hero-photo,
.cr-hero-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cr-hero-visual {
    z-index: -2;
}

/* object-fit: cover centred == SVG preserveAspectRatio="xMidYMid slice" */
.cr-hero-photo {
    object-fit: cover;
    object-position: 50% 50%;
    filter: brightness(.6) saturate(.7) contrast(.95); /* tone the stock photo down */
}

.cr-hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 22, 41, .9) 0%, rgba(11, 22, 41, .8) 30%, rgba(11, 22, 41, .4) 47%, rgba(11, 22, 41, .05) 62%, rgba(11, 22, 41, .05) 72%, rgba(11, 22, 41, .5) 100%),
        linear-gradient(0deg, rgba(11, 22, 41, .6) 0%, rgba(11, 22, 41, 0) 30%);
}

.cr-hero-inner {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.cr-hero-content {
    max-width: 590px;
}

.cr-eyebrow-light {
    color: #93c5fd;
}

.cr-eyebrow-light::after {
    content: "";
    width: 48px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.cr-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
    margin-bottom: .875rem;
}

.cr-hero h1 span {
    display: block;
    color: #93c5fd;
    font-weight: 600;
    font-size: .62em;
    letter-spacing: -0.015em;
    margin-top: .35rem;
}

.cr-hero-lead {
    color: #cbd5e1;
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

/* map overlay */
.cr-hero-map {
    pointer-events: none;
}

.cr-hm-draw {
    stroke: #fff;
    stroke-opacity: .95;
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.cr-hm-pulse {
    fill: none;
    stroke: #bfdbfe;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: cr-pulse 2.8s ease-out 1.6s infinite;
}

.cr-hm-country {
    fill: rgba(59, 130, 246, .22);
    stroke: #fff;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.cr-hm-name {
    fill: #fff;
    font-family: var(--cr-font);
    font-weight: 700;
    letter-spacing: 6px;
}

.cr-hm-capital {
    fill: #e2e8f0;
    font-family: var(--cr-font);
    font-size: 19px;
    font-weight: 500;
}

.cr-hm-coords {
    fill: #93c5fd;
    font-family: var(--cr-font);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .cr-hm-marker { animation: cr-fade .6s ease-out .2s both; }
    .cr-hm-beam polygon { animation: cr-fade .8s ease-out .7s both; }
    .cr-hm-draw { animation: cr-draw .7s ease-out .6s both; }
    .cr-hm-lens { transform-box: fill-box; transform-origin: center; animation: cr-lens .7s cubic-bezier(.2, .8, .2, 1) .9s both; }
    .cr-hm-country { animation: cr-draw 1.6s ease-in-out 1.3s both; }
}

@media (prefers-reduced-motion: reduce) {
    .cr-hm-pulse { animation: none; }
}

@keyframes cr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cr-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cr-lens { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes cr-pulse {
    0% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.2); }
}

@media (max-width: 991.98px) {
    .cr-hero {
        min-height: 0;
    }

    .cr-hero-map {
        display: none;
    }

    .cr-hero-veil {
        background: linear-gradient(180deg, rgba(11, 22, 41, .82) 0%, rgba(11, 22, 41, .9) 100%);
    }

    .cr-hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .cr-hero-content {
        max-width: 640px;
        margin: 0 auto;
    }
}

/* ---------- Search card ---------- */

.cr-search-card {
    background: #fff;
    border: 3px solid #93c5fd;
    color: var(--cr-text);
    border-radius: var(--cr-radius-lg);
    padding: 1.25rem;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45);
}

.cr-search-input {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--cr-border-strong);
    border-radius: var(--cr-radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cr-search-input:focus-within {
    border-color: var(--cr-blue);
    box-shadow: var(--cr-focus);
}

.cr-search-input.is-invalid {
    border-color: var(--cr-red);
}

.cr-search-input .form-control {
    border: 0;
    box-shadow: none;
    max-width: none;
    padding-left: 3rem;
    min-height: 56px;
    font-size: 1.0625rem;
    background: transparent;
}

.cr-search-input .form-control:focus {
    box-shadow: none;
}

.cr-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cr-muted);
    pointer-events: none;
}

.cr-search-chars > .btn {
    height: 100%;
    font-size: .875rem;
    color: var(--cr-muted);
    border-radius: 0 var(--cr-radius-sm) var(--cr-radius-sm) 0;
    border-left: 1px solid var(--cr-border);
}

.cr-search-chars .dropdown-menu {
    width: 232px;
    padding: .5rem;
}

.cr-search-chars #spec_chars {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cr-search-chars #spec_chars > div:first-child {
    width: 100%;
}

.cr-search-chars .spec_chars {
    float: none;
    margin: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 6px;
    border-color: var(--cr-border);
    color: var(--cr-text);
}

.cr-search-chars .titleSpan {
    font-style: normal;
    color: var(--cr-muted);
    padding: 0 0 .25rem;
}

.cr-search-modes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    margin-top: .75rem;
}

.cr-search-modes-label {
    font-size: .8125rem;
    color: var(--cr-muted);
    margin-right: .125rem;
}

.cr-chip {
    border: 1px solid var(--cr-border);
    background: #fff;
    color: var(--cr-text-2);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1;
    padding: .45rem .75rem;
    border-radius: 999px;
    transition: all .15s ease;
}

.cr-chip:hover {
    border-color: var(--cr-border-strong);
    background: var(--cr-bg);
}

.cr-chip:focus-visible {
    outline: 0;
    box-shadow: var(--cr-focus);
}

.cr-chip.is-active {
    background: var(--cr-blue-50);
    border-color: #93c5fd;
    color: var(--cr-blue-600);
    font-weight: 600;
}

.cr-search-auto {
    display: none;
    align-items: center;
    gap: .25rem;
    font-weight: 600;
    color: var(--cr-green);
    margin-right: .25rem;
}

.cr-search-auto.is-visible {
    display: inline-flex;
}

/* fixed two-line height: messages must not change the card (and hero) height */
.cr-search-hint {
    font-size: .8125rem;
    line-height: 1.45;
    height: 2.9em;
    overflow: hidden;
    margin: .5rem 0 0;
    color: var(--cr-muted);
}

.cr-search-hint[data-kind="tip"] { color: #94a3b8; }
.cr-search-hint[data-kind="info"] { color: var(--cr-green); }
.cr-search-hint[data-kind="notice"] { color: var(--cr-amber); }
.cr-search-hint[data-kind="error"] { color: var(--cr-red); font-weight: 500; }

.cr-search-bottom {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-top: .75rem;
}

/* floats over the card padding instead of pushing the layout down */

.cr-search-submit {
    height: 48px;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .cr-search-card {
        padding: 1rem;
    }

    .cr-search-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .cr-search-submit {
        height: 52px;
    }
}

.cr-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    color: #e2e8f0;
    font-size: .9375rem;
}

.cr-trust li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.cr-trust .cr-icon {
    color: #34d399;
}

/* ---------- Search results ---------- */

.cr-results {
    background: var(--cr-bg);
    border-bottom: 1px solid var(--cr-border);
}

.cr-results-list {
    max-width: 960px;
}

.cr-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cr-results-head h2 {
    margin: 0 0 .25rem;
    scroll-margin-top: calc(var(--cr-header-h) + 24px);
}

.cr-results-head p {
    margin: 0;
}

.cr-results-section + .cr-results-section {
    margin-top: 2.5rem;
}

.cr-results-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cr-muted);
    margin-bottom: 1rem;
}

.cr-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--cr-text-2);
    font-size: .75rem;
    letter-spacing: 0;
}

.cr-result-group + .cr-result-group {
    margin-top: 1rem;
}

.cr-result-group.is-shared {
    padding: .75rem;
    border: 1px dashed var(--cr-border-strong);
    border-radius: var(--cr-radius-lg);
}

.cr-result-group.is-shared .cr-result + .cr-result {
    margin-top: .75rem;
}

.cr-result-group-head {
    display: flex;
    align-items: center;
    gap: .375rem;
    margin: 0 0 .75rem .25rem;
    font-size: .875rem;
    color: var(--cr-muted);
}

.cr-result {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--cr-shadow-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cr-result:hover {
    border-color: var(--cr-blue-100);
    box-shadow: var(--cr-shadow);
}

.cr-result-main {
    flex: 1;
    min-width: 0;
}

.cr-result-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .375rem .75rem;
}

.cr-result-title h4 {
    font-size: 1.125rem;
    margin: 0;
}

.cr-result-short {
    margin: .125rem 0 0;
    color: var(--cr-muted);
    font-size: .9375rem;
}

.cr-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.cr-status::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: currentColor;
}

.cr-status.is-active {
    background: var(--cr-green-50);
    color: var(--cr-green);
}

.cr-status.is-deleted {
    background: #f1f5f9;
    color: var(--cr-muted);
}

.cr-result-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
    gap: .75rem 1.5rem;
    margin: .875rem 0 0;
}

.cr-result-facts dt {
    font-size: .75rem;
    font-weight: 500;
    color: var(--cr-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .125rem;
}

.cr-result-facts dd {
    margin: 0;
    font-size: .9375rem;
    color: var(--cr-text);
}

.cr-result-facts dd small {
    display: block;
    font-size: .8125rem;
}

.cr-mono {
    font-variant-numeric: tabular-nums;
}

.cr-result-action {
    flex-shrink: 0;
}

.cr-results-deleted .cr-result {
    background: #fcfdfe;
}

.cr-results-deleted .cr-result-title h4 {
    color: var(--cr-text-2);
}

@media (max-width: 767.98px) {
    .cr-result {
        flex-direction: column;
        align-items: stretch;
        padding: 1.125rem;
    }

    .cr-result-facts {
        grid-template-columns: 1fr;
    }

    .cr-result-action .btn {
        width: 100%;
    }
}

/* ---------- Document cards ---------- */

.cr-doc-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 1.75rem;
    box-shadow: var(--cr-shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.cr-doc-card:hover {
    border-color: var(--cr-blue-100);
    box-shadow: var(--cr-shadow-lg);
    transform: translateY(-2px);
}

.cr-doc-icon,
.cr-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--cr-radius);
    background: var(--cr-blue-50);
    color: var(--cr-blue);
    margin-bottom: 1.25rem;
}

.cr-doc-icon .cr-icon,
.cr-feature-icon .cr-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.cr-doc-card h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

.cr-doc-card p {
    color: var(--cr-muted);
    font-size: .9375rem;
    margin-bottom: 1.25rem;
}

.cr-doc-card .cr-doc-price {
    margin-top: auto;
    color: var(--cr-text-2);
    font-size: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cr-border);
}

.cr-doc-price strong {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--cr-navy);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.cr-doc-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin: 1.5rem 0 0;
    font-size: .875rem;
    color: var(--cr-muted);
}

.cr-doc-note .cr-link-arrow {
    margin-left: auto;
}

/* ---------- Comparison ---------- */

.cr-compare-wrap {
    position: relative; /* keeps the visually-hidden cell labels inside the scroll box */
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow-sm);
}

.cr-compare {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: .9375rem;
}

.cr-compare th,
.cr-compare td {
    padding: .95rem 1.25rem;
    border-bottom: 1px solid var(--cr-border);
}

.cr-compare tbody tr:last-child th,
.cr-compare tbody tr:last-child td {
    border-bottom: 0;
}

.cr-compare thead th {
    background: var(--cr-bg);
    color: var(--cr-navy);
    font-weight: 600;
    font-size: .875rem;
    text-align: center;
    width: 20%;
}

.cr-compare thead th:first-child {
    text-align: left;
    width: 40%;
    color: var(--cr-muted);
    font-weight: 500;
}

.cr-compare tbody th {
    font-weight: 500;
    color: var(--cr-text);
}

.cr-compare td {
    text-align: center;
}

.cr-compare tbody tr:hover {
    background: #fbfdff;
}

.cr-yes,
.cr-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
}

.cr-yes {
    background: var(--cr-green-50);
    color: var(--cr-green);
}

.cr-yes .cr-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.5;
}

.cr-no {
    color: #cbd5e1;
}

/* ---------- Steps (dark band) ---------- */

.cr-section-dark {
    position: relative;
    background:
        radial-gradient(900px 360px at 85% 0%, rgba(37, 99, 235, .28), transparent 70%),
        linear-gradient(180deg, var(--cr-navy) 0%, var(--cr-navy-900) 100%);
    color: #cbd5e1;
}

.cr-section-dark h2,
.cr-section-dark h3 {
    color: #fff;
}

.cr-section-dark .cr-section-head .cr-eyebrow {
    color: #93c5fd;
}

.cr-section-dark .cr-section-head p,
.cr-section-dark .cr-step p {
    color: #94a3b8;
}

.cr-section-dark .cr-step-icon {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(147, 197, 253, .35);
    color: #93c5fd;
}

.cr-section-dark .cr-step-num {
    border-color: var(--cr-navy);
}

.cr-section-dark .cr-step:not(:last-child)::after {
    border-top-color: rgba(147, 197, 253, .3);
}

.cr-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cr-step {
    position: relative;
}

.cr-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: calc(3.5rem + 1rem);
    right: -1rem;
    border-top: 2px dashed var(--cr-border-strong);
}

.cr-step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--cr-navy);
    color: #fff;
    margin-bottom: 1.25rem;
}

.cr-step-icon .cr-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.cr-step-num {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--cr-blue);
    border: 2px solid #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-step h3 {
    font-size: 1.125rem;
    margin-bottom: .375rem;
}

.cr-step p {
    color: var(--cr-muted);
    font-size: .9375rem;
    margin: 0;
}

@media (max-width: 991.98px) {
    .cr-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .cr-step:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .cr-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cr-step {
        display: grid;
        grid-template-columns: 3.5rem 1fr;
        column-gap: 1rem;
    }

    .cr-step-icon {
        grid-row: span 2;
        margin: 0;
    }

    .cr-step::after {
        display: none;
    }
}

/* ---------- Features ---------- */

.cr-feature {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
}

.cr-feature-icon {
    background: var(--cr-green-50);
    color: var(--cr-green);
}

.cr-feature h3 {
    font-size: 1.0625rem;
    margin-bottom: .375rem;
}

.cr-feature p {
    color: var(--cr-muted);
    font-size: .9375rem;
    margin: 0;
}

/* ---------- FAQ ---------- */

.cr-faq {
    --bs-accordion-border-color: var(--cr-border);
    --bs-accordion-border-radius: var(--cr-radius);
    --bs-accordion-inner-border-radius: calc(var(--cr-radius) - 1px);
    --bs-accordion-btn-padding-x: 1.25rem;
    --bs-accordion-btn-padding-y: 1.1rem;
    --bs-accordion-body-padding-x: 1.25rem;
    --bs-accordion-body-padding-y: 0;
    --bs-accordion-active-bg: #fff;
    --bs-accordion-active-color: var(--cr-navy);
    --bs-accordion-btn-focus-box-shadow: var(--cr-focus);
    --bs-accordion-btn-icon-width: 1rem;
}

.cr-faq .accordion-item {
    margin-bottom: .75rem;
    border: 1px solid var(--cr-border) !important;
    border-radius: var(--cr-radius) !important;
    overflow: hidden;
}

.cr-faq .accordion-header {
    margin: 0;
}

.cr-faq .accordion-button {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cr-navy);
    border-radius: var(--cr-radius) !important;
}

.cr-faq .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.cr-faq .accordion-body {
    color: var(--cr-text-2);
    padding-bottom: 1.25rem;
    line-height: 1.7;
}

.cr-faq-contact {
    padding: 1.5rem;
    border-radius: var(--cr-radius);
    background: var(--cr-bg);
    border: 1px solid var(--cr-border);
}

.cr-faq-contact h3 {
    font-size: 1.0625rem;
    margin-bottom: .375rem;
}

.cr-faq-contact p {
    color: var(--cr-muted);
    font-size: .9375rem;
}
