@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

/* ==========================================================================
   Aceso Sphere — Main Stylesheet
   Based on Aceso_Desktop.pdf + Aceso_Mobile.pdf
   Mobile-first. Edge-to-edge for pillar + sphere sections.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Core palette */
    --c-black:          #000000;
    --c-bg:             #161A1E;
    --c-bg-dark:        #1F2A32;
    --c-bg-navy:        #0c1520;
    --c-white:          #ffffff;
    --c-text:           #ffffff;
    --c-text-muted:     rgba(255,255,255,.65);
    --c-text-dim:       rgba(255,255,255,.4);
    --c-border:         rgba(255,255,255,.1);

    /* Problem section (only light section) */
    --c-problem-bg:     #f5f4f0;
    --c-problem-text:   #0a0a0a;

    /* Pillar accent colours */
    --c-reveal:         #ff2244;
    --c-align:          #39ff14;
    --c-resolve:        #00e5ff;
    --c-pillar-bg:      #1C2930;

    /* Pillar tints (applied over photo) */
    --tint-reveal:      rgba(160,0,45,.68);
    --tint-align:       rgba(15,150,0,.62);
    --tint-resolve:     rgba(0,65,110,.65);

    /* Sphere card backgrounds */
    --c-patient:        #00d4e8;
    --c-care-team:      #1F2A32;
    --c-operations:     #e03050;

    /* Layout */
    --nav-h:            112px;
    --max-w:            1280px;
    --pad-h:            clamp(20px, 5vw, 80px);
    --pad-v:            clamp(56px, 8vw, 104px);
    --r:                4px;

    /* Fonts */
  --f-sans:           'Questrial', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --f-display:        'Questrial', 'Barlow', 'Inter', sans-serif;
    --fs-h1:            42px;

    /* Easing */
    --ease:             cubic-bezier(.22,1,.36,1);
    --dur:              .28s;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--f-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 72px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul       { list-style: none; }
a        { color: inherit; text-decoration: none; }
button   { font-family: inherit; cursor: pointer; background: none; border: none; }

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

/* --------------------------------------------------------------------------
   Container (max-width + horizontal padding)
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-h);
}

#main-content > .container {
    background: #FFF;
    color: #000;
    padding: 0 24px 80px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    font-family: var(--f-sans);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--r);
    transition: background var(--dur) var(--ease),
                color     var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.btn:focus-visible { outline: 2px solid var(--c-resolve); outline-offset: 3px; }

.btn--sm { padding: 10px 18px; font-size: .75rem; }

/* White outline */
.btn--outline {
    background: transparent;
    color: var(--c-white);
    border: 1.5px solid var(--c-white);
}
.btn--outline:hover {
    background: var(--c-white);
    color: var(--c-bg);
}

/* Dark (used on light/coloured backgrounds) */
.btn--dark {
    background: rgba(0,0,0,.15);
    color: var(--c-black);
    border: 1.5px solid rgba(0,0,0,.35);
}
.btn--dark:hover {
    background: rgba(0,0,0,.25);
    border-color: rgba(0,0,0,.55);
}

/* Dark button on the light Problem section */
.btn--dark-on-light {
    background: var(--c-problem-text);
    color: var(--c-white);
    border: 1.5px solid var(--c-problem-text);
}
.btn--dark-on-light:hover {
    background: rgba(10,10,10,.78);
    border-color: rgba(10,10,10,.78);
}

/* --------------------------------------------------------------------------
   NAVIGATION / HEADER
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    background: #000;
    height: var(--nav-h);
    transition: background var(--dur) var(--ease),
                backdrop-filter var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
    background: rgba(8,8,8,.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--c-border);
}

/* Offset anchor scroll targets so the fixed header doesn't cover them */
[id] {
    scroll-margin-top: var(--nav-h);
}

.nav {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: 0;
    padding: 20px 40px 30px;
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    margin-inline-end: auto;
    width: 190px;
    height: 46px;
    text-indent: -5000px;
    background: transparent url('../../images/logo_nav.png') 0 0 no-repeat;
}

