/* ==========================================================================
   Profile Dynamix – homepage styles
   Tokens are taken from the Figma file's variables (Relume design system).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --color-cerulean: #00adee;
  --color-cerulean-hover: #0098d1;
  --color-bay-of-many: #2e3191;
  --color-charlotte-lighter: #f3fafe;
  --color-charlotte: #c4e8fa;
  --color-white: #ffffff;
  --color-neutral-darkest: #020207;
  --color-badge-ring: #383955;

  /* Figma paint style "Stroke - Dark": diagonal, top-left to bottom-right */
  --stroke-dark: linear-gradient(to bottom right, #383955 0%, #0d0e2b 50%, #383955 100%);

  /* Opacity colours */
  --white-50: rgba(255, 255, 255, 0.5);
  --white-60: rgba(255, 255, 255, 0.6);
  --neutral-darkest-15: rgba(2, 2, 7, 0.15);
  --neutral-darkest-50: rgba(2, 2, 7, 0.5);
  --neutral-darkest-60: rgba(2, 2, 7, 0.6);

  /* Colour scheme 1 (dark) */
  --scheme-1-background: #0d0e2b;
  --scheme-1-foreground: #12133a;
  --scheme-1-text: #ffffff;
  --scheme-1-accent: var(--color-cerulean);

  /* Colour scheme 2 (light) */
  --scheme-2-background: #ffffff;
  --scheme-2-text: #0d0e2b;
  --scheme-2-border: var(--neutral-darkest-15);
  --scheme-2-accent: var(--color-cerulean);

  /* Typography */
  --font-family: "Cabin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-hero: clamp(2.75rem, 1.4rem + 4.2vw, 5.3125rem);     /* 85px */
  --text-h1: clamp(2.5rem, 1.45rem + 3.3vw, 4.5rem);          /* 72px */
  --text-h2: clamp(2.25rem, 1.75rem + 1.6vw, 3.25rem);        /* 52px */
  --text-h3: clamp(2rem, 1.6rem + 1.25vw, 2.75rem);           /* 44px */
  --text-h4: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);         /* 36px */
  --text-h5: clamp(1.5rem, 1.35rem + 0.45vw, 1.75rem);        /* 28px */
  --text-h6: clamp(1.25rem, 1.2rem + 0.2vw, 1.375rem);        /* 22px */
  --text-large: clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);   /* 22px */
  --text-medium: 1.125rem;                                    /* 18px */
  --text-regular: 1rem;                                       /* 16px */
  --text-small: 0.875rem;                                     /* 14px */
  --text-tagline: 0.9375rem;                                  /* 15px */

  --leading-heading-tight: 1.05;
  --leading-heading: 1.1;
  --leading-text: 1.3;
  --leading-relaxed: 1.5;

  /* Layout */
  --container-large: 80rem;            /* 1280px */
  --padding-global: 4rem;              /* 64px */
  --padding-section-large: 7rem;       /* 112px */
  --radius-large: 8px;
  --radius-medium: 4px;
  --radius-button: 6px;
  --border-width: 1px;
  --nav-height: 82px;
}

@media (max-width: 991px) {
  :root {
    --padding-global: 2rem;
    --padding-section-large: 5rem;
    --nav-height: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --padding-global: 1.25rem;
    --padding-section-large: 4rem;
    --nav-height: 64px;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

body {
  margin: 0;
  background-color: var(--color-charlotte-lighter);
  color: var(--scheme-2-text);
  font-family: var(--font-family);
  font-size: var(--text-regular);
  line-height: var(--leading-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: var(--leading-heading);
  text-wrap: balance;
}

address {
  font-style: normal;
}

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

a {
  color: inherit;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

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

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.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: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-button);
  background: var(--scheme-1-background);
  color: var(--color-white);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container-large) + var(--padding-global) * 2);
  margin-inline: auto;
  padding-inline: var(--padding-global);
}

.heading-1 {
  font-size: var(--text-h1);
  line-height: var(--leading-heading-tight);
}

.heading-3 {
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
}

.heading-5 {
  font-size: var(--text-h5);
  line-height: var(--leading-heading);
}

