/*
 | Website service pages only (body.tk-website-page: web design, landing,
 | multi-page, e-commerce, web performance, mobile app).
 |
 | 1. Centre the section headings, intros, review slides and card text that
 |    were left-aligned. Lists (package features, plan bullets), the FAQ
 |    questions, the comparison table and the free audit card stay as they are.
 | 2. Trim the oversized empty space between sections.
 |
 | Loaded after the other page sheets; selectors start with the body class so
 | they win over the shared rules without touching any other page.
 */

/* ---------- 1. Centring (all widths) ---------- */

/* "What customers say / Trusted by 10,000+ businesses" heading */
body.tk-website-page section.customreviews .tk-reviews-headrow {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.tk-website-page section.customreviews .tk-reviews-headrow > * {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

body.tk-website-page section.customreviews .tk-reviews-headrow .tk-reviews-head {
    flex: 0 0 auto;
    width: 100%;
}

body.tk-website-page section.customreviews .tk-reviews-headrow .tk-reviews-head .main-title {
    text-align: center;
}

body.tk-website-page section.customreviews .tk-reviews-headrow .tk-reviews-rule {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, transparent, rgba(0, 115, 252, 0.55) 30%, rgba(0, 115, 252, 0.55) 70%, transparent);
}

/* Video testimonial cards: name / company under the video */
body.tk-website-page .homepage-testimonial-card .section-header.details {
    text-align: center;
    align-items: center;
}

body.tk-website-page .homepage-testimonial-card .section-header.details .testimonial-verified-badge {
    margin-left: auto;
    margin-right: auto;
}

/* Facebook and Trustpilot review blocks */
body.tk-website-page .trustpilot-topbar {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 14px;
}

body.tk-website-page .trustpilot-topbar > div {
    text-align: center;
}

body.tk-website-page .trustpilot-kicker {
    justify-content: center;
}

body.tk-website-page .trustpilot-summary {
    margin-left: auto;
    margin-right: auto;
}

body.tk-website-page .trustpilot-card {
    text-align: center;
}

body.tk-website-page .trustpilot-card-head {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 8px 12px;
}

body.tk-website-page .trustpilot-card .trustpilot-card-body,
body.tk-website-page .trustpilot-card .trustpilot-see-more,
body.tk-website-page .trustpilot-card a {
    text-align: center;
}

body.tk-website-page .trustpilot-card .trustpilot-see-more {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

body.tk-website-page .trustpilot-card-footer {
    justify-content: center !important;
    text-align: left;
}

body.tk-website-page .trustpilot-footer {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 14px;
}

body.tk-website-page .centerbuttons {
    text-align: center;
    justify-content: center;
}

/* "Included with every tier / app" strip */
body.tk-website-page #tk-webincluded .inc-head {
    text-align: center;
    justify-content: center;
}

/* "Not shared hosting" and "What you do not see" intros */
body.tk-website-page #tk-webinfra .gd-intro,
body.tk-website-page #tk-webhood .hd-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

body.tk-website-page #tk-webinfra .gd-headrow,
body.tk-website-page #tk-webhood .hd-headrow {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.tk-website-page #tk-webinfra .gd-lead,
body.tk-website-page #tk-webhood .hd-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Under-the-hood cards (deploy pipeline, uptime, why customers choose us).
   The terminal log, the uptime grid and the free audit card keep their layout. */
body.tk-website-page #tk-webhood .hd--pipeline > .hd-eyebrow,
body.tk-website-page #tk-webhood .hd--pipeline > .hd-name,
body.tk-website-page #tk-webhood .hd--pipeline > .hd-text,
body.tk-website-page #tk-webhood .hd--uptime > .hd-eyebrow,
body.tk-website-page #tk-webhood .hd--uptime > .hd-name,
body.tk-website-page #tk-webhood .hd--uptime > .hd-text,
body.tk-website-page #tk-webhood .hd--uptime > .hd-figure,
body.tk-website-page #tk-webhood .hd--benefits > .hd-eyebrow,
body.tk-website-page #tk-webhood .hd--benefits > .hd-shout,
body.tk-website-page #tk-webhood .hd--benefits > .hd-text {
    text-align: center;
    justify-content: center;
}

body.tk-website-page #tk-webhood .hd--benefits .bn-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body.tk-website-page #tk-webhood .hd--benefits .bn-stats {
    text-align: center;
}

/* "Get more than just a website / app" cards */
body.tk-website-page .service_main--growth .service_block {
    text-align: center;
}

body.tk-website-page .service_main--growth .service_block .serv_title,
body.tk-website-page .service_main--growth .service_block .serv_desc {
    text-align: center;
}

