/* =============================================================
   Image IT — Sector / Industry template  (sector.php)
   Tokens taken from css/style.min.css + Appearance > Customiser:
     navy #121b3b | gold #eca81b | body #464646 | muted #5a6480
     card border #e4e8f0 | 'Open Sans' | 15px button radius
   All selectors namespaced .sector-* so nothing here can leak.
   ============================================================= */

body.page-template-sector {
    background: url(../images/service_page_bg.png);
    background-position: center center;
    background-size: 2500px;
}

body.page-template-sector footer#colophon {
    margin-top: 0;
}

/* The global owl slider is absolutely positioned for the old service
   pages — keep it in the flow here, same as the servicesnew template. */
body.page-template-sector .top_cat_slider {
    position: relative;
}

.sector-page {
    display: block;
    font-family: 'Open Sans', sans-serif;
    color: #464646;
    overflow-x: hidden;
}

/* The theme forces .container to 1560px, which is far too wide for
   long-form copy. Bring it back in line with the FAQ / blog width. */
.sector-page .container {
    max-width: 1240px !important;
}

/* ---------- Shared typography ---------------------------------- */

.sector-page h1 {
    font-size: 26px;
    line-height: 34px;
    font-weight: 700;
    color: #121b3b;
    margin-bottom: 20px;
}

.sector-page h2 {
    font-size: 22px;
    line-height: 32px;
    font-weight: 700;
    color: #121b3b;
    margin-bottom: 20px;
}

.sector-page h3 {
    font-size: 21px;
    line-height: 30px;
    font-weight: 700;
    color: #eca81b;
    margin-bottom: 12px;
}

.sector-page h1 span,
.sector-page h2 span {
    color: #eca81b;
}

.sector-prose {
    font-size: 18px;
    line-height: 30px;
    color: #464646;
}

.sector-prose p {
    margin-bottom: 20px;
    text-align: left;
}

.sector-prose p:last-child {
    margin-bottom: 0;
}

.sector-prose a {
    color: #eca81b;
    text-decoration: none;
}

.sector-prose a:hover {
    text-decoration: underline;
}

.sector-prose strong {
    color: #121b3b;
}

/* Bullets reuse the theme's gold tick */
.sector-prose ul {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

.sector-prose ul li {
    position: relative;
    margin-bottom: 15px;
    padding-left: 30px;
    list-style: none;
}

.sector-prose ul li:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 5px;
    height: 22px;
    width: 22px;
    background: url(../images/list_icon.png) center no-repeat;
}

/* ---------- Buttons ------------------------------------------- */

.sector-btn {
    display: inline-block;
    background: #eca81b;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 15px;
    border: 2px solid #eca81b;
    transition: 300ms;
}

.sector-btn:hover,
.sector-btn:focus-visible {
    background: #121b3b;
    border-color: #121b3b;
    color: #fff !important;
}

.sector-btn--lg {
    padding: 15px 30px;
}

.sector-btn--ghost {
    background: transparent;
    border-color: #eca81b;
    color: #eca81b !important;
}

.sector-btn--ghost:hover,
.sector-btn--ghost:focus-visible {
    background: #eca81b;
    border-color: #eca81b;
    color: #fff !important;
}

.sector-page a:focus-visible,
.sector-page button:focus-visible {
    outline: 2px solid #eca81b;
    outline-offset: 3px;
}

/* ---------- Hero ---------------------------------------------- */

.sector-hero {
    padding: 50px 0 40px;
    background-image: url(../images/topbg.png);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
}

.sector-hero__eyebrow {
    font-size: 20px;
    font-weight: 600;
    color: #eca81b;
    margin-bottom: 10px;
}

.sector-hero__inner {
    max-width: 820px;
}

.sector-hero__intro {
    margin-bottom: 30px;
}

/* Two-column variant — intro copy left, photo right */
.sector-hero--split .sector-hero__inner {
    max-width: none;
}

.sector-hero__figure {
    margin: 0;
}

.sector-page .sector-hero__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(18, 27, 59, .14);
}

/* Image variant — mirrors .hero-section on the funnel template */
.sector-hero--image {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sector-hero--image:before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 27, 59, .62);
    z-index: 1;
}

.sector-hero--image .container {
    position: relative;
    z-index: 2;
}

.sector-hero--image h1,
.sector-hero--image .sector-hero__eyebrow {
    color: #eca81b;
}

