/* ==========================================================================
   Crowd Connect Financial Services — brand layer
   Loaded last so it settles colour, type and the landing page over the theme.

   The two logo colours are #88a80d (green) and #fbae17 (amber). Neither can
   carry white text: measured against white they are 2.74:1 and 1.88:1, well
   under the 4.5:1 needed. So the logo colours are used as fills with dark text
   on them, and a deeper green is used wherever white text sits on a solid
   background. Every pairing below has been checked.
   ========================================================================== */

:root {
    /* Logo */
    --cc-green: #88a80d;
    --cc-amber: #fbae17;

    /* Derived, for the jobs the logo colours cannot do */
    --cc-green-deep: #5f7609;   /* white text passes at 5.14:1 */
    --cc-green-dark: #4e6207;   /* hover, 6.83:1 */
    --cc-green-tint: #f4f7e7;   /* section washes */
    --cc-green-tint-2: #e7eecd;
    --cc-amber-dark: #d99209;   /* hover */
    --cc-amber-tint: #fef4e0;

    /* Neutrals, warmed very slightly towards the green so they sit with it */
    --cc-ink: #1b2109;
    --cc-body: #454c3a;
    --cc-muted: #6d7461;
    --cc-line: #e3e6db;
    --cc-surface: #ffffff;
    --cc-surface-2: #f8f9f4;

    --cc-radius: 10px;
    --cc-radius-lg: 16px;
    --cc-shadow: 0 1px 2px rgba(27, 33, 9, .06), 0 8px 24px rgba(27, 33, 9, .07);
    --cc-shadow-lg: 0 2px 4px rgba(27, 33, 9, .06), 0 18px 48px rgba(27, 33, 9, .12);
    --cc-ring: 0 0 0 3px rgba(136, 168, 13, .35);
}

/* -------------------------------------------------------------- typography */

body {
    color: var(--cc-body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--cc-ink);
    letter-spacing: -.015em;
}

h1, .h1 { font-weight: 700; }
h2, .h2 { font-weight: 700; }

.cc-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cc-green-dark);
    margin-bottom: .75rem;
}

.cc-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--cc-muted);
}

/* ------------------------------------------------------------------ colour */

.text-primary { color: var(--cc-green-dark) !important; }
.bg-primary { background-color: var(--cc-green-deep) !important; }
.border-primary { border-color: var(--cc-green) !important; }
.text-amber { color: var(--cc-amber-dark) !important; }
.bg-amber { background-color: var(--cc-amber) !important; color: var(--cc-ink) !important; }
.bg-tint { background-color: var(--cc-green-tint) !important; }
.bg-surface-2 { background-color: var(--cc-surface-2) !important; }

/* Anything sitting on the brand green must not use white text. */
.bg-amber h1, .bg-amber h2, .bg-amber h3, .bg-amber p,
.bg-amber .h1, .bg-amber .h2, .bg-amber .h3 { color: var(--cc-ink) !important; }

/* ----------------------------------------------------------------- buttons */

.btn {
    border-radius: var(--cc-radius);
    font-weight: 600;
    padding: .625rem 1.25rem;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn:focus-visible { outline: none; box-shadow: var(--cc-ring); }

.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background-color: var(--cc-green-deep);
    border-color: var(--cc-green-deep);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--cc-green-dark);
    border-color: var(--cc-green-dark);
    color: #fff;
}

.btn-outline-primary {
    color: var(--cc-green-dark);
    border-color: var(--cc-green);
    background-color: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--cc-green-deep);
    border-color: var(--cc-green-deep);
    color: #fff;
}

/* The amber button is the loud one. Dark label, because amber cannot take white. */
.btn-amber {
    background-color: var(--cc-amber);
    border-color: var(--cc-amber);
    color: var(--cc-ink);
}
.btn-amber:hover, .btn-amber:focus {
    background-color: var(--cc-amber-dark);
    border-color: var(--cc-amber-dark);
    color: var(--cc-ink);
}

.btn-lg { padding: .8125rem 1.75rem; font-size: 1.0625rem; }

/* --------------------------------------------------------------- the header */

