/* ===== CAZURI CLINICE - case study pages (v2 — video grid + article styles) ===== */

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.video-item {
  margin: 0;
  background: var(--c-dark-bg);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-item video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--c-dark-bg);
}
.video-item figcaption {
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--c-ink-soft);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-soft);
}

/* Article (Bukarest 2023) sections */
.article__section {
  padding: 70px 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.article__section:last-of-type { border-bottom: 0; }
.article__section:nth-child(odd) { background: var(--c-surface); }
.article__section:nth-child(even) { background: var(--c-bg); }
.article__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}
.article__num {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--c-accent);
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.article__h2 {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.18;
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -.005em;
}
.article__body {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--c-ink-soft);
}
.article__body p { margin-bottom: 14px; }
.article__body p:last-child { margin-bottom: 0; }
.article__body h3 {
  font-family: var(--f-display);
  font-size: 21px;
  color: var(--c-primary);
  font-weight: 500;
  margin: 24px 0 12px;
}
.article__body ul {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}
.article__body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  line-height: 1.65;
}
.article__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--c-accent);
}
.article__body strong { color: var(--c-primary); font-weight: 600; }
.article__list h3 { margin-top: 28px; }
.article__list h3:first-child { margin-top: 0; }
.article__callout {
  background: var(--c-bg);
  border-left: 3px solid var(--c-accent);
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 16px;
  color: var(--c-ink);
}
.article__section:nth-child(odd) .article__callout { background: var(--c-bg); }
.article__section:nth-child(even) .article__callout { background: var(--c-surface); }

/* Publications list (Inovatie page) */
.pubs {
  padding: 60px 0;
}
.pubs__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}
.pub-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.pub-item:last-child { border-bottom: 0; }
.pub-item__year {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: var(--c-accent);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.pub-item__title {
  font-family: var(--f-display);
  font-size: 21px;
  line-height: 1.32;
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: 8px;
}
.pub-item__authors {
  font-size: 14.5px;
  color: var(--c-ink-soft);
  margin-bottom: 6px;
  font-style: italic;
}
.pub-item__journal {
  font-size: 14px;
  color: var(--c-muted);
  letter-spacing: .02em;
}
.pub-item__doi {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
}
.pubs__group {
  margin-bottom: 50px;
}
.pubs__group-title {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; gap: 16px; }
  .article__h2 { font-size: 24px; }
  .article__section { padding: 50px 0; }
}

/* Slide-by-slide PPTX section */
.pptx {
  padding: 70px 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.pptx:last-of-type { border-bottom: 0; }
.pptx:nth-child(odd) { background: var(--c-surface); }
.pptx:nth-child(even) { background: var(--c-bg); }
.pptx__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.pptx__label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.pptx__title {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.18;
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -.005em;
}
.pptx__count {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 36px;
  letter-spacing: .04em;
}
.slides {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.slide {
  padding-left: 28px;
  border-left: 2px solid var(--c-border);
  position: relative;
}
.slide::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}
.slide__num {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.slide__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -.003em;
}
.slide__body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  margin-bottom: 20px;
}
.slide__body p {
  margin-bottom: 6px;
}
.slide__body p:last-child { margin-bottom: 0; }
.slide .gallery {
  margin-top: 18px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

@media (max-width: 720px) {
  .pptx { padding: 50px 0; }
  .pptx__title { font-size: 24px; }
  .pptx__inner { padding: 0 18px; }
  .slide { padding-left: 18px; }
  .slide__title { font-size: 19px; }
  .slides { gap: 36px; }
  .slide .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* Back-to-top button */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .35s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), background .25s;
  box-shadow: 0 6px 20px rgba(20, 30, 60, .25), 0 2px 6px rgba(20, 30, 60, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-body);
  padding: 0;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--c-accent);
}
.back-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 720px) {
  .back-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}

/* ===== ORIGINAL CSS BELOW ===== */

/* Page hero */
.case-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border-soft);
}
.case-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.case-hero__tag {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
}
.case-hero__sig {
  font-family: 'Allura', 'Brush Script MT', cursive;
  font-size: 96px;
  line-height: .9;
  color: var(--c-primary);
  margin-bottom: 14px;
}
.case-hero__title {
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1.12;
  font-weight: 500;
  color: var(--c-primary);
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.case-hero__lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink-soft);
}

/* Breadcrumb */
.crumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px 0;
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs__sep { margin: 0 10px; opacity: .5; }

/* Case section */
.case {
  padding: 80px 0;
  border-bottom: 1px solid var(--c-border-soft);
}
.case:last-child { border-bottom: 0; }
.case__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.case__num {
  display: inline-block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--c-accent);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.case__title {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: -.005em;
}
.case__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink-soft);
  max-width: 820px;
  margin-bottom: 36px;
}
.case__text p + p { margin-top: 12px; }
.case__meta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 500;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border-soft);
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--c-dark-bg);
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform var(--transition);
}
.gallery__item:hover { transform: translateY(-2px); }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), opacity var(--transition);
  opacity: .92;
}
.gallery__item:hover img { transform: scale(1.04); opacity: 1; }

/* Case intro section (top of category page) */
.case-intro {
  padding: 70px 0;
  background: var(--c-bg);
}
.case-intro__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  align-items: start;
}
.case-intro__label {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.case-intro__title {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.18;
  color: var(--c-primary);
  font-weight: 500;
}
.case-intro__body {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--c-ink-soft);
}
.case-intro__body p + p { margin-top: 16px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 27, 46, .96);
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: lb-fade .25s ease both;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  animation: lb-zoom .3s cubic-bezier(.2,.7,.2,1) both;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  padding: 8px 16px;
  font-family: var(--f-display);
  opacity: .8;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 500;
}

@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: scale(1) } }

/* Specializari hub grid */
.specs-hub {
  padding: 120px 0 80px;
}
.specs-hub__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.specs-hub__head {
  text-align: center;
  margin-bottom: 70px;
}
.specs-hub__tag {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.specs-hub__title {
  font-family: var(--f-display);
  font-size: 48px;
  line-height: 1.14;
  color: var(--c-primary);
  font-weight: 500;
  max-width: 720px;
  margin: 0 auto 18px;
  letter-spacing: -.01em;
}
.specs-hub__lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink-soft);
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.spec-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.spec-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent-soft);
  box-shadow: var(--shadow-md);
}
.spec-card__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--c-accent);
  letter-spacing: .04em;
  margin-bottom: 14px;
  display: block;
}
.spec-card__title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.spec-card__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
}
.spec-card__cta {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spec-card__cta::after {
  content: '→';
  transition: transform var(--transition);
}
.spec-card:hover .spec-card__cta::after { transform: translateX(4px); }

/* Responsive */
@media (max-width: 900px) {
  .case-hero { padding: 110px 0 40px; }
  .case-hero__sig { font-size: 68px; }
  .case-hero__title { font-size: 32px; }
  .case-intro__inner { grid-template-columns: 1fr; gap: 30px; }
  .case-intro__title { font-size: 26px; }
  .case { padding: 50px 0; }
  .case__title { font-size: 24px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
  .specs-grid { grid-template-columns: 1fr; gap: 16px; }
  .specs-hub__title { font-size: 32px; }
}
