/* ============================================================
   Solutions theme — design palette ("Global Colors")
   Loaded last and only on /solutions/ pages, so it overrides
   /styles.css and solutions.css without touching the rest of the site.
   ============================================================ */

:root {
  /* Design palette */
  --ds-primary:    #0082C8;
  --ds-secondary:  #005393;
  --ds-text:       #7F7F7F;
  --ds-accent:     #9EDDFB;
  --ds-white:      #FFFFFF;
  --ds-dark-blue:  #595A5E; /* named "Dark Blue" in the design, renders as gray */
  --ds-navy:       #003366; /* "New Item #3" */
  --ds-soft-gray:  #F1F1F1;
  --ds-light-blue: #EAF3FD;

  /* Site tokens remapped to the palette.
     Contrast on white: #0082C8 4.2:1 and #7F7F7F 4.0:1 fail WCAG AA for
     body-size text, so links and body copy use #005393 (7.9:1) and
     #595A5E (6.9:1); #0082C8 stays for fills and large bold text. */
  --primary:      var(--ds-primary);
  --primary-dark: var(--ds-secondary);
  --accent:       var(--ds-accent);
  --text-dark:    var(--ds-navy);
  --text-medium:  var(--ds-dark-blue);
  --text-light:   var(--ds-dark-blue);
  --bg-light:     var(--ds-soft-gray);
  --border:       #E1E1E1;
}

/* ── Base ───────────────────────────────────────────────────── */
a { color: var(--ds-secondary); }
a:hover { color: var(--ds-navy); }

/* The light accent is too faint as a focus ring on white. */
:focus-visible { outline-color: var(--ds-primary); }

.skip-nav { background: var(--ds-secondary); }

/* ── Top bar ────────────────────────────────────────────────── */
/* Let the logo shrink so logo + phone fit on 320px screens. */
.sol-topbar-logo { min-width: 0; flex-shrink: 1; }
.sol-topbar-logo img { width: 100%; max-width: 160px; height: auto; }
.sol-topbar-phone { color: var(--ds-secondary); }
.sol-topbar-phone:hover { color: var(--ds-navy); }

/* ── Hero and CTA overlays ──────────────────────────────────── */
.sol-hero::before,
.cta-section::before { background: rgba(0, 51, 102, .80); }
.sol-breadcrumb li[aria-current] { color: var(--ds-accent); }
/* The global navy a:hover would vanish on the navy overlay. */
.sol-breadcrumb a:hover,
.sol-breadcrumb a:focus-visible { color: var(--ds-accent); opacity: 1; }

/* ── Section titles and dividers ────────────────────────────── */
.section-divider { background: linear-gradient(90deg, var(--ds-secondary), var(--ds-primary)); }

