/* inteligencija.hr · usluga.css — layout for the service, product, company and blog subpages
   (generated by tools/pages.mjs from content/pages/*.mjs). Sits on top of styles.css: tokens, header, footer,
   buttons, .faq, .cta-panel and the chat come from there. Structure:
     .u-hero > .u-hero-grid > .u-companion (3D Albert + thought bubble) + .u-hero-copy (crumbs, h1, lead, actions)
     .u-sec (alternating .u-tint) with .u-cards / .u-steps / .u-inout / .u-price / .faq / .u-related / .u-prose
     .cta.u-cta reuses the homepage closing panel */

.page-usluga .u-main { position: relative; z-index: var(--z-main); }

/* ---------------- Hero ---------------- */
.u-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 12px + clamp(44px, 8vh, 88px)) 0 clamp(40px, 6vh, 64px);
}
.u-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 70% at 10% 100%, rgba(168, 200, 232, .5), transparent 72%),
    radial-gradient(40% 50% at 4% 0%, rgba(216, 231, 246, .9), transparent 70%),
    radial-gradient(36% 46% at 92% 18%, rgba(234, 242, 251, 1), transparent 70%);
}
.u-hero-grid {
  position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: end;
}
.u-companion { position: relative; width: 200px; height: 236px; justify-self: center; }
.u-companion::before {
  content: ""; position: absolute; left: 50%; bottom: -34px; width: 230px; height: 84px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(234, 242, 251, .7) 60%, rgba(216, 231, 246, 0));
}
.u-albert { position: absolute; inset: 0; }
.u-albert-svg { width: auto; height: 100%; margin: 0 auto; aspect-ratio: 300 / 360; display: block; }
.u-thought {
  position: absolute; right: -12px; top: 2px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); color: var(--blue-dk); font-size: 26px; box-shadow: var(--shadow-soft);
}
.u-thought::before, .u-thought::after { content: ""; position: absolute; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.u-thought::before { width: 14px; height: 14px; left: -4px; bottom: -10px; }
.u-thought::after { width: 8px; height: 8px; left: -14px; bottom: -20px; }

.u-crumbs { font-family: var(--f-display); font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.u-crumbs a { color: var(--muted); text-decoration: none; }
.u-crumbs a:hover { color: var(--blue-dk); text-decoration: underline; }
.u-crumbs span[aria-current] { color: var(--navy); font-weight: 600; }
.u-eyebrow { margin: 0 0 10px; font-family: var(--f-display); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.u-hero h1 {
  margin: 0; font-family: var(--f-head); font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 600; color: var(--navy); text-wrap: balance; max-width: 22ch;
}
.u-lead { margin: clamp(16px, 2.2vh, 24px) 0 0; font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.u-meta { margin: 12px 0 0; font-family: var(--f-display); font-size: .92rem; color: var(--muted); }
.u-hero .hero-actions { margin-top: clamp(20px, 3vh, 30px); display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Sections ---------------- */
.u-sec { padding: clamp(48px, 7vh, 88px) 0; }
.u-sec + .u-sec { padding-top: 0; }
.u-sec.u-tint { background: linear-gradient(180deg, rgba(234, 242, 251, 0) 0%, var(--tint) 18%, var(--tint) 82%, rgba(234, 242, 251, 0) 100%); padding-top: clamp(48px, 7vh, 88px); }
.u-sec.u-tint + .u-sec { padding-top: clamp(48px, 7vh, 88px); }
.u-head { max-width: 760px; margin: 0 0 clamp(24px, 4vh, 40px); }
.u-head .h2, .u-narrow .h2 { margin: 0; }
.u-head .sub { margin: 12px 0 0; }
.u-narrow { max-width: 820px; } /* left-aligned inside .container like every other section */
.u-narrow .h2 + p, .u-narrow .h2 + ul { margin-top: 18px; }

/* prose (intro / text sections / articles) */
.u-prose p, .u-intro p { font-size: 1.08rem; line-height: 1.7; color: var(--navy); margin: 0 0 1em; }
.u-prose ul, .u-intro ul { padding-left: 1.2em; margin: 0 0 1.2em; line-height: 1.7; font-size: 1.05rem; }
.u-prose li, .u-intro li { margin: .35em 0; }
.u-prose h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; margin: 1.8em 0 .5em; color: var(--navy); }
.u-prose strong, .u-intro strong { color: var(--navy); }
.u-prose a, .u-intro a { color: var(--blue-dk); }
.u-prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 4px solid var(--sky); background: var(--white); border-radius: 0 var(--r-card) var(--r-card) 0; color: var(--steel); }
.u-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; border-radius: 16px; }
.u-prose table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; font-size: 1rem; }
.u-prose th, .u-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.u-prose th { font-family: var(--f-display); font-weight: 700; color: var(--steel); }

/* cards */
.u-cards { display: grid; gap: 18px; }
.u-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.u-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.u-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 26px 28px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 10px;
}
.u-card-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--blue-dk); display: grid; place-items: center; font-size: 26px; margin-bottom: 4px; }
.u-card h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.18rem; color: var(--navy); letter-spacing: -0.01em; }
.u-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.u-card-tag { align-self: flex-start; margin-top: auto; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--steel); font-family: var(--f-display); font-weight: 700; font-size: .82rem; }

