/* =========================================================
   Opsaro Theme — Global Design System
   Cleaned for the minimal custom theme rebuild
   ========================================================= */

/* =========================================================
   Fonts
   ========================================================= */

@font-face {
    font-family: "Inter";
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.home-hero-reassurance {
    margin: 16px 0 0;
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.case-study-detail-head {
    margin-top: clamp(56px, 8vw, 88px);
    padding-top: clamp(40px, 6vw, 64px);
    border-top: 1px solid var(--color-border);
}

/* Case study meta bar — client / industry / migrated-from facts shown
   as a framed row of label+value pairs beneath the metrics strip. */
.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 44px);
    margin-bottom: clamp(36px, 5vw, 56px);
    padding: 20px clamp(20px, 3vw, 28px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-muted);
}
 
.case-study-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
 
.case-study-meta-label {
    color: var(--color-muted-foreground);
    font-size: var(--text-xs);
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
 
.case-study-meta-value {
    color: var(--color-navy);
    font-weight: 700;
}

/* =========================================================
   Design tokens
   ========================================================= */

:root {
    /* Brand */
    --color-navy: #0e2138;
    --color-navy-deep: #091627;
    --color-hero-end: #16365a;

    --color-blue: #5c8ed3;
    --color-blue-deep: #3f73bc;
    --color-blue-soft: #e8f0fa;

    --color-orange: #f0791f;
    --color-orange-end: #e0680f;

    /* Neutrals */
    --color-background: #ffffff;
    --color-foreground: #0e2138;
    --color-muted: #f3f6fb;
    --color-muted-foreground: #4d5a68;
    --color-card: #ffffff;
    --color-border: #dde5ef;

    /* Type scale — Major Third (1.25), 1rem base */
    --text-xs:   0.64rem;
    --text-sm:   0.8rem;
    --text-base: 1rem;
    --text-lg:   1.25rem;
    --text-xl:   1.563rem;
    --text-2xl:  1.953rem;
    --text-3xl:  2.441rem;
    --text-4xl:  3.052rem;
    --text-5xl:  3.815rem;

    /* Spacing scale — 4px grid */
    --space-1:  0.25rem;   /* 4px  */
    --space-2:  0.5rem;    /* 8px  */
    --space-3:  0.75rem;   /* 12px */
    --space-4:  1rem;      /* 16px */
    --space-5:  1.25rem;   /* 20px */
    --space-6:  1.5rem;    /* 24px */
    --space-8:  2rem;      /* 32px */
    --space-11: 2.75rem;   /* 44px */
    --space-12: 3rem;      /* 48px */

    /* Layout */
    --container: 1180px;
    --container-padding: 24px;
    --section-padding: clamp(56px, 8vw, 96px);

    /* Shape */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-pill: 999px;

    /* Effects */
    --shadow-soft: 0 1px 3px rgba(14, 33, 56, 0.06), 0 1px 2px -1px rgba(14, 33, 56, 0.06);
    --shadow-elegant: 0 18px 48px -24px rgba(14, 33, 56, 0.26);
    --shadow-cta: 0 8px 22px -10px rgba(240, 121, 31, 0.55);
}

/* =========================================================
   Base
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* In-page anchor targets clear the sticky header instead of hiding under it */
:target {
    scroll-margin-top: 96px;
}

.admin-bar :target {
    scroll-margin-top: 128px;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(92, 142, 211, 0.35);
    outline-offset: 3px;
}

/* =========================================================
   Accessibility helpers
   ========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: var(--color-navy);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-elegant);
    z-index: 100000;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

.section-muted {
    background: var(--color-muted);
}

.site-main {
    min-height: 60vh;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 6vw, 72px);
}

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

/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4 {
    margin: 0 0 16px;
    color: var(--color-navy);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
}

h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.75rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
    margin: 0 0 16px;
}

.text-muted {
    color: var(--color-muted-foreground);
}

/*
 * Keep standalone intro paragraphs within a readable measure (~45-85ch).
 * Scoped to <p> so muted text inside grids/cards/strips is unaffected.
 */
.section > .container > p.text-muted,
.section > .container > .section-head ~ p.text-muted {
    max-width: 70ch;
}

.eyebrow,
.tag {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-blue-deep);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-head {
    max-width: 48rem;
    margin-bottom: 44px;
}

/* =========================================================
   Buttons
   ========================================================= */

.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 13px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-end));
    color: #ffffff;
    box-shadow: var(--shadow-cta);
}

.button-primary:hover {
    filter: brightness(1.03);
}

.button-secondary {
    background: #ffffff;
    color: var(--color-blue-deep);
    border-color: var(--color-blue);
}

.button-secondary:hover {
    background: var(--color-blue-soft);
}

.button-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.button-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

/*
 * On dark heroes, a solid white secondary button competes with the orange
 * primary for attention. Demote it to a light outline so the primary CTA
 * is unambiguously the main action.
 */
