/* Highland Insurance Group — Services hub (/services/, /es/servicios/)
   Loaded after site.css. Uses only the site.css color/font variables. */

/* ---------- Hero (navy band, same rhythm as product pages) ---------- */
.s-hero { background: var(--navy); color: var(--cream); text-align: center; padding: 34px 0 60px; }
.s-hero .wrap { max-width: 900px; }
.s-crumbs { font-family: var(--font-head); font-size: 14px; font-weight: 600; opacity: .85; margin-bottom: 30px; text-align: left; }
.s-crumbs a { color: var(--cream); text-decoration: none; }
.s-crumbs a:hover { text-decoration: underline; }
.s-crumbs [aria-current] { color: var(--gold); }
.s-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 20px; }
.s-intro { font-size: 19px; max-width: 720px; margin: 0 auto; }

/* ---------- Jump chips ---------- */
.s-jump { background: var(--sand); border-bottom: 1px solid rgba(10, 31, 68, .1); }
.s-jump .wrap { padding-top: 18px; padding-bottom: 18px; }
.s-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.s-jump a {
  display: inline-block; white-space: nowrap; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy);
  background: var(--cream); border: 1.5px solid var(--gold); border-radius: 999px; padding: 8px 16px;
  transition: background-color .2s, color .2s;
}
.s-jump a:hover, .s-jump a:focus-visible { background: var(--gold); color: var(--white); }

/* ---------- Line / group sections ---------- */
.s-group { scroll-margin-top: 12px; }
.s-group:nth-of-type(odd) { background: var(--cream); }
.s-group:nth-of-type(even) { background: var(--sand); }
.s-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.s-group.flip .s-head-img { order: 2; }
.s-head-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.s-head-img img { width: 100%; height: 100%; object-fit: cover; }
.s-head-text .section-title { margin-bottom: 14px; }
.s-tag { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--gold-dark); margin-bottom: 16px; }
.s-head-text p:not(.s-tag) { font-size: 18px; margin-bottom: 14px; }

.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; }
.s-actions .btn { font-size: 17px; padding: 14px 26px; }
.s-more { color: var(--gold-dark); font-size: 17px; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.s-more:hover { color: var(--navy); }

/* Lines inside a group */
.s-items { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-items-4 { grid-template-columns: repeat(2, 1fr); }
.s-items > li { background: var(--white); padding: 26px 26px 28px; border-top: 3px solid var(--gold); display: flex; flex-direction: column; min-width: 0; }
.s-group:nth-of-type(even) .s-items > li { background: var(--cream); }
.s-items h3 { font-size: 21px; margin-bottom: 6px; }
.s-items .s-sub { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--gold-dark); margin-bottom: 12px; }
.s-items p { font-size: 16px; margin-bottom: 12px; }
.s-items .s-actions { margin-top: auto; padding-top: 10px; gap: 12px 20px; }
.s-items .s-actions .btn { font-size: 15px; padding: 12px 20px; }
.s-items .s-more { font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .s-items { grid-template-columns: repeat(2, 1fr); }
  .s-head { gap: 36px; }
}
@media (max-width: 820px) {
  .s-hero { padding: 22px 0 48px; }
  .s-crumbs { margin-bottom: 22px; font-size: 13px; }
  .s-intro { font-size: 17px; }
  .s-head { grid-template-columns: 1fr; gap: 26px; }
  .s-group.flip .s-head-img { order: 0; }
  .s-head-text p:not(.s-tag) { font-size: 17px; }
  .s-tag { font-size: 18px; }
  /* chips scroll sideways inside their own strip instead of stacking */
  .s-jump .wrap { padding-left: 0; padding-right: 0; }
  .s-jump ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .s-jump ul::-webkit-scrollbar { display: none; }
  .s-jump a { font-size: 14px; padding: 8px 14px; }
}
@media (max-width: 640px) {
  .s-items { grid-template-columns: 1fr; margin-top: 30px; gap: 14px; }
  .s-items > li { padding: 22px 18px 24px; }
}
@media (max-width: 560px) {
  .hero-ctas .btn-lg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .s-jump a { transition: none; }
}
