/*
* ----------------------------------------------------------------------------------------
* UNIFIED PRODUCT PAGES CSS - CONSISTENT HEADING STYLES
* ----------------------------------------------------------------------------------------
* Author: Greenerworld Theme
* Description: Unified styling for all product page headings and sections
* Version: 1.0
* ----------------------------------------------------------------------------------------
*/

/* Product Page Base Styles */
.product-page {
    background: var(--white-color);
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
}

/* Hero Section - Unified Style */
.product-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="heroPattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%2354af32" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23heroPattern)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Product Category - Small Label Above Title */
.product-category {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(84, 175, 50, 0.1);
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid rgba(84, 175, 50, 0.2);
}

/* Main Product Title - Hero H1 */
.product-title {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Product Subtitle - Below Main Title */
.product-subtitle {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
}

/* Product Description - Hero Paragraph */
.product-description {
    font-size: 18px;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Product Badges - Tags Below Description */
.product-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), #45a028);
    color: var(--white-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(84, 175, 50, 0.3);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 175, 50, 0.4);
}

/* Section Headers - Unified Style for All Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #45a028);
    border-radius: 2px;
}

/* Section Title - Main H2 for Each Section */
.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #45a028);
    border-radius: 2px;
}

.section-title span {
    color: var(--primary-color) !important;
    font-weight: 700;
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Section Subtitle - Below Section Title */
.section-subtitle {
    font-size: 20px;
    color: #2c3e50 !important;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Titles - H3 in Feature Cards */
.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: #097000 !important;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Application Titles - H4 in Application Cards */
.app-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Card Content Titles - General Card H4 */
.card-content h4 {
    font-size: 20px;
    color: #2c3e50 !important;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Property Titles - For Property Cards */
.property-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Benefit Titles - For Benefit Cards */
.benefit-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Specification Table Headers */
.specs-table th {
    background: #2c3e50 !important;
    color: var(--white-color) !important;
    padding: 20px;
    font-weight: 600;
    text-align: left;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Labels */
.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery Info Titles */
.gallery-info h4 {
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Pricing Titles */
.pricing-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50 !important;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Statistics and Counter Titles */
.stat-label {
    font-size: 14px;
    color: #5a6c7d !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* Highlight Content Titles */
.highlight-content h5 {
    font-size: 18px;
    color: #2c3e50 !important;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Widget Titles - For Sidebar/Footer Widgets */
.widget-title {
    color: #2c3e50 !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #45a028);
    border-radius: 2px;
}

/* Responsive Design for Headings */
@media (max-width: 1200px) {
    .section-title {
        font-size: 42px;
    }
    
    .product-title {
        font-size: 42px;
    }
    
    .product-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .product-hero {
        padding: 100px 0 60px;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .product-title {
        font-size: 36px;
        margin-bottom: 18px;
    }
    
    .product-subtitle {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .product-description {
        font-size: 16px;
        margin-bottom: 35px;
    }
    
    .section-subtitle {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .feature-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header::after {
        width: 60px;
        height: 2px;
    }
}

@media (max-width: 767px) {
    .product-hero {
        padding: 80px 0 50px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .product-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .product-subtitle {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .product-description {
        font-size: 15px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .feature-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .app-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .card-content h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .property-title,
    .benefit-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .pricing-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .highlight-content h5 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .widget-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header::after {
        width: 50px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .product-badges {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .product-hero {
        padding: 70px 0 40px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .product-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .product-subtitle {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .product-description {
        font-size: 14px;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .section-subtitle {
        font-size: 15px;
        padding: 0 5px;
    }
    
    .feature-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .app-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .card-content h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .property-title,
    .benefit-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .pricing-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .highlight-content h5 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .widget-title {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-header::after {
        width: 40px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .product-badges {
        gap: 8px;
        margin-bottom: 35px;
    }
    
    .badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .product-category {
        font-size: 14px;
        padding: 6px 16px;
        margin-bottom: 12px;
    }
}

/* Enhanced Typography for Better Readability */
.section-title,
.product-title,
.feature-title,
.app-title,
.card-content h4,
.property-title,
.benefit-title,
.pricing-title,
.highlight-content h5,
.widget-title {
    font-family: "DM Sans", sans-serif;
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Consistency */
.section-title,
.product-title,
.feature-title,
.app-title,
.card-content h4,
.property-title,
.benefit-title,
.pricing-title,
.highlight-content h5,
.widget-title {
    color: #2c3e50 !important;
}

.section-subtitle,
.product-description {
    color: #2c3e50 !important;
}

.product-subtitle {
    color: var(--primary-color) !important;
}

/* Hover Effects for Interactive Headings */
.feature-title:hover,
.app-title:hover,
.card-content h4:hover,
.property-title:hover,
.benefit-title:hover,
.pricing-title:hover,
.highlight-content h5:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

/* Focus States for Accessibility */
.section-title:focus,
.product-title:focus,
.feature-title:focus,
.app-title:focus {
    outline: 3px solid rgba(84, 175, 50, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .section-title,
    .product-title,
    .feature-title,
    .app-title,
    .card-content h4,
    .property-title,
    .benefit-title,
    .pricing-title,
    .highlight-content h5,
    .widget-title {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .section-subtitle,
    .product-description,
    .product-subtitle {
        color: #333 !important;
    }
    
    .section-header::after,
    .widget-title::after,
    .section-title span::after {
        display: none !important;
    }
}

/* Dark Mode Support - Disabled to maintain consistent green headings */
/* @media (prefers-color-scheme: dark) {
    .product-page {
        background: #1a1a1a;
    }
    
    .section-title,
    .product-title,
    .feature-title,
    .app-title,
    .card-content h4,
    .property-title,
    .benefit-title,
    .pricing-title,
    .highlight-content h5,
    .widget-title {
        color: #ffffff !important;
    }
    
    .section-subtitle,
    .product-description {
        color: #cccccc !important;
    }
} */

/* Animation for Headings */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.product-title {
    animation: fadeInUp 0.6s ease-out;
}

.section-subtitle,
.product-subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .section-title,
    .product-title,
    .section-subtitle,
    .product-subtitle {
        animation: none;
    }
    
    .feature-title:hover,
    .app-title:hover,
    .card-content h4:hover,
    .property-title:hover,
    .benefit-title:hover,
    .pricing-title:hover,
    .highlight-content h5:hover {
        transition: none;
    }
}