.home-hero .home-actions .button-secondary,
.page-hero .button-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.home-hero .home-actions .button-secondary:hover,
.page-hero .button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(14px);
    z-index: 1000;
}

.admin-bar .site-header {
    top: 32px;
}

.header-utility {
    font-size: 0.85rem;
    overflow: hidden;
    max-height: 3rem;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.site-header.is-scrolled .header-utility {
    max-height: 0;
    opacity: 0;
}

.header-utility-inner {
    display: flex;
    justify-content: flex-end;
}

.utility-menu {
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0.45rem 0;
    list-style: none;
}

.utility-menu a {
    color: var(--color-muted-foreground);
    font-weight: 600;
    text-decoration: none;
}

.utility-menu a:hover {
    color: var(--color-blue-deep);
}

.utility-flag {
    margin-right: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.65;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img,
.custom-logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: 200px;
}

.site-logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
    color: #ffffff;
    font-size: 0.95rem;
}

.site-logo-text {
    color: var(--color-navy);
    font-size: 1.18rem;
    font-weight: 850;
}

.site-nav {
    margin-left: 24px;
    margin-right: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    color: var(--color-muted-foreground);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-parent > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current-page-ancestor > a,
.nav-menu .current-page-parent > a {
    color: var(--color-blue-deep);
}

.header-cta {
    margin-left: 18px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--color-navy);
    font-weight: 700;
}

/* =========================================================
   Header dropdowns
   ========================================================= */

.nav-menu li {
    position: relative;
}

.nav-menu .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
}

.nav-menu .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.18s ease;
}

.nav-menu .menu-item-has-children:hover > a::after,
.nav-menu .menu-item-has-children:focus-within > a::after {
    transform: translateY(1px) rotate(-135deg);
}

.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1001;
    min-width: 250px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elegant);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition:
        opacity 0.16s ease,
        visibility 0.16s ease;
}

/* Invisible bridge between parent and dropdown */
.nav-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu .menu-item-has-children > a[aria-expanded="true"] + .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--color-muted-foreground);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu a:focus,
.nav-menu .sub-menu .current-menu-item > a {
    background: var(--color-blue-soft);
    color: var(--color-blue-deep);
    outline: none;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: var(--color-navy-deep);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 0.9fr;
    gap: 48px;
    align-items: start;
    padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 8px;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.footer-contact-list a:hover {
    text-decoration: underline;
}

.footer-brand,
.footer-links {
    padding-top: 0;
}

/* Align logo column with Services / Resources / Contact headings */
.footer-logo {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 18px;
    text-decoration: none;
}

.footer-logo img,
.footer-logo .custom-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: 190px;
    margin: 0;
}

.site-footer .site-logo-text {
    color: #ffffff;
}

.footer-tagline {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-cta {
    margin-top: 24px;
}

.footer-cta .eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--color-blue);
}

.footer-cta-heading {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-heading {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin-bottom: 16px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.footer-base {
    background: rgba(0, 0, 0, 0.22);
    padding: 40px 0 32px;
}

.footer-base-inner {
    text-align: center;
}

.footer-copyright {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.footer-acn {
    display: block;
    margin-top: 2px;
}

.footer-acknowledgement {
    max-width: 80ch;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-terms {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-terms a {
    color: var(--color-blue);
}

/* Footer responsive */
@media (max-width: 920px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-logo,
    .footer-heading {
        min-height: auto;
    }

    .footer-logo img,
    .footer-logo .custom-logo {
        height: 34px;
        max-width: 160px;
    }
}

/* Remove inherited header-logo spacing/behaviour inside footer */
.site-footer .footer-brand {
    align-self: start;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    height: auto;
    margin: 0 0 18px;
    padding: 0;
    line-height: 1;
    vertical-align: top;
}

.site-footer .footer-logo img,
.site-footer .footer-logo .custom-logo {
    display: block;
    height: 34px;
    width: auto;
    max-width: 170px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left top;
}

/* Footer brand column spacing */
.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.site-footer .footer-logo {
    margin: 0;
}

.site-footer .footer-tagline {
    margin: 0;
}

.site-footer .footer-cta {
    margin-top: 4px;
}
/* =========================================================
   Shared components
   ========================================================= */

.card {
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border: 1px solid #cfe0f3;
    border-radius: var(--radius-md);
    background: var(--color-blue-soft);
    color: var(--color-blue-deep);
    font-size: 1.1rem;
    font-weight: 800;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--color-muted-foreground);
}

/* =========================================================
   Post list — index / archive / search fallback
   ========================================================= */

.post-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 28px 30px;
}

.post-card-title {
    margin: 0;
    font-size: 1.25rem;
}

.post-card-title a {
    color: var(--color-navy);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--color-blue-deep);
}

.post-card-meta {
    margin: 0;
    font-size: 0.85rem;
}

.post-card-excerpt {
    color: var(--color-muted-foreground);
}

.post-card-excerpt p {
    margin: 0;
}

.post-card-more {
    margin-top: auto;
    padding-top: 6px;
    color: var(--color-blue-deep);
    font-weight: 650;
    text-decoration: none;
}

.post-card-more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-navy);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination .page-numbers:hover {
    background: var(--color-muted);
    border-color: var(--color-blue);
}

.pagination .page-numbers.current {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #ffffff;
}

.no-posts {
    max-width: 48rem;
    padding: clamp(40px, 6vw, 72px) 0;
}

/* =========================================================
   Standard page template
   ========================================================= */

.page-article {
    background: var(--color-background);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 118px) 0;
    background:
        radial-gradient(circle at 84% 16%, rgba(92, 142, 211, 0.22), transparent 34%),
        linear-gradient(135deg, var(--color-navy-deep), var(--color-navy) 58%, var(--color-hero-end));
    color: #ffffff;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero--split .page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: clamp(36px, 6vw, 76px);
}

