/* ══════════════════════════════════════════════════════════════
   PROJEKTI — Portfolio / Case Studies page styles
   Loads after: style.css → service-pages.css
══════════════════════════════════════════════════════════════ */

/* ── PAGE HEADER ──────────────────────────────────────────── */
.proj-header {
  padding: 120px 0 64px;
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 60%);
  border-bottom: 1px solid var(--gray-line);
}
.proj-header-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.proj-header-kicker {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.proj-header-title {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.1; color: var(--dark);
  letter-spacing: -.02em; margin-bottom: 16px;
}
.proj-header-sub {
  font-size: 1.06rem; color: var(--gray-mid); line-height: 1.75; max-width: 480px;
}
.proj-header-stats {
  display: flex; gap: 0; flex-shrink: 0;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-line);
  overflow: hidden;
}
.proj-hstat {
  padding: 20px 28px; text-align: center;
  border-right: 1px solid var(--gray-line);
}
.proj-hstat:last-child { border-right: none; }
.proj-hstat-val {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.proj-hstat-label { font-size: .76rem; color: var(--gray-mid); margin-top: 4px; }

/* ── FEATURED CASE ────────────────────────────────────────── */
.featured-case {
  padding: 80px 0;
  background: var(--white);
}
.featured-section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.featured-label-text {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mid);
}
.featured-label-line { flex: 1; height: 1px; background: var(--gray-line); }

