﻿/* Best regulated brokers — BrokersCourt premium theme */
.brb-page {
    --brb-ocean: #e8822a;
    --brb-ocean-dark: #c46a16;
    --brb-ocean-light: #f5a623;
    --brb-midnight: #1c1e24;
    --brb-ice: #e8e2d9;
    --brb-off-white: #fffdfb;
    --brb-surface: rgba(255, 255, 255, 0.78);
    --brb-border: rgba(226, 220, 210, 0.95);
    --brb-muted: #6b7280;
    --brb-text: #1c1e24;
    --brb-safe: #059669;
    --brb-safe-soft: rgba(5, 150, 105, 0.12);
    --bc-primary: #e8822a;
    --bc-primary-dark: #c46a16;
    --bc-primary-light: #f5a623;
    --bc-primary-rgb: 232, 130, 42;
    --bc-dark: #1c1e24;
    --bc-text: #1c1e24;
    --bc-surface: #ffffff;
    --bc-bg: #f6f4f0;
    --bc-border: rgba(226, 220, 210, 0.95);

    position: relative;
    background: linear-gradient(160deg, #f6f7f9 0%, #eef0f3 40%, #f9f3ea 100%);
    color: var(--brb-text);
    min-height: 100vh;
    padding-bottom: 3rem;
    overflow-x: clip;
}

/* Page-wide warm glow, mirrors the hero blobs */
.brb-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 45% 22% at 88% 14%, rgba(245, 166, 35, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 40% 20% at 6% 52%, rgba(255, 214, 130, 0.14) 0%, transparent 60%);
}

.brb-page > * {
    position: relative;
    z-index: 1;
}

.brb-page *,
.brb-page *::before,
.brb-page *::after {
    box-sizing: border-box;
}

.brb-wrap {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

/* Hero — glass blobs over a warm light gradient */
.brb-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--bc-nav-height, 5.5rem) + 2.75rem) 0 2rem;
    margin-bottom: 1.5rem;
    background:
        radial-gradient(ellipse 46% 62% at 88% 6%, rgba(245, 166, 35, 0.26) 0%, transparent 62%),
        radial-gradient(ellipse 40% 58% at 3% 44%, rgba(255, 214, 130, 0.28) 0%, transparent 62%),
        radial-gradient(ellipse 42% 50% at 62% 96%, rgba(232, 130, 42, 0.12) 0%, transparent 62%);
    border-bottom: 1px solid rgba(232, 130, 42, 0.14);
}

.brb-hero > * {
    position: relative;
    z-index: 1;
}

.brb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.brb-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.brb-breadcrumb a:hover {
    color: var(--bc-primary, #e8822a);
}

.brb-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.625rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brb-ocean);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(60, 50, 40, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brb-hero__title {
    margin: 0 0 0.625rem;
    max-width: 42rem;
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bc-dark, #1c1e24);
    line-height: 1.15;
}

.brb-hero__accent {
    color: var(--brb-ocean);
}

.brb-hero__subtitle {
    margin: 0 0 1.25rem;
    max-width: 38rem;
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 500;
    color: #6b7280;
    line-height: 1.55;
}


/* Layout */
.brb-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .brb-layout {
        display: grid;
        grid-template-columns: 16rem minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }
}

/* Filters */
.brb-filters {
    background: var(--brb-surface);
    border-radius: 0.875rem;
    padding: 1.125rem;
    box-shadow: 0 1px 3px rgba(60, 50, 40, 0.06);
}

@media (min-width: 1024px) {
    .brb-filters {
        position: sticky;
        top: 5.5rem;
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
    }
}

.brb-filters__title {
    margin: 0 0 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brb-muted);
}

.brb-filters__search {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.875rem;
    border: 0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--brb-text);
    background: rgba(226, 220, 210, 0.35);
    outline: none;
    margin-bottom: 0.75rem;
}

.brb-filters__search:focus {
    box-shadow: inset 0 0 0 2px rgba(232, 130, 42, 0.35);
}

.brb-filter-group {
    border-top: 1px solid rgba(226, 220, 210, 0.7);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.brb-filter-group__title {
    margin: 0 0 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brb-text);
}

.brb-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.35rem 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #57534e;
    cursor: pointer;
}

