/*
 * Partner landing pages (Veton for installers / Veton for architects)
 * + the installer/architect split section on /become-a-partner/.
 *
 * Loaded by page-templates/partner-landing.php and
 * page-templates/become-partner.php with filemtime() as the cache-bust,
 * so there is no version constant to bump here.
 *
 * Palette matches the theme build: gold #c49e60, card grey #f1f1f1,
 * heading ink #2a2a2a.
 */

/* ═══════════════════════════════════════════════════════════════════════
   Become a partner — page title
   ═══════════════════════════════════════════════════════════════════════ */

.page-template-become-partner h1.title {
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* "Meet our models." — the shared product_links block ships fw-semibold
   (600!important) for the home page; on this page the heading follows
   the page's light h2 style. */
.page-template-become-partner .product-links-wrapper h2.fw-semibold {
    font-weight: 300 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Partner split — two full-image cards on /become-a-partner/
   ═══════════════════════════════════════════════════════════════════════ */

.partner-split-block .partner-split-head .intro {
    max-width: 44em;
}

.partner-split-card {
    position: relative;
    display: flex;
    min-height: 300px;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
}

.partner-split-card .partner-split-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.partner-split-card:hover .partner-split-card-img {
    transform: scale(1.03);
}

.partner-split-card .partner-split-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.65);
    transition: background-color 0.15s ease-out;
}

.partner-split-card:hover .partner-split-card-overlay {
    background: rgba(20, 20, 20, 0.75);
}

.partner-split-card .partner-split-card-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

/* Explicit white: the whole card is an <a>, so the theme's a:hover gold
   would otherwise bleed into the title and text on hover. Only the
   button stays gold. */
.partner-split-card .partner-split-card-title {
    font-size: 24px;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    color: #ffffff;
}

.partner-split-card .partner-split-card-text {
    font-size: 16px;
    color: #ffffff;
}

/* The whole card is the link; the outline button is decorative inside it. */
.partner-split-card .btn.btn-outline {
    display: inline-flex !important;
    font-size: 14px;
    font-weight: 600;
}

/* Arrow nudge on CARD hover — same move the theme does on
   .btn.btn-outline:hover, but the hover target here is the card link. */
.partner-split-card:hover .btn.btn-outline i {
    position: relative;
}

.partner-split-card:hover .btn.btn-outline i:before {
    left: 5px;
}

