:root {
    --err-navy: #061f38;
    --err-navy-deep: #03131f;
    --err-navy-soft: #0d3153;
    --err-gold: #c69243;
    --err-gold-light: #e3bd78;
    --err-gold-text: #916022;
    --err-ivory: #f7f4ee;
    --err-ivory-soft: #fbfaf7;
    --err-white: #ffffff;
    --err-text: #182839;
    --err-muted: #667482;
    --err-border: rgba(6, 31, 56, 0.13);
    --err-shadow: 0 28px 70px rgba(6, 31, 56, 0.15);
    --err-shadow-soft: 0 18px 42px rgba(6, 31, 56, 0.09);
}

.err-template-main,
.err-residential-page {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--err-ivory);
}

.err-residential-page,
.err-residential-page * {
    box-sizing: border-box;
}

.err-residential-page {
    overflow: hidden;
    color: var(--err-text);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.err-residential-page img {
    display: block;
    width: 100%;
    height: auto;
}

.err-residential-page h1,
.err-residential-page h2,
.err-residential-page h3,
.err-residential-page p,
.err-residential-page ul,
.err-residential-page figure {
    margin-top: 0;
}

.err-residential-page h1,
.err-residential-page h2,
.err-residential-page h3 {
    color: var(--err-navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.03;
}

.err-residential-page a {
    text-decoration: none;
}

.err-residential-page svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.err-residential-page [lang="ar"] {
    font-family: "Noto Kufi Arabic", Arial, sans-serif;
}

.err-container {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
}

.err-section {
    padding: 118px 0;
}

.err-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px !important;
    color: var(--err-gold-light) !important;
    font-size: 0.72rem !important;
    font-weight: 800;
    letter-spacing: 0.23em;
    line-height: 1.3 !important;
    text-transform: uppercase;
}

.err-kicker::before {
    content: "";
    width: 58px;
    height: 1px;
    flex: 0 0 58px;
    background: currentColor;
}

.err-kicker-dark {
    color: var(--err-gold-text) !important;
}

.err-arabic {
    margin-top: 20px !important;
    color: var(--err-gold-text) !important;
    font-size: 0.92rem !important;
    line-height: 2.05 !important;
}

.err-arabic-light {
    color: var(--err-gold-light) !important;
}

.err-lead {
    margin-bottom: 22px !important;
    color: var(--err-navy) !important;
    font-size: 1.14rem !important;
    font-weight: 600;
    line-height: 1.75 !important;
}

.err-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.err-btn {
    display: inline-flex;
    min-height: 56px;
    padding: 0 29px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.err-btn:hover {
    transform: translateY(-3px);
}

.err-btn:focus-visible,
.err-page-nav a:focus-visible,
.err-breadcrumb a:focus-visible,
.err-text-link:focus-visible,
.err-page-end a:focus-visible,
.err-faq summary:focus-visible {
    outline: 3px solid var(--err-gold-light);
    outline-offset: 4px;
}

.err-btn-gold {
    border-color: var(--err-gold-light);
    background: linear-gradient(135deg, #a66e28, var(--err-gold-light), var(--err-gold));
    color: var(--err-navy-deep) !important;
    box-shadow: 0 18px 40px rgba(198, 146, 67, 0.28);
}

.err-btn-ghost {
    border-color: rgba(255, 255, 255, 0.57);
    background: rgba(3, 19, 31, 0.18);
    color: var(--err-white) !important;
    backdrop-filter: blur(8px);
}

.err-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--err-navy) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.err-text-link svg {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.err-text-link:hover svg {
    transform: translateX(5px);
}

/* Hero */
.err-hero {
    position: relative;
    min-height: 840px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--err-navy-deep);
}

.err-hero-media,
.err-hero-media img,
.err-hero-overlay,
.err-hero-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.err-hero-media img {
    object-fit: cover;
    object-position: center 50%;
}

.err-hero-overlay {
    background:
        linear-gradient(90deg, rgba(3, 19, 31, 0.985) 0%, rgba(3, 19, 31, 0.94) 39%, rgba(3, 19, 31, 0.68) 64%, rgba(3, 19, 31, 0.32) 100%),
        linear-gradient(180deg, rgba(3, 19, 31, 0.06), rgba(3, 19, 31, 0.72));
}

.err-hero-lines::before,
.err-hero-lines::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(227, 189, 120, 0.18);
    transform: rotate(45deg);
}

.err-hero-lines::before {
    top: -280px;
    right: -100px;
    width: 650px;
    height: 650px;
}

.err-hero-lines::after {
    right: 190px;
    bottom: -470px;
    width: 640px;
    height: 640px;
}

.err-hero-content {
    padding-top: 78px;
    padding-bottom: 105px;
}

.err-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 72px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.err-breadcrumb a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: rgba(255, 255, 255, 0.83) !important;
}