/* ── "Read more" button (bento tiles; hover states in bento.css) ── */
.sol-btn-more {
  position: relative;
  z-index: 2; /* above the title's stretched-link overlay */
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .45rem .9rem .45rem 1.1rem;
  line-height: 1;
  border: 2px solid var(--ds-secondary);
  border-radius: 50px;
  background: transparent;
  color: var(--ds-secondary);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.sol-btn-more-arrow {
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .sol-btn-more,
  .sol-btn-more-arrow { transition: none; }
}

/* ── Tags ───────────────────────────────────────────────────── */
.sol-tag {
  background: var(--ds-light-blue);
  color: var(--ds-secondary);
}
.sol-tag-location {
  background: rgba(158, 221, 251, .45);
  color: var(--ds-navy);
}

/* ── Article ────────────────────────────────────────────────── */
.sol-prose { color: var(--ds-dark-blue); }
.sol-prose h2 { color: var(--ds-navy); }
.sol-prose a { color: var(--ds-secondary); font-weight: 600; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sol-card {
  background: var(--ds-light-blue);
  border-color: rgba(0, 83, 147, .12);
}
.sol-card-label { color: var(--ds-secondary); }
.sol-toc-link { color: var(--ds-dark-blue); }
.sol-toc-link:hover,
.sol-toc-link.is-active {
  color: var(--ds-secondary);
  border-left-color: var(--ds-primary);
}

.sol-card-dark {
  background: var(--ds-navy);
  border-color: var(--ds-navy);
}
.sol-card-dark .sol-card-label { color: var(--ds-accent); }

.sol-back { color: var(--ds-secondary); }

/* The sidebar is taller than the viewport, so it scrolls normally. A copy of the
   TOC sits after the CTA and sticks once everything above it has scrolled away,
   following the reader until the end of the article column. */
.sol-sidebar { position: static; }
.sol-toc--pinned { display: none; }
@media (min-width: 1200px) {
  aside .sol-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .sol-toc--pinned {
    display: block;
    position: sticky;
    top: 30px; /* toc.js reveals the copy when it reaches this offset */
  }
  /* Hidden (but still taking its place) until it sticks; toc.js adds the classes.
     Fade only: a transform would shift the box toc.js measures. */
  .sol-toc--pinned.is-armed {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .sol-toc--pinned.is-armed.is-stuck {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, visibility 0s;
  }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  .sol-toc--pinned.is-armed,
  .sol-toc--pinned.is-armed.is-stuck { transition: none; }
}

.sol-card-heading {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-align: center;
  color: var(--ds-navy);
}

/* ── Why choose us ──────────────────────────────────────────── */
.sol-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sol-why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sol-why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--ds-white);
  color: var(--ds-primary);
}
.sol-why-value { font-size: .95rem; font-weight: 800; color: var(--ds-navy); line-height: 1.2; }
.sol-why-label { font-size: .8rem; color: var(--ds-dark-blue); line-height: 1.35; margin-top: .2rem; }

/* ── Contact us ─────────────────────────────────────────────── */
.sol-contact-list { margin: 0; }
.sol-contact-row { padding: .6rem 0; border-top: 1px solid rgba(0, 83, 147, .12); }
.sol-contact-row:first-child { border-top: 0; padding-top: 0; }
.sol-contact-row dt {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .15rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ds-secondary);
}
.sol-contact-row dt .sol-icon { width: 16px; height: 16px; }
.sol-contact-row dd { margin: 0; font-weight: 600; color: var(--ds-navy); }
.sol-contact-row dd a { color: var(--ds-navy); text-decoration: none; }
.sol-contact-row dd a:hover { color: var(--ds-secondary); text-decoration: underline; }

.sol-map {
  margin-top: 1rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ds-soft-gray);
}
.sol-map { position: relative; }
.sol-map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
/* Transparent link over the map: the whole map opens the Google Business profile. */
.sol-map-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: .75rem;
  text-decoration: none;
}
.sol-map-badge {
  padding: .4rem .9rem;
  border-radius: 50px;
  background: var(--ds-white);
  color: var(--ds-secondary);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: background-color .2s ease, color .2s ease;
}
.sol-map-link:hover .sol-map-badge,
.sol-map-link:focus-visible .sol-map-badge { background: var(--ds-secondary); color: var(--ds-white); }
.sol-map-link:focus-visible { outline: 3px solid var(--ds-primary); outline-offset: -3px; border-radius: var(--radius); }

/* ── Hero with the featured image (post) ────────────────────── */
/* Tablet and mobile: full-width image first, then the title. */
.sol-hero--media .sol-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}
.sol-hero--media .sol-hero-media { order: -1; }
.sol-hero-media img {
  display: block;
  width: 100%;
  margin-inline: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
/* Desktop: title | 400px image. */
@media (min-width: 1200px) {
  .sol-hero--media .sol-hero-inner {
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: center;
    gap: 3rem;
  }
  .sol-hero--media .sol-hero-media { order: 0; }
  .sol-hero-media img { max-width: 400px; aspect-ratio: auto; }
}

/* ── Footer: keeps the site's original colors ───────────────── */
.site-footer { background: #1a2332; }
.site-footer a { color: #00a8cc; }
.site-footer a:hover { color: #fff; }

/* ── Pagination (Bootstrap 5 variables) ─────────────────────── */
.pagination {
  --bs-pagination-color: var(--ds-secondary);
  --bs-pagination-hover-color: var(--ds-navy);
  --bs-pagination-hover-bg: var(--ds-light-blue);
  --bs-pagination-focus-color: var(--ds-navy);
  --bs-pagination-focus-bg: var(--ds-light-blue);
  --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(0, 130, 200, .25);
  --bs-pagination-active-bg: var(--ds-secondary);
  --bs-pagination-active-border-color: var(--ds-secondary);
  --bs-pagination-disabled-color: var(--ds-text);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  --bs-btn-bg: var(--ds-secondary);
  --bs-btn-border-color: var(--ds-secondary);
  --bs-btn-hover-bg: var(--ds-navy);
  --bs-btn-hover-border-color: var(--ds-navy);
  --bs-btn-active-bg: var(--ds-navy);
  --bs-btn-active-border-color: var(--ds-navy);
}
/* The green call buttons (.btn-success, .cta-phone-btn) are intentionally
   unchanged: the palette has no CTA color yet. */
