/* =============================================================
   SVIGRAD — "Kvaliteta se vidi u detaljima"
   Premium technical-detail feature cards (4, large photos).
   Pairs with termofasada.css; light grey section on white page.
   ============================================================= */

.det-section {
   background: #F7F8F7;
   color: #222222;
   padding: 110px 0 120px;
   border-top: 1px solid #ededed;
}

.det-inner {
   max-width: 1180px;
   margin-inline: auto;
   padding-inline: 2rem;
}

/* ---------- Header ---------- */
.det-head {
   max-width: 720px;
   margin: 0 auto 72px;
   text-align: center;
}

.det-eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 0.55rem;
   font-size: 0.76rem;
   font-weight: 700;
   letter-spacing: 0.2em;
   text-transform: uppercase;
   color: #1E6FA8;
   margin-bottom: 1.25rem;
}

.det-eyebrow::before,
.det-eyebrow::after {
   content: "";
   width: 26px;
   height: 1px;
   background: #cdd3d0;
}

.det-title {
   font-size: clamp(2rem, 4vw, 3rem);
   font-weight: 700;
   line-height: 1.1;
   letter-spacing: -0.015em;
   color: #1a1a1a;
   margin-bottom: 1.4rem;
   text-wrap: balance;
}

.det-intro {
   font-size: 1.15rem;
   line-height: 1.7;
   color: #5f6562;
   text-wrap: pretty;
}

/* ---------- Card grid ---------- */
.det-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 2rem;
}

.det-card {
   position: relative;
   display: flex;
   flex-direction: column;
   background: #ffffff;
   border: 1px solid #e6e8e7;
   border-radius: 0.85rem;
   overflow: hidden;
   box-shadow: 0 1px 3px rgba(34, 34, 34, .05);
   transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}

.det-card:hover {
   transform: translateY(-4px);
   border-color: #d4dde4;
   box-shadow: 0 30px 56px -30px rgba(30, 111, 168, .35);
}

/* large close-up photo */
.det-card__media {
   position: relative;
   aspect-ratio: 5 / 4;
   overflow: hidden;
   background: #eceeed;
}

.det-card__media img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   display: block;
   transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.det-card:hover .det-card__media img {
   transform: scale(1.05);
}

.det-card__index {
   position: absolute;
   top: 16px;
   left: 18px;
   font-family: Georgia, "Times New Roman", serif;
   font-size: 0.92rem;
   font-weight: 700;
   letter-spacing: 0.06em;
   color: #ffffff;
   text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* content */
.det-card__body {
   display: flex;
   gap: 1.1rem;
   padding: 1.9rem 2rem 2.1rem;
}

.det-card__icon {
   flex-shrink: 0;
   width: 48px;
   height: 48px;
   border-radius: 0.6rem;
   background: #EDF4F9;
   color: #1E6FA8;
   display: flex;
   align-items: center;
   justify-content: center;
}

.det-card__icon svg {
   width: 24px;
   height: 24px;
   stroke: currentColor;
   stroke-width: 1.7;
   fill: none;
   stroke-linecap: round;
   stroke-linejoin: round;
}

.det-card__title {
   font-size: 1.3rem;
   font-weight: 600;
   line-height: 1.25;
   color: #1a1a1a;
   margin-bottom: 0.55rem;
   letter-spacing: -0.01em;
}

.det-card__desc {
   font-size: 1rem;
   line-height: 1.7;
   color: #5f6562;
   text-wrap: pretty;
}

/* ---------- Entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
   .det-card {
      opacity: 0;
      transform: translateY(26px);
   }

   .det-card.is-visible {
      opacity: 1;
      transform: none;
      transition: opacity .7s ease, transform .7s ease, box-shadow .3s ease, border-color .3s ease;
   }

   .det-card.is-visible:nth-child(2) {
      transition-delay: .08s;
   }

   .det-card.is-visible:nth-child(3) {
      transition-delay: .16s;
   }

   .det-card.is-visible:nth-child(4) {
      transition-delay: .24s;
   }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
   .det-section {
      padding: 80px 0 90px;
   }

   .det-head {
      margin-bottom: 48px;
   }

   .det-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
   }

   .det-card__body {
      padding: 1.6rem 1.6rem 1.8rem;
   }
}

/* =============================================================
   Project -> Service link section
   ============================================================= */
.project-service-link {
    background: #f8f9f8;
    padding: 3rem 0;
}

.project-service-link__inner {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-service-link__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1E6FA8;
    margin-bottom: 0.4rem;
}

.project-service-link__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222222;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.project-service-link__desc {
    font-size: 1rem;
    color: #6B726E;
    margin: 0;
    line-height: 1.6;
}

.project-service-link__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #1E6FA8;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease;
}

.project-service-link__btn:hover {
    background: #165C8C;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .project-service-link__btn {
        width: 100%;
        justify-content: center;
    }
}