/* Live website link collages */
body.tk-website-page .website-link-showcase__head,
body.tk-website-page .website-link-showcase__head > div {
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

body.tk-website-page .website-link-showcase__head p {
    margin-left: auto;
    margin-right: auto;
}

body.tk-website-page .website-link-card__body {
    text-align: center;
    align-items: center;
}

/* Landing / multi-page / e-commerce "how it works" steps */
body.tk-website-page .work .service_outer {
    text-align: center;
}

body.tk-website-page .work .service_outer > img,
body.tk-website-page .work .service_outer > .live,
body.tk-website-page .work .service_outer > div:first-child {
    margin-left: auto;
    margin-right: auto;
}

/* Web performance plan cards: name, badge, intro and price line */
body.tk-website-page .service_main .service_block.w-100 > .serv_title,
body.tk-website-page .service_main .service_block.w-100 > .serv_desc,
body.tk-website-page .service_main .service_block.w-100 > .serice_desc > .serv_title,
body.tk-website-page .service_main .service_block.w-100 > .serice_desc > .serv_desc,
body.tk-website-page .service_main .service_block.w-100 > .tk-price.refer {
    text-align: center;
}

body.tk-website-page .service_main .service_block.w-100 .tk-discount.tk-sale-badge {
    margin-left: auto;
    margin-right: auto;
}

body.tk-website-page .service_main .service_block.w-100 .tk-line {
    justify-content: center;
}

/* FAQ title */
body.tk-website-page .bgservicesection .min3 .maintitle {
    text-align: center;
}

/* Free consultation box: centred while the form sits under the text */
@media (max-width: 991.98px) {
    body.tk-website-page #quote .our-brands-box .col-lg-7,
    body.tk-website-page #quote .our-brands-box .col-lg-7 .main-title,
    body.tk-website-page #quote .our-brands-box .col-lg-7 > span {
        text-align: center !important;
    }

    body.tk-website-page #quote .our-brands-box .col-lg-7 > p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------- 2. Spacing ---------- */

/* Desktop: the growth band reused the hero's 180px top padding. */
body.tk-website-page section.service_main.service_main--growth {
    padding-top: 72px !important;
}

body.tk-website-page section.bgservicesection .min3 {
    margin-top: 48px !important;
}

@media (max-width: 767.98px) {
    /* Lead form card to the "Rated #1" line */
    body.tk-website-page .service_main .logo-lead-wrap {
        margin-bottom: 8px !important;
    }

    body.tk-website-page .service_main .logo-lead-wrap ~ .service_desc,
    body.tk-website-page .service_main .logo-lead-wrap + * .service_desc {
        margin-top: 28px !important;
    }

    body.tk-website-page section.customreviews {
        padding-top: 22px !important;
    }

    body.tk-website-page section.customreviews .tk-reviews-headrow {
        margin-top: 8px !important;
    }

    body.tk-website-page section#tk-webinfra {
        padding-top: 32px !important;
        padding-bottom: 28px !important;
    }

    body.tk-website-page section#tk-webhood {
        padding-top: 32px !important;
        padding-bottom: 28px !important;
    }

    body.tk-website-page section.service_main.service_main--growth {
        padding-top: 24px !important;
    }

    body.tk-website-page section.service_main.service_main--growth .min2 {
        margin-top: 0 !important;
    }

    body.tk-website-page section.pricing.mainp {
        margin-top: 16px !important;
        padding-bottom: 0 !important;
    }

    body.tk-website-page section.pricing .service_table {
        margin-bottom: 4px !important;
    }

    body.tk-website-page section.website-link-showcase {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    body.tk-website-page section.bgservicesection .min3 {
        margin-top: 44px !important;
        margin-bottom: 4px !important;
    }

    body.tk-website-page section.bgservicesection .min3 + .col-lg-12 {
        margin-top: 0 !important;
    }

    /* Landing / multi-page / e-commerce hero bottom and the sections after it */
    body.tk-website-page section.service_main.black {
        padding-bottom: 36px !important;
    }

    body.tk-website-page section.work.logosection {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    body.tk-website-page section.service_main.black p {
        margin-bottom: 12px !important;
    }

    /* Comparison table band */
    body.tk-website-page section.bgblack:not(.customreviews) {
        padding-top: 16px !important;
        padding-bottom: 24px !important;
    }

    body.tk-website-page section.bgblack .service_table {
        margin-top: 8px !important;
    }

    body.tk-website-page section.customreviews .tk-reviews-headrow + .reveal-fade-up,
    body.tk-website-page section.customreviews .row > .col-lg-12.reveal-fade-up {
        margin-top: 4px !important;
    }

    body.tk-website-page section.bgplaingrey.faq {
        padding-top: 24px !important;
    }

    body.tk-website-page section.work.logosection .logo-slide.tk-m-tint {
        margin-bottom: 4px !important;
    }

    /* Web performance hero and packages heading */
    body.tk-website-page .service_main .wearetrusted {
        padding-bottom: 12px !important;
    }

    body.tk-website-page .service_main .ctabuttons {
        margin-top: 16px !important;
    }

    body.tk-website-page .service_main .text-center.main-title {
        margin-bottom: 8px !important;
    }

    body.tk-website-page .service_main .row.g-4.align-items-stretch {
        margin-top: 8px !important;
    }
}


@media (min-width: 768px) {
    body.tk-website-page section#tk-webhood {
        padding-bottom: 40px !important;
    }
}
