/*
 * Variant C — "Mjuk & modern".
 *
 * The familiar layout, warmed up. Scoped under .vep-fp-c and layered over
 * main.css; the palette is redefined through main.css's own tokens so the
 * header and footer come along without restyling them.
 *
 * The aim is the smallest change that removes the "generated" tells: warmth
 * instead of the cold blue-grey tint, fewer and larger cards, a real photo
 * where there was a grey box with a stock icon, and an alternating section
 * rhythm so the page stops repeating the same centred block.
 */

.vep-fp-c {
    --color-bg: #fdfaf6;
    --color-bg-alt: #f5eee4;
    --color-blue-tint: #f5eee4;
    --color-blue-tint-2: #ece1d2;
    --color-text: #322e28;
    --color-text-muted: #6b6459;
    --color-border: #e8ded0;

    --fp-cream: #f5eee4;
    --fp-gold: var(--color-accent);
    --fp-navy: var(--color-primary);
}

.vep-fp-c .c-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-text);
    margin-bottom: var(--space-2);
}

.vep-fp-c .c-section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.vep-fp-c .c-section--tint {
    background: var(--fp-cream);
}

.vep-fp-c .c-head {
    max-width: 40rem;
    margin-bottom: var(--space-4);
}

.vep-fp-c .c-head--center {
    margin-inline: auto;
    text-align: center;
}

.vep-fp-c .c-head h2 {
    margin: 0 0 var(--space-2);
    font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
    letter-spacing: -0.015em;
    color: var(--fp-navy);
}

.vep-fp-c .c-head p {
    margin: 0;
    color: var(--color-text-muted);
}

/* ---- Hero -------------------------------------------------------------- */

.vep-fp-c .c-hero {
    background: linear-gradient(180deg, var(--fp-cream) 0%, var(--color-bg) 100%);
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.vep-fp-c .c-hero__inner {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 60rem) {
    .vep-fp-c .c-hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.vep-fp-c .c-hero h1 {
    margin: 0 0 var(--space-3);
    font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--fp-navy);
    text-wrap: balance;
}

.vep-fp-c .c-hero__lead {
    margin: 0 0 var(--space-4);
    font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 34rem;
}

.vep-fp-c .c-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.vep-fp-c .c-hero__trust {
    margin: var(--space-4) 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.vep-fp-c .c-hero__trust span {
    color: var(--color-accent-text);
    margin-inline: 0.4rem;
}

/* Large radius and a soft shadow rather than a hard frame — the rounded, soft
   direction the client asked for, applied to the photo itself. */
.vep-fp-c .c-hero__photo {
    margin: 0;
}

.vep-fp-c .c-hero__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    /* --fx/--fy are the client's framing from the Customizer (set inline on the
       figure); the fallbacks match the sliders' defaults. */
    object-position: var(--fx, 50%) var(--fy, 30%);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 48px rgba(25, 25, 112, 0.14);
}

/*
 * Landscape hero photo (a group shot, the office): shown uncropped, because a
 * 4:5 frame would cut off the outer people. It stays in the right-hand column
 * rather than spanning the page — a full-width band was tried first and was
 * judged too large. Applied automatically when the photo chosen in the
 * Customizer is wider than it is tall — see vep_image_is_landscape().
 */
.vep-fp-c .c-hero--wide .c-hero__photo img {
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

/*
 * Hero style "logo": the photo shows only through the VEP logo mark.
 *
 * The photo is an <img> and logo-mark-mask.png is a mask over its box. The
 * client frames the photo with three Customizer sliders, delivered as the
 * custom properties --fx, --fy (focal point, %) and --zoom (scale), so a
 * different face or detail can be slid into the logo without code. The mask
 * is the white mark from the brand pack with its luminance converted to alpha
 * (so white = photo visible, black = transparent). It is a 786x566 raster, so
 * this is the largest it should be shown; if it is ever needed bigger, ask the
 * designer for a true vector logo.
 *
 * Two elements on purpose: the figure carries the drop-shadow and the inner
 * span carries the mask. CSS applies `filter` BEFORE `mask` on the same
 * element, so a shadow on the masked element itself would be masked away; on
 * the parent it is computed from the already-masked child and so traces the
 * letter edges instead of the box.
 */
.vep-fp-c .c-hero__mark {
    margin: 0;
    width: 100%;
    max-width: 30rem;
    justify-self: center;
    filter: drop-shadow(0 10px 22px rgba(25, 25, 112, 0.18));
}

.vep-fp-c .c-hero__mark-fill {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 786 / 566;
    overflow: hidden;
    -webkit-mask: url("../img/logo-mark-mask.png") center / contain no-repeat;
    mask: url("../img/logo-mark-mask.png") center / contain no-repeat;
}

.vep-fp-c .c-hero__mark-fill img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--fx, 50%) var(--fy, 35%);
    /* Zoom around the same point the photo is framed on, so "zoom in" magnifies
       what the sliders point at rather than the middle of the picture. */
    transform: scale(var(--zoom, 1));
    transform-origin: var(--fx, 50%) var(--fy, 35%);
}

/* A light navy veil over the photo. Most of the supplied photos have a pale grey
   wall, which dissolves into the cream page and leaves holes in the letters; the
   veil deepens it toward the brand colour so the mark reads. */
.vep-fp-c .c-hero__mark-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 112, 0.30);
    pointer-events: none;
}

/* ---- Service cards ------------------------------------------------------ */

.vep-fp-c .c-cards {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.vep-fp-c .c-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-softer);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vep-fp-c .c-card:hover,
.vep-fp-c .c-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: color-mix(in srgb, var(--fp-gold) 45%, transparent);
}

