/* =============================
   SERVICES & PRICING - Teal/Gold Professional Theme
============================= */

/* Service Cards on Homepage */
.services {
    padding: 5rem 0;
    background: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-gold) 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-teal);
}

.service-card.featured {
    border: 2px solid var(--accent-gold);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-card.featured::before {
    height: 5px;
}

.service-card.featured .badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--color-black-deep);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: center;
}

.service-desc {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.925rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--accent-teal);
    font-weight: 700;
    flex-shrink: 0;
}

.service-price {
    text-align: center;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.service-price .price-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-teal);
    display: block;
    line-height: 1;
}

.service-price .price-suffix {
    font-size: 1rem;
    color: var(--text-soft);
    font-weight: 400;
    margin-left: 0.25rem;
}

.service-price .price.small {
    font-size: 1.8rem;
}

.service-card .btn {
    width: 100%;
    margin-bottom: 1rem;
}

.tier-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tier-badge.free {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border: 1px solid var(--alert-success-border);
}

.tier-badge.premium {
    background: var(--accent-gold-soft-bg);
    color: var(--accent-gold-dark);
    border: 1px solid var(--accent-gold);
}

/* =============================
   PRICING SECTION
============================= */
.pricing {
    padding: 5rem 0;
    background: var(--bg-surface-muted);
}

.services-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-price-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    border: 2px solid var(--card-border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-price-card:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.price-options {
    margin: 1.5rem 0;
}

.price-option {
    background: var(--bg-surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.price-option:hover {
    border-color: var(--accent-teal);
    background: var(--accent-teal-soft-bg);
}

.price-option.featured {
    border-color: var(--accent-teal);
    background: var(--accent-teal-soft-bg);
    box-shadow: var(--shadow-sm);
}

.price-option .label {
    font-size: 0.925rem;
    color: var(--text-main);
    font-weight: 500;
}

.price-option .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-teal);
}

.price-option .period {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-left: 0.25rem;
}

/* =============================
   PRICING PLANS (for detail pages)
============================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.plan {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.plan.featured {
    border-color: var(--accent-gold);
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

.plan.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
}

.plan .badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--color-black-deep);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-align: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-subtle);
}

.plan-price .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-teal);
    display: block;
    margin-bottom: 0.5rem;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-save {
    color: var(--color-success);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-align: center;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.875rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.plan-features li::before {
    content: '✓';
    color: var(--accent-teal);
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.plan .btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* Premium Subscription Card */
.premium-subscription {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border-strong);
    text-align: center;
}

.premium-subscription h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.premium-subscription .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.premium-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--color-neutral-900) 0%, var(--color-neutral-800) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.premium-header {
    position: relative;
    z-index: 1;
}

.premium-header h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.premium-price {
    margin: 1.5rem 0;
}

.premium-price .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.premium-price .period {
    font-size: 1.2rem;
    opacity: 0.9;
}

.save-note {
    opacity: 0.9;
    font-size: 1rem;
    margin-top: 0.75rem;
}

.premium-benefits {
    text-align: left;
    margin: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.premium-benefits h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: white;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
}

.premium-benefits li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-benefits li::before {
    content: '✓';
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 800;
}

.premium-card .btn {
    background: var(--accent-gold);
    color: var(--color-black-deep);
    font-weight: 700;
    margin-top: 1.5rem;
    border: 2px solid var(--accent-gold);
}

.premium-card .btn:hover {
    background: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-2px);
}

.premium-card .note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Problem/Solution Section */
.problem-solution {
    padding: 4rem 0;
    background: var(--bg-surface);
    text-align: center;
}

.problem-solution h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.pain {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    padding: 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    border-left: 4px solid var(--color-error);
    box-shadow: var(--shadow-sm);
}

.problem-solution h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-success);
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {

    .services-grid,
    .services-pricing,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured,
    .plan.featured {
        transform: scale(1);
    }

    .service-price .price,
    .plan-price .price {
        font-size: 2rem;
    }

    .premium-price .price {
        font-size: 2.5rem;
    }

    .premium-card {
        padding: 2rem 1.5rem;
    }
}

/* =============================
   DARK MODE OVERRIDES
============================= */

body.dark-mode .services,
body.dark-mode .pricing {
    background: #0f172a;
}

body.dark-mode .service-card,
body.dark-mode .service-price-card,
body.dark-mode .plan,
body.dark-mode .price-option {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

body.dark-mode .service-card h3,
body.dark-mode .plan h3,
body.dark-mode .price-option .label {
    color: #e2e8f0;
}

body.dark-mode .service-desc,
body.dark-mode .service-features li,
body.dark-mode .plan-features li,
body.dark-mode .premium-subscription .subtitle {
    color: #cbd5e1;
}

body.dark-mode .service-price {
    border-color: #334155;
}

body.dark-mode .service-price .price-label,
body.dark-mode .service-price .price-suffix,
body.dark-mode .plan-price .period {
    color: #94a3b8;
}

body.dark-mode .service-price .price,
body.dark-mode .plan-price .price,
body.dark-mode .price-option .price {
    color: #2dd4bf;
    /* Brighter teal for dark mode */
}

/* CRITICAL: Badge Visibility in Dark Mode */
body.dark-mode .service-card.featured .badge,
body.dark-mode .plan .badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

body.dark-mode .tier-badge {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .tier-badge.premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    color: #fbbf24;
    border-color: #d97706;
}

body.dark-mode .tier-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: #059669;
}

body.dark-mode .problem-solution {
    background: #0f172a;
}

body.dark-mode .problem-solution h2 {
    color: #e2e8f0;
}

body.dark-mode .pain {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-left-color: #ef4444;
}

body.dark-mode .premium-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #d97706;
}

body.dark-mode .premium-card::before {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
}