.page-hero--simple .page-hero-inner {
    max-width: var(--container);
}

.page-hero--simple .page-hero-copy {
    max-width: 760px;
}

.page-hero-copy {
    max-width: 760px;
}

.page-hero-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.page-title {
    margin: 0;
}

.page-hero .page-title {
    max-width: 12ch;
    color: #ffffff;
}

.page-hero-lede {
    max-width: 58ch;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.65;
}

.page-hero-media {
    position: relative;
    padding: clamp(16px, 2.4vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px -30px rgba(0, 0, 0, 0.45);
}

.page-hero-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 0.35rem);
}

.page-body {
    background:
        linear-gradient(180deg, var(--color-muted) 0, #ffffff 180px);
}

.page-content {
    width: 100%;
    max-width: none;
    color: var(--color-foreground);
}

.page-content > * + * {
    margin-top: 1.25rem;
}

/* Normal editor text stays readable. Custom sections and cards are not restricted. */
.page-content > p,
.page-content > ul,
.page-content > ol,
.page-content > blockquote,
.page-content > h2,
.page-content > h3,
.page-content > h4,
.page-content > .wp-block-paragraph,
.page-content > .wp-block-list,
.page-content > .wp-block-heading {
    max-width: 76ch;
}

.page-content .alignwide,
.page-content > .alignwide {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
}

.page-content .alignfull,
.page-content > .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transform: none;
}

.page-content p:not(.eyebrow),
.page-content li {
    color: var(--color-muted-foreground);
}

.page-content ul,
.page-content ol {
    padding-left: 1.4em;
}

.page-content li + li {
    margin-top: 0.5em;
}

.page-content section h2,
.page-content section h3,
.page-content .card h3,
.page-content .section-head h2 {
    margin-top: 0;
}

.page-content section p,
.page-content section ul,
.page-content section ol,
.page-content .card p {
    max-width: none;
}

.page-content a:not(.button):not(.wp-block-button__link) {
    color: var(--color-blue-deep);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content a:not(.button):not(.wp-block-button__link):hover {
    color: var(--color-navy);
}

.page-content img {
    border-radius: var(--radius-lg);
}

.page-content blockquote {
    margin: 1.7em 0;
    padding: 22px 26px;
    border-left: 4px solid var(--color-blue);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    color: var(--color-navy);
    font-size: 1.1rem;
    font-style: italic;
}

.page-content figure {
    margin: 0;
}

.page-content figcaption {
    margin-top: 8px;
    color: var(--color-muted-foreground);
    font-size: 0.85rem;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.page-builder-content {
    overflow: hidden;
}

/* Optional wrapper for pages built as a single Custom HTML block */
.page-content .ops-page-sections {
    width: 100%;
    max-width: 100%;
}

.page-content .ops-page-sections > section + section {
    margin-top: clamp(48px, 7vw, 80px);
}

/* =========================================================
   Homepage
   ========================================================= */

.ops-home {
    background: var(--color-background);
}

.home-hero {
    padding: clamp(56px, 7vw, 96px) 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(92, 142, 211, 0.22), transparent 34%),
        linear-gradient(135deg, var(--color-navy-deep), var(--color-navy) 58%, var(--color-hero-end));
    color: #ffffff;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.home-hero h1 {
    max-width: 13ch;
    color: #ffffff;
}

.home-hero .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.home-lede {
    max-width: 58ch;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-hero-card {
    padding: clamp(26px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px -30px rgba(0, 0, 0, 0.45);
}

.home-card-kicker {
    margin: 0 0 18px;
    color: #ffffff;
    font-weight: 750;
}

.home-check-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-check-list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.82);
}

.home-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-orange);
    font-weight: 800;
}

.home-proof-strip,
.home-trust-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

.home-proof-strip {
    padding: 26px 0;
}

.home-trust-strip {
    padding: 22px 0;
}

.home-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-proof-grid div,
.home-trust-grid div {
    display: grid;
    gap: 4px;
}

