/* Verant Studio — shared service page system
   Reference implementation: UX audit
   Designed to layer over the legacy styl.css without changing service copy. */

.service-page {
  --service-bg: #ede5e3;
  --service-surface: #fffaf7;
  --service-surface-soft: #f6efeb;
  --service-brown: #5f4438;
  --service-brown-deep: #4b342c;
  --service-brown-mid: #735244;
  --service-ink: #3f230b;
  --service-muted: #796b62;
  --service-line: rgba(117, 73, 34, .13);
  --service-accent: #f17735;
  --service-accent-soft: #f3a06a;
  --service-ease: cubic-bezier(.22,.8,.2,1);
  background: var(--service-bg);
  color: var(--service-ink);
}

.service-page main { overflow: clip; }

/* HERO ---------------------------------------------------------- */
.service-page .ux-audit-hero-hero.service-hero-shell {
  width: min(1220px, calc(100% - 24px));
  max-width: 1220px;
  margin: 104px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 86% 13%, rgba(241,119,53,.14), transparent 34%),
    radial-gradient(circle at 7% 92%, rgba(255,174,95,.07), transparent 30%),
    linear-gradient(145deg, #735244 0%, #614438 54%, #4b342c 100%);
  border: 1px solid rgba(255,244,236,.13);
  box-shadow: 0 34px 86px rgba(63,35,11,.14);
  isolation: isolate;
}

.service-page .service-hero-shell::before {
  content: "02";
  position: absolute;
  right: -.02em;
  top: -.2em;
  z-index: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(13rem, 28vw, 25rem);
  line-height: 1;
  color: rgba(255,255,255,.032);
  pointer-events: none;
}

.service-page .ux-audit-hero.service-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(54px, 7vw, 86px);
}

.service-page .service-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #ffc09a;
  font-family: "Barlow", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.service-page .service-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.service-page .service-hero h2 {
  max-width: 760px;
  margin: 0 0 24px;
  padding: 0;
  color: #fffaf7;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.service-page .service-hero > p {
  max-width: 680px;
  margin: 0;
  color: #eadfd8;
  font-family: "Barlow", sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.72;
}
.service-page .service-hero > p strong { color: #fffaf7; }

.service-page .service-hero .cta-hero-podstranky {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px 22px;
  margin: 30px 0 0;
  text-align: left;
}
.service-page .service-hero .vyvoj-kontakt-tlacitko {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 999px;
  font-size: .92rem;
  box-shadow: 0 14px 32px rgba(241,119,53,.22);
}
.service-page .service-hero .service-secondary-link,
.service-page .service-hero .funnel-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 0 5px;
  color: #f6e8e0;
  font-family: "Barlow", sans-serif;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(246,232,224,.46);
}

.service-page .service-hero .hero-image {
  position: relative;
  margin: 0;
  padding: 13px;
  border-radius: 28px;
  background: rgba(255,250,247,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 26px 52px rgba(54,31,22,.19);
  transform: perspective(1000px) rotateY(var(--service-tilt-x, 0deg)) rotateX(var(--service-tilt-y, 0deg));
  transition: transform .18s ease-out;
  will-change: transform;
}
.service-page .service-hero .hero-image::before {
  content: "DIAGNOSTIKA / UX / KONVERZE";
  display: block;
  padding: 4px 5px 11px;
  color: #eadbd2;
  font-family: "Barlow", sans-serif;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.service-page .service-hero .hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.11);
}
.service-page .service-hero-visual-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.service-page .service-hero-visual-note span {
  min-width: 0;
  padding: 8px 7px;
  border-radius: 11px;
  color: #eadbd2;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.10);
  font-family: "Barlow", sans-serif;
  font-size: .57rem;
  font-weight: 700;
  text-align: center;
}

/* UX audit: explicit desktop placement prevents legacy grid auto-flow from
   alternating copy and visual between columns. Mobile/tablet remain unchanged. */
@media (min-width: 901px) {
  .service-page--audit .ux-audit-hero-hero.service-hero-shell {
    width: min(1280px, calc(100% - 40px));
    max-width: 1280px;
  }

  .service-page--audit .ux-audit-hero.service-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(54px, 5.5vw, 86px);
    row-gap: 0;
    align-items: start;
    padding: clamp(62px, 6vw, 84px) clamp(58px, 6vw, 86px) clamp(64px, 6vw, 84px);
  }

  .service-page--audit .service-hero > .service-eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 20px;
  }

  .service-page--audit .service-hero > h2 {
    grid-column: 1;
    grid-row: 2;
    max-width: 650px;
    margin: 0 0 26px;
    font-size: clamp(3.25rem, 4.35vw, 4.85rem);
    line-height: .96;
    text-wrap: balance;
  }

  .service-page--audit .service-hero > p:not(.service-eyebrow) {
    grid-column: 1;
    grid-row: 3;
    max-width: 620px;
    margin: 0;
    font-size: clamp(1rem, 1.18vw, 1.11rem);
    line-height: 1.72;
  }

  .service-page--audit .service-hero > .cta-hero-podstranky {
    grid-column: 1;
    grid-row: 4;
    margin-top: 28px;
  }

  .service-page--audit .service-hero > .hero-image {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
    width: 100%;
    max-width: 510px;
    margin: 0;
    padding: 15px;
    border-radius: 30px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 34px 76px rgba(45,25,18,.24);
  }

  .service-page--audit .service-hero > .hero-image::after {
    content: "Od problému k prioritě";
    position: absolute;
    right: 18px;
    bottom: -16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #fffaf7;
    color: #5f4438;
    border: 1px solid rgba(117,73,34,.12);
    box-shadow: 0 12px 28px rgba(45,25,18,.16);
    font-family: "Barlow", sans-serif;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
  }
}

