﻿/* Static modern sector styles. Extracted from A$PSector.html so template-based sector pages render without a JS style injection. */
/* Keep sector/division explorer text consistently black while preserving hero contrast. */
.ap-intro .ap-overview,
.ap-intro #ap-intro-title,
.ap-intro .ap-lead,
.ap-intro .ap-fact strong,
.ap-intro .ap-fact span,
.ap-service-explorer,
.ap-service-explorer__title,
.ap-service-explorer__intro,
.ap-service-explorer .ap-service-trigger,
.ap-service-explorer .ap-service-trigger[aria-expanded="true"],
.ap-service-explorer .ap-service-trigger__name,
.ap-service-explorer .ap-service-tab:not([aria-selected="true"]),
.ap-service-explorer .ap-service-tabpanel p {
    color: #000 !important;
}

.gallery-items {
            float: left;
            height: 350px;
        }

        .nespak-inner-page.c-layout-header-fixed .c-layout-page,
        .nespak-inner-page.c-layout-header-fixed.c-layout-header-mobile-fixed .c-layout-page {
            margin-top: 0 !important;
            padding-top: 0 !important;
        }

        .nespak-inner-page .c-layout-page > .c-layout-breadcrumbs-1 {
            display: none !important;
        }

        .nespak-inner-page .nespak-modern-header {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 10000 !important;
        }

        /* Architecture & Planning introduction */
        .ap-intro {
            --nespak-maroon: #7a1f2b;
            --nespak-blue: #0b4f78;
            --nespak-ink: #17212b;
            --nespak-muted: #5f6b76;
            --nespak-surface: #f5f7f9;
            background: #fff;
            color: var(--nespak-ink);
            font-family: Arial, Helvetica, sans-serif;
        }

        .ap-hero {
            position: relative;
            min-height: clamp(480px, 48vw, 650px);
            background: #f2f2f0 url("img/Overview/modern/architecture-sector.png") center center / cover no-repeat;
            overflow: hidden;
        }

        .ap-hero:after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: linear-gradient(90deg, rgba(16, 31, 42, .08) 0%, transparent 48%, rgba(16, 31, 42, .05) 100%);
            pointer-events: none;
        }

        .ap-hero__panel {
            position: absolute;
            z-index: 2;
            bottom: 0;
            left: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: min(70vw, 980px);
            min-width: 560px;
            padding: 54px clamp(90px, 8vw, 130px) 50px;
            clip-path: polygon(0 0, 82% 0, 100% 30%, 100% 100%, 0 100%);
            border-top: 1px solid rgba(255, 255, 255, .24);
            border-right: 1px solid rgba(255, 255, 255, .16);
            background: linear-gradient(115deg, rgba(112, 24, 40, .78), rgba(92, 16, 31, .62));
            -webkit-backdrop-filter: blur(18px) saturate(125%);
            backdrop-filter: blur(18px) saturate(125%);
            box-shadow: 18px 0 46px rgba(31, 8, 14, .18);
            color: #fff;
            opacity: 0;
            transform: translateX(-108%) scale(.97);
            transform-origin: left bottom;
            animation: apHeroPanelCycle 5s cubic-bezier(.16, 1, .3, 1) .16s 1 forwards;
            will-change: transform, opacity;
        }

        .ap-hero__eyebrow {
            display: block;
            margin-bottom: 15px;
            color: rgba(255, 255, 255, .82);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .ap-hero__title {
            max-width: min(760px, 100%);
            margin: 0;
            color: #fff;
            font-size: clamp(38px, 3.5vw, 58px);
            font-weight: 700;
            line-height: 1.08;
            letter-spacing: 0;
            text-align: center;
            overflow-wrap: normal;
            word-break: keep-all;
            hyphens: manual;
        }

        @keyframes apHeroPanelCycle {
            0% {
                opacity: 0;
                transform: translateX(-108%) scale(.97);
            }
            18% {
                opacity: 1;
                transform: translateX(1.5%) scale(1);
            }
            24%, 82% {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
            100% {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .ap-overview { padding: 100px 0 94px; }

        .ap-eyebrow {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 0 0 16px;
            color: var(--nespak-maroon);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.6px;
            text-transform: uppercase;
        }

        .ap-eyebrow:before {
            content: "";
            width: 34px;
            height: 3px;
            background: var(--nespak-maroon);
        }

        #ap-intro-title {
            max-width: 720px;
            margin: 0 0 28px;
            color: #071c35;
            font-size: 42px;
            font-weight: 700;
            line-height: 1.15;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        #ap-intro-title:after,
        .ap-service-explorer__title:after {
            content: "";
            display: block;
            width: 52px;
            height: 4px;
            margin-top: 22px;
            background: #b43a4b;
        }

        .ap-lead {
            max-width: none;
            margin: 0;
            color: #000;
            font-size: 20px;
            line-height: 1.8;
            text-align: justify;
        }

        .ap-capabilities {
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .ap-capabilities li {
            padding: 8px 12px;
            border: 1px solid #dce4e9;
            border-radius: 3px;
            background: #fff;
            color: var(--nespak-blue);
            font-size: 13px;
            font-weight: 700;
        }

        .ap-overview__flow:after {
            content: "";
            display: table;
            clear: both;
        }

        .ap-overview__facts {
            float: right;
            width: min(420px, 40%);
            margin: 0 0 28px 58px;
        }

        .ap-facts {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            border-top: 4px solid var(--nespak-maroon);
            background: var(--nespak-surface);
            box-shadow: 0 18px 45px rgba(16, 49, 70, .09);
        }

        .ap-fact {
            min-height: 165px;
            padding: 32px 28px;
            border-right: 1px solid #dde4e8;
            border-bottom: 1px solid #dde4e8;
        }

        .ap-fact:nth-child(2n) { border-right: 0; }
        .ap-fact:nth-last-child(-n+2) { border-bottom: 0; }

        .ap-fact strong {
            display: block;
            margin-bottom: 10px;
            color: var(--nespak-blue);
            font-size: 40px;
            line-height: 1;
        }

        .ap-fact span {
            color: var(--nespak-muted);
            font-size: 14px;
            font-weight: 700;
            letter-spacing: .25px;
            line-height: 1.45;
            text-transform: uppercase;
        }

        #tab-1 > .c-product-desc { display: none; }

        /* Architecture & Planning service explorer */
        .ap-service-explorer {
            padding: 72px 0 80px;
            background: #f5f7f9;
            color: #17212b;
            font-family: Arial, Helvetica, sans-serif;
        }

        .ap-service-explorer__inner {
            width: min(1120px, calc(100% - 40px));
            margin: 0 auto;
        }

        .ap-service-explorer__eyebrow {
            margin: 0 0 10px;
            color: #7a1f2b;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .ap-service-explorer__title {
            margin: 0;
            color: #071c35;
            font-size: clamp(34px, 3.5vw, 42px);
            font-weight: 700;
            line-height: 1.15;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .ap-eyebrow,
        .ap-service-explorer__eyebrow { display: none; }

        .ap-service-explorer__intro {
            max-width: 720px;
            margin: 16px 0 38px;
            color: #66727d;
            font-size: 16px;
            line-height: 1.7;
        }

        .ap-service-list {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .ap-service-item {
            margin-bottom: 14px;
            background: #fff;
        }

        .ap-service-trigger {
            position: relative;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 38px;
            align-items: center;
            width: 100%;
            min-height: 96px;
            padding: 0 30px;
            border: 0;
            border-left: 7px solid #7a1f2b;
            background: transparent;
            color: #17212b;
            text-align: left;
            cursor: pointer;
        }

        .ap-service-trigger__name {
            font-size: 23px;
            font-weight: 700;
            line-height: 1.3;
        }

        .ap-service-trigger__icon {
            position: relative;
            width: 30px;
            height: 30px;
        }

        .ap-service-trigger__icon:before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 11px;
            height: 11px;
            border-right: 3px solid #123f5b;
            border-bottom: 3px solid #123f5b;
            transform: translate(-50%, -68%) rotate(45deg);
            transition: transform .2s ease;
        }

        .ap-service-trigger:hover { background: #f7f1f2; }
        .ap-service-trigger[aria-expanded="true"] { color: #123f5b; background: #f4e7e9; }
        .ap-service-trigger[aria-expanded="true"] .ap-service-trigger__icon:before { transform: translate(-50%, -30%) rotate(225deg); }
        .ap-service-trigger:focus,
        .ap-service-trigger:focus-visible { outline: none; }

        .ap-service-panel[hidden] { display: none; }

        .ap-service-panel__inner {
            padding: 42px 46px 54px;
            background: #fff;
        }

        .ap-service-tabs {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            width: 100%;
            max-width: none;
            margin: 0 0 36px;
            padding: 10px;
            border: 1px solid #d7dde2;
            border-radius: 4px;
            background: #fff;
        }

        .ap-service-tab {
            margin: 0;
            min-height: 76px;
            padding: 18px 22px;
            border: 0;
            background: #fff;
            color: #243748;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
            cursor: pointer;
            border-radius: 3px;
        }

        .ap-service-tab[aria-selected="true"] {
            background: #9b2638;
            color: #fff;
        }

        .ap-service-tab:hover:not([aria-selected="true"]) {
            background: #f7f1f2;
            color: #123f5b;
        }

        .ap-service-tab:focus,
        .ap-service-tab:focus-visible { outline: none; }
        .ap-service-tabpanel[hidden] { display: none; }

        .ap-service-tabpanel p {
            max-width: 880px;
            margin: 0 auto;
            color: #000;
            font-size: 20px;
            line-height: 1.85;
            text-align: justify;
        }

        .ap-legacy-detail { display: none !important; }

        @media (max-width: 600px) {
            .ap-service-explorer { padding: 48px 0 56px; }
            .ap-service-explorer__inner { width: calc(100% - 28px); }
            .ap-service-item { margin-bottom: 10px; }
            .ap-service-trigger { grid-template-columns: minmax(0, 1fr) 30px; min-height: 78px; padding: 0 16px; border-left-width: 5px; }
            .ap-service-trigger__name { font-size: 18px; }
            .ap-service-panel__inner { padding: 30px 14px 36px; }
            .ap-service-tabs { width: 100%; gap: 8px; padding: 8px; margin-bottom: 28px; }
            .ap-service-tab { min-height: 58px; padding: 12px 10px; font-size: 15px; }
            .ap-service-tabpanel p { font-size: 16px; line-height: 1.7; text-align: justify; }
        }

        @media (max-width: 991px) {
            .ap-hero { min-height: 500px; background-position: 58% center; }
            .ap-hero__panel { width: min(78vw, 680px); min-width: 0; padding: 42px 82px 40px; }
            .ap-overview { padding: 72px 0; }
            #ap-intro-title { font-size: 38px; }
            .ap-overview__facts {
                float: none;
                width: 100%;
                margin: 0 0 28px;
            }
            .ap-facts { margin: 0; }
        }

        @media (max-width: 600px) {
            .ap-hero { min-height: 430px; background-position: 64% center; }
            .ap-hero__panel { width: 94%; padding: 32px 42px 30px; clip-path: polygon(0 0, 86% 0, 100% 25%, 100% 100%, 0 100%); }
            .ap-hero__eyebrow { margin-bottom: 10px; font-size: 10px; }
            .ap-hero__title { font-size: clamp(29px, 9vw, 40px); }
            .ap-overview { padding: 54px 0 60px; }
            #ap-intro-title { font-size: 30px; }
            .ap-lead { font-size: 17px; line-height: 1.7; }
            .ap-fact { min-height: 130px; padding: 22px 18px; }
            .ap-fact strong { font-size: 32px; }
            .ap-fact span { font-size: 12px; }
        }

        @media (prefers-reduced-motion: reduce) {
            .ap-hero__panel { opacity: 1; transform: none; animation: none; }
        }