.home-proof-grid strong {
    color: var(--color-navy);
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

/*
 * Optional: add class="home-proof-accent" to the single most decision-relevant
 * stat (the fixed price) so it wins the visual-weight contest in the strip.
 */
.home-proof-grid .home-proof-accent strong {
    color: var(--color-orange-end);
}

.home-proof-grid span,
.home-trust-grid span {
    color: var(--color-muted-foreground);
    font-size: 0.92rem;
    line-height: 1.45;
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-trust-grid strong {
    color: var(--color-navy);
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.home-copy {
    color: var(--color-muted-foreground);
    font-size: 1.05rem;
}

.home-package-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.home-package-card {
    display: flex;
    flex-direction: column;
}

.home-package-card p {
    color: var(--color-muted-foreground);
}

.home-package-card a {
    margin-top: auto;
    padding-top: 12px;
    color: var(--color-blue-deep);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-package-label {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-blue-soft);
    color: var(--color-blue-deep) !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.home-package-featured {
    border-color: rgba(240, 121, 31, 0.45);
    box-shadow: var(--shadow-elegant);
}

.home-package-featured .home-package-label {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-end));
    color: #ffffff !important;
}

.home-proof-quote,
.home-results {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.home-proof-quote-copy,
.home-results-copy {
    max-width: 720px;
}

.home-testimonial-card,
.home-results-card {
    margin: 0;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.home-testimonial-card {
    background:
        radial-gradient(circle at 82% 18%, rgba(92, 142, 211, 0.12), transparent 34%),
        #ffffff;
}

.home-testimonial-card p {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.home-testimonial-card footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.home-testimonial-card strong {
    display: block;
    color: var(--color-navy);
    font-weight: 750;
}

.home-testimonial-card span {
    display: block;
    margin-top: 2px;
    color: var(--color-muted-foreground);
    font-size: 0.92rem;
}

.home-results-card p {
    color: var(--color-muted-foreground);
}

.home-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-process article {
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.home-process span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--color-blue-soft);
    color: var(--color-blue-deep);
    font-weight: 800;
}

.home-process p {
    color: var(--color-muted-foreground);
}

.home-cta {
    max-width: 760px;
    text-align: center;
}

.home-cta h2 {
    margin-left: auto;
    margin-right: auto;
}

.home-cta p:not(.eyebrow) {
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-muted-foreground);
}

/* The CTA block is centred, but .home-actions is a flex row that defaults to
   flex-start — centre it so the buttons sit under the centred heading. */
.home-cta .home-actions {
    justify-content: center;
}

/* =========================================================
   Editor-built service pages
   ========================================================= */

.solutions-intro {
    max-width: 860px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.solutions-intro p {
    max-width: 68ch;
}

.solutions-grid {
    margin-top: clamp(28px, 4vw, 44px);
    margin-bottom: clamp(48px, 7vw, 80px);
}

.solutions-grid .card {
    display: flex;
    flex-direction: column;
}

.solutions-grid .card p:last-child {
    margin-top: auto;
    padding-top: 12px;
}

.solutions-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    margin-top: clamp(48px, 7vw, 80px);
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-muted);
}

.solutions-split p,
.solutions-split li {
    color: var(--color-muted-foreground);
}

.solutions-cta,
.pricing-note-box,
.ops-final {
    margin-top: clamp(48px, 7vw, 80px);
    padding: clamp(36px, 6vw, 64px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 82% 18%, rgba(92, 142, 211, 0.22), transparent 34%),
        linear-gradient(135deg, var(--color-navy-deep), var(--color-navy));
    color: #ffffff;
    text-align: center;
}

.solutions-cta h2,
.pricing-note-box h2,
.ops-final h2 {
    color: #ffffff;
}

.solutions-cta p,
.pricing-note-box p,
.ops-final > p,
.page-content .solutions-cta p,
.page-content .pricing-note-box p,
.page-content .ops-final > p {
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.82);
}

/*
 * Deliberate vertical rhythm inside the dark CTA panels (4px grid).
 * The inherited eyebrow (14px) and h2 (16px) margins read as nearly equal,
 * so the kicker looks stuck to the heading; the lede's own bottom margin
 * also stacks with .pricing-actions margin-top into an oversized gap.
 */
.solutions-cta .eyebrow,
.pricing-note-box .eyebrow,
.ops-final .eyebrow {
    margin-bottom: var(--space-4); /* 16px — clear kicker separation */
}

/* Collapse the bottom margin only on the paragraph directly before the
   action row, so .pricing-actions margin-top is the single source of that gap. */
.solutions-cta p:has(+ .pricing-actions),
.pricing-note-box p:has(+ .pricing-actions),
.ops-final p:has(+ .pricing-actions) {
    margin-bottom: 0;
}

.solutions-packages-section {
    margin-top: clamp(48px, 7vw, 80px);
    margin-bottom: clamp(48px, 7vw, 80px);
}

/* =========================================================
   Pricing page
   ========================================================= */

.pricing-intro {
    margin-bottom: clamp(36px, 5vw, 56px);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: clamp(56px, 7vw, 88px);
}

.pricing-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.pricing-card-featured {
    border-color: rgba(240, 121, 31, 0.45);
    box-shadow: var(--shadow-elegant);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-end));
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--shadow-cta);
}

