/* Inner pages: title column on the left, work column on the right. Homepage does not load this file. */

.spine {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 72px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px 48px;
  align-items: start;
}

.spine-side {
  position: sticky;
  top: 96px;
}

.spine-side h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1e3a5f;
}

.spine-side .lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3d4d60;
}

.spine-side .crumbs { margin: 0 0 14px; }

.spine-side .fare-chips {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 18px;
}

.spine-date {
  margin: 8px 0 0;
  color: #6b7c90;
  font-size: 0.9rem;
}

.spine-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.spine-work {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.spine-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  background: #d5dee8;
}

.spine-panel,
.spine-facts > div,
.spine-clause {
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.06);
}

.spine-panel .tiny,
.spine-facts .tiny,
.spine-clause .tiny { margin: 18px 0 8px; }

.spine-panel .tiny:first-child,
.spine-facts .tiny:first-child { margin-top: 0; }

.spine-panel h2,
.spine-work h2 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #1e3a5f;
}

.spine-work .text-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 8px;
}

.spine-work .text-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.05);
}

.spine-work .text-links a::after {
  content: "→";
  color: #c2410c;
  flex-shrink: 0;
}

.spine-work .text-links a:hover {
  background: #1e3a5f;
  color: #fff;
}

.spine-work .text-links a:hover::after { color: #f3c7b2; }

.spine-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spine-facts h3 {
  margin: 4px 0 6px;
  font-family: var(--display);
  color: #1e3a5f;
}

.spine-film {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 10px;
}

.spine-film img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background: #d5dee8;
}

.spine-film img:first-child { height: 180px; }

.spine-copy p { margin: 0 0 14px; }

.spine-work .search-card { margin-top: 0; }

.spine-work .svc-problem-grid,
.spine-work .svc-pairs-list,
.spine-work .fare-note-list,
.spine-work .read-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
}

.spine-work .svc-problem-card {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 0;
  border-radius: 14px;
  background: #fff;
}

.spine-work .cat-band {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 10px;
  padding: 12px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

.spine-work .cat-band-media,
.spine-work .cat-band:nth-child(even) .cat-band-media {
  order: 0;
  min-height: 0;
  border-radius: 12px;
}

.spine-work .cat-band-media img {
  width: 92px;
  height: 92px;
  object-fit: cover;
}

.spine-work .svc-mix-board,
.spine-work .svc-lex-grid,
.spine-work .fare-guides {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#city-list.place-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#city-list .place-tile,
#city-list .place-tile-lg {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-column: auto;
  min-height: 0;
  align-items: center;
  border-radius: 16px;
  background: #fff;
  color: #1c2836;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

#city-list .place-tile.is-plain {
  grid-template-columns: minmax(0, 1fr);
}

#city-list .place-tile::after { display: none; }

#city-list .place-tile img {
  position: relative;
  inset: auto;
  width: 84px;
  height: 72px;
  object-fit: cover;
}

#city-list .place-tile > div {
  position: static;
  grid-column: 2;
  padding: 12px 40px 12px 16px;
}

#city-list .place-tile.is-plain > div { grid-column: 1; }

#city-list .place-tile h3 {
  color: #1e3a5f;
  font-size: 1.15rem;
}

#city-list .place-tile small { color: #6b7c90; }

#city-list .place-tile > div::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #c2410c;
}

.spine-side .svc-jump,
.spine-side .read-jump,
.spine-side .flow-jump {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 58, 95, 0.12);
}

.spine-side .svc-jump a,
.spine-side .read-jump-btn,
.spine-side .flow-jump a {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #1e3a5f;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.spine-side .svc-jump a:hover,
.spine-side .read-jump-btn:hover,
.spine-side .read-jump-btn.is-on,
.spine-side .flow-jump a:hover {
  background: #fff;
  color: #c2410c;
  box-shadow: none;
}

body[data-page="guide"] .essay {
  width: min(720px, calc(100% - 48px));
  margin: 36px auto 80px;
}

body[data-page="guide"] .guide-article { padding: 0; }

body[data-page="guide"] .guide-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 8px;
}

body[data-page="guide"] .guide-kicker span:last-child {
  color: #6b7c90;
  font-size: 0.92rem;
}

body[data-page="guide"] .guide-head h1 {
  max-width: none;
  margin: 0 0 12px;
  font-size: clamp(2.15rem, 4.2vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1e3a5f;
}

body[data-page="guide"] .guide-head .lede {
  max-width: none;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
}

body[data-page="guide"] .guide-cover { margin: 22px 0 0; }

body[data-page="guide"] .guide-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 22px;
}

body[data-page="guide"] .guide-toc {
  margin: 16px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="guide"] .guide-toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page="guide"] .guide-toc a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.05);
  text-decoration: none;
}

body[data-page="guide"] .guide-toc a:hover,
body[data-page="guide"] .guide-toc a.is-on {
  background: #1e3a5f;
  color: #fff;
  text-decoration: none;
}

body[data-page="guide"] .kort-sagt {
  max-width: none;
  margin: 22px 0 8px;
  padding: 22px 24px 18px;
  background: #fff;
  border: 0;
  border-radius: 20px;
  border-left: 4px solid #c2410c;
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.06);
}

