/* Web Lift — homepage sections. Shared bits in base.css. */

/* ---------- Hero ---------- */
.hero { position: relative; max-width: 920px; margin: 0 auto; padding: var(--space-9) var(--space-5) var(--space-6); text-align: center; }
.hero__title { font-size: var(--fs-hero); font-weight: var(--fw-black); line-height: 1.18; letter-spacing: -0.02em; }
.hero__lead { font-size: var(--fs-lead); color: var(--color-muted); margin: var(--space-5) auto var(--space-6); max-width: 580px; }
.hero__lead strong { color: var(--color-text); }
.hero__cta { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }
.hero__trust { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-6); font-size: var(--fs-small); flex-wrap: wrap; justify-content: center; }
.trust-google { font-size: 1rem; }
.avatar { position: absolute; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow-card); }
.avatar--1 { top: 2%;  left: -13%; width: 112px; height: 112px; }
.avatar--2 { top: 7%; right: -14%; width: 128px; height: 128px; } /* clears the sticky nav bar */
.avatar--3 { top: 74%; left: -11%; width: 100px; height: 100px; }
.avatar--4 { top: 78%; right: -12%; width: 116px; height: 116px; }

/* row of example site cards under hero */
.examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); max-width: var(--maxw); margin: var(--space-7) auto 0; padding: 0 var(--space-5); }
.examples__card { aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; position: relative; box-shadow: var(--shadow-card); color: #fff; display: flex; align-items: flex-end; padding: var(--space-4); font-weight: var(--fw-semi); }
.examples__card span { position: relative; z-index: 2; }
.examples__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,0.55)); }
.examples__card { background-size: cover; background-position: center; }
.examples__card--1 { background-image: linear-gradient(rgba(46,139,255,0.35), rgba(19,48,107,0.65)), url('https://loremflickr.com/640/480/builder,construction?lock=11'); }
.examples__card--2 { background-image: linear-gradient(rgba(19,48,107,0.4), rgba(14,28,58,0.7)), url('https://loremflickr.com/640/480/cafe,coffee?lock=22'); }
.examples__card--3 { background-image: linear-gradient(rgba(87,166,255,0.3), rgba(46,139,255,0.6)), url('https://loremflickr.com/640/480/gym,fitness?lock=33'); }
.examples__card--4 { background-image: linear-gradient(rgba(27,63,135,0.4), rgba(14,28,58,0.7)), url('https://loremflickr.com/640/480/salon,clinic?lock=44'); }