.sector-hero--image .sector-hero__img {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.sector-hero--image .sector-prose,
.sector-hero--image .sector-prose p,
.sector-hero--image .sector-prose strong {
    color: #fff;
}

/* ---------- Sections ------------------------------------------ */

.sector-section {
    padding: 50px 0;
}

.sector-section__head {
    max-width: 900px;
    margin-bottom: 40px;
}

.sector-section__head--center {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.sector-section__head--center p {
    font-size: 18px;
    line-height: 30px;
    text-align: center;
}

.sector-section__cta {
    margin-top: 35px;
}

.sector-section--services,
.sector-section--testimonials {
    background: rgba(255, 255, 255, .65);
}

.sector-section--challenges .sector-prose {
    max-width: 900px;
}

.sector-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 27, 59, .12);
}

/* Pull-out note under the "why" cards */
.sector-note {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-left: 4px solid #eca81b;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 24px rgba(18, 27, 59, .07);
}

.sector-note h3 {
    color: #121b3b;
}

/* ---------- Long-form content blocks -------------------------- */

.sector-block__inner {
    max-width: 900px;
}

.sector-block--tint {
    background: rgba(255, 255, 255, .65);
}

.sector-block + .sector-block {
    padding-top: 40px;
}

/* Subheadings inside a block */
.sector-prose h3 {
    font-size: 19px;
    line-height: 28px;
    font-weight: 700;
    color: #eca81b;
    margin: 30px 0 12px;
}

.sector-prose h3:first-child {
    margin-top: 0;
}

.sector-prose ol {
    margin: 0 0 20px 20px;
    padding-left: 10px;
}

.sector-prose ol li {
    margin-bottom: 12px;
}

/* Tables authored in the editor pick up the same treatment as the
   Remote vs Onsite table, without needing data-label attributes. */
.sector-prose table {
    width: 100%;
    margin: 0 0 25px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 26px;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 27, 59, .08);
}

.sector-prose thead th {
    background: #121b3b;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 18px;
    border: 0;
}

.sector-prose tbody th,
.sector-prose tbody td {
    padding: 14px 18px;
    border-top: 1px solid #e4e8f0;
    text-align: left;
    vertical-align: top;
}

.sector-prose tbody th {
    font-weight: 700;
    color: #121b3b;
}

.sector-prose tbody td {
    color: #5a6480;
}

.sector-prose tbody tr:nth-child(even) th,
.sector-prose tbody tr:nth-child(even) td {
    background: rgba(18, 27, 59, .025);
}

/* ---------- Cards --------------------------------------------- */

.sector-cards {
    margin: 0;
}

.sector-page .sector-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 27, 59, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sector-page .sector-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #eca81b, #f5c842);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.sector-page .sector-card:hover {
    transform: translateY(-5px);
    border-color: #eca81b;
    box-shadow: 0 12px 32px rgba(18, 27, 59, .13);
}

.sector-page .sector-card:hover:before {
    transform: scaleX(1);
}

.sector-card__icon {
    color: #121b3b;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 16px;
}

.sector-card__icon i,
.sector-card__icon svg {
    color: #121b3b;
}

.sector-page .sector-card__title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: #121b3b;
    margin-bottom: 10px;
}

.sector-page .sector-card__text {
    font-size: 16px;
    line-height: 26px;
    color: #5a6480;
    margin: 0;
    text-align: left;
}

/* ---------- Comparison table ---------------------------------- */

.sector-table-wrap {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(18, 27, 59, .08);
    overflow: hidden;
}

.sector-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 26px;
}

.sector-table thead th {
    background: #121b3b;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 20px;
    text-align: left;
    border: 0;
}

.sector-table tbody th,
.sector-table tbody td {
    padding: 16px 20px;
    border-top: 1px solid #e4e8f0;
    vertical-align: top;
    text-align: left;
}

.sector-table tbody th {
    font-weight: 700;
    color: #121b3b;
    width: 28%;
}

.sector-table tbody td {
    color: #5a6480;
}

.sector-table tbody tr:nth-child(even) th,
.sector-table tbody tr:nth-child(even) td {
    background: rgba(18, 27, 59, .025);
}

/* ---------- Process steps ------------------------------------- */