body[data-page="guide"] .kort-sagt h2 {
  color: #1e3a5f;
  margin: 0 0 12px;
}

body[data-page="guide"] .kort-sagt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body[data-page="guide"] .kort-sagt li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef2f6;
  color: #1c2836;
}

body[data-page="guide"] .prose-article,
body[data-page="guide"] .guide-faq { max-width: none; }

body[data-page="guide"] .prose-article h2 {
  color: #1e3a5f;
  margin: 28px 0 0;
}

body[data-page="guide"] .prose-article h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1e3a5f;
  margin: 18px 0 0;
}

body[data-page="guide"] .prose-article p {
  font-size: 1.05rem;
  line-height: 1.75;
}

body[data-page="guide"] .prose-article ul {
  list-style: disc outside;
  padding-left: 1.25rem;
}

body[data-page="guide"] .prose-article ol {
  list-style: decimal outside;
  padding-left: 1.4rem;
}

body[data-page="guide"] .prose-article .guide-steps,
body[data-page="guide"] .prose-article .guide-check {
  list-style: none;
  padding-left: 0;
}

body[data-page="guide"] .guide-price {
  display: block;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1e3a5f;
}

body[data-page="guide"] .guide-price span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: #5c6b7a;
}

body[data-page="guide"] .guide-table td.num {
  font-weight: 800;
  color: #1e3a5f;
  font-size: 1.02rem;
  white-space: nowrap;
}

body[data-page="guide"] .guide-faq { margin-top: 28px; }

body[data-page="guide"] .guide-faq h2 { color: #1e3a5f; }

body[data-page="guide"] .guide-faq .faq-item {
  background: #fff;
  border: 0;
  border-radius: 16px;
  margin: 0 0 10px;
  padding: 4px 18px;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

body[data-page="guide"] .essay-next { margin: 28px 0 8px; }

body[data-page="guide"] .guide-more { margin-top: 36px; }

body[data-page="guide"] .guide-more h2 {
  color: #1e3a5f;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

body[data-page="guide"] .guide-more-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
}

body[data-page="guide"] .guide-more-row {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

body[data-page="guide"] .guide-more-row h3 { color: #1e3a5f; }

body[data-page="how"] .spine-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="how"] .spine-steps .flow-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-height: 100%;
}

body[data-page="how"] .spine-steps .flow-step > b { font-size: 2rem; }

body[data-page="faq"] .spine-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="faq"] .spine-links a {
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.05);
}

@media (max-width: 900px) {
  .spine { grid-template-columns: 1fr; gap: 18px; }
  .spine-side { position: static; }
  .spine-film { grid-template-columns: 1fr 1fr; }
  body[data-page="how"] .spine-steps,
  body[data-page="faq"] .spine-links { grid-template-columns: 1fr; }
  body[data-page="guide"] .essay { width: min(720px, calc(100% - 32px)); }
}

/* Hub pages: same sky palette as the homepage. Company and city pages keep .spine. */
body:has(main.leaf) {
  --display: "Syne", sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ink: #16304f;
  --ink-soft: #3c5270;
  --muted: #5d7190;
  --lake: #0f8f86;
  --snow: #f4f9fd;
  background: #f4f9fd;
  color: #16304f;
  font-family: "Manrope", system-ui, sans-serif;
}