.err-breadcrumb a:hover {
    color: var(--err-gold-light) !important;
}

.err-hero-copy {
    width: min(720px, 66%);
}

.err-hero-copy h1 {
    margin-bottom: 8px !important;
    color: var(--err-white) !important;
    font-size: clamp(4.5rem, 7vw, 7.4rem) !important;
    line-height: 0.88 !important;
}

.err-hero-copy h1 em {
    display: block;
    margin-top: 15px;
    color: var(--err-gold-light);
    font-style: normal;
}

.err-hero-arabic {
    margin: 26px 0 22px !important;
    color: var(--err-gold-light) !important;
    font-size: clamp(1.45rem, 2.3vw, 2.2rem) !important;
    font-weight: 500;
    line-height: 1.6 !important;
    text-align: left;
}

.err-hero-lead {
    width: min(650px, 100%);
    margin-bottom: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

.err-hero .err-arabic {
    width: min(630px, 100%);
    text-align: left;
}

.err-hero-foot {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 19, 31, 0.73);
    backdrop-filter: blur(10px);
}

.err-hero-foot .err-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.err-hero-foot i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--err-gold);
}

/* Sticky page navigation */
.err-page-nav {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(6, 31, 56, 0.09);
    background: rgba(251, 250, 247, 0.96);
    box-shadow: 0 10px 32px rgba(6, 31, 56, 0.05);
    backdrop-filter: blur(12px);
}

.admin-bar .err-page-nav {
    top: 32px;
}

.err-page-nav .err-container {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 32px;
}

.err-page-nav a {
    position: relative;
    display: inline-flex;
    min-height: 72px;
    align-items: center;
    color: var(--err-muted) !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.err-page-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--err-gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.err-page-nav a:hover,
.err-page-nav a.is-active {
    color: var(--err-navy) !important;
}

.err-page-nav a:hover::after,
.err-page-nav a.is-active::after {
    transform: scaleX(1);
}

.err-page-nav .err-nav-cta {
    min-height: 44px;
    margin-left: auto;
    padding: 0 20px;
    border: 1px solid var(--err-gold);
    background: var(--err-navy);
    color: var(--err-white) !important;
}

.err-page-nav .err-nav-cta::after {
    display: none;
}

/* Generic section headings */
.err-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    gap: 80px;
    align-items: end;
    margin-bottom: 58px;
}

.err-section-head h2,
.err-process-head h2 {
    margin-bottom: 0 !important;
    font-size: clamp(3.1rem, 5vw, 5.2rem) !important;
}

.err-section-head > p {
    margin-bottom: 7px !important;
    color: var(--err-muted) !important;
    font-size: 0.96rem !important;
}

/* Overview */
.err-overview {
    position: relative;
    background:
        radial-gradient(circle at 8% 12%, rgba(198, 146, 67, 0.12), transparent 28%),
        var(--err-ivory-soft);
}

.err-overview::after {
    content: "";
    position: absolute;
    right: -170px;
    bottom: 65px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(198, 146, 67, 0.17);
    transform: rotate(45deg);
}

.err-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.78fr);
    gap: 88px;
    align-items: center;
}

