/* ==========================================================================
   VV Techsol — inner pages
   --------------------------------------------------------------------------
   The building blocks every page below the homepage needs: a hero, content
   cards, a process strip, FAQs and cross-links. Loaded AFTER css/home.css and
   built entirely on its tokens, so the whole site reads as one design rather
   than a homepage plus a differently-styled everything-else.

   Nothing here redefines a home.css component. Sections, buttons, forms, the
   contact block, the header and the footer all come from there unchanged.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero
   The dark violet band that opens every inner page, matching the pricing
   hero. Two shapes: centred (default) for pages with no artwork, and .split
   for pages that lead with an image.
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(120% 130% at 50% -20%, #2a1250 0%, #160d28 52%, #0c0812 90%);
    padding: 150px 0 86px;
}
.page-hero .grid-overlay {
    -webkit-mask: radial-gradient(80% 80% at 50% 20%, #000, transparent 80%);
    mask: radial-gradient(80% 80% at 50% 20%, #000, transparent 80%);
}
.page-hero-glow {
    position: absolute; width: 620px; height: 620px; right: -120px; top: -180px;
    background: radial-gradient(circle, rgba(192, 38, 211, .38) 0%, rgba(124, 58, 237, .18) 44%, transparent 68%);
    filter: blur(6px); pointer-events: none; z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }

.page-hero .eyebrow { color: #d8b4fe; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 {
    color: #fff; font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.06;
}
.page-hero h1 .gradient-text {
    background: linear-gradient(120deg, #c4b5fd, #f0abfc);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero .hero-lead {
    margin-top: 20px; color: var(--on-dark-soft);
    font-size: 1.12rem; line-height: 1.7; max-width: 520px;
}

/* Centred variant */
.page-hero.center { text-align: center; }
.page-hero.center .page-hero-inner { max-width: 760px; margin: 0 auto; }
.page-hero.center .eyebrow { justify-content: center; }
.page-hero.center .hero-lead { margin-left: auto; margin-right: auto; max-width: 560px; }
.page-hero.center .hero-actions { justify-content: center; }
.page-hero.center .crumbs { justify-content: center; }

/* Split variant — copy left, artwork right */
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.crumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 30px; font-size: .88rem; color: rgba(255, 255, 255, .48);
}
.crumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: #d8b4fe; }
.crumbs span[aria-current] { color: #d8b4fe; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Artwork sits in a soft-edged frame so photos of any crop look deliberate. */
.hero-media {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 40px 90px rgba(12, 8, 18, .55);
}
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(124, 58, 237, .22), transparent 58%);
    pointer-events: none;
}
.hero-media.tall img { aspect-ratio: 3 / 4; }

/* A small stat rail under the hero copy, for pages that have numbers worth
   leading with. */
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 40px; }
.hero-stat strong {
    display: block; font-family: var(--font-display); font-size: 1.9rem;
    font-weight: 800; letter-spacing: -.02em;
    background: linear-gradient(120deg, #c4b5fd, #f0abfc);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat span { font-size: .84rem; color: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------------------------
   Lead paragraph — the standalone intro some pages open with
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.78; }
.prose.center { margin: 0 auto; text-align: center; }
.prose p + p { margin-top: 18px; }

/* The overview reads as a statement rather than a paragraph under a heading
   called "Overview", which carries no meaning for a reader or for search. */
.intro-statement { max-width: 900px; margin: 0 auto; text-align: center; }
.intro-statement p {
    margin-top: 20px; color: var(--ink);
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.18rem, 2.1vw, 1.62rem); line-height: 1.56; letter-spacing: -.012em;
}

/* --------------------------------------------------------------------------
   Project facts — client / timeline / category, directly under a case-study hero
   -------------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.fact {
    padding: 26px 28px; border-radius: var(--r-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.fact-label {
    display: flex; align-items: center; gap: 9px;
    font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.fact-value { margin-top: 10px; font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; color: var(--ink); }

/* --------------------------------------------------------------------------
   Split content block — narrative on one side, artwork on the other
   -------------------------------------------------------------------------- */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: center; }
