/* CVG Dynamic Layout Enhancement */
/* Modern card-based pricing layout that adapts to content */

/* Dynamic Service Cards Layout */
.dynamic-services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-pricing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.service-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.service-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-description {
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.5;
}

.service-content {
    padding: 25px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.price-item {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.price-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.price-label {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 600;
}

.price-item:hover .price-label {
    color: rgba(255,255,255,0.9);
}

.price-value {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
}

.price-item:hover .price-value {
    color: white;
}

.service-timeline {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
    color: #856404;
}

.service-features {
    margin: 20px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.1em;
}

/* Package Highlights */
.package-highlight {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.package-highlight::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 15px;
    right: -30px;
    background: #28a745;
    color: white;
    padding: 5px 40px;
    font-size: 0.8em;
    font-weight: bold;
    transform: rotate(45deg);
}

/* Responsive Layout */
@media (max-width: 768px) {
    .dynamic-services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .service-header {
        padding: 15px;
    }
    
    .service-title {
        font-size: 1.2em;
    }
    
    .service-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .price-item {
        padding: 12px 8px;
    }
}

/* Color Variables for Different Services */
.construction-theme {
    --primary-color: #2c5aa0;
    --secondary-color: #1e3d72;
}

.real-estate-theme {
    --primary-color: #1e88e5;
    --secondary-color: #1565c0;
}

.resilience-theme {
    --primary-color: #0077be;
    --secondary-color: #005a8b;
}

.small-business-theme {
    --primary-color: #ff6b6b;
    --secondary-color: #ee5a52;
}

/* Enhanced Interactive Elements */
.service-pricing-card {
    cursor: pointer;
    position: relative;
}

.service-pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-pricing-card:hover::after {
    opacity: 1;
}

/* Dynamic Content Sections */
.dynamic-section {
    margin: 40px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dynamic-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flexible Hourly Rates Grid */
.hourly-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.rate-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.rate-position {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.rate-price {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

/* Expandable Content Sections */
.expandable-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.section-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.section-header:hover {
    background: #e9ecef;
}

.section-toggle {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.expandable-section.expanded .section-content {
    padding: 20px;
    max-height: 1000px;
}

.expandable-section.expanded .section-toggle {
    transform: rotate(180deg);
}

/* Sticky Navigation for Long Pages */
.service-nav {
    position: sticky;
    top: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-link {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Progressive Disclosure for Complex Information */
.info-disclosure {
    margin: 15px 0;
}

.disclosure-summary {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.disclosure-summary:hover {
    background: #e9ecef;
}

.disclosure-content {
    padding: 16px;
    border-left: 3px solid var(--primary-color);
    margin-left: 16px;
    display: none;
}

.disclosure-content.visible {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