.pricing-card-head {
    margin-bottom: 16px;
}

.pricing-price {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.pricing-note,
.pricing-card > p,
.pricing-card li,
.pricing-table td {
    color: var(--color-muted-foreground);
}

.pricing-note {
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.pricing-card ul {
    display: grid;
    gap: 10px;
	flex: 1;
    margin: 8px 0 24px;
    padding-left: 1.15rem;
}

.pricing-card .button {
    width: 100%;
    margin-top: auto;
}

.pricing-section-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.pricing-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.pricing-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    text-align: left;
    font-size: 0.94rem;
    line-height: 1.45;
}

.pricing-table thead th {
    background: var(--color-muted);
    color: var(--color-navy);
    font-weight: 750;
}

.pricing-table tbody th {
    width: 22%;
    background: #fbfcfe;
    color: var(--color-navy);
    font-weight: 750;
}

.pricing-table tr:last-child th,
.pricing-table tr:last-child td {
    border-bottom: 0;
}

.pricing-table .pricing-highlight {
    background: #fff7ef;
}

.pricing-table thead .pricing-highlight {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-end));
    color: #ffffff;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
    margin-top: clamp(36px, 5vw, 56px);
    margin-bottom: clamp(48px, 7vw, 80px);
}

.faq-section .ops-faq-wrap,
.ops-faq-wrap {
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.ops-faq {
    display: grid;
    gap: 12px;
}

.ops-faq details {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ops-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 22px 24px;
    color: var(--color-navy);
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

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

.ops-faq-body {
    padding: 0 24px 24px;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-muted-foreground);
}

.ops-faq-body p {
    margin: 0;
    color: var(--color-muted-foreground);
}

.ops-faq details[open] {
    border-color: rgba(92, 142, 211, 0.35);
}

.ops-faq details[open] summary {
    color: var(--color-blue-deep);
}

.ops-chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-blue-deep);
    border-bottom: 2px solid var(--color-blue-deep);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.ops-faq details[open] .ops-chev {
    transform: rotate(-135deg);
}

.faq-group {
    margin-bottom: clamp(36px, 5vw, 56px);
}

.faq-group:last-child {
    margin-bottom: 0;
}

.faq-group-heading {
    margin-bottom: 18px;
}

.faq-group-heading h2 {
    margin-bottom: 0;
}

.faq-group-heading .eyebrow {
    margin-bottom: 8px;
}

/* =========================================================
   Legal, 404, and utility pages
   ========================================================= */

.legal-overview,
.home-results,
.not-found-grid {
    display: grid;
    gap: 24px;
}

.legal-overview {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    margin-bottom: clamp(48px, 7vw, 80px);
}

.legal-entity-card,
.legal-enquiry-card,
.not-found-grid .card {
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.legal-enquiry-card {
    background:
        radial-gradient(circle at 82% 18%, rgba(92, 142, 211, 0.12), transparent 34%),
        var(--color-muted);
}

.legal-directory {
    margin-bottom: clamp(48px, 7vw, 80px);
}

.not-found-content {
    max-width: var(--container);
}

.not-found-content > h2,
.not-found-content > p {
    max-width: 720px;
}

.not-found-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(32px, 5vw, 56px);
}

.not-found-grid .card {
    display: flex;
    flex-direction: column;
}

.not-found-grid .card p:last-child {
    margin-top: auto;
    padding-top: 12px;
}

.not-found-home {
    margin-top: 32px;
}

.not-found-home a {
    color: var(--color-blue-deep);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   Calendly lazy embed
   ========================================================= */

.calendly-section {
    margin-top: clamp(48px, 7vw, 80px);
}

.calendly-section-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.calendly-placeholder {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.calendly-placeholder-copy {
    padding: clamp(28px, 5vw, 48px);
    background:
        radial-gradient(circle at 82% 18%, rgba(92, 142, 211, 0.16), transparent 34%),
        var(--color-muted);
}

.calendly-placeholder-copy p {
    max-width: 58ch;
    color: var(--color-muted-foreground);
}

.calendly-placeholder-copy .button {
    margin-right: 10px;
    margin-top: 8px;
}

.calendly-inline-widget {
    width: 100%;
    height: 950px;
}

.calendly-placeholder.is-loaded .calendly-placeholder-copy {
    display: none;
}

.calendly-placeholder.is-loaded .calendly-inline-widget {
    display: block !important;
}

@media (max-width: 720px) {
    .calendly-placeholder-copy .button {
        width: 100%;
        margin-right: 0;
    }

    
}
/* =========================================================
   Form sections
   ========================================================= */

.halo-trial-form-section,
.contact-form-section,
.get-started-form-section {
    margin-top: clamp(48px, 7vw, 80px);
    margin-bottom: clamp(48px, 7vw, 80px);
}

.halo-trial-form-grid,
.contact-form-grid,
.get-started-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    width: 100%;
    max-width: 100%;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 82% 18%, rgba(92, 142, 211, 0.12), transparent 34%),
        var(--color-muted);
}

