/*
 * City Pages & Blog: page design, shared by the PHP connector, the WordPress
 * plugin and the universal script. Everything is scoped under .cp-page so the
 * host site's own styles are untouched; fonts are inherited from the site.
 * The brand colour comes from --cp-accent, set per site in the dashboard.
 */
.cp-page {
  --cp-accent: #0f766e;
  --cp-ink: #1f2937;
  --cp-muted: #6b7280;
  --cp-line: #e5e7eb;
  --cp-soft: color-mix(in srgb, var(--cp-accent) 8%, #ffffff);
  --cp-radius: 16px;
  max-width: var(--cp-max, 1120px);
  margin: 28px auto 64px;
  padding: 0 var(--cp-pad, 20px);
  color: var(--cp-ink);
  font-size: 17px;
  line-height: 1.75;
}
.cp-page *, .cp-page *::before, .cp-page *::after { box-sizing: border-box; }
.cp-page img { max-width: 100%; height: auto; }
.cp-page a { color: var(--cp-accent); }
.cp-page h1, .cp-page h2, .cp-page h3 { color: var(--cp-ink); line-height: 1.25; }

/* ---- hero ---- */
.cp-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--cp-radius) + 4px);
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--cp-accent), color-mix(in srgb, var(--cp-accent) 55%, #0b1220));
  background-size: cover;
  background-position: center;
}
.cp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, rgba(11, 18, 32, 0.86) 100%);
}
.cp-hero-inner { position: relative; padding: 40px; max-width: 820px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.cp-page .cp-hero h1 { color: #ffffff; font-size: clamp(28px, 4.2vw, 46px); margin: 0 0 12px; }
.cp-hero-lead { color: rgba(255, 255, 255, 0.92); font-size: 18px; margin: 0 0 22px; }
.cp-eyebrow { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #ffffff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }

/* ---- buttons ---- */
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-page .cp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none;
  background: var(--cp-accent); color: #ffffff; border: 2px solid var(--cp-accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cp-hero .cp-btn, .cp-cta .cp-btn { text-shadow: none; }
.cp-page .cp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--cp-accent) 35%, transparent); }
.cp-page .cp-btn-light { background: #ffffff; color: var(--cp-ink); border-color: #ffffff; }
.cp-page .cp-btn-outline { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.75); }
.cp-page .cp-btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- reading column ---- */
.cp-body { max-width: 780px; margin: 36px auto 0; }
.cp-page .cp-body h2 { font-size: 28px; margin: 48px 0 14px; padding-left: 14px; border-left: 4px solid var(--cp-accent); }
.cp-body p { margin: 0 0 18px; }
.cp-page .cp-body h3 { font-size: 21px; margin: 30px 0 10px; }
.cp-page .cp-body p a, .cp-page .cp-faq p a { color: var(--cp-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cp-page .cp-body p a:hover, .cp-page .cp-faq p a:hover { text-decoration-thickness: 2px; }
.cp-body > p.cp-lead { font-size: 19px; color: #374151; }
.cp-photo { margin: 28px 0; }
.cp-photo img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--cp-radius); }

.cp-toc { background: var(--cp-soft); border: 1px solid color-mix(in srgb, var(--cp-accent) 18%, #ffffff); border-radius: var(--cp-radius); padding: 18px 22px; margin: 0 0 8px; }
.cp-toc strong { display: block; margin-bottom: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cp-muted); }
.cp-toc ol { margin: 0; padding-left: 20px; }
.cp-toc li { margin: 4px 0; }
.cp-toc a { text-decoration: none; font-weight: 600; }
.cp-toc a:hover { text-decoration: underline; }

/* ---- call to action ---- */
.cp-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 40px 0; padding: 26px 28px; border-radius: var(--cp-radius);
  background: linear-gradient(135deg, var(--cp-accent), color-mix(in srgb, var(--cp-accent) 60%, #0b1220));
  color: #ffffff;
}
.cp-cta p { margin: 0; font-size: 20px; font-weight: 700; color: #ffffff; max-width: 520px; line-height: 1.35; }
.cp-cta span { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; opacity: 0.9; }

/* ---- questions ---- */
.cp-faq { margin-top: 48px; }
.cp-faq details { border: 1px solid var(--cp-line); border-radius: 12px; margin: 10px 0; background: #ffffff; }
.cp-faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--cp-accent); }
.cp-faq details[open] summary::after { content: "\2212"; }
.cp-faq details p { margin: 0; padding: 0 20px 18px; color: #374151; }

/* ---- cards ---- */
.cp-section-title { font-size: 26px; margin: 56px 0 18px; }
.cp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.cp-page a.cp-card, .cp-service {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--cp-ink);
  border: 1px solid var(--cp-line); border-radius: var(--cp-radius); background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cp-page a.cp-card:hover, .cp-service:hover {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--cp-accent) 35%, var(--cp-line));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.cp-card-img {
  position: relative; aspect-ratio: 16 / 9; flex: none;
  background: linear-gradient(135deg, var(--cp-accent), color-mix(in srgb, var(--cp-accent) 50%, #0b1220));
  background-size: cover; background-position: center;
}
.cp-card-tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--cp-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.cp-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.cp-card-body strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 18px; line-height: 1.35; margin-bottom: 8px;
}
.cp-page a.cp-card:hover .cp-card-body strong { color: var(--cp-accent); }
.cp-card-body span, .cp-service-text {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15px; line-height: 1.6; color: var(--cp-muted); margin: 0;
}
.cp-card-more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: var(--cp-accent); }
.cp-card-more::after { content: " \2192"; transition: margin 0.15s ease; }
.cp-page a.cp-card:hover .cp-card-more::after, .cp-service:hover .cp-card-more::after { margin-left: 4px; }

/* ---- areas page ---- */
.cp-intro { max-width: 780px; margin: 36px auto 0; font-size: 19px; color: #374151; }
.cp-service .cp-card-body { gap: 0; }
.cp-service h3 { margin: 0 0 8px; padding: 0; font-size: 20px; line-height: 1.3; }
.cp-page a.cp-service-link { color: var(--cp-ink); text-decoration: none; }
.cp-page a.cp-service-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cp-service:hover a.cp-service-link { color: var(--cp-accent); }
.cp-service-label { margin: 14px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cp-muted); }
.cp-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-page .cp-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--cp-soft); color: var(--cp-accent); font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.cp-page .cp-chip:hover { background: var(--cp-accent); color: #ffffff; }

.cp-links { margin-top: 28px; font-size: 15px; color: var(--cp-muted); text-align: center; }

/* ---- mobile call bar ---- */
.cp-callbar { display: none; }
@media (max-width: 760px) {
  .cp-page { font-size: 16px; margin-top: 16px; padding: 0 14px; }
  .cp-hero { min-height: 300px; }
  .cp-hero-inner { padding: 24px; }
  .cp-page .cp-body h2 { font-size: 23px; }
  .cp-cta { padding: 22px; }
  .cp-page .cp-btn { padding: 12px 18px; }
  .cp-callbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #ffffff;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
  }
  .cp-callbar .cp-btn { flex: 1; justify-content: center; }
  .cp-page { padding-bottom: 70px; }
}

/* ---- inside a WordPress theme: the theme sets the width and the title ---- */
.cp-page.cp-wp { max-width: none; margin: 0; padding: 0; font-size: inherit; }
/* Full design on WordPress: our own width and margins, like the PHP pages. */
.cp-page.cp-wp.cp-wp-full { max-width: var(--cp-max, 1120px); margin: 28px auto 64px; padding: 0 var(--cp-pad, 20px); font-size: 17px; }
.cp-wp-full .cp-body { max-width: 780px; margin: 36px auto 0; }
.cp-page.cp-wp .cp-intro { margin-left: 0; }
.cp-page.cp-wp .cp-faq details, .cp-wp .wp-block-details { border: 1px solid var(--cp-line); border-radius: 12px; margin: 10px 0; padding: 0; }
.cp-wp .wp-block-details summary { cursor: pointer; padding: 16px 20px; font-weight: 700; }
.cp-wp .wp-block-details p { padding: 0 20px 18px; margin: 0; }
