/* =================================================================
   GROUP COMPANIES PAGE — /group-companies
   ================================================================= */

/* ── Hero ─────────────────────────────────────────────────────── */
.gc-hero-wrap {
    position: relative;
    overflow: hidden;
    background: #071525;
    min-height: 520px;
    height: calc(100vh - 130px);
    max-height: 780px;
    display: flex;
    align-items: flex-end;
}

.gc-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    animation: gcKenBurns 16s ease-out both;
    will-change: transform;
    z-index: 0;
}

@keyframes gcKenBurns {
    from { transform: scale(1.07); }
    to   { transform: scale(1.0); }
}

.gc-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(7,21,37,0.96) 0%, rgba(7,21,37,0.80) 42%, rgba(7,21,37,0.40) 70%, rgba(7,21,37,0.16) 100%),
        linear-gradient(0deg, rgba(7,21,37,0.82) 0%, transparent 55%);
}

/* Red left-edge accent glow */
.gc-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 45% 65% at 0% 70%, rgba(228,32,50,0.24) 0%, transparent 58%);
    pointer-events: none;
}

.gc-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 4.5rem;
}

.gc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f05a66;
    background: rgba(228,32,50,0.16);
    border: 1px solid rgba(228,32,50,0.35);
    padding: 0.32rem 1rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.gc-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.65rem;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.gc-hero-title span { color: #f05a66; }

.gc-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
    max-width: 580px;
    line-height: 1.7;
}

/* Entrance animations */
.gc-hero-content .gc-breadcrumb,
.gc-hero-content .gc-hero-eyebrow,
.gc-hero-content .gc-hero-title,
.gc-hero-content .gc-hero-sub {
    animation: gcFadeUp 0.65s ease both;
}
.gc-hero-content .gc-breadcrumb   { animation-delay: 0.05s; }
.gc-hero-content .gc-hero-eyebrow { animation-delay: 0.15s; }
.gc-hero-content .gc-hero-title   { animation-delay: 0.25s; }
.gc-hero-content .gc-hero-sub     { animation-delay: 0.35s; }

@keyframes gcFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.6);
}
.gc-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.gc-breadcrumb a:hover { color: #fff; }
.gc-breadcrumb i { font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.gc-breadcrumb span { color: rgba(255,255,255,0.9); }

/* ── Intro ────────────────────────────────────────────────────── */
.gc-intro-section {
    padding: 5rem 0 3.5rem;
    background: #fff;
    border-bottom: 1px solid #eef0f5;
}
.gc-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.gc-intro-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dhs-red, #E42032);
    background: rgba(228,32,50,0.08);
    border: 1px solid rgba(228,32,50,0.25);
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
}
.gc-intro-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1.1rem;
}
.gc-intro-title span { color: var(--dhs-red, #E42032); }
.gc-intro-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--dhs-red, #E42032), #f05a66);
    border-radius: 999px;
}
.gc-intro-sub {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.8;
    max-width: 600px;
    margin: 1.1rem 0 0;
}

/* ── Companies list ───────────────────────────────────────────── */
.gc-companies-section {
    padding: 2rem 0 6rem;
    background: #fff;
}
.gc-companies-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ── Single company card ──────────────────────────────────────── */
.gc-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.09);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e8eef5;
}
.gc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.13);
}

/* Alternating layout — reverse grid column order */
.gc-card--reverse {
    grid-template-columns: 1fr 300px;
}
.gc-card--reverse .gc-card-panel { order: 2; }
.gc-card--reverse .gc-card-body  { order: 1; }

/* ── Left panel (dark navy) ───────────────────────────────────── */
.gc-card-panel {
    background: linear-gradient(160deg, #0c2a4a 0%, #0d2b52 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}
.gc-card-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dhs-red), #ef4444);
}

.gc-card-logo-wrap {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    max-width: 200px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.gc-card-logo {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    display: block;
}
.gc-card-logo-fallback {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(var(--dhs-red-rgb), 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--dhs-red);
}

.gc-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.gc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.gc-card-link:hover {
    background: var(--dhs-red);
    border-color: var(--dhs-red);
    color: #fff;
}

/* ── Right body (content) ─────────────────────────────────────── */
.gc-card-body {
    background: #fff;
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gc-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dhs-red);
    background: rgba(228,32,50,0.08);
    border: 1px solid rgba(228,32,50,0.22);
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    margin-bottom: 0.85rem;
    width: fit-content;
}
.gc-card-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 1rem;
    line-height: 1.2;
}
.gc-card-desc {
    font-size: 0.97rem;
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 1.5rem;
}
.gc-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.75rem;
    border-radius: 999px;
    background: var(--dhs-red);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(var(--dhs-red-rgb), 0.3);
}
.gc-card-btn:hover { background: #b91c1c; color: #fff; transform: translateY(-2px); }

/* ── Empty state ──────────────────────────────────────────────── */
.gc-empty { text-align: center; padding: 4rem 0; color: #94a3b8; font-size: 1rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .gc-card,
    .gc-card--reverse {
        grid-template-columns: 1fr;
    }
    .gc-card--reverse .gc-card-panel { order: 0; }
    .gc-card--reverse .gc-card-body  { order: 0; }
    .gc-card-panel { padding: 2rem 1.5rem; flex-direction: row; justify-content: flex-start; gap: 1.5rem; text-align: left; }
    .gc-card-panel::before { width: 4px; height: 100%; right: auto; bottom: 0; }
    .gc-card-logo-wrap { max-width: 130px; min-height: 70px; }
}
@media (max-width: 767px) {
    .gc-hero-wrap { min-height: 420px; height: 85vw; max-height: 580px; }
    .gc-hero-content { padding-bottom: 3rem; }
    .gc-hero-title { font-size: 1.9rem; }
    .gc-hero-sub { font-size: 0.92rem; }
}
@media (max-width: 600px) {
    .gc-hero-wrap { min-height: 360px; height: 90vw; max-height: 480px; }
    .gc-card-body { padding: 1.75rem 1.25rem; }
    .gc-card-panel { flex-direction: column; align-items: center; text-align: center; }
    .gc-companies-section { padding: 1.5rem 0 4rem; }
}