.brb-filter-option input {
    margin-top: 0.15rem;
    accent-color: var(--brb-ocean);
}

.brb-filters__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brb-muted);
    background: rgba(226, 220, 210, 0.25);
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.brb-filters__reset:hover {
    color: var(--brb-ocean);
    background: rgba(232, 130, 42, 0.1);
}

.brb-filters__links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 220, 210, 0.7);
}

.brb-filters__links-title {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brb-muted);
}

.brb-filters__link {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brb-text);
    text-decoration: none;
}

.brb-filters__link:hover {
    color: var(--brb-ocean);
}

.brb-filters__link--warn:hover {
    color: #dc2626;
}

/* Main */
.brb-main__head {
    margin-bottom: 1rem;
}

.brb-main__heading {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brb-text);
}

.brb-results-count {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--brb-muted);
}

.brb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .brb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .brb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.brb-card {
    display: flex;
    flex-direction: column;
    background: var(--brb-surface);
    border: 1px solid var(--brb-border);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(60, 50, 40, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.brb-card:hover {
    border-color: rgba(232, 130, 42, 0.35);
    box-shadow: 0 8px 24px rgba(60, 50, 40, 0.08);
}

.brb-card.is-hidden {
    display: none;
}

.brb-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(226, 220, 210, 0.55);
}

.brb-card__logo {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 220, 210, 0.85);
    border-radius: 0.625rem;
    background: #faf8f4;
    overflow: hidden;
    text-decoration: none;
}

.brb-card__logo img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.brb-card__logo-fallback {
    font-size: 1.125rem;
    font-weight: 800;
    color: #a8a29e;
}

.brb-card__identity {
    min-width: 0;
    flex: 1;
}

.brb-card__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brb-text);
    text-decoration: none;
    line-height: 1.3;
}

.brb-card__name:hover {
    color: var(--brb-ocean);
}

.brb-card__rating-row {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brb-ocean);
}

.brb-card__rating-row svg {
    width: 0.875rem;
    height: 0.875rem;
    color: #f59e0b;
}

.brb-card__rating-max {
    font-weight: 600;
    color: var(--brb-muted);
}

.brb-card__tier {
    display: inline-flex;
    margin-top: 0.35rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brb-safe);
    background: var(--brb-safe-soft);
    border-radius: 999px;
}

.brb-card__body {
    padding: 0.875rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brb-card__feature {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--brb-muted);
    line-height: 1.45;
}

.brb-card__meta {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.4rem;
}

.brb-card__meta-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.brb-card__meta-row dt {
    margin: 0;
    color: var(--brb-muted);
    font-weight: 500;
}

.brb-card__meta-row dd {
    margin: 0;
    color: var(--brb-text);
    font-weight: 600;
    text-align: right;
}

.brb-card__actions {
    margin-top: auto;
    display: grid;
    gap: 0.5rem;
}

/* Warm glass instead of a solid orange fill */
.brb-btn-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    background: rgba(232, 130, 42, 0.16);
    border: 1px solid rgba(232, 130, 42, 0.4);
    color: var(--brb-text);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(60, 50, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: background 0.15s, border-color 0.15s;
}

.brb-btn-visit:hover {
    background: rgba(232, 130, 42, 0.26);
    border-color: rgba(232, 130, 42, 0.62);
    color: var(--brb-text);
}

.brb-link-review {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brb-ocean);
    text-decoration: none;
}

.brb-link-review:hover {
    color: var(--brb-ocean-dark);
}

/* Empty */
.brb-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--brb-surface);
    border: 1px solid var(--brb-border);
    border-radius: 0.875rem;
    color: var(--brb-muted);
}

/* Trust */
.brb-trust {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--brb-surface);
    border: 1px solid var(--brb-border);
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(60, 50, 40, 0.05);
}

.brb-trust__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brb-text);
}

.brb-trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .brb-trust__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.brb-trust-item {
    padding: 1rem;
    border-radius: 0.625rem;
    background: rgba(232, 130, 42, 0.06);
    border: 1px solid rgba(232, 130, 42, 0.14);
}

.brb-trust-item__title {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brb-text);
}

.brb-trust-item__value {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--brb-muted);
    line-height: 1.45;
}

.is-hidden {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .brb-card,
    .brb-btn-visit,
    .brb-filters__reset {
        transition: none;
    }
}
