/* ========================================
   Pricing Hub & Infrastructure Pages CSS
   ======================================== */

/* ===== Pricing Hub Page ===== */

.pricing-hub-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pricing-hub-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: heroShimmer 15s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-30px) translateY(20px); }
}

.pricing-hub-hero .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.pricing-hub-hero h1 {
    font-size: 3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

.pricing-hub-hero h1 .gradient-text {
    background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hub-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Hub Cards Grid */
.hub-cards-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.hub-card {
    background: var(--bg-secondary, #ffffff);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color, #e2e8f0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    transition: height 0.3s ease;
}

.hub-card.crew-card::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.hub-card.smart-card::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.hub-card.infra-card::before { background: linear-gradient(90deg, #10b981, #06b6d4); }

.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hub-card:hover::before {
    height: 6px;
}

.hub-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hub-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #1a202c);
}

.hub-card p {
    font-size: 1rem;
    color: var(--text-secondary, #4a5568);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hub-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color, #667eea);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.hub-card:hover .hub-card-arrow {
    gap: 0.85rem;
}


/* ===== Infrastructure Cover Page ===== */

.infra-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 100%);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.infra-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
}

.infra-hero .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.infra-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.infra-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Sector Cards (Level 1) */
.sectors-section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.sectors-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sector-card {
    background: var(--bg-secondary, #fff);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.sector-card.water-sector:hover { border-color: #10b981; }
.sector-card.roads-sector:hover { border-color: #f59e0b; }
.sector-card.bridges-sector:hover { border-color: #6366f1; }

.sector-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.sector-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sector-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sector-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.sector-badge.water { background: linear-gradient(135deg, #10b981, #059669); }
.sector-badge.roads { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sector-badge.bridges { background: linear-gradient(135deg, #6366f1, #4f46e5); }


/* ===== Category Items (Level 2) ===== */

.category-hero {
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.category-hero.water-hero {
    background: linear-gradient(135deg, #064e3b, #047857, #10b981);
}
.category-hero.roads-hero {
    background: linear-gradient(135deg, #78350f, #92400e, #b45309);
}
.category-hero.bridges-hero {
    background: linear-gradient(135deg, #312e81, #3730a3, #4f46e5);
}

.category-hero .hero-inner {
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.category-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-muted, #718096);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-light, #a0aec0);
}

/* Category Item Cards (Level 2) */
.category-items-section {
    padding: 2rem 2rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.category-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-item-card {
    background: var(--bg-secondary, #fff);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color, #e2e8f0);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.category-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #667eea);
}

.category-item-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.category-item-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.category-item-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ===== Detail / Pricing Page (Level 3-4) ===== */

.detail-hero {
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 2.5rem 2rem;
    text-align: center;
}

.detail-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.detail-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-content {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.param-form {
    background: var(--bg-secondary, #fff);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 2rem;
}

.param-form h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 0.75rem;
}

.param-group {
    margin-bottom: 1.25rem;
}

.param-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.param-group select,
.param-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary, #f8fafc);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.param-group select:focus,
.param-group input:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.pricing-result {
    background: var(--bg-secondary, #fff);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #10b981;
    display: none;
}

.pricing-result.visible {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.pricing-result h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #10b981;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    font-size: 0.95rem;
}

.pricing-table th {
    background: var(--bg-tertiary, #f1f5f9);
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-total-row {
    font-weight: 700;
    font-size: 1.1rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Placeholder Message */
.placeholder-msg {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted, #718096);
}

.placeholder-msg .placeholder-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.placeholder-msg h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.placeholder-msg p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .pricing-hub-hero h1,
    .infra-hero h1 {
        font-size: 2rem;
    }

    .category-hero h1 {
        font-size: 1.75rem;
    }

    .hub-cards-grid,
    .sectors-grid,
    .category-items-grid {
        grid-template-columns: 1fr;
    }

    .hub-card {
        padding: 2rem 1.5rem;
    }

    .breadcrumb {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .pricing-hub-hero h1,
    .infra-hero h1 {
        font-size: 1.6rem;
    }

    .hub-card-icon,
    .sector-icon {
        font-size: 3rem;
    }
}
