/* Shared finishing styles. Keep page layouts, theme colours and hero sizing intact. */
:root {
    --ns-ui-ink: #182237;
    --ns-ui-copy: #526077;
    --ns-ui-brand: #c92b40;
    --ns-ui-brand-hover: #ab2135;
    --ns-ui-line: #dde3eb;
    --ns-ui-paper: #f5f7fa;
    --ns-ui-radius: 16px;
    --ns-ui-button-radius: 12px;
    --ns-ui-heading-font: 'Manrope', 'Noto Sans', Arial, sans-serif;
}

/* Shared type hierarchy; Arabic retains the site's Cairo font. */
.blog-page.wrap, .blog-article-page.wrap {
    font-family: 'Noto Sans', Arial, sans-serif;
    --blog-ink: var(--ns-ui-ink);
    --blog-muted: var(--ns-ui-copy);
    --article-ink: var(--ns-ui-ink);
    --article-muted: var(--ns-ui-copy);
}
.blog-page .blog-heading h1,
.blog-page .blog-featured-heading h2,
.blog-article h1,
.blog-article .blog-article-body h2 {
    font-family: var(--ns-ui-heading-font);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.25;
}
.blog-page .blog-heading h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); }
.blog-page .blog-card h3 { font-family: var(--ns-ui-heading-font); font-weight: 700; letter-spacing: -.035em; line-height: 1.45; }
.blog-page .blog-featured-heading h2 { font-size: clamp(1.9rem, 3.15vw, 2.8rem); }
.blog-article .blog-article-deck { color: var(--ns-ui-copy); line-height: 1.75; }
.blog-page .blog-card-image, .blog-article .blog-article-cover { border-radius: var(--ns-ui-radius); }
.blog-page .blog-latest, .blog-article .blog-article-section {
    scroll-margin-top: calc(var(--site-header-height, 90px) + 24px);
}

/* Primary actions share a recognisable shape, colour and comfortable touch area. */
.home-enquiry .global-button,
.ns-working-section .global-button,
.interior .post-wrap .v6-button,
.interior .v6-contact .contact-form .global-button,
.project-main .project-button:not(.project-button-back) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    max-width: 100%;
    padding: 14px 24px;
    border-radius: var(--ns-ui-button-radius);
    border-color: var(--ns-ui-brand);
    background: var(--ns-ui-brand);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: background .18s ease, box-shadow .18s ease;
}
.home-enquiry .global-button:hover,
.ns-working-section .global-button:hover,
.interior .post-wrap .v6-button:hover,
.interior .v6-contact .contact-form .global-button:hover,
.project-main .project-button:not(.project-button-back):hover {
    background: var(--ns-ui-brand-hover);
    border-color: var(--ns-ui-brand-hover);
    color: #fff;
}
.interior .contact-form .global-button:disabled,
.interior .contact-form fieldset:disabled .global-button {
    opacity: .5;
    cursor: not-allowed;
}
.home-enquiry .global-button:focus-visible,
.interior .post-wrap .v6-button:focus-visible,
.interior .contact-form .global-button:focus-visible,
.ns-working-section :is(a):focus-visible,
.ns-contact-options a:focus-visible,
.ns-contact-fallback a:focus-visible,
.ns-footer-contact a:focus-visible,
.ns-project-contact a:focus-visible {
    outline: 3px solid var(--ns-ui-ink);
    outline-offset: 5px;
}
.project-page { --project-accent: var(--ns-ui-brand); --project-ink: var(--ns-ui-ink); }
.project-field > :is(input, select, textarea),
.interior .contact-field :is(input, select, textarea) { border-radius: var(--ns-ui-button-radius); }

/* A single enquiry banner follows the original homepage service cards. */
.ns-working-section.wrap {
    box-sizing: border-box;
    width: calc(100% - 96px);
    max-width: 1200px;
    margin: 48px auto 0;
    color: var(--ns-ui-ink);
    text-align: start;
}
.ns-working-section *, .ns-working-section *::before, .ns-working-section *::after { box-sizing: border-box; }
.ns-working-section p { margin: 0; font-size: 16px; line-height: 1.8; }
.ns-working-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--ns-ui-radius); background: var(--ns-ui-paper); }
.ns-working-actions > p { flex: 1 1 240px; color: var(--ns-ui-ink); font-weight: 600; }
.ns-working-actions .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ns-working-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ns-ui-ink); font-size: 15px; font-weight: 700; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; }
.ns-working-actions .text-link:hover { color: var(--ns-ui-brand); }

