/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --primary-color: #172A39;
    --secondary-color: #2D5F7C;
    --accent-color: #216E7A;
    --light-accent: #CDAF81;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #F5F0E6;
    --bg-tertiary: #FAF7F2;
    --border-color: #CDAF81;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 6px 10px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* Pricing Page Styles */

/* Hero Section */
.pricing-page .hero {
    min-height: 50vh;
    contain: layout;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border: 2px solid #CDAF81;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #172A39;
}

.pricing-card.featured {
    border-color: #CDAF81;
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(205, 175, 129, 0.2);
}

.pricing-card.featured::before {
    content: attr(data-featured);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2D5F7C;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(45, 95, 124, 0.3);
}

.pricing-card.no-label::before {
    display: none;
}

/* Pricing Card Content */
.pricing-card h3 {
    color: #172A39;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card p {
    color: #172A39;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.pricing-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #172A39;
    font-weight: bold;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* Project Card Styling */
.pricing-card.project-card {
    grid-column: 1 / -1;
    margin-top: 4rem;
    background: linear-gradient(135deg, #172A39 0%, #2D5F7C 100%);
    border-color: #2D5F7C;
    color: white;
}

.pricing-card.project-card h3 {
    color: white;
}

.pricing-card.project-card p {
    color: #e2e8f0;
}

.pricing-card.project-card ul {
    color: #e2e8f0;
    margin: 0;
}

.pricing-card.project-card ul li {
    color: #e2e8f0;
    border-bottom-color: rgba(226, 232, 240, 0.3);
}

.pricing-card.project-card ul li::before {
    color: #e2e8f0;
}

.pricing-card.project-card .project-description {
    margin-top: 1.5rem;
    font-style: italic;
    color: #cbd5e0;
}

.pricing-card.project-card .cta-button.white {
    background: white;
    color: #1e3a8a;
}

.pricing-card.project-card .cta-button.white:hover {
    background: #f8f9fa;
    color: #1e3a8a;
}

/* Custom Solutions Section */
.custom-solutions {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.custom-solutions h3 {
    color: #172A39;
    margin-bottom: 1rem;
}

.custom-solutions p {
    max-width: 600px;
    margin: 1rem auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    contain: layout;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-fast);
    border: 2px solid #e3f2fd;
    position: relative;
    overflow: hidden;
    contain: layout;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--light-accent);
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 16px rgba(23, 42, 57, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform var(--transition-fast);
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: transparent;
}

.service-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.service-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.service-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-card ul li:last-child {
    border-bottom: none;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #172A39, #2D5F7C);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2D5F7C, #172A39);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(23, 42, 57, 0.3);
    color: white;
    text-decoration: none;
}

.cta-button.white {
    background: white;
    color: #172A39;
}

.cta-button.white:hover {
    background: #f8f9fa;
    color: #172A39;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-icon img {
        width: 40px;
        height: 40px;
    }
    
    .pricing-card h3 {
        font-size: 1.5rem;
    }
    
    .custom-solutions {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .pricing-card h3 {
        font-size: 1.25rem;
    }
    
    .pricing-card p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* RTL Support */
[dir="rtl"] .pricing-card ul li,
[dir="rtl"] .service-card ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .pricing-card ul li::before,
[dir="rtl"] .service-card ul li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .pricing-card.featured::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card,
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Focus States for Accessibility */
.cta-button:focus,
.pricing-card:focus,
.service-card:focus {
    outline: 3px solid #172A39;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pricing-card,
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .cta-button {
        background: #172A39 !important;
        color: white !important;
    }
}
