/* =========================================================
   Werzuo Digital — Web Design & Development page
   (loaded after style.css)
   ========================================================= */

/* ---------- Hero ---------- */
.wd-hero { position: relative; overflow: hidden; padding-top: clamp(130px, 14vw, 170px); padding-bottom: clamp(48px, 6vw, 80px); }
.wd-hero__inner { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.breadcrumb a { display: inline-flex; align-items: center; gap: .35rem; color: var(--navy); transition: color .25s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--red); }
.wd-hero__title { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 1.3rem; }
.wd-hero__title .hl { white-space: normal; }
.wd-hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.12rem); color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.wd-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.75rem; }

.wd-hero__visual { position: relative; padding: 8% 0 6%; }
.wd-hero__ring {
  position: absolute; inset: 0 6% 4% 10%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(236,42,53,.12), transparent 62%);
}
.wd-hero__ring::before, .wd-hero__ring::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px dashed var(--navy-100); }
.wd-hero__ring::before { inset: 4%; animation: spin 60s linear infinite; }
.wd-hero__ring::after { inset: 18%; border-style: solid; border-color: var(--red-100); }
@keyframes spin { to { transform: rotate(360deg); } }
.duo--hero { filter: drop-shadow(0 30px 40px rgba(26,26,78,.18)); }

