/* ==========================================================================
   Base — reset, layout helpers and shared UI pieces (buttons, section head).
   Shared by every page.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-zinc-900);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding-inline: 24px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn--sm {
  height: 40px;
  padding-inline: 16px;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
}

.btn--primary {
  background: var(--color-main);
  color: var(--color-zinc-900);
}

.btn--secondary {
  background: var(--color-zinc-100);
  color: var(--color-zinc-800);
}

/* ---- Section heading: "Title | description" ---- */

.section-head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.section-head__title {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.section-head__text {
  flex: 1 1 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 24px;
  border-left: 2px solid var(--color-zinc-200);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
}

@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* long titles ("Read more case studies") must wrap on narrow phones */
  .section-head__title {
    white-space: normal;
  }

  .section-head__text {
    padding-left: 16px;
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
  }
}