/* steps */
.u-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.u-steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; gap: 16px; box-shadow: var(--shadow-soft); }
.u-step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-dk); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; }
.u-steps h3 { margin: 6px 0 6px; font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; color: var(--navy); }
.u-steps p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .98rem; }

/* in / out */
.u-inout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.u-in, .u-out { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 28px; box-shadow: var(--shadow-soft); }
.u-in h3, .u-out h3 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.u-in h3 i { color: var(--online); } .u-out h3 i { color: var(--faint); }
.u-in ul, .u-out ul { margin: 0; padding-left: 1.2em; line-height: 1.7; color: var(--navy); }
.u-out ul { color: var(--muted); }

/* price box */
.u-price { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 28px; box-shadow: var(--shadow-soft); }
.u-price-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); }
.u-price-row span { color: var(--muted); font-weight: 600; }
.u-price-row strong { color: var(--navy); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; text-align: right; }
.u-price p { margin: 16px 0 12px; color: var(--muted); line-height: 1.6; }

/* related */
.u-related-h { margin: 0 0 20px !important; }
.u-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.u-rel {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 56px 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  text-decoration: none; color: var(--navy); box-shadow: var(--shadow-soft); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s;
}
.u-rel strong { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.u-rel span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.u-rel i { position: absolute; right: 22px; top: 24px; color: var(--blue-dk); font-size: 20px; }
.u-rel:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--sky); }

/* closing CTA: same panel as the homepage, a little less tall */
.u-cta { padding: clamp(40px, 6vh, 72px) 0 clamp(56px, 8vh, 96px); }
.u-cta .cta-panel { grid-template-columns: 1fr; }

/* footer with columns (shared with the homepage via styles.css additions) */

/* blog list */
.u-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.u-post { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--navy); box-shadow: var(--shadow-soft); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.u-post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.u-post time { font-family: var(--f-display); font-size: .85rem; color: var(--muted); font-weight: 600; }
.u-post h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.u-post p { margin: 0; color: var(--muted); line-height: 1.55; }
.u-post .text-link { margin-top: auto; }

/* team */
.u-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.u-person { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 10px; }
.u-person-photo { width: 96px; height: 96px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; color: var(--blue-dk); font-size: 40px; overflow: hidden; }
.u-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.u-person h3 { margin: 6px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.u-person .u-role { margin: 0; color: var(--blue-dk); font-family: var(--f-display); font-weight: 600; font-size: .92rem; }
.u-person p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .u-cards-3, .u-related, .u-posts, .u-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .u-hero-grid { grid-template-columns: 1fr; row-gap: 28px; align-items: start; }
  .u-companion { width: 150px; height: 178px; justify-self: start; }
  .u-companion::before { width: 180px; height: 64px; bottom: -26px; }
  .u-hero h1 { max-width: none; }
  .u-cards-2, .u-cards-3, .u-inout, .u-steps, .u-related, .u-posts, .u-team { grid-template-columns: 1fr; }
  .u-price-row { flex-direction: column; gap: 4px; }
  .u-price-row strong { text-align: left; }
}

@media (prefers-reduced-motion: no-preference) {
  .u-hero-copy > * { animation: uRise .8s var(--ease-out) both; }
  .u-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .u-hero-copy > :nth-child(3) { animation-delay: .12s; }
  .u-hero-copy > :nth-child(4) { animation-delay: .18s; }
  .u-thought { animation: uFloat 5s ease-in-out 1s infinite; }
}
@keyframes uRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes uFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