.text-large {
  font-size: var(--text-large);
  line-height: var(--leading-text);
}

.text-medium {
  font-size: var(--text-medium);
  line-height: var(--leading-relaxed);
}

.text-muted-light {
  color: var(--white-60);
}

.text-muted-dark {
  color: var(--neutral-darkest-60);
}

.tagline {
  font-size: var(--text-tagline);
  font-weight: 600;
  line-height: var(--leading-heading);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-button);
  font-family: inherit;
  font-size: var(--text-regular);
  font-weight: 700;
  line-height: var(--leading-relaxed);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn img {
  flex: none;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.btn--icon {
  padding-left: 1.25rem;
  padding-right: 1.125rem;
}

.btn--sm {
  padding-block: 0.5rem;
  padding-inline: 1.25rem;
}

.btn--sm.btn--icon {
  padding-right: 1.125rem;
}

.btn--primary {
  background-color: var(--color-cerulean);
  border-color: var(--color-cerulean);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-cerulean-hover);
  border-color: var(--color-cerulean-hover);
}

.btn--primary:hover img {
  transform: translateX(3px);
}

.btn--outline-dark {
  border-color: var(--neutral-darkest-50);
  color: var(--color-neutral-darkest);
}

.btn--outline-dark:hover {
  border-color: var(--color-neutral-darkest);
  background-color: rgba(2, 2, 7, 0.04);
}

.btn--outline-light {
  border-color: var(--white-50);
  color: var(--color-white);
}

.btn--outline-light:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   5. Icon badges (circular icon holders)
   -------------------------------------------------------------------------- */
.icon-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--color-badge-ring);
  border-radius: 50%;
}

.icon-badge--accent {
  width: 64px;
  height: 64px;
  background-color: var(--scheme-1-accent);
}

.icon-badge--brand {
  width: 50px;
  height: 50px;
  background-color: var(--color-bay-of-many);
}

/* --------------------------------------------------------------------------
   6. Site header (Navbar 5)
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--padding-global);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav-height);
  padding-inline: 25px;
  background-color: var(--scheme-2-background);
  border-radius: 0 0 var(--radius-large) var(--radius-large);
}

.site-header__logo {
  flex: none;
  padding-block: 15px;
}

.site-header__logo img {
  width: 219px;
  height: 52px;
}

/* Desktop: logo, nav and actions are spaced evenly (space-between) as in Figma */
.site-header__menu {
  display: contents;
}

.site-nav {
  display: flex;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: var(--text-regular);
  line-height: var(--leading-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-cerulean);
}

.site-header__actions {
  display: flex;
  gap: 1rem;
}

.site-header__toggle {
  display: none;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .site-header__logo img {
    width: 180px;
    height: auto;
  }

  .site-nav {
    gap: 1.5rem;
  }
}

@media (max-width: 991px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-inline: 1.25rem 0.5rem;
  }

  .site-header__logo {
    padding-block: 10px;
  }

  .site-header__logo img {
    width: 168px;
    height: auto;
  }

  .site-header__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .site-header__toggle-bar {
    width: 24px;
    height: 2px;
    background-color: var(--scheme-2-text);
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    opacity: 0;
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(4) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-header__menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.75rem 1.5rem 0;
  }

  .site-header.is-open .site-header__menu {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  .site-nav a {
    display: block;
    padding-block: 0.75rem;
  }

  .site-header__actions {
    flex-direction: column;
    margin-top: 1rem;
  }

  .site-header__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   7. Hero (Header 30)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 900px;
  /* top: clears the navbar; bottom: space for the overlapping service cards */
  padding: calc(var(--nav-height) + 2rem) var(--padding-global) calc(82px + 2rem);
  overflow: hidden;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Crop/zoom taken from the Figma image fill */
.hero__image {
  position: absolute;
  top: -7.98%;
  left: 0;
  width: 116.22%;
  max-width: none;
  height: 124.52%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 2.216%, rgba(13, 14, 43, 0.9) 96.239%);
}

.hero__container {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 3rem;
  width: 100%;
  max-width: var(--container-large);
  min-height: 438px;
}

