/* ==========================================================
   JensenStar site pages: Services hub, About, Contact, Blog.
   Loaded after service-pages.css and reuses its .jst-sp-* system;
   this file only adds the components those pages don't have.
   ========================================================== */

/* ---------- Hero variants ---------- */

.jst-sp-hero--compact {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.jst-sp-hero--compact .jst-sp-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.jst-sp-hero-intro a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jst-sp-hero-intro a:hover {
  color: var(--color-accent);
}

.jst-sp-hero-card .jst-sp-nap-line span {
  color: var(--color-ink);
}

a.jst-sp-eyebrow--light:hover {
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Shared bits ---------- */

.jst-site .jst-sp-card--link::before {
  display: none;
}

.jst-sp-split--reverse .jst-sp-split-media {
  order: 2;
}

.jst-sp-split-copy .text-link,
.jst-sp-aside-body .text-link {
  margin-top: 4px;
}

.jst-center-note {
  margin: 28px 0 0;
  text-align: center;
}

.jst-center-note a,
.jst-map-copy a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jst-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jst-chips--left {
  justify-content: flex-start;
}

.jst-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.jst-sp-section--alt .jst-chips li {
  background: #fffaf5;
}

.jst-chips svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.jst-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 32px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--border-soft);
}

.jst-link-row a {
  color: var(--color-primary);
  font-weight: 700;
}

.jst-link-row a:hover {
  color: var(--color-hover);
}

/* ---------- Services hub cards ---------- */

.jst-hub-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--jst-gap);
}

.jst-hub-card {
  display: flex;
  flex: 0 1 calc((100% - 2 * var(--jst-gap)) / 3);
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--jst-card-radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.jst-hub-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.jst-hub-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.jst-hub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.jst-hub-card:hover .jst-hub-card-media img {
  transform: scale(1.04);
}

.jst-hub-card-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 clamp(22px, 2.4vw, 30px) clamp(24px, 2.6vw, 30px);
}

.jst-hub-card-body .jst-sp-card-icon {
  margin-top: -26px;
  margin-bottom: 14px;
  color: var(--color-white);
  background: var(--color-primary);
  box-shadow: 0 12px 28px rgba(133, 14, 53, 0.28);
}

.jst-hub-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.jst-hub-card-body h3 a:hover {
  color: var(--color-primary);
}

.jst-hub-card-body p {
  margin: 0 0 18px;
  font-size: 0.97rem;
}

/* ---------- Steps with three items ---------- */

.jst-sp-steps--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Testimonials ---------- */

.jst-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jst-gap);
  max-width: 1040px;
  margin-inline: auto;
}

.jst-quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  background: #fffaf5;
  border: 1px solid var(--border-soft);
  border-radius: var(--jst-card-radius);
}

.jst-quote-stars {
  margin-bottom: 14px;
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.jst-quote blockquote {
  flex: 1;
  margin: 0 0 18px;
}

.jst-quote blockquote p {
  color: var(--color-ink);
  font-size: 1.05rem;
}

.jst-quote figcaption {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* ---------- Contact ---------- */

.jst-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jst-gap);
}

.jst-contact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 34px);
  background: var(--color-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--jst-card-radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.jst-contact-card h3 {
  margin: 0 0 10px;
}

.jst-contact-card p {
  flex: 1;
  margin: 0 0 18px;
  font-size: 0.97rem;
}

.jst-contact-card--urgent {
  border-color: rgba(133, 14, 53, 0.25);
  box-shadow: 0 18px 48px rgba(133, 14, 53, 0.12);
}

.jst-contact-card--urgent .jst-sp-card-icon {
  color: var(--color-white);
  background: var(--color-primary);
}

.jst-contact-value {
  display: inline-flex;
  gap: 6px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.jst-contact-value:hover {
  color: var(--color-hover);
}

.jst-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.jst-map-copy .jst-sp-head {
  margin-bottom: 16px;
}

.jst-map-copy > p {
  margin: 0 0 22px;
}

.jst-map {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.jst-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Blog listing ---------- */

.jst-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jst-gap);
}

.jst-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--jst-card-radius);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.jst-sp-section--alt .jst-post-card {
  background: #fffaf5;
}

.jst-post-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.jst-post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.jst-post-card:hover .jst-post-card-media img {
  transform: scale(1.04);
}

.jst-post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
}

.jst-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px !important;
  font-size: 0.85rem !important;
}

