/* ==========================================================================
   Public site theme: Corpiva (evotechgd.com layout, logo-orange accent)
   --------------------------------------------------------------------------
   The bright, sharp WordPress look of the main site: white canvas, logo orange
   accent (#f86808), Plus Jakarta Sans body with Urbanist headings, pill
   buttons, a dark top bar over a white header and a deep-navy footer.

   Layered on top of style.css and style-modern.css. It mostly re-points the
   modern skin's --evp-* tokens and then restyles what the tokens cannot reach.
   Enabled with $site['public_theme'] = 'corpiva'; preview with ?theme=corpiva.
   ========================================================================== */

:root {
    --evp-primary:       #f86808;
    --evp-primary-hover: #dd5a00;
    --evp-primary-soft:  #fff1e6;

    --evp-ink:        #1c1a1b;
    --evp-ink-soft:   #334770;
    --evp-muted:      #5d6b87;
    --evp-bg:         #ffffff;
    --evp-surface:    #ffffff;
    --evp-border:     #e5eaf1;

    --evp-radius:    10px;
    --evp-radius-lg: 16px;

    --evp-shadow-sm: 0 1px 2px rgba(28, 26, 27, .05);
    --evp-shadow-md: 0 2px 4px rgba(28, 26, 27, .04), 0 12px 28px -12px rgba(28, 26, 27, .16);
    --evp-shadow-lg: 0 4px 8px rgba(28, 26, 27, .05), 0 26px 50px -20px rgba(28, 26, 27, .26);

    --evp-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --evc-head: "Urbanist", "Plus Jakarta Sans", -apple-system, "Segoe UI", Arial, sans-serif;
    --evc-green: #f86808;
    --evc-green-dark: #d95700;
    --evc-dark: #0f0d1d;
}

body.theme-corpiva { font-size: 15px; line-height: 1.7; color: var(--evp-ink-soft); background: #fff; }
.theme-corpiva h1, .theme-corpiva h2, .theme-corpiva h3, .theme-corpiva h4 {
    font-family: var(--evc-head); color: var(--evp-ink); font-weight: 700; letter-spacing: -.015em;
}
.theme-corpiva h1 { line-height: 1.08; }
.theme-corpiva p { color: var(--evp-ink-soft); }

/* ----------------------------------------------------------------- top bar */
.evc-topbar { background: #1c1a1b; color: #fff; font-size: .82rem; position: relative; z-index: 31; }
.evc-topbar-in { display: flex; align-items: stretch; justify-content: space-between; min-height: 38px; }
.evc-top-left { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.evc-dot { width: 14px; height: 14px; border-radius: 3px; background: var(--evc-green); clip-path: polygon(0 100%, 50% 0, 100% 100%, 50% 70%); }
.evc-top-right {
    display: inline-flex; align-items: center; gap: 22px; padding: 0 28px 0 54px; margin-right: -1px;
    background: var(--evc-green); color: #fff; font-weight: 600;
    clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);
}
.evc-top-right a { color: #fff; text-decoration: none; }
.evc-top-right a:hover { text-decoration: underline; }
@media (max-width: 900px) { .evc-top-right span:first-child, .evc-top-right a:nth-child(2) { display: none; } .evc-top-right { padding: 0 18px 0 34px; gap: 12px; } }
@media (max-width: 520px) { .evc-topbar { display: none; } }

/* ------------------------------------------------------------------ header */
.theme-corpiva .site-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--evp-border); box-shadow: 0 6px 22px -18px rgba(28, 26, 27, .35); }
.theme-corpiva .nav-shell { align-items: center; gap: 18px; }
.theme-corpiva .brand strong { font-family: var(--evc-head); color: var(--evp-ink); font-weight: 800; }
.theme-corpiva .brand small { color: var(--evp-muted); }
.theme-corpiva .site-nav a {
    position: relative; border-radius: 0; background: transparent; color: var(--evp-ink-soft);
    font-weight: 600; font-size: .94rem; letter-spacing: 0;
}
.theme-corpiva .site-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--evc-green);
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.theme-corpiva .site-nav a:hover { background: transparent; color: var(--evc-green-dark); }
.theme-corpiva .site-nav a:hover::after, .theme-corpiva .site-nav a.active::after { transform: scaleX(1); }
.theme-corpiva .site-nav a.active { background: transparent; color: var(--evp-ink); }

