/* Services page — cards, grid, CTA only.
   Hero and nav handled by category-hero + primary-header in style.css. */

.fe-services-page {
  background: var(--fe-bg);
  color: var(--fe-text);
  min-height: 100vh;
  overflow: hidden;
  overflow: clip;
}

.fe-services-content {
  padding: 48px 0;
}

.fe-services-content .fe-category-page__richtext {
  color: var(--fe-text);
}

/* Constrain trusted logos to content width on services page */
.fe-services-page .fe-wrap {
  width: min(var(--fe-content-max), calc(100% - 160px));
}

/* --- Highlight cards (3-column grid) --- */

.fe-services-highlights {
  padding: 48px 0;
}

.fe-services-highlights__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  margin: 0 0 48px;
  max-width: 720px;
}

.fe-highlights-grid {
  align-items: stretch;
  display: grid;
  gap: 19px 38px;
  grid-auto-rows: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fe-highlight-card {
  border-bottom: 8px solid var(--fe-cyan);
  box-shadow: 0 8px 20px rgba(16, 22, 48, 0.1), 0 3px 8px rgba(16, 22, 48, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 24px 42px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.fe-highlight-card--accent {
  background: color-mix(in srgb, var(--fe-cyan) 20%, transparent);
}

.fe-highlight-card--light {
  background: var(--fe-white);
}

.fe-highlight-card--transparent {
  background: transparent;
}

.fe-highlight-card__title,
.fe-highlight-card__body {
  margin: 0;
}

.fe-highlight-card__title {
  font-size: clamp(30px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 44px;
  max-width: 330px;
}

.fe-highlight-card__body {
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 300;
  line-height: clamp(24px, 2vw, 28px);
  margin-top: 20px;
  max-width: 345px;
}

.fe-highlights-cta {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 0;
  padding: 10px;
}

.fe-highlights-cta--empty {
  visibility: hidden;
}

/* --- Detail cards section (horizontal with bullets) --- */

.fe-services-grid-section {
  padding: 48px 0;
}

.fe-services-grid-title {
  font-size: var(--fe-type-display-xl-size);
  font-weight: 300;
  line-height: var(--fe-type-display-xl-line);
  margin: 0 0 48px;
}

.fe-services-grid-title span {
  color: var(--fe-cyan);
  font-weight: 700;
}

/* --- Cards --- */

.fe-services-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fe-services-grid--compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.fe-services-grid--compact .fe-services-card {
  flex-direction: column;
  gap: 0;
  padding: 28px 32px;
}

@media (max-width: 1024px) {
  .fe-services-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .fe-services-grid--compact {
    grid-template-columns: 1fr;
  }
}

.fe-services-card {
  align-items: flex-start;
  border-bottom: 8px solid var(--fe-cyan);
  box-shadow: 0 8px 20px rgba(16, 22, 48, 0.1), 0 3px 8px rgba(16, 22, 48, 0.06);
  display: flex;
  gap: 48px;
  padding: 32px 42px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.fe-services-card--accent {
  background: color-mix(in srgb, var(--fe-cyan) 20%, transparent);
}

.fe-services-card--light {
  background: var(--fe-white);
}

.fe-services-card--transparent {
  background: transparent;
}

.fe-services-card__title {
  flex-shrink: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  width: 200px;
}

.fe-services-card__bullets {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fe-services-card__bullets li {
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
  padding-left: 20px;
  position: relative;
}

.fe-services-card__bullets li::before {
  background: var(--fe-cyan);
  content: '';
  height: 8px;
  left: 0;
  position: absolute;
  top: 10px;
  width: 8px;
}

.fe-services-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fe-services-card__title a:hover {
  color: var(--fe-cyan);
}

.fe-services-card__bullets a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fe-services-card__bullets a:hover {
  color: var(--fe-cyan);
}

.fe-services-card__bullets--2col {
  columns: 2;
  display: block;
  gap: 0;
}

.fe-services-card__bullets--2col li {
  break-inside: avoid;
  margin-bottom: 6px;
}

/* --- CTA --- */

.fe-services-grid-cta {
  margin-top: 32px;
}

/* --- What to expect section --- */

.fe-services-expect {
  background: var(--fe-bg);
  padding: 48px 0;
}

.fe-expect {
  align-items: center;
  display: flex;
  gap: 64px;
}

.fe-expect__copy {
  flex: 1;
  min-width: 0;
}

.fe-expect__title {
  font-size: var(--fe-type-display-xl-size);
  font-weight: 700;
  line-height: var(--fe-type-display-xl-line);
  margin: 0;
}

.fe-expect__title span {
  color: var(--fe-cyan);
}

.fe-expect__subtitle {
  font-size: var(--fe-type-heading-lg-size);
  font-weight: 300;
  line-height: var(--fe-type-heading-lg-line);
  margin: 8px 0 0;
}

.fe-expect__stats {
  display: flex;
  gap: 48px;
  margin: 32px 0 40px;
}

.fe-expect__stat {
  display: flex;
  flex-direction: column;
}

.fe-expect__stat-value {
  color: var(--fe-cyan);
  font-size: var(--fe-type-display-xl-size);
  font-weight: 700;
  line-height: 1.1;
}

.fe-expect__stat-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
  margin-top: 4px;
}

/* Browser mockup */

.fe-expect__browser {
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(16, 22, 48, 0.15), 0 4px 12px rgba(16, 22, 48, 0.08);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fe-browser-chrome {
  align-items: center;
  background: #e8e8e8;
  display: flex;
  gap: 12px;
  padding: 10px 16px;
}

.fe-browser-chrome__dots {
  display: flex;
  gap: 6px;
}

.fe-browser-chrome__dot {
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.fe-browser-chrome__dot--red { background: #ff5f57; }
.fe-browser-chrome__dot--yellow { background: #ffbd2e; }
.fe-browser-chrome__dot--green { background: #28c840; }

.fe-browser-chrome__bar {
  background: var(--fe-white);
  border-radius: 4px;
  flex: 1;
  padding: 5px 12px;
}

.fe-browser-chrome__url {
  color: var(--fe-muted);
  font-size: 12px;
  font-weight: 300;
}

.fe-browser-content {
  background: var(--fe-white);
  padding: 20px 24px;
}

.fe-browser-content__header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fe-browser-content__label {
  font-size: 14px;
  font-weight: 700;
}

.fe-browser-content__sessions {
  color: var(--fe-cyan);
  font-size: 12px;
  font-weight: 500;
}

.fe-analytics-chart {
  display: block;
  height: auto;
  width: 100%;
}

/* --- Hover --- */

@media (hover: hover) and (pointer: fine) {
  .fe-highlight-card:hover,
  .fe-services-card:hover {
    box-shadow: 0 18px 36px rgba(16, 22, 48, 0.18), 0 8px 16px rgba(16, 22, 48, 0.1);
    transform: translateY(-3px);
  }
}

/* --- 1280px --- */

@media (max-width: 1280px) {
  .fe-services-highlights__title {
    font-size: 42px;
    line-height: 1.14;
    max-width: 640px;
  }

  .fe-highlights-grid {
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fe-highlights-cta--empty {
    display: none;
  }

  .fe-services-grid-title {
    font-size: 42px;
    line-height: 1.14;
  }

  .fe-services-card__title {
    width: 180px;
  }

  .fe-expect {
    gap: 40px;
  }

  .fe-expect__stats {
    gap: 32px;
  }
}

/* --- 1024px --- */

@media (max-width: 1024px) {
  .fe-services-grid-section {
    padding: 36px 0;
  }

  .fe-services-grid-title {
    font-size: 36px;
    line-height: 1.18;
    margin-bottom: 32px;
  }

  .fe-services-card {
    flex-direction: column;
    gap: 16px;
  }

  .fe-services-card__title {
    width: auto;
  }

  .fe-services-highlights__title {
    font-size: 36px;
    line-height: 1.18;
    margin-bottom: 32px;
  }

  .fe-highlights-grid {
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .fe-highlight-card,
  .fe-highlights-cta {
    height: auto;
  }

  .fe-highlights-cta {
    justify-content: flex-start;
    padding: 0;
  }

  .fe-services-card__bullets--2col {
    columns: 1;
  }

  .fe-services-expect {
    padding: 36px 0;
  }

  .fe-expect {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .fe-expect__copy {
    display: contents;
  }

  .fe-expect__title {
    order: 1;
  }

  .fe-expect__subtitle {
    margin-top: 16px;
    order: 2;
  }

  .fe-expect__stats {
    margin: 16px 0 0;
    order: 3;
  }

  .fe-expect__browser {
    margin-top: 24px;
    max-width: 520px;
    order: 4;
    width: 100%;
  }

  .fe-expect__copy .fe-btn {
    margin-top: 24px;
    order: 5;
  }

  .fe-services-page .fe-wrap {
    width: min(var(--fe-content-max), calc(100% - 80px));
  }
}

/* --- 768px --- */

@media (max-width: 768px) {
  .fe-highlight-card {
    padding: 24px 42px;
  }

  .fe-highlight-card__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .fe-highlight-card__body {
    font-size: 18px;
    line-height: 1.5;
  }

  .fe-services-card {
    padding: 24px 28px;
  }

  .fe-services-card__title {
    font-size: 24px;
  }

  .fe-services-card__bullets li {
    font-size: 16px;
    line-height: 24px;
  }

  .fe-services-page .fe-wrap {
    width: calc(100% - 48px);
  }

  .fe-services-highlights,
  .fe-services-grid-section,
  .fe-services-expect {
    padding: 30px 0;
  }

  .fe-expect__title {
    font-size: 36px;
    line-height: 1.18;
  }

  .fe-expect__stat-value {
    font-size: 36px;
  }

  .fe-expect__stats {
    flex-direction: column;
    gap: 24px;
  }
}