.err-overview-copy h2,
.err-framework h2,
.err-protection h2,
.err-faq h2 {
    margin-bottom: 30px !important;
    font-size: clamp(3.2rem, 5vw, 5.2rem) !important;
}

.err-overview-copy > p:not(.err-kicker):not(.err-arabic),
.err-framework > .err-container > div > p,
.err-protection-grid > div > p,
.err-faq-grid > div > p {
    color: var(--err-muted) !important;
}

.err-overview-visual {
    position: relative;
    padding: 0 0 34px 34px;
}

.err-overview-visual::before {
    content: "";
    position: absolute;
    top: -22px;
    right: -22px;
    bottom: 0;
    left: 0;
    border: 1px solid rgba(198, 146, 67, 0.45);
}

.err-overview-visual img {
    position: relative;
    z-index: 1;
    min-height: 560px;
    object-fit: cover;
    box-shadow: var(--err-shadow);
}

.err-overview-badge {
    position: absolute;
    z-index: 2;
    right: -28px;
    bottom: 0;
    width: 250px;
    padding: 24px 26px;
    border-left: 4px solid var(--err-gold);
    background: var(--err-navy);
    box-shadow: var(--err-shadow-soft);
}

.err-overview-badge strong,
.err-overview-badge span {
    display: block;
}

.err-overview-badge strong {
    color: var(--err-gold-light);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
}

.err-overview-badge span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    line-height: 1.55;
}

.err-overview-points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 95px;
    background: var(--err-border);
    box-shadow: var(--err-shadow-soft);
}

.err-overview-points article {
    min-height: 220px;
    padding: 34px;
    background: var(--err-white);
}

.err-overview-points span {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 28px;
    place-items: center;
    color: var(--err-gold-text);
    font-size: 1.7rem;
}

.err-overview-points strong {
    display: block;
    margin-bottom: 11px;
    color: var(--err-navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.05;
}

.err-overview-points p {
    margin-bottom: 0 !important;
    color: var(--err-muted) !important;
    font-size: 0.78rem !important;
}

/* Capabilities */
.err-capabilities {
    position: relative;
    background: var(--err-navy);
}

.err-capabilities::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
}

.err-capabilities .err-section-head h2,
.err-capabilities .err-section-head > p {
    color: var(--err-white) !important;
}

.err-capabilities .err-section-head > p {
    color: rgba(255, 255, 255, 0.65) !important;
}