@media (min-width: 992px) {
    .partner-split-card {
        min-height: 340px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Hero — gold eyebrow above the h1
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .vpl-hero-eyebrow {
    /* !important: the hero inner carries .text-white, whose theme rules
       repaint descendants white and win on specificity. */
    color: #c49e60 !important;
    font-size: 17px;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    /* The theme centers the side-aligned hero h1/p/buttons per element
       below lg; the eyebrow span follows along. */
    text-align: center;
}

@media (min-width: 992px) {
    .vpl .vpl-hero-eyebrow {
        text-align: left;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Intro card — same treatment as the Veton x Cosentino template: the
   theme's shared .alt-content-intro rule drags the card up (-15px) into
   the hero on mobile. Sit just below the hero on mobile and only tuck
   under it from sm up.
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .alt-content-intro {
    margin-top: 12px !important;
}

@media (min-width: 576px) {
    .vpl .alt-content-intro {
        margin-top: -100px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Feature split — text left, grey summary card right
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .vpl-feature-split-card {
    background: #f1f1f1;
    /* Fills the column (col is d-flex + w-100); center the list in it. */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vpl .vpl-feature-split-card ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.vpl .vpl-feature-split-card li {
    margin-bottom: 12px;
}

.vpl .vpl-feature-split-card li:last-child {
    margin-bottom: 0;
}

.vpl .vpl-feature-split-card li::marker {
    color: #c49e60;
}

/* Bold lead-ins in wysiwyg content (alternating rows, intro card,
   feature split): 600 + antialiased instead of the browser default. */
.vpl .alternate-content-wrapper strong,
.vpl .alt-content-intro strong,
.vpl .vpl-feature-split strong {
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════════════
   Wide image band
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .vpl-wide-image-img {
    display: block;
    max-height: 620px;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════
   Info columns — grey text cards
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .vpl-info-columns .intro {
    max-width: 44em;
}

.vpl .vpl-info-column {
    background: #f1f1f1;
    font-size: 1.1rem;
}

.vpl .vpl-info-column-title {
    color: #2a2a2a;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
}

.vpl .vpl-info-column-text {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   Image row — n-up screenshot strip
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .vpl-image-row-img {
    display: block;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════════════
   Downloads + gated form
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .partner-downloads-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.vpl .partner-downloads-item {
    border-bottom: 1px solid #e3e3e3;
}

.vpl .partner-downloads-item-label {
    color: #2a2a2a;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

.vpl .partner-downloads-item-label sup {
    color: #c49e60;
}

.vpl .partner-downloads-item-tags {
    white-space: nowrap;
    padding-left: 15px;
}

.vpl .partner-downloads-tag {
    color: #2a2a2a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}

.vpl .partner-downloads-tag-sep {
    color: #c49e60;
    font-size: 12px;
    font-weight: 600;
    margin: 0 6px;
}

.vpl .partner-downloads-footnote {
    color: #8c8c8c;
    font-size: 13px;
}

.vpl .partner-downloads-form {
    background: #f1f1f1;
    /* Hug the form: no column-height stretch, so the space under the
       submit is just the card padding. */
    height: auto;
}

.vpl .partner-downloads-form .wpcf7-btn-wrapper {
    margin-top: 10px;
}

.vpl .partner-downloads-form .wpcf7-btn-wrapper p {
    margin-bottom: 0;
}

/* CF7 controls on the grey card: white fills, no chrome — matches the
   mock's flat fields. Scoped to the card so the site-wide form styling
   elsewhere is untouched. */
.vpl .partner-downloads-form input[type="text"],
.vpl .partner-downloads-form input[type="email"],
.vpl .partner-downloads-form input[type="tel"],
.vpl .partner-downloads-form textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #e3e3e3;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.vpl .partner-downloads-form .wpcf7-list-item {
    margin-left: 0;
}

/* Checkbox — same square "pearl" as the configurator's accessory cards
   (chargers-extras.css): inset-shadow carve when unchecked, gold fill
   with cream border ring when checked. The input is drawn directly via
   appearance:none; use_label_element makes the text clickable too. */
.vpl .partner-downloads-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.vpl .partner-downloads-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin: 0 12px 0 0;
    border-radius: 3px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 320ms ease, border-color 320ms ease;
}

.vpl .partner-downloads-form input[type="checkbox"]:checked {
    border-color: #ece0cb;
    background-color: #c49e60;
}

.vpl .partner-downloads-form .wpcf7-list-item-label {
    font-size: 1.1rem;
    color: #2a2a2a;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA card — same look as the Cosentino v2 CTA
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .vpl-cta {
    background: transparent;
}

/* Theme default .btn is `display: flex !important`, which stretches a
 * button to the parent column width (same fix as the Cosentino v2 CTA).
 * Applies to the CTA button and to kit buttons dropped into wysiwyg
 * content inside the alternating rows. */
.vpl .vpl-cta .btn,
.vpl .alternate-content-wrapper .text-col .btn {
    display: inline-flex !important;
    align-items: center;
    width: auto;
}

/* Kit button dropped into a wysiwyg row: extra air above it. */
.vpl .alternate-content-wrapper .text-col .btn {
    margin-top: 15px;
}

/* Air above the bullet list. Unconditional: the wysiwyg often stores
   the intro line as bare text (no <p> wrapper), so p + ul misses. */
.vpl .alternate-content-wrapper .text-col ul {
    margin-top: 15px;
}

.vpl .vpl-cta .col-inner {
    background: #f1f1f1;
}

.vpl .vpl-cta .contact-intro {
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .vpl .vpl-cta .col-inner {
        padding: 40px 20px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Shared heading scale (same clamp as the Cosentino v2 template)
   ═══════════════════════════════════════════════════════════════════════ */

.vpl .alt-content-intro h2,
.vpl .vpl-feature-split h2,
.vpl .vpl-info-columns h2,
.vpl .partner-downloads-block h2,
.vpl .vpl-cta h2,
.partner-split-block h2 {
    font-size: 24px;
    color: #2a2a2a;
}

@media (min-width: 992px) {
    .vpl .alt-content-intro h2,
    .vpl .vpl-feature-split h2,
    .vpl .vpl-info-columns h2,
    .vpl .vpl-cta h2,
    .partner-split-block h2 {
        font-size: 36px;
    }

    .vpl .partner-downloads-block h2 {
        font-size: 28px;
    }
}