.hero__title-col {
  flex: 1 1 0;
  min-width: 0;
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 1;
}

.hero__content-col {
  display: flex;
  flex: 0 0 373px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__intro .tagline {
  color: var(--white-60);
}

@media (max-width: 991px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--nav-height) + 6rem);
    padding-bottom: calc(82px + 4rem);
  }

  .hero__container {
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    min-height: 0;
  }

  .hero__title-col,
  .hero__content-col {
    flex: none;
  }

  .hero__content-col {
    max-width: 32rem;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--nav-height) + 4rem);
  }
}

/* --------------------------------------------------------------------------
   8. Service cards (Layout 394)
   -------------------------------------------------------------------------- */
.service-cards {
  position: relative;
  margin-top: -82px;
  padding-bottom: var(--padding-global);
}

.service-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-large);
  background-color: var(--scheme-2-background);
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.service-card__title {
  font-size: var(--text-h4);
}

.service-card__image {
  width: 100%;
  height: 203px;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .service-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card__image {
    height: 240px;
  }
}

@media (max-width: 991px) {
  .service-cards__grid {
    gap: 1.5rem;
  }
}

@media (max-width: 479px) {
  .service-cards__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card__body {
    padding: 1.5rem;
  }

  .service-card__image {
    height: 220px;
  }
}

/* --------------------------------------------------------------------------
   9. Why us (Layout 245)
   -------------------------------------------------------------------------- */
.why-us__panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 4rem;
  border-radius: var(--radius-large);
  background-color: var(--scheme-1-background);
  color: var(--scheme-1-text);
}

.why-us__header {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
}

.why-us__title {
  flex: 0 1 715px;
}

.why-us__aside {
  display: flex;
  flex: 0 1 397px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: var(--text-medium);
  line-height: var(--leading-relaxed);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 26px;
  background: url("../images/icons/bullet.svg") center / 10px 26px no-repeat;
}

.why-us__divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, #252640 0%, var(--scheme-1-background) 50%, #252640 100%);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature__title {
  color: var(--scheme-1-accent);
  font-size: var(--text-h5);
}