.nav__logo-text {
    font-family: var(--f-display);
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--c-white);
    letter-spacing: -.01em;
}

/* Desktop nav links */
.nav__links {
    display: none; /* hidden on mobile, shown ≥900px */
    align-items: center;
    gap: 32px;
    margin: 10px 0 0 50px;
}

.nav__links a {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .1em;
    color: rgba(255,255,255,.82);
    transition: color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--c-white); }

/* Right cluster */
.nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* REQUEST A DEMO in nav (visible on mobile AND desktop) */
.nav__demo-btn { /* btn--outline btn--sm already applied */ 
    
}

/* Hamburger (hidden ≥900px) */
.nav__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    flex-shrink: 0;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
    transform-origin: center;
}

.nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ≥ 900px: show desktop nav, hide hamburger */
@media (min-width: 900px) {
    .nav__links      { display: flex; }
    .nav__hamburger  { display: none; }
    .nav__logo       { margin-inline-end: 0; }
}

@media (max-width: 899px) {
    .nav {
        padding: 10px 20px 20px;
    }
    div.nav__right { 
        margin-left: 10px; 
        gap: unset;
    }

    header div.nav__right .btn.btn--outline { display: none; }
}

/* --------------------------------------------------------------------------
   MOBILE MENU OVERLAY
   Matches Aceso_Mobile_Menu.pdf: pure black, large items, X close
   -------------------------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    display: flex;
    flex-direction: column;
    padding-inline: 28px;
    padding-block-end: 0;
    /* Animation */
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}
.mobile-menu:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    flex-shrink: 0;
}

.mobile-menu__close {
    color: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--dur) var(--ease);
}
.mobile-menu__close:hover { opacity: .7; }

.mobile-menu__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu__nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.mobile-menu__link {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(2rem, 10vw, 3.5rem);
    font-weight: 700;
    color: var(--c-white);
    text-align: center;
    padding: clamp(12px, 2.5vw, 20px) 0;
    letter-spacing: -.02em;
    transition: opacity var(--dur) var(--ease);
}
.mobile-menu__link:hover { opacity: .65; }

.mobile-menu__footer {
    display: flex;
    justify-content: center;
    padding-block: 32px 48px;
    flex-shrink: 0;
}

.mobile-menu__cta {
    width: 100%;
    max-width: 320px;
    padding: 16px 32px;
}

/* Colour accent strip: red / green / cyan */
.mobile-menu__accents {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    display: flex;
    height: 4px;
    flex-shrink: 0;
}

.mobile-menu__accents span:nth-child(1) { flex: 1; background: var(--c-reveal); }
.mobile-menu__accents span:nth-child(2) { flex: 1; background: var(--c-align); }
.mobile-menu__accents span:nth-child(3) { flex: 1; background: var(--c-resolve); }

/* --------------------------------------------------------------------------
   1. HERO
   Full-viewport. Dark sphere photo. Wordmark top, heading bottom.
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end; /* content sits near bottom */
    padding-block-start: var(--nav-h);
    padding-block-end: clamp(48px, 8vw, 80px);
    overflow: hidden;
}

/* Background image */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

/* Gradient overlay: darkens top and heavily at bottom */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8,8,8,.45)  0%,
        rgba(8,8,8,.2)   35%,
        rgba(8,8,8,.65)  70%,
        rgba(8,8,8,.96) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad-h);
    padding-top: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

/* "⊙ Aceso" brand row */
.hero__brand {
    text-align: center;
    gap: 10px;
    margin-block-end: 4px;
    width: 100%;
}
.hero__brand img {
    max-width: auto;
    margin: 0 auto;
}
.hero__brand > .tag {
    font-size: 150px;
    letter-spacing: 15px;
    line-height: 100%;
}

.hero__logo-svg { width: 40px; height: 40px; }