.err-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.err-capability-grid article {
    position: relative;
    min-height: 470px;
    padding: 52px 48px 46px;
    overflow: hidden;
    border: 1px solid rgba(227, 189, 120, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.err-capability-grid article:hover {
    transform: translateY(-7px);
    border-color: rgba(227, 189, 120, 0.55);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.err-card-number {
    position: absolute;
    top: 22px;
    right: 28px;
    color: rgba(227, 189, 120, 0.17);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 5.3rem;
    font-weight: 700;
    line-height: 1;
}

.err-card-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 36px;
    place-items: center;
    border: 1px solid rgba(227, 189, 120, 0.42);
    color: var(--err-gold-light);
    font-size: 2rem;
    transform: rotate(45deg);
}

.err-card-icon svg {
    transform: rotate(-45deg);
}

.err-capability-grid h3 {
    margin-bottom: 12px !important;
    color: var(--err-white) !important;
    font-size: 2.45rem !important;
}

.err-card-arabic {
    margin-bottom: 28px !important;
    color: var(--err-gold-light) !important;
    font-size: 0.88rem !important;
    line-height: 1.85 !important;
    text-align: left;
}

.err-capability-grid ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.err-capability-grid li {
    position: relative;
    padding: 10px 0 10px 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.86rem;
}

.err-capability-grid li::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    width: 6px;
    height: 6px;
    border: 1px solid var(--err-gold-light);
    transform: rotate(45deg);
}

/* Asset classes */
.err-assets {
    background: var(--err-ivory-soft);
}

.err-assets-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.err-assets-grid article {
    min-height: 310px;
    padding: 40px 36px;
    border: 1px solid var(--err-border);
    background: var(--err-white);
    box-shadow: 0 15px 36px rgba(6, 31, 56, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.err-assets-grid article:hover {
    transform: translateY(-7px);
    border-color: rgba(198, 146, 67, 0.5);
    box-shadow: var(--err-shadow-soft);
}

.err-assets-grid span {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 38px;
    place-items: center;
    border: 1px solid rgba(198, 146, 67, 0.42);
    color: var(--err-gold-text);
    font-size: 2rem;
}

.err-assets-grid h3 {
    margin-bottom: 15px !important;
    font-size: 2rem !important;
}

.err-assets-grid p {
    margin-bottom: 0 !important;
    color: var(--err-muted) !important;
    font-size: 0.86rem !important;
}

/* Review framework */
.err-framework {
    background: var(--err-white);
}

.err-framework-grid,
.err-protection-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.92fr) minmax(0, 0.9fr);
    gap: 88px;
    align-items: center;
}

.err-framework-media,
.err-protection-media {
    position: relative;
}

.err-framework-media::before {
    content: "";
    position: absolute;
    top: -24px;
    right: 34px;
    bottom: 34px;
    left: -24px;
    border: 1px solid rgba(198, 146, 67, 0.35);
}

.err-framework-media img {
    position: relative;
    z-index: 1;
    min-height: 620px;
    object-fit: cover;
    box-shadow: var(--err-shadow);
}

.err-framework-label {
    position: absolute;
    z-index: 2;
    right: -26px;
    bottom: 28px;
    padding: 15px 24px;
    border: 1px solid rgba(227, 189, 120, 0.45);
    background: var(--err-navy);
    color: var(--err-gold-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.err-review-list {
    margin-top: 36px;
    border-top: 1px solid var(--err-border);
}

.err-review-list article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--err-border);
}

.err-review-list article > span {
    color: var(--err-gold-text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.err-review-list h3 {
    margin-bottom: 7px !important;
    font-size: 1.55rem !important;
}

.err-review-list p {
    margin-bottom: 0 !important;
    color: var(--err-muted) !important;
    font-size: 0.82rem !important;
}

/* Scope and protection */
.err-protection {
    background:
        radial-gradient(circle at 95% 20%, rgba(198, 146, 67, 0.12), transparent 30%),
        var(--err-ivory);
}

.err-protection-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
}

.err-scope-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 36px;
}

.err-scope-columns > div {
    padding: 30px;
    border-top: 3px solid var(--err-gold);
    background: var(--err-white);
    box-shadow: var(--err-shadow-soft);
}

.err-scope-columns h3 {
    margin-bottom: 21px !important;
    font-size: 1.55rem !important;
}

.err-scope-columns ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.err-scope-columns li {
    position: relative;
    padding: 9px 0 9px 20px;
    color: var(--err-muted);
    font-size: 0.78rem;
}

.err-scope-columns li::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--err-gold);
    transform: rotate(45deg);
}

.err-note {
    margin-top: 28px !important;
    padding: 21px 23px;
    border-left: 4px solid var(--err-gold);
    background: rgba(198, 146, 67, 0.1);
    color: var(--err-text) !important;
    font-size: 0.78rem !important;
}

.err-protection-media img {
    min-height: 650px;
    object-fit: cover;
    box-shadow: var(--err-shadow);
}

.err-protection-card {
    position: absolute;
    right: -34px;
    bottom: 34px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    width: 330px;
    padding: 27px;
    border: 1px solid rgba(227, 189, 120, 0.38);
    background: var(--err-navy);
    box-shadow: var(--err-shadow);
}

.err-protection-card > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--err-gold-light);
    font-size: 1.75rem;
}

.err-protection-card strong {
    color: var(--err-white);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
}

.err-protection-card p {
    margin: 5px 0 0 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.72rem !important;
}

/* Process */
.err-process {
    position: relative;
    background: var(--err-navy);
}

