/**
 * Home Improvements Directory Styles
 * MyHomePros - Service Categories Page
 * 
 * Requires: main.css for variables, page.css for breadcrumb base styles
 * 
 * @package MyHomePros
 */

/* ========================================
   SHARED ELEMENTS
   ======================================== */
.hi-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;
}

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

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

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

.hi-section-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin: 0;
}

.hi-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);
}

.hi-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);
}

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

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

/* ========================================
   HERO SECTION
   ======================================== */
.hi-hero {
    position: relative;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    padding: 3.5rem 1.5rem 4.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hi-hero {
        padding: 4.5rem 2rem 5.5rem;
    }
}

.hi-hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 25% 85%, rgba(40, 161, 236, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 15%, rgba(40, 161, 236, 0.1) 0%, transparent 45%);
    pointer-events: none;
}

.hi-hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Breadcrumb in hero */
.hi-hero .mhp-breadcrumb {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hi-hero .mhp-breadcrumb-link {
    color: var(--slate-400);
}

.hi-hero .mhp-breadcrumb-link:hover {
    color: var(--primary-400);
}

.hi-hero .mhp-breadcrumb-separator {
    color: var(--slate-500);
}

.hi-hero .mhp-breadcrumb-current {
    color: var(--slate-300);
}

.hi-hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.15;
}

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

.hi-hero-subtitle {
    font-size: 1.0625rem;
    color: var(--slate-300);
    line-height: 1.7;
    margin: 0 auto 2.5rem;
    max-width: 650px;
}

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

/* Hero Stats */
.hi-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

@media (min-width: 600px) {
    .hi-hero-stats {
        gap: 3rem;
    }
}

.hi-hero-stat {
    text-align: center;
}

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

@media (min-width: 768px) {
    .hi-hero-stat-number {
        font-size: 2.5rem;
    }
}

.hi-hero-stat-label {
    font-size: 0.8125rem;
    color: var(--slate-400);
    font-weight: 500;
}

/* ========================================
   FEATURED SERVICES SECTION
   ======================================== */
.hi-featured {
    padding: 4rem 1.5rem;
    background: white;
}

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

.hi-featured-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hi-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hi-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

@media (min-width: 1000px) {
    .hi-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.hi-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.hi-featured-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    flex: 1;
}

.hi-featured-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hi-featured-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.hi-featured-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-500);
}

.hi-featured-content {
    margin-bottom: 1rem;
}

.hi-featured-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.25rem;
}

.hi-featured-content p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin: 0;
    line-height: 1.5;
}

.hi-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-500);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s;
    margin-top: auto;
}

.hi-featured-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

.hi-featured-card:hover .hi-featured-cta {
    background: var(--primary-600);
}

.hi-featured-card:hover .hi-featured-cta svg {
    transform: translateX(3px);
}

.hi-featured-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-100);
    color: var(--slate-500);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

.hi-featured-info svg {
    width: 16px;
    height: 16px;
}

.hi-featured-info:hover {
    background: var(--slate-100);
    color: var(--primary-600);
}

/* ========================================
   HOW IT WORKS BANNER
   ======================================== */
.hi-how-banner {
    padding: 2rem 1.5rem;
    background: var(--slate-900);
}

.hi-how-banner-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 800px) {
    .hi-how-banner-inner {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
}

.hi-how-step {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: white;
}

.hi-how-step-num {
    width: 36px;
    height: 36px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.hi-how-step-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.125rem;
}

.hi-how-step-content p {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin: 0;
}

.hi-how-arrow {
    display: none;
}

@media (min-width: 800px) {
    .hi-how-arrow {
        display: flex;
        align-items: center;
        padding: 0 2rem;
    }
    
    .hi-how-arrow svg {
        width: 24px;
        height: 24px;
        color: rgba(255, 255, 255, 0.5);
    }
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */
.hi-category {
    padding: 3.5rem 1.5rem;
    background: white;
}

@media (min-width: 768px) {
    .hi-category {
        padding: 4rem 2rem;
    }
}

.hi-category-alt {
    background: var(--slate-50);
}

.hi-category-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hi-category-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-200);
}

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

.hi-category-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-600);
}

.hi-category-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--slate-900);
    margin: 0;
}

@media (min-width: 768px) {
    .hi-category-header h2 {
        font-size: 1.75rem;
    }
}

.hi-category-header p {
    width: 100%;
    font-size: 0.9375rem;
    color: var(--slate-500);
    margin: 0;
}

@media (min-width: 640px) {
    .hi-category-header p {
        width: auto;
        margin-left: auto;
    }
}

/* Service Grid */
.hi-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

