/* ═══════════════════════════════════════════════
   W3bkit Solutions: Website Designs gallery
   Tokens and shared components come from style.css.
   The previews are the page: everything else stays compact and quiet.
   ═══════════════════════════════════════════════ */

/* ── Compact hero (this page only; style.css sets the default) ── */
.page-hero { padding: 108px 0 64px; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-hero > .container > p { font-size: 1.02rem; }
.page-hero::after { height: 48px; }

/* ── Filters: chips and search share one row ── */
.designs-section { padding-top: 36px; }
.designs-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin-bottom: 14px; }
.designs-chips { order: 1; border: 0; min-width: 0; min-inline-size: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 560px; }
.designs-filters > * { min-width: 0; } /* fieldsets default to min-content width, which overflows on phones */
.chip {
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--gray-700); cursor: pointer;
  padding: 7px 15px; border-radius: 50px; background: var(--white); border: 1.5px solid var(--gray-200);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.designs-search { order: 2; display: flex; gap: 8px; flex: 0 1 380px; } /* first in the DOM so Enter triggers Search */
.designs-search input {
  flex: 1; min-width: 0; width: 100%; padding: 9px 14px; font: inherit; font-size: .92rem; color: var(--gray-900);
  background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 10px;
  transition: border-color var(--transition);
}
.designs-search input:hover { border-color: var(--gray-500); }
.designs-search input:focus { border-color: var(--blue); }
.designs-search .btn { flex-shrink: 0; }

.designs-count { font-size: .86rem; color: var(--gray-500); margin-bottom: 22px; }

/* ── Design previews ── */
.designs-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.design-card[hidden] { display: none; }

/* The frame shows the top of the full-page screenshot; hover or keyboard focus scrolls through the whole page. */
.design-shot {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: var(--gray-100);
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
a.design-shot:hover { box-shadow: var(--shadow-lg); }
.shot-desktop {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  transition: object-position 1.2s cubic-bezier(.4,0,.2,1);
}
a.design-shot:hover .shot-desktop,
a.design-shot:focus-visible .shot-desktop { object-position: 50% 100%; transition-duration: 7s; }
.shot-phone {
  position: absolute; right: 4%; bottom: 6%; width: 19%; height: auto; aspect-ratio: 300 / 650;
  object-fit: cover; object-position: top;
  border: 3px solid var(--navy); border-radius: 14px; background: var(--white);
  box-shadow: 0 16px 40px rgba(11,29,58,.28);
}
.design-shot--pending { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 24px; }
.design-shot-name { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.design-shot-note { font-size: .82rem; color: var(--gray-700); }

.design-info { padding: 18px 4px 0; }
.design-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 8px; }
.design-head h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.design-category { font-size: .86rem; font-weight: 600; color: var(--blue); }
.design-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.design-demo-link { font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.design-demo-link:hover { color: var(--navy); }
.design-demo-status { font-size: .86rem; color: var(--gray-500); }
.design-summary { font-size: .95rem; color: var(--gray-700); line-height: 1.65; max-width: 60ch; }
.design-features { font-size: .86rem; color: var(--gray-500); margin-top: 4px; }

/* ── Empty state ── */
.designs-empty { text-align: center; padding: 48px 24px; border: 1.5px dashed var(--gray-200); border-radius: var(--radius-lg); background: var(--white); }
.designs-empty[hidden] { display: none; }
.designs-empty h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 6px; }
.designs-empty p { color: var(--gray-500); margin-bottom: 18px; }

/* ── How it works (a real sequence, so it is numbered) ── */
.designs-process { background: var(--white); }
.designs-process .section-title { margin-bottom: 40px; }
.process-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-steps li { counter-increment: step; border-top: 2px solid var(--gray-200); padding-top: 18px; }
.process-steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.process-steps h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy); margin-bottom: 6px; }
.process-steps p { font-size: .92rem; color: var(--gray-500); }

/* ── Why W3bkit ── */
.designs-why .section-title { margin-bottom: 36px; }
.why-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-points h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.why-points p { font-size: .94rem; color: var(--gray-700); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-hero h1 { font-size: 2.2rem; }
  .designs-grid { gap: 44px 28px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .why-points { grid-template-columns: 1fr; gap: 24px; max-width: 640px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 96px 0 52px; }
  .page-hero h1 { font-size: 1.8rem; }
  .designs-section { padding-top: 28px; }
  .designs-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .designs-search { order: 0; flex-basis: auto; }
  .designs-chips { flex-basis: auto; flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 6px; scrollbar-width: none; }
  .chip { flex-shrink: 0; }
  .designs-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.6rem; }
  .designs-search .btn { width: auto; } /* style.css makes every .btn full width here */
  .design-head { align-items: flex-start; }
  .design-actions { width: 100%; }
  .design-actions .btn { width: auto; flex: 1; }
}
.process-steps p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