.err-process::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: radial-gradient(circle at 50% -20%, var(--err-gold-light), transparent 45%);
}

.err-process-head {
    width: min(820px, 100%);
    margin-bottom: 65px;
}

.err-process-head h2 {
    color: var(--err-white) !important;
}

.err-process-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.err-process-grid article {
    position: relative;
    min-height: 360px;
    padding: 35px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.err-process-grid article:last-child {
    border-right: 0;
}

.err-process-grid article > span {
    display: grid;
    width: 60px;
    height: 60px;
    margin-bottom: 50px;
    place-items: center;
    border: 1px solid rgba(227, 189, 120, 0.46);
    color: var(--err-gold-light);
    font-size: 1.7rem;
}

.err-process-grid small {
    position: absolute;
    top: 36px;
    right: 25px;
    color: rgba(255, 255, 255, 0.2);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.5rem;
}

.err-process-grid h3 {
    margin-bottom: 16px !important;
    color: var(--err-white) !important;
    font-size: 1.75rem !important;
}

.err-process-grid p {
    margin-bottom: 0 !important;
    color: rgba(255, 255, 255, 0.63) !important;
    font-size: 0.78rem !important;
}

/* Gallery */
.err-gallery {
    background: var(--err-ivory-soft);
}

.err-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 330px;
    gap: 16px;
}

.err-gallery-grid figure {
    position: relative;
    margin: 0 !important;
    overflow: hidden;
    background: var(--err-navy);
}

.err-gallery-grid .err-gallery-wide {
    grid-row: span 2;
}

.err-gallery-grid img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.err-gallery-grid figure:hover img {
    transform: scale(1.035);
}

.err-gallery-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 44px 25px 20px;
    background: linear-gradient(transparent, rgba(3, 19, 31, 0.9));
    color: var(--err-white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* FAQ */
.err-faq {
    background: var(--err-white);
}

.err-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(430px, 0.95fr);
    gap: 90px;
    align-items: start;
}

.err-faq-list {
    border-top: 1px solid var(--err-border);
}

.err-faq details {
    border-bottom: 1px solid var(--err-border);
}

.err-faq summary {
    position: relative;
    padding: 28px 56px 28px 0;
    color: var(--err-navy);
    cursor: pointer;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
    list-style: none;
}

.err-faq summary::-webkit-details-marker {
    display: none;
}

.err-faq summary::before,
.err-faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 9px;
    width: 18px;
    height: 1px;
    background: var(--err-gold-text);
    transition: transform 0.2s ease;
}

.err-faq summary::after {
    transform: rotate(90deg);
}

.err-faq details[open] summary::after {
    transform: rotate(0);
}

.err-faq details p {
    padding: 0 55px 26px 0;
    color: var(--err-muted) !important;
    font-size: 0.86rem !important;
}

/* CTA */
.err-cta {
    position: relative;
    min-height: 670px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--err-navy-deep);
}

.err-cta-media,
.err-cta-media img,
.err-cta-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.err-cta-media img {
    object-fit: cover;
    object-position: center;
}

.err-cta-overlay {
    background:
        linear-gradient(90deg, rgba(3, 19, 31, 0.97) 0%, rgba(3, 19, 31, 0.88) 55%, rgba(3, 19, 31, 0.36) 100%),
        linear-gradient(180deg, rgba(3, 19, 31, 0.1), rgba(3, 19, 31, 0.72));
}

.err-cta-content {
    width: min(1280px, calc(100% - 64px));
    padding: 100px 0;
}

.err-cta-content > * {
    width: min(720px, 62%);
}

.err-cta h2 {
    margin-bottom: 26px !important;
    color: var(--err-white) !important;
    font-size: clamp(3.3rem, 5.8vw, 6rem) !important;
}

.err-cta-content > p:not(.err-kicker):not(.err-arabic) {
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 1rem !important;
}

/* Company contact strip */
.err-page-end {
    padding: 28px 0;
    background: var(--err-navy-deep);
}