.split-block.flip .split-media { order: -1; }
.split-copy p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.78; }
.split-copy p + p { margin-top: 16px; }
.split-copy ul { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.split-copy li {
    position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6;
}
.split-copy li::before {
    content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 1px; color: var(--brand); font-size: .95rem;
}
.split-media {
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.split-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* --------------------------------------------------------------------------
   Capability cards
   -------------------------------------------------------------------------- */
.icards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
/* Capped at three so a six-card set reads as two clean rows rather than a row
   of four narrow cards and a stranded pair. */
@media (min-width: 1080px) { .icards { grid-template-columns: repeat(3, 1fr); } }
.icard {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.icard-icon {
    width: 54px; height: 54px; border-radius: 15px; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; font-size: 1.35rem;
    box-shadow: 0 10px 24px rgba(109, 40, 217, .26);
}
.icard h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.icard p { color: var(--ink-soft); font-size: .97rem; line-height: 1.68; }

/* On a soft/lavender section the cards need a touch more definition. */
.section-soft .icard, .section-lav .icard { border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.step { position: relative; padding: 32px 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step-num {
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Tech / tooling chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip-badge {
    padding: 11px 22px; border-radius: var(--r-full);
    background: #fff; border: 1px solid var(--line-strong);
    font-size: .92rem; font-weight: 600; color: var(--ink-soft);
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.chip-badge:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   FAQ accordion — same behaviour main.js already drives on the pricing page
   -------------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--dur) var(--ease); }
.faq-item.active { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.faq-question {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.faq-question i { color: var(--brand); transition: transform var(--dur) var(--ease); flex: 0 0 auto; }
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-item.active .faq-answer { max-height: 420px; }
.faq-answer p { padding: 0 24px 22px; color: var(--ink-soft); font-size: .96rem; line-height: 1.68; }

/* --------------------------------------------------------------------------
   Screenshot gallery — used by the case studies that show the built product
   -------------------------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.shot {
    border-radius: var(--r-lg); overflow: hidden; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.shot.wide { grid-column: 1 / -1; }
.shot img { width: 100%; display: block; }
.shot-note { padding: 18px 22px 20px; font-size: .93rem; line-height: 1.6; color: var(--ink-soft); border-top: 1px solid var(--line); }
.shot-note strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Cross-link tiles — related services, industries or case studies
   -------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.tile {
    position: relative; display: block; overflow: hidden; text-decoration: none;
    border-radius: var(--r-lg); aspect-ratio: 4 / 3; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.tile::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12, 8, 18, .88) 0%, rgba(12, 8, 18, .30) 45%, transparent 72%);
}
.tile span {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: #fff;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tile:hover img { transform: scale(1.07); }

/* Text-only cross-links, where there is no artwork worth showing. */
.linkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.linkcard {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 22px 24px; border-radius: var(--r-md); background: #fff;
    border: 1px solid var(--line); text-decoration: none;
    font-family: var(--font-display); font-weight: 600; color: var(--ink);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.linkcard i { color: var(--brand); transition: transform var(--dur) var(--ease); }
.linkcard:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.linkcard:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Blog listing cards
   -------------------------------------------------------------------------- */
.postcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.postcard {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.postcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.postcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-lav); }
.postcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.postcard:hover .postcard-media img { transform: scale(1.06); }
.postcard-badge {
    position: absolute; left: 16px; top: 16px; z-index: 2;
    padding: 7px 14px; border-radius: var(--r-full);
    background: rgba(255, 255, 255, .94); color: var(--brand);
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.postcard-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.postcard-title {
    font-family: var(--font-display); font-size: 1.16rem; font-weight: 700;
    line-height: 1.4; letter-spacing: -.015em; color: var(--ink);
}
.postcard-excerpt { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; flex: 1; }
.postcard-meta {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .84rem;
}
.postcard-meta i { color: var(--brand); margin-right: 6px; }

/* --------------------------------------------------------------------------
   Article body — the blog detail page's rendered content
   -------------------------------------------------------------------------- */
.article { max-width: 780px; margin: 0 auto; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.82; }
.article > * + * { margin-top: 20px; }
.article h2 {
    margin-top: 46px; font-family: var(--font-display); color: var(--ink);
    font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.25;
}
.article h3 {
    margin-top: 34px; font-family: var(--font-display); color: var(--ink);
    font-size: 1.24rem; font-weight: 700; letter-spacing: -.015em;
}
.article ul, .article ol { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li::marker { color: var(--brand); }
.article a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--brand-deep); }
.article img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.article blockquote {
    padding: 4px 0 4px 24px; border-left: 3px solid var(--brand);
    font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); font-style: italic;
}
.article code { background: var(--bg-lav); padding: 2px 7px; border-radius: 6px; font-size: .92em; color: var(--brand-deep); }
.article pre { background: var(--dark); color: #e7e1f5; padding: 20px 22px; border-radius: var(--r-md); overflow-x: auto; }
.article pre code { background: none; color: inherit; padding: 0; }
.article table { width: 100%; border-collapse: collapse; }
.article th, .article td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.article th { font-family: var(--font-display); color: var(--ink); background: var(--bg-soft); }

.article-meta {
    display: flex; flex-wrap: wrap; gap: 22px; align-items: center;
    color: rgba(255, 255, 255, .62); font-size: .9rem; margin-top: 26px;
}
.article-meta i { color: #d8b4fe; margin-right: 7px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 780px; margin: 46px auto 0; }
.tag {
    padding: 8px 16px; border-radius: var(--r-full);
    background: var(--bg-lav); border: 1px solid var(--line);
    font-size: .84rem; font-weight: 600; color: var(--ink-soft);
}

/* Previous / next article */
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 780px; margin: 0 auto; }
.postnav a {
    display: flex; flex-direction: column; gap: 8px; padding: 24px 26px;
    border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); text-decoration: none;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.postnav a:hover { border-color: var(--brand); transform: translateY(-3px); }
.postnav .pn-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.postnav .pn-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.45; }
.postnav a.next { text-align: right; align-items: flex-end; }
@media (max-width: 640px) { .postnav { grid-template-columns: 1fr; } .postnav a.next { text-align: left; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Closing CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative; overflow: hidden; text-align: center; color: #fff; padding: 96px 0;
    background: radial-gradient(120% 120% at 50% 0%, #3a0f5c 0%, #180b2c 45%, #0c0912 82%);
}
.cta-band h2 { color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -.03em; }
.cta-band h2 .gradient-text {
    background: linear-gradient(120deg, #c4b5fd, #f0abfc);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cta-band p { margin: 16px auto 30px; color: var(--on-dark-soft); font-size: 1.08rem; max-width: 520px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .page-hero-grid, .split-block { grid-template-columns: 1fr; gap: 44px; }
    .split-block.flip .split-media { order: 0; }
    .page-hero { padding: 128px 0 70px; }
    .hero-media img, .hero-media.tall img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
    .page-hero { padding: 116px 0 58px; }
    .hero-stats { gap: 26px; }
    .hero-actions .btn { width: 100%; }
    .icard, .step { padding: 26px 22px; }
    .faq-question { font-size: .98rem; padding: 18px 18px; }
    .faq-answer p { padding: 0 18px 18px; }
}

/* Icon + label inside a link card, so the two do not run together. */
.linkcard span { display: inline-flex; align-items: center; gap: 10px; }
.linkcard span i { color: var(--brand); }
