/**
 * Homepage Styles
 * MyHomePros - Front Page
 * 
 * Requires: main.css for variables
 * 
 * @package MyHomePros
 */

/* ========================================
   SHARED ELEMENTS
   ======================================== */
.hp-section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.hp-section-tag-light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-200);
}

.hp-section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--slate-900);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .hp-section-title {
        font-size: 2.75rem;
    }
}

.hp-section-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
}

.hp-btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-500);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(40, 161, 236, 0.35);
    border: none;
    cursor: pointer;
}

.hp-btn-primary-large:hover {
    background: var(--primary-400);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(40, 161, 236, 0.45);
}

.hp-btn-primary-large svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.hp-btn-primary-large:hover svg {
    transform: translateX(4px);
}

.hp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--slate-200) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.625rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: white !important;
}

.hp-btn-white-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: var(--primary-600) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hp-btn-white-large:hover {
    background: var(--primary-50);
    color: var(--primary-700) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hp-btn-white-large svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.hp-btn-white-large:hover svg {
    transform: translateX(4px);
}

.hp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-500);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hp-link-arrow:hover {
    color: var(--primary-600);
}

.hp-link-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.hp-link-arrow:hover svg {
    transform: translateX(4px);
}

/* ========================================
   HERO SECTION — SPLIT LAYOUT
   ======================================== */

/* Mobile: stacked (image on top, content below) */
.hp-hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Desktop: positioned container with image behind, content overlaid */
@media (min-width: 1000px) {
    .hp-hero {
        display: block;
        position: relative;
        min-height: 620px;
    }
}

@media (min-width: 1400px) {
    .hp-hero {
        min-height: 680px;
    }
}

/* ---- Content Side ---- */
.hp-hero-content-side {
    position: relative;
    background: linear-gradient(160deg, var(--slate-900) 0%, var(--slate-800) 100%);
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem 3.5rem;
    overflow: hidden;
    order: 2; /* Mobile: content below image */
}

@media (min-width: 768px) {
    .hp-hero-content-side {
        padding: 3.5rem 2.5rem;
    }
}

@media (min-width: 1000px) {
    .hp-hero-content-side {
        position: relative;
        z-index: 2;
        width: 58%;
        min-height: 620px;
        order: unset;
        /* Diagonal right edge */
        clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%);
        padding: 4rem 8rem 4rem max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
    }
}

@media (min-width: 1400px) {
    .hp-hero-content-side {
        min-height: 680px;
        padding: 5rem 9rem 5rem calc((100vw - 1280px) / 2 + 1.5rem);
    }
}

/* Blue radial glow overlay — inspired by contractor CTA section */
.hp-hero-content-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 0% 70%, rgba(40, 161, 236, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 85% 10%, rgba(40, 161, 236, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(40, 161, 236, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Content block */
.hp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 540px;
}

@media (max-width: 999px) {
    .hp-hero-content {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }
}

/* Badge pill */
.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(40, 161, 236, 0.1);
    border: 1px solid rgba(40, 161, 236, 0.25);
    color: var(--primary-300);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.6s ease-out both;
}

.hp-hero-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Title */
.hp-hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1.25rem;
    line-height: 1.15;
    animation: fadeSlideUp 0.7s ease-out 0.1s both;
}

@media (min-width: 768px) {
    .hp-hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1000px) {
    .hp-hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1400px) {
    .hp-hero-title {
        font-size: 3.5rem;
    }
}

/* Subtitle */
.hp-hero-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin: 0 0 2rem;
    animation: fadeSlideUp 0.7s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .hp-hero-subtitle {
        font-size: 1.125rem;
    }
}

/* CTA buttons */
.hp-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    animation: fadeSlideUp 0.7s ease-out 0.3s both;
}

@media (min-width: 520px) {
    .hp-hero-cta {
        flex-direction: row;
    }
}

@media (max-width: 999px) {
    .hp-hero-cta {
        justify-content: center;
        align-items: center;
    }
}

.hp-hero-cta .hp-btn-primary-large,
.hp-hero-cta .hp-btn-outline {
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 519px) {
    .hp-hero-cta .hp-btn-primary-large,
    .hp-hero-cta .hp-btn-outline {
        width: 100%;
        max-width: 280px;
    }
}

.hp-hero-cta .hp-btn-primary-large span,
.hp-hero-cta .hp-btn-outline span {
    white-space: nowrap;
}

/* Trust items */
.hp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    animation: fadeSlideUp 0.7s ease-out 0.4s both;
}

@media (max-width: 999px) {
    .hp-hero-trust {
        justify-content: center;
    }
}