.err-page-end .err-container {
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: space-between;
}

.err-page-end .err-container > div,
.err-page-end a {
    display: flex;
    gap: 14px;
    align-items: center;
}

.err-page-end span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(227, 189, 120, 0.38);
    color: var(--err-gold-light);
    font-size: 1.1rem;
}

.err-page-end p,
.err-page-end a {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem;
}

.err-page-end .err-container > div {
    max-width: 720px;
}

/* Theme conflict control */
.err-residential-page-active .entry-header,
.err-residential-page-active .page-header,
.err-residential-page-active main > .entry-title {
    display: none !important;
}

.err-residential-page-active .site-content,
.err-residential-page-active .content-area,
.err-residential-page-active .site-main,
.err-residential-page-active .container.grid-container,
.err-residential-page-active .site.grid-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .err-section {
        padding: 96px 0;
    }

    .err-hero-copy {
        width: min(720px, 76%);
    }

    .err-overview-grid,
    .err-framework-grid,
    .err-protection-grid {
        gap: 60px;
    }

    .err-overview-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
    }

    .err-overview-points {
        grid-template-columns: repeat(2, 1fr);
    }

    .err-assets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .err-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .err-process-grid article:nth-child(3) {
        border-right: 0;
    }

    .err-process-grid article:nth-child(-n+3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    }

    .err-process-grid article:nth-child(4) {
        grid-column: 1 / 2;
    }

    .err-process-grid article:nth-child(5) {
        grid-column: 2 / 3;
    }

    .err-page-nav .err-container {
        gap: 22px;
    }
}

