/* ReConnect "bling" layer (v1.1.0 preview): motion, depth and a bento grid.
   Everything here is progressive: browsers without support just show the normal site,
   and people who turn off animations get a calm version. */

/* ---------- 1. Smooth page-to-page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
header.wp-block-template-part { view-transition-name: rc-header; }
::view-transition-old(root) { animation: rc-vt-out .28s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: rc-vt-in .42s cubic-bezier(0,0,.2,1) both; }
@keyframes rc-vt-out { to { opacity: 0; transform: translateY(-12px) scale(.99); } }
@keyframes rc-vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- 2. Sticky glass header that tightens as you scroll ---------- */
header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 60; }
.rc-header--stores { background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); transition: padding .25s, box-shadow .25s; }
.rc-header--pro { -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); background: rgba(13,26,56,.9); transition: padding .25s, box-shadow .25s; }
html.rc-scrolled .rc-header { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 10px 30px -12px rgba(2,36,74,.35); }
.rc-header__logo img { transition: transform .25s; transform-origin: left center; }
html.rc-scrolled .rc-header__logo img { transform: scale(.86); }

/* Orange reading-progress line under the header */
.rc-progress { position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); height: 3px; z-index: 70; pointer-events: none;
	background: linear-gradient(90deg, #FF6B1A, #FFB27F 60%, #FF6B1A); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
	.rc-progress { animation: rc-grow linear both; animation-timeline: scroll(root block); }
	@keyframes rc-grow { to { transform: scaleX(1); } }
}

/* ---------- 3. Hero: living fibre, glowing headline, staggered entrance ---------- */
.rc-home-hero, .rc-hero { position: relative; overflow: hidden; isolation: isolate; }
.rc-fibre-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
.rc-home-hero > *:not(.rc-fibre-fx), .rc-hero > *:not(.rc-fibre-fx) { position: relative; z-index: 1; }
.rc-fibre-fx .p { fill: none; stroke-linecap: round; stroke-width: 3; stroke-dasharray: 2 70 120 9999; filter: url(#rc-glow); animation: rc-pulse 5.5s linear infinite; }
.rc-fibre-fx .p:nth-child(2) { animation-duration: 7s; animation-delay: -2s; }
.rc-fibre-fx .p:nth-child(3) { animation-duration: 6.2s; animation-delay: -4s; }
.rc-fibre-fx .p:nth-child(4) { animation-duration: 8s; animation-delay: -1s; }
@keyframes rc-pulse { from { stroke-dashoffset: 1900; } to { stroke-dashoffset: -400; } }

.rc-home-hero::after { content: ""; position: absolute; z-index: 0; width: 620px; height: 620px; left: -160px; top: -200px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255,107,26,.28), transparent 70%); animation: rc-drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes rc-drift { to { transform: translate(140px, 90px) scale(1.15); } }

.rc-home-hero .rc-accent, .rc-home-hero h1 .rc-accent {
	background: linear-gradient(100deg, #FF6B1A 0%, #FFB27F 30%, #FF6B1A 55%, #FF8A3D 100%); background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent; animation: rc-shine 6s ease-in-out infinite; }
@keyframes rc-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.rc-enter { opacity: 0; transform: translateY(26px); }
.rc-enter.rc-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms); }

/* Hero background drifts slowly as you scroll (parallax) */
@supports (animation-timeline: scroll()) {
	.rc-home-hero { animation: rc-parallax linear both; animation-timeline: scroll(root block); animation-range: 0 700px; }
	@keyframes rc-parallax { from { background-position: right center; } to { background-position: right calc(50% + 90px); } }
}

/* ---------- 4. Reveal on scroll ---------- */
.rc-reveal { opacity: 0; transform: translateY(34px) scale(.985); }
.rc-reveal.rc-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.rc-reveal-img img { clip-path: inset(0 0 100% 0 round 8px); }
.rc-reveal-img.rc-in img { clip-path: inset(0 0 0 0 round 8px); transition: clip-path 1s cubic-bezier(.65,0,.35,1) .1s; }

/* ---------- 5. Cards with depth: lift, tilt and a light that follows the pointer ---------- */
.rc-tilt { transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; will-change: transform; position: relative; }
.rc-tilt.rc-in { transition: opacity .8s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.rc-tilt:hover { box-shadow: 0 24px 48px -20px rgba(2,36,74,.45), 0 0 0 1px rgba(255,107,26,.35); }
.rc-dark .rc-tilt:hover { box-shadow: 0 30px 60px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,178,127,.45); }
.rc-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,178,127,.22), transparent 45%); }
.rc-tilt:hover::after { opacity: 1; }
.rc-tilt figure { overflow: hidden; border-radius: var(--rc-radius); }
.rc-tilt figure img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.rc-tilt:hover figure img { transform: scale(1.06); }

