/* ------------------------------------------------------------------
   Gradatim Concept: site-specific fixes and additions on top of the
   theme (main.css). Keep theme files untouched; override here.
   ------------------------------------------------------------------ */

/* Brand RGB tokens: the theme shipped its demo purple/lime values,
   which tinted shadows and overlays the wrong colour. */
:root {
  --accent-rgb--light: 0, 97, 255;
  --additional-rgb--light: 250, 220, 80;
  --accent-rgb--dark: 250, 220, 80;
  --additional-rgb--dark: 0, 97, 255;
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 10000;
  padding: 1rem 1.8rem;
  border-radius: 10rem;
  background: var(--accent);
  color: var(--t-opp-bright);
  font-size: 1.5rem;
  transform: translateY(-200%);
  transition: transform var(--_animspeed-medium) ease;
}
.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Spam trap fields: invisible to people, filled in by bots. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Semantic markup inside theme components: drop browser default spacing. */
.mxd-data-list dl,
.mxd-data-list dt,
.mxd-data-list dd,
.mxd-project figure,
.mxd-project blockquote {
  margin: 0;
}
dl.mxd-data-list {
  margin: 0;
}


/* Case study testimonial signature */
.project-client {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 3.2rem;
}
.project-client__photo {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.project-client__name {
  display: block;
  font-family: var(--_font-accent);
  font-size: 2rem;
  font-weight: var(--fw-medium);
  color: var(--t-bright);
  line-height: 1.2;
}
.project-client__role {
  display: block;
  margin-top: 0.4rem;
  color: var(--t-muted);
}

.project-live-link {
  margin-top: 1.6rem;
}

/* Contact form feedback */
.form__status {
  margin-top: 2rem;
  font-size: 1.6rem;
  line-height: 1.5;
}
.form__status.is-error {
  color: #ff6b6b;
}
.form__status.is-ok {
  color: var(--t-bright);
}
.contact-form button[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* Footer copyright line reads as one unit */
.mxd-footer .footer-blocks__links .t-xsmall {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* About page manifesto: space between paragraphs */
.mxd-block__manifest .manifest-more {
  margin-top: 3.2rem;
}

/* Inline links inside headline paragraphs */
.inner-headline__text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.inner-headline__text a:hover {
  color: var(--accent);
}

/* Case study gallery: the theme gives cards a fixed height (even rows on desktop).
   On phones, and for a lone full-width image, show the whole image instead. */
.mxd-project-cards__item.col-xl-12 {
  height: auto;
}
.mxd-project-cards__item.col-xl-12 .project-shot img {
  height: auto;
}
@media only screen and (max-width: 1199px) {
  .mxd-project-cards__item {
    height: auto;
  }
  .project-shot img {
    height: auto;
  }
}

/* Home hero video on phones: keep the words baked into the video out of the cropped edge. */
@media only screen and (max-width: 767px) {
  .mxd-hero-05-videoblock__video video {
    object-position: 12% 50%;
  }
}

/* Phones: the theme's fixed-height service illustrations ran wider than the screen. */
@media only screen and (max-width: 1199px) {
  .mxd-pinned__img {
    max-width: 100%;
    height: auto;
    max-height: 50rem;
    object-fit: contain;
  }
}

/* Phones: long email address in the footer must wrap instead of widening the page. */
@media only screen and (max-width: 400px) {
  .mxd-footer .mxd-point-subtitle {
    font-size: 1.6rem;
  }
  .mxd-footer .mxd-point-subtitle a {
    overflow-wrap: anywhere;
  }
}

/* Small phones: very long words in big headlines hyphenate instead of overflowing. */
@media only screen and (max-width: 480px) {
  h1,
  h2,
  .h1-small {
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Services list: keep each capability on one line where it fits. */
@media only screen and (min-width: 1200px) {
  .mxd-services-list__tagslist p {
    white-space: nowrap;
  }
}
/* Services list: scale the big titles with the viewport so "Development" never touches the text beside it. */
@media only screen and (min-width: 1200px) {
  .mxd-services-list__title p {
    font-size: min(9rem, 5.6vw);
  }
}
@media only screen and (min-width: 1600px) {
  .mxd-services-list__title p {
    font-size: min(10rem, 5vw);
  }
}
