/**
 * IndoKontraktor — Company Profile Hero (iko-hero) & Trust Strip
 * Extracted from tour-banner.blade.php to eliminate inline <style> in <body>.
 * Load: added to @section('head') in detail.blade.php, company..blade.php, asosiasi-detail.blade.php
 */

/* ══════════════════════════════════════════════════
   IKO-HERO  (dark gradient header on profile pages)
══════════════════════════════════════════════════ */
.iko-hero {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 2rem 1.5rem 2.25rem;
    color: #f8fafc;
    background-color: #0A1628;
    background-image: linear-gradient(152deg, #0A1628 0%, #0f2448 44%, #1E4DB7 100%);
    border-bottom: 1px solid rgba(148,163,184,0.22);
}

.iko-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image: repeating-linear-gradient(
        -19deg,
        transparent 0, transparent 14px,
        rgba(255,255,255,0.1) 14px, rgba(255,255,255,0.1) 15px
    );
}

.iko-hero--custom {
    background-image:
        linear-gradient(118deg, rgba(10,22,40,0.93) 0%, rgba(10,22,40,0.82) 46%, rgba(30,77,183,0.72) 100%),
        var(--iko-hero-custom);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

@media (min-width: 768px) {
    .iko-hero { min-height: 300px; padding: 2.5rem 2rem 2.75rem; }
}

.iko-hero__grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    max-width: 1140px;
    margin: 0 auto;
}

.iko-hero__main  { flex: 1 1 280px; max-width: 46rem; }

.iko-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226,232,240,0.85);
}

.iko-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}

.iko-hero__lead {
    margin: 0 0 1.1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(226,232,240,0.92);
    max-width: 40rem;
}

.iko-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iko-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.iko-hero__meta li .fa { opacity: 0.9; font-size: 0.7rem; }

.iko-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.iko-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.iko-hero__btn--primary {
    color: #0f172a;
    background: #fff;
    border: 1px solid #fff;
}

.iko-hero__btn--primary:hover {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #e2e8f0;
    text-decoration: none;
}

.iko-hero__btn--ghost {
    color: #f1f5f9;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
}

.iko-hero__btn--ghost:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.iko-hero__aside   { flex: 0 0 auto; text-align: left; }

@media (min-width: 768px) {
    .iko-hero__aside { text-align: right; }
}

.iko-hero__brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.iko-hero__brand:hover { color: inherit; text-decoration: none; }

.iko-hero__logo {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.06);
}

.iko-hero__mono {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    background: linear-gradient(145deg, #1e3a8a 0%, #0f172a 100%);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

/* Slug URL hidden completely */
.iko-hero .iko-hero__slug {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important; height: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
}

@media (max-width: 767px) {
    .iko-hero__grid  { align-items: flex-start; }
    .iko-hero__aside { width: 100%; text-align: left; flex-direction: row; }
    .iko-hero__brand { flex-direction: row; align-items: center; gap: 0.75rem; }
    .iko-hero__logo,
    .iko-hero__mono  { width: 72px; height: 72px; font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════════
   TRUST STRIP  (below hero, summarises SBU / NIB)
══════════════════════════════════════════════════ */
.iko-trust-strip {
    background: linear-gradient(180deg, #070f1c 0%, #0a1628 100%);
    border-bottom: 1px solid rgba(148,163,184,0.2);
    color: #e2e8f0;
    font-size: 0.75rem;
    line-height: 1.35;
}

.iko-trust-strip__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 0.55rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.15rem;
}

.iko-trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 100%;
}

.iko-trust-strip__item .fa         { font-size: 0.7rem; flex-shrink: 0; }
.iko-trust-strip__item--ok   .fa   { color: #4ade80; }
.iko-trust-strip__item--warn .fa   { color: #fbbf24; }
.iko-trust-strip__item--muted .fa  { color: #94a3b8; }
.iko-trust-strip__item--bad  .fa   { color: #f87171; }

.iko-trust-strip__sep {
    color: rgba(148,163,184,0.45);
    user-select: none;
    padding: 0 0.15rem;
    font-weight: 300;
}

.iko-trust-strip__text { overflow: hidden; text-overflow: ellipsis; }

.iko-trust-strip__assoc-link {
    color: #f8fafc;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.iko-trust-strip__assoc-link:hover { color: #e2e8f0; }

@media (max-width: 767px) {
    .iko-trust-strip__inner {
        padding-left: 1rem;
        padding-right: 1rem;
        row-gap: 0.25rem;
    }
    .iko-trust-strip__item { white-space: normal; }
}
