/* Services Pages - Compact Grid & Consistency */

:root {
    --service-card-radius: 20px;
    --card-shadow-hover: 0 20px 40px rgba(15, 26, 35, 0.08);
}

.services-container {
    padding: var(--space-4xl) 0;
}

/* Consistent Editorial Header (Left Aligned) */
.section-header.editorial-header {
    max-width: 780px;
    margin: 0 0 60px 0;
    text-align: left;
}

.section-header.editorial-header .section-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-top: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: clamp(32px, 5vw, 48px);
}

/* Force 4 columns on large screens for upgrades */
.upgrades-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Force 3 columns on large screens for custom */
.services-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-accent-light);
    border-radius: var(--service-card-radius);
    overflow: hidden;
    /* Stronger shadow for better contrast against light blue bg */
    box-shadow: 0 4px 24px rgba(15, 26, 35, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-6px);
}

.card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 85%;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    overflow: hidden;
}

.card-image-wrap img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(15, 26, 35, 0.06));
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .card-image-wrap img {
    transform: translate(-50%, -50%) scale(1.05);
}

.service-card-content {
    padding: clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-content h3 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
    line-height: 1.25;
}

.service-card-content p {
    font-size: clamp(14px, 1.5vw, 15px);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Benefit Pills */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.pill {
    background-color: #f2f9ff;
    border: 1px solid #d8e9fb;
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Process Section Consistency */
.process-section {
    padding: clamp(60px, 8vw, 100px) 0;
    border-top: 1px solid rgba(15, 26, 35, 0.05);
    margin-top: clamp(40px, 6vw, 60px);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(20px, 3vw, 32px);
    margin-top: 40px;
}

/* .process-item now uses .tile-elevation base class - styled like service tiles */
.process-item {
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Match .circle-icon-service-tile sizing (80px) */
.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 32px;
    flex-shrink: 0;
}

/* Match service tile h3 styling */
.process-item h4 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

/* Match .body-fade-out styling */
.process-item p {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(15, 26, 35, 0.8);
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .upgrades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .services-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {

    .upgrades-grid,
    .services-grid.three-col {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px !important;
    }

    .section-tagline {
        font-size: 18px !important;
    }

    /* Two-col layout: sidebar comes after main on mobile */
    .two-col-layout {
        flex-direction: column;
    }

    .two-col-main {
        order: 1;
    }

    .two-col-sidebar {
        order: 2;
    }

    /* Upgrades/Custom pages: sidebar matches main content width when stacked */
    .two-col-sidebar.sidebar-wide {
        max-width: 700px;
        width: 100%;
    }
}

/* Support page: Pricing cards grid wrapper */
/* Default (desktop 2-col layout): 1 column stacked in sidebar */
.pricing-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pricing-cards-row .pricing-card {
    margin-bottom: 0;
}

/* Tablet: section goes 1-col, pricing cards go 2-col at 325px each */
@media (max-width: 991px) and (min-width: 701px) {
    .two-col-sidebar.support-sidebar {
        max-width: 700px;
    }

    .pricing-cards-row {
        grid-template-columns: repeat(2, 325px);
        justify-content: center;
    }
}

/* When viewport can't fit 2 × 325px: back to 1 column, full sidebar width */
@media (max-width: 700px) {
    .two-col-sidebar.support-sidebar {
        max-width: 450px;
        width: 100%;
    }

    .pricing-cards-row {
        grid-template-columns: 1fr;
    }

    .pricing-cards-row .pricing-card {
        max-width: 100%;
        width: 100%;
    }
}

/* Other Services Grid (3 columns) */
.other-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .other-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .other-services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Page Section Backgrounds */
/* Use consistent CSS variables for global changeability */
.service-content-section {
    background-color: var(--color-bg-lighter);
    /* #f2f9ff - lighter */
}

.service-other-services {
    background-color: var(--color-bg-light);
    /* #e9f4ff - darker */
}

/* ========================================
   Compact Feature Tiles
   Reusable across service pages
   ======================================== */
.feature-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-tile {
    background: var(--color-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(15, 26, 35, 0.04);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.feature-tile:hover {
    box-shadow: 0 8px 24px rgba(15, 26, 35, 0.08);
    transform: translateY(-2px);
}

.feature-tile-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e6f0ff 0%, #d4e8ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-tile-icon img {
    width: 24px;
    height: 24px;
}

.feature-tile-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--color-text-main);
}

.feature-tile-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* ========================================
   Service Detail Page Styles
   Replaces inline styles in custom, upgrades, support pages
   ======================================== */

/* Layout */
@media (min-width: 992px) {
    .two-col-layout.service-detail-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 80px;
        margin-bottom: 80px;
    }
}

.service-section-heading {
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

/* Feature List (Icon + Text Rows) */
.service-feature-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.service-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-feature-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-top: 10px;
    flex-shrink: 0;
}

.service-feature-title {
    color: var(--color-text-main);
    font-weight: 700;
}

.service-feature-desc {
    margin: 4px 0 0 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Callout Box */
.service-callout {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-main);
    padding: 20px 24px;
    background: var(--color-bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

/* Sidebar Card */
.sidebar-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(15, 26, 35, 0.06);
}

.sidebar-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--color-text-main);
}