.halo-trial-form-copy p,
.contact-form-copy p,
.get-started-form-copy p {
    color: var(--color-muted-foreground);
}

.ops-form-card,
.halo-trial-form-card,
.contact-form-card,
.get-started-form-card {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

/* =========================================================
   Forminator forms
   ========================================================= */

.ops-form-card .forminator-ui {
    margin: 0 !important;
}

.ops-form-card .forminator-row {
    margin-bottom: 18px !important;
}

.ops-form-card .forminator-label {
    margin-bottom: 7px !important;
    color: var(--color-navy) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.ops-form-card .forminator-description {
    color: var(--color-muted-foreground) !important;
    font-size: 0.85rem !important;
}

.ops-form-card input,
.ops-form-card textarea,
.ops-form-card select {
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    background: #ffffff !important;
    color: var(--color-foreground) !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

.ops-form-card textarea {
    min-height: 120px !important;
    resize: vertical;
}

.ops-form-card input:focus,
.ops-form-card textarea:focus,
.ops-form-card select:focus {
    border-color: var(--color-blue) !important;
    outline: 3px solid rgba(92, 142, 211, 0.18) !important;
    outline-offset: 0 !important;
}

.ops-form-card .forminator-button,
.ops-form-card .forminator-button-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 14px 24px !important;
    border: 1.5px solid transparent !important;
    border-radius: var(--radius-md) !important;
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-end)) !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: var(--shadow-cta) !important;
    cursor: pointer !important;
}

.ops-form-card .forminator-button:hover,
.ops-form-card .forminator-button-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.ops-form-card .forminator-error-message:empty,
.ops-form-card .forminator-response-message:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.ops-form-card .forminator-error-message {
    margin-top: 6px !important;
    color: #b42318 !important;
    font-size: 0.85rem !important;
    font-weight: 650 !important;
}

.ops-form-card .forminator-response-message {
    margin: 0 0 18px !important;
    padding: 14px 16px !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}

.ops-form-card .forminator-response-message.forminator-success {
    border: 1px solid rgba(39, 174, 96, 0.28) !important;
    background: #ecfdf3 !important;
    color: #067647 !important;
}

.ops-form-card .forminator-response-message.forminator-error {
    border: 1px solid rgba(180, 35, 24, 0.22) !important;
    background: #fef3f2 !important;
    color: #b42318 !important;
}

/* =========================================================
   CTA reassurance microcopy
   Short objection-handling line placed under a primary CTA.
   ========================================================= */

.ops-cta-reassure {
    margin: var(--space-3) 0 0;
    color: var(--color-muted-foreground);
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
    opacity: 0.85;
}

.ops-cta-reassure--on-dark {
    color: rgba(255, 255, 255, 0.62);
    opacity: 1;
}

/* =========================================================
   Image / graphic placeholder
   Drop-in box for slots awaiting a real image. Replace the
   markup with a real <img> (width/height set) when ready.
   ========================================================= */

.ops-img-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: var(--space-6);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background:
        repeating-linear-gradient(
            45deg,
            var(--color-muted),
            var(--color-muted) 12px,
            #ffffff 12px,
            #ffffff 24px
        );
    color: var(--color-muted-foreground);
    text-align: center;
}

.ops-img-placeholder--wide {
    aspect-ratio: 4 / 1;
}

.ops-img-placeholder--square {
    aspect-ratio: 1 / 1;
}

.ops-img-placeholder-label {
    max-width: 40ch;
    font-size: var(--text-sm);
    font-weight: 650;
    line-height: 1.4;
}

.ops-img-placeholder-label span {
    display: block;
    margin-top: var(--space-1);
    font-weight: 500;
    opacity: 0.75;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .home-package-grid,
    .pricing-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    .page-hero--split .page-hero-inner,
    .home-hero-grid,
    .home-split,
    .home-process,
    .home-trust-grid {
        grid-template-columns: 1fr;
    }

    .page-hero .page-title,
    .home-hero h1 {
        max-width: 14ch;
    }
}