html:has(body:has(main.leaf)) { background: #100828; }

body:has(main.leaf) .site-header {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

body:has(main.leaf) .site-header.is-scrolled {
  background: rgba(10, 18, 48, 0.88);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body:has(main.leaf) .site-brand-name,
body:has(main.leaf) .site-nav a,
body:has(main.leaf) .nav-toggle { color: #fff; }

body:has(main.leaf) .site-nav a:hover,
body:has(main.leaf) .site-nav a.is-active {
  color: #06281c;
  background: #2ee6a6;
  border-bottom-color: transparent;
}

body:has(main.leaf) .btn-primary {
  background: #2ee6a6;
  color: #06281c;
}

body:has(main.leaf) .btn-primary:hover {
  background: #1ed598;
  color: #06281c;
}

body:has(main.leaf) .btn-ghost { color: #12305c; }

body:has(main.leaf) .site-footer {
  background: #100828;
  color: #d5d8ef;
  border-radius: 0;
  margin-top: 0;
}

body:has(main.leaf) .site-footer h4,
body:has(main.leaf) .footer-brand-name { color: #fff; }

body:has(main.leaf) .site-footer a { color: #9eeed2; }

body:has(main.leaf) .footer-lead,
body:has(main.leaf) .footer-bottom { color: #c5c8e4; }

body:has(main.leaf) .tiny { color: #1a8f86; }

body:has(main.leaf) .spine-panel h2,
body:has(main.leaf) .spine-work h2,
body:has(main.leaf) .spine-facts h3 {
  color: #12305c;
  font-family: "Syne", sans-serif;
}

body:has(main.leaf) .spine-panel,
body:has(main.leaf) .spine-facts > div {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(8, 20, 60, 0.08);
}

body:has(main.leaf) .search-field > label { color: #1a8f86; }

body:has(main.leaf) .search-go {
  border-radius: 16px;
}

body:has(main.leaf) .search-popular button:hover {
  background: #12305c;
  color: #fff;
}

body:has(main.leaf) .svc-jump b,
body:has(main.leaf) .svc-jump a:hover,
body:has(main.leaf) .read-jump-btn.is-on,
body:has(main.leaf) .flow-jump a:hover,
body:has(main.leaf) .flow-go {
  color: #0f8f86;
}

body:has(main.leaf) .flow-go:hover { color: #12305c; }

main.leaf {
  width: 100%;
  margin: 0 0 72px;
  font-family: "Manrope", system-ui, sans-serif;
}

.leaf-hero {
  position: relative;
  margin-top: -76px;
  padding: 132px max(20px, calc((100% - 1040px) / 2)) 72px;
  background:
    radial-gradient(520px 280px at 8% 18%, rgba(125, 107, 255, 0.55), transparent 70%),
    radial-gradient(640px 320px at 92% 8%, rgba(62, 214, 255, 0.45), transparent 68%),
    linear-gradient(118deg, #1b0d4a 0%, #163a9a 42%, #1477c9 70%, #1ec4e0 100%);
  color: #fff;
  overflow: visible;
}

.leaf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, #fff, transparent),
    radial-gradient(2px 2px at 46% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 48%, rgba(255,255,255,.8), transparent);
}

.leaf-kicker {
  position: relative;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8fff0;
}

body:has(main.leaf) .leaf-hero h1 {
  position: relative;
  margin: 0 0 14px;
  max-width: 12em;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
}

body:has(main.leaf) .leaf-hero.is-firm h1 {
  max-width: min(18em, 100%);
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
}

.leaf-hero .lede,
.leaf-hero .crumbs {
  position: relative;
  max-width: 68ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.leaf-hero .lede a,
.leaf-hero .crumbs a { color: #b8fff0; }

.leaf-pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.leaf-pills a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.leaf-pills a:hover { background: #2ee6a6; color: #06281c; }

/* Dalje / exit links live on white spine panels, not the hero gradient. */
body:has(main.leaf) .spine-panel .leaf-pills a {
  background: #e3f5f2;
  color: #12305c;
  border: 1px solid rgba(15, 143, 134, 0.25);
}

body:has(main.leaf) .spine-panel .leaf-pills a:hover {
  background: #2ee6a6;
  color: #06281c;
  border-color: transparent;
}

/* Kicker labels on white cards (Dalje, Pitanja, Sadržaj…) need stronger contrast. */
body:has(main.leaf) .spine-panel > .tiny:first-child,
body:has(main.leaf) .guide-more > .tiny:first-child {
  color: #0a4f4a;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leaf .spine-work {
  width: min(1040px, calc(100% - 40px));
  margin: 28px auto 0;
}

.leaf .svc-jump,
.leaf .read-jump,
.leaf .flow-jump {
  margin-top: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(8, 20, 60, 0.08);
}

.leaf-hero .spine-actions { margin-top: 18px; }

.leaf-mail {
  position: relative;
  display: inline-block;
  margin: 18px 0 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.leaf-prose { display: grid; gap: 14px; }

.leaf-prose p { margin: 0; }

.leaf-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
}

.leaf-facts article {
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: #f4f9fd;
}

.leaf-map {
  margin: 20px 0 8px;
  overflow: hidden;
  border-radius: 18px;
  background: #dceaf6;
  aspect-ratio: 16 / 9;
  position: relative;
}

.leaf-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(46, 230, 166, 0.14), transparent 55%),
    #dceaf6;
}

.map-consent p {
  max-width: 27rem;
  margin: 0;
  color: #254762;
  font-size: 0.9rem;
  line-height: 1.55;
}

.map-consent .btn {
  width: auto;
}

.leaf-map-cap {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #4a6580;
}

.leaf-facts p { margin: 0; color: #16304f; line-height: 1.45; }

.leaf .spine-actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.leaf .spine-actions .btn { width: auto; }

.leaf-more,
.leaf-sibs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.leaf-more a,
.leaf-sibs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f9fd;
  color: #12305c;
  text-decoration: none;
  font-size: 0.92rem;
}

.leaf-more a:hover,
.leaf-sibs a:hover {
  background: #2ee6a6;
  color: #06281c;
}

body:has(main.leaf) .firm-grid { gap: 14px; }

body:has(main.leaf) .firm-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(8, 20, 60, 0.07);
}

body:has(main.leaf) .firm-card:hover {
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(8, 20, 60, 0.12);
}

body:has(main.leaf) .badge {
  background: #e7fff6;
  color: #0f8f86;
}

@media (max-width: 800px) {
  .leaf-facts { grid-template-columns: 1fr; }
  body:has(main.leaf) .firm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body:has(main.leaf) .leaf-hero {
    margin-top: -64px;
    padding: 108px 18px 48px;
  }
  .leaf-hero h1,
  body:has(main.leaf) .leaf-hero h1 { max-width: none; letter-spacing: 0; color: #fff; }
  .leaf .spine-work { width: min(1040px, calc(100% - 28px)); }
}