.jst-post-cat {
  padding: 4px 10px;
  color: var(--color-primary);
  background: rgba(133, 14, 53, 0.07);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jst-sp .jst-post-card-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.jst-post-card-title a:hover {
  color: var(--color-primary);
}

.jst-post-card-body > p:not(.jst-post-meta) {
  margin: 0 0 18px;
  font-size: 0.95rem;
}

/* WordPress wraps pagination in .nav-links, which is also the header menu class. */
.jst-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 48px);
}

.jst-pagination .nav-links a {
  font-family: var(--font-body);
  letter-spacing: 0;
}

.jst-pagination .nav-links a::after {
  display: none;
}

.jst-pagination .page-numbers,
.jst-pagination.post-nav-links a,
.jst-pagination.post-nav-links > span {
  display: inline-grid;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  place-items: center;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.jst-pagination .page-numbers.current {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.jst-pagination a.page-numbers:hover {
  color: var(--color-primary);
  border-color: rgba(133, 14, 53, 0.3);
}

.jst-empty {
  max-width: 680px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.jst-empty .jst-sp-card-icon {
  margin-inline: auto;
}

.jst-empty h2 {
  margin: 0 0 12px;
}

/* ---------- Single post ---------- */

.jst-post-hero h1 {
  max-width: 920px;
}

.jst-post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95rem;
}

.jst-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.jst-post-main {
  min-width: 0;
  max-width: 800px;
}

.jst-post-featured {
  margin: 0 0 clamp(28px, 4vw, 40px);
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.jst-post-featured img {
  width: 100%;
  height: auto;
}

.jst-post-content {
  color: var(--color-soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.jst-post-content > * + * {
  margin-top: 1.25em;
}

.jst-post-content p {
  margin: 0;
  font-size: inherit;
}

.jst-post-content > * + h2,
.jst-post-content > * + h3,
.jst-post-content > * + h4 {
  margin-top: 1.9em;
}

.jst-sp .jst-post-content h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem);
}

.jst-sp .jst-post-content h3 {
  font-size: 1.35rem;
}

.jst-post-content h4,
.jst-post-content h5,
.jst-post-content h6 {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.jst-post-content h2 + *,
.jst-post-content h3 + *,
.jst-post-content h4 + * {
  margin-top: 0.6em;
}

.jst-post-content a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.jst-post-content a:hover {
  color: var(--color-hover);
}

.jst-post-content ul,
.jst-post-content ol {
  padding-left: 1.4em;
}

.jst-post-content li + li {
  margin-top: 0.45em;
}

.jst-post-content li::marker {
  color: var(--color-primary);
}

.jst-post-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 18px 24px;
  color: var(--color-ink);
  background: #fffaf5;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 16px 16px 0;
}

.jst-post-content img {
  height: auto;
  border-radius: 18px;
}

.jst-post-content figure {
  margin-left: 0;
  margin-right: 0;
}

.jst-post-content figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  text-align: center;
}

.jst-post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.jst-post-content .wp-block-table {
  overflow-x: auto;
}

.jst-post-content th,
.jst-post-content td {
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

.jst-post-content th {
  color: var(--color-white);
  background: var(--color-primary);
}

.jst-post-aside {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
}

.jst-post-aside-card {
  padding: 26px;
  background: var(--color-white);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.jst-post-aside-card > p:not(.jst-sp-card-kicker):not(.jst-sp-card-title) {
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.jst-post-aside-card .jst-sp-card-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.jst-post-service-list {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.jst-post-service-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--color-ink);
  border-radius: 10px;
  font-weight: 600;
}

.jst-post-service-list a:hover {
  color: var(--color-primary);
  background: rgba(133, 14, 53, 0.06);
}

.jst-post-service-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .jst-hub-card {
    flex-basis: calc((100% - var(--jst-gap)) / 2);
  }

  .jst-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jst-post-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 960px) {
  .jst-contact-grid,
  .jst-sp-steps--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .jst-map-layout,
  .jst-post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .jst-sp-split--reverse .jst-sp-split-media {
    order: 0;
  }

  .jst-post-main {
    max-width: none;
  }

  .jst-post-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .jst-hub-card {
    flex-basis: 100%;
  }

  .jst-post-grid,
  .jst-quotes {
    grid-template-columns: minmax(0, 1fr);
  }

  .jst-chips li {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .jst-link-row {
    gap: 8px 16px;
  }

  .jst-map {
    aspect-ratio: 1 / 1;
  }

  .jst-post-content {
    font-size: 1rem;
  }
}