.sector-steps {
    counter-reset: sector-step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sector-step {
    counter-increment: sector-step;
    position: relative;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    padding: 26px 24px 26px 78px;
    box-shadow: 0 8px 24px rgba(18, 27, 59, .07);
}

.sector-step:before {
    content: counter(sector-step, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 24px;
    font-size: 26px;
    font-weight: 700;
    color: #eca81b;
    line-height: 1;
}

.sector-page .sector-step__title {
    font-size: 18px;
    line-height: 26px;
    color: #121b3b;
    margin-bottom: 8px;
}

.sector-page .sector-step__text {
    font-size: 16px;
    line-height: 26px;
    color: #5a6480;
    margin: 0;
    text-align: left;
}

/* ---------- Testimonials -------------------------------------- */

.sector-quote {
    height: 100%;
    margin: 0;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    padding: 30px 30px 26px;
    box-shadow: 0 8px 24px rgba(18, 27, 59, .07);
    position: relative;
}

.sector-quote:before {
    content: '\201C';
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 64px;
    line-height: 1;
    color: #eca81b;
    display: block;
    margin-bottom: -14px;
}

.sector-page .sector-quote p {
    font-size: 18px;
    line-height: 30px;
    color: #464646;
    text-align: left;
    margin-bottom: 18px;
}

.sector-quote__cite {
    border-top: 1px solid #eca81b;
    padding-top: 14px;
}

.sector-quote__name {
    display: block;
    font-weight: 700;
    color: #121b3b;
    font-size: 18px;
}

.sector-quote__company {
    display: block;
    font-size: 16px;
    color: #5a6480;
}

/* ---------- FAQ ----------------------------------------------- */
/* Colours come from the Customiser rules on #seoFaqAccordion —
   only the bits that block or clash are set here. */

.sector-faq .accordion-item {
    background: transparent;
    border-color: #eca81b;
}

.sector-faq .accordion-button {
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    color: #121b3b;
}

.sector-faq .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #121b3b;
}

.sector-faq .accordion-button:focus {
    box-shadow: none;
    border-color: #eca81b;
}

.sector-faq .accordion-button:not(.collapsed):after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.sector-faq .accordion-body {
    font-size: 18px;
    line-height: 30px;
    color: #464646;
}

.sector-faq .accordion-body p {
    text-align: left;
}

.sector-faq .accordion-body a {
    color: #eca81b;
    text-decoration: none;
}

/* ---------- Final CTA ----------------------------------------- */

.sector-finalcta {
    background: #121b3b;
    padding: 70px 0;
    text-align: center;
    color: #fff;
}

.sector-finalcta--image {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sector-page .sector-finalcta h2 {
    color: #fff;
    max-width: 820px;
    margin: 0 auto 18px;
}

.sector-finalcta .sector-prose {
    max-width: 700px;
    margin: 0 auto;
}

.sector-finalcta .sector-prose p,
.sector-finalcta .sector-prose strong {
    color: #fff;
    text-align: center;
}

.sector-finalcta__buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Responsive --------------------------------------- */

@media (min-width: 992px) {
    .sector-page .sector-hero__img {
        max-height: 460px;
        object-fit: cover;
    }
}

@media (max-width: 991px) {
    .sector-steps {
        grid-template-columns: 1fr;
    }

    .sector-hero--image {
        min-height: 340px;
    }
}

@media (max-width: 767px) {
    .sector-page h1 {
        font-size: 22px;
        line-height: 30px;
    }

    .sector-page h2 {
        font-size: 20px;
        line-height: 28px;
    }

    .sector-page h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .sector-prose,
    .sector-page .sector-quote p,
    .sector-faq .accordion-body,
    .sector-section__head--center p {
        font-size: 16px;
        line-height: 26px;
        text-align: left;
    }

    .sector-hero,
    .sector-section {
        padding: 30px 0;
    }

    .sector-section__head {
        margin-bottom: 26px;
    }

    .sector-finalcta {
        padding: 50px 0;
    }

    .sector-finalcta--image {
        background-attachment: scroll;
    }

    .sector-faq .accordion-button {
        font-size: 17px;
    }

    .sector-note {
        padding: 22px;
    }

    .sector-page .sector-hero__img {
        max-height: 300px;
        object-fit: cover;
    }

    .sector-prose ul li:before {
        height: 18px;
        width: 19px;
        top: 1px;
        background-size: contain;
    }

    .sector-prose table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: 12px;
    }

    .sector-prose h3 {
        font-size: 17px;
        line-height: 25px;
    }

    .sector-block + .sector-block {
        padding-top: 24px;
    }

    /* Stacked cards instead of a squashed table */
    .sector-table-wrap {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .sector-table thead {
        display: none;
    }

    .sector-table,
    .sector-table tbody,
    .sector-table tr,
    .sector-table th,
    .sector-table td {
        display: block;
        width: 100%;
    }

    .sector-table tbody tr {
        background: #fff;
        border: 1px solid #e4e8f0;
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 6px 0;
        box-shadow: 0 8px 24px rgba(18, 27, 59, .07);
    }

    .sector-table tbody th,
    .sector-table tbody td {
        border-top: 0;
        padding: 10px 18px;
        background: transparent !important;
    }

    .sector-table tbody th {
        width: 100%;
        font-size: 17px;
    }

    .sector-table tbody td:before {
        content: attr(data-label);
        display: block;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #eca81b;
        margin-bottom: 2px;
    }

    .sector-finalcta__buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sector-page .sector-card,
    .sector-page .sector-card:before,
    .sector-btn {
        transition: none;
    }

    .sector-page .sector-card:hover {
        transform: none;
    }
}