/* QUICK SIGNALS ------------------------------------------------- */
.service-page .service-signals {
  width: min(1120px, calc(100% - 40px));
  margin: -20px auto 76px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.service-page .service-signal {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 19px;
  background: rgba(255,250,247,.92);
  border: 1px solid var(--service-line);
  box-shadow: 0 16px 38px rgba(63,35,11,.07);
  backdrop-filter: blur(14px);
}
.service-page .service-signal small {
  display: block;
  margin-bottom: 5px;
  color: #9a6f56;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.service-page .service-signal strong {
  display: block;
  color: var(--service-ink);
  font-family: "DM Serif Display", serif;
  font-size: 1.13rem;
  font-weight: 400;
}

/* MAIN CONTENT -------------------------------------------------- */
.service-page .ux-audit.service-content {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}
.service-page .service-intro-panel {
  position: relative;
  max-width: 940px;
  margin: 0 0 74px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,250,247,.88), rgba(246,239,235,.9));
  border: 1px solid var(--service-line);
  box-shadow: 0 22px 60px rgba(63,35,11,.07);
}
.service-page .service-intro-panel::before {
  content: "PRINCIP";
  display: inline-flex;
  margin-bottom: 12px;
  color: #a35e36;
  font-family: "Barlow", sans-serif;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.service-page .service-intro-panel p {
  max-width: 840px;
  margin: 0;
  color: #5e4b40;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.72;
}

/* TYPOGRAPHY / CONTENT ----------------------------------------- */
.service-page .ux-audit-body > h3,
.service-page .ux-audit-body .margin-top > h3 {
  max-width: 850px;
  margin: clamp(70px, 9vw, 110px) 0 22px;
  padding: 0;
  color: var(--service-ink);
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.service-page .ux-audit-body > h3::before,
.service-page .ux-audit-body .margin-top > h3::before {
  content: attr(data-service-kicker);
  display: block;
  margin-bottom: 10px;
  color: #a65d36;
  font-family: "Barlow", sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.service-page .ux-audit-body p {
  max-width: 820px;
  color: #65554c;
  font-size: 1.01rem;
  line-height: 1.76;
}
.service-page .ux-audit-body p strong { color: #3f3028; }

.service-page .ux-audit-body > ul {
  max-width: 900px;
  display: grid;
  gap: 9px;
  margin: 24px 0 34px;
  padding: 0;
  list-style: none;
}
.service-page .ux-audit-body > ul li,
.service-page .vyvoj-spoluprace li {
  position: relative;
  margin: 0;
  padding: 14px 15px 14px 43px;
  border-radius: 14px;
  background: rgba(255,250,247,.70);
  border: 1px solid rgba(117,73,34,.085);
  color: #625149;
  line-height: 1.55;
}
.service-page .ux-audit-body > ul li::before,
.service-page .vyvoj-spoluprace li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(241,119,53,.10);
  color: #d5652d;
  font-size: .67rem;
  font-weight: 800;
}

/* PROCESS -------------------------------------------------------- */
.service-page .service-process-intro {
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 22px;
  padding: 17px 19px;
  border-radius: 16px;
  background: rgba(255,250,247,.70);
  border: 1px solid rgba(117,73,34,.09);
  color: #69584e;
  font-size: .86rem;
  line-height: 1.5;
}
.service-page .service-process-intro span:last-child {
  color: #a75b33;
  font-weight: 800;
  white-space: nowrap;
}
.service-page .vyvoj-spoluprace.service-process-card {
  position: relative;
  max-width: 900px;
  margin: 0 0 10px;
  padding: 24px 25px 25px 31px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,250,247,.78);
  border: 1px solid rgba(117,73,34,.095);
  box-shadow: 0 15px 40px rgba(63,35,11,.045);
}
.service-page .service-process-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f17735, rgba(241,119,53,.18));
}
.service-page .service-process-card .step-number {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #f17735;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
}
.service-page .service-process-card .step-title {
  margin: 0 0 8px;
  color: var(--service-ink);
  font-family: "DM Serif Display", serif;
  font-size: 1.48rem;
  font-weight: 400;
}
.service-page .service-process-card p { margin: 0; }

