/* ==========================================================================
   DATPRO Design System — Base + shared primitives
   Reset, typography, layout container, buttons, links, section headers.
   Reusable across every page of the redesign.
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--dp-bg);
  color: var(--dp-text-body);
  font-family: var(--dp-font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--dp-text);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--dp-blue);
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--dp-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.dp-section {
  padding-block: var(--section-py);
}

.dp-section--surface {
  background: var(--dp-surface);
}

.dp-skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 0.625rem 1.25rem;
  background: var(--dp-blue);
  color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: var(--fw-semibold);
  transition: transform var(--dur) var(--ease);
}

.dp-skip-link:focus {
  transform: translate(-50%, 0);
}

.dp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Section header (eyebrow + title + description) — shared by every section
   -------------------------------------------------------------------------- */

.dp-eyebrow {
  display: block;
  margin: 0 0 var(--sp-3);
  color: var(--dp-blue);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Designed line breaks inside a translated string. Inline (so the words stay
   separated) until there is room to honour the intended break. */
.dp-line {
  display: inline;
}

@media (min-width: 1280px) {
  .dp-line {
    display: block;
  }
}

.dp-eyebrow--muted {
  color: var(--dp-text-muted);
}

.dp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-8);
  margin-bottom: clamp(2rem, 3.4vw, 3rem);
}

.dp-section-head__text {
  max-width: 46rem;
}

.dp-section-head__desc {
  margin-top: var(--sp-3);
  font-size: var(--fs-lead);
  color: var(--dp-text-muted);
}

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

.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  text-align: center;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.dp-btn__icon {
  flex: none;
  width: 1em;
  height: 1em;
  transition: transform var(--dur) var(--ease);
}

.dp-btn:hover .dp-btn__icon {
  transform: translateX(3px);
}

.dp-btn--primary {
  background: var(--dp-blue);
  border-color: var(--dp-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.dp-btn--primary:hover {
  background: var(--dp-blue-700);
  border-color: var(--dp-blue-700);
}

.dp-btn--secondary {
  background: #fff;
  border-color: var(--dp-border-strong);
  color: var(--dp-text);
}

.dp-btn--secondary:hover {
  border-color: var(--dp-blue);
  color: var(--dp-blue);
}

.dp-btn--on-dark {
  background: #fff;
  border-color: #fff;
  color: var(--dp-navy);
}

.dp-btn--on-dark:hover {
  background: var(--dp-blue-50);
  border-color: var(--dp-blue-50);
}

.dp-btn--ghost-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.dp-btn--ghost-on-dark:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Text link with trailing arrow — used by every "see all / learn more" CTA */
.dp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  color: var(--dp-blue);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  transition: color var(--dur) var(--ease);
}

.dp-link-arrow svg {
  flex: none;
  width: 1em;
  height: 1em;
  transition: transform var(--dur) var(--ease);
}

.dp-link-arrow:hover {
  color: var(--dp-blue-700);
}

.dp-link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Scroll reveal (very light, respects reduced motion)
   -------------------------------------------------------------------------- */

.dp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.dp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .dp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Phase 02 addition — centred section header
   The default .dp-section-head puts the copy left and a "see all" link right.
   Interior pages frequently need the header centred with no trailing link, and
   five of them would otherwise each invent their own version of this.
   -------------------------------------------------------------------------- */

.dp-section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dp-section-head--center .dp-section-head__text {
  max-width: 44rem;
}