@media (max-width: 920px) {
    .header-utility {
        display: none;
    }

    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 20px 24px 28px;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-elegant);
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

  .nav-menu .menu-item-has-children > a::after {
        width: 7px;
        height: 7px;
        margin-left: 9px;
        transform: translateY(-2px) rotate(45deg);
    }

    .nav-menu .menu-item-has-children:hover > a::after,
    .nav-menu .menu-item-has-children:focus-within > a::after {
        transform: translateY(-2px) rotate(45deg);
    }

    .nav-menu .sub-menu {
        position: static;
        min-width: 0;
        margin-top: 6px;
        padding: 4px 0 0 14px;
        border: 0;
        border-left: 2px solid var(--color-border);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-menu li:hover > .sub-menu,
    .nav-menu li:focus-within > .sub-menu {
        transform: none;
    }

    .nav-menu .sub-menu a {
        padding: 8px 0;
        white-space: normal;
    }

    .nav-menu .sub-menu a:hover,
    .nav-menu .sub-menu a:focus {
        background: transparent;
    }

    .header-cta {
        display: none;
    }

    .grid-2,
    .grid-3,
    .home-process,
    .home-trust-grid,
    .solutions-split,
    .halo-trial-form-grid,
    .contact-form-grid,
    .get-started-form-grid,
    .legal-overview,
    .home-proof-quote,
    .home-results,
    .not-found-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .site-logo img,
    .custom-logo {
        height: 34px;
        max-width: 160px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 720px) {
    .page-hero,
    .home-hero {
        padding: 64px 0;
    }

    .page-hero-media,
    .home-hero-card {
        display: none;
    }

    .home-package-grid,
    .home-proof-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-actions .button,
    .home-cta .button,
    .calendly-placeholder-copy .button {
        width: 100%;
    }

    .calendly-placeholder-copy .button {
        margin-right: 0;
    }

    .calendly-inline-widget {
        height: 700px !important;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   About page
   ========================================================= */

.about-founder-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    margin-bottom: clamp(48px, 7vw, 80px);
}

.about-founder-copy {
    max-width: 760px;
}

.about-founder-copy p:not(.eyebrow) {
    color: var(--color-muted-foreground);
}

.about-founder-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.about-founder-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}

.about-founder-card figcaption {
    padding: 18px 20px 20px;
}

.about-founder-card strong {
    display: block;
    color: var(--color-navy);
    font-weight: 750;
}

.about-founder-card span {
    display: block;
    margin-top: 4px;
    color: var(--color-muted-foreground);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .about-founder-section {
        grid-template-columns: 1fr;
    }

    .about-founder-card {
        max-width: 420px;
    }
}

/* =========================================================
   Get Started trust card
   ========================================================= */

.get-started-trust-section {
    margin-top: clamp(48px, 7vw, 80px);
    margin-bottom: clamp(48px, 7vw, 80px);
}

.get-started-trust-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.get-started-trust-image {
    overflow: hidden;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-xl);
    background: var(--color-muted);
}

.get-started-trust-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.get-started-trust-copy {
    max-width: 760px;
}

.get-started-trust-copy p:not(.eyebrow) {
    color: var(--color-muted-foreground);
}

@media (max-width: 720px) {
    .get-started-trust-card {
        grid-template-columns: 1fr;
    }

    .get-started-trust-image {
        width: 140px;
        height: 140px;
    }
}

/* =========================================================
   HaloITSM visual section
   ========================================================= */

.halo-visual-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    margin-bottom: clamp(48px, 7vw, 80px);
}

.halo-visual-copy {
    max-width: 720px;
}

.halo-visual-copy p:not(.eyebrow) {
    color: var(--color-muted-foreground);
}

.halo-visual-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.halo-visual-card img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.halo-visual-card figcaption {
    padding: 18px 20px 20px;
    border-top: 1px solid var(--color-border);
}

.halo-visual-card strong {
    display: block;
    color: var(--color-navy);
    font-weight: 750;
}

.halo-visual-card span {
    display: block;
    margin-top: 4px;
    color: var(--color-muted-foreground);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .halo-visual-section {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Homepage hero visual
   ========================================================= */

.home-hero-visual {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px -34px rgba(0, 0, 0, 0.55);
}

.home-hero-visual-frame {
    overflow: hidden;
    background: #ffffff;
}

.home-hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.home-hero-visual figcaption {
    padding: 18px 20px 20px;
}

.home-hero-visual strong {
    display: block;
    color: #ffffff;
    font-weight: 750;
}

.home-hero-visual span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .home-hero-visual {
        display: none;
    }
}

/* =========================================================
   Lightweight video demo
   ========================================================= */

.video-demo-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    margin-top: clamp(48px, 7vw, 80px);
    margin-bottom: clamp(48px, 7vw, 80px);
}

.video-demo-copy {
    max-width: 720px;
}

.video-demo-copy p:not(.eyebrow) {
    color: var(--color-muted-foreground);
}

.video-demo-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.video-lite {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 320px;
    padding: 32px;
    border: 0;
    background:
        linear-gradient(rgba(9, 22, 39, 0.18), rgba(9, 22, 39, 0.72)),
        url("https://img.youtube.com/vi/YOUR_VIDEO_ID/maxresdefault.jpg") center / cover;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
}