.hero__brand-name {
    font-family: var(--f-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* SPHERE wordmark */
.hero__sphere-text {
    font-family: var(--f-display);
    font-size: 120px;
    font-weight: 200;
    letter-spacing: .18em;
    line-height: .95;
    text-transform: uppercase;
    text-shadow:
        0 0 60px rgba(0,229,255,.25),
        0 0 120px rgba(57,255,20,.12);
    margin-block-end: 8px;
}

/* Main heading */
.hero__heading {
    font-family: var(--f-display);
    font-size: 54px;
    font-weight: 400;
    letter-spacing: .05em;
    line-height: 1.2;
    margin-top: 20px;
}

/* Subtitle */
.hero__sub {
    font-size: 24px;
    color: var(--c-text-muted);
    line-height: 1.65;
    max-width: 900px;
}

.hero__cta { margin-block-start: 8px; }

/* --------------------------------------------------------------------------
   2. VIDEO SECTION
   -------------------------------------------------------------------------- */
.video-section {
    background: #000;
    padding-block: var(--pad-v);
}

.video-section__inner {
    max-width: 900px;
}

.video-section__embed {
    position: relative;
    width: 770px;
    height: 443px;
    overflow: hidden;
}

.video-section__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 840px) {
    .video-section__embed {
        width: 400px;
        height: 225px;
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   3. THE PROBLEM
   Light section. 2-col desktop: text left, decorative rings right.
   -------------------------------------------------------------------------- */
.problem {
    position: relative;
    background: var(--c-problem-bg) url('../../images/bg_section_01.png') 100% 0 no-repeat;
    color: var(--c-problem-text);
    padding: 60px 0 40px;
    overflow: hidden;
}

/* 4-segment capability color bar at the top of the section */
.problem::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right,
        var(--c-bg)     0 25%,
        var(--c-reveal) 25% 50%,
        var(--c-align)  50% 75%,
        var(--c-resolve) 75% 100%
    );
}

@media (min-width: 840px) {
    /* On desktop stop the bar before the circles column (≈75% of section) */
    .problem::before { width: 75%; }
}

.problem__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    background: transparent url('') 0 0 no-repeat;
}
.problem__inner .btn {
    margin-top: 20px;
}

@media (min-width: 840px) {
    .problem__inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(10,10,10,.5);
    margin-block-end: 14px;
}

.problem__heading {
    font-family: var(--f-display);
    font-size: 50px;
    font-weight: 300;
    letter-spacing: 5%;
    line-height: 1.15;
    margin-block-end: 20px;
}

/* Mobile: center-align all problem text; desktop resets to left */
.problem__text {
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 840px) {
    .problem__text { text-align: left; }
}

.problem__text p {
    font-size: 24px;
    line-height: 1.7;
    color: rgba(10,10,10,.72);
    margin-block-end: 6px;
}

.problem__kicker {
    font-weight: 700 !important;
    color: var(--c-problem-text) !important;
    margin-block-start: 8px;
    margin-block-end: 24px !important;
}

/* Decorative concentric rings — visible on all breakpoints.
   Mobile: absolutely positioned as background decoration (behind text via z-index).
   Desktop: normal grid column. */
.problem__visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

@media (min-width: 840px) {
    .problem__visual {
        position: static;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Container: large enough that outer rings bleed off-edge */
.problem__circles {
    position: relative;
    /* Mobile: shift center to right edge so rings arc through the section */
    width: 85vw;
    aspect-ratio: 1;
    flex-shrink: 0;
    translate: 30% 0;
}

@media (min-width: 840px) {
    .problem__circles {
        width: clamp(340px, 42vw, 540px);
        translate: 20% 0; /* push rings partially outside the column to the right */
    }
}

/* All four rings: concentric, thin colored outlines */
.problem__circle {
    position: absolute;
    border-radius: 50%;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
}

/* Outermost — very faint cyan */
.problem__circle--1 {
    width: 130%; height: 130%;
    border: 1.5px solid rgba(0, 229, 255, 0.13);
}
/* Second — cyan, slightly more visible */
.problem__circle--2 {
    width: 100%; height: 100%;
    border: 1.5px solid rgba(0, 229, 255, 0.18);
}
/* Third — golden/amber */
.problem__circle--3 {
    width: 70%; height: 70%;
    border: 1.5px solid rgba(245, 200, 60, 0.20);
}
/* Innermost — rose/reveal pink */
.problem__circle--4 {
    width: 42%; height: 42%;
    border: 1.5px solid rgba(255, 34, 68, 0.18);
}

/* --------------------------------------------------------------------------
   3. PLATFORM DIAGRAM — When Care Connects at the Core
   Dark photo background (hero image + heavy overlay). Centered column.
   Eyebrow (amber) → ⊙Aceso + SPHERE → 3-col capability card → caption.
   Desktop: card 3-column. Mobile: card stacks single column.
   -------------------------------------------------------------------------- */
.platform-diagram {
    position: relative;
    background-color: var(--c-bg-navy);
    overflow: hidden;
}

/* Background photo — same hero image, CSS brings opacity near-zero for texture */
.platform-diagram__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.platform-diagram__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Very dark overlay — keeps section near-black while letting photo add depth */
.platform-diagram__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(5, 8, 18, 0.96)  0%,
        rgba(8, 14, 26, 0.93) 50%,
        rgba(5, 8, 18, 0.97) 100%
    );
}