/* Contact guidance, submission fallbacks and the shared footer. */
.interior .ns-contact-options { margin: 28px 0 0; padding: 24px; border: 1px solid var(--ns-ui-line); border-radius: var(--ns-ui-radius); background: var(--ns-ui-paper); }
.interior .ns-enquiry-choice { margin: 0; padding: 0; }
.interior .ns-enquiry-choice h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.interior .ns-enquiry-choice p { margin: 0 0 14px; font-size: 14px; line-height: 1.8; }
.interior .ns-enquiry-choice > a { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 6px; min-height: 44px; color: var(--ns-ui-brand); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.interior .v6-contact .ns-enquiry > h2 { margin-bottom: 14px; }
.interior .ns-enquiry .ns-enquiry-intro { margin: 0 0 26px; color: var(--ns-ui-copy); font-size: 15px; line-height: 1.8; }
.interior .ns-contact-fallback, .project-main .ns-contact-fallback { margin: 12px 0 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.ns-contact-fallback a, .ns-project-contact a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.project-main .ns-project-contact { margin: 18px 0 0; color: var(--ns-ui-copy); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
/* Copyright starts the row; contact details sit at its opposite edge. */
.section-footer .ns-footer-bottom.wrap {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: calc(100% - 96px);
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 22px 0;
    border-top: 1px solid var(--ns-ui-line);
}
.section-footer .ns-footer-bottom .footer-copyright {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--ns-ui-copy);
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0;
    text-align: start;
}
.section-footer .ns-footer-contact {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--ns-ui-copy);
    font-size: 12px;
    line-height: 1.8;
    text-align: end;
}
.section-footer .ns-footer-contact a { color: var(--ns-ui-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

/* A neutral closing panel shared by every service, industry and company page. */
.interior .v6-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 44px 48px;
    background: #f7f9fc;
    border: 1px solid var(--ns-ui-line);
    border-inline-start: 4px solid var(--ns-ui-ink);
    border-radius: var(--ns-ui-radius);
    box-shadow: 0 8px 28px rgba(24, 34, 55, .035);
}
.interior .v6-cta > div { min-width: 0; }
.interior .post-wrap .v6-cta .v6-kicker { margin-bottom: 16px; color: var(--ns-ui-copy); }
.interior .v6-cta h2 { max-width: 27ch; margin-bottom: 14px; color: var(--ns-ui-ink); font-size: clamp(1.75rem, 2.6vw, 2.35rem); line-height: 1.3; }
.interior .v6-cta p { color: var(--ns-ui-copy); }
.interior .v6-cta > .v6-button { justify-self: end; min-width: 180px; max-width: 280px; }
html[dir="rtl"] .interior .v6-cta h2 { line-height: 1.6; }

html[dir="rtl"] .blog-page .blog-heading h1,
html[dir="rtl"] .blog-page .blog-card h3,
html[dir="rtl"] .blog-page .blog-featured-heading h2 { line-height: 1.6; }
html[dir="rtl"] .ns-working-section p { line-height: 1.95; }

@media (max-width: 1023px) {
    .ns-working-section.wrap, .section-footer .ns-footer-bottom.wrap { width: calc(100% - 64px); }
    .ns-working-section.wrap { margin-top: 36px; }
    .interior .v6-cta { gap: 28px; padding: 32px; }
}
@media (max-width: 767px) {
    .ns-working-section.wrap, .section-footer .ns-footer-bottom.wrap { width: calc(100% - 40px); }
    .ns-working-section.wrap { margin-top: 28px; }
    .ns-working-actions { padding: 24px; }
    .ns-working-actions .button-row { width: 100%; gap: 12px; }
    .interior .ns-contact-options { padding: 20px; }
    .project-field > :is(input, select, textarea) { font-size: 16px; }
    .blog-page .blog-heading h1 { font-size: clamp(2.4rem, 8vw, 3.25rem); }
    .interior .v6-cta { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 24px; }
    .interior .v6-cta > .v6-button { justify-self: start; min-width: 0; max-width: 100%; width: auto; margin-top: 0; }
}
@media (max-width: 639px) {
    .section-footer .ns-footer-bottom.wrap { align-items: center; gap: 16px; }
    .section-footer .ns-footer-bottom .footer-copyright { flex: 0 1 46%; }
    .section-footer .ns-footer-contact { flex-direction: column; align-items: flex-end; gap: 0; }
}
@media (max-width: 479px) {
    .ns-working-actions .global-button { width: 100%; }
    .ns-working-actions .text-link { justify-content: center; width: 100%; }
    .interior .v6-cta > .v6-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ns-working-section .global-button, .project-main .project-button { transition: none; }
}
