/* Styles dedicated to city templates under templates/kancelaria-syndyka */

/* Scope helpers */
.city-page { /* marker class to scope city-specific rules */ }

/* City hero layout */
.hero--city { text-align: left; padding-bottom: 2.5rem; }
.hero--city .hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero--city .hero__content { text-align: left; }
.hero--city .hero__title,
.hero--city .hero__lead { text-align: left; }
.hero__map svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
@media (max-width: 900px) {
  .hero--city .hero__grid { grid-template-columns: 1fr; }
  .hero--city .hero__content { text-align: center; }
  .hero--city .hero__title,
  .hero--city .hero__lead { text-align: center; }
  /* Center CTA buttons in mobile hero */
  .hero--city .section__actions { justify-content: center; }
}

/* Map marker animation removed (static presentation) */
.hero__map-marker { transform-origin: center bottom; }
.hero__map-label { font-weight: 600; letter-spacing: 0.04em; }

/* Section content wrapper and variants */
.city-page .section__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.city-page .section__wrap.section__wrap--narrow { max-width: 780px; }
.city-page .section__wrap.section__wrap--wide { max-width: 1280px; }

/* Section headers and anchors */
.city-page .section__header { margin: 0 0 1rem; }
.city-page .section__eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
.city-page .section h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); margin: 0 0 0.75rem; font-weight: 800; letter-spacing: -0.01em; }
.city-page .section h2 .h-anchor { color: #9ca3af; margin-left: .4rem; opacity: 0; transition: opacity .15s ease; }
.city-page .section h2:hover .h-anchor { opacity: 1; }
.city-page .section h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: .5rem; background: linear-gradient(90deg, #111111, #000000); border-radius: 2px; }

/* Section text rhythm */
.city-page .section p { margin: 0.35rem 0 0.75rem; color: var(--color-muted); }
.city-page .section ul { margin: 0.25rem 0 0.75rem 1.15rem; color: var(--color-muted); }
.city-page .section ul li { margin: 0.35rem 0; }

/* Grid and aside */
.section__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: start; }
.section__aside { background: var(--color-surface); border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem; box-shadow: 0 8px 22px rgba(17,17,17,.06); color: var(--color-muted); }
@media (max-width: 900px) { .section__grid { grid-template-columns: 1fr; } }

/* Alternating background sections */
/* Move background color to inner wrap to avoid bleed outside rounded border */
.section--alt { background: transparent; }
.section--alt .section__wrap { background: #f5f5f5; border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.25rem clamp(1rem, 2vw, 2rem); box-shadow: 0 8px 22px rgba(15,23,42,.04); overflow: hidden; }

/* Chips list (districts) */
.chips { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--color-surface); border: 1px solid #e5e7eb; color: var(--color-muted); padding: 6px 10px; border-radius: 9999px; font-size: .95rem; }
/* Center chips in related section */
.related .chips { justify-content: center; }

/* FAQ styling */
.faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.75rem 1rem; transition: box-shadow .15s ease, border-color .15s ease; }
.faq details + details { margin-top: 8px; }
.faq summary { list-style: none; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { content: "\25BE"; float: right; color: var(--color-muted); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 2px solid #111111; outline-offset: 2px; border-radius: 6px; }
.faq p { margin: 0.5rem 0 0; }

/* Section actions (CTA row) and buttons */
.section__actions { display: flex; gap: 10px; margin-top: .75rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.1rem; border-radius: 9999px; font-weight: 700; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease; border: 1px solid transparent; }
.btn:active { transform: translateY(0); }
.btn-primary { background: #111111; color: #fff; box-shadow: 0 8px 16px rgba(17,17,17,.28); }
.btn-primary:hover { background: #000000; box-shadow: 0 12px 22px rgba(0,0,0,.38); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #1f2937; border-color: #e5e7eb; }
.btn-outline:hover { background: #f8fafc; }



/* Media blocks for imagery inside sections */
.section__media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}
.section__media img {
  width: 100%;
  height: auto;
  display: block;
}
.section__media figcaption {
  font-size: 0.95rem;
  color: var(--color-muted);
  padding: 0.75rem 1.1rem 1.1rem;
  background: #f8fafc;
}
.section__media--wide {
  margin: 1.5rem 0 2rem;
}

  .section__aside--media .media-card img {
    height: 180px;
  }
  
  .service-card:hover { transform: none; box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12); }
  .service-card__media img { transition: none; }

/* Two-column grid helper for paired blocks */
.section__grid--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .section__grid--two { grid-template-columns: 1fr; } }

/* Generic card and dashed variant */
.card { background: var(--color-surface); border-radius: 14px; padding: 1rem 1.1rem; border: 1px solid #e5e7eb; }
.card--dashed { border-style: dashed; border-width: 2px; }
.card h3 { margin: 0 0 .6rem; font-weight: 800; }
.card p { margin: 0 0 .5rem; color: var(--color-muted); }
.card ul { margin: .25rem 0 0 1rem; color: var(--color-muted); }
.card ul li { margin: .3rem 0; }
.card-link {
  font-weight: 600;
  color: #111111;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(17, 17, 17, 0.55);
}
.card-link:hover {
  color: #000000;
  text-decoration-color: #000000;
}
.card-link:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Steps as dashed card */
.city-page [aria-labelledby="proces"] .steps {
  background: var(--color-surface);
  border: 2px dashed #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.city-page [aria-labelledby="proces"] .steps__item { margin: .9rem 0; }