.wd-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: .7rem 1rem; box-shadow: var(--shadow);
  font-size: .82rem; line-height: 1.3; white-space: nowrap;
}
.wd-float strong { display: block; color: var(--navy); font-size: .92rem; }
.wd-float small { color: var(--muted); display: block; }
.wd-float--speed { left: -4%; bottom: 4%; }
.wd-float--mobile { right: -2%; top: 2%; }
.wd-float--seo { left: 2%; top: 4%; }
.vitals { display: flex; gap: .35rem; margin-top: .3rem; }
.vitals span { font-size: .68rem; font-weight: 700; padding: .18rem .5rem; border-radius: 99px; background: #e7f8f1; color: #078a5f; display: inline-flex; align-items: center; gap: .25rem; }
.vitals span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- Client marquee ---------- */
.wd-clients { padding: clamp(16px, 3vw, 28px) 0 0; }
.wd-clients__label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }
.wd-marquee {
  display: flex; overflow: hidden; gap: 0; padding: 1.1rem 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.wd-marquee__track { display: flex; flex: none; gap: 0; margin: 0; padding: 0; list-style: none; animation: marquee 38s linear infinite; }
.wd-marquee:hover .wd-marquee__track { animation-play-state: paused; }
.wd-marquee__track li {
  display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--navy); white-space: nowrap; letter-spacing: -.01em;
}
.wd-marquee__track li::after { content: "✦"; color: var(--red); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- What we build ---------- */
.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.build-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.build-card::after { /* red sweep bar */
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.build-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.build-card:hover::after { transform: scaleX(1); }
.build-card__num { position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--navy-100); }
.build-card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--red-50); color: var(--red); margin-bottom: 1.25rem; transition: background .3s, color .3s, transform .5s var(--ease); }
.build-card:hover .build-card__icon { background: var(--red); color: #fff; transform: rotate(-8deg); }
.build-card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.build-card p { color: var(--muted); font-size: .95rem; margin: 0; }

.build-card--wide {
  grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(18px, 3vw, 36px);
  background: linear-gradient(100deg, var(--red-50), #fff 60%); border-color: var(--red-100);
  padding-right: clamp(24px, 6vw, 110px);
}
.build-card--wide .build-card__icon { margin: 0; flex: none; width: 70px; height: 70px; font-size: 1.9rem; }
.build-card--wide .build-card__body { flex: 1; }
.build-card--wide .build-card__body p { max-width: 620px; }
.build-card--wide .btn { flex: none; }
.build-card--wide .build-card__num { top: 50%; transform: translateY(-50%); font-size: 3.4rem; -webkit-text-stroke-color: var(--red-100); }

.build-card--feature {
  grid-row: span 2; display: flex; flex-direction: column;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 100%); border-color: transparent; color: rgba(255,255,255,.78);
}
.build-card--feature h3 { color: #fff; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.build-card--feature p { color: rgba(255,255,255,.75); margin-bottom: 1.25rem; font-size: 1rem; }
.build-card--feature .build-card__icon { background: rgba(255,255,255,.1); color: #fff; }
.build-card--feature .build-card__num { -webkit-text-stroke-color: rgba(255,255,255,.18); }
.build-card__art { margin-top: auto; position: relative; height: 150px; }
.build-card__art span { position: absolute; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: transform .7s var(--ease); }
.build-card__art span:nth-child(1) { left: 0; bottom: 0; width: 62%; height: 120px; }
.build-card__art span:nth-child(1)::before { content: ""; position: absolute; left: 12px; right: 12px; top: 14px; height: 40px; border-radius: 8px; background: linear-gradient(120deg, var(--red), #ff7a5c); opacity: .85; }
.build-card__art span:nth-child(1)::after { content: ""; position: absolute; left: 12px; top: 66px; width: 60%; height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); box-shadow: 0 16px 0 rgba(255,255,255,.15); }
.build-card__art span:nth-child(2) { right: 4%; bottom: 10px; width: 28%; height: 140px; border-radius: 16px; }
.build-card__art span:nth-child(2)::before { content: ""; position: absolute; inset: 10px 10px auto; height: 54px; border-radius: 9px; background: rgba(255,255,255,.18); }
.build-card__art span:nth-child(3) { left: 50%; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--red); border: 0; display: grid; place-items: center; box-shadow: var(--shadow-red); }
.build-card--feature:hover .build-card__art span:nth-child(1) { transform: translateY(-6px); }
.build-card--feature:hover .build-card__art span:nth-child(2) { transform: translateY(-12px); }
.build-card--feature:hover .build-card__art span:nth-child(3) { transform: scale(1.12) rotate(20deg); }

/* ---------- Features (dark) ---------- */
.wd-features {
  background: radial-gradient(ellipse at 0% 0%, rgba(236,42,53,.22), transparent 45%), linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: rgba(255,255,255,.75); border-radius: var(--radius-xl); margin-inline: clamp(0px, 1.5vw, 20px);
  position: relative; overflow: hidden;
}
.wd-features::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.6px); background-size: 24px 24px;
  mask-image: linear-gradient(200deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.wd-features__inner { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.wd-features__head { position: sticky; top: 120px; }
.wd-features__head > p { font-size: 1.05rem; color: rgba(255,255,255,.72); }
.wd-stack { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.wd-stack__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .9rem; }
.wd-stack ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.wd-stack li { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: #fff; padding: .45rem .85rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .3s, border-color .3s; }
.wd-stack li:hover { background: rgba(236,42,53,.25); border-color: rgba(236,42,53,.5); }
.wd-stack li i { font-size: 1.05rem; color: #ff8a90; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat {
  padding: 1.6rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .4s, border-color .4s, transform .45s var(--ease);
}
.feat:nth-child(even) { transform: translateY(28px); }
.feat:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.feat__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: var(--red); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 10px 24px -8px rgba(236,42,53,.7); }
.feat h3 { color: #fff; font-size: 1.15rem; margin-bottom: .4rem; }
.feat p { margin: 0; font-size: .93rem; color: rgba(255,255,255,.68); }

/* ---------- Process timeline ---------- */
.timeline { --progress: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; height: 3px; border-radius: 3px; }
.timeline::before { background: var(--navy-100); }
.timeline::after { background: linear-gradient(90deg, var(--red), #ff7a5c); transform-origin: left; transform: scaleX(var(--progress)); right: 10%; }
.tl-step { position: relative; z-index: 1; text-align: center; padding: 0 .5rem; }
.tl-step__dot {
  width: 70px; height: 70px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; background: #fff; color: var(--navy); border: 2px solid var(--navy-100);
  box-shadow: 0 0 0 8px #fff; transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease);
}
.tl-step.is-on .tl-step__dot { background: var(--red); color: #fff; border-color: var(--red); }
.tl-step:hover .tl-step__dot { transform: translateY(-4px) scale(1.06); }
.tl-step__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .14em; color: var(--red); margin-bottom: .35rem; }
.tl-step h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.tl-step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- FAQ tweak ---------- */
.page-web .faq { padding-top: 0; }
.faq__lead { color: var(--muted); }

/* ---------- CTA ---------- */
.wd-cta-wrap { padding-top: 0; }
.wd-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--red) 0%, #c81e2a 100%); color: #fff;
}
.wd-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .8rem; }
.wd-cta p { margin: 0; opacity: .9; font-size: 1.05rem; max-width: 560px; }
.wd-cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: .9rem; }
.wd-cta__wa { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; padding: .95rem 1.6rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); transition: background .3s, border-color .3s; }
.wd-cta__wa:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.wd-cta__wa i { font-size: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .wd-float--speed { left: 0; }
  .wd-float--mobile { right: 0; }
}
@media (max-width: 991px) {
  .wd-hero__inner { grid-template-columns: 1fr; }
  .wd-hero__visual { max-width: 680px; width: 100%; margin-inline: auto; }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .build-card--feature { grid-row: auto; grid-column: span 2; }
  .build-card__art { display: none; }
  .wd-features__inner { grid-template-columns: 1fr; }
  .wd-features__head { position: static; }
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 34px; right: auto; width: 3px; height: auto; }
  .timeline::after { transform: scaleY(var(--progress)); transform-origin: top; }
  .tl-step { display: grid; grid-template-columns: 70px 1fr; column-gap: 1.25rem; text-align: left; padding: 0 0 2rem; }
  .tl-step__dot { grid-row: span 3; margin: 0; }
  .tl-step:last-child { padding-bottom: 0; background: #fff; } /* hides the line past the final dot */
  .tl-step__num { margin-top: .4rem; }
  .wd-cta { grid-template-columns: 1fr; }
  .wd-cta__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat:nth-child(even) { transform: none; }
}
@media (max-width: 575px) {
  .wd-hero__title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .wd-float { font-size: .72rem; padding: .5rem .7rem; gap: .5rem; border-radius: 12px; }
  .wd-float .fc-icon { width: 30px; height: 30px; font-size: .95rem; border-radius: 9px; }
  .wd-float strong { font-size: .8rem; }
  .wd-float--speed { left: 0; bottom: -2%; }
  .wd-float--mobile { right: 0; top: -2%; }
  .wd-float--seo { display: none; }
  .vitals span { font-size: .6rem; padding: .12rem .4rem; }
  .build-grid { grid-template-columns: 1fr; }
  .build-card--feature { grid-column: auto; }
  .build-card--wide { flex-direction: column; align-items: flex-start; padding-right: clamp(24px, 2.6vw, 34px); }
  .build-card--wide .build-card__num { top: 18px; transform: none; font-size: 2.6rem; }
  .build-card--wide .btn { width: 100%; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; width: 100%; }
  .filter { text-align: center; padding: .6rem .5rem; font-size: .84rem; }
  .wd-cta__actions .btn, .wd-cta__wa { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .is-autoscroll, .wd-marquee__track, .wd-hero__ring::before { animation: none !important; }
}
