/* Enhanced Styles for All Pages - Beautiful & UX Friendly */

/* ============================================
   LOCATION PAGES STYLING
   ============================================ */

.location-service-intro {
    padding: 4rem 0;
    background: #f8f9fa;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.intro-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.intro-text h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.intro-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* Service Features Section */
.service-features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.features-list {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    max-width: 800px;
    margin: 2rem auto;
}

.features-list h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

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

.features-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Local Testimonial */
.local-testimonial {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.local-testimonial .section-header h2 {
    color: white;
}

.local-testimonial .testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-rating {
    color: #f39c12;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.testimonial-author span {
    color: #999;
    font-size: 0.95rem;
}

/* Service Areas Nearby */
.service-areas-nearby {
    padding: 4rem 0;
    background: white;
}

.nearby-areas {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.nearby-areas p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
}

/* Area Tags */
.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.area-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.area-tag:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   BLOG PAGES STYLING
   ============================================ */

.blog-grid {
    padding: 4rem 0;
    background: #f8f9fa;
}

.blog-grid .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1400px;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
}

.blog-date {
    color: #999;
    display: flex;
    align-items: center;
}

.blog-content h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content h2 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

.blog-content > p {
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.category-list, .service-links {
    list-style: none;
    padding: 0;
}

.category-list li, .service-links li {
    margin-bottom: 0.75rem;
}

.category-list a, .service-links a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.category-list a:hover, .service-links a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Blog Post Article Page */
.blog-post {
    padding: 4rem 0;
    background: #f8f9fa;
}

.blog-post .container {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

.article-header {
    grid-column: 1 / -1;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-date {
    color: #999;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.article-header h1 {
    font-size: 2.75rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0;
}

.article-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.article-intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    line-height: 1.9;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

.section-content ul, .section-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.section-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.section-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(26, 84, 144, 0.3);
}

.article-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.article-cta p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
    opacity: 0.95;
}

.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.related-posts {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 1rem;
}

.related-posts a {
    color: var(--text-dark);
    display: block;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.related-posts a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.25rem;
}

/* ============================================
   PAGE HERO ENHANCEMENTS
   ============================================ */

.page-hero {
    background: url('../images/cape-town.webp') center/cover no-repeat;
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    opacity: 1;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 1;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-secondary {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS ENHANCEMENT
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .blog-grid .container,
    .blog-post .container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar,
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .blog-posts {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1.05rem;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
    
    .article-header h1 {
        font-size: 1.875rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-intro {
        padding: 1.5rem;
        font-size: 1.05rem;
    }
    
    .cta-content h2 {
        font-size: 1.875rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .feature-card,
    .blog-card,
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .area-tags {
        gap: 0.5rem;
    }
    
    .area-tag {
        font-size: 0.875rem;
        padding: 0.4rem 0.85rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .emergency-banner,
    .header,
    .footer,
    .cta-secondary,
    .article-cta,
    .blog-sidebar,
    .article-sidebar {
        display: none;
    }
    
    .article-content {
        box-shadow: none;
    }
}