.sidebar-heading.no-margins {
    margin-bottom: 0 !important;
}

.sidebar-heading-sm {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--color-text-main);
}

.sidebar-price-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 8px 0;
}

.sidebar-price-sub {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Sidebar Lists */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-list-item {
    font-size: 15px;
    color: var(--color-text-muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.sidebar-check {
    color: var(--color-accent);
}

/* Sidebar Lists with Borders (Upgrades page) */
.sidebar-list-bordered {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-list-bordered li {
    font-size: 15px;
    color: var(--color-text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 26, 35, 0.08);
}

.sidebar-list-bordered li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-list-bordered strong {
    color: var(--color-text-main);
}

/* Pricing Cards (Support page) */
.pricing-card {
    border-width: 2px;
    border-style: solid;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.pricing-card-blue {
    border-color: #0891b2;
    background: #ecfeff;
}

.pricing-card-accent {
    border-color: var(--color-accent);
    background: #eff6ff;
}

.pricing-card h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
}

.pricing-card-blue h4 {
    color: #0e7490;
}

.pricing-card-accent h4 {
    color: var(--color-accent);
}

.pricing-card-price {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.pricing-card-blue .pricing-card-price {
    color: #0e7490;
}

.pricing-card-accent .pricing-card-price {
    color: var(--color-accent);
}

.pricing-card-note {
    margin: 4px 0 0 0;
    font-size: 14px;
}

.pricing-card-blue .pricing-card-note {
    color: #0e7490;
}

.pricing-card-accent .pricing-card-note {
    color: var(--color-accent);
}

/* CTA Button Full Width */
.cta-full-width {
    width: 100%;
    justify-content: center;
}

.cta-margin-top {
    margin-top: 24px;
}

/* Helper text */
.sidebar-helper-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Misc utilities */
.text-center-link {
    text-align: center;
    margin-top: 48px;
}

.text-center-link a {
    color: var(--color-text-main);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.text-center-link a .icon-arrow-button {
    transform: scaleX(-1);
    transition: transform 0.2s ease;
}

.text-center-link a:hover .icon-arrow-button {
    transform: scaleX(-1) translateX(4px);
}

.process-note {
    margin-top: 32px;
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 600px;
}

/* Step Number - Responsive Sizing (Jan 2026) */
@media (max-width: 600px) {
    .step-number {
        width: clamp(48px, 12vw, 80px);
        height: clamp(48px, 12vw, 80px);
        font-size: clamp(20px, 5vw, 32px);
    }

    .process-item {
        padding: 24px;
        gap: 16px;
    }

    .process-item h4 {
        font-size: 20px;
    }
}

/* Sidebar Mobile - Consistent Center Alignment */
@media (max-width: 991px) {
    .sidebar-card {
        text-align: center;
    }

    .sidebar-list {
        align-items: center;
    }

    .sidebar-list-item {
        justify-content: center;
    }

    .sidebar-list-bordered {
        text-align: center;
    }

    .sidebar-list-bordered li {
        text-align: center;
    }
}

/* Mobile Typography Refinements for Service Pages */
@media (max-width: 768px) {

    /* Service section headings */
    .service-section-heading {
        margin-bottom: 20px;
    }

    /* Sidebar pricing - slightly smaller */
    .sidebar-price-large {
        font-size: 28px;
    }

    /* Sidebar headings */
    .sidebar-heading {
        font-size: 16px;
    }

    /* Feature tiles */
    .feature-tile {
        padding: 20px;
        gap: 16px;
    }

    .feature-tile-content h4 {
        font-size: 16px;
    }

    .feature-tile-content p {
        font-size: 14px;
    }

    /* Process item text */
    .process-item p {
        font-size: 15px;
    }

    /* Service callout */
    .service-callout {
        font-size: 15px;
        padding: 16px 20px;
    }

    /* Sidebar card padding */
    .sidebar-card {
        padding: 24px;
    }

    /* Editorial header tagline */
    .section-header.editorial-header .section-tagline {
        font-size: 15px;
    }
}