/* ---------- 6. Buttons: shine sweep and arrow nudge ---------- */
.wp-block-button__link { position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, background .2s; }
.wp-block-button__link::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transition: left .6s; pointer-events: none; }
.wp-block-button__link:hover::before { left: 130%; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(255,107,26,.7); }
.rc-call .wp-block-button__link { animation: rc-ring 6s ease-in-out 3s infinite; }
@keyframes rc-ring { 0%, 90%, 100% { box-shadow: 0 0 0 0 rgba(255,107,26,0); } 93% { box-shadow: 0 0 0 6px rgba(255,107,26,.35); } 97% { box-shadow: 0 0 0 12px rgba(255,107,26,0); } }

/* ---------- 7. Bento grid ---------- */
.rc-bento-wrap { padding-top: 64px; padding-bottom: 64px; }
.rc-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 18px; max-width: 1200px; margin: 0 auto; }
.rc-b { border-radius: 18px; padding: 26px; background: var(--rc-panel); color: #fff; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; overflow: hidden; position: relative; border: 1px solid rgba(195,205,221,.12); }
.rc-b h3, .rc-b p { margin: 0; }
.rc-b h3 { font-size: 22px; line-height: 1.2; color: #fff; }
.rc-b .rc-b__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--rc-orange-light); }
.rc-b .rc-b__big { font-size: clamp(44px, 5vw, 64px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.rc-b .rc-b__go { font-weight: 700; color: var(--rc-orange-light); }
.rc-b--team { grid-column: span 2; grid-row: span 2; padding: 0; background: #0b1530; }
.rc-b--team img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-b--team .rc-b__over { position: relative; margin-top: auto; padding: 28px; background: linear-gradient(transparent, rgba(13,26,56,.92) 45%); display: grid; gap: 8px; }
.rc-b--team h3 { font-size: 30px; }
.rc-b--orange { background: linear-gradient(135deg, #FF6B1A, #FF8A3D); color: var(--rc-deep); border: 0; }
.rc-b--orange h3, .rc-b--orange .rc-b__big, .rc-b--orange .rc-b__go, .rc-b--orange .rc-b__k { color: var(--rc-deep); }
.rc-b--light { background: #fff; color: var(--rc-ink); }
.rc-b--light h3 { color: var(--rc-navy); }
.rc-b--light .rc-b__k { color: var(--rc-orange-text); }
.rc-b--light .rc-b__go { color: var(--rc-orange-text); }
.rc-b--q img { position: absolute; right: -14px; bottom: -10px; width: 150px; height: auto; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.rc-b--q:hover img { transform: rotate(-8deg) translateY(-8px) scale(1.06); }
.rc-b .rc-stars { color: #FFB27F; font-size: 26px; letter-spacing: 3px; }
@media (max-width: 900px) { .rc-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rc-bento { grid-template-columns: 1fr; } .rc-b--team { grid-column: auto; min-height: 380px; } }

/* ---------- 8. QIKCEE pop-up: springs in and waves ---------- */
.rc-qpop:not([hidden]) { animation: rc-pop .7s cubic-bezier(.3,1.5,.5,1) both; box-shadow: 0 24px 60px -20px rgba(2,36,74,.55); }
@keyframes rc-pop { from { opacity: 0; transform: translateY(40px) scale(.9); } }
.rc-qpop__head img { animation: rc-wave 2.4s ease-in-out 1s 2; transform-origin: 60% 90%; }
@keyframes rc-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-10deg); } }

/* ---------- 9. Stat numbers count up; facts pop ---------- */
.rc-stat__num { display: inline-block; }

/* ---------- Calm mode for people who prefer less motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.rc-reveal, .rc-enter { opacity: 1 !important; transform: none !important; }
	.rc-reveal-img img { clip-path: none !important; }
	.rc-fibre-fx { display: none; }
	@view-transition { navigation: none; }
}

/* ---------- 10. "What we can help with": photo + icon bento (stores page) ---------- */
.rc-help { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 16px; margin-top: 28px; }
.rc-h { position: relative; overflow: hidden; border-radius: 18px; padding: 22px; background: #fff; border: 1px solid var(--rc-line); color: var(--rc-ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.rc-h h3 { margin: 0; font-size: 18px; line-height: 1.25; color: var(--rc-navy); }
.rc-h p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--rc-slate); }
.rc-h .rc-h__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #FF6B1A, #FF9A55); color: #fff; margin-bottom: 6px; box-shadow: 0 10px 20px -10px rgba(255,107,26,.8); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.rc-h .rc-h__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc-h:hover .rc-h__ico { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.rc-h:nth-child(3n) .rc-h__ico { background: linear-gradient(135deg, #02244A, #2B5A93); box-shadow: 0 10px 20px -10px rgba(2,36,74,.8); }
.rc-h--photo { padding: 0; border: 0; color: #fff; justify-content: flex-end; min-height: 240px; background: var(--rc-deep); }
.rc-h--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.rc-h--photo:hover img { transform: scale(1.06); }
.rc-h--photo .rc-h__over { position: relative; padding: 24px; background: linear-gradient(transparent, rgba(13,26,56,.9) 50%); display: grid; gap: 6px; }
.rc-h--photo h3 { color: #fff; font-size: 24px; }
.rc-h--photo p { color: #E6ECF5; }
.rc-h__tag { justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--rc-orange); color: var(--rc-deep); padding: 4px 9px; border-radius: 99px; }
.rc-h__go { font-weight: 700; color: var(--rc-orange-light); margin-top: 2px; }
.rc-h--big { grid-column: span 2; grid-row: span 2; }
.rc-h--big h3 { font-size: 32px; }
.rc-h--wide { grid-column: span 2; }
.rc-h--cta { grid-column: span 2; background: linear-gradient(135deg, #FF6B1A, #FF8A3D); border: 0; color: var(--rc-deep); justify-content: center; padding-right: 170px; }
.rc-h--cta h3, .rc-h--cta p { color: var(--rc-deep); }
.rc-h--cta h3 { font-size: 24px; }
.rc-h--cta img { position: absolute; right: 8px; bottom: -14px; width: 160px; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.rc-h--cta:hover img { transform: rotate(-6deg) translateY(-6px); }
@media (max-width: 900px) { .rc-help { grid-template-columns: repeat(2, 1fr); } .rc-h--cta { padding-right: 130px; } .rc-h--cta img { width: 120px; } }
@media (max-width: 560px) { .rc-help { grid-template-columns: 1fr 1fr; gap: 12px; } .rc-h--big, .rc-h--wide, .rc-h--cta { grid-column: span 2; } .rc-h--big { grid-row: auto; min-height: 320px; } .rc-h { padding: 16px; } .rc-h h3 { font-size: 16px; } .rc-h p { font-size: 13px; } }

/* Fixes from preview review */
.rc-b--light p { color: var(--rc-ink); }
.rc-b--light .rc-stars { color: var(--rc-orange); }
.rc-b--q { padding-right: 118px; }
.rc-b--q img { width: 118px; right: -6px; }
.wp-block-post-content [id] { scroll-margin-top: 110px; }
