/* =========================================
   Service Pages Global Layout
   ========================================= */

/* -----------------------------------------
   1. Service Hero Section
   ----------------------------------------- */
.service-hero {
    /* Increased top padding slightly to ensure it clears the fixed navbar */
    padding: 12rem 2rem 6rem; 
    background: radial-gradient(ellipse at top center, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.hero-container {
    max-width: 800px; /* Restricts the width so text wraps beautifully */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Forces everything, including the badge and pricing box, to the exact center */
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1); /* Subtle sky blue tint */
    color: var(--sky-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px; /* Perfect pill shape */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15); /* Soft outer glow */
}

.hero-container h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

.hero-container p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 650px; /* Keeps the paragraph from getting too wide and hard to read */
}

.hero-pricing {
    margin-top: 2.5rem;
    display: inline-flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-pricing .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.hero-pricing .price-term {
    font-size: 0.9rem;
    color: var(--sky-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}
/* -----------------------------------------
   2. Container & Details Sections
   ----------------------------------------- */
.service-details {
    padding: 6rem 2rem;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* -----------------------------------------
   3. Architectural Advantage Grid
   ----------------------------------------- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.advantage-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
}

.advantage-card .icon {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.advantage-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.advantage-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* -----------------------------------------
   Section Headers (Specific to Services)
   ----------------------------------------- */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Ensures text is centered */
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto; /* Explicitly centers the paragraph container */
}
/* -----------------------------------------
   4. SaaS Pricing Tiers
   ----------------------------------------- */
.pricing-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(11, 15, 25, 0.6) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: center; /* Vertically centers the side cards so the middle pops out */
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-5px);
}

/* The Gold Tier Highlight (Center Card) */
.popular-tier {
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.9) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 1px solid var(--sky-blue);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.15);
    transform: scale(1.05); /* Makes it physically larger */
    z-index: 2;
}

.popular-tier:hover {
    border-color: var(--pastel-green);
    box-shadow: 0 15px 50px rgba(134, 239, 172, 0.2);
    transform: scale(1.05) translateY(-5px);
}

/* Fallback for smaller screens so the center card doesn't overflow */
@media (max-width: 1024px) {
    .popular-tier {
        transform: scale(1);
    }
    .popular-tier:hover {
        transform: translateY(-5px);
    }
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--sky-blue), var(--purpleish));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.tier-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-header h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.tier-sub {
    color: var(--sky-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tier-target {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 40px; 
}

.tier-pricing {
    text-align: center;
    margin-bottom: 2rem;
}

.upfront-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.monthly-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.term {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1; /* Pushes the button evenly to the bottom */
}

.tier-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

/* Custom checkmarks */
.tier-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sky-blue);
    font-weight: bold;
}

.popular-tier .tier-features li::before {
    color: var(--pastel-green);
}

.tier-features li strong {
    color: var(--text-main);
}

.tier-features li em {
    color: rgba(156, 163, 175, 0.6);
    font-style: normal;
    font-size: 0.85rem;
}