/* Content wrapper — sits above bg+overlay, centered flex column */
.platform-diagram__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-block: clamp(48px, 7vw, 88px);
    padding-inline: var(--pad-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

/* Eyebrow: "WHEN CARE CONNECTS AT THE CORE, EVERYTHING CHANGES." */
/* Amber–gold gradient text matching the PDF accent */
.platform-diagram__eyebrow {
    font-family: var(--f-sans);
    font-size: clamp(.625rem, 1.1vw, .75rem);
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff8c00 0%, #ffc140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-block-end: 28px;
}

/* ⊙ Aceso wordmark — tightly paired with SPHERE below */
.platform-diagram__wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-block-end: 6px;
}

.platform-diagram__aceso {
    font-family: var(--f-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-white);
    letter-spacing: .02em;
}

/* SPHERE heading — smaller than hero, anchors the diagram below it */
.platform-diagram__sphere-text {
    font-family: var(--f-display);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 900;
    letter-spacing: .2em;
    line-height: 1;
    color: var(--c-white);
    text-shadow: 0 0 40px rgba(0,229,255,.18), 0 0 80px rgba(57,255,20,.1);
    margin-block-end: 36px;
}

/* Capability diagram card */
.platform-diagram__card {
    width: 100%;
    max-width: 1040px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(4, 8, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-block-end: 20px;
    text-align: left;
}

/* "Powered by Three Core Capabilities" */
.platform-diagram__powered {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.32);
    padding: 11px clamp(16px, 2.5vw, 24px);
    border-block-end: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

/* Three-column capability grid */
/* 1px visible gap = becomes a divider line; bg on parent shows through */
.platform-diagram__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(255,255,255,.1);
}