@media (min-width: 900px) {
    .hi-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) {
    .hi-services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.hi-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.hi-category-alt .hi-service-card {
    background: white;
}

.hi-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-200);
}

.hi-service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hi-service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-500);
}

.hi-service-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.3;
}

.hi-service-arrow {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.hi-service-arrow svg {
    width: 12px;
    height: 12px;
    color: white;
}

.hi-service-card:hover .hi-service-arrow {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   TRUST SECTION - Two Column Layout
   ======================================== */
.hi-trust {
    padding: 5rem 1.5rem !important;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%) !important;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hi-trust {
        padding: 6rem 2rem !important;
    }
}

.hi-trust::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 50%, rgba(40, 161, 236, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(40, 161, 236, 0.1) 0%, transparent 50%) !important;
    pointer-events: none;
}

.hi-trust .hi-trust-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    background: none !important;
    background-image: none !important;
}

@media (min-width: 900px) {
    .hi-trust .hi-trust-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 4rem !important;
        align-items: start !important;
    }
}

.hi-trust .hi-trust-content {
    text-align: center !important;
    background: none !important;
    background-image: none !important;
}

@media (min-width: 900px) {
    .hi-trust .hi-trust-content {
        text-align: left !important;
    }
}

.hi-trust .hi-trust-content .hi-section-tag {
    margin-bottom: 1rem !important;
}

.hi-trust .hi-trust-content h2 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 2rem !important;
    font-weight: 400 !important;
    color: white !important;
    margin: 0 0 1rem !important;
    line-height: 1.2 !important;
}

@media (min-width: 768px) {
    .hi-trust .hi-trust-content h2 {
        font-size: 2.5rem !important;
    }
}

.hi-trust .hi-trust-description {
    font-size: 1.0625rem !important;
    color: var(--slate-400) !important;
    line-height: 1.7 !important;
    margin: 0 0 2rem !important;
}

.hi-trust .hi-trust-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
}

.hi-trust .hi-trust-feature {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    text-align: left !important;
    background: none !important;
    background-image: none !important;
    padding: 0 !important;
    border: none !important;
}

.hi-trust .hi-trust-feature svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    color: var(--primary-400) !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.hi-trust .hi-trust-feature-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.hi-trust .hi-trust-feature-text strong {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: white !important;
    display: block !important;
}

.hi-trust .hi-trust-feature-text span {
    font-size: 0.9375rem !important;
    color: var(--slate-400) !important;
    line-height: 1.5 !important;
    display: block !important;
}

/* Trust Stats Card */
.hi-trust .hi-trust-stats {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    background-image: none !important;
    position: relative !important;
}

/* Remove any decorative pseudo-elements */
.hi-trust .hi-trust-stats::before,
.hi-trust .hi-trust-stats::after,
.hi-trust .hi-trust-inner::before,
.hi-trust .hi-trust-inner::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
}

.hi-trust .hi-trust-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.hi-trust .hi-trust-stat {
    text-align: center !important;
}

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

.hi-trust .hi-trust-stat-label {
    font-size: 0.875rem !important;
    color: var(--slate-400) !important;
    line-height: 1.4 !important;
}

.hi-trust .hi-trust-partners {
    margin-bottom: 2rem !important;
    text-align: center !important;
    background: none !important;
    background-image: none !important;
    padding: 0 !important;
}

.hi-trust .hi-trust-partners-label {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: var(--slate-500) !important;
    margin: 0 0 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
}

.hi-trust .hi-trust-logos {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
}

.hi-trust .hi-trust-logos img {
    height: 28px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s !important;
    filter: none !important;
}

.hi-trust .hi-trust-logos img:hover {
    opacity: 1 !important;
}

.hi-trust .hi-trust-cta {
    text-align: center !important;
}

.hi-trust .hi-trust-cta .hi-btn-primary-large {
    width: 100% !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    background: var(--primary-500) !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s !important;
}

.hi-trust .hi-trust-cta .hi-btn-primary-large:hover {
    background: var(--primary-600) !important;
}

.hi-trust .hi-trust-cta .hi-btn-primary-large svg {
    width: 20px !important;
    height: 20px !important;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 767px) {
    .hi-hero-title {
        font-size: 1.875rem;
    }
    
    .hi-hero-subtitle {
        font-size: 1rem;
    }
    
    .hi-hero-stat-number {
        font-size: 1.75rem;
    }
    
    .hi-section-title {
        font-size: 1.75rem;
    }
    
    .hi-trust .hi-trust-content h2 {
        font-size: 1.75rem;
    }
    
    .hi-trust .hi-trust-stat-number {
        font-size: 1.75rem;
    }
    
    .hi-btn-white-large,
    .hi-btn-primary-large {
        width: 100%;
        justify-content: center;
    }
}
