/* ==========================================================================
   VivaMama — 2026 restructure
   Loaded after style.css. Everything here reuses the existing brand tokens
   (--primary-color #50169f, --accent-color #ffde59, Lexend) — no new palette,
   no new typeface. Additive only: nothing in style.css is overridden except
   where the new hero replaces the old image hero.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.vm-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Keyboard users land here first; invisible until focused. */
.vm-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    display: inline-block;
    padding: 12px 22px;
    border-radius: 0 0 10px 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease-in-out;
}

.vm-skip-link:focus {
    top: 0;
    color: var(--primary-color);
}

/* A visible focus ring everywhere — the theme has none by default. */
a:focus-visible,
button:focus-visible,
.btn-default:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.accordion-button:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 6px;
}

.dark-section a:focus-visible,
.vm-hero a:focus-visible,
.vm-hero button:focus-visible {
    outline-color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   Homepage video hero
   Desktop: 9:16 film on the left, existing hero copy on the right.
   Mobile : film stacked above the copy.
   -------------------------------------------------------------------------- */

.vm-hero {
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    margin-top: -115px;
    padding: 170px 0 90px;
    overflow: hidden;
}

/* Same purple veil as the original hero, so the section still reads as
   VivaMama purple regardless of the background image behind it. */
.vm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0.92;
    z-index: 1;
}

.vm-hero .hero-section,
.vm-hero .container-fluid,
.vm-hero .vm-hero-row {
    position: relative;
    z-index: 2;
}

.vm-hero-row {
    row-gap: 40px;
}

/* --- The film ------------------------------------------------------------ */

.vm-hero-media {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.vm-hero-video-frame {
    position: relative;
    /* Reserve the exact box before the video loads: no layout shift, no CLS. */
    aspect-ratio: 9 / 16;
    width: 100%;
    overflow: hidden;
    /* Matches the 40px radius the theme already uses on .bg-section panels. */
    border-radius: 32px;
    background: #2b0a58 center/cover no-repeat;
    /* Purple-tinted, never black — consistent with the brand's soft shadows. */
    box-shadow: 0 24px 60px rgba(53, 11, 109, 0.45),
                0 4px 14px rgba(53, 11, 109, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.vm-hero-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    /* The film carries burned-in captions — `cover` is safe here only because
       the frame keeps the source's own 9:16 ratio, so nothing is ever cropped. */
    object-fit: cover;
    background: #2b0a58;
}

/* Play/pause control — WCAG 2.2.2 for any content that moves for >5s. */
.vm-hero-video-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(53, 11, 109, 0.72);
    backdrop-filter: blur(6px);
    color: var(--white-color);
    font-size: 14px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.25s ease-in-out, background 0.25s ease-in-out;
}

.vm-hero-video-frame:hover .vm-hero-video-toggle,
.vm-hero-video-toggle:focus-visible {
    opacity: 1;
    background: var(--accent-color);
    color: var(--primary-color);
}

/* --- The copy ------------------------------------------------------------ */

.vm-hero-content {
    align-content: center;
}

.vm-hero .section-title h1 {
    margin-bottom: 0;
}

.vm-hero .section-title p {
    max-width: 34em;
    margin-top: 20px;
    color: var(--white-color);
    opacity: 0.92;
}

.vm-hero .section-title h3 {
    color: var(--accent-color);
}

.vm-hero .section-title h3::before {
    background: var(--accent-color);
}

.vm-hero-body {
    border-top: 1px solid var(--dark-divider-color);
    margin-top: 36px;
    padding-top: 36px;
}

.vm-hero-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: center;
}