@media (max-width: 991px) {
  .why-us__panel {
    padding: 3rem 2.5rem;
  }

  .why-us__header {
    flex-direction: column;
  }

  .why-us__title,
  .why-us__aside {
    flex: none;
  }

  .why-us__mark {
    display: none;
  }

  .feature-list {
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .why-us__panel {
    padding: 2.5rem 1.5rem;
  }

  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   10. Services accordion (Layout 351)
   -------------------------------------------------------------------------- */
.services {
  padding-block: var(--padding-section-large);
}

.services__title {
  max-width: 768px;
  margin-bottom: 2.5rem;
  color: var(--scheme-2-text);
}

.accordion {
  display: flex;
  overflow: hidden;
  border: 5px solid var(--color-charlotte);
  border-radius: var(--radius-large);
  background-color: var(--scheme-2-background);
}

.accordion__pane {
  display: flex;
  min-width: 0;
}

.accordion__heading {
  font-size: var(--text-h5);
  line-height: var(--leading-heading);
}

.accordion__trigger {
  display: flex;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.accordion__number {
  color: var(--scheme-2-border);
  transition: color 0.2s ease;
}

.accordion__pane.is-active .accordion__number,
.accordion__trigger:hover .accordion__number {
  color: var(--scheme-2-accent);
}

.accordion__label {
  color: var(--scheme-2-text);
  white-space: nowrap;
}

.accordion__content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.accordion__content--article {
  gap: 2rem;
}

.accordion__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion__block {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.accordion__image {
  flex: none;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.accordion__image--rounded {
  border-radius: var(--radius-medium);
}

/* Desktop: horizontal expanding panes */
@media (min-width: 992px) {
  .accordion {
    height: 720px;
  }

  .accordion__pane {
    flex: 0 0 auto;
    border-right: var(--border-width) solid var(--scheme-2-border);
  }

  .accordion__pane:last-child {
    border-right: 0;
  }

  .accordion__pane.is-active {
    flex: 1 1 auto;
  }

  .accordion__heading {
    display: flex;
    flex: none;
  }

  .accordion__trigger {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
    padding: 2rem 1.5rem;
  }

  .accordion__pane.is-active .accordion__trigger {
    cursor: default;
  }

  .accordion__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .accordion__panel {
    flex: 0 1 640px;
    min-width: 0;
    overflow-y: auto;
  }

  .accordion__content {
    padding: 4rem 3rem;
  }
}

/* Tablet & mobile: vertical accordion */
@media (max-width: 991px) {
  .accordion {
    flex-direction: column;
  }

  .accordion__pane {
    flex-direction: column;
    border-bottom: var(--border-width) solid var(--scheme-2-border);
  }

  .accordion__pane:last-child {
    border-bottom: 0;
  }

  .accordion__trigger {
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
  }

  .accordion__trigger::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.3s ease;
  }

  .accordion__trigger[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .accordion__content {
    max-width: 640px;
    padding: 0.5rem 2.5rem 3rem;
  }

  .accordion__image {
    height: auto;
    aspect-ratio: 544 / 400;
  }
}

@media (max-width: 767px) {
  .accordion__trigger {
    padding: 1.25rem 1.5rem;
  }

  .accordion__content {
    padding: 0.5rem 1.5rem 2rem;
  }
}

/* --------------------------------------------------------------------------
   11. About (Layout 22)
   -------------------------------------------------------------------------- */
.about {
  padding-bottom: 162px;
}

.about__title {
  max-width: 1011px;
  margin-bottom: 2rem;
  color: var(--scheme-2-text);
}

.about__body {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
}

.about__content {
  display: flex;
  flex: 0 1 600px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 1.5rem;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Image fills the height set by the text column, as in Figma */
.about__media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-large);
  object-fit: cover;
}

@media (max-width: 991px) {
  .about {
    padding-bottom: 140px;
  }

  .about__body {
    flex-direction: column;
  }

  .about__content {
    flex: none;
  }

  .about__media img {
    position: static;
    height: auto;
    aspect-ratio: 640 / 347;
  }
}

/* --------------------------------------------------------------------------
   12. Footer (Footer 3) incl. CTA
   -------------------------------------------------------------------------- */
.site-footer {
  display: flow-root; /* stops the CTA's negative margin collapsing through */
  padding-bottom: var(--padding-global);
  background-color: var(--scheme-1-background);
  color: var(--scheme-1-text);
}

.cta {
  position: relative;
  display: flex;
  gap: 5rem;
  margin-top: -64px;
  padding: calc(4rem - 5px); /* Figma stroke sits inside the 64px padding */
  /* Gradient border that keeps the rounded corners: the fill covers the
     padding box, and the gradient shows through the transparent border */
  border: 5px solid transparent;
  border-radius: var(--radius-large);
  background:
    linear-gradient(var(--scheme-1-foreground), var(--scheme-1-foreground)) padding-box,
    var(--stroke-dark) border-box;
}

.cta__title {
  flex: 1 1 0;
  font-size: var(--text-h2);
  line-height: var(--leading-heading-tight);
}

.cta__content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.site-footer__main {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  margin-top: 92px;
}

.site-footer__logo {
  flex: none;
  width: 169px;
}

.site-footer__logo img {
  width: 156px;
  height: 88px;
}

.site-footer__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px 48px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: var(--text-h6);
  font-weight: 600;
  line-height: var(--leading-heading);
  text-decoration: none;
}

a.contact-item:hover .contact-item__text {
  color: var(--color-cerulean);
}

.contact-item__text {
  transition: color 0.2s ease;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--white-50);
  font-size: var(--text-small);
  line-height: var(--leading-text);
}

@media (max-width: 991px) {
  .cta {
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 2.5rem;
  }

  .site-footer__main {
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 4rem;
  }

  .site-footer__details {
    align-items: flex-start;
    width: 100%;
  }

  .contact-list {
    flex-direction: column;
    justify-content: flex-start;
  }

  .site-footer__legal {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .cta {
    padding: 2.5rem 1.5rem;
  }

  .contact-item {
    font-size: 1.125rem;
    overflow-wrap: anywhere;
  }
}