.cc-header { border-bottom: 1px solid var(--cc-line); background: #fff; }

.cc-utility {
    background: var(--cc-ink);
    color: rgba(255,255,255,.72);
    font-size: .8125rem;
}
.cc-utility a { color: rgba(255,255,255,.86); text-decoration: none; }
.cc-utility a:hover { color: #fff; text-decoration: underline; }
.cc-utility .cc-utility-sep { color: rgba(255,255,255,.28); }

.cc-brand { display: inline-flex; align-items: center; gap: .625rem; }
.cc-brand img { height: 42px; width: auto; display: block; }

.cc-nav .nav-link {
    color: var(--cc-ink);
    font-weight: 600;
    font-size: .9375rem;
    padding: .5rem .875rem;
    border-radius: var(--cc-radius);
    text-transform: none;          /* the old nav shouted in uppercase */
    letter-spacing: 0;
    white-space: nowrap;
}
.cc-nav .nav-link:hover { color: var(--cc-green-dark); background: var(--cc-green-tint); }

/* Current section, marked with a rule rather than only a colour change. */
.cc-nav .nav-link.active {
    color: var(--cc-green-dark);
    background: var(--cc-green-tint);
}
.cc-nav .nav-link.active::after {
    content: "";
    display: block;
    height: 2px;
    margin: .3rem .25rem -.35rem;
    border-radius: 2px;
    background: var(--cc-amber);
}

.cc-nav .dropdown-menu {
    background: #fff;
    border: 1px solid var(--cc-line);
    border-radius: var(--cc-radius);
    /* A near white border on a white panel disappeared against the light hero,
       so the edge is carried by the shadow instead. */
    box-shadow: 0 4px 12px rgba(27, 33, 9, .1), 0 16px 40px rgba(27, 33, 9, .16);
    padding: .375rem;
    margin-top: .375rem;
    /* Wide enough for the item plus its one line description; the theme's
       default width wrapped every label into a column of single words. */
    min-width: 19rem;
    max-width: calc(100vw - 2rem);
}
.navbar.cc-nav .dropdown .dropdown-item {
    border-radius: 7px;
    padding: .5rem .75rem;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cc-ink);
    white-space: normal;
    /* The theme uppercases everything inside the navbar. */
    text-transform: none;
    letter-spacing: 0;
}
.navbar.cc-nav .dropdown .dropdown-item:hover,
.navbar.cc-nav .dropdown .dropdown-item:focus { background: var(--cc-green-tint); color: var(--cc-green-dark); }
.navbar.cc-nav .dropdown .dropdown-item small {
    display: block;
    color: var(--cc-muted);
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.45;
    margin-top: .125rem;
    text-transform: none;
    letter-spacing: 0;
}
.cc-nav .dropdown-divider { margin: .375rem .25rem; border-color: var(--cc-line); }

/* The theme also uppercases the top level links and the buttons. */
.navbar.cc-nav .nav-link,
.navbar.cc-nav .btn { text-transform: none; letter-spacing: 0; }

.cc-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--cc-green-tint-2); color: var(--cc-green-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .8125rem;
}

/* ----------------------------------------------------------------- the hero */

.cc-hero {
    position: relative;
    background: linear-gradient(180deg, var(--cc-green-tint) 0%, #fff 62%);
    overflow: hidden;
}
.cc-hero::before {
    /* A soft amber bloom, echoing the arc in the logo. */
    content: "";
    position: absolute;
    top: -22%; right: -12%;
    width: 46rem; height: 46rem;
    background: radial-gradient(circle, rgba(251,174,23,.22) 0%, rgba(251,174,23,0) 62%);
    pointer-events: none;
}
.cc-hero-inner { position: relative; padding: 4.5rem 0 4rem; }

.cc-hero h1 {
    font-size: clamp(2.125rem, 4.6vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.cc-hero h1 .cc-underline {
    background: linear-gradient(transparent 68%, rgba(251,174,23,.55) 68%);
}
.cc-hero p.cc-lead { max-width: 34rem; font-size: 1.1875rem; }

.cc-hero-visual {
    position: relative;
    border-radius: var(--cc-radius-lg);
    overflow: hidden;
    box-shadow: var(--cc-shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--cc-green-tint-2);
}
.cc-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The regulatory standing is the single most trust-bearing fact on the page. */
.cc-badge-regulated {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff;
    border: 1px solid var(--cc-green-tint-2);
    border-radius: 999px;
    padding: .4375rem .875rem .4375rem .5rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--cc-green-dark);
    box-shadow: var(--cc-shadow);
}
.cc-badge-regulated .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cc-green); flex: none;
}

/* ---------------------------------------------------------------- sections */

.cc-section { padding: 4.5rem 0; }
.cc-section-tight { padding: 3rem 0; }