.video-lite-play {
    display: grid;
    place-items: center;
    width: 78px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #ff0000;
    color: #ffffff;
    box-shadow: 0 10px 28px -10px rgba(255, 0, 0, 0.65);
    font-size: 1.35rem;
    line-height: 1;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.video-lite:hover .video-lite-play,
.video-lite:focus-visible .video-lite-play {
    transform: scale(1.04);
    background: #cc0000;
    box-shadow: 0 12px 32px -10px rgba(255, 0, 0, 0.75);
}

.video-lite-text {
    max-width: 28ch;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.35;
}

.video-lite {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 320px;
    padding: 32px;
    border: 0;
    background:
        linear-gradient(rgba(9, 22, 39, 0.18), rgba(9, 22, 39, 0.72)),
        url("https://staging.opsaro.com/wp-content/uploads/2026/04/Halo_trial.png") center / cover;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
}

.video-demo-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

@media (max-width: 920px) {
    .video-demo-section {
        grid-template-columns: 1fr;
    }
}

.video-privacy-note {
    margin: 0;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted-foreground);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* =========================================================
   About sector strip
   ========================================================= */

.about-sector-strip {
    margin-top: clamp(48px, 7vw, 80px);
    margin-bottom: clamp(48px, 7vw, 80px);
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 88% 18%, rgba(92, 142, 211, 0.12), transparent 34%),
        #ffffff;
    box-shadow: var(--shadow-soft);
}

.about-sector-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.about-sector-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-sector-list span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-muted);
    color: var(--color-navy);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1;
}

/* =========================================================
   After go-live support section
   ========================================================= */

.after-go-live-section {
    margin-top: clamp(48px, 7vw, 80px);
    margin-bottom: clamp(48px, 7vw, 80px);
}

.after-go-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 88% 18%, rgba(92, 142, 211, 0.12), transparent 34%),
        #ffffff;
    box-shadow: var(--shadow-soft);
}

.after-go-live-copy {
    max-width: 720px;
}

.after-go-live-copy p:not(.eyebrow) {
    color: var(--color-muted-foreground);
}

.after-go-live-list {
    display: grid;
    gap: 16px;
}

.after-go-live-list .card {
    padding: 24px;
}

.after-go-live-list .card h3 {
    margin-bottom: 8px;
}

@media (max-width: 920px) {
    .after-go-live-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Get Started page contact-first layout
   ========================================================= */

.get-started-hero {
    margin-bottom: clamp(28px, 4vw, 44px);
}

.get-started-hero-copy {
    max-width: 820px;
}

.get-started-hero-copy p:not(.eyebrow) {
    color: var(--color-muted-foreground);
}

.get-started-contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 18px;
    margin-bottom: clamp(48px, 7vw, 80px);
}

.get-started-secondary-actions {
    display: grid;
    gap: 18px;
}

.contact-option-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.contact-option-card-featured {
    border-color: rgba(240, 121, 31, 0.35);
    background:
        radial-gradient(circle at 84% 16%, rgba(240, 121, 31, 0.12), transparent 34%),
        #ffffff;
}

.contact-option-card h3 {
    margin-bottom: 10px;
}

.contact-option-card p {
    color: var(--color-muted-foreground);
}

.contact-option-card p:last-child {
    margin-top: auto;
    padding-top: 10px;
}

.contact-option-card .button {
    width: 100%;
}

@media (max-width: 920px) {
    .get-started-contact-panel {
        grid-template-columns: 1fr;
    }
}

.pricing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.pricing-actions .button {
    margin: 0;
}

@media (max-width: 640px) {
    .pricing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   Halo platform trust
   ========================================================= */

.halo-platform-trust {
    text-align: center;
}

.halo-platform-trust .section-head {
    margin-left: auto;
    margin-right: auto;
}

.halo-platform-trust .section-head p {
    margin-left: auto;
    margin-right: auto;
}

.halo-trust-images {
    display: grid;
    gap: 24px;
    margin-top: 40px;
    padding: clamp(28px, 4vw, 44px);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elegant);
}

.halo-trust-images img {
    display: block;
    width: 100%;
    max-width: 980px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

.halo-trust-note {
    max-width: 760px;
    margin: 24px auto 0;
    font-size: 0.95rem;
}

.case-study-figure {
    margin-top: clamp(36px, 5vw, 56px);
    margin-bottom: clamp(36px, 5vw, 56px);
}

.case-study-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.case-study-figure figcaption {
    margin-top: 12px;
    color: var(--color-muted-foreground);
    font-size: 0.95rem;
    text-align: center;
}


/* =========================================================
   Card situation tag — replaces the numbered .card-icon on
   router/index cards. Colour-coded by situation so a reader
   can scan for the one that matches where they are.
   ========================================================= */

.card-tag {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: var(--space-4);
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.card-tag--build {
    background: #e8f0fa;
    color: #2f5da3;
    border-color: #cfe0f3;
}

.card-tag--fix {
    background: #fdf1e3;
    color: #9a5b12;
    border-color: #f3dcc0;
}

.card-tag--task {
    background: #eef2f7;
    color: #475461;
    border-color: #dde5ef;
}

.card-tag--ongoing {
    background: #e6f4f1;
    color: #1f6f63;
    border-color: #c8e6df;
}

/* Migration card is a signpost, not a package — quietest treatment */
.card-tag--signpost {
    background: var(--color-muted);
    color: var(--color-muted-foreground);
    border-color: var(--color-border);
}

/* Case study archive cards without a thumbnail still need body padding */
.post-card:not(:has(.post-card-thumb)) .post-card-body {
    padding-top: 30px;
}