/* =============================================================================
   OEUK Company Profile — front-end styles
   -----------------------------------------------------------------------------
   Brand palette lives in CSS variables below. These approximate the OEUK
   identity (deep petrol teal of the North Sea + an energy green accent on clean
   neutrals). Drop your exact brand-guideline hex values into :root to match
   precisely — nothing else needs to change.
   ============================================================================= */

.oeuk-cp {
    /* Brand */
    --oeuk-petrol:      #00404d;
    --oeuk-petrol-700:  #002d36;
    --oeuk-petrol-900:  #001e25;
    --oeuk-teal:        #0e8c9b;
    --oeuk-green:       #8cc63f;
    --oeuk-green-600:   #6fa82f;
    --oeuk-amber:       #f2a900;

    /* Neutrals */
    --oeuk-ink:    #102a30;
    --oeuk-slate:  #5c6e73;
    --oeuk-mist:   #f2f6f7;
    --oeuk-card:   #ffffff;
    --oeuk-line:   #e4ecee;

    --oeuk-radius:    16px;
    --oeuk-radius-lg: 22px;
    --oeuk-shadow:    0 1px 2px rgba(16, 42, 48, .04), 0 12px 30px -18px rgba(0, 64, 77, .35);

    max-width: 980px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: var(--oeuk-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.oeuk-cp *,
.oeuk-cp *::before,
.oeuk-cp *::after { box-sizing: border-box; }

/* ---------- Hero ---------------------------------------------------------- */
.oeuk-cp-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--oeuk-radius-lg);
    background:
        radial-gradient(120% 140% at 88% -20%, rgba(140, 198, 63, .22), transparent 55%),
        linear-gradient(135deg, var(--oeuk-petrol) 0%, var(--oeuk-petrol-900) 100%);
    color: #fff;
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--oeuk-shadow);
    animation: oeuk-rise .5s cubic-bezier(.22, .61, .36, 1) both;
}

.oeuk-cp-hero__accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--oeuk-green), var(--oeuk-teal));
}

.oeuk-cp-hero__main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.oeuk-cp-hero__crest {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: .02em;
}

.oeuk-cp-hero__eyebrow {
    margin: 0 0 .25rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
}

.oeuk-cp-hero__name {
    margin: 0;
    font-size: clamp(1.45rem, 3.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.12;
    color: #fff;
}

.oeuk-cp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    margin-top: .85rem;
}

.oeuk-cp-hero__since {
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
}

.oeuk-cp-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .7rem .3rem .6rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
}

.oeuk-cp-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
}

.oeuk-cp-pill.is-active {
    background: rgba(140, 198, 63, .18);
    border-color: rgba(140, 198, 63, .5);
    color: #eaf6d6;
}

.oeuk-cp-pill.is-active .oeuk-cp-pill__dot {
    background: var(--oeuk-green);
    box-shadow: 0 0 0 4px rgba(140, 198, 63, .25);
}

/* ---------- Card grid ----------------------------------------------------- */
.oeuk-cp-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
}

.oeuk-cp-card {
    background: var(--oeuk-card);
    border: 1px solid var(--oeuk-line);
    border-radius: var(--oeuk-radius);
    padding: 1.25rem 1.35rem 1.1rem;
    box-shadow: var(--oeuk-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    animation: oeuk-rise .5s cubic-bezier(.22, .61, .36, 1) both;
}
.oeuk-cp-grid > .oeuk-cp-card:nth-child(2) { animation-delay: .06s; }
.oeuk-cp-grid > .oeuk-cp-card:nth-child(3) { animation-delay: .12s; }
.oeuk-cp-grid > .oeuk-cp-card:nth-child(4) { animation-delay: .18s; }
.oeuk-cp-grid > .oeuk-cp-card:nth-child(5) { animation-delay: .24s; }

.oeuk-cp-card:hover {
    transform: translateY(-2px);
    border-color: #d3e0e3;
    box-shadow: 0 2px 4px rgba(16, 42, 48, .05), 0 22px 40px -22px rgba(0, 64, 77, .45);
}

.oeuk-cp-card__title {
    margin: 0 0 .9rem;
    padding-bottom: .65rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--oeuk-petrol);
    position: relative;
}
.oeuk-cp-card__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--oeuk-green);
}

/* ---------- Definition rows ---------------------------------------------- */
.oeuk-cp-dl { margin: 0; }

.oeuk-cp-row {
    padding: .7rem 0;
    border-top: 1px solid var(--oeuk-line);
}
.oeuk-cp-row:first-child { border-top: 0; padding-top: 0; }

.oeuk-cp-row dt {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .25rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--oeuk-slate);
}

.oeuk-cp-row__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--oeuk-teal);
    background: rgba(14, 140, 155, .09);
}
.oeuk-cp-row__icon svg { width: 15px; height: 15px; }

.oeuk-cp-row dd {
    margin: 0 0 0 calc(26px + .5rem);
    font-size: .98rem;
    font-weight: 600;
    color: var(--oeuk-ink);
    word-break: break-word;
}

.oeuk-cp-empty {
    font-weight: 500;
    font-style: italic;
    color: #9aa9ad;
}

.oeuk-cp-link {
    color: var(--oeuk-teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
.oeuk-cp-link:hover {
    color: var(--oeuk-petrol);
    border-bottom-color: currentColor;
}

/* ---------- Footer -------------------------------------------------------- */
.oeuk-cp-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.1rem;
    padding: 0 .35rem;
    font-size: .82rem;
    color: var(--oeuk-slate);
}
.oeuk-cp-refresh {
    color: var(--oeuk-teal);
    text-decoration: none;
    font-weight: 600;
}
.oeuk-cp-refresh:hover { text-decoration: underline; }

/* ---------- States (logged out / no match / error) ---------------------- */
.oeuk-cp-state {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    background: var(--oeuk-card);
    border: 1px solid var(--oeuk-line);
    border-radius: var(--oeuk-radius-lg);
    padding: 2.75rem 2rem;
    box-shadow: var(--oeuk-shadow);
    animation: oeuk-rise .5s cubic-bezier(.22, .61, .36, 1) both;
}
.oeuk-cp-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--oeuk-petrol);
    background: rgba(0, 64, 77, .07);
}
.oeuk-cp-state__icon svg { width: 26px; height: 26px; }
.oeuk-cp-state h2 {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--oeuk-ink);
}
.oeuk-cp-state p {
    margin: 0 auto 1.4rem;
    max-width: 40ch;
    color: var(--oeuk-slate);
}

/* ---------- Buttons ------------------------------------------------------- */
.oeuk-cp-btn {
    display: inline-block;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    background: var(--oeuk-green);
    color: var(--oeuk-petrol-900);
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .12s ease;
}
.oeuk-cp-btn:hover { background: var(--oeuk-green-600); color: #fff; transform: translateY(-1px); }

/* ---------- A11y + motion ------------------------------------------------- */
.oeuk-cp a:focus-visible,
.oeuk-cp .oeuk-cp-btn:focus-visible {
    outline: 3px solid var(--oeuk-amber);
    outline-offset: 2px;
    border-radius: 6px;
}

@keyframes oeuk-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .oeuk-cp *,
    .oeuk-cp *::before,
    .oeuk-cp *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 640px) {
    .oeuk-cp { margin: 1rem auto; }
    .oeuk-cp-hero { padding: 1.5rem 1.25rem; border-radius: var(--oeuk-radius); }
    .oeuk-cp-hero__main { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .oeuk-cp-grid { grid-template-columns: 1fr; }
}
