/* Shared "Top Builders" section (PreferredPartnersSection) — was
   homepage-only (.hp_partners*, in homepage.css) before it became a shared
   partial (see front.partials._top_builders.blade.php), renamed
   .hp_partner* -> .shared_partner*. Used by index.blade.php and
   city_landing.blade.php; only content differs. JS:
   initSharedTopBuilders() in shared_top_builders.js. Self-contained — see
   shared_about.css's docblock for why that matters and why this used to be
   one section of a single bundled shared_sections.css. */

:root {
    --hp-dark: #0c2e16;
    --hp-lime: #cfff7f;
}

/* Clears the site-wide fixed "Get your 3 quotes now" tab. */
.shared_partners .container {
    padding: 0 30px;
}
@media (min-width: 768px) {
    .shared_partners .container {
        padding: 0 45px;
    }
}

.shared_partners {
    padding: 48px 0;
    background: linear-gradient(135deg, #0c2e16 0%, #1a4a2a 100%);
    position: relative;
    overflow: hidden;
}
.shared_partners-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: var(--hp-lime);
    filter: blur(64px);
    pointer-events: none;
}
.shared_partners-glow--1 {
    top: -80px;
    right: -80px;
    opacity: 0.2;
}
.shared_partners-glow--2 {
    bottom: -80px;
    left: -80px;
    opacity: 0.1;
}
.shared_partners .container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.shared_partners-head {
    text-align: center;
    margin-bottom: 32px;
}
.shared_partners-head .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hp-lime);
    margin-bottom: 12px;
}
.shared_partners-head .check-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--hp-lime);
    color: var(--hp-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shared_partners-head .check-dot svg {
    width: 12px;
    height: 12px;
}
.shared_partners-head h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--hp-lime);
    margin-bottom: 16px;
}
.shared_partners-head .subtitle {
    font-size: 14px;
    font-weight: 400;
    max-width: 672px;
    margin: 0 auto;
    color: #d1fae5;
}
@media (min-width: 768px) {
    .shared_partners-head h2 {
        font-size: 2.25rem;
    }
}
.shared_partners-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}
.shared_partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (min-width: 1024px) {
    .shared_partners-grid {
        grid-template-columns: repeat(
            var(--partners-count, 4),
            minmax(0, 280px)
        );
        justify-content: center;
    }
}
.shared_partner-card {
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.3s,
        opacity 0.4s ease,
        transform 0.4s ease;
}
.shared_partner-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.js-anim .shared_partner-card {
    opacity: 0;
    transform: translateY(20px);
}
.js-anim .shared_partner-card.in-view {
    opacity: 1;
    transform: translateY(0);
}
.shared_partner-card-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Fixed height so every card matches regardless of logo aspect ratio */
    height: 166px;
}
.shared_partner-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.shared_partner-card:hover .shared_partner-card-img img {
    transform: scale(1.05);
}
.shared_partner-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-align: center;
}
.shared_partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hp-lime);
    color: var(--hp-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}
.shared_partner-badge svg {
    width: 12px;
    height: 12px;
}
.shared_partner-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin: 0;
}
.shared_partner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #0c2e16 0%, #1a4a2a 100%);
    color: var(--hp-lime);
    padding: 10px 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.shared_partner-btn svg {
    width: 14px;
    height: 14px;
}
@media (prefers-reduced-motion: reduce) {
    .shared_partner-card {
        transition: none !important;
    }
}
