/* ============================================
   HOMEPAGE & SINGLE POST ENHANCEMENTS
   Add these to your main CSS or create as separate file
   ============================================ */

/* ---- Service Grid Cards ---- */
.service1, .service2, .service3, .service4,
.service5, .service6, .service7, .service8,
.service9, .service10, .service11, .service12,
.service13, .service14, .service15, .service16 {
    position: relative;
    overflow: hidden;
}

/* Image containers */
.service1, .service3, .service5, .service7,
.service9, .service11, .service13, .service15 {
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service1 img, .service3 img, .service5 img, .service7 img,
.service9 img, .service11 img, .service13 img, .service15 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service1:hover img, .service3:hover img, .service5:hover img, .service7:hover img,
.service9:hover img, .service11:hover img, .service13:hover img, .service15:hover img {
    transform: scale(1.05);
}

/* Service content cards */
.service2, .service4, .service6, .service8,
.service10, .service12, .service14, .service16 {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.service2 h2, .service4 h2, .service6 h2, .service8 h2,
.service10 h2, .service12 h2, .service14 h2, .service16 h2 {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.service2 h2::after, .service4 h2::after, .service6 h2::after, .service8 h2::after,
.service10 h2::after, .service12 h2::after, .service14 h2::after, .service16 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-hover));
    border-radius: var(--radius-full);
}

.service2 ul, .service4 ul, .service6 ul, .service8 ul,
.service10 ul, .service12 ul, .service14 ul, .service16 ul {
    list-style: none;
    padding-left: 0;
}

.service2 li, .service4 li, .service6 li, .service8 li,
.service10 li, .service12 li, .service14 li, .service16 li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.service2 li::before, .service4 li::before, .service6 li::before, .service8 li::before,
.service10 li::before, .service12 li::before, .service14 li::before, .service16 li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
}

/* ---- Intro Section Enhancement ---- */
.intro {
    position: relative;
    padding: var(--spacing-3xl) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid var(--brand-accent);
}

.intro h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--brand-primary);
}

.intro p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* ---- Banner Enhancement ---- */
.banner-container {
    position: relative;
    overflow: hidden;
}

.banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(44, 99, 125, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(22, 60, 88, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.banner1 {
    position: relative;
    z-index: 1;
    padding-left: var(--spacing-3xl);
}

.banner2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.banner2 img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.banner2 img:hover {
    transform: scale(1.02);
}

/* ---- Section Title Enhancements ---- */
.sectionTitle {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--spacing-xl);
}

.sectionBody h2 {
    font-size: 1.25rem;
    color: var(--brand-accent);
    margin-bottom: var(--spacing-md);
}

.sectionBody h3 {
    font-size: 1.125rem;
    color: var(--color-heading);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.sectionBody ul {
    list-style: none;
    padding-left: 0;
}

.sectionBody ul li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.sectionBody ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
    font-size: 1.1em;
}

/* Nested lists */
.sectionBody ul li ul {
    margin-top: var(--spacing-sm);
    margin-left: 0;
}

.sectionBody ul li ul li::before {
    content: '•';
    font-size: 1.2em;
}

/* ---- Single Post Enhancements ---- */
.post-header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--color-border-subtle);
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--brand-primary);
}

/* Featured image in posts */
.post-single img[src*="featured"] {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--spacing-2xl) 0;
    box-shadow: var(--shadow-lg);
}

/* Post content typography */
.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content > * {
    max-width: 70ch;
}

.post-content > img,
.post-content > figure {
    max-width: 100%;
}

/* Better list styling in post content */
.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

/* Breadcrumbs styling */
.breadcrumbs {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--brand-accent);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--brand-accent-hover);
}

.breadcrumbs span {
    color: var(--color-border);
}

/* ---- Call-to-Action Sections ---- */
.HowItWorks,
.WhatExpect {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1ea 100%);
    border-left: 4px solid var(--brand-accent);
}

.HowItWorks .modern-button {
    margin-top: var(--spacing-2xl);
}

/* ---- Meet Darryl Section ---- */

.MeetDarryl .sectionBody {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.MeetDarryl img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 auto var(--spacing-lg);
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Contact Sections ---- */
.Address ul,
.Hours ul {
    list-style: none;
    padding-left: 0;
}

.Address li,
.Hours li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.Address li::before,
.Hours li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-accent);
    font-weight: bold;
}

/* ---- Refinements for Professional Feel ---- */

/* Add subtle animation to service cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-container > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.grid-container > *:nth-child(1) { animation-delay: 0.05s; }
.grid-container > *:nth-child(2) { animation-delay: 0.1s; }
.grid-container > *:nth-child(3) { animation-delay: 0.15s; }
.grid-container > *:nth-child(4) { animation-delay: 0.2s; }

/* Disable animations on reduced motion */
@media (prefers-reduced-motion: reduce) {
    .grid-container > * {
        animation: none;
    }
}

/* ---- Mobile Refinements ---- */
@media (max-width: 768px) {
    .banner1 {
        padding-left: var(--spacing-lg);
        text-align: center;
    }

    .banner2 {
        padding: var(--spacing-lg);
    }

    .intro {
        padding: var(--spacing-xl) !important;
    }

    .service1, .service3, .service5, .service7,
    .service9, .service11, .service13, .service15 {
        min-height: 250px;
    }

    .sectionTitle {
        font-size: 1.75rem;
    }

    .modern-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .service1, .service3, .service5, .service7,
    .service9, .service11, .service13, .service15 {
        min-height: 200px;
    }
}
