/* ============================================================
   Usluge page — services overview
   ============================================================ */

.us-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--safe);
}

.us-section { padding: 96px 0; background: var(--bg); }
.us-section.alt { background: var(--bg-card); }
.us-section.dark {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.us-section.dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,15,35,0.62) 0%, rgba(20,15,35,0.72) 100%),
    url("/assets/services-bg.jpg") center/cover no-repeat;
  z-index: -1;
}

/* Eyebrow (matches site eyebrow style) */
.us-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.us-section.dark .us-eyebrow { color: var(--green); }
.us-eyebrow .num {
  font-family: "Merriweather", serif;
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: var(--green);
  line-height: 1;
}
.us-eyebrow .num-dash {
  flex: 0 0 56px; height: 4px;
  background: url("/assets/line.svg") left/contain no-repeat;
}

.us-h2 {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.us-section.dark .us-h2 { color: #fff; }
.us-h2 strong { color: var(--green-dark); font-weight: 700; }
.us-section.dark .us-h2 strong { color: var(--green); }

.us-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0;
  text-wrap: pretty;
}
.us-section.dark .us-sub { color: rgba(255,255,255,0.85); }

.us-head {
  text-align: center;
  margin-bottom: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.us-head .us-eyebrow { justify-content: center; }
.us-head .us-eyebrow .num-dash { display: none; }
.us-head .us-sub { margin: 14px auto 0; }

/* ============================================================
   SERVICES GRID — light cards with hover detail
   ============================================================ */
.us-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.us-service {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px 32px;
  display: flex; flex-direction: column;
  gap: 20px;
  min-height: 320px;
  text-decoration: none;
  color: inherit;
  transition: background .3s ease, transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.us-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(132,185,63,0.06) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.us-service:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.10);
}
.us-service:hover::before { opacity: 1; }

.us-service-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
}
.us-service-num {
  font-family: "Merriweather", serif;
  font-size: 36px;
  font-weight: 300;
  font-style: italic;
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.us-service-ico {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(132,185,63,0.30);
  opacity: 0.7;
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.us-service:hover .us-service-ico {
  opacity: 1;
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 12px 24px rgba(132,185,63,0.45);
}
.us-service-ico img {
  width: 36px; height: 36px;
  filter: brightness(0) invert(1);
}
.us-service .arrow-pill {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  border: 1px solid transparent;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
  color: #fff;
  box-shadow: 0 6px 14px rgba(132,185,63,0.32);
  opacity: 0.7;
}
.us-service:hover .arrow-pill {
  opacity: 1;
  transform: rotate(-45deg);
  box-shadow: 0 10px 22px rgba(132,185,63,0.45);
}
.us-service .arrow-pill svg { width: 18px; height: 18px; }

.us-service h3 {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.us-service .us-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.us-service .us-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .25s ease, gap .25s ease;
}
.us-service .us-cta::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--green);
  transition: width .25s ease, background .25s ease;
}
.us-service:hover .us-cta {
  color: var(--green-dark);
  gap: 16px;
}
.us-service:hover .us-cta::before {
  width: 44px;
  background: var(--green-dark);
}

/* ============================================================
   TEAM / "MI STVARAMO OSMIJEHE" — two photo composition
   ============================================================ */
.us-team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
}
.us-team-media {
  position: relative;
  min-height: 600px;
}
.us-team-media .ph {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.us-team-media .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.us-team-media .ph-a {
  width: 64%;
  height: 78%;
  top: 0; left: 0;
  z-index: 2;
}
.us-team-media .ph-b {
  width: 56%;
  height: 64%;
  bottom: 0; right: 0;
  z-index: 1;
  border: 6px solid #fff;
}
.us-team-media:hover .ph-a { transform: translate(-6px, -6px); }
.us-team-media:hover .ph-b { transform: translate(6px, 6px); }
.us-team-media .ph-accent {
  position: absolute;
  width: 78%;
  height: 86%;
  bottom: -12px; left: -16px;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 28px;
  z-index: 0;
  opacity: 0.85;
  transform: rotate(-2.5deg);
}
.us-team-media .ph-badge {
  position: absolute;
  top: 10px; right: 14px;
  z-index: 3;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  min-width: 120px;
}
.us-team-media .ph-badge .num {
  font-family: "Merriweather", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.us-team-media .ph-badge .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.3;
}

.us-team-body h2.us-h2 {
  margin-bottom: 8px;
}
.us-team-body .us-dash {
  display: inline-block;
  width: 100px; height: 4px;
  background: url("/assets/line.svg") center/contain no-repeat;
  margin: 6px 0 22px;
}
.us-team-body .lead {
  font-family: "Merriweather", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.us-team-body p.body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.us-team-body p.body:last-of-type { margin-bottom: 24px; }
.us-team-body em.signoff {
  display: block;
  font-family: "Merriweather", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   FEATURES — 4 pillars
   ============================================================ */
.us-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.us-feature {
  background: #fff;
  border-radius: 18px;
  padding: 32px 26px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.us-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
  border-color: rgba(132,185,63,0.4);
}
.us-feature .ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(132,185,63,0.14);
  color: var(--green);
}
.us-feature .ico .ico-mask {
  display: block;
  width: 30px; height: 30px;
  background: var(--green);
  -webkit-mask: var(--ico-url) center / contain no-repeat;
          mask: var(--ico-url) center / contain no-repeat;
}
.us-feature b {
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.us-feature span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* CTA wrap (reuses cjenovnik .pricing-cta) */
.us-cta-wrap { padding: 0 var(--safe) 80px; background: var(--bg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .us-services-grid { grid-template-columns: 1fr 1fr; }
  .us-team-grid { grid-template-columns: 1fr; gap: 56px; }
  .us-team-media { min-height: 520px; order: -1; }
  .us-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .us-section { padding: 64px 0; }
  .us-services-grid { grid-template-columns: 1fr; gap: 16px; }
  .us-service { min-height: auto; padding: 28px 22px; }
  .us-service h3 { font-size: 22px; }
  .us-team-media { min-height: 460px; }
  .us-team-media .ph-badge { padding: 10px 14px; }
  .us-team-media .ph-badge .num { font-size: 22px; }
}
@media (max-width: 560px) {
  .us-features { grid-template-columns: 1fr; }
  .us-team-body .lead { font-size: 18px; }
  .us-team-media .ph-a { width: 78%; height: 70%; }
  .us-team-media .ph-b { width: 66%; height: 58%; }
}