@media (min-width: 768px) {
    .platform-diagram__cols {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Individual capability column */
.platform-diagram__col {
    padding: clamp(18px, 2.5vw, 28px);
    background: rgba(4, 8, 16, 0.94);
    display: flex;
    flex-direction: column;
}

/* Colored top accent */
.platform-diagram__col--reveal { border-block-start: 3px solid var(--c-reveal); }
.platform-diagram__col--align  { border-block-start: 3px solid var(--c-align);  }
.platform-diagram__col--resolve { border-block-start: 3px solid var(--c-resolve); }

/* Column label: REVEAL / ALIGN / RESOLVE */
.platform-diagram__col-label {
    font-family: var(--f-display);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-block-end: 14px;
}

.platform-diagram__col--reveal .platform-diagram__col-label { color: var(--c-reveal); }
.platform-diagram__col--align  .platform-diagram__col-label { color: var(--c-align); }
.platform-diagram__col--resolve .platform-diagram__col-label { color: var(--c-resolve); }

/* Capability bullet list */
.platform-diagram__col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1; /* push tagline to bottom */
}

.platform-diagram__col-list li {
    font-size: .8125rem;
    color: rgba(255,255,255,.82);
    padding-inline-start: 16px;
    position: relative;
    line-height: 1.4;
}

.platform-diagram__col-list li::before {
    content: '—';
    position: absolute;
    inset-inline-start: 0;
    color: rgba(255,255,255,.28);
    font-size: .65rem;
    top: .15em;
}

/* Column closing italic tagline */
.platform-diagram__col-tagline {
    font-size: .75rem;
    font-style: italic;
    color: rgba(255,255,255,.38);
    line-height: 1.55;
    border-block-start: 1px solid rgba(255,255,255,.08);
    padding-block-start: 10px;
    margin-block-start: 14px;
}

/* ACESO INTELLIGENCE badge — bottom of card, full width */
.platform-diagram__intelligence {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px clamp(16px, 2.5vw, 24px);
    border-block-start: 1px solid rgba(255,255,255,.08);
}

.platform-diagram__intel-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.platform-diagram__intel-label {
    font-family: var(--f-display);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}

/* "How Aceso Sphere Activates Care" */
.platform-diagram__caption {
    font-size: .75rem;
    color: rgba(255,255,255,.38);
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4-6. PILLAR SECTIONS — REVEAL / ALIGN / RESOLVE
   Edge-to-edge (no container). 2-col on desktop, stacked on mobile.
   Image ALWAYS on top on mobile.
   -------------------------------------------------------------------------- */

/* Base pillar layout */
.pillar {
    display: grid;
    grid-template-columns: 1fr;       /* mobile: single column */
    background: var(--c-pillar-bg);
}

@media (min-width: 768px) {
    .pillar {
        grid-template-columns: 1fr 1fr; /* desktop: 50/50 */
        min-height: 560px;
    }
}

/* Photo column */
.pillar__photo {
    position: relative;
    overflow: hidden;
    /* Mobile: explicit height so the image has room */
    height: clamp(240px, 55vw, 380px);
}

@media (min-width: 768px) {
    .pillar__photo {
        height: auto; /* let grid row height determine it */
    }
}

/* Image fills the photo column completely */
.pillar__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Colour tint overlay above the photo */
.pillar__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.pillar__photo--reveal::after  { background: var(--tint-reveal); }
.pillar__photo--align::after   { background: var(--tint-align);  }
.pillar__photo--resolve::after { background: var(--tint-resolve); }

/* Content column */
.pillar__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 72px);
    gap: 18px;
}

/* ALIGN: on mobile the photo should still appear ABOVE the content.
   In ALIGN the DOM order is: content (1st) → photo (2nd).
   We use CSS order to put the photo first on mobile. */
.pillar--align .pillar__photo {
    order: -1;      /* mobile: photo goes before content */
}
@media (min-width: 768px) {
    .pillar--align .pillar__photo {
        order: 0;   /* desktop: restore to natural DOM order (right column) */
    }
}

