/* Service Pages Styles */

/* Subpage Header (New Unified Header for Subpages) */
.subpage-header {
    background: var(--primary);
    color: var(--text-inverted);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.subpage-header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subpage-header .brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-inverted);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.subpage-header .brand span {
    color: var(--secondary);
}

.subpage-header .nav-links {
    display: flex;
    gap: 2rem;
    margin: 0 2rem;
}

.subpage-header .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--transition);
}

.subpage-header .nav-links a:hover {
    color: var(--secondary);
}

.subpage-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Specifics for Subpage Header */
.subpage-header .mobile-menu-container {
    display: none; /* Hidden on desktop */
}

@media (max-width: 1024px) {
    .subpage-header .nav-links.desktop-only,
    .subpage-header .btn.desktop-only {
        display: none;
    }

    .subpage-header .mobile-menu-container {
        display: block;
    }
}

/* Service Hero */
.service-hero {
    padding: 4rem 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-hero-text .eyebrow {
    margin-bottom: 1rem;
}

.service-hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.service-hero-text .lead {
    font-size: 1.25rem;
    color: var(--text-body);
    max-width: 600px;
}

.service-hero-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
}

.service-hero-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-main);
    font-weight: 500;
}

.service-hero-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.service-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.keyword-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.keyword-chip:hover {
    background: var(--primary);
    color: var(--text-inverted);
    border-color: var(--primary);
}

.service-hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Service Hero Visual */
.service-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.service-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-stat-card {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.service-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.service-stat-card .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.service-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Challenges & Solutions Section */
.service-section {
    padding: 5rem 0;
}

.service-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.service-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.25rem;
}

.service-list--bullets li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-body);
}

.service-list--bullets li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--secondary);
    font-size: 1.5rem;
    line-height: 1rem;
    top: 0.2rem;
}

.service-list--steps {
    counter-reset: steps;
}

.service-list--steps li {
    position: relative;
    padding-left: 3.5rem;
    counter-increment: steps;
}

.service-list--steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: var(--text-inverted);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Case Study */
.service-case-study {
    padding: 4rem 0;
    background: var(--primary-light);
    color: var(--text-inverted);
}

.case-study-card {
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--accent);
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.case-study-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.case-study-header .badge {
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.case-study-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-inverted);
}

.case-study-body p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.case-study-outcome {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--accent);
}

/* Deliverables */
.service-deliverables {
    padding: 5rem 0;
    background: var(--surface);
}

.service-deliverables-header {
    margin-bottom: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.deliverable-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.deliverable-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.deliverable-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* FAQ */
.service-faq {
    padding: 5rem 0;
}

.service-faq h2 {
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--background);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    font-size: 1rem;
}

.faq-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    padding: 0 1.25rem;
    background: var(--surface);
}

.faq-item.is-open .faq-content {
    height: auto;
    padding: 1.25rem;
    padding-top: 0;
    border-top: 1px solid var(--border-light);
}

/* SEO Content */
.service-seo-content {
    padding: 4rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.service-seo-content .prose {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-body);
}

.service-seo-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-seo-content p {
    margin-bottom: 1.5rem;
}

.service-seo-content ul, 
.service-seo-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-seo-content li {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.service-cta {
    padding: 5rem 0;
}

.service-cta-grid {
    background: var(--gradient-accent);
    padding: 4rem;
    border-radius: var(--radius-xl);
    color: var(--text-inverted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-xl);
}

.service-cta-grid h2 {
    color: var(--text-inverted);
    margin-bottom: 1rem;
}

.service-cta-grid p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.service-cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Related Services */
.service-related {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.related-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-underline-offset: 4px;
}

.related-links a:hover {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .service-hero-grid,
    .service-section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-hero-text {
        order: 1;
    }
    
    .service-hero-visual {
        order: 2;
    }

    .service-cta-grid {
        padding: 2rem;
    }
}

/* =========================================
   PREMIUM BLOG STYLES (Added for SEO/AIO)
   ========================================= */

/* Key Takeaways Box */
.key-takeaways {
    background-color: #fffbeb; /* Amber-50 */
    border-left: 5px solid #d4af37; /* Gold */
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.key-takeaways h3 {
    color: #92400e; /* Amber-800 */
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-takeaways ul {
    margin: 0;
    padding-left: 1.5rem;
}

.key-takeaways li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Expert Quote Block */
.expert-quote {
    background: #f8fafc; /* Slate-50 */
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    margin: 3rem 0;
    border: 1px solid #e2e8f0;
}

.expert-quote::before {
    content: "“";
    font-family: serif;
    font-size: 5rem;
    color: #cbd5e1;
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.expert-quote blockquote {
    margin: 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #334155;
    z-index: 1;
    position: relative;
    line-height: 1.6;
}

.expert-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 700;
    color: #0a1128;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Data Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th {
    background: #0a1128;
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.data-table tr:nth-child(even) {
    background-color: #f8fafc;
}

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

/* Info Box / Definition */
.info-box {
    background: #eff6ff; /* Blue-50 */
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #1e3a8a;
}

.info-box strong {
    color: #172554;
}
