/*
 * Commerce9 landing pages / case studies (Asia Opticals, Urban 411, Financial Services, ...).
 * Pages are built from native Elementor widgets; colours, fonts and spacing live in each widget's
 * own settings. This file only adds what Elementor can't do natively, keyed to reusable c9x-* classes.
 */

/* Dark header on light/dark heroes; hide the theme's breadcrumb strip */
body:has(.c9x-page) .nav-header{background:#02102b!important}
body:has(.c9x-page) .breadcumb-wrapper{display:none}
.c9x-page{overflow-x:clip}
/* The theme colours every <p> directly; let Text Editor widgets use their own "Text Color" setting instead */
.c9x-s .elementor-widget-text-editor p{color:inherit}
.c9x-s .elementor-widget-text-editor p:last-child{margin-bottom:0}
/* Site CSS forces icon-list text to inherit, so give lists a default colour per light/dark section */
.c9x-s .elementor-widget-icon-list{color:#4a4f57}
.c9x-s.c9x-dark .elementor-widget-icon-list,.c9x-dark .c9x-s .elementor-widget-icon-list{color:#e4e5e8}
.c9x-s .elementor-widget-icon-list.c9x-muted{color:#6b7079}

/* Section heading icon (Icon Box, framed) — soft glow */
.c9x-sh .elementor-icon{box-shadow:0 6px 16px -8px var(--c9x-glow,rgba(227,38,47,.45))}
.c9x-dark .c9x-sh .elementor-icon{box-shadow:none}

/* Centred section heading with a short accent rule underneath */
.c9x-rule .elementor-heading-title::after{content:"";display:block;width:56px;height:3px;border-radius:3px;background:var(--c9x-accent,#f36f21);margin:16px auto 0}

/* Cards: hover lift */
.c9x-lift{transition:transform .25s,box-shadow .25s,border-color .25s}
.c9x-lift:hover{transform:translateY(-4px);box-shadow:0 22px 40px -26px rgba(15,23,42,.45)!important}

/* Coloured icon tiles (Icon Box, stacked): subtle gloss over any colour + shadow */
.c9x-tile .elementor-icon{background-image:linear-gradient(135deg,rgba(255,255,255,.28),rgba(0,0,0,.06));box-shadow:0 10px 20px -10px rgba(15,23,42,.55)}

/* Info table built from containers */
.c9x-table>.e-con:last-child{border-bottom:0!important}

/* Step timelines: dashed connector + arrow between step icons (desktop only).
   Each step is a container; its icon widget carries the c9x-node class. */
@media (min-width:1025px){
 .c9x-steps>.e-con{position:relative}
 .c9x-steps>.e-con:not(:last-child)::after{content:"";position:absolute;top:var(--c9x-mid,29px);left:var(--c9x-from,66px);right:-10px;border-top:2px dashed var(--c9x-line,#f1b6b9)}
 .c9x-steps.c9x-center>.e-con:not(:last-child)::after{left:calc(50% + 38px);right:calc(-50% + 26px)}
 .c9x-steps .c9x-node{position:relative;z-index:1}
 .c9x-steps>.e-con:not(:first-child) .c9x-node::before{content:"";position:absolute;top:var(--c9x-mid,29px);left:-17px;width:8px;height:8px;margin-top:-4px;border-top:2px solid var(--c9x-accent,#e3262f);border-right:2px solid var(--c9x-accent,#e3262f);transform:rotate(45deg)}
 .c9x-steps.c9x-center>.e-con:not(:first-child) .c9x-node::before{left:-14px}
 .c9x-steps.c9x-arrows>.e-con:not(:last-child)::after{border-top-style:solid;--c9x-line:#9aa3b2;left:auto;right:-6px;width:20px}
 .c9x-steps.c9x-arrows{--c9x-accent:#9aa3b2;--c9x-mid:31px}
}
/* Flow of tiles with arrows between them (customer journey / fulfilment flows) */
.c9x-flow>.elementor-element{position:relative}
.c9x-flow>.elementor-element:not(:last-child)::after{content:"";position:absolute;top:22px;right:-9px;width:8px;height:8px;border-top:2px solid var(--c9x-accent,#e3262f);border-right:2px solid var(--c9x-accent,#e3262f);transform:rotate(45deg)}
@media (max-width:767px){.c9x-flow>.elementor-element::after{display:none}}

/* Benefit columns separated by thin dividers (desktop) */
@media (min-width:1025px){.c9x-dividers>.elementor-element:not(:first-child){border-left:1px solid rgba(255,255,255,.12)}}

/* Images that should fill their column */
.c9x-cover,.c9x-cover img{height:100%;width:100%}
.c9x-cover img{object-fit:cover}

/* Faint grid texture on navy bands (the gradient + glow are native container backgrounds) */
.c9x-gridlines{position:relative}
.c9x-gridlines::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:48px 48px}
.c9x-gridlines>.e-con-inner{position:relative;z-index:1}

/* Monochrome client theme (e.g. Urban 411): black accent, grey connectors, neutral glow */
.c9x-mono{--c9x-accent:#000;--c9x-line:#bfbfbf;--c9x-glow:rgba(0,0,0,.18)}
