/* local-redesign-v2/css/components.css */

/* Section header: eyebrow / H2 / subhead */
.jem-section-header {
  max-width: 640px;
  margin-bottom: var(--space-6);
}
.jem-section-header--center { margin-inline: auto; text-align: center; }
.jem-section-header__eyebrow {
  font-family: var(--jem-font);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--jem-teal);
  margin: 0 0 var(--space-2);
}
.jem-section-header h2 {
  font-family: var(--jem-display);
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  color: var(--jem-navy);
  margin: 0 0 var(--space-2);
}
.jem-section-header__subhead {
  max-width: 640px;
  font-family: var(--jem-font);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--jem-muted);
  margin: 0;
}

/* Card */
.jem-card {
  background: var(--jem-surface);
  border: 1px solid var(--jem-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--jem-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
}
.jem-card h3 {
  font-family: var(--jem-display);
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  color: var(--jem-navy);
  margin: 0;
}
.jem-services .jem-card h3 {
  min-height: calc(var(--type-h3-size) * var(--type-h3-line) * 3);
}
.jem-card p {
  font-family: var(--jem-font);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--jem-muted);
  margin: 0;
  max-width: 38rem;
}
.jem-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--jem-purple);
  text-decoration: none;
}

/* Testimonials grid: 2 columns on desktop/tablet, collapses to 1 on mobile */
.jem-testimonials__grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 767px) {
  .jem-testimonials__grid { grid-template-columns: 1fr; }
}

/* Image + text split */
.jem-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.jem-split--reverse { direction: rtl; }
.jem-split--reverse > * { direction: ltr; }
.jem-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
@media (max-width: 767px) {
  .jem-split { grid-template-columns: 1fr; }
}

/* CTA band */
.jem-cta-band {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.jem-cta-band p {
  font-family: var(--jem-font);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--jem-muted);
}

/* Buttons */
.jem-btn {
  display: inline-block;
  font-family: var(--jem-font);
  font-weight: 600;
  font-size: var(--type-body-size);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
}
.jem-btn--primary {
  background-image: var(--jem-gradient-warm);
  color: var(--jem-navy-deep);
}
.jem-btn--secondary {
  background: transparent;
  border-color: var(--jem-navy);
  color: var(--jem-navy);
}

/* Paragraph line-length cap, used on body copy throughout the page */
.jem-prose {
  max-width: 38rem;
  font-family: var(--jem-font);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--jem-muted);
}

/* Hero */
.jem-hero {
  position: relative;
  padding-block: var(--space-8);
  background: var(--jem-navy);
  color: #fff;
  overflow: hidden;
}
.jem-hero__slide {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(27 58 92 / 55%), rgb(27 58 92 / 55%)), var(--slide-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.jem-hero__slide--active { opacity: 1; }
.jem-hero__content { position: relative; z-index: 1; max-width: 640px; }
.jem-hero__dots {
  position: absolute;
  z-index: 1;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}
.jem-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
  border: none;
  padding: 0;
  cursor: pointer;
}
.jem-hero__dot--active { background: #fff; }
.jem-hero h1 {
  font-family: var(--jem-display);
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  margin: 0 0 var(--space-3);
}
.jem-hero p {
  font-family: var(--jem-font);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  margin: 0 0 var(--space-4);
}
@media (max-width: 767px) {
  .jem-hero h1 { font-size: 36px; }
}

.jem-page-hero {
  padding-block: var(--space-6) var(--space-7);
  background: var(--jem-mint);
}
.jem-page-hero h1 {
  font-family: var(--jem-display);
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  color: var(--jem-navy);
  margin: var(--space-2) 0 var(--space-3);
}
@media (max-width: 767px) {
  .jem-page-hero h1 { font-size: 36px; }
}