/* Mobile and small tablet */
@media (max-width: 900px) {
    .err-container,
    .err-cta-content {
        width: min(100% - 40px, 720px);
    }

    .err-hero {
        min-height: 790px;
    }

    .err-hero-overlay {
        background:
            linear-gradient(90deg, rgba(3, 19, 31, 0.97), rgba(3, 19, 31, 0.72)),
            linear-gradient(180deg, rgba(3, 19, 31, 0.18), rgba(3, 19, 31, 0.8));
    }

    .err-hero-copy,
    .err-cta-content > * {
        width: 100%;
    }

    .err-breadcrumb {
        margin-bottom: 55px;
    }

    .err-page-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .err-page-nav::-webkit-scrollbar {
        display: none;
    }

    .err-page-nav .err-container {
        width: max-content;
        min-width: 100%;
        padding: 0 20px;
    }

    .err-page-nav .err-nav-cta {
        margin-left: 0;
    }

    .err-section-head,
    .err-overview-grid,
    .err-framework-grid,
    .err-protection-grid,
    .err-faq-grid {
        grid-template-columns: 1fr;
    }

    .err-section-head,
    .err-overview-grid,
    .err-framework-grid,
    .err-protection-grid,
    .err-faq-grid {
        gap: 45px;
    }

    .err-overview-visual {
        max-width: 670px;
        padding-left: 0;
    }

    .err-overview-visual::before {
        left: -18px;
    }

    .err-overview-badge,
    .err-protection-card {
        right: 20px;
    }

    .err-capability-grid {
        grid-template-columns: 1fr;
    }

    .err-framework-media {
        order: 2;
    }

    .err-framework-media img,
    .err-protection-media img,
    .err-overview-visual img {
        min-height: 480px;
    }

    .err-gallery-grid {
        grid-auto-rows: 300px;
    }

    .err-gallery-grid .err-gallery-wide {
        grid-row: span 1;
    }

    .err-cta {
        min-height: 620px;
    }

    .err-page-end .err-container {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .err-section {
        padding: 78px 0;
    }

    .err-container,
    .err-cta-content {
        width: min(100% - 28px, 620px);
    }

    .err-hero {
        min-height: 760px;
        align-items: flex-end;
    }

    .err-hero-content {
        padding-top: 120px;
        padding-bottom: 105px;
    }

    .err-hero-copy h1 {
        font-size: clamp(3.6rem, 17vw, 5.2rem) !important;
    }

    .err-hero-arabic {
        font-size: 1.2rem !important;
    }

    .err-hero-lead {
        font-size: 0.96rem !important;
    }

    .err-hero-foot {
        display: none;
    }

    .err-breadcrumb {
        margin-bottom: 38px;
        font-size: 0.62rem;
    }

    .err-actions {
        flex-direction: column;
    }

    .err-btn {
        width: 100%;
    }

    .err-page-nav a {
        min-height: 62px;
        font-size: 0.65rem;
    }

    .err-page-nav .err-container {
        min-height: 62px;
    }

    .err-section-head h2,
    .err-process-head h2,
    .err-overview-copy h2,
    .err-framework h2,
    .err-protection h2,
    .err-faq h2,
    .err-cta h2 {
        font-size: clamp(2.7rem, 12vw, 4rem) !important;
    }

    .err-overview-points,
    .err-assets-grid,
    .err-process-grid,
    .err-gallery-grid,
    .err-scope-columns {
        grid-template-columns: 1fr;
    }

    .err-overview-points {
        margin-top: 65px;
    }

    .err-overview-points article {
        min-height: 0;
    }

    .err-capability-grid article {
        min-height: 0;
        padding: 40px 28px;
    }

    .err-capability-grid h3 {
        font-size: 2.15rem !important;
    }

    .err-card-number {
        right: 18px;
        font-size: 4.2rem;
    }

    .err-assets-grid article {
        min-height: 0;
    }

    .err-framework-media img,
    .err-protection-media img,
    .err-overview-visual img {
        min-height: 390px;
    }

    .err-overview-visual::before,
    .err-framework-media::before {
        display: none;
    }

    .err-overview-visual {
        padding-bottom: 70px;
    }

    .err-overview-badge {
        right: 0;
        bottom: 0;
        width: calc(100% - 26px);
    }

    .err-framework-label {
        right: 12px;
    }

    .err-protection-media {
        padding-bottom: 105px;
    }

    .err-protection-card {
        right: 0;
        bottom: 0;
        width: calc(100% - 12px);
    }

    .err-process-grid article,
    .err-process-grid article:nth-child(3),
    .err-process-grid article:nth-child(4),
    .err-process-grid article:nth-child(5) {
        grid-column: auto;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    }

    .err-process-grid article:last-child {
        border-bottom: 0;
    }

    .err-process-grid article > span {
        margin-bottom: 35px;
    }

    .err-gallery-grid {
        grid-auto-rows: 280px;
    }

    .err-faq summary {
        padding-right: 45px;
        font-size: 1.35rem;
    }

    .err-faq details p {
        padding-right: 10px;
    }

    .err-page-end p,
    .err-page-end a {
        font-size: 0.68rem;
    }
}

@media (max-width: 782px) {
    .admin-bar .err-page-nav {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .err-residential-page *,
    .err-residential-page *::before,
    .err-residential-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .err-page-nav,
    .err-actions,
    .err-hero-foot {
        display: none !important;
    }

    .err-residential-page {
        background: #fff;
        color: #000;
    }

    .err-section,
    .err-hero,
    .err-cta {
        min-height: 0;
        padding: 40px 0;
        background: #fff !important;
    }

    .err-hero-media,
    .err-hero-overlay,
    .err-hero-lines,
    .err-cta-media,
    .err-cta-overlay {
        display: none;
    }

    .err-hero-copy h1,
    .err-hero-copy h1 em,
    .err-hero-lead,
    .err-hero-arabic,
    .err-capabilities h2,
    .err-capabilities h3,
    .err-process h2,
    .err-process h3,
    .err-cta h2,
    .err-cta-content > p,
    .err-page-end p,
    .err-page-end a {
        color: #000 !important;
    }

    .err-capabilities,
    .err-process,
    .err-page-end {
        background: #fff !important;
    }

    .err-capability-grid article,
    .err-process-grid,
    .err-process-grid article {
        border-color: #bbb !important;
        background: #fff !important;
    }
}