/* Badge image (REVEAL / ALIGN / RESOLVE label) */
.pillar__badge {
    height: 20px;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

/* Heading */
.pillar__pre-heading {
    font-size: 24px;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.pillar__heading {
    font-family: var(--f-display);
    font-size: 50px;
    font-weight: 800;
    letter-spacing: initial;
    line-height: 1.1;
    color: var(--c-white);
}

/* Bullet list */
.pillar__bullets {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pillar__bullets li {
    position: relative;
    padding-inline-start: 18px;
    font-size: 20px;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.pillar__bullets li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .58em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pillar .btn {
    width: 200px;
    background: var(--c-bg-dark);
}
.pillar .btn.btn--outline {
    float: left;
}
.pillar .btn:hover {
    background: var(--c-white);
}
.pillar--reveal .pillar__bullets li::before { background: var(--c-reveal); }
.pillar--align  .pillar__bullets li::before { background: var(--c-align);  }
.pillar--resolve .pillar__bullets li::before { background: var(--c-resolve); }

.pillar--reveal .pillar__pre-heading { color: var(--c-reveal); }
.pillar--align .pillar__pre-heading { color: var(--c-align); }
.pillar--resolve .pillar__pre-heading { color: var(--c-resolve); }

/* Body copy */
.pillar__body {
    font-size: 20px;
    color: var(--c-text-muted);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. WHERE ACESO SPHERE SITS
   Dark. 2-col desktop: text left, diagram right.
   -------------------------------------------------------------------------- */
.where-sits {
    background: var(--c-black);
    padding-block: var(--pad-v);
}

.where-sits__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 840px) {
    .where-sits__inner {
    }
}

.where-sits__heading {
    font-family: var(--f-display);
    font-size: 50px;
    font-weight: 400;
    letter-spacing: .2em;
}

.where-sits__not {
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    padding-top: 20px;
}

.where-sits__body {
    font-size: 24px;
    color: var(--c-text-muted);
    line-height: 1.7;
    padding-top: 40px;
}

.where-sits__diagram {
    display: flex;
    align-items: center;
    justify-content: center;
}

.where-sits__diagram img {
    width: 100%;
    max-width: 420px;
    opacity: .85;
}

/* --------------------------------------------------------------------------
   8. SPHERE CARDS — Patient / Care Team / Operations
   Edge-to-edge. 2-col: diagram LEFT (≈38%), content RIGHT.
   Mobile: image on top, content below.
   -------------------------------------------------------------------------- */
.spheres {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--c-white);
}

#company.spheres::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right,
        var(--c-bg)     0 25%,
        var(--c-reveal) 25% 50%,
        var(--c-align)  50% 75%,
        var(--c-resolve) 75% 100%
    );
}

/* Each card */
.sphere-card {
    display: grid;
    grid-template-columns: 1fr;  /* mobile: stacked */
    margin-top: 80px;
}

@media (min-width: 640px) {
    .sphere-card {
        grid-template-columns: 50% 50%; /* desktop: image col + content col */
        min-height: 380px;
    }
}

/* Image column */
.sphere-card__img-col {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sphere-card__img-col img {
    position: absolute;
    top: 0;
    left: 40x;
    height: auto;
    object-fit: contain;
    background: #F3F3F3;
    border: 40px solid #FFF;
    border-top: none;
}

/* Content column */
.sphere-card__content {
    display: flex;
    font-size: 20px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 52px);
    gap: 10px;
}

/* Per-card colours */
.sphere-card--patient    { background: var(--c-patient); color: #000; }
.sphere-card--care-team  { background: var(--c-care-team); color: var(--c-white); }
.sphere-card--operations { background: var(--c-operations); color: var(--c-white); }

.sphere-card__heading {
    font-family: var(--f-display);
    font-size: 50px;
    font-weight: 400;
    letter-spacing: .2em;
    line-height: 1.15;
}

.sphere-card__intro {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
    opacity: .9;
    letter-spacing: .05em;
}

.sphere-card__content > p:not(.sphere-card__intro):not(.sphere-card__note) {
    font-size: 20px;
    opacity: .8;
    line-height: 1.6;
}

.sphere-card__bullets {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-block: 4px;
}

.sphere-card__bullets li {
    position: relative;
    padding-inline-start: 16px;
    font-size: 20px;
    line-height: 1.5;
    opacity: .85;
}

.sphere-card__bullets li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .65;
}

.sphere-card__note {
    font-size: .875rem;
    opacity: .7;
    line-height: 1.6;
    font-style: italic;
}

.sphere-card__cta { align-self: flex-start; margin-block-start: 6px; }

/* Adjust CTA on coloured backgrounds */
.sphere-card--patient .sphere-card__cta,
.sphere-card--care-team .sphere-card__cta,
.sphere-card--operations .sphere-card__cta {
    color: #000;
    background: rgba(255,255,255,1.0);
}
.sphere-card--patient .sphere-card__cta:hover,
.sphere-card--care-team .sphere-card__cta:hover,
.sphere-card--operations .sphere-card__cta:hover {
    color: #FFF;
    background: rgba(0,0,0,1.0);
}
.sphere-card--operations .sphere-card__cta {
    color: #000;
    background: rgba(255,255,255,1.0);
}

@media (max-width: 768px) {
    .sphere-card {
        display: flex;
        flex-direction: column;
        margin-top: 40px;
    }
    .sphere-card__img-col,
    .sphere-card__img-col img {
        position: unset;
        left: unset;
        right: unset;
    }

    .sphere-card__img-col { padding: 0; }

    .sphere-card__img-col img {
        border: none;
        padding:0;
        margin: 0;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   9. DEMO FORM — See Aceso Sphere In Action
   Dark section. Centered heading. Bottom-border-only inputs.
   -------------------------------------------------------------------------- */
.demo-form {
    background: var(--c-bg-dark) url('../../images/bg_contact-form.png');
    padding-block: var(--pad-v);
    border-top: 1px solid var(--c-border);
}

.demo-form__inner {
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-form__heading {
    font-family: var(--f-display);
    font-size: 50px;
    font-weight: 400;
    letter-spacing: .1;
    line-height: 1.15;
    text-align: center;
    margin-block-end: 4px;
}

.demo-form__sub {
    text-align: center;
    font-size: 24px;
    color: var(--c-text-muted);
    margin-block-end: 16px;
}

.demo-form__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.demo-form__field {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,.25);
}

.demo-form__field:last-of-type { margin-block-end: 28px; }

.demo-form__field input,
.demo-form__field textarea {
    background: transparent;
    border: none;
    outline: none;
    color: var(--c-white);
    font-family: var(--f-sans);
    font-size: 24px;
    padding: 10px 20px;
    width: 100%;
    resize: none;
    transition: border-color var(--dur) var(--ease);
}
.demo-form__field textarea { background: var(--c-bg); }
.demo-form__field:focus-within {
    border-bottom-color: rgba(255,255,255,.65);
}

.demo-form__field input::placeholder,
.demo-form__field textarea::placeholder {
    color: var(--c-text-muted);
}

.demo-form__field textarea { min-height: 110px; line-height: 1.6; }

.demo-form .btn {
    width: 200px;
    margin-top: 60px;
    color: var(--c-black);
    background: var(--c-white);
}
.demo-form .btn:hover {
    color: var(--c-white);
    background: var(--c-bg-dark);
}

.demo-form__status {
    padding-block: 8px; 
    color: var(--c-white);
    font-size: 1.5em;
    padding: 0 10px;
    margin-top: 10px;
}
.demo-form__status.is-success { 
    background: var(--c-align); 
    color: var(--c-black); 
}
.demo-form__status.is-error   { 
    background: var(--c-reveal);
}

/* --------------------------------------------------------------------------
   SITE FOOTER
   Very dark. Logo left, Subscribe right on desktop. Bottom bar.
   -------------------------------------------------------------------------- */
.site-footer {
    background: #040404;
    border-top: 1px solid var(--c-border);
    padding-block: 44px 28px;
}

.site-footer > .col {
    float: left;
    width: 50%;
}

.site-footer .col {
    float: left;
}
.site-footer img { 
    width: 271px;
    margin-right: 20px;
 }

.site-footer__inner { display: flex; flex-direction: column; gap: 28px; }

/* Top row: logo + subscribe */
.site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 640px) {
    .site-footer__top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Subscribe form */
.site-footer__subscribe {
    display: block;
    max-width: 320px;
    width: 100%;
}

.site-footer__subscribe input {
    width: 100%;
    background: #FFF;
    border: none;
    outline: none;
    color: var(--c-black);
    font-family: var(--f-sans);
    font-size: .9375rem;
    padding: 10px;
    min-width: 0;
}

.site-footer__subscribe input::placeholder { color: #666666; }

.site-footer__subscribe .btn {
    float: right;
    padding: 10px 20px;
    font-size: .75rem;
    background: #FFF;
    color: #000;
    margin-top: 10px;
}

/* Bottom bar: copyright + legal */
.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-block-start: 30px;
    border-top: 1px solid var(--c-border);
}

@media (min-width: 640px) {
    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-footer__copy  { 
    font-size: 18px; 
    color: var(--c-white); 
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--c-white);
}

.site-footer__legal a { transition: color var(--dur) var(--ease); }
.site-footer__legal a:hover { color: var(--c-white); }

/* --------------------------------------------------------------------------
   GENERIC PAGE (page.php)
   -------------------------------------------------------------------------- */
.page-content {
    background: #FFF;
    padding-block-start: calc(var(--nav-h));
    padding-block-end: 80px;
    min-height: 60vh;
}

.page-article { 
    max-width: 760px; 
    letter-spacing: .03em;
}

.page-article__title {
    font-family: var(--f-display);
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.1;
    margin-block-end: 10px;
    color: var(--c-black);
}

.page-article__body {
    font-size: 18px;
    line-height: 1.75;
    color: var(--c-black);
}

.page-article__body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-black);
    margin-block: 28px 10px;
}

body.page.admin-bar .nav {
    padding-top: 60px;
}

.page-article__body p  { margin-block-end: 16px; }
.page-article__body a  { color: #0000FF; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   SINGLE POST (single.php)
   -------------------------------------------------------------------------- */
.page-article__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    color: #555;
    margin-block-end: 28px;
}

.page-article__meta-sep { color: #aaa; }

.page-article__featured-image {
    margin-block-end: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.page-article__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-article__post-nav {
    margin-block-start: 56px;
    padding-block-start: 32px;
    border-top: 1px solid #e5e5e5;
}

.page-article__post-nav .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-article__post-nav .nav-previous a,
.page-article__post-nav .nav-next a {
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-black);
    text-decoration: none;
}

.page-article__body h1 {
    margin-top: 30px;
}

.page-article__body ul, .page-article__body ol {
    margin: 0 0 16px 50px;
}
/* `ul` that comes directly before `p` */
.page-article__body p + ul,
.page-article__body p + ol {
    margin-bottom: 30px;
}

/*.`p` that comes directly before `ul` */
.page-article__body p:has(+ ul),
.page-article__body p:has(+ ol) {
    margin-bottom: 0;
}


.page-article__body ul, .page-article__body ul > li {
    list-style-type: disc;
}

.page-article__post-nav .nav-previous a:hover,
.page-article__post-nav .nav-next a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   BLOG LIST (home.php)
   -------------------------------------------------------------------------- */
.blog-list-page .container { 
    /* padding-block-start: 40px;  */
}

.blog-list__header { 
    margin-block-end: 48px;
    font-size: 
}

.blog-list__header h1 { 
    font-size: var(--fs-h1);
    letter-spacing: .05em;
}

.blog-list__heading {
    font-family: var(--f-display);
    font-size: 24px;
    letter-spacing: .05em;
    font-weight: 800;
    line-height: 1.1;
    color: var(--c-black);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block-end: 48px;
    border-bottom: 1px solid #e5e5e5;
}

@media (min-width: 640px) {
    .blog-card.has-post-thumbnail {
        grid-template-columns: 280px 1fr;
        align-items: start;
    }
}

.blog-card__thumbnail {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.blog-card__thumbnail:hover img { transform: scale(1.03); }

.blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
}

.blog-card__title {
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.2;
    margin: 0;
    color: var(--c-black);
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover { text-decoration: underline; }

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    color: #555;
    margin: 0;
}

.blog-card__meta-sep { color: #bbb; }

.blog-card__excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.blog-card__excerpt p { margin: 0; }

.blog-card__read-more { align-self: flex-start; margin-block-start: 4px; }

.blog-list__empty {
    font-size: 1.125rem;
    color: #555;
    padding-block: 40px;
}

/* Pagination */
.blog-pagination {
    margin-block-start: 56px;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding-inline: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--c-black);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.blog-pagination .page-numbers:hover {
    background: #f0f0f0;
    border-color: #999;
}

.blog-pagination .page-numbers.current {
    background: var(--c-black);
    border-color: var(--c-black);
    color: #fff;
}

.blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   SCROLL-REVEAL ANIMATION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .6s var(--ease), transform .6s var(--ease);
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: .08s; }
    .reveal:nth-child(3) { transition-delay: .16s; }
    .reveal:nth-child(4) { transition-delay: .24s; }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--c-resolve);
    outline-offset: 3px;
}

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