.cc-section-head { max-width: 42rem; margin: 0 auto 2.75rem; text-align: center; }
.cc-section-head h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.cc-section-head p { color: var(--cc-muted); margin-bottom: 0; }

/* Statistics strip */
.cc-stats { background: var(--cc-ink); color: #fff; }
.cc-stats .cc-stat-value {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    font-weight: 700;
    color: var(--cc-amber);
    line-height: 1.1;
    margin-bottom: .25rem;
}
.cc-stats .cc-stat-label {
    color: rgba(255,255,255,.7);
    font-size: .9375rem;
    margin-bottom: 0;
}

/* How it works */
.cc-step { text-align: center; padding: 0 .5rem; }
.cc-step-num {
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: var(--cc-green-tint-2); color: var(--cc-green-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 1rem;
}
.cc-step h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.cc-step p { color: var(--cc-muted); font-size: .9375rem; margin-bottom: 0; }

/* Opportunity cards */
.cc-card {
    background: #fff;
    border: 1px solid var(--cc-line);
    border-radius: var(--cc-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cc-shadow-lg);
    border-color: var(--cc-green-tint-2);
}
.cc-card-media { aspect-ratio: 16 / 10; background: var(--cc-surface-2); overflow: hidden; }
.cc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.cc-card-body h3 { font-size: 1.0625rem; margin-bottom: .375rem; }
.cc-card-body p { color: var(--cc-muted); font-size: .9375rem; }
.cc-card-foot { margin-top: auto; padding-top: 1rem; }

.cc-chip {
    display: inline-block;
    background: var(--cc-green-tint);
    color: var(--cc-green-dark);
    border-radius: 999px;
    padding: .1875rem .625rem;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .625rem;
}

.cc-meter { height: 6px; background: var(--cc-green-tint-2); border-radius: 999px; overflow: hidden; }
.cc-meter span { display: block; height: 100%; background: var(--cc-green); border-radius: 999px; }
.cc-meter-label { font-size: .8125rem; color: var(--cc-muted); margin-top: .4375rem; }

/* Trust / risk band */
.cc-band {
    background: var(--cc-green-tint);
    border-top: 1px solid var(--cc-green-tint-2);
    border-bottom: 1px solid var(--cc-green-tint-2);
}

.cc-cta {
    background: var(--cc-ink);
    color: #fff;
    border-radius: var(--cc-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}
.cc-cta h2 { color: #fff; margin-bottom: .75rem; }
.cc-cta p { color: rgba(255,255,255,.72); max-width: 36rem; margin: 0 auto 1.75rem; }

/* Risk warning. Deliberately plain: it should read as a statement, not a badge. */
.cc-risk {
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--cc-muted);
    border-left: 3px solid var(--cc-amber);
    padding-left: 1rem;
}

/* ------------------------------------------------------------------ footer */

.cc-footer { background: var(--cc-ink); color: rgba(255,255,255,.72); }
/* The theme colours p and li directly, which beats inheriting from .cc-footer
   and left body text at roughly 1.5:1 against the dark ground. */
.cc-footer p,
.cc-footer li,
.cc-footer span,
.cc-footer div { color: rgba(255,255,255,.72); }
.cc-footer strong { color: rgba(255,255,255,.9); }
.cc-footer h4 {
    color: #fff; font-size: .8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}
.cc-footer a { color: rgba(255,255,255,.66); text-decoration: none; }
.cc-footer a:hover { color: var(--cc-amber); }
.cc-footer .cc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .8125rem;
    color: rgba(255,255,255,.5);
}

/* ------------------------------------------------------------ accessibility */

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: none;
    box-shadow: var(--cc-ring);
    border-radius: var(--cc-radius);
}

.cc-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1080;
    background: var(--cc-ink);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--cc-radius) 0;
}
.cc-skip-link:focus { left: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .cc-card, .btn { transition: none; }
    .cc-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 991.98px) {
    .cc-hero-inner { padding: 2.5rem 0 2.5rem; }
    .cc-hero-visual { margin-top: 2rem; aspect-ratio: 16 / 10; }
    .cc-section { padding: 3rem 0; }
    .cc-nav .navbar-nav { padding: .5rem 0; }
    .cc-nav .nav-link { padding: .625rem .75rem; }
    .cc-nav .nav-link.active::after { display: none; }
    .cc-nav .nav-link.active { border-left: 3px solid var(--cc-amber); }
    .cc-cta { padding: 2.25rem 1.25rem; }
}
