/* Guide pages — buying guide, comparison, HP, installation, troubleshooting */

.page-header-guides {
    color: #fff;
    padding: clamp(48px, 7vw, 72px) 0;
}

.page-header-guides-inner {
    max-width: 760px;
}

.page-header-guides .page-header-eyebrow {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.page-header-guides h1,
.page-header-guides p {
    color: #fff;
}

.guide-page {
    background: #f8fbff;
}

.guide-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 5vw, 56px) 0;
    color: #fff;
    background-color: #072849;
    background-image:
        linear-gradient(135deg, rgba(7, 40, 73, 0.9) 0%, rgba(12, 61, 122, 0.86) 48%, rgba(26, 86, 168, 0.82) 100%),
        var(--page-header-bg, url('../images/hero-pump-farm.jpg'));
    background-size: cover;
    background-position: center;
    border-bottom: none;
}

.page-guides .guide-hero {
    --page-header-bg: url('../images/hero-pump-farm.jpg');
}

.guide-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
}

.guide-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    text-decoration: underline;
}

.guide-breadcrumb-current {
    color: #fff;
    font-weight: 600;
}

.guide-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 360px);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.guide-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yellow, #ffc107);
    margin-bottom: 12px;
}

.guide-hero-copy h1 {
    font-family: var(--font-display, 'DM Serif Display', serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}

.guide-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.guide-hero-media {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 45, 92, 0.12);
    background: #eef4fc;
}

.guide-hero .guide-hero-media {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
}

.guide-hero-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.guide-hero-media--product {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(300px, 36vw, 400px);
    padding: clamp(20px, 3vw, 32px);
    background:
        radial-gradient(circle at 30% 20%, rgba(26, 86, 168, 0.12), transparent 42%),
        linear-gradient(160deg, #e8f2fc 0%, #f7fbff 48%, #eef8f2 100%);
    border: 1px solid rgba(26, 86, 168, 0.1);
}

.guide-hero .guide-hero-media--product {
    min-height: clamp(260px, 34vw, 380px);
    padding: 0;
    background: transparent;
    border: none;
}

.guide-hero-media--product img {
    width: auto;
    max-width: min(100%, 240px);
    max-height: min(58vh, 380px);
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 32px rgba(10, 45, 92, 0.2));
}

.guide-hero .guide-hero-media--product img {
    max-width: min(100%, 300px);
    max-height: min(64vh, 440px);
    filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.42));
}

.guide-hero .guide-hero-media--cutout {
    background: transparent;
    border: none;
    box-shadow: none;
}

.guide-hero .guide-hero-media--cutout img {
    max-width: min(100%, 280px);
    max-height: min(68vh, 460px);
}

.guide-hero-media--scene img {
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(24px, 4vw, 40px);
    padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 96px);
    align-items: start;
}

.guide-content {
    background: #fff;
    border-radius: 18px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 8px 32px rgba(10, 45, 92, 0.06);
    border: 1px solid rgba(26, 86, 168, 0.08);
}

.guide-intro {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.guide-section {
    margin-bottom: 28px;
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(26, 86, 168, 0.08);
}

.guide-section:last-of-type {
    margin-bottom: 0;
}

.guide-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.guide-section-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand, #1a56a8) 0%, #2d7dd2 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.guide-section h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.35rem);
    color: var(--green-dark, #0a2d5c);
    margin: 0;
    line-height: 1.35;
    padding-top: 6px;
}

.guide-section-body p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 14px;
}

.guide-section-body p:last-child {
    margin-bottom: 0;
}

.guide-body-list {
    margin: 0 0 14px;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.75;
}

.guide-body-list li {
    margin-bottom: 8px;
}

.guide-body-list li:last-child {
    margin-bottom: 0;
}

.guide-cta {
    margin-top: 40px;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2d5c 0%, #1a56a8 100%);
    color: #fff;
}

.guide-cta h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.guide-cta p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
    line-height: 1.6;
}

.guide-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.guide-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 96px;
}

.guide-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(26, 86, 168, 0.08);
    box-shadow: 0 4px 20px rgba(10, 45, 92, 0.05);
}

.guide-sidebar-card h3 {
    font-size: 1rem;
    color: var(--green-dark, #0a2d5c);
    margin-bottom: 14px;
}

.guide-toc {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-toc a {
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.45;
}

.guide-toc a:hover {
    color: var(--brand, #1a56a8);
}

.guide-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-related a {
    color: var(--brand, #1a56a8);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.45;
}

.guide-related a:hover {
    text-decoration: underline;
}

.guide-sidebar-card--brand {
    background: linear-gradient(160deg, #eef4fc 0%, #fff 100%);
}

.guide-sidebar-card--brand p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 12px;
}

.guide-sidebar-phone {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand, #1a56a8);
    text-decoration: none;
}

.guides-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.guides-hub-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(26, 86, 168, 0.08);
    box-shadow: 0 8px 28px rgba(10, 45, 92, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guides-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 45, 92, 0.1);
}

.guides-hub-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.guides-hub-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.guides-hub-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: clamp(10px, 2vw, 18px);
    box-sizing: border-box;
    image-rendering: auto;
    transition: transform 0.3s ease;
}

.guides-hub-card-media--cutout {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 220px;
    padding: 12px 10px 6px;
}

.guides-hub-card-media--cutout img {
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 200px;
    padding: 0;
    filter: drop-shadow(0 10px 18px rgba(12, 61, 122, 0.14));
}

.guides-hub-card:hover .guides-hub-card-media:not(.guides-hub-card-media--cutout) img {
    transform: scale(1.04);
}

.guides-hub-card:hover .guides-hub-card-media--cutout img {
    transform: scale(1.05) translateY(-2px);
}

.guides-hub-card-num {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 45, 92, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
}

.guides-hub-card-body {
    padding: 22px;
}

.guides-hub-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand, #1a56a8);
}

.guides-hub-card-body h2 {
    font-size: 1.15rem;
    color: var(--green-dark, #0a2d5c);
    margin: 8px 0 10px;
    line-height: 1.35;
}

.guides-hub-card-body p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 14px;
}

.guides-hub-card-meta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand, #1a56a8);
}

.guides-hub-cta {
    margin-top: 48px;
    padding: 32px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0a2d5c 0%, #1a56a8 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.guides-hub-cta h3 {
    color: #fff;
    margin-bottom: 8px;
}

.guides-hub-cta p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

.guides-hub-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 992px) {
    .guide-hero-grid,
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-hero-media--product {
        min-height: 280px;
        order: -1;
    }

    .guide-hero .guide-hero-media--product {
        min-height: 240px;
    }

    .guide-hero-media--product img {
        max-width: min(70vw, 220px);
    }

    .guide-hero .guide-hero-media--product img {
        max-width: min(78vw, 260px);
    }

    .guide-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .guide-cta-actions,
    .guides-hub-cta-actions {
        width: 100%;
    }

    .guide-cta-actions .btn,
    .guides-hub-cta-actions .btn {
        flex: 1;
        justify-content: center;
    }
}
