/* Shared icon and page refinements. Lucide shapes match the Conecta marketing site. */
:root {
  --primary-accent: #0c4a6e;
  --primary-accent-light: #0c4a6e;
  --cta-accent: #0c4a6e;
  --cta-accent-hover: #083b58;
  --site-ink: #15364b;
  --site-tint: #eaf1f5;
}

.site-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.14em;
  color: inherit;
}

a .site-icon, button .site-icon { margin-right: .28em; }
.sticky-bar .site-icon { width: 13px; height: 13px; margin-right: 3px; }
.sticky-bar { margin-top: 8px; padding: 11px 16px; }
.stars { display: flex; align-items: center; gap: 3px; color: #b36c25; }
.stars .site-icon { width: 18px; height: 18px; }
.review-source { color: #0c4a6e; font-size: 13px; font-weight: 700; letter-spacing: .02em; min-height: 18px; margin-bottom: 12px; }
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-card blockquote { flex: 1; }
#site-footer .site-icon, #footer-container .site-icon { width: 15px; height: 15px; vertical-align: -2px; }

.btn, .btn-hero, .service-book-btn, .btn-blue, .btn-topbar--primary {
  background-color: var(--cta-accent);
  color: #fff;
}
.btn:hover, .btn-hero:hover, .service-book-btn:hover, .btn-blue:hover, .btn-topbar--primary:hover {
  background-color: var(--cta-accent-hover);
  color: #fff;
}
.crm-hero .crm-hero-actions .btn:not(.btn-secondary) { background: #fff; color: #0c4a6e; }
.crm-hero .crm-hero-actions .btn:not(.btn-secondary):hover { background: #eaf1f5; color: #083b58; }

/* Homepage services are now equal, useful cards instead of a wall of rules. */
.home-page .services-section {
  background: var(--site-tint) !important;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 52px) !important;
  margin-block: 24px;
}
.home-page .services-section .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-page .services-section .grid > .card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 12px;
  row-gap: 0;
  min-height: 242px;
  padding: 25px 27px;
  border: 1px solid #cfdee7;
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}
.home-page .services-section .grid > .card:hover {
  border-color: #78a6bd;
  transform: translateY(-2px);
}
.home-page .services-section .card-icon,
.home-page .benefits-section .feature-icon,
.file-option-icon,
.services-page .service-icon,
.service-hero-mark,
.service-detail-page .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: #dcecf5;
  color: #0c4a6e;
}
.home-page .services-section .card-icon {
  grid-column: 1;
  grid-row: 1;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  font-size: 24px;
}
.home-page .services-section .card h3 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
.home-page .services-section .card p { grid-column: 1 / -1; grid-row: 2; margin: 16px 0; }
.home-page .services-section .card-links {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #e5edf2;
}
.home-page .services-section .card-link { margin: 0; }
.home-page .services-section .card-links-bold { color: #0c4a6e; white-space: nowrap; }
.home-page .services-section .card-links-bold:hover { color: #083b58; text-decoration: underline; }
.home-page .file-option-icon { width: 42px; height: 42px; background: #fff; color: #0c4a6e; font-size: 21px; }
.home-page .benefits-section .card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-content: start;
}
.home-page .benefits-section .feature-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: transparent;
  font-size: 23px;
}
.home-page .benefits-section .feature-title { grid-column: 2; grid-row: 1; margin: 0 0 6px; }
.home-page .benefits-section .muted { grid-column: 2; grid-row: 2; }
.home-page .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-page .testimonial-card { min-height: 252px; }
.home-page .locations-container { display: block; max-width: 1050px; }
.home-page .location-details { width: 100%; min-width: 0; }
.locations-page .grid { grid-template-columns: minmax(0, 720px); justify-content: center; }

/* Service index and detail pages use a shared centered introduction. */
body.services-page header.head,
body.service-detail-page header.head {
  background: var(--site-tint);
  padding: clamp(56px, 7vw, 86px) 0 clamp(62px, 7vw, 92px);
  border-bottom: 1px solid #cfdee7;
}
body.services-page header.head .inner,
body.service-detail-page header.head .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
body.services-page header.head h1,
body.service-detail-page header.head h1 {
  max-width: 820px;
  margin: 0 auto 18px;
  color: var(--site-ink);
  text-align: center;
}
body.services-page header.head .lead,
body.service-detail-page header.head .lead {
  max-width: 680px;
  margin: 0 auto;
  color: #385468;
  text-align: center;
}
.service-hero-mark { width: 56px; height: 56px; margin: 0 auto 24px; font-size: 48px; background: transparent; color: #0c4a6e; border-radius: 0; }
body.service-detail-page header.head .hero-cta-row { display: flex; justify-content: center; margin-top: 25px; }

.services-page main .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.services-page .service-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 12px;
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid #d4e1e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
.services-page .service-card:hover { border-color: #78a6bd; box-shadow: none; transform: translateY(-2px); }
.services-page .service-icon { grid-column: 1; grid-row: 1; width: 30px; height: 30px; margin: 0; border-radius: 0; background: transparent; font-size: 25px; }
.services-page .service-card h2 { grid-column: 2; grid-row: 1; align-self: center; font-size: clamp(23px, 2vw, 27px); line-height: 1.2; margin: 0; }
.services-page .service-card p { grid-column: 1 / -1; grid-row: 2; margin: 18px 0 16px; color: #385468; }
.services-page .service-card ul { grid-column: 1 / -1; grid-row: 3; margin: 0 0 24px; padding-left: 20px; }
.services-page .service-card li { margin: 5px 0; }
.services-page .service-card li::marker { color: #0c4a6e; }
.services-page .service-actions {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #e5edf2;
}
.services-page .service-learn-more { margin: 0; }
.services-page .service-book-btn { margin: 0; }

/* Restore a clear grouping of service detail content. */
.service-detail-page main.container { max-width: 1050px; }
.service-detail-page main.container > section.card {
  padding: clamp(26px, 4vw, 42px);
  border: 0;
  border-radius: 16px;
  background: #eaf1f5;
  margin-bottom: 22px;
}
.service-detail-page main.container > section.card:first-child { padding-top: clamp(26px, 4vw, 42px); }
.service-detail-page main.container > section.card:hover { transform: none; box-shadow: none; }
.service-detail-page main.container > section.card:first-child:has(> p + ul) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  column-gap: clamp(28px, 5vw, 62px);
  align-items: start;
}
.service-detail-page main.container > section.card:first-child:has(> p + ul) > h2 { grid-column: 1 / -1; }
.service-detail-page main.container > section.card:first-child:has(> p + ul) > p { max-width: 48ch; margin-bottom: 0; }
.service-detail-page main.container > section.card:first-child:has(> p + ul) > ul {
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid #b9cdd9;
}
.service-detail-page main.container > section.grid { gap: 18px; }
.service-detail-page main.container > section.grid > .card,
.service-detail-page main.container > section.card .grid > .card {
  padding: 27px;
  border: 1px solid #d4e1e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
.service-detail-page main.container > section.grid > .card:hover,
.service-detail-page main.container > section.card .grid > .card:hover { border-color: #78a6bd; box-shadow: none; }
.service-detail-page main.container > section.grid > .card h2 { font-size: clamp(22px, 2vw, 27px); }
.service-detail-page .feature-icon { margin-inline: auto; font-size: 23px; }
.service-detail-page .grid-3-col { justify-items: stretch; }
.service-detail-page .grid-3-col > div { min-width: 0; }

@media (max-width: 700px) {
  body.services-page header.head h1,
  body.services-page header.head .lead,
  body.service-detail-page header.head h1,
  body.service-detail-page header.head .lead { text-align: center !important; }
  .home-page .services-section { border-radius: 0; margin-inline: -20px; padding-inline: 20px !important; }
  .home-page .services-section .grid,
  .services-page main .grid { grid-template-columns: 1fr; }
  .home-page .testimonials-grid { grid-template-columns: 1fr; }
  .home-page .services-section .grid > .card { min-height: 0; }
  .services-page .service-card { min-height: 0; }
  .service-detail-page main.container > section.card,
  .service-detail-page main.container > section.grid > .card { padding: 24px; }
  .service-detail-page main.container > section.card:first-child:has(> p + ul) { display: block; }
  .service-detail-page main.container > section.card:first-child:has(> p + ul) > p { margin-bottom: 20px; }
  .service-detail-page main.container > section.card:first-child:has(> p + ul) > ul { padding-left: 23px; border-left: 0; }
}