/* PROOF / CTA / FAQ -------------------------------------------- */
.service-page .related-case-study.service-proof-card,
.service-page .cta.service-cta-card {
  max-width: 920px;
  margin: 78px 0 0;
  padding: clamp(28px, 4.5vw, 46px);
  border-radius: 30px;
  border: 1px solid var(--service-line);
  box-shadow: 0 22px 58px rgba(63,35,11,.07);
}
.service-page .related-case-study.service-proof-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(241,119,53,.11), transparent 30%),
    linear-gradient(145deg, #735244 0%, #614438 56%, #4d352c 100%);
}
.service-page .service-proof-card .section-head h3,
.service-page .service-proof-card .section-head p,
.service-page .service-proof-card h4,
.service-page .service-proof-card p { color: #fffaf7; }
.service-page .service-proof-card .section-head p,
.service-page .service-proof-card p { color: #dfd0c7; }
.service-page .service-proof-card a { color: #ffc09a; font-weight: 800; }

.service-page .cta.service-cta-card {
  background: linear-gradient(135deg, #f3dfd5, #fffaf7 70%);
}
.service-page .service-cta-card h3 {
  margin: 0 0 12px;
  color: var(--service-ink);
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.04;
}
.service-page .service-cta-card p { max-width: 700px; }

.service-page .faq-section.service-faq {
  width: min(920px, calc(100% - 40px));
  margin: 78px auto 104px;
  padding: 0;
}
.service-page .service-faq h2 {
  margin: 0 0 20px;
  color: var(--service-ink);
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 400;
}
.service-page .service-faq .faq-item {
  margin: 0 0 9px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,250,247,.75);
  border: 1px solid rgba(117,73,34,.10);
  box-shadow: none;
}
.service-page .service-faq .faq-item summary {
  min-height: 62px;
  padding: 18px 20px;
}
.service-page .service-faq .faq-item p { padding: 0 20px 20px; }

/* MOTION -------------------------------------------------------- */
.service-page .service-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--service-ease), transform .62s var(--service-ease);
}
.service-page .service-reveal.is-visible { opacity: 1; transform: none; }

/* TRANSITION — same visual language as homepage ProfiClips ------ */
.verant-page-transition {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  background: #2b211d;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 480ms var(--service-ease), opacity 160ms ease;
}
.verant-page-transition__mark {
  display: grid;
  place-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease 140ms, transform 320ms var(--service-ease) 140ms;
}
.verant-page-transition__mark strong {
  color: #f17735;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
}
.verant-page-transition__mark small {
  color: #d5c5bb;
  font-family: "Barlow", sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.verant-page-transition.is-active { opacity: 1; transform: scaleY(1); }
.verant-page-transition.is-active .verant-page-transition__mark { opacity: 1; transform: none; }

/* RESPONSIVE ---------------------------------------------------- */
@media (max-width: 900px) {
  .service-page .ux-audit-hero.service-hero {
    grid-template-columns: 1fr;
    padding: 56px 42px 44px;
  }
  .service-page .service-hero h2 { max-width: 850px; }
  .service-page .service-hero .hero-image { width: min(680px, 100%); }
  .service-page .service-signals { margin-top: -10px; }
}

@media (max-width: 650px) {
  .service-page .ux-audit-hero-hero.service-hero-shell {
    width: calc(100% - 16px);
    margin-top: 82px;
    border-radius: 28px;
  }
  .service-page .ux-audit-hero.service-hero {
    gap: 32px;
    padding: 42px 20px 24px;
  }
  .service-page .service-hero h2 {
    font-size: clamp(2.35rem, 11.6vw, 3.35rem);
    line-height: .99;
  }
  .service-page .service-hero > p { font-size: .98rem; line-height: 1.68; }
  .service-page .service-hero .cta-hero-podstranky {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 24px;
  }
  .service-page .service-hero .vyvoj-kontakt-tlacitko { width: 100%; }
  .service-page .service-hero .hero-image { padding: 10px; border-radius: 22px; }
  .service-page .service-hero .hero-image img { border-radius: 16px; }
  .service-page .service-hero-visual-note { grid-template-columns: 1fr; }
  .service-page .service-signals {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    margin: 14px auto 56px;
  }
  .service-page .ux-audit.service-content { width: calc(100% - 24px); }
  .service-page .service-intro-panel { margin-bottom: 54px; padding: 24px 20px; border-radius: 23px; }
  .service-page .ux-audit-body > h3,
  .service-page .ux-audit-body .margin-top > h3 { margin-top: 64px; font-size: clamp(1.95rem, 9vw, 2.65rem); }
  .service-page .ux-audit-body p { font-size: .96rem; line-height: 1.72; }
  .service-page .ux-audit-body > ul li,
  .service-page .vyvoj-spoluprace li { padding: 12px 13px 12px 39px; font-size: .9rem; }
  .service-page .vyvoj-spoluprace.service-process-card { padding: 23px 18px 24px 22px; border-radius: 22px; }
  .service-page .service-process-card .step-title { font-size: 1.35rem; }
  .service-page .related-case-study.service-proof-card,
  .service-page .cta.service-cta-card { margin-top: 64px; padding: 26px 20px; border-radius: 24px; }
  .service-page .faq-section.service-faq { width: calc(100% - 24px); margin: 60px auto 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .service-reveal,
  .service-page .service-reveal.is-visible,
  .service-page .service-hero .hero-image,
  .verant-page-transition,
  .verant-page-transition__mark {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .verant-page-transition { display: none !important; }
}