.hp-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.hp-hero-trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-400);
}

/* Subtle CTA glow */
.hp-hero-cta .hp-btn-primary-large {
    position: relative;
    animation: fadeSlideUp 0.7s ease-out 0.3s both, ctaGlow 4s ease-in-out 2s infinite;
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(40, 161, 236, 0.35);
    }
    50% {
        box-shadow: 0 4px 35px rgba(40, 161, 236, 0.55), 0 0 50px rgba(40, 161, 236, 0.2);
    }
}

/* ---- Image Side ---- */
.hp-hero-image-side {
    position: relative;
    overflow: hidden;
    order: 1; /* Mobile: image on top */
    min-height: 260px;
}

@media (min-width: 768px) {
    .hp-hero-image-side {
        min-height: 340px;
    }
}

/* Desktop: image fills the entire hero behind the content panel */
@media (min-width: 1000px) {
    .hp-hero-image-side {
        position: absolute;
        inset: 0;
        z-index: 1;
        min-height: auto;
        order: unset;
    }
}

.hp-hero-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    animation: kenBurns 25s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.06);
    }
}

/* Mobile: gradient at bottom blending image into dark content below */
.hp-hero-image-side::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--slate-900));
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 1000px) {
    /* Desktop: diagonal handles the transition */
    .hp-hero-image-side::after {
        display: none;
    }
}

/* Floating stat card — desktop only */
.hp-hero-float-card {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 4;
    display: none;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1rem 0.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: floatCardIn 0.8s ease-out 0.8s both;
}

@media (min-width: 1000px) {
    .hp-hero-float-card {
        display: flex;
    }
}

@keyframes floatCardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hp-hero-float-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    min-width: 0;
}

.hp-hero-float-divider {
    width: 1px;
    height: 32px;
    background: var(--slate-200);
    flex-shrink: 0;
}

.hp-hero-float-number {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.375rem;
    color: var(--slate-900);
    line-height: 1;
    white-space: nowrap;
}

.hp-hero-float-star {
    color: #f59e0b;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-left: 1px;
}

.hp-hero-float-label {
    font-size: 0.6875rem;
    color: var(--slate-500);
    font-weight: 500;
    margin-top: 0.25rem;
    white-space: nowrap;
    line-height: 1.2;
}

/* ---- Animations ---- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hp-hero-image-side img,
    .hp-hero-title,
    .hp-hero-subtitle,
    .hp-hero-cta,
    .hp-hero-trust,
    .hp-hero-badge,
    .hp-hero-float-card,
    .hp-hero-cta .hp-btn-primary-large {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.hp-services {
    padding: 5rem 1.5rem;
    background: white;
}

@media (min-width: 768px) {
    .hp-services {
        padding: 6rem 2rem;
    }
}

.hp-services-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hp-services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hp-services-header .hp-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hp-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .hp-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1000px) {
    .hp-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.hp-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
    border: 1px solid var(--primary-100);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(40, 161, 236, 0.08);
}

.hp-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-200);
    background: linear-gradient(135deg, var(--primary-100) 0%, white 100%);
}

.hp-service-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hp-service-card h3 {
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.25rem;
}

@media (min-width: 768px) {
    .hp-service-card h3 {
        font-size: 1.0625rem;
    }
}

.hp-service-card p {
    position: relative;
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.5;
}

.hp-service-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.hp-service-arrow svg {
    width: 16px;
    height: 16px;
    color: white;
}

.hp-service-card:hover .hp-service-arrow {
    opacity: 1;
    transform: translateX(0);
}

.hp-services-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.hp-partners {
    padding: 3rem 1.5rem;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
}

.hp-partners-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hp-partners-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-500);
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hp-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
}

.hp-partners-logos img {
    height: 40px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .hp-partners-logos img {
        height: 48px;
        max-width: 150px;
    }
}

.hp-partners-logos img:hover {
    transform: scale(1.05);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.hp-how-it-works {
    padding: 5rem 1.5rem;
    background: white;
}

@media (min-width: 768px) {
    .hp-how-it-works {
        padding: 6rem 2rem;
    }
}

.hp-how-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.hp-how-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hp-how-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (min-width: 900px) {
    .hp-how-steps {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

.hp-step {
    text-align: center;
    max-width: 280px;
    padding: 1rem;
}

.hp-step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-100);
    color: var(--primary-600);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.hp-step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
}

.hp-step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hp-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.625rem;
}

.hp-step p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.65;
    margin: 0;
}

.hp-step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.hp-step-connector svg {
    width: 24px;
    height: 24px;
    color: var(--slate-300);
    transform: rotate(90deg);
}

@media (min-width: 900px) {
    .hp-step-connector {
        padding: 0 1rem;
        margin-top: 60px;
    }
    
    .hp-step-connector svg {
        transform: rotate(0);
    }
}

.hp-how-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ========================================
   STATS SECTION
   ======================================== */
.hp-stats {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
}

@media (min-width: 768px) {
    .hp-stats {
        padding: 5rem 2rem;
    }
}

.hp-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .hp-stats-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

.hp-stat {
    text-align: center;
}

.hp-stat-number {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.5rem;
    color: var(--primary-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .hp-stat-number {
        font-size: 3rem;
    }
}

.hp-stat-label {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.5;
}

/* ========================================
   WHY SECTION
   ======================================== */
.hp-why {
    padding: 5rem 1.5rem;
    background: var(--slate-50);
}

@media (min-width: 768px) {
    .hp-why {
        padding: 6rem 2rem;
    }
}

.hp-why-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hp-why-inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
}

.hp-why-content {
    order: 2;
}

@media (min-width: 900px) {
    .hp-why-content {
        order: 1;
    }
}

.hp-why-description {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin: 1rem 0 2rem;
}

.hp-why-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hp-why-feature {
    display: flex;
    gap: 1rem;
}

.hp-why-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hp-why-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-600);
}

.hp-why-feature-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.25rem;
}

.hp-why-feature-content p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.6;
}

.hp-why-image {
    order: 1;
    text-align: center;
}

@media (min-width: 900px) {
    .hp-why-image {
        order: 2;
    }
}

.hp-why-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1rem;
}

/* ========================================
   GUIDES SECTION
   ======================================== */
.hp-guides {
    padding: 5rem 1.5rem;
    background: white;
}

@media (min-width: 768px) {
    .hp-guides {
        padding: 6rem 2rem;
    }
}

.hp-guides-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hp-guides-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hp-guides-header .hp-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hp-guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hp-guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .hp-guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-guide-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
}

.hp-guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.hp-guide-image {
    height: 180px;
    overflow: hidden;
}

.hp-guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hp-guide-card:hover .hp-guide-image img {
    transform: scale(1.05);
}

.hp-guide-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-guide-card-static .hp-guide-content {
    background: var(--slate-50);
}

.hp-guide-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem;
}

.hp-guide-content h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--slate-900);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.hp-guide-content p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    margin: 0 0 1rem;
    line-height: 1.6;
    flex: 1;
}

.hp-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-500);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: auto;
}

.hp-guide-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.hp-guide-card:hover .hp-guide-link svg {
    transform: translateX(4px);
}

.hp-guides-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ========================================
   CONTRACTOR CTA SECTION
   ======================================== */
.hp-contractor-cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hp-contractor-cta {
        padding: 6rem 2rem;
    }
}

.hp-contractor-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(40, 161, 236, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(40, 161, 236, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hp-contractor-cta-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hp-contractor-cta-inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hp-contractor-cta-content {
    text-align: center;
}

@media (min-width: 900px) {
    .hp-contractor-cta-content {
        text-align: left;
    }
}

.hp-contractor-cta-content h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .hp-contractor-cta-content h2 {
        font-size: 2.5rem;
    }
}

.hp-contractor-cta-content > p {
    font-size: 1.0625rem;
    color: var(--slate-400);
    line-height: 1.7;
    margin: 0 0 2rem;
}

.hp-contractor-cta-content > p strong {
    color: var(--primary-400);
}

.hp-contractor-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hp-contractor-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.hp-contractor-feature svg {
    width: 22px;
    height: 22px;
    color: var(--primary-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.hp-contractor-feature span {
    font-size: 1rem;
    color: var(--slate-300);
    line-height: 1.5;
}

/* Contractor CTA Stats/Benefits Card */
.hp-contractor-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

.hp-contractor-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hp-contractor-stat {
    text-align: center;
}

.hp-contractor-stat-number {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    color: var(--primary-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hp-contractor-stat-label {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.4;
}

.hp-contractor-stats-cta {
    margin-top: 2rem;
    text-align: center;
}

.hp-contractor-stats-cta .hp-btn-primary-large {
    width: 100%;
    justify-content: center;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 767px) {
    .hp-hero-title {
        font-size: 2rem;
    }
    
    .hp-section-title {
        font-size: 1.875rem;
    }
    
    .hp-stat-number {
        font-size: 2rem;
    }
    
    .hp-contractor-cta-content h2 {
        font-size: 1.625rem;
    }
    
    .hp-btn-primary-large,
    .hp-btn-outline,
    .hp-btn-white-large {
        width: 100%;
        justify-content: center;
    }
}