/* ==========================================================================
   CASE STUDIES (index + project pages)
   Layout follows the Trionova case-study pages; colours, type and tokens
   are Vetora's (style.css :root). Prefix: vcs-
   Views: resources/views/case-studies/{index,show}.blade.php
   ========================================================================== */

.vcs-page {
    --vcs-header-h: 120px;
    --vcs-ink: var(--text-primary, #111827);
    --vcs-ink-2: var(--text-secondary, #4b5563);
    --vcs-navy: var(--bg-dark, #0f172a);
    --vcs-line: #e5e7eb;
    --vcs-radius: 32px;
    padding-bottom: 110px;
    background: var(--bg-body, #f7f9fc);
}

.vcs-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 35px;
}

/* ---- Hero banner ---- */
.vcs-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(420px + var(--vcs-header-h));
    padding: calc(var(--vcs-header-h) + 40px) 0 110px;
    overflow: hidden;
    background-color: var(--vcs-navy);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

/* Navy wash + a soft brand tint so white text always reads */
.vcs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 13, 32, 0.55) 0%, rgba(10, 13, 32, 0.72) 100%),
        linear-gradient(120deg, rgba(95, 10, 135, 0.35) 0%, rgba(44, 115, 210, 0.2) 100%);
}

.vcs-hero--detail {
    min-height: calc(300px + var(--vcs-header-h));
    padding-bottom: 90px;
}

.vcs-hero__title {
    margin: 0 0 18px;
    font-family: var(--font-primary);
    font-size: clamp(3rem, 1.8rem + 4.6vw, 5.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
}

.vcs-hero__sub {
    max-width: 660px;
    margin: 0 auto 30px !important;
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

/* Glass breadcrumb pill */
.vcs-crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 26px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full, 999px);
    background: rgba(95, 10, 135, 0.35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 0.9375rem;
    font-weight: 500;
}

.vcs-crumbs a {
    color: #fff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.vcs-crumbs a:hover { color: #c9b4f5; }
.vcs-crumbs__dot { color: #c9b4f5; }
.vcs-crumbs [aria-current] { color: rgba(255, 255, 255, 0.85); }

/* ---- Filter tabs ---- */
.vcs-filter {
    display: flex;
    justify-content: center;
    padding: 90px 0 60px;
}

.vcs-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0;
    border: 0;
}

.vcs-tabs .nav-link {
    padding: 12px 28px;
    border: 1px solid var(--vcs-line);
    border-radius: var(--radius-full, 999px);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vcs-ink);
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.vcs-tabs .nav-link:hover {
    border-color: var(--primary, #5f0a87);
    color: var(--primary, #5f0a87);
}

.vcs-tabs .nav-link.active {
    border-color: transparent;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-primary, 0 10px 25px rgba(95, 10, 135, 0.3));
}

.vcs-tabs .nav-link:focus-visible {
    outline: 2px solid var(--primary, #5f0a87);
    outline-offset: 3px;
}

/* ---- Project cards ---- */
.vcs-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--vcs-radius);
    background: var(--vcs-navy);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}

.vcs-card--lg,
.vcs-card--full { height: 560px; }
.vcs-card--md { height: 580px; }

.vcs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(30, 20, 80, 0.35);
}

.vcs-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.vcs-card:hover .vcs-card__img { transform: scale(1.05); }

/* Dark at the top and bottom so the tag and title read on any image */
.vcs-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 32, 0.55) 0%, rgba(10, 13, 32, 0.08) 42%, rgba(10, 13, 32, 0.9) 100%);
    transition: opacity 0.4s ease;
}

.vcs-card__tag {
    position: absolute;
    top: 28px;
    left: 30px;
    right: 90px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.vcs-card__arrow {
    position: absolute;
    top: 20px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    font-size: 1.05rem;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.vcs-card:hover .vcs-card__arrow {
    border-color: transparent;
    background: var(--gradient-primary);
    transform: rotate(45deg);
}

.vcs-card__title {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(1.625rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.vcs-card__title u {
    padding-bottom: 2px;
    border-bottom: 3px solid #fff;
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.vcs-card:hover .vcs-card__title u { border-color: #b98ce6; }

.vcs-card:focus-visible {
    outline: 3px solid var(--primary, #5f0a87);
    outline-offset: 4px;
}

/* ==========================================================================
   PROJECT PAGE
   ========================================================================== */
.vcs-detail {
    padding-top: 90px;
}

.vcs-detail__title {
    max-width: 1100px;
    margin: 0 0 45px;
    font-family: var(--font-primary);
    font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.625rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--vcs-ink);
}

.vcs-detail__hero {
    margin: 0 0 80px;
    overflow: hidden;
    border-radius: var(--vcs-radius);
    box-shadow: 0 25px 60px -15px rgba(30, 20, 80, 0.2);
}

.vcs-detail__hero img {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.vcs-heading {
    margin: 0 0 25px;
    font-family: var(--font-primary);
    font-size: clamp(1.875rem, 1.4rem + 1.3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--vcs-ink);
}

/* Facts grid: label over value, two columns */
.vcs-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
    margin: 35px 0 0;
}

.vcs-facts dt {
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary, #5f0a87);
}

.vcs-facts dd {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--vcs-ink);
}

.vcs-text {
    margin: 0 0 24px !important;
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--vcs-ink-2);
}

.vcs-split { margin-bottom: 20px; }
.vcs-split--last { margin-top: 30px; }

/* Galleries */
.vcs-gallery {
    margin-top: 40px;
    margin-bottom: 75px;
}

.vcs-gallery__card {
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #eef0f6;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.1);
}

.vcs-gallery__card img {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vcs-gallery__card:hover img { transform: scale(1.03); }

/* Dark feature panel (navy with a soft brand glow in one corner) */
.vcs-dark.row {
    margin: 110px 0 90px;
    padding: 75px 55px;
    border-radius: var(--vcs-radius);
    background:
        radial-gradient(60% 90% at 100% 100%, rgba(95, 10, 135, 0.35) 0%, rgba(95, 10, 135, 0) 70%),
        var(--vcs-navy);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.3);
}

.vcs-dark .vcs-heading { color: #fff; }
.vcs-dark .vcs-text { color: #cbd5e1; }
.vcs-dark .vcs-text:last-child { margin-bottom: 0 !important; }

/* Call to action under the result */
.vcs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 15px 30px;
    border-radius: var(--radius-full, 999px);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease;
}

.vcs-btn:hover { color: #fff; transform: translateY(-2px); }
.vcs-btn i { transition: transform 0.3s ease; }
.vcs-btn:hover i { transform: translateX(4px); }

/* Next case study */
.vcs-next {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 24px;
    margin-top: 90px;
    padding: 36px 0;
    border-top: 1px solid var(--vcs-line);
    border-bottom: 1px solid var(--vcs-line);
    color: var(--vcs-ink);
    text-decoration: none;
}

.vcs-next__label {
    grid-column: 1;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary, #5f0a87);
}

.vcs-next__name {
    grid-column: 1;
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.vcs-next__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid var(--vcs-line);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.vcs-next:hover { color: var(--vcs-ink); }

.vcs-next:hover .vcs-next__arrow {
    border-color: transparent;
    background: var(--gradient-primary);
    color: #fff;
    transform: translateX(6px);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .vcs-page { --vcs-header-h: 100px; }
    .vcs-card--md { height: 440px; }
    .vcs-card--lg,
    .vcs-card--full { height: 460px; }
    .vcs-detail__hero img { height: 400px; }
    .vcs-gallery__card img { height: 360px; }
    .vcs-dark.row { padding: 55px 30px; }
}

@media (max-width: 767px) {
    .vcs-container { padding: 0 20px; }
    .vcs-hero { min-height: 0; padding: calc(var(--vcs-header-h) + 40px) 0 80px; }
    .vcs-hero--detail { padding-bottom: 70px; }
    .vcs-filter { padding: 60px 0 40px; }
    .vcs-tabs { gap: 10px; }
    .vcs-tabs .nav-link { padding: 10px 18px; }
    .vcs-card--md,
    .vcs-card--lg,
    .vcs-card--full { height: 400px; }
    .vcs-card__tag { top: 24px; left: 24px; }
    .vcs-card__title { left: 24px; right: 24px; bottom: 24px; }
    .vcs-detail { padding-top: 60px; }
    .vcs-detail__hero { margin-bottom: 50px; }
    .vcs-detail__hero img { height: 260px; }
    .vcs-gallery__card img { height: 280px; }
    .vcs-facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .vcs-dark.row { margin: 70px 0 60px; padding: 40px 22px; border-radius: 24px; }
    .vcs-next { margin-top: 60px; }
    .vcs-next__arrow { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .vcs-card,
    .vcs-card__img,
    .vcs-card__arrow,
    .vcs-gallery__card img,
    .vcs-btn,
    .vcs-next__arrow { transition: none; }
    .vcs-card:hover,
    .vcs-card:hover .vcs-card__img,
    .vcs-card:hover .vcs-card__arrow,
    .vcs-gallery__card:hover img,
    .vcs-btn:hover,
    .vcs-next:hover .vcs-next__arrow { transform: none; }
}