/* ---------- Trust 3-cards ---------- */
.usp { padding: var(--space-8) 0 var(--space-7); }
.usp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.usp__card { border-radius: var(--radius-card); padding: var(--space-6); min-height: 220px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3); }
.usp__card h3 { font-size: var(--fs-h3); }
.usp__card--dark  { background: var(--color-navy); color: #fff; }
.usp__card--royal { background: var(--color-royal); color: #fff; }
.usp__card--white { background: var(--color-surface); color: var(--color-text); }
.usp__card p { opacity: 0.85; font-size: 0.95rem; }

/* ---------- Alternating feature rows ---------- */
.feature { padding: var(--space-7) 0; }
.feature__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; margin-bottom: var(--space-8); }
.feature__row:nth-child(even) .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3; background: linear-gradient(135deg,#eef1ff,#fff); display: flex; align-items: center; justify-content: center; }
.feature__media .mockwin { width: 80%; }
.feature h3 { font-size: var(--fs-h2); font-weight: var(--fw-black); margin-bottom: var(--space-3); }
.feature p { color: var(--color-muted); margin-bottom: var(--space-5); }
.feature__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.feature__list li::before { content: "✦ "; color: var(--color-royal); }

/* "Logo draws itself, then assembles" — the Logos & branding feature tile. Pure
   SVG/CSS, no images. On one shared 6.5s clock: the centred mark's rounded-square
   + arrow draw on (stroke-dashoffset, pathLength=1 normalises every shape to 0→1),
   brand colour fills in, then the mark slides LEFT while the "Web Lift" wordmark
   emerges from the RIGHT to complete the lockup; it holds, fades, and restarts.
   Navy panel so the light mark + wordmark pop. */
.feature__media--brand { background: var(--grad-deep); }
.brandanim { width: 80%; height: 72%; overflow: visible; animation: ba-fade 6.5s ease infinite; }
.brandanim__mark  { animation: ba-shift 6.5s ease infinite; }
.brandanim__box   { fill: var(--color-royal); fill-opacity: 0; stroke: var(--color-sky); stroke-width: 3; stroke-dasharray: 1; animation: ba-box-draw 6.5s ease infinite, ba-fill 6.5s ease infinite; }
.brandanim__arrow { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; animation: ba-arrow-draw 6.5s ease infinite, ba-fill 6.5s ease infinite; }
.brandanim__word  { font-family: var(--font-sans); opacity: 0; animation: ba-word-in 6.5s ease infinite; }

@keyframes ba-box-draw   { 0% { stroke-dashoffset: 1; } 16% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes ba-arrow-draw { 0%, 13% { stroke-dashoffset: 1; } 32% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes ba-fill       { 0%, 32% { fill-opacity: 0; } 44% { fill-opacity: 1; } 100% { fill-opacity: 1; } }
/* mark stays centred through draw+fill, then slides left to make room for the word */
@keyframes ba-shift      { 0%, 46% { transform: translateX(0); } 62%, 100% { transform: translateX(-100px); } }
/* word hidden through draw+fill, then slides in from the right as the mark clears */
@keyframes ba-word-in    { 0%, 46% { opacity: 0; transform: translateX(34px); } 62%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes ba-fade       { 0%, 88% { opacity: 1; } 97%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .brandanim, .brandanim__mark, .brandanim__box, .brandanim__arrow, .brandanim__word { animation: none; }
  .brandanim__box, .brandanim__arrow { fill-opacity: 1; }
  .brandanim__mark { transform: translateX(-100px); }
  .brandanim__word { opacity: 1; }
}

/* Device showcase: a desktop browser card (the website) with a phone mockup
   overlapping front-right (the same site on mobile). Both flick through 3 real
   examples in sync; the desktop bar dots double as a progress indicator
   (synced in js/showcase.js). Desktop + mobile crops live in assets/. */
.feature__media.showcase { background: transparent; box-shadow: none; overflow: visible; position: relative; aspect-ratio: auto; display: block; padding: 0 8% var(--space-6) 0; }
.showcase__desktop { width: 80%; background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; }
.showcase__bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef1f8; }
/* The three dots double as a progress indicator: the active example's dot
   stretches into a pill and fills royal left->right over the slide duration, so
   a viewer sees each example "load" and knows to wait for the next. Synced in
   js/showcase.js (DURATION must match the dotfill animation below). */
.showcase__bar span { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #cfd6e6; overflow: hidden; transition: width .45s var(--ease); }
.showcase__bar span.is-on { width: 30px; border-radius: 5px; }
.showcase__bar span.is-on::after { content: ""; position: absolute; inset: 0; background: var(--color-royal); width: 0; }
.showcase__bar span.filling::after { animation: dotfill 2.8s linear forwards; }
@keyframes dotfill { from { width: 0; } to { width: 100%; } }
.showcase__screens { position: relative; background: #fff; }
.showcase__desktop .showcase__screens { aspect-ratio: 556 / 604; }
.showcase__screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.8s var(--ease); }
.showcase__screen.is-active { opacity: 1; }
.showcase__phone { position: absolute; bottom: 0; right: 0; width: 32%; background: #0E1C3A; border-radius: 26px; box-shadow: var(--shadow-card); padding: 6px; }
.showcase__phone .showcase__screens { aspect-ratio: 260 / 604; border-radius: 20px; overflow: hidden; }

/* ---------- What makes us better ---------- */
.better { padding: var(--space-8) 0; }
.better__feature { background: var(--grad-deep); color:#fff; border-radius: var(--radius-card); padding: var(--space-8); text-align:center; max-width:760px; margin:0 auto var(--space-7); }
.better__feature h3 { font-size: var(--fs-h2); font-weight: var(--fw-black); }
.better__feature p { opacity:.8; margin-top: var(--space-3); }
.better__cols { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.better__cols h4 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.better__cols p { color: var(--color-muted); }

/* ---------- Trust band (NHS-style) ---------- */
.band { background: var(--grad-deep); color:#fff; border-radius: var(--radius-card); text-align:center; padding: var(--space-9) var(--space-5); margin: var(--space-7) auto; max-width: var(--maxw); }
.band h2 { font-size: var(--fs-h2); font-weight: var(--fw-black); }
.band__logos { display:flex; gap: var(--space-7); justify-content:center; flex-wrap:wrap; margin-top: var(--space-6); opacity:.85; font-weight:var(--fw-bold); letter-spacing:1px; }

/* ---------- Before/After slider ---------- */
.ba-section { padding: var(--space-7) 0; text-align:center; }
.ba { position: relative; max-width: 760px; margin: var(--space-6) auto 0; aspect-ratio: 16/10; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); user-select: none; touch-action: none; }
/* Image comparison: both images fill the box; the BEFORE layer is clipped from
   the right by the handle position so the two line up pixel-for-pixel. */
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.mock { display: flex; flex-direction: column; }
.mock--new { background: linear-gradient(160deg,#eef1ff,#fff); padding: 14px; }
.mock__bar { display: flex; gap: 6px; padding: 6px 4px; }
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d6dcef; }
.mock__bar span:first-child { background: var(--color-sky); }
.mock__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px 8px; }
.mock__hero { height: 46%; border-radius: 14px; background: linear-gradient(135deg,var(--color-royal),var(--color-sky)); }
.mock__row { display: flex; gap: 10px; flex: 1; }
.mock__row i { flex: 1; border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); }
.mock__cta { height: 34px; width: 140px; border-radius: var(--radius-pill); background: var(--color-royal); margin: 0 auto; }
.mock--old { background: #fff; font-family: "Times New Roman", Times, serif; }
.mock__oldbar { background: #c9c9c9; color: #333; font-size: 12px; padding: 6px 10px; border-bottom: 2px solid #999; }
.mock__oldbody { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mock__oldhead { height: 26px; width: 70%; background: #7a1fa0; }
.mock__oldline { height: 12px; background: #bdbdbd; }
.mock__oldline.short { width: 55%; }
.mock__oldblock { height: 70px; background: repeating-linear-gradient(45deg,#e0e0e0,#e0e0e0 8px,#eee 8px,#eee 16px); border: 1px solid #ccc; }
.mock__tag { position: absolute; top: 12px; padding: 4px 12px; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 13px; font-weight: var(--fw-bold); color: #fff; }
.mock__tag--new { right: 12px; background: var(--color-royal); }
.mock__tag--old { left: 12px; background: #555; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); cursor: ew-resize; z-index: 5; }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--color-royal); font-weight: var(--fw-bold); letter-spacing: 2px; }
.ba__hint { color: var(--color-muted); font-size: var(--fs-small); margin-top: var(--space-4); }

/* ---------- Diagonal stripe divider ---------- */
.stripe { height: 90px; background: linear-gradient(100deg, var(--color-navy) 0 33%, var(--color-royal) 33% 66%, var(--color-soft) 66%); transform: skewY(-2deg); margin: var(--space-7) 0; }

/* ---------- Packages ---------- */
.packages { padding: var(--space-7) 0; }
.packages__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 1000px; margin: 0 auto; }
.price-card { border-radius: var(--radius-card); padding: var(--space-7); }
.price-card hr { border: none; border-top: 1px solid; opacity: 0.25; margin: var(--space-5) 0; }
.price-card--royal { background: var(--color-royal); color: #fff; }
.price-card--white { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-card); }
.price-card__name { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
.price-card__from { font-size: var(--fs-small); letter-spacing: 2px; opacity: 0.7; }
.price-card__num { font-size: var(--fs-price); font-weight: var(--fw-black); line-height: 1; }
.price-card__for { font-weight: var(--fw-medium); margin-bottom: var(--space-5); }
.price-card__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.price-card__list li { font-size: 1.05rem; }
.packages__more { background:#11131a; color:#fff; border-radius: var(--radius-card); padding: var(--space-6); display:flex; align-items:center; justify-content:space-between; gap:var(--space-5); max-width:1000px; margin: var(--space-5) auto 0; flex-wrap:wrap; }

/* ---------- Stats ---------- */
.stats { text-align:center; padding: var(--space-8) 0; }
.stats h2 { font-size: var(--fs-h2); font-weight: var(--fw-black); }

/* ---------- Case studies ---------- */
.cases { padding: var(--space-8) 0; }
.cases__sub { text-align:center; color: var(--color-muted); max-width: 600px; margin: calc(-1 * var(--space-5)) auto var(--space-7); }
.case-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--space-5); }
.case-card { background: var(--color-surface); border-radius: var(--radius-card); overflow:hidden; box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease); }
.case-card:hover { transform: translateY(-6px); }
.case-card__shot { aspect-ratio: 16/11; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:var(--fw-bold); font-size:1.3rem; background-size:cover; background-position:center; background-color:var(--color-navy); text-shadow:0 1px 8px rgba(0,0,0,0.4); }
.case-card__body { padding: var(--space-5); }
.case-card__tag { font-size: var(--fs-small); color: var(--color-royal); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: 1px; }
.case-card__body h3 { font-size: var(--fs-h3); margin: var(--space-2) 0; }
.case-card__body p { color: var(--color-muted); font-size: 0.95rem; }
.case-card__result { margin-top: var(--space-4); font-weight: var(--fw-bold); color: var(--color-text); }

/* ---------- Auto-scroll marquee ---------- */
.marquee { overflow: hidden; padding: var(--space-6) 0; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--space-5); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; width: 340px; aspect-ratio: 16/10; border-radius: var(--radius-card); box-shadow: var(--shadow-card); display:flex; align-items:flex-end; padding: var(--space-4); color:#fff; font-weight: var(--fw-semi); position: relative; overflow: hidden; background-size: cover; background-position: center; background-color: var(--color-navy); }
.marquee__item::after { content:""; position:absolute; inset:0; background:linear-gradient(rgba(19,48,107,0.25), rgba(14,28,58,0.7)); }
.marquee__item span { position: relative; z-index: 2; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--space-5) / 2)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; padding: var(--space-7) var(--space-5); }
.faq__list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq details { background: var(--color-surface); border-radius: var(--radius-sm); padding: var(--space-5); box-shadow: var(--shadow-soft); cursor: pointer; }
.faq summary { font-weight: var(--fw-semi); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--color-royal); font-weight: var(--fw-black); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: var(--space-3); color: var(--color-muted); }

/* ---------- Final CTA ---------- */
.cta { padding: var(--space-8) var(--space-5); }
.cta__inner { max-width: 560px; margin: 0 auto; text-align: center; background: var(--color-royal); color: #fff; border-radius: var(--radius-card); padding: var(--space-8) var(--space-6); }
.cta__inner h2 { font-size: var(--fs-h2); font-weight: var(--fw-black); }
.cta__inner > p { margin: var(--space-3) 0 var(--space-6); opacity: 0.9; }
.cta__form { display: flex; flex-direction: column; gap: var(--space-3); }
.cta__form input, .cta__form textarea { font-family: var(--font-sans); font-size: 1rem; padding: var(--space-4); border: none; border-radius: var(--radius-sm); background: #fff; color: var(--color-text); }
.cta__small { margin-top: var(--space-4); font-size: var(--fs-small); opacity: 0.85; }

@media (max-width: 820px) {
  .examples { grid-template-columns: 1fr 1fr; }
  .usp__grid, .better__cols, .packages__grid, .case-grid { grid-template-columns: 1fr; }
  .feature__row { grid-template-columns: 1fr; }
  .feature__row:nth-child(even) .feature__media { order: 0; }
  .avatar { display: none; }
  .marquee__item { width: 240px; }
}