/* The icon sits inline and gold rather than boxed in a tinted square, which is
   the detail that made the old grid look like a SaaS feature matrix. */
.vep-fp-c .c-card__icon {
    color: var(--color-accent-text);
    display: inline-flex;
}

.vep-fp-c .c-card__icon svg {
    width: 1.9rem;
    height: 1.9rem;
}

.vep-fp-c .c-card h3 {
    margin: var(--space-2) 0 0;
    font-size: 1.3rem;
    color: var(--fp-navy);
}

.vep-fp-c .c-card p {
    margin: 0;
    color: var(--color-text-muted);
}

.vep-fp-c .c-card__more {
    margin-top: auto;
    padding-top: var(--space-2);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent-text);
}

.vep-fp-c .c-cards__more {
    margin-top: var(--space-4);
    text-align: center;
}

/* ---- Steps -------------------------------------------------------------- */

.vep-fp-c .c-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
    .vep-fp-c .c-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(1.5rem, 4vw, 3rem);
    }
}

.vep-fp-c .c-steps li {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

.vep-fp-c .c-steps__num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--fp-gold) 16%, transparent);
    color: var(--color-accent-text);
    font-weight: 700;
}

.vep-fp-c .c-steps h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: var(--fp-navy);
}

.vep-fp-c .c-steps p {
    margin: 0;
    color: var(--color-text-muted);
}

/* ---- About split -------------------------------------------------------- */

.vep-fp-c .c-split {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 56rem) {
    .vep-fp-c .c-split {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

/* Neutral crop: this slot now takes an office photo as often as a portrait,
   so there is no face to bias the framing towards. */
.vep-fp-c .c-split__media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.vep-fp-c .c-split__content h2 {
    margin: 0 0 var(--space-2);
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
    color: var(--fp-navy);
}

.vep-fp-c .c-split__content p {
    color: var(--color-text-muted);
}

.vep-fp-c .c-team {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.vep-fp-c .c-team__avatars {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vep-fp-c .c-team__avatars li + li {
    margin-left: -0.9rem;
}

.vep-fp-c .c-team__avatars img {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    object-fit: cover;
    object-position: center 30%; /* see .team-card__photo img in main.css */
    border: 3px solid var(--color-bg);
}

/* ---- Quotes ------------------------------------------------------------- */

/* The lead quote spans the full width and the others sit in two columns below
   it. The earlier layout (lead beside a stacked column) worked for three
   quotes but turns lopsided with five: one short card next to a tall column. */
.vep-fp-c .c-quotes {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
}

.vep-fp-c .c-quotes__rest {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
    .vep-fp-c .c-quotes__rest {
        grid-template-columns: 1fr 1fr;
    }
}

.vep-fp-c .c-quote {
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-softer);
}

.vep-fp-c .c-quote--lead {
    background: var(--fp-cream);
    border-color: color-mix(in srgb, var(--fp-gold) 32%, transparent);
}

/* Without a logo each quote opens with a gold quotation mark — drawn by CSS so
   it needs no asset and cannot be mistaken for part of the customer's words. */
.vep-fp-c .c-quote:not(.c-quote--logo)::before {
    content: "\201C";
    display: block;
    font-size: 3.2rem;
    line-height: 0.8;
    height: 1.6rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--fp-gold) 70%, transparent);
    margin-bottom: var(--space-1);
}

.vep-fp-c .c-quote--lead blockquote {
    max-width: 54rem;
}

.vep-fp-c .c-quote__logo {
    max-height: 1.9rem;
    width: auto;
    margin-bottom: var(--space-2);
}

.vep-fp-c .c-quote blockquote {
    margin: 0 0 var(--space-2);
    color: var(--color-text);
}

.vep-fp-c .c-quote--lead blockquote {
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
    line-height: 1.4;
    color: var(--fp-navy);
}

.vep-fp-c .c-quote figcaption {
    display: flex;
    flex-direction: column;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.vep-fp-c .c-quote figcaption strong {
    color: var(--color-text);
}

/* ---- Message ------------------------------------------------------------ */

.vep-fp-c .c-message {
    max-width: 46rem;
}

.vep-fp-c .c-message .c-head {
    margin-bottom: var(--space-2);
}

.vep-fp-c .c-message__date {
    margin: 0 0 var(--space-2);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.vep-fp-c .c-message p {
    color: var(--color-text-muted);
}

/* ---- Closing CTA -------------------------------------------------------- */

/* Warm panel with a gold hairline instead of the full-width dark navy slab the
   page used to end on. */
.vep-fp-c .c-cta {
    background: var(--fp-cream);
    border: 1px solid color-mix(in srgb, var(--fp-gold) 38%, transparent);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.vep-fp-c .c-cta__slogan {
    margin: 0 0 var(--space-2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-text);
}

.vep-fp-c .c-cta h2 {
    margin: 0 0 var(--space-2);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    color: var(--fp-navy);
    text-wrap: balance;
}

.vep-fp-c .c-cta > p {
    margin: 0 auto var(--space-3);
    max-width: 34rem;
    color: var(--color-text-muted);
}

.vep-fp-c .c-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.vep-fp-c .c-cta__phone {
    color: var(--color-text-muted);
    text-decoration: none;
}

.vep-fp-c .c-cta__phone strong {
    color: var(--fp-navy);
    border-bottom: 2px solid color-mix(in srgb, var(--fp-gold) 55%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .vep-fp-c * {
        transition: none !important;
    }
}