.evc-quote {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 11px 14px 11px 22px; border-radius: 88px; background: var(--evc-green); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none;
    box-shadow: 0 10px 22px -10px rgba(217, 87, 0, .8); transition: transform .15s, background .15s;
}
.evc-quote span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.14); font-size: 1.1rem; line-height: 1; }
.evc-quote:hover { background: var(--evc-green-dark); transform: translateY(-1px); color: #fff; }
@media (max-width: 1100px) { .evc-quote { display: none; } }

/* ----------------------------------------------------------------- buttons */
.theme-corpiva .btn { border-radius: 88px; font-weight: 700; padding: 13px 26px; }
.theme-corpiva .btn-primary {
    background: var(--evc-green); border-color: var(--evc-green); color: #fff;
    box-shadow: 0 12px 24px -12px rgba(217, 87, 0, .85);
}
.theme-corpiva .btn-primary:hover { background: var(--evc-green-dark); border-color: var(--evc-green-dark); }
.theme-corpiva .btn-secondary { background: #fff; border: 2px solid var(--evp-ink); color: var(--evp-ink); box-shadow: none; }
.theme-corpiva .btn-secondary:hover { background: var(--evp-ink); color: #fff; border-color: var(--evp-ink); }
.theme-corpiva .btn-ghost { color: var(--evc-green-dark); }

/* ---------------------------------------------------------------- sections */
.theme-corpiva .section-muted { background: #fff8f2; }
.theme-corpiva .section-heading .eyebrow,
.theme-corpiva .page-hero .eyebrow {
    padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--evc-green-dark);
    font-family: var(--evc-head); font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: none;
}
.theme-corpiva .section-heading .eyebrow::before, .theme-corpiva .page-hero .eyebrow::before { background: var(--evc-green); border-radius: 2px; width: 28px; height: 3px; }
.theme-corpiva .section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.theme-corpiva .page-hero {
    background: linear-gradient(135deg, #fff 0%, #fff4ea 100%); border-bottom: 1px solid var(--evp-border); color: var(--evp-ink);
}
.theme-corpiva .page-hero h1 { color: var(--evp-ink); }

/* ------------------------------------------------------------------ cards */
.theme-corpiva .card, .theme-corpiva .feature-card, .theme-corpiva .product-card,
.theme-corpiva .service-card, .theme-corpiva .category-card {
    border-radius: 10px; border: 1px solid var(--evp-border); box-shadow: var(--evp-shadow-sm); background: #fff;
}
.theme-corpiva .card:hover, .theme-corpiva .feature-card:hover, .theme-corpiva .product-card:hover,
.theme-corpiva .service-card:hover, .theme-corpiva .category-card:hover {
    border-color: var(--evc-green); box-shadow: var(--evp-shadow-md); transform: translateY(-4px);
}
.theme-corpiva .card-icon { background: var(--evp-primary-soft); border-radius: 50%; position: relative; }
.theme-corpiva .card-icon::after { content: ""; position: absolute; inset: 31%; border-radius: 3px; background: var(--evc-green); }
.theme-corpiva a { color: inherit; }
.theme-corpiva main a:not(.btn):not(.evc-quote):hover { color: var(--evc-green-dark); }

/* ---------------------------------------------------------------- CTA band */
.theme-corpiva .cta-band .container {
    background: linear-gradient(135deg, #fa8a08, #e05a00); box-shadow: var(--evp-shadow-lg);
}
.theme-corpiva .cta-band h2, .theme-corpiva .cta-band p { color: #fff; }
.theme-corpiva .cta-band .btn-primary { background: #1c1a1b; border-color: #1c1a1b; box-shadow: none; }
.theme-corpiva .cta-band .btn-secondary { background: transparent; border-color: #fff; color: #fff; }
.theme-corpiva .cta-band .btn-secondary:hover { background: #fff; color: var(--evc-green-dark); }

/* ------------------------------------------------------------------ footer */
.theme-corpiva .site-footer { background: var(--evc-dark); border-top: 0; color: #b0a9c0; }
.theme-corpiva .site-footer h2, .theme-corpiva .site-footer h3, .theme-corpiva .site-footer strong { color: #fff; }
.theme-corpiva .site-footer p, .theme-corpiva .site-footer li, .theme-corpiva .site-footer small { color: #b0a9c0; }
.theme-corpiva .site-footer a { color: #b0a9c0; }
.theme-corpiva .site-footer a:hover { color: var(--evc-green); }
.theme-corpiva .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.theme-corpiva .social-row a { border-color: rgba(255,255,255,.25); color: #fff; }
.theme-corpiva .social-row a:hover { background: var(--evc-green); border-color: var(--evc-green); color: #fff; }

/* -------------------------------------------------------------- video hero */
.theme-corpiva .vhero .eyebrow { color: var(--evc-green); font-family: var(--evc-head); font-size: .95rem; letter-spacing: .08em; }
.theme-corpiva .vhero h1 { font-family: var(--evc-head); font-weight: 800; letter-spacing: -.025em; }
.theme-corpiva .vhero h1 em { background: none; color: var(--evc-green); -webkit-text-fill-color: var(--evc-green); filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); position: relative; }
.theme-corpiva .vhero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; border-radius: 3px; background: var(--evc-green); }
.theme-corpiva .vhero .btn-primary { box-shadow: 0 14px 28px -12px rgba(248, 104, 8, .9); }
.theme-corpiva .vhero .btn-secondary { background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.85); color: #fff; }
.theme-corpiva .vhero .btn-secondary:hover { background: #fff; color: var(--evp-ink); }
.theme-corpiva .vhero .btn-ghost { border-color: transparent; color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.theme-corpiva .vhero-stats { border-top: 3px solid var(--evc-green); background: rgba(15, 13, 29, .5); }
.theme-corpiva .vhero-stats strong { font-family: var(--evc-head); }

/* ------------------------------------------- hero text must stay light */
.theme-corpiva .vhero .vhero-lead { color: rgba(255,255,255,.94); }
.theme-corpiva .vhero-stats span { color: rgba(255,255,255,.78); }
.theme-corpiva .vhero-stats strong { color: #fff; }

/* ----------------------------- storefront (products page) accent colours */
body.theme-corpiva {
    --blue-600: #f86808; --blue-500: #fa8a2e; --cyan-400: #f86808; --cyan-300: #fb9a3e;
    --primary: #f86808;
}
.theme-corpiva .storefront-search button,
.theme-corpiva .storefront-subnav .active,
.theme-corpiva .department-link.active,
.theme-corpiva .retail-category-tile.active span,
.theme-corpiva .market-actions .btn-primary,
.theme-corpiva .storefront-cart-count { background: var(--evc-green); border-color: var(--evc-green); color: #fff; }
.theme-corpiva .storefront-search button:hover,
.theme-corpiva .market-actions .btn-primary:hover { background: var(--evc-green-dark); border-color: var(--evc-green-dark); }
.theme-corpiva .department-link strong,
.theme-corpiva .market-card-body h2 a:hover,
.theme-corpiva .storefront-actions a { color: var(--evc-green-dark); }
.theme-corpiva .market-product-card:hover { border-color: var(--evc-green); box-shadow: var(--evp-shadow-md); }
.theme-corpiva .market-actions .btn-secondary { border: 2px solid var(--evp-ink); color: var(--evp-ink); background: #fff; }
.theme-corpiva .market-actions .btn-secondary:hover { background: var(--evp-ink); color: #fff; }
.theme-corpiva .market-actions .btn, .theme-corpiva .storefront-search button { border-radius: 88px; }
.theme-corpiva .storefront-search { border-radius: 88px; overflow: hidden; }
.theme-corpiva .trust-box li::before, .theme-corpiva .sidebar-block li::before { background: var(--evc-green); }

/* ------------------------------------------------ white buttons on the CTA band */
.theme-corpiva .btn-light, .theme-corpiva a.btn-light { background: #fff; border-color: #fff; color: var(--evp-ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.theme-corpiva .btn-light:hover { background: var(--evp-ink); border-color: var(--evp-ink); color: #fff; }
.theme-corpiva .cta-band .eyebrow { color: rgba(255,255,255,.92); }
.theme-corpiva .cta-band .eyebrow::before { background: #fff; }
.theme-corpiva .social-row a { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 700; }
.theme-corpiva .social-row a:hover { background: var(--evc-green); border-color: var(--evc-green); color: #fff; }

/* ------------------------------------------------------- compact footer */
.theme-corpiva .site-footer .footer-grid {
    grid-template-columns: 1.5fr 1.3fr 1fr 1.3fr;
    gap: 28px 36px;
    padding: 38px 0 26px;
    align-items: start;
}
.theme-corpiva .site-footer .footer-brand { margin-bottom: 10px; }
.theme-corpiva .site-footer .footer-grid > div:first-child p { max-width: 34ch; margin: 0 0 14px; font-size: .9rem; line-height: 1.55; }
.theme-corpiva .site-footer h2 {
    margin: 0 0 12px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--evp-primary);
}
.theme-corpiva .site-footer .footer-links { gap: 7px; }
.theme-corpiva .site-footer .footer-links a,
.theme-corpiva .site-footer .contact-list,
.theme-corpiva .site-footer .contact-list a { font-size: .9rem; line-height: 1.4; }
.theme-corpiva .site-footer .footer-grid > div:nth-child(2) .footer-links { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.theme-corpiva .site-footer .footer-links a { display: inline-block; transition: color .15s ease, transform .15s ease; }
.theme-corpiva .site-footer .footer-links a:hover { color: #fff; transform: translateX(2px); }
.theme-corpiva .site-footer .contact-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.theme-corpiva .site-footer .social-row { gap: 8px; }
.theme-corpiva .site-footer .social-row a { width: 34px; height: 34px; border-radius: 999px; font-size: .72rem; }
.theme-corpiva .site-footer .footer-bottom {
    align-items: center;
    padding: 14px 0 18px;
    font-size: .82rem;
}
.theme-corpiva .site-footer .footer-bottom p { margin: 0; }
@media (max-width: 900px) {
    .theme-corpiva .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 30px 0 20px; }
    .theme-corpiva .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .theme-corpiva .site-footer .footer-grid { gap: 20px 16px; }
    .theme-corpiva .site-footer .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
    .theme-corpiva .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}