/* Secondary CTA: outlined, so the yellow primary keeps all the emphasis. */
.vm-btn-ghost {
    background: transparent;
    color: var(--white-color);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.vm-btn-ghost:hover {
    color: var(--white-color);
}

/* Anyone who asks for less motion keeps the poster frame: vm-hero-video.js
   never attaches the <source> elements, so the film is neither fetched nor
   played and the browser paints the poster instead. */
@media (prefers-reduced-motion: reduce) {
    .vm-hero-video-toggle {
        opacity: 1;
    }
}

@media only screen and (max-width: 1300px) {
    .vm-hero {
        padding: 150px 0 80px;
    }

    .vm-hero-media {
        max-width: 330px;
    }
}

@media only screen and (max-width: 991px) {
    .vm-hero {
        margin-top: -68px;
        padding: 120px 0 70px;
        text-align: left;
    }

    .vm-hero-media {
        max-width: 300px;
        margin-bottom: 10px;
    }

    .vm-hero-video-frame {
        border-radius: 26px;
    }

    .vm-hero-body {
        margin-top: 28px;
        padding-top: 28px;
    }
}

@media only screen and (max-width: 767px) {
    .vm-hero {
        padding: 110px 0 60px;
    }

    .vm-hero-media {
        max-width: 250px;
    }

    .vm-hero-btn .btn-default {
        width: 100%;
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   Navigation — active state, sticky behaviour, header CTAs
   -------------------------------------------------------------------------- */

/* The walker adds .active to the current item; give it a visible marker. */
.navbar-nav .nav-item.active > .nav-link,
.navbar-nav .nav-item .nav-link[aria-current="page"] {
    color: var(--accent-color);
    font-weight: 700;
}

.navbar-nav .nav-item.active > .nav-link::after,
.navbar-nav .nav-item .nav-link[aria-current="page"]::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 4px;
    border-radius: 2px;
    background: var(--accent-color);
}

/* Header buttons: Contact Us (ghost) + Download App (accent). */
.header-btn {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn .btn-default {
    padding: 13px 40px 13px 22px;
    font-size: 15px;
}

.header-btn .vm-btn-ghost {
    background: transparent;
    color: var(--white-color);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.header-btn .vm-btn-ghost:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

@media only screen and (max-width: 1300px) {
    .header-btn .btn-default {
        padding: 12px 32px 12px 18px;
        font-size: 14px;
    }
}

/* Below the desktop breakpoint the buttons live inside the slicknav drawer. */
@media only screen and (max-width: 991px) {
    .header-btn {
        display: none;
    }

    .vm-mobile-cta {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px 20px;
    }

    .vm-mobile-cta .btn-default {
        flex: 1 1 auto;
        text-align: left;
    }
}

@media only screen and (min-width: 992px) {
    .vm-mobile-cta {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Restructured page sections
   -------------------------------------------------------------------------- */

/* "Recognised By" — was hard-coded in front-page.php, now a shared part. */
.vm-recognised-by {
    padding: 80px 0;
}

.vm-recognised-by .featured_in_item figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.vm-recognised-by .featured_in_item img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* The 1,000 Day Model — phase rail on For Partners. */
.vm-day-model {
    padding: 90px 0;
}

.vm-day-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.vm-day-model-item {
    position: relative;
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--secondary-color);
    border: 1px solid var(--divider-color);
    transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out;
}

.vm-day-model-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(53, 11, 109, 0.14);
}

.vm-day-model-step {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vm-day-model-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.vm-day-model-item p {
    margin-bottom: 0;
}

/* Our Services — placeholder scaffold. */
.vm-services-scaffold {
    padding: 90px 0;
}

.vm-placeholder-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 780px;
    margin: 0 auto 50px;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px dashed var(--primary-color);
    background: var(--secondary-color);
    color: var(--text-color);
}

.vm-placeholder-note i {
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1.6;
}

.vm-placeholder-note p {
    margin: 0;
}

.vm-service-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.vm-service-placeholder {
    padding: 34px 30px;
    border-radius: 20px;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    box-shadow: 0 8px 24px rgba(53, 11, 109, 0.06);
}

.vm-service-placeholder h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.vm-status-chip {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--divider-color);
}

.vm-status-chip.is-live {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Default page template body copy. */
.vm-page-content {
    padding: 80px 0;
}

.vm-page-content .vm-prose {
    max-width: 800px;
}

.vm-page-content .vm-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

@media only screen and (max-width: 767px) {
    .vm-recognised-by,
    .vm-day-model,
    .vm-services-scaffold,
    .vm-page-content {
        padding: 50px 0;
    }
}

/* --------------------------------------------------------------------------
   Section eyebrow
   The small uppercase label above each section heading used to be an <h3>
   sitting above an <h2>, which put every page out of heading order. It is a
   <p class="section-eyebrow"> now; these rules reproduce `.section-title h3`
   exactly, so nothing moves by a pixel.
   -------------------------------------------------------------------------- */

.section-title .section-eyebrow {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.section-title .section-eyebrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--primary-color);
    border-radius: 50%;
    width: 8px;
    height: 8px;
}

.dark-section .section-title .section-eyebrow,
.vm-hero .section-title .section-eyebrow {
    color: var(--accent-color);
}

.dark-section .section-title .section-eyebrow::before,
.vm-hero .section-title .section-eyebrow::before {
    background-color: var(--accent-color);
}

/* Footer column headings were <h3> with no <h2> above them, so every page
   reported an out-of-order heading. They are <h2> now; this matches the old
   `.footer-links h3` rule exactly. */
.footer-links .footer-links-title {
    font-size: 20px;
    color: var(--white-color);
    text-transform: capitalize;
    margin-bottom: 30px;
}