.featured-inner {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--gray-line);
  box-shadow: 0 16px 48px rgba(65,117,252,.1);
  display: grid; grid-template-columns: 1fr 1fr;
}
.featured-screen-wrap {
  background: linear-gradient(135deg, #1a2744 0%, #0f172a 100%);
  padding: 32px; display: flex; flex-direction: column; justify-content: center;
  min-height: 480px;
}
.featured-browser {
  background: var(--white); border-radius: 10px;
  overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.featured-browser-bar {
  display: flex; align-items: center; gap: 6px;
  background: #f3f4f6; padding: 9px 12px;
}
.featured-browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.featured-browser-addr {
  flex: 1; background: #e5e7eb; border-radius: 4px;
  height: 14px; margin-left: 8px;
}
.featured-browser-body { padding: 0; }
.fb-hero {
  background: linear-gradient(120deg, #ec4899 0%, #be185d 100%);
  padding: 20px 16px;
}
.fb-hero-nav {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.fb-logo { width: 48px; height: 8px; background: rgba(255,255,255,.9); border-radius: 3px; }
.fb-nav-links { display: flex; gap: 8px; }
.fb-nav-link { width: 28px; height: 6px; background: rgba(255,255,255,.5); border-radius: 3px; }
.fb-hero-content {}
.fb-hero-tag { width: 56px; height: 6px; background: rgba(255,255,255,.5); border-radius: 10px; margin-bottom: 8px; }
.fb-hero-h1 { width: 70%; height: 10px; background: #fff; border-radius: 4px; margin-bottom: 5px; }
.fb-hero-h1b { width: 50%; height: 10px; background: rgba(255,255,255,.8); border-radius: 4px; margin-bottom: 12px; }
.fb-hero-sub { width: 80%; height: 5px; background: rgba(255,255,255,.5); border-radius: 3px; margin-bottom: 4px; }
.fb-hero-sub2 { width: 60%; height: 5px; background: rgba(255,255,255,.4); border-radius: 3px; margin-bottom: 14px; }
.fb-hero-btn { width: 88px; height: 20px; background: #fff; border-radius: 20px; }
.fb-services {
  padding: 12px 16px;
  display: flex; gap: 6px;
}
.fb-service-card {
  flex: 1; border-radius: 6px; padding: 8px 6px;
  background: var(--gray-bg); border: 1px solid var(--gray-line);
}
.fb-service-icon { width: 18px; height: 18px; border-radius: 4px; background: #fce7f3; margin-bottom: 5px; }
.fb-service-title { width: 70%; height: 5px; background: var(--gray); border-radius: 3px; margin-bottom: 4px; opacity: .4; }
.fb-service-line { width: 90%; height: 4px; background: var(--gray-line); border-radius: 3px; }
.fb-service-line2 { width: 60%; height: 4px; background: var(--gray-line); border-radius: 3px; margin-top: 2px; }
.fb-cta-bar {
  background: #ec4899; padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.fb-cta-text { width: 120px; height: 7px; background: rgba(255,255,255,.7); border-radius: 3px; }
.fb-cta-btn { width: 64px; height: 18px; background: #fff; border-radius: 10px; }

.featured-info {
  padding: 40px 40px; display: flex; flex-direction: column; justify-content: center;
}
.featured-industry {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fce7f3; color: #be185d;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 16px;
}
.featured-title {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  color: var(--dark); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 24px;
}
.featured-story { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.featured-story-item {}
.featured-story-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-mid); margin-bottom: 4px;
}
.featured-story-text { font-size: .9rem; color: var(--gray); line-height: 1.7; }
.featured-divider { height: 1px; background: var(--gray-line); margin: 4px 0; }
.featured-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px;
}
.featured-result {
  background: var(--gray-bg); border-radius: 10px;
  padding: 14px 10px; text-align: center;
}
.featured-result-val {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 800;
  color: var(--blue); margin-bottom: 3px;
}
.featured-result-val.green { color: #059669; }
.featured-result-label { font-size: .7rem; color: var(--gray-mid); line-height: 1.3; }
.featured-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-tech-tag {
  background: var(--blue-light); color: var(--blue);
  border-radius: 6px; padding: 4px 10px; font-size: .72rem; font-weight: 600;
}

/* ── PROJECTS GRID ────────────────────────────────────────── */
.proj-grid-section {
  padding: 80px 0;
  background: var(--gray-bg);
}
.proj-grid-header { margin-bottom: 40px; }
.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.proj-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.proj-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
}

/* Browser mockup wrapper */
.proj-card-screen {
  background: #1a2744; padding: 16px 16px 0;
}
.proj-screen-bar { display: flex; gap: 5px; padding: 8px 0 12px; }
.proj-screen-dot { width: 8px; height: 8px; border-radius: 50%; }
.proj-screen-inner {
  background: var(--white); border-radius: 6px 6px 0 0;
  overflow: hidden; min-height: 140px;
}
.proj-screen-hero {
  height: 64px; /* overridden per card with inline style for gradient */
}
.proj-screen-content { padding: 8px 10px; }
.proj-screen-row { display: flex; gap: 5px; margin-bottom: 5px; }
.proj-screen-block {
  height: 6px; border-radius: 3px; background: var(--gray-line);
}
.proj-screen-block.dark { background: #d1d5db; }
.proj-screen-cards { display: flex; gap: 5px; margin-top: 6px; }
.proj-screen-card {
  flex: 1; height: 28px; background: var(--gray-bg);
  border-radius: 4px; border: 1px solid var(--gray-line);
}
.proj-screen-btn {
  height: 14px; width: 56px; border-radius: 10px; margin-top: 6px;
}

.proj-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.proj-card-industry {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px; margin-bottom: 10px;
}
.proj-card-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 800;
  color: var(--dark); margin-bottom: 8px; line-height: 1.3;
}
.proj-card-desc {
  font-size: .84rem; color: var(--gray-mid); line-height: 1.7;
  margin-bottom: 16px; flex: 1;
}
.proj-card-metrics {
  display: flex; gap: 0; margin-bottom: 16px;
  border: 1px solid var(--gray-line); border-radius: 8px; overflow: hidden;
}
.proj-metric {
  flex: 1; padding: 10px 8px; text-align: center;
  border-right: 1px solid var(--gray-line);
}
.proj-metric:last-child { border-right: none; }
.proj-metric-val {
  font-family: var(--font-head); font-size: .92rem; font-weight: 800; color: var(--blue);
}
.proj-metric-val.green { color: #059669; }
.proj-metric-label { font-size: .66rem; color: var(--gray-mid); margin-top: 1px; }
.proj-card-footer { display: flex; justify-content: space-between; align-items: center; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.proj-tag {
  background: var(--gray-bg); border-radius: 4px;
  padding: 3px 8px; font-size: .68rem; font-weight: 600; color: var(--gray-mid);
}
.proj-link {
  display: flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 700; color: var(--blue);
  white-space: nowrap; text-decoration: none;
  transition: var(--transition);
}
.proj-link:hover { gap: 7px; }
.proj-link .lucide { width: 14px; height: 14px; }

/* Placeholder "coming soon" card */
.proj-card.proj-card-placeholder {
  border-style: dashed; background: transparent;
  align-items: center; justify-content: center;
  min-height: 320px; text-align: center; padding: 32px;
}
.proj-placeholder-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.proj-placeholder-icon .lucide { width: 24px; height: 24px; }
.proj-placeholder-title {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  color: var(--gray-mid); margin-bottom: 6px;
}
.proj-placeholder-sub { font-size: .82rem; color: var(--gray-line); }

/* ── PROJ CTA ─────────────────────────────────────────────── */
.proj-cta { padding: 96px 0; background: var(--white); }
.proj-cta-inner {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.proj-cta-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800; color: var(--dark); line-height: 1.2;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.proj-cta-title .accent { color: var(--blue); }
.proj-cta-sub {
  font-size: 1.02rem; color: var(--gray-mid); line-height: 1.75; margin-bottom: 36px;
}
.proj-cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── CATEGORY PILLS (header) ──────────────────────────────── */
.proj-header-cats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.proj-hcat {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: 50px; padding: 5px 14px;
  font-size: .8rem; color: var(--gray);
}
.proj-hcat strong { color: var(--blue); font-weight: 700; }
.proj-hcat .lucide { color: var(--gray-mid); }

/* ── MORE PROJECTS SECTION ────────────────────────────────── */
.proj-more {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-line);
}
.proj-more-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 8px;
}
.proj-more-line { flex: 1; height: 1px; background: var(--gray-line); }
.proj-more-label {
  font-size: .9rem; color: var(--gray-mid); white-space: nowrap;
  font-family: var(--font-head);
}
.proj-more-label strong { color: var(--dark); }
.proj-more-sub {
  font-size: .92rem; color: var(--gray-mid); text-align: center;
  margin-bottom: 36px; line-height: 1.7;
}

/* Mosaic tiles */
.proj-mosaic {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 56px;
}
.proj-tile {
  display: flex; flex-direction: column;
  background: var(--gray-bg); border-radius: 10px;
  border: 1.5px solid var(--gray-line);
  padding: 10px 16px 12px;
  transition: var(--transition);
  cursor: default;
  flex: 0 0 auto;
}
.proj-tile:hover {
  border-color: var(--tile-accent, var(--blue));
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.proj-tile-ind {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tile-accent, var(--blue));
  margin-bottom: 4px;
}
.proj-tile-name {
  font-size: .82rem; color: var(--dark); font-weight: 600; line-height: 1.3;
}
.proj-tile.proj-tile-more {
  background: var(--blue-light); border-color: transparent;
  align-items: center; justify-content: center; text-align: center;
  padding: 12px 20px;
}
.proj-tile.proj-tile-more:hover {
  background: var(--blue); border-color: var(--blue);
}
.proj-tile.proj-tile-more:hover .proj-tile-dots,
.proj-tile.proj-tile-more:hover .proj-tile-name { color: var(--white); }
.proj-tile-dots {
  font-size: 1.1rem; color: var(--blue); font-weight: 700; margin-bottom: 2px;
}
.proj-tile.proj-tile-more .proj-tile-name {
  color: var(--blue); font-size: .78rem; font-weight: 700;
}

/* Industry breakdown bars */
.proj-industry-breakdown {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 680px; margin: 0 auto;
}
.proj-breakdown-item {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 14px;
}
.proj-breakdown-bar {
  background: var(--gray-bg); border-radius: 50px; height: 8px;
  overflow: hidden; position: relative;
}
.proj-breakdown-fill {
  height: 100%; width: var(--bw, 50%);
  border-radius: 50px;
  animation: growBar .8s ease forwards;
}
@keyframes growBar { from { width: 0 } to { width: var(--bw, 50%) } }
.proj-breakdown-label {
  display: flex; align-items: center; gap: 5px;
  font-size: .82rem; color: var(--gray); white-space: nowrap;
  min-width: 200px;
}
.proj-breakdown-count {
  font-size: .8rem; font-weight: 700; color: var(--dark); white-space: nowrap;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .featured-info { padding: 32px; }
}
@media (max-width: 900px) {
  .proj-header-inner { flex-direction: column; align-items: flex-start; }
  .proj-header-stats { align-self: stretch; }
  .proj-hstat { flex: 1; }

  .featured-inner { grid-template-columns: 1fr; }
  .featured-screen-wrap { min-height: 280px; padding: 24px; }
  .featured-info { padding: 28px; }

  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-card.proj-card-placeholder { display: none; }

  .proj-breakdown-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .proj-breakdown-label { min-width: unset; }
}
@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-mosaic { gap: 6px; }
  .proj-tile { padding: 8px 12px 10